From 504039db415ca1c04c114dba3d8edc551d34d2c7 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 14 九月 2023 15:11:48 +0800 Subject: [PATCH] 日期码段 回显 --- Source/UBCS-WEB/src/views/docking/loge.vue | 40 +++++++++++++++++++++++++++++++++++++--- 1 files changed, 37 insertions(+), 3 deletions(-) diff --git a/Source/UBCS-WEB/src/views/docking/loge.vue b/Source/UBCS-WEB/src/views/docking/loge.vue index 64d7cce..2de73b5 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,7 +16,7 @@ @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> @@ -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,23 @@ } }, methods: { + dockingGetList(val){ + console.log(val,'val') + this.data=val; + }, + 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); -- Gitblit v1.9.3