From d5a7544f32e8bd3138d0c41f10d06fd6661d81e8 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期二, 12 九月 2023 09:02:47 +0800 Subject: [PATCH] 集成任务 集成数据-双击赋值隐藏内容 --- Source/UBCS-WEB/src/views/docking/loge.vue | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/Source/UBCS-WEB/src/views/docking/loge.vue b/Source/UBCS-WEB/src/views/docking/loge.vue index 64d7cce..136ec29 100644 --- a/Source/UBCS-WEB/src/views/docking/loge.vue +++ b/Source/UBCS-WEB/src/views/docking/loge.vue @@ -7,6 +7,7 @@ :page.sync="page" :permission="permissionList" ref="crud" + @cell-dblclick="cellDbClick" @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange" @@ -30,6 +31,7 @@ name: "loge", data(){ return { + value:'', SearchObject:{ type:'loge', searchData:[ @@ -201,6 +203,19 @@ } }, methods: { + 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