From e499960a4f186f1a526899ee985ce0b48ba69fac Mon Sep 17 00:00:00 2001
From: lohir <3399054449@qq.com>
Date: 星期二, 22 十月 2024 17:33:40 +0800
Subject: [PATCH] 完成运维考核-工单白名单-列表展示
---
src/views/system/work-order/threshold/index.vue | 66 +++++++++++++++++++++++++++++++++
src/api/platform/work-order.js | 9 ++++
2 files changed, 75 insertions(+), 0 deletions(-)
diff --git a/src/api/platform/work-order.js b/src/api/platform/work-order.js
index f282e3d..0157dd1 100644
--- a/src/api/platform/work-order.js
+++ b/src/api/platform/work-order.js
@@ -136,3 +136,12 @@
method: 'get'
})
}
+
+// 鑾峰彇宸ュ崟鐧藉悕鍗曞垪琛�
+export function getWhiteList(query) {
+ return request({
+ url: '/work-order/white/page',
+ method: 'post',
+ data: query
+ })
+}
diff --git a/src/views/system/work-order/threshold/index.vue b/src/views/system/work-order/threshold/index.vue
index feb4b44..9546d54 100644
--- a/src/views/system/work-order/threshold/index.vue
+++ b/src/views/system/work-order/threshold/index.vue
@@ -283,6 +283,54 @@
</el-card></el-col
>
</el-row>
+ <el-row class="content-warp">
+ <el-form :model="queryParams" ref="queryForm" size="small" :inline="true">
+ <el-form-item label="璁惧缂栫爜" prop="serialNumber">
+ <el-input
+ v-model="queryParams.serialNumber"
+ placeholder="璁惧缂栫爜"
+ clearable
+ @keyup.enter.native="getWhiteList"
+ @clear="getWhiteList"
+ />
+ </el-form-item>
+ <el-form-item label="鐐逛綅鍚嶇О" prop="pointName">
+ <el-input
+ v-model="queryParams.pointName"
+ placeholder="鐐逛綅鍚嶇О"
+ clearable
+ @keyup.enter.native="getWhiteList"
+ @clear="getWhiteList"
+ />
+ </el-form-item>
+ <el-form-item>
+ <el-button type="primary" icon="el-icon-search" size="small" @click="getWhiteList">鎼滅储</el-button>
+ </el-form-item>
+ </el-form>
+ </el-row>
+ <el-row class="content-warp">
+ <el-button size="small" type="success">鏂板</el-button>
+ <el-button size="small" type="danger">鍒犻櫎</el-button>
+ </el-row>
+ <el-row class="content-warp">
+ <el-col :span="24">
+ <el-table v-loading="loading" :data="workOrderWhiteList">
+ <el-table-column type="selection" width="55" align="center" prop="id"/>
+ <el-table-column label="璁惧缂栫爜" align="center" prop="serialNumber"/>
+ <el-table-column label="鐐逛綅鍚嶇О" align="center" prop="pointName"/>
+ <el-table-column label="鍒涘缓浜�" align="center" prop="createBy"/>
+ <el-table-column label="澶囨敞" align="center" prop="remark"/>
+ </el-table>
+
+ <pagination
+ v-show="total>0"
+ :total="total"
+ :page.sync="queryParams.pageNum"
+ :limit.sync="queryParams.pageSize"
+ @pagination="getWhiteList"
+ />
+ </el-col>
+ </el-row>
</div>
</template>
@@ -299,6 +347,8 @@
getFace,
getVideo,
} from "../../../../api/platform/threshold";
+
+import { getWhiteList } from "@/api/platform/work-order";
export default {
dicts: ["image_qualify", "video_qualify"],
@@ -337,6 +387,8 @@
pageNum: 1,
pageSize: 10,
monitorType: null,
+ serialNumber: null,
+ pointName: null,
},
// 琛ㄥ崟鍙傛暟
videoForm: {},
@@ -407,10 +459,13 @@
{ required: true, message: "璇峰~鍐欐爣娉ㄥ噯纭巼闃堝��", trigger: "blur" },
],
},
+ // 鐧藉悕鍗曞垪琛�
+ workOrderWhiteList: []
};
},
created() {
this.getList();
+ this.getWhiteList();
},
methods: {
showEdit(value) {
@@ -503,6 +558,14 @@
this.videoList = JSON.parse(JSON.stringify(this.thresholdList.video));
this.faceList = JSON.parse(JSON.stringify(this.thresholdList.face));
this.carList = JSON.parse(JSON.stringify(this.thresholdList.car));
+ this.total = response.total;
+ this.loading = false;
+ });
+ },
+ getWhiteList() {
+ this.loading = true;
+ getWhiteList(this.queryParams).then((response) => {
+ this.workOrderWhiteList = response.data;
this.total = response.total;
this.loading = false;
});
@@ -786,4 +849,7 @@
margin-left: 5px;
display: inline-block;
}
+.content-warp {
+ margin-top: 10px;
+}
</style>
--
Gitblit v1.8.0