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