任务管理

This commit is contained in:
2023-05-11 09:10:02 +08:00
parent 35d7eefc4d
commit 46d846dcf5
3 changed files with 27 additions and 18 deletions

View File

@@ -65,10 +65,10 @@
};
},
created () {
this.queryInstraction(this.keyword, this.startPoint, this.endPoint)
this._queryInstraction(this.keyword, this.startPoint, this.endPoint)
},
methods: {
async queryInstraction () {
async _queryInstraction () {
let res = await queryInstraction(this.keyword, this.startPoint, this.endPoint)
if (res.code === '1') {
this.dataList = [...res.result]
@@ -79,7 +79,7 @@
})
}
},
async instOperation (type) {
async _instOperation (type) {
try {
let res = await instOperation(this.pkId, type)
if (res.code === '1') {
@@ -87,13 +87,16 @@
this.disabled2 = false
this.disabled3 = false
this.pkId = ''
this.queryInstraction()
this._queryInstraction()
uni.showToast({
title: res.desc,
icon: 'none'
})
} else {
this.Dialog(res.desc)
uni.showToast({
title: res.desc,
icon: 'none'
})
this.disabled1 = false
this.disabled2 = false
this.disabled3 = false
@@ -113,7 +116,7 @@
this.disabled1 = false
return
}
this.instOperation(type)
this._instOperation(type)
},
toSure2 (type) {
this.disabled2 = true
@@ -121,7 +124,7 @@
this.disabled2 = false
return
}
this.instOperation(type)
this._instOperation(type)
},
toSure3 (type) {
this.disabled3 = true
@@ -129,7 +132,7 @@
this.disabled3 = false
return
}
this.instOperation(type)
this._instOperation(type)
}
}
}