From b4c7c6a738f44afadbc388bb774ac044e7fafe38 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 12 十月 2023 11:24:21 +0800 Subject: [PATCH] 修改列显隐 --- Source/UBCS-WEB/src/views/report/reportlist.vue | 42 ++++++++++++++++++++++++++---------------- 1 files changed, 26 insertions(+), 16 deletions(-) diff --git a/Source/UBCS-WEB/src/views/report/reportlist.vue b/Source/UBCS-WEB/src/views/report/reportlist.vue index b33c12b..953ce0b 100644 --- a/Source/UBCS-WEB/src/views/report/reportlist.vue +++ b/Source/UBCS-WEB/src/views/report/reportlist.vue @@ -1,20 +1,21 @@ <template> <basic-container> <avue-crud :option="option" - :table-loading="loading" - :data="data" - ref="crud" - v-model="form" - :page.sync="page" - :permission="permissionList" - @row-del="rowDel" - @search-change="searchChange" - @search-reset="searchReset" - @selection-change="selectionChange" - @current-change="currentChange" - @size-change="sizeChange" - @refresh-change="refreshChange" - @on-load="onLoad"> + :table-loading="loading" + :data="data" + ref="crud" + v-model="form" + :page.sync="page" + :permission="permissionList" + @row-del="rowDel" + @search-change="searchChange" + @search-reset="searchReset" + @selection-change="selectionChange" + @current-change="currentChange" + @size-change="sizeChange" + @refresh-change="refreshChange" + @row-click="clickRowChange" + @on-load="onLoad"> <template slot="menuLeft"> <el-button type="danger" size="small" @@ -67,6 +68,7 @@ option: { height: 'auto', calcHeight: 30, + columnBtn:false, tip: false, searchShow: true, searchMenuSpan: 6, @@ -75,6 +77,7 @@ selection: true, viewBtn: true, dialogClickModal: false, + highlightCurrentRow: true, //琛岄�変腑鏃堕珮浜� column: [ { label: "鏂囦欢鍚�", @@ -115,10 +118,10 @@ }, methods: { handlePreview(name) { - this.$router.push({path: `/myiframe/urlPath?name=preview-${name}&src=${this.website.reportUrl}/preview?_u=blade-${name}`}); + this.$router.push({path: `/myiframe/urlPath?name=preview-${name}&src=${this.website.reportUrl}/preview?_u=ubcs-${name}`}); }, handleDesign(name) { - this.$router.push({path: `/myiframe/urlPath?name=designer-${name}&src=${this.website.reportUrl}/designer?_u=blade-${name}`}); + this.$router.push({path: `/myiframe/urlPath?name=designer-${name}&src=${this.website.reportUrl}/designer?_u=ubcs-${name}`}); }, rowDel(row) { this.$confirm("纭畾灏嗛�夋嫨鏁版嵁鍒犻櫎?", { @@ -147,8 +150,15 @@ this.onLoad(this.page, params); done(); }, + clickRowChange(row){ + this.$refs.crud.toggleSelection(); + this.selectionList = row; + this.$refs.crud.setCurrentRow(row); + this.$refs.crud.toggleRowSelection(row); //閫変腑褰撳墠琛� + }, selectionChange(list) { this.selectionList = list; + this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); }, selectionClear() { this.selectionList = []; -- Gitblit v1.9.3