From 02e7ca80d849ad8a99974bd08f9e68a78f36d601 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期二, 16 一月 2024 21:51:45 +0800 Subject: [PATCH] 分类授权数据授权界面编写与接口修改 --- Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue | 33 +++++++++++++++++++++++++++------ 1 files changed, 27 insertions(+), 6 deletions(-) diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue index 1db423b..d267825 100644 --- a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue +++ b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue @@ -32,6 +32,10 @@ style="width: 56px;text-align: center;padding-left: 3px" type="primary" @click="classifyAuthHandler">鍒嗙被鎺堟潈 </el-button> + <el-button v-if="permissionList.classifyAuth" plain size="small" + style="width: 56px;text-align: center;padding-left: 3px" type="primary" + @click="dataAuthHandler">鏁版嵁鎺堟潈 + </el-button> </div> <!-- 宸︿晶鏍�--> @@ -116,6 +120,11 @@ :classifyData="classifyData" :visible.sync="classifyAuthVisible" ></classify-auth-dialog> + <!-- 鏁版嵁鎺堟潈瀵硅瘽妗� --> + <data-auth-dialog + :classifyData="classifyData" + :visible.sync="dataAuthVisible" + ></data-auth-dialog> </basic-container> </el-aside> <el-main> @@ -386,13 +395,14 @@ BtmdialogVisible: false, SelectOption: [ { - value: 'name', - label: '涓枃鍚嶇О' + value: 'id', + label: '鑻辨枃鍚嶇О', }, { - value: 'id', - label: '鑻辨枃鍚嶇О' + value: 'name', + label: '涓枃鍚嶇О' } + ], btmSelectOption: [ { @@ -451,6 +461,8 @@ TreeAddFormVisible: false, //鍒嗙被鎺堟潈瀵硅瘽妗� classifyAuthVisible: false, + //鏁版嵁鎺堟潈瀵硅瘽妗� + dataAuthVisible: false, //褰撳墠鐐瑰嚮椤� nodeClickList: "", ClonenodeClickList: "", @@ -758,6 +770,15 @@ } this.classifyData = this.nodeClickList; this.classifyAuthVisible = true; + }, + // 鏁版嵁鎺堟潈瀵硅瘽妗嗘墦寮� + dataAuthHandler() { + if (this.nodeClickList.oid === '' || this.nodeClickList.oid === undefined) { + this.$message.warning('璇疯嚦灏戦�夋嫨涓�鏉℃暟鎹紒') + return; + } + this.classifyData = this.nodeClickList; + this.dataAuthVisible = true; }, flowingDependHandler() { if (this.nodeClickList.length <= 0) { @@ -1115,10 +1136,10 @@ }, //鏍戠偣鍑讳簨浠� async nodeClick(data) { - getAuthButtonList({classifyId: data.oid}).then(res => { + getAuthButtonList({classifyId: data.oid,code: "classifyTree",authType: "classify_auth"}).then(res => { this.btnAuthList = res.data.data; }).catch(error => { - console.log(error) + window.console.log(error) }) //鎿嶄綔鏂板鍜屼慨鏀圭殑涓氬姟绫诲瀷闅愯棌 this.TreeFlagCode = !data; -- Gitblit v1.9.3