|
@@ -304,15 +304,20 @@ export default {
|
|
|
//保存
|
|
|
postFormDataAction(this.todoManageOperationObject.url, this.todoManageOperationObject.formData,{jsonContent:this.todoManageOperationObject.jsonData}).then(res => {
|
|
|
if (res.success) {
|
|
|
- this.$message.success('保存成功!')
|
|
|
+ // this.$message.success('保存成功!')
|
|
|
//通过
|
|
|
postFormAction(this.url.pass, formData).then(res => {
|
|
|
this.submitLoading = false
|
|
|
if (res.success) {
|
|
|
+ this.$message.success('保存成功!')
|
|
|
this.$message.success('操作成功')
|
|
|
this.modalTaskVisible = false
|
|
|
//刷新父组件数据
|
|
|
this.$emit('refreshToDo')
|
|
|
+ }else{
|
|
|
+ this.$emit('refreshToDo')
|
|
|
+ this.$message.error(res.message)
|
|
|
+ this.modalTaskVisible = false
|
|
|
}
|
|
|
})
|
|
|
} else {
|