From 4ac408e9a9c9c24ef0ea3e12004a500238956103 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Wed, 28 Apr 2021 11:55:00 +0800
Subject: [PATCH] 地图 热力图  设备 视频 详情页 图标

---
 src/views/system/cs.vue |   28 ++++++++++++++++++++--------
 1 files changed, 20 insertions(+), 8 deletions(-)

diff --git a/src/views/system/cs.vue b/src/views/system/cs.vue
index 88df297..aea8195 100644
--- a/src/views/system/cs.vue
+++ b/src/views/system/cs.vue
@@ -103,10 +103,9 @@
       <div class="r-o-our">
         <avue-crud
           :option="options"
-          :data="datas"
-          :table-loading="loadings"
-          :page="pages"
           @on-load="onLoads"
+          :data="datas"
+          :page="pages"
           @search-change="searchChanges"
           @search-reset="searchResets"
           @row-click="rowClicks"
@@ -120,7 +119,7 @@
 </template>
 
 <script>
-import { getAll, getListliu, getListliuc } from "@/api/client/client";
+import { getListliu, getListliuc } from "@/api/client/client";
 import {
   getList,
   getDetail,
@@ -159,7 +158,7 @@
       datasourceBox: false,
       dialogVisible: false, //右侧弹窗
       onceData: {}, //数据
-      datas: "", //cc
+      datas: [], //cc
       loadings: true, //等待
       querys: {}, //搜索
       pages: {
@@ -173,6 +172,7 @@
         height: "auto",
         indexLabel: "序号",
         index: true,
+        card:true,
         menu: false,
         header: false,
         searchShow: true,
@@ -207,7 +207,7 @@
           {
             label: "设备编号",
             prop: "deviceNumber",
-            width: 110,
+            width: 110,  
           },
           {
             label: "使用方",
@@ -762,7 +762,7 @@
       return this.selectionList[0].tenantId;
     },
   },
-  methods: {
+  methods: {  
     rowSave(row, done, loading) {
       add(row).then(
         () => {
@@ -1169,6 +1169,11 @@
           });
         }
       }
+      // this.users.push([
+      //   {
+
+      //   }
+      // ])
       this.options.column[2].dicData = this.users;
     },
     searchResets() {
@@ -1196,14 +1201,20 @@
     onLoads(pages, params = {}) {
       // this.$message.success("分页信息:" + JSON.stringify(pages));
       // this.pages.total = 40;
+      console.log(1)
       this.loadings = true;
+     console.log(2)
       let values = {
         ...params,
       };
+        console.log(3)
       // getListliu(1, 10, {}, val.id).then((res) => {
-      var useId = this.onceData.deptId;
+        var useId = this.onceData.deptId;
+          console.log(4)
       getListliu(pages.currentPage, pages.pageSize, values, useId).then(
         (res) => {
+            console.log(5)
+          console.log(pages.currentPage, pages.pageSize, values, useId,332332)
           // console.log(this.datas);
           // getListliu('1', '10', {}, '1353972967828533249').then((res) => {
           //拿到数据
@@ -1219,6 +1230,7 @@
           this.loadings = false;
         }
       );
+      
     },
   },
   mounted() {},

--
Gitblit v1.9.3