From 101e8e9738e4bfe0ef7a5170d117b47bf901b8f6 Mon Sep 17 00:00:00 2001 From: ludc <pUXmgxCf6A> Date: 星期一, 29 五月 2023 11:29:48 +0800 Subject: [PATCH] 集团主模型发布接口方法移植开发 --- Source/UBCS-WEB/src/views/report/reportlist.vue | 41 +++++++++++++++++++++++++---------------- 1 files changed, 25 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..fe55a5a 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" @@ -75,6 +76,7 @@ selection: true, viewBtn: true, dialogClickModal: false, + highlightCurrentRow: true, //琛岄�変腑鏃堕珮浜� column: [ { label: "鏂囦欢鍚�", @@ -115,10 +117,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 +149,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