From 6029ed7307c4ba8011bef6d205b9ecf6eb937525 Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期三, 04 十二月 2024 16:44:39 +0800 Subject: [PATCH] 数据授权 --- Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue | 30 ++++++++++++++++++++++++------ 1 files changed, 24 insertions(+), 6 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue b/Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue index f1c21f7..2b0c6fa 100644 --- a/Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue +++ b/Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue @@ -50,7 +50,7 @@ <data-view ref="editView" key="editView" :btmNode="nodeRow" :selectRow="title === 'add'?{}:selectRow" :actionMap="actionMap" :readOnly="false" :height="clientHeight-260"></data-view> </div> <span slot="footer" class="dialog-footer"> - <el-button size="small" type="primary" @click="addDialogSavaHandler">纭� 瀹�</el-button> + <el-button size="small" type="primary" @click="addDialogSavaHandler">淇� 瀛�</el-button> <el-button size="small" @click="addDialogClose">鍙� 娑�</el-button> </span> </el-dialog> @@ -264,13 +264,31 @@ }, // 鏂板缂栬緫淇濆瓨 addDialogSavaHandler() { - saveGrand(this.viewData).then(res => { - if (res.data.code === 200) { - this.$message.success(res.data.obj); + let form=this.$refs.editView.form; + form.users='' + form.userGroups=''; + form.roles='' + this.$refs.editView.authData.forEach(item=>{ + let infos=item.name.split(', '); + infos[0]=infos[0].replace('{','') + if(infos[2]=='user}'){ + form.users+=infos[0]+',' + } + if(infos[2]=='userGroup}'){ + form.userGroups+=infos[0]+',' + } + if(infos[2]=='role}'){ + form.roles+=infos[0]+',' + } + }); + console.log(form) + //saveGrand(this.viewData).then(res => { + //if (res.data.code === 200) { + //this.$message.success(res.data.obj); this.getTableList(); this.addDialogClose(); - } - }) + //} + //}) }, // 鏂板缂栬緫瀵硅瘽妗嗗彇娑� addDialogClose() { -- Gitblit v1.9.3