From afedb522ac910d1e5265ad93b9bacb1da41cfefb Mon Sep 17 00:00:00 2001
From: fei.wang <wf18701153496@163.com>
Date: 星期一, 17 三月 2025 10:58:16 +0800
Subject: [PATCH] 新增储罐管理,数据分析新增导出功能

---
 src/views/equipment/monitoring.vue |   33 +++++++++++++++++++++++++++------
 1 files changed, 27 insertions(+), 6 deletions(-)

diff --git a/src/views/equipment/monitoring.vue b/src/views/equipment/monitoring.vue
index 2a00a7f..341590c 100644
--- a/src/views/equipment/monitoring.vue
+++ b/src/views/equipment/monitoring.vue
@@ -243,8 +243,16 @@
     search() {
       this.listLoading = true
       searchEquipment(this.listQuery).then(response => {
-        this.list = response.data.records
-        this.total = response.data.total
+        if (response.data!=null) {
+          this.list = response.data.records
+          this.total = response.data.total
+        }else{
+          this.$message({
+            message: '鏈悳绱㈠埌鏁版嵁',
+            type: 'error'
+          })
+        }
+      
         this.listLoading = false
       })
     },
@@ -286,7 +294,18 @@
       this.resetTemp()
       this.dialogVisible = true
       this.dialogType = 'modify'
+      console.log(scope.row);
+      // this.temp = Object.assign({}, _temp)
+      console.log(this.temp);
+      console.log(deepClone(scope.row));
+      // this.temp.anchorname = scope.row.anchorname
+      
+      // this.temp.id = scope.row.id
+      // this.temp.needbaseid = scope.row.needbaseid
+      // this.temp.tagid = scope.row.tagid
+      // this.temp.type = scope.row.type
       this.temp = deepClone(scope.row)
+      // this.temp.companyid = scope.row.companyid
       this.disabled=true
       // this.$nextTick(() => {
       //   this.$refs['dataForm'].clearValidate()
@@ -313,7 +332,7 @@
           this.list.splice(scope.$index, 1)
           delEquipment(params).then(response => {
             this.temp.adminname = localStorage.getItem('username') || '';
-            const params = { name:  this.temp.adminname, content: '鍒犻櫎浜嗕竴涓熀鍑嗙珯锛岃缂栧彿涓猴細'+scope.row.tagid };
+            const params = { name:  this.temp.adminname, content: '鍒犻櫎浜嗕竴涓洃娴嬬珯锛岃缂栧彿涓猴細'+scope.row.tagid };
             addSystemOperationLog(params).then(response => {
 
                         })
@@ -330,20 +349,22 @@
       if (this.loading) {
         return
       }
-      this.temp.companyid=this.temp.company
+      this.temp.companyid=this.temp.companyid
       this.$refs[this.temp].validate((valid) => {
           if (valid) {
             this.loading = true
+            console.log(this.temp);
+            
       addorupEquipment(this.temp).then(() => {
         if (this.temp.id=="") {
           this.temp.adminname = localStorage.getItem('username') || '';
-            const params = { name:  this.temp.adminname, content: '鏂板浜嗕竴涓熀鍑嗙珯锛岃缂栧彿涓猴細'+this.temp.tagid };
+            const params = { name:  this.temp.adminname, content: '鏂板浜嗕竴涓洃娴嬬珯锛岃缂栧彿涓猴細'+this.temp.tagid };
             addSystemOperationLog(params).then(response => {
 
                         })
         } else {
           this.temp.adminname = localStorage.getItem('username') || '';
-            const params = { name:  this.temp.adminname, content: '淇敼浜嗕竴涓熀鍑嗙珯锛岃缂栧彿涓猴細'+this.temp.tagid };
+            const params = { name:  this.temp.adminname, content: '淇敼浜嗕竴涓洃娴嬬珯锛岃缂栧彿涓猴細'+this.temp.tagid };
             addSystemOperationLog(params).then(response => {
 
                         })

--
Gitblit v1.9.3