Browse Source

更新

master
朱文强 5 months ago
parent
commit
b21d570fd6
1 changed files with 20 additions and 12 deletions
  1. +20
    -12
      src/views/axl/task/add-or-updata.vue

+ 20
- 12
src/views/axl/task/add-or-updata.vue View File

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


Loading…
Cancel
Save