From b9698fdce1734673e847ee5f62244dfd27077027 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期三, 11 一月 2023 15:33:36 +0800
Subject: [PATCH] 地图功能

---
 src/views/systemSetting/device/grid/components/main/index.vue |   28 +++++++++++++---------------
 1 files changed, 13 insertions(+), 15 deletions(-)

diff --git a/src/views/systemSetting/device/grid/components/main/index.vue b/src/views/systemSetting/device/grid/components/main/index.vue
index c8639ee..b2164c1 100644
--- a/src/views/systemSetting/device/grid/components/main/index.vue
+++ b/src/views/systemSetting/device/grid/components/main/index.vue
@@ -25,10 +25,14 @@
       </header>
       <!-- 鏁版嵁灞曠ず -->
       <el-table
-          border
-          stripe
+        border
+        stripe
         ref="multipleTable"
-        :header-cell-style="{'background':'#F5F5F5', 'font-weight': '650', 'line-height': '45px' }"
+        :header-cell-style="{
+          background: '#F5F5F5',
+          'font-weight': '650',
+          'line-height': '45px',
+        }"
         :data="tableData"
         style="width: 100%"
         :row-class-name="tableRowClassName"
@@ -175,22 +179,16 @@
     // 鑾峰彇鍒楄〃
     getList() {
       const that = this;
-     const { currentPage, pageSize, context } = this;
+      const { currentPage, pageSize, context } = this;
       this.getOrgGridList({
         currentPage,
         pageSize,
         name: context,
-      })
-        .then((res) => {
-          if (res.code === 200) {
-            res.data.records.forEach((item) => {
-              item.status === 1 ? (item.status = true) : (item.status = false);
-            });
-            that.totalNum = res.data.total;
-            that.tableData = res.data.records;
-            this.renderFlag = true;
-          }
-        });
+      }).then((res) => {
+        that.totalNum = res.total;
+        that.tableData = res.records;
+        this.renderFlag = true;
+      });
     },
     handleAdd() {
       this.handheldGrid = {

--
Gitblit v1.8.0