pacs上传校验弹框更改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
302cad8b57
commit
85c4cf89f6
|
@ -222,43 +222,6 @@
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<!-- 校验警告信息模态框 -->
|
|
||||||
<el-dialog
|
|
||||||
v-if="warnVisible"
|
|
||||||
:visible.sync="warnVisible"
|
|
||||||
width="500px"
|
|
||||||
:close-on-click-modal="false"
|
|
||||||
append-to-body
|
|
||||||
:title="$t('trials:uploadDicomPacs:dialogTitle:warning')"
|
|
||||||
custom-class="warning-dialog"
|
|
||||||
>
|
|
||||||
<div style="border: 1px solid #e0e0e0; padding: 10px">
|
|
||||||
<!-- Information from DICOM headers not consistent with that of this subject -->
|
|
||||||
<div style="color: red; font-size: 14px; margin-bottom: 10px">
|
|
||||||
{{ $t("trials:uploadDicomPacs:message:informationConsistent") }}:
|
|
||||||
</div>
|
|
||||||
<div v-for="(item, i) in warningArr" :key="item.index">
|
|
||||||
<div>
|
|
||||||
{{
|
|
||||||
`(${i + 1}). ${$t(
|
|
||||||
"trials:visit:crcUpload:uploadDicomPacs:table:accNumber"
|
|
||||||
)}: ${item.AccessionNumber}`
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
<ul>
|
|
||||||
<li>{{ item.ErrorMesseage }}</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div slot="footer" class="base-modal-footer">
|
|
||||||
<el-button size="small" type="primary" @click="handleCancelWarnVisible">
|
|
||||||
{{ $t("common:button:cancel") }}
|
|
||||||
</el-button>
|
|
||||||
<el-button size="small" type="primary" @click="handleContinueUpload">
|
|
||||||
{{ $t("trials:uploadDicomList:button:upload") }}
|
|
||||||
</el-button>
|
|
||||||
</div>
|
|
||||||
</el-dialog>
|
|
||||||
</BaseContainer>
|
</BaseContainer>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
@ -308,7 +271,6 @@ export default {
|
||||||
SCPStudyIdList: [],
|
SCPStudyIdList: [],
|
||||||
ReUploadSCPStudyIdList: [],
|
ReUploadSCPStudyIdList: [],
|
||||||
warningArr: [],
|
warningArr: [],
|
||||||
warnVisible: false,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -316,19 +278,6 @@ export default {
|
||||||
this.getDicomModalityList();
|
this.getDicomModalityList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// warning弹框取消按钮回调
|
|
||||||
handleCancelWarnVisible() {
|
|
||||||
this.warnVisible = false;
|
|
||||||
this.warningArr = [];
|
|
||||||
},
|
|
||||||
// 忽略warning继续上传
|
|
||||||
handleContinueUpload() {
|
|
||||||
this.handleCancelWarnVisible();
|
|
||||||
this.submitVisitStudyBinding(
|
|
||||||
this.SCPStudyIdList,
|
|
||||||
this.ReUploadSCPStudyIdList
|
|
||||||
);
|
|
||||||
},
|
|
||||||
// 校验上传数据
|
// 校验上传数据
|
||||||
async verifyPacsImage(arr) {
|
async verifyPacsImage(arr) {
|
||||||
try {
|
try {
|
||||||
|
@ -355,10 +304,11 @@ export default {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!item.AllowUpload && !item.AllowReUpload) {
|
if (!item.AllowUpload && !item.AllowReUpload) {
|
||||||
let data = this.tableSelectData.find(
|
// let data = this.tableSelectData.find(
|
||||||
(d) => d.SCPStudyId === item.SCPStudyId
|
// (d) => d.SCPStudyId === item.SCPStudyId
|
||||||
);
|
// );
|
||||||
this.warningArr.push(Object.assign({}, data, item));
|
// this.warningArr.push(Object.assign({}, data, item));
|
||||||
|
this.warningArr.push(item);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -368,7 +318,26 @@ export default {
|
||||||
this.ReUploadSCPStudyIdList
|
this.ReUploadSCPStudyIdList
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
this.warnVisible = true;
|
var li = this.warningArr.map((item) => {
|
||||||
|
return `<li>${item.ErrorMesseage}</li>`;
|
||||||
|
});
|
||||||
|
const content = `
|
||||||
|
<div>
|
||||||
|
<ol>
|
||||||
|
${li.join("")}
|
||||||
|
</ol>
|
||||||
|
</div>`;
|
||||||
|
this.$alert(
|
||||||
|
content,
|
||||||
|
this.$t("trials:uploadDicomList:label:prompt"),
|
||||||
|
{
|
||||||
|
confirmButtonText: this.$t(
|
||||||
|
"trials:uploadDicomList:label:confirm"
|
||||||
|
),
|
||||||
|
dangerouslyUseHTMLString: true,
|
||||||
|
callback: (action) => {},
|
||||||
|
}
|
||||||
|
);
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue