后处理影像可以编辑检查类型
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
463ecee3d8
commit
64d268b6e8
|
@ -96,3 +96,11 @@ export function getTrialDownloadList(data) {
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 修改后处理检查类型
|
||||||
|
export function updateTaskStudyModality(params) {
|
||||||
|
return request({
|
||||||
|
url: '/DownloadAndUpload/updateTaskStudyModality',
|
||||||
|
method: 'put',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
|
@ -45,11 +45,18 @@
|
||||||
prop="UploadStudyList"
|
prop="UploadStudyList"
|
||||||
:label="$t('upload:dicom:table:uploadStudyListNum')"
|
:label="$t('upload:dicom:table:uploadStudyListNum')"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">{{
|
<template slot-scope="scope">
|
||||||
scope.row.UploadStudyList && Array.isArray(scope.row.UploadStudyList)
|
<el-button
|
||||||
? scope.row.UploadStudyList.length
|
v-if="
|
||||||
: 0
|
scope.row.UploadStudyList && scope.row.UploadStudyList.length >= 1
|
||||||
}}</template>
|
"
|
||||||
|
type="text"
|
||||||
|
@click="handleOpenDialog(scope.row, 'UploadStudyList', true)"
|
||||||
|
>
|
||||||
|
<span>{{ scope.row.UploadStudyList.length }}</span>
|
||||||
|
</el-button>
|
||||||
|
<span v-else>0</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:label="$t('common:action:action')"
|
:label="$t('common:action:action')"
|
||||||
|
@ -436,6 +443,9 @@
|
||||||
:IsDicom="true"
|
:IsDicom="true"
|
||||||
:bodyPart="bodyPart"
|
:bodyPart="bodyPart"
|
||||||
:modelList="modelList"
|
:modelList="modelList"
|
||||||
|
:isUpload="openIsUpload"
|
||||||
|
:TrialModality="TrialModality"
|
||||||
|
@getList="getList"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -544,6 +554,8 @@ export default {
|
||||||
errStudyUidList: [],
|
errStudyUidList: [],
|
||||||
open: null,
|
open: null,
|
||||||
bodyPart: [],
|
bodyPart: [],
|
||||||
|
openIsUpload: false,
|
||||||
|
TrialModality: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -580,6 +592,7 @@ export default {
|
||||||
let res = await getSubjectImageUploadList(params)
|
let res = await getSubjectImageUploadList(params)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
|
this.TrialModality = res.OtherInfo.TrialModality.split('|')
|
||||||
this.StudyInstanceUidList = []
|
this.StudyInstanceUidList = []
|
||||||
this.SopInstanceUidList = []
|
this.SopInstanceUidList = []
|
||||||
this.UploadStudyList = []
|
this.UploadStudyList = []
|
||||||
|
@ -654,7 +667,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 打开弹窗
|
// 打开弹窗
|
||||||
handleOpenDialog(item, list) {
|
handleOpenDialog(item, list, isUpload = false) {
|
||||||
|
this.openIsUpload = isUpload
|
||||||
this.model_cfg.title = `${item.SubjectCode || ''} > ${item.TaskBlindName}`
|
this.model_cfg.title = `${item.SubjectCode || ''} > ${item.TaskBlindName}`
|
||||||
this.modelList = item[list]
|
this.modelList = item[list]
|
||||||
this.model_cfg.visible = true
|
this.model_cfg.visible = true
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
|
<div v-if="model_cfg.visible">
|
||||||
<base-model :config="model_cfg">
|
<base-model :config="model_cfg">
|
||||||
<div slot="dialog-body">
|
<div slot="dialog-body">
|
||||||
<el-table :data="modelList" style="width: 100%" height="300">
|
<el-table :data="modelList" style="width: 100%" height="300">
|
||||||
|
@ -104,17 +105,71 @@
|
||||||
circle
|
circle
|
||||||
icon="el-icon-view"
|
icon="el-icon-view"
|
||||||
:title="$t('trials:uploadImage:button:preview')"
|
:title="$t('trials:uploadImage:button:preview')"
|
||||||
|
v-if="!isUpload"
|
||||||
@click.stop="preview(scope.row)"
|
@click.stop="preview(scope.row)"
|
||||||
/>
|
/>
|
||||||
|
<!--编辑--->
|
||||||
|
<el-button
|
||||||
|
circle
|
||||||
|
icon="el-icon-edit-outline"
|
||||||
|
:title="$t('trials:uploadImage:button:edit')"
|
||||||
|
v-else
|
||||||
|
@click.stop="openEdit(scope.row)"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</base-model>
|
</base-model>
|
||||||
|
<!--新增检查部位-->
|
||||||
|
<base-model v-if="editModality_model.visible" :config="editModality_model">
|
||||||
|
<template slot="dialog-body">
|
||||||
|
<el-form
|
||||||
|
ref="editModalityform"
|
||||||
|
:inline="true"
|
||||||
|
:model="form"
|
||||||
|
class="demo-form-inline"
|
||||||
|
:rules="rules"
|
||||||
|
>
|
||||||
|
<el-form-item
|
||||||
|
:label="$t('trials:uploadImage:form:ModalityForEdit')"
|
||||||
|
prop="Modality"
|
||||||
|
label-width="150px"
|
||||||
|
>
|
||||||
|
<el-select v-model="form.Modality" placeholder="">
|
||||||
|
<el-option
|
||||||
|
v-for="item in TrialModality"
|
||||||
|
:key="item"
|
||||||
|
:label="item"
|
||||||
|
:value="item"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</template>
|
||||||
|
<template slot="dialog-footer">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
@click="updateTaskStudyModality"
|
||||||
|
:loading="loading"
|
||||||
|
>
|
||||||
|
{{ $t('common:button:confirm') }}
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
@click="editModality_model.visible = false"
|
||||||
|
:loading="loading"
|
||||||
|
>
|
||||||
|
{{ $t('common:button:cancel') }}
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</base-model>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import baseModel from '@/components/BaseModel'
|
import baseModel from '@/components/BaseModel'
|
||||||
import { getToken } from '@/utils/auth'
|
import { getToken } from '@/utils/auth'
|
||||||
|
import { updateTaskStudyModality } from '@/api/load.js'
|
||||||
export default {
|
export default {
|
||||||
name: 'studyView',
|
name: 'studyView',
|
||||||
props: {
|
props: {
|
||||||
|
@ -136,6 +191,12 @@ export default {
|
||||||
return []
|
return []
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
TrialModality: {
|
||||||
|
type: Array,
|
||||||
|
default: () => {
|
||||||
|
return []
|
||||||
|
},
|
||||||
|
},
|
||||||
visitTaskId: {
|
visitTaskId: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
|
@ -144,10 +205,39 @@ export default {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
isUpload: {
|
||||||
|
required: true,
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
'base-model': baseModel,
|
'base-model': baseModel,
|
||||||
},
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
form: {
|
||||||
|
Modality: null,
|
||||||
|
TaskStudyId: null,
|
||||||
|
},
|
||||||
|
editModality_model: {
|
||||||
|
visible: false,
|
||||||
|
title: this.$t('trials:uploadImage:button:edit'),
|
||||||
|
width: '500px',
|
||||||
|
appendToBody: true,
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
Modality: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('trials:uploadImage:format:notModality'),
|
||||||
|
trigger: ['blur', 'change'],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
loading: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 预览
|
// 预览
|
||||||
preview(row) {
|
preview(row) {
|
||||||
|
@ -166,6 +256,34 @@ export default {
|
||||||
}
|
}
|
||||||
window.open(routeData.href, '_blank')
|
window.open(routeData.href, '_blank')
|
||||||
},
|
},
|
||||||
|
// 打开编辑
|
||||||
|
openEdit(row) {
|
||||||
|
this.form.TaskStudyId = row.Id
|
||||||
|
this.form.Modality = row.ModalityForEdit
|
||||||
|
this.editModality_model.visible = true
|
||||||
|
},
|
||||||
|
// 修改检查类型
|
||||||
|
async updateTaskStudyModality() {
|
||||||
|
try {
|
||||||
|
let validate = await this.$refs.editModalityform.validate()
|
||||||
|
if (!validate) return false
|
||||||
|
this.loading = true
|
||||||
|
let res = await updateTaskStudyModality(this.form)
|
||||||
|
this.loading = false
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
this.modelList.some((item) => {
|
||||||
|
if (this.form.TaskStudyId === item.Id) {
|
||||||
|
item.ModalityForEdit = this.form.Modality
|
||||||
|
}
|
||||||
|
return this.form.TaskStudyId === item.Id
|
||||||
|
})
|
||||||
|
this.editModality_model.visible = false
|
||||||
|
this.$emit('getList')
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err)
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue