feat:增加删除任务功能

This commit is contained in:
songwc
2022-11-03 15:41:01 +08:00
parent 892fe4ec56
commit 53fe7c9a0f
4 changed files with 53 additions and 10 deletions

View File

@@ -79,6 +79,7 @@
<script>
import { reactive, toRefs, ref } from "vue";
import * as api from "../../api/indexExternalChain";
import * as apiTask from "../../api/indexTaskadd";
import { message } from "ant-design-vue";
const rowSelection = ref({
checkStrictly: false,
@@ -142,6 +143,27 @@ export default {
console.log(res.data.data);
message.success("提交成功");
closeDrawer();
apiTask
.addTask({
courseId: 0,
duration: 0,
flag: true,
name: obj.inputV1,
projectId: 28,
projectTaskId: 0,
stageId: 3,
type: 7,
})
.then((res) => {
console.log("调用项目添加接口后", res.data);
//重新获取任务列表
// apiTask.getTask({ projectId: 28 });
// router.push("/taskadd");
})
.catch((err) => {
console.log(err);
});
})
.catch((err) => {
console.log(err);