From c60e588944ffbe400cb1f82a00f49df49eec81cf Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期三, 20 九月 2023 20:28:48 +0800
Subject: [PATCH] 引用码段-JSON.parse问题处理

---
 Source/UBCS-WEB/src/views/docking/loge.vue |   46 +++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 41 insertions(+), 5 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/docking/loge.vue b/Source/UBCS-WEB/src/views/docking/loge.vue
index 64d7cce..91a235b 100644
--- a/Source/UBCS-WEB/src/views/docking/loge.vue
+++ b/Source/UBCS-WEB/src/views/docking/loge.vue
@@ -3,10 +3,11 @@
   <basic-container>
     <avue-crud :option="option"
                :table-loading="loading"
-               :data="data"
+               :data="data || getList"
                :page.sync="page"
                :permission="permissionList"
                ref="crud"
+               @cell-dblclick="cellDbClick"
                @search-change="searchChange"
                @search-reset="searchReset"
                @selection-change="selectionChange"
@@ -15,14 +16,14 @@
                @refresh-change="refreshChange"
                @on-load="onLoad">
       <template slot-scope="scope" slot="menuLeft">
-        <vci-docking-search :SearchObject="SearchObject" :page="page"></vci-docking-search>
+        <vci-docking-search :SearchObject="SearchObject" :page="page" :formInline="formInline" :status="status" @getList="dockingGetList"></vci-docking-search>
       </template>
     </avue-crud>
   </basic-container>
 </template>
 
 <script>
-import {getList} from "@/api/docking/loge";
+import {getLogoList} from "@/api/docking/loge";
 import {validatenull} from "@/util/validate";
 import {mapGetters} from "vuex";
 
@@ -30,8 +31,24 @@
   name: "loge",
   data(){
     return {
-      SearchObject:{
+      value:'',
+      //鍚勪釜绫诲瀷鐘舵��
+      status:{
         type:'loge',
+        typeFlag:false,
+        dateFlag:false,
+        stateFlag:false,
+      },
+      //model缁戝畾
+      formInline:{
+        type:'',
+        cut:'',
+        text:'',
+        Date:'',
+        state:''
+      },
+      //闆嗘垚绫诲瀷姝绘暟鎹�
+      SearchObject:{
         searchData:[
           {
             label:'鏁版嵁缂栫爜',
@@ -201,6 +218,25 @@
     }
   },
   methods: {
+    dockingGetList(val){
+      this.data=val.records;
+      this.page.pageSize=val.size;
+      this.page.currentPage=val.current;
+      this.page.total=val.total;
+    },
+    async cellDbClick(row, column, cell, event) {
+      for (const key in row) {
+        if (key === column.property) {
+          this.value = row[key];
+        }
+      }
+      try {
+        await this.$copyText(this.value);
+        this.$message.success('澶嶅埗鎴愬姛');
+      } catch (error) {
+        this.$message.warning('澶嶅埗澶辫触');
+      }
+    },
     searchReset() {
       this.query = {};
       this.onLoad(this.page);
@@ -235,7 +271,7 @@
           query['conditionMap["' + key + '"]'] = this.query[key];
         }
       }
-      getList(page.currentPage, page.pageSize, Object.assign(params,this.params, query,this.query)).then(res => {
+      getLogoList(page.currentPage, page.pageSize, Object.assign(params,this.params, query,this.query)).then(res => {
         const data = res.data.data;
         this.page.total = data.total;
         this.data = data.records;

--
Gitblit v1.9.3