|
|
@@ -1,8 +1,12 @@
|
|
|
<template>
|
|
|
<div class="ele-body">
|
|
|
<el-card shadow="never" v-loading="loading">
|
|
|
-
|
|
|
- <el-tabs v-model="activeTab" @tab-click="handleTabClick" style="margin-bottom: 10px" v-if="$store.state.user.info.clientEnvironmentId == 10" >
|
|
|
+ <el-tabs
|
|
|
+ v-model="activeTab"
|
|
|
+ @tab-click="handleTabClick"
|
|
|
+ style="margin-bottom: 10px"
|
|
|
+ v-if="$store.state.user.info.clientEnvironmentId == 10"
|
|
|
+ >
|
|
|
<el-tab-pane label="全部" name=""></el-tab-pane>
|
|
|
<el-tab-pane label="5号站" name="2008369768909287426"></el-tab-pane>
|
|
|
<el-tab-pane label="6号站" name="2008369839033856001"></el-tab-pane>
|
|
|
@@ -28,7 +32,8 @@
|
|
|
<jimureportBrowse
|
|
|
:businessId="row.id"
|
|
|
businessCode="eampatrolinspectionprint"
|
|
|
- v-if="row.orderStatus == 3" style="width: 80px;display: inline-block;"
|
|
|
+ v-if="row.orderStatus == 3"
|
|
|
+ style="width: 80px; display: inline-block"
|
|
|
></jimureportBrowse>
|
|
|
<el-link
|
|
|
v-if="row.orderStatus !== 3 && row.orderStatus !== 4"
|
|
|
@@ -300,7 +305,7 @@
|
|
|
...where,
|
|
|
type: 7
|
|
|
};
|
|
|
- if (this.activeTab&&this.activeTab!=0) {
|
|
|
+ if (this.activeTab && this.activeTab != 0) {
|
|
|
params.postId = this.activeTab;
|
|
|
}
|
|
|
return getWorkOrderPage(params);
|
|
|
@@ -318,19 +323,27 @@
|
|
|
},
|
|
|
/* 刷新表格 */
|
|
|
reload(where) {
|
|
|
- this.$refs.table.reload({ page: 1, where: { ...where, postId: this.activeTab || undefined } });
|
|
|
+ this.$refs.table.reload({
|
|
|
+ page: 1,
|
|
|
+ where: {
|
|
|
+ ...where,
|
|
|
+ postId: this.activeTab == 0 ? '' : this.activeTab
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
handleTabClick() {
|
|
|
- this.$refs.table.reload({ page: 1, where: { postId: this.activeTab || undefined } });
|
|
|
+ this.$refs.table.reload({
|
|
|
+ page: 1,
|
|
|
+ where: { postId: this.activeTab == 0 ? '' : this.activeTab }
|
|
|
+ });
|
|
|
},
|
|
|
startExecuting(row) {
|
|
|
startExecuting({ id: row.id }).then((res) => {
|
|
|
this.reload();
|
|
|
});
|
|
|
},
|
|
|
- hazardManagementOpen(row){
|
|
|
- this.$refs.hazardManagementRef.open(row)
|
|
|
-
|
|
|
+ hazardManagementOpen(row) {
|
|
|
+ this.$refs.hazardManagementRef.open(row);
|
|
|
},
|
|
|
// 添加备品备件
|
|
|
async addSpareItems(row) {
|