|
|
@@ -115,7 +115,8 @@ export default {
|
|
115
|
115
|
},
|
|
116
|
116
|
editVisable(val){
|
|
117
|
117
|
if(val){
|
|
118
|
|
- this.getTemplateDetailFn({ id: this.editData.id })
|
|
|
118
|
+ this.getTemplateDetailFn({ id: this.editData.id });
|
|
|
119
|
+ this.submitForm.annexIds = []
|
|
119
|
120
|
}
|
|
120
|
121
|
}
|
|
121
|
122
|
},
|
|
|
@@ -138,8 +139,7 @@ export default {
|
|
138
|
139
|
getTemplateDetailFn(data) {
|
|
139
|
140
|
getTemplateDetail(data).then(res => {
|
|
140
|
141
|
this.ruleForm = res;
|
|
141
|
|
- this.submitForm.annexIds = [this.ruleForm.agreementFile.fileId,this.ruleForm.applicationFile.fileId,this.ruleForm.bookFile.fileId]
|
|
142
|
|
- console.log(this.submitForm.annexIds,"PPPPPPPPPPPPPPPPPPPPPPPP");
|
|
|
142
|
+ // this.submitForm.annexIds = [this.ruleForm.agreementFile.fileId,this.ruleForm.applicationFile.fileId,this.ruleForm.bookFile.fileId]
|
|
143
|
143
|
})
|
|
144
|
144
|
},
|
|
145
|
145
|
submitUpload() {
|
|
|
@@ -175,13 +175,13 @@ export default {
|
|
175
|
175
|
console.log(res,'机构上传成功');
|
|
176
|
176
|
this.$message.success('上传成功');
|
|
177
|
177
|
// this.submitForm.annexIds.push(res.annexId);
|
|
178
|
|
- this.submitForm.annexIds[1] = res.annexId;
|
|
|
178
|
+ this.submitForm.annexIds.push(res.annexId);
|
|
179
|
179
|
},
|
|
180
|
180
|
// 自然人
|
|
181
|
181
|
handleSuccessC(res) {
|
|
182
|
182
|
console.log(res,'自然人上传成功');
|
|
183
|
183
|
this.$message.success('上传成功');
|
|
184
|
|
- this.submitForm.annexIds[4] = res.annexId;
|
|
|
184
|
+ this.submitForm.annexIds.push(res.annexId);
|
|
185
|
185
|
},
|
|
186
|
186
|
handleRemoveC(file, fileList) {
|
|
187
|
187
|
console.log(file, fileList);
|
|
|
@@ -202,7 +202,7 @@ export default {
|
|
202
|
202
|
handleSuccessA(res) {
|
|
203
|
203
|
this.$message.success('上传成功');
|
|
204
|
204
|
// this.submitForm.annexIds.push(res.annexId);
|
|
205
|
|
- this.submitForm.annexIds[0] = res.annexId;
|
|
|
205
|
+ this.submitForm.annexIds.push(res.annexId);
|
|
206
|
206
|
},
|
|
207
|
207
|
|
|
208
|
208
|
handleChangeB(file, fileList) {
|
|
|
@@ -218,7 +218,7 @@ export default {
|
|
218
|
218
|
handleSuccessB(res) {
|
|
219
|
219
|
this.$message.success('上传成功');
|
|
220
|
220
|
// this.submitForm.annexIds.push(res.annexId);
|
|
221
|
|
- this.submitForm.annexIds[3] = res.annexId;
|
|
|
221
|
+ this.submitForm.annexIds.push(res.annexId);
|
|
222
|
222
|
},
|
|
223
|
223
|
// handleSuccess() {
|
|
224
|
224
|
// this.$message.success('修改成功');
|