工单列表

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