From 885baab441cf03e1d3ea02400f9eee9aa530c7fa Mon Sep 17 00:00:00 2001
From: xiejun <xj@2023>
Date: 星期一, 14 八月 2023 01:23:59 +0800
Subject: [PATCH] PDM集成swing界面相关功能开发
---
Source/UBCS-WEB/src/views/system/post.vue | 13 +++++++++++--
1 files changed, 11 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..c702914 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"
@@ -63,12 +64,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 +90,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 +249,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