工单列表

master
chen 2022-04-01 09:26:49 +08:00
parent bbece21ba4
commit 25cbc307b6
1 changed files with 10 additions and 10 deletions

View File

@ -109,36 +109,36 @@
} }
}, },
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
} }
}) })
}, },