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/difference.vue |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/src/views/equipment/difference.vue b/src/views/equipment/difference.vue
index 44aafb4..0b40380 100644
--- a/src/views/equipment/difference.vue
+++ b/src/views/equipment/difference.vue
@@ -220,8 +220,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
       })
     },
@@ -262,6 +270,12 @@
       this.resetTemp()
       this.dialogVisible = true
       this.dialogType = 'modify'
+      // this.temp.anchorname = scope.row.anchorname
+      // this.temp.companyid = scope.row.companyid
+      // 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.$nextTick(() => {
       //   this.$refs['dataForm'].clearValidate()
@@ -307,7 +321,7 @@
       if (this.loading) {
         return
       }
-      this.temp.companyid=this.temp.company
+      this.temp.companyid=this.temp.companyid
       this.loading = true
       this.$refs[this.temp].validate((valid) => {
         if (valid) {

--
Gitblit v1.9.3