下载问题修复
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
bebd4c4aa0
commit
d7fcd79cb2
|
@ -6,6 +6,9 @@ import {
|
||||||
requestPackageAndAnonymizImage,
|
requestPackageAndAnonymizImage,
|
||||||
} from "@/api/load.js";
|
} from "@/api/load.js";
|
||||||
let flag = {};
|
let flag = {};
|
||||||
|
export const resetFlag = () => {
|
||||||
|
flag = {}
|
||||||
|
}
|
||||||
export const downloadImage = async (id, id2, IsDicom = true) => {
|
export const downloadImage = async (id, id2, IsDicom = true) => {
|
||||||
if (flag[`${id2}_${IsDicom}`]) return Vue.prototype.$message.warning(Vue.prototype.$t('trials:upload:tip:uploading'));
|
if (flag[`${id2}_${IsDicom}`]) return Vue.prototype.$message.warning(Vue.prototype.$t('trials:upload:tip:uploading'));
|
||||||
flag[`${id2}_${IsDicom}`] = true
|
flag[`${id2}_${IsDicom}`] = true
|
||||||
|
@ -18,6 +21,7 @@ export const downloadImage = async (id, id2, IsDicom = true) => {
|
||||||
let res = await requestPackageAndAnonymizImage(params);
|
let res = await requestPackageAndAnonymizImage(params);
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
if (!res.Result) {
|
if (!res.Result) {
|
||||||
|
flag[`${res.id2}_${res.IsDicom}`] = false;
|
||||||
Vue.prototype.$message.warning(Vue.prototype.$t("trials:upload:message:not"))
|
Vue.prototype.$message.warning(Vue.prototype.$t("trials:upload:message:not"))
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1218,7 +1218,7 @@ import SignForm from "@/views/trials/components/newSignForm";
|
||||||
import { getToken } from "@/utils/auth";
|
import { getToken } from "@/utils/auth";
|
||||||
import const_ from "@/const/sign-code";
|
import const_ from "@/const/sign-code";
|
||||||
import uploadPetClinicalData from "@/views/trials/trials-panel/visit/crc-upload/components/uploadPetClinicalData.vue";
|
import uploadPetClinicalData from "@/views/trials/trials-panel/visit/crc-upload/components/uploadPetClinicalData.vue";
|
||||||
import { downloadImage } from "@/utils/uploadZip.js";
|
import { downloadImage , resetFlag } from "@/utils/uploadZip.js";
|
||||||
export default {
|
export default {
|
||||||
name: "QualityAssurance",
|
name: "QualityAssurance",
|
||||||
components: {
|
components: {
|
||||||
|
@ -1331,6 +1331,9 @@ export default {
|
||||||
BodyPart: {},
|
BodyPart: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
beforeDestroy(){
|
||||||
|
resetFlag();
|
||||||
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
this.BodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId);
|
this.BodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId);
|
||||||
if (this.disabled) {
|
if (this.disabled) {
|
||||||
|
|
Loading…
Reference in New Issue