From bab3c509ded84f1caa3d8e79a65b7113db8913df Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期五, 24 三月 2023 16:04:47 +0800 Subject: [PATCH] 一张图图层控制修改,发布管理添加表格双击复制功能,发布管理页面模型附件管理页面修改,在线制图修改 --- src/views/Archive/index.vue | 23 ++++++++++++++++++++--- 1 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/views/Archive/index.vue b/src/views/Archive/index.vue index 0070f9d..22b68eb 100644 --- a/src/views/Archive/index.vue +++ b/src/views/Archive/index.vue @@ -552,6 +552,7 @@ </el-form-item> </el-form> <el-table + @cell-dblclick="copyText" :data="tableAttach" ref="filterTable" height="calc(100% - 130px)" @@ -650,6 +651,7 @@ </el-form> <el-divider /> <el-table + @cell-dblclick="copyText" ref="filterTable" :data="tableData" border @@ -773,6 +775,7 @@ <div class="downloadBox"> <div class="archdowntop"> <el-table + @cell-dblclick="copyText" :data="downloadTableData" style="width: 100%" height="calc(100% - 5px)" @@ -850,6 +853,7 @@ <div style="height: 65vh; width: 100%"> <el-table + @cell-dblclick="copyText" ref="filterTable" :data="metaDataTable1" style="width: 100%" @@ -954,6 +958,7 @@ </el-form-item> </el-form> <el-table + @cell-dblclick="copyText" ref="filterTable" :data="metaDataTable" style="width: 100%" @@ -1064,11 +1069,13 @@ v-if="dialog.isJpg" class="pdfClass" > - <img + <el-image style="width:100%; height:100%" :src="dialog.src" - alt="" - /> + :preview-src-list="[dialog.src]" + > + </el-image> + </div> </el-dialog> @@ -1245,6 +1252,16 @@ this.signGetPublicKey(); }, methods: { + copyText(row, column, cell, event) { + // 鍙屽嚮澶嶅埗 + let save = function (e) { + e.clipboardData.setData('text/plain', event.target.innerText); + e.preventDefault(); //闃绘榛樿琛屼负 + } + document.addEventListener('copy', save);//娣诲姞涓�涓猚opy浜嬩欢 + document.execCommand("copy");//鎵цcopy鏂规硶 + this.$message({ message: '澶嶅埗鎴愬姛', type: 'success' })//鎻愮ず + }, //鎵归噺涓嬭浇澶嶉�夋chagne handleCheckedDataTypeChange(res) { var std = 0; -- Gitblit v1.9.3