This commit is contained in:
朱文强 2024-04-18 14:30:10 +08:00
parent aa70a4a075
commit b21d570fd6

View File

@ -2,7 +2,7 @@
* @Author: zwq * @Author: zwq
* @Date: 2023-09-22 14:23:44 * @Date: 2023-09-22 14:23:44
* @LastEditors: zwq * @LastEditors: zwq
* @LastEditTime: 2024-04-18 14:01:08 * @LastEditTime: 2024-04-18 14:25:19
* @Description: * @Description:
--> -->
<template> <template>
@ -448,20 +448,28 @@ export default {
this.dataForm.endName = this.dataForm.endInfo.split(',')[1]; this.dataForm.endName = this.dataForm.endInfo.split(',')[1];
// //
if (this.dataForm.id) { if (this.dataForm.id) {
updateTask(this.dataForm).then((response) => { updateTask(this.dataForm)
this.$modal.msgSuccess('修改成功'); .then((response) => {
this.btnLoad = false; this.$modal.msgSuccess('修改成功');
this.visible = false; this.btnLoad = false;
this.$emit('refreshDataList'); this.visible = false;
}); this.$emit('refreshDataList');
})
.catch(() => {
this.btnLoad = false;
});
return; return;
} }
// //
createTask(this.dataForm).then((response) => { createTask(this.dataForm)
this.$modal.msgSuccess('新增成功'); .then((response) => {
this.visible = false; this.$modal.msgSuccess('新增成功');
this.$emit('refreshDataList'); this.visible = false;
}); this.$emit('refreshDataList');
})
.catch(() => {
this.btnLoad = false;
});
} }
}); });
}, },