|
|
@@ -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; |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|