From df18b23b4569828d6be32fb64c80492241e1fc46 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期一, 16 十月 2023 20:31:43 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS-WEB/src/views/system/post.vue | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Source/UBCS-WEB/src/views/system/post.vue b/Source/UBCS-WEB/src/views/system/post.vue index 3add06b..0c22c51 100644 --- a/Source/UBCS-WEB/src/views/system/post.vue +++ b/Source/UBCS-WEB/src/views/system/post.vue @@ -14,6 +14,7 @@ @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange" + @row-click="clickRowChange" @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @@ -54,6 +55,7 @@ selectionList: [], option: { height: 'auto', + columnBtn:false, calcHeight: 30, tip: false, searchShow: true, @@ -63,12 +65,13 @@ viewBtn: true, selection: true, dialogClickModal: false, + highlightCurrentRow: true, //琛岄�変腑鏃堕珮浜� column: [ { label: "鎵�灞炵鎴�", prop: "tenantId", type: "tree", - dicUrl: "/api/blade-system/tenant/select", + dicUrl: "/api/ubcs-system/tenant/select", addDisplay: false, editDisplay: false, viewDisplay: website.tenantMode, @@ -88,7 +91,7 @@ label: "宀椾綅绫诲瀷", prop: "category", type: "select", - dicUrl: "/api/blade-system/dict/dictionary?code=post_category", + dicUrl: "/api/ubcs-system/dict/dictionary?code=post_category", props: { label: "dictValue", value: "dictKey" @@ -247,8 +250,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