|
|
|
|
@ -703,32 +703,32 @@ export default { |
|
|
|
|
|
|
|
|
|
// 修改 |
|
|
|
|
if (!this.moldAddMore) { |
|
|
|
|
// update(query) |
|
|
|
|
// .then(res => { |
|
|
|
|
// this.formLoading = false; |
|
|
|
|
// this.$message({ |
|
|
|
|
// type: 'success', |
|
|
|
|
// message: '操作成功!', |
|
|
|
|
// }); |
|
|
|
|
// this.$emit('closeDialog'); |
|
|
|
|
// }) |
|
|
|
|
// .catch(err => { |
|
|
|
|
// this.formLoading = false; |
|
|
|
|
// }); |
|
|
|
|
update(query) |
|
|
|
|
.then(res => { |
|
|
|
|
this.formLoading = false; |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '操作成功!', |
|
|
|
|
}); |
|
|
|
|
this.$emit('closeDialog'); |
|
|
|
|
}) |
|
|
|
|
.catch(err => { |
|
|
|
|
this.formLoading = false; |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
// 新增 |
|
|
|
|
// add(query) |
|
|
|
|
// .then(res => { |
|
|
|
|
// this.formLoading = false; |
|
|
|
|
// this.$message({ |
|
|
|
|
// type: 'success', |
|
|
|
|
// message: '操作成功!', |
|
|
|
|
// }); |
|
|
|
|
// this.$emit('closeDialog'); |
|
|
|
|
// }) |
|
|
|
|
// .catch(err => { |
|
|
|
|
// this.formLoading = false; |
|
|
|
|
// }); |
|
|
|
|
add(query) |
|
|
|
|
.then(res => { |
|
|
|
|
this.formLoading = false; |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '操作成功!', |
|
|
|
|
}); |
|
|
|
|
this.$emit('closeDialog'); |
|
|
|
|
}) |
|
|
|
|
.catch(err => { |
|
|
|
|
this.formLoading = false; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
// 校验失败:显示提示并滚动到第一个错误字段 |
|
|
|
|
|