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/flow/model.vue | 36 +++++++++++++++++++++++------------- 1 files changed, 23 insertions(+), 13 deletions(-) diff --git a/Source/UBCS-WEB/src/views/flow/model.vue b/Source/UBCS-WEB/src/views/flow/model.vue index 54c7d2a..07f8b4b 100644 --- a/Source/UBCS-WEB/src/views/flow/model.vue +++ b/Source/UBCS-WEB/src/views/flow/model.vue @@ -1,18 +1,19 @@ <template> <basic-container> <avue-crud :option="option" - :table-loading="loading" - :data="data" - ref="crud" - v-model="form" - :page.sync="page" - @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" + @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="primary" size="mini" @@ -202,6 +203,7 @@ option: { height: 'auto', calcHeight: 30, + columnBtn:false, tip: false, searchShow: true, searchMenuSpan: 6, @@ -215,6 +217,7 @@ dialogWidth: 900, menuWidth: 200, dialogClickModal: false, + highlightCurrentRow: true, //琛岄�変腑鏃堕珮浜� size: 'mini', searchSize: 'mini', column: [ @@ -347,7 +350,7 @@ deployModel({ modelId: this.selectionId, category: flowCategory(form.categoryValue), - tenantIds: form.tenantId.join(",") + tenantIds: form.tenantId?form.tenantId.join(","):"" }).then(res => { const data = res.data; if (data.success) { @@ -381,6 +384,13 @@ }, selectionChange(list) { this.selectionList = list; + this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); + }, + clickRowChange(row){ + this.$refs.crud.toggleSelection(); + this.selectionList = row; + this.$refs.crud.setCurrentRow(row); + this.$refs.crud.toggleRowSelection(row); //閫変腑褰撳墠琛� }, selectionClear() { this.selectionList = []; -- Gitblit v1.9.3