Browse Source

为空的时候不执行的问题

feature
是小王呀\24601 5 months ago
parent
commit
15c8a6c21c
  1. 2
      src/views/modules/shequzhili/event/cpts/event-info.vue
  2. 4
      src/views/modules/shequzhili/event/cpts/process-form-complete.vue
  3. 4
      src/views/modules/shequzhili/event/cpts/process-form.vue

2
src/views/modules/shequzhili/event/cpts/event-info.vue

@ -443,7 +443,6 @@ changeName(val) {
},
async handelDispose() {
console.log("handelDispose......",this.pageTypeCopy);
this.$refs.ref_processinfo_dispose.getProcessInfo();
if (this.$refs.ref_processinfo_dispose.okflag) {
this.formData.operationType = this.$refs.ref_processinfo_dispose.operationType;
@ -465,6 +464,7 @@ changeName(val) {
}
await this.submitDispose(url, this.replayInfo);
} else {
return false;
}
},

4
src/views/modules/shequzhili/event/cpts/process-form-complete.vue

@ -727,7 +727,6 @@ showHotline:false,
attachmentType: file.raw.type,
attachmentUrl: res.data.url,
});
console.log(this.docList);
} else {
this.$message.error(res.msg);
}
@ -738,7 +737,7 @@ showHotline:false,
(item) => item.url == file.response.data.url
);
this.docList.splice(index, 1);
console.log(this.docList);
},
async getReplayInfo() {
if (this.required&& this.audioList.length==0) {
@ -746,6 +745,7 @@ showHotline:false,
return
}
this.okflag = false;
this.$refs["ref_form"].validate((valid, messageObj) => {
if (!valid) {
app.util.validateRule(messageObj);

4
src/views/modules/shequzhili/event/cpts/process-form.vue

@ -193,7 +193,9 @@ export default {
this.replayInfo.files = [...this.$refs.ref_process_form_complete.imgList,...this.$refs.ref_process_form_complete.audioList,...this.$refs.ref_process_form_complete.docList]
if(this.pageType === 'check'){
this.replayInfo.operationType = '12';
this.replayInfo.files = [...this.$refs.ref_process_form_complete.examineImgList]
if (this.$refs.ref_process_form_complete.examineImgList) {
this.replayInfo.files = [...this.$refs.ref_process_form_complete.examineImgList]
}
}
if (this.$refs.ref_process_form_complete.okflag) {
this.replayInfo = this.$refs.ref_process_form_complete.formData

Loading…
Cancel
Save