接口
This commit is contained in:
@@ -63,7 +63,6 @@
|
|||||||
methods: {
|
methods: {
|
||||||
async _tasks () {
|
async _tasks () {
|
||||||
let res = await tasks(this.keyword, this.startPoint, this.endPoint)
|
let res = await tasks(this.keyword, this.startPoint, this.endPoint)
|
||||||
if (res.code === '1') {
|
|
||||||
res.result.map(el => {
|
res.result.map(el => {
|
||||||
if(el.inst_status === '0') {
|
if(el.inst_status === '0') {
|
||||||
this.$set(el, 'inst_status_name', '就绪')
|
this.$set(el, 'inst_status_name', '就绪')
|
||||||
@@ -76,12 +75,6 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.dataList = [...res.result]
|
this.dataList = [...res.result]
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: res.desc,
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
async _taskoperation (type) {
|
async _taskoperation (type) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -70,7 +70,6 @@
|
|||||||
methods: {
|
methods: {
|
||||||
async _insts () {
|
async _insts () {
|
||||||
let res = await insts(this.keyword, this.startPoint, this.endPoint)
|
let res = await insts(this.keyword, this.startPoint, this.endPoint)
|
||||||
if (res.code === '1') {
|
|
||||||
res.result.map(el => {
|
res.result.map(el => {
|
||||||
if(el.inst_status === '0') {
|
if(el.inst_status === '0') {
|
||||||
this.$set(el, 'inst_status_name', '就绪')
|
this.$set(el, 'inst_status_name', '就绪')
|
||||||
@@ -101,12 +100,6 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.dataList = [...res.result]
|
this.dataList = [...res.result]
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: res.desc,
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
async _inst (type) {
|
async _inst (type) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user