This commit is contained in:
朱文强 2024-04-18 14:30:10 +08:00
джерело aa70a4a075
коміт b21d570fd6

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