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/authority/apiscope.vue | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Source/UBCS-WEB/src/views/authority/apiscope.vue b/Source/UBCS-WEB/src/views/authority/apiscope.vue index 0163862..133b675 100644 --- a/Source/UBCS-WEB/src/views/authority/apiscope.vue +++ b/Source/UBCS-WEB/src/views/authority/apiscope.vue @@ -12,6 +12,7 @@ @row-save="rowSave" @search-change="searchChange" @search-reset="searchReset" + @row-click="clickRowChange" @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" @@ -50,6 +51,7 @@ :before-open="beforeOpenScope" @search-change="searchChangeScope" @search-reset="searchResetScope" + @row-click="clickRowChangeResetScope" @selection-change="selectionChangeScope" @current-change="currentChangeScope" @size-change="sizeChangeScope" @@ -154,7 +156,7 @@ label: "涓婄骇鑿滃崟", prop: "parentId", type: "tree", - dicUrl: "/api/blade-system/menu/tree", + dicUrl: "/api/ubcs-system/menu/tree", hide: true, props: { label: "title" @@ -348,7 +350,7 @@ { label: "鎺ュ彛绫诲瀷", type: "select", - dicUrl: "/api/blade-system/dict/dictionary?code=api_scope_type", + dicUrl: "/api/ubcs-system/dict/dictionary?code=api_scope_type", props: { label: "dictValue", value: "dictKey" @@ -457,8 +459,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 = []; @@ -615,8 +624,15 @@ this.onLoadScope(this.pageScope, params); done(); }, + clickRowChangeResetScope(row){ + this.$refs.crudScope.toggleSelection(); + this.selectionList = row; + this.$refs.crudScope.setCurrentRow(row); + this.$refs.crudScope.toggleRowSelection(row); //閫変腑褰撳墠琛� + }, selectionChangeScope(list) { this.selectionListScope = list; + this.$refs.crudScope.setCurrentRow(this.selectionList[list.length-1]); }, currentChangeScope(currentPage) { this.pageScope.currentPage = currentPage; -- Gitblit v1.9.3