接口
This commit is contained in:
@@ -63,25 +63,18 @@
|
||||
methods: {
|
||||
async _tasks () {
|
||||
let res = await tasks(this.keyword, this.startPoint, this.endPoint)
|
||||
if (res.code === '1') {
|
||||
res.result.map(el => {
|
||||
if(el.inst_status === '0') {
|
||||
this.$set(el, 'inst_status_name', '就绪')
|
||||
}
|
||||
if(el.inst_status === '1') {
|
||||
this.$set(el, 'inst_status_name', '执行中')
|
||||
}
|
||||
if(el.inst_status === '2') {
|
||||
this.$set(el, 'inst_status_name', '完成')
|
||||
}
|
||||
})
|
||||
this.dataList = [...res.result]
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.desc,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
res.result.map(el => {
|
||||
if(el.inst_status === '0') {
|
||||
this.$set(el, 'inst_status_name', '就绪')
|
||||
}
|
||||
if(el.inst_status === '1') {
|
||||
this.$set(el, 'inst_status_name', '执行中')
|
||||
}
|
||||
if(el.inst_status === '2') {
|
||||
this.$set(el, 'inst_status_name', '完成')
|
||||
}
|
||||
})
|
||||
this.dataList = [...res.result]
|
||||
},
|
||||
async _taskoperation (type) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user