Compare commits
2 Commits
5abebfbc30
...
1edca208be
Author | SHA1 | Date | |
---|---|---|---|
1edca208be | |||
7a44b8351f |
@ -521,7 +521,11 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
if (this.$route.query.orderId) {
|
||||||
|
this.getQueryData();
|
||||||
|
} else {
|
||||||
this.getList();
|
this.getList();
|
||||||
|
}
|
||||||
this.initSelection();
|
this.initSelection();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -637,6 +641,16 @@ export default {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
/**跳转查询 */
|
||||||
|
async getQueryData() {
|
||||||
|
this.loading = true;
|
||||||
|
const res = await RemoteMaintenanceOrderApi.getRemoteMaintenanceOrder(
|
||||||
|
this.$route.query.orderId
|
||||||
|
);
|
||||||
|
this.list = [res.data];
|
||||||
|
this.total = this.list.length;
|
||||||
|
this.loading = false;
|
||||||
|
},
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
this.queryParams.pageNo = 1;
|
this.queryParams.pageNo = 1;
|
||||||
|
@ -108,6 +108,7 @@
|
|||||||
label="发送时间"
|
label="发送时间"
|
||||||
align="center"
|
align="center"
|
||||||
prop="createTime"
|
prop="createTime"
|
||||||
|
sortable
|
||||||
width="180"
|
width="180"
|
||||||
>
|
>
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
@ -195,7 +196,7 @@
|
|||||||
v-show="scope.row.orderId && scope.row.type === 3"
|
v-show="scope.row.orderId && scope.row.type === 3"
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-check"
|
icon="el-icon-tickets"
|
||||||
@click="handle2MaintenanceOrder(scope.row.orderId)"
|
@click="handle2MaintenanceOrder(scope.row.orderId)"
|
||||||
>维修工单</el-button>
|
>维修工单</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user