admin阅片人页面
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
d60ddc154c
commit
aa91999ef8
2
.env.usa
2
.env.usa
|
@ -2,7 +2,7 @@
|
||||||
ENV = 'production'
|
ENV = 'production'
|
||||||
NODE_ENV = 'production'
|
NODE_ENV = 'production'
|
||||||
# base public path
|
# base public path
|
||||||
VUE_APP_BASE_PATH = '/'
|
VUE_APP_BASE_PATH = 'https://ei-code-prod.s3.amazonaws.com/2024-01-19/'
|
||||||
|
|
||||||
# 是否开启登陆限制 true:是 false:否
|
# 是否开启登陆限制 true:是 false:否
|
||||||
VUE_APP_LOGIN_FOR_PERMISSION = false
|
VUE_APP_LOGIN_FOR_PERMISSION = false
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
<el-radio :label="0">No</el-radio>
|
<el-radio :label="0">No</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
<div v-if="GCP" class="upload-container">
|
<div v-if="GCP" class="upload-container">
|
||||||
|
<!-- <upload-file :doctor-id="doctorId" type="GCP" />-->
|
||||||
<el-upload
|
<el-upload
|
||||||
class="upload-demo"
|
class="upload-demo"
|
||||||
action
|
action
|
||||||
|
@ -30,10 +31,14 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import UploadFile from '@/components/UploadFile'
|
||||||
import { uploadFile, deleteAttachment, getAttachmentByType, saveAttachments } from '@/api/attachment'
|
import { uploadFile, deleteAttachment, getAttachmentByType, saveAttachments } from '@/api/attachment'
|
||||||
import { updateGcpExperience } from '@/api/reviewers'
|
import { updateGcpExperience } from '@/api/reviewers'
|
||||||
export default {
|
export default {
|
||||||
name: 'UploadFile',
|
name: 'GcpCertificate',
|
||||||
|
components: {
|
||||||
|
UploadFile
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
doctorId: {
|
doctorId: {
|
||||||
type: String,
|
type: String,
|
||||||
|
@ -116,20 +121,28 @@ export default {
|
||||||
})
|
})
|
||||||
return arr
|
return arr
|
||||||
},
|
},
|
||||||
uploadFile(param) {
|
async uploadFile(param) {
|
||||||
var fileName = param.file.name
|
var fileName = param.file.name
|
||||||
this.btnDisabled = true
|
this.btnDisabled = true
|
||||||
uploadFile(param.file, 'GCP', this.doctorId)
|
const file = await this.fileToBlob(param.file)
|
||||||
.then(res => {
|
const res = await this.OSSclient.put(`/SystemData/reviewer/GCP/${this.doctorId}/${fileName}`, file)
|
||||||
if (res.IsSuccess) {
|
this.fileList.push({ name: fileName, path: this.$getObjectName(res.url), fullPath: this.$getObjectName(res.url),url: this.$getObjectName(res.url), type: 'GCP' })
|
||||||
this.fileList.push({ name: fileName, path: res.Result.FilePath, fullPath: res.Result.FullFilePath, type: 'GCP' })
|
|
||||||
this.saveFile()
|
this.saveFile()
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
this.btnDisabled = false
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
|
// uploadFile(param) {
|
||||||
|
// var fileName = param.file.name
|
||||||
|
// this.btnDisabled = true
|
||||||
|
// uploadFile(param.file, 'GCP', this.doctorId)
|
||||||
|
// .then(res => {
|
||||||
|
// if (res.IsSuccess) {
|
||||||
|
// this.fileList.push({ name: fileName, path: res.Result.FilePath, fullPath: res.Result.FullFilePath, type: 'GCP' })
|
||||||
|
// this.saveFile()
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// .catch(() => {
|
||||||
|
// this.btnDisabled = false
|
||||||
|
// })
|
||||||
|
// },
|
||||||
saveFile() {
|
saveFile() {
|
||||||
const { name, path, fullPath, type } = this.fileList[0]
|
const { name, path, fullPath, type } = this.fileList[0]
|
||||||
const param = [{ DoctorId: this.doctorId, Type: type, Path: path, FullPath: fullPath, FileName: name }]
|
const param = [{ DoctorId: this.doctorId, Type: type, Path: path, FullPath: fullPath, FileName: name }]
|
||||||
|
|
|
@ -42,7 +42,17 @@
|
||||||
:label="$t('trials:uploadedDicoms:table:studyId')"
|
:label="$t('trials:uploadedDicoms:table:studyId')"
|
||||||
min-width="80"
|
min-width="80"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tooltip placement="top">
|
||||||
|
<div slot="content">
|
||||||
|
{{ $t('trials:uploadDicomList:table:status4') }}
|
||||||
|
</div>
|
||||||
|
<span class="el-icon-warning" style="color: #cbb024;cursor: pointer" v-if="scope.row.IsHaveUploadFailed"></span>
|
||||||
|
</el-tooltip>
|
||||||
|
{{scope.row.StudyCode}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<!-- 检查类型 -->
|
<!-- 检查类型 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="ModalityForEdit"
|
prop="ModalityForEdit"
|
||||||
|
|
|
@ -180,8 +180,13 @@
|
||||||
min-width="120"
|
min-width="120"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
<el-tooltip placement="top">
|
||||||
<span>{{ scope.row.SubjectCode }}</span>
|
<div slot="content">
|
||||||
|
{{ $t('trials:uploadDicomList:table:status4') }}
|
||||||
|
</div>
|
||||||
|
<span class="el-icon-warning" style="color: #cbb024;cursor: pointer" v-if="scope.row.IsHaveUploadFailed"></span>
|
||||||
|
</el-tooltip>
|
||||||
|
<span style="margin: 0 4px">{{ scope.row.SubjectCode }}</span>
|
||||||
<!-- 基 -->
|
<!-- 基 -->
|
||||||
<span v-if="scope.row.SubjectFirstGiveMedicineTime" class="status-primary-circle">
|
<span v-if="scope.row.SubjectFirstGiveMedicineTime" class="status-primary-circle">
|
||||||
{{ $t('trials:crcUpload:label:firstGiveMedicineTime') }}
|
{{ $t('trials:crcUpload:label:firstGiveMedicineTime') }}
|
||||||
|
@ -1421,7 +1426,13 @@ export default {
|
||||||
verifyCRCRequestToQC(param).then(res => {
|
verifyCRCRequestToQC(param).then(res => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.$confirm(this.$t('trials:crcUpload:message:submit'), {
|
let text = this.$t('trials:crcUpload:message:submit')
|
||||||
|
if (this.rowData.IsHaveUploadFailed) {
|
||||||
|
text = `<div>${this.$t('trials:crcUpload:message:submit')}</div>` +
|
||||||
|
`<div style="font-size: 12px;color:#f66;margin-top: 5px;"><span class="el-icon-warning"></span>${this.$t('trials:crcUpload:message:submitNote')}</div>`
|
||||||
|
}
|
||||||
|
this.$confirm(text, {
|
||||||
|
dangerouslyUseHTMLString: true ,
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
distinguishCancelAndClose: true
|
distinguishCancelAndClose: true
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue