|
@@ -256,10 +256,12 @@ export default {
|
|
|
tmpArr[num-1].content = contentResult.valp;
|
|
|
//选没有可上传报告,则上传控件不显示
|
|
|
const noUpload = this.symptomResult.id===999999&&contentResult.valp.indexOf("没有")!==-1;
|
|
|
- if(noUpload&&this.deledUpload.length===0){ //没有被修改过
|
|
|
+ if(noUpload&&this.deledUpload.length===0){ //是否可上传没有被修改过
|
|
|
this.deledUpload=tmpArr.splice(num,1);
|
|
|
+ this.$store.commit("cancelImgs");
|
|
|
}else if(this.symptomResult.id===999999&&!noUpload&&this.deledUpload.length>0){
|
|
|
tmpArr.splice(num,0,...this.deledUpload);
|
|
|
+ this.$store.commit("cancelImgs");
|
|
|
}
|
|
|
|
|
|
this[moduleName] = tmpArr;
|
|
@@ -273,7 +275,7 @@ export default {
|
|
|
isEdit:this.num-1==this.canceledQa
|
|
|
});
|
|
|
}
|
|
|
- console.log(this.$store.state); //最后一题答完
|
|
|
+ //console.log(this.$store.state); //最后一题答完
|
|
|
if(+num===this[moduleName].length||(noUpload&&+num===this[moduleName].length+1)){
|
|
|
if(this.activeTab===mkeys[mkeys.length-1]){ //最后一个模块时显示预览按钮
|
|
|
this.showPreview=true;
|
|
@@ -292,7 +294,7 @@ export default {
|
|
|
let timer = setTimeout(() => {
|
|
|
this.type = tmpNowItem.controlType;
|
|
|
tmpNowItem.show = true;
|
|
|
- console.log(tmpNowItem)
|
|
|
+ //console.log(tmpNowItem)
|
|
|
this.symptomResult = tmpNowItem;
|
|
|
});
|
|
|
this.$nextTick(()=>{
|