0226bug
This commit is contained in:
@@ -139,7 +139,7 @@ export default {
|
||||
handleSuccessC(res) {
|
||||
console.log(res,'自然人上传成功');
|
||||
this.$message.success('上传成功');
|
||||
this.submitForm.annexIds[4] = res.annexId;
|
||||
this.submitForm.annexIds.push(res.annexId)
|
||||
},
|
||||
handleRemoveC(file, fileList) {
|
||||
console.log(file, fileList);
|
||||
@@ -174,8 +174,8 @@ export default {
|
||||
submitUpload() {
|
||||
this.$refs['ruleForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
if(this.submitForm.annexIds.length < 3){
|
||||
this.$message.error('三种类型模板必须上传');
|
||||
if(this.submitForm.annexIds.length < 4){
|
||||
this.$message.error('四种类型模板必须上传');
|
||||
return
|
||||
}
|
||||
this.submitForm.identifyId = this.ruleForm.identifyId;
|
||||
|
||||
@@ -115,7 +115,8 @@ export default {
|
||||
},
|
||||
editVisable(val){
|
||||
if(val){
|
||||
this.getTemplateDetailFn({ id: this.editData.id })
|
||||
this.getTemplateDetailFn({ id: this.editData.id });
|
||||
this.submitForm.annexIds = []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -138,8 +139,7 @@ export default {
|
||||
getTemplateDetailFn(data) {
|
||||
getTemplateDetail(data).then(res => {
|
||||
this.ruleForm = res;
|
||||
this.submitForm.annexIds = [this.ruleForm.agreementFile.fileId,this.ruleForm.applicationFile.fileId,this.ruleForm.bookFile.fileId]
|
||||
console.log(this.submitForm.annexIds,"PPPPPPPPPPPPPPPPPPPPPPPP");
|
||||
// this.submitForm.annexIds = [this.ruleForm.agreementFile.fileId,this.ruleForm.applicationFile.fileId,this.ruleForm.bookFile.fileId]
|
||||
})
|
||||
},
|
||||
submitUpload() {
|
||||
@@ -175,13 +175,13 @@ export default {
|
||||
console.log(res,'机构上传成功');
|
||||
this.$message.success('上传成功');
|
||||
// this.submitForm.annexIds.push(res.annexId);
|
||||
this.submitForm.annexIds[1] = res.annexId;
|
||||
this.submitForm.annexIds.push(res.annexId);
|
||||
},
|
||||
// 自然人
|
||||
handleSuccessC(res) {
|
||||
console.log(res,'自然人上传成功');
|
||||
this.$message.success('上传成功');
|
||||
this.submitForm.annexIds[4] = res.annexId;
|
||||
this.submitForm.annexIds.push(res.annexId);
|
||||
},
|
||||
handleRemoveC(file, fileList) {
|
||||
console.log(file, fileList);
|
||||
@@ -202,7 +202,7 @@ export default {
|
||||
handleSuccessA(res) {
|
||||
this.$message.success('上传成功');
|
||||
// this.submitForm.annexIds.push(res.annexId);
|
||||
this.submitForm.annexIds[0] = res.annexId;
|
||||
this.submitForm.annexIds.push(res.annexId);
|
||||
},
|
||||
|
||||
handleChangeB(file, fileList) {
|
||||
@@ -218,7 +218,7 @@ export default {
|
||||
handleSuccessB(res) {
|
||||
this.$message.success('上传成功');
|
||||
// this.submitForm.annexIds.push(res.annexId);
|
||||
this.submitForm.annexIds[3] = res.annexId;
|
||||
this.submitForm.annexIds.push(res.annexId);
|
||||
},
|
||||
// handleSuccess() {
|
||||
// this.$message.success('修改成功');
|
||||
|
||||
Reference in New Issue
Block a user