From 7bf7f4969afaa8ccc57cb161427b800d7c3f7c2e Mon Sep 17 00:00:00 2001
From: hailu <962012470@qq.com>
Date: 星期日, 17 十二月 2023 16:53:38 +0800
Subject: [PATCH] 故障,滤芯
---
src/views/index.vue | 43 +++++++++++++++++++++++++++++++------------
1 files changed, 31 insertions(+), 12 deletions(-)
diff --git a/src/views/index.vue b/src/views/index.vue
index 348189a..513db9c 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -91,7 +91,6 @@
<img src="../assets/images/less.png" alt=""
style="width: 100px;height: 100px;margin-left: calc(50% - 50px);">
</div>
-
</el-card>
</el-col>
</el-row>
@@ -103,14 +102,34 @@
<span>璁惧鏁呴殰琛�</span>
<el-button style="float: right; padding: 3px 0" type="text" @click="goFaultList">鏇村</el-button>
</div>
- <el-table :data="tableWXData" style="width: 100%" v-if="tableWXData.length > 0">
- <el-table-column prop="id" label="璁惧鍚嶇О">
+ <el-table :data="faultList" style="width: 100%" v-if="faultList.length > 0">
+ <el-table-column prop="deviceName" label="璁惧鍚嶇О">
</el-table-column>
- <el-table-column prop="erectoName" label="瀹㈡埛鍚�" width="100">
+ <el-table-column prop="userName" label="瀹㈡埛鍚�" width="100">
</el-table-column>
- <el-table-column prop="userName" label="瀹㈡埛鐢佃瘽" width="100">
+ <el-table-column prop="userPhone" label="瀹㈡埛鐢佃瘽" width="100">
</el-table-column>
<el-table-column prop="userPhone" label="璁惧鏁呴殰鎻忚堪">
+ <template slot-scope="scope">
+ <div v-if="scope.row.sysStatus == 0">
+ 姝e父绌洪棽鐘舵��
+ </div>
+ <div v-if="scope.row.sysStatus == 1">
+ 缂烘按鍋滄満鐘舵��
+ </div>
+ <div v-if="scope.row.sysStatus == 2">
+ 鍒舵按涓�
+ </div>
+ <div v-if="scope.row.sysStatus == 3">
+ 鍐叉礂涓�
+ </div>
+ <div v-if="scope.row.sysStatus == 4">
+ 缁存姢涓�
+ </div>
+ <div v-if="scope.row.sysStatus == 5">
+ 鏈縺娲�
+ </div>
+ </template>
</el-table-column>
</el-table>
<div style="width: 100%;height: 117px;" v-else>
@@ -135,16 +154,16 @@
<el-table-column label="婊よ姱瀵垮懡">
<template slot-scope="scope">
<div v-if="scope.row.filterA != null">
- {{ scope.row.filterA }}%
+ 婊よ姱{{ scope.row.filterA }}%
</div>
<div v-if="scope.row.filterB != null">
- {{ scope.row.filterB }}%
+ 婊よ姱{{ scope.row.filterB }}%
</div>
<div v-if="scope.row.filterC != null">
- {{ scope.row.filterC }}%
+ 婊よ姱{{ scope.row.filterC }}%
</div>
<div v-if="scope.row.filterD != null">
- {{ scope.row.filterD }}%
+ 婊よ姱{{ scope.row.filterD }}%
</div>
</template>
</el-table-column>
@@ -575,7 +594,7 @@
this.getListAZ() //鑾峰彇瀹夎鍒楄〃
this.getListWX() //鑾峰彇缁翠慨鍒楄〃
this.getCartridgeList() //鑾峰彇婊よ姱瀵垮懡
- // this.deviceFault() //鑾峰彇璁惧鏁呴殰
+ this.deviceFault() //鑾峰彇璁惧鏁呴殰
},
methods: {
@@ -660,8 +679,8 @@
//
}
request({
- url: `/iot/device/faultList/${localStorage.getItem('userID')}`,
- // url: `/iot/device/faultList`,//鎺ュ彛鏂瑰紡
+ // url: `/iot/device/faultList/${localStorage.getItem('userID')}`,
+ url: `/iot/device/deviceMalfunction`,//鎺ュ彛鏂瑰紡
method: "get",
// params:data, //濡傛灉闇�瑕佷紶鍙傚氨鏀惧紑
}).then((res) => {
--
Gitblit v1.8.0