工单列表
parent
bbece21ba4
commit
25cbc307b6
|
@ -109,33 +109,33 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(op) {
|
onLoad(op) {
|
||||||
this.workeOrderStatusIndex = this.array.findIndex(item=>item.title==op.status);
|
this.workeOrderStatusIndex = this.array.findIndex(item=>item.name==op.status);
|
||||||
if(this.workeOrderStatusIndex!=-1) this.workeOrderStatus = '';
|
if(this.workeOrderStatusIndex!=-1) this.workeOrderStatus = '';
|
||||||
this.getDatalist()
|
// 调用获取工单状态事件
|
||||||
this.getType()
|
this.getType();
|
||||||
|
// 调用获取工单列表事件
|
||||||
|
this.getDatalist();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 获取工单状态
|
||||||
getType(){
|
getType(){
|
||||||
|
|
||||||
this.$requst.get('/universal/api.order/order_type', {
|
this.$requst.get('/universal/api.order/order_type', {
|
||||||
list_rows: this.dataPage.list_rows,
|
list_rows: this.dataPage.list_rows,
|
||||||
page: this.dataPage.page,
|
page: this.dataPage.page,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
// this.$toolAll.tools.showToast(res.msg);
|
// this.$toolAll.tools.showToast(res.msg);
|
||||||
if (res.code == 1) {
|
if (res.code) {
|
||||||
console.log(res.data,"---aa")
|
|
||||||
this.array=[...res.data]
|
this.array=[...res.data]
|
||||||
console.log( this.array)
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 获取工单列表
|
||||||
getDatalist(){
|
getDatalist(){
|
||||||
this.$requst.get('/universal/api.order/order_list',this.dataPage).then(res => {
|
this.$requst.get('/universal/api.order/order_list',this.dataPage).then(res => {
|
||||||
// this.$toolAll.tools.showToast(res.msg);
|
// this.$toolAll.tools.showToast(res.msg);
|
||||||
if (res.code == 1) {
|
if (res.code) {
|
||||||
this.dataList = res.data.data
|
this.dataList = res.data.data
|
||||||
} else if(res.code == 0){
|
} else if(res.code == 0){
|
||||||
this.dataList = res.data.data
|
this.dataList = res.data.data
|
||||||
|
|
Loading…
Reference in New Issue