From 61593e5b186f4e83d20d98a70f71f49138b715fa Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 20 七月 2023 15:18:31 +0800
Subject: [PATCH] 前端代码打包
---
Source/UBCS-WEB/src/views/system/menu.vue | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/Source/UBCS-WEB/src/views/system/menu.vue b/Source/UBCS-WEB/src/views/system/menu.vue
index 8d70338..7b87dcb 100644
--- a/Source/UBCS-WEB/src/views/system/menu.vue
+++ b/Source/UBCS-WEB/src/views/system/menu.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"
@@ -69,6 +70,7 @@
total: 0,
},
option: {
+ height: "auto",
lazy: true,
tip: false,
simplePage: true,
@@ -82,6 +84,7 @@
viewBtn: true,
menuWidth: 300,
dialogClickModal: false,
+ highlightCurrentRow: true, //琛岄�変腑鏃堕珮浜�
column: [
{
label: "鑿滃崟鍚嶇О",
@@ -223,6 +226,22 @@
]
},
{
+ label: "璺敱缂撳瓨",
+ prop: "keepAlive",
+ type: "switch",
+ dicData: [
+ {
+ label: "鍚�",
+ value: "false"
+ },
+ {
+ label: "鏄�",
+ value: "true"
+ }
+ ],
+ hide: true
+ },
+ {
label: "鑿滃崟澶囨敞",
prop: "remark",
type: "textarea",
@@ -366,8 +385,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.10.0