任务操作

This commit is contained in:
2023-06-14 13:40:53 +08:00
parent cf3637aa2b
commit b80d5ba4d3

View File

@@ -1,6 +1,6 @@
<template> <template>
<section class="taskmanage"> <section class="taskmanage">
<div class="con1" v-if="fromShow"> <div class="con1">
<!-- <test-one v-if="currentIndex === 0"></test-one> <!-- <test-one v-if="currentIndex === 0"></test-one>
<test-two v-if="currentIndex === 1"></test-two> <test-two v-if="currentIndex === 1"></test-two>
<test-three v-if="currentIndex === 2"></test-three> --> <test-three v-if="currentIndex === 2"></test-three> -->
@@ -60,7 +60,6 @@ export default {
return { return {
error: true, error: true,
checkShow: true, checkShow: true,
fromShow: false,
disabled1: false, disabled1: false,
selectObj: {}, selectObj: {},
selectIndex: '', selectIndex: '',
@@ -118,6 +117,7 @@ export default {
let res = await queryTaskList() let res = await queryTaskList()
if (res.code === '1') { if (res.code === '1') {
this.dataList = res.result this.dataList = res.result
console.log(this.dataList, '666')
} else { } else {
this.toast(res.desc) this.toast(res.desc)
} }
@@ -133,6 +133,7 @@ export default {
async updateTask () { async updateTask () {
let res = await updateTask(this.dataList) let res = await updateTask(this.dataList)
if (res.code === '1') { if (res.code === '1') {
this.toast(res.desc)
this.pkId = '' this.pkId = ''
this.selectObj = {} this.selectObj = {}
this.initData() this.initData()