From 216989412f66ebf7e6a7d9b67b9d65e00df3f576 Mon Sep 17 00:00:00 2001 From: hyt <958868763@qq.com> Date: Sun, 7 Apr 2024 10:31:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E6=9D=83=E9=99=90=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=96=B0=E5=A2=9E=E3=80=81=E6=96=B0=E5=A2=9E=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=BA=A7=E5=88=AB=E3=80=81=E5=AD=A6=E5=8E=86=E3=80=81?= =?UTF-8?q?=E8=81=8C=E5=8A=A1=E4=B8=8B=E6=8B=89=E4=BF=AE=E6=94=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../menuManagement/configData.js | 4 +- .../roleJurisdiction/buttonSetting.vue | 178 ++++---- .../roleJurisdiction/configData.js | 52 ++- .../roleJurisdiction/dataPermissions.vue | 3 +- .../roleJurisdiction/dataSetting.vue | 186 ++++----- .../roleJurisdiction/index.vue | 81 ++-- .../roleJurisdiction/jurisdictionSetting.vue | 162 ++++---- .../roleJurisdiction/layOutPermissions.vue | 95 +++-- .../roleJurisdiction/rightDialog.vue | 392 +++++++++--------- .../userJurisdiction/dataPermissions.vue | 1 + .../userJurisdiction/index.vue | 12 - .../userSettings/PersonnelSettings/index.vue | 171 ++++---- 12 files changed, 661 insertions(+), 676 deletions(-) diff --git a/src/views/systemMaintenance/menuManagement/configData.js b/src/views/systemMaintenance/menuManagement/configData.js index eb26168..c705d6e 100644 --- a/src/views/systemMaintenance/menuManagement/configData.js +++ b/src/views/systemMaintenance/menuManagement/configData.js @@ -71,10 +71,10 @@ const formRow = [{ tag: 'elRadio', options: [{ label: '是', - value: "1" + value: "0" },{ label: '否', - value: "0", + value: "1", } ] }, diff --git a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/buttonSetting.vue b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/buttonSetting.vue index 014127c..5c1a90d 100644 --- a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/buttonSetting.vue +++ b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/buttonSetting.vue @@ -1,98 +1,98 @@ \ No newline at end of file + .recordText.active { + background: $activeColor; + color: #fff; + } +} + + diff --git a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/configData.js b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/configData.js index 69a7072..7842fff 100644 --- a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/configData.js +++ b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/configData.js @@ -4,41 +4,37 @@ const searchModelJson = [ ] // 页面操作按钮配置 const fucDataJson = [{ - name: '导出', - type: 'danger', - icon: 'el-icon-position' - }, + name: '导出', + type: 'danger', + icon: 'el-icon-position' +}, ] // 表头配置 const tableColumnJson = [ - { - label: '角色编码', - prop: 'r_RoleCode', - tooltip: true, - // sortable:true - }, - { - label: '角色名称', - prop: 'r_RoleName', - tooltip: true, - }, - { - label: '顺序', - prop: 'r_Sort', - tooltip: true, - }, - { - label: '角色描述', - prop: 'r_Description', - tooltip: true, - }, + { + label: '角色编号', + prop: 'roleCode', + tooltip: true, + sortable: true, + }, + { + label: '角色名称', + prop: 'roleName', + tooltip: true, + sortable: true, + }, + { + label: '角色描述 ', + prop: 'description', + tooltip: true, + }, ] export default { - searchModelJson, - fucDataJson, - tableColumnJson, + searchModelJson, + fucDataJson, + tableColumnJson, } diff --git a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/dataPermissions.vue b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/dataPermissions.vue index 23048b9..0bc9b92 100644 --- a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/dataPermissions.vue +++ b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/dataPermissions.vue @@ -39,7 +39,7 @@ v-for="item in scope.row.dataList" :label="item.id" :key="item.id" - >{{ item.name }}{{ item.name }} @@ -89,6 +89,7 @@ export default { }) }, async init() { + return let data = []; const res = await GetAllBilldata({}); if (res.code == 1) { diff --git a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/dataSetting.vue b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/dataSetting.vue index 09e7074..a7e5a2d 100644 --- a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/dataSetting.vue +++ b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/dataSetting.vue @@ -1,87 +1,87 @@ @@ -89,28 +89,28 @@ export default { $activeColor: var(--bg-color, "#00aaff"); .el-icon-star-on { - /* color: #00aa00; */ - color: $activeColor; + /* color: #00aa00; */ + color: $activeColor; } .dataSetting { - color: #000; + color: #000; - .recordText { - border: 1px solid #fff; - width: 80px; - padding: 8px 0; - text-align: center; - font-size: 12px; - cursor: pointer; - background: #f2f2f2; - color: #e0e0e0; - margin: 3px; - } + .recordText { + border: 1px solid #fff; + width: 80px; + padding: 8px 0; + text-align: center; + font-size: 12px; + cursor: pointer; + background: #f2f2f2; + color: #e0e0e0; + margin: 3px; + } - .recordText.active { - background: $activeColor; - color: #fff; - } + .recordText.active { + background: $activeColor; + color: #fff; + } } diff --git a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/index.vue b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/index.vue index 1b3bbe8..342511d 100644 --- a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/index.vue +++ b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/index.vue @@ -59,6 +59,7 @@ import { GetAllBilldata, PopedomSaveData, } from "@/api/apis/jurisdiction"; +import { authApi } from '@/api/apis/auth' export default { name: "review", components: { @@ -95,8 +96,8 @@ export default { }, ], pageModel: { - page: 1, - limit: 20, + pageNum: 1, + pageSize: 20, departmentID: "", Sequence: "", SequenceName: "", @@ -139,7 +140,7 @@ export default { onShow() { }, mounted() { this.initPage(); - this.getMenuData(); + // this.getMenuData(); }, filters: {}, methods: { @@ -183,16 +184,17 @@ export default { // 初始化页面 initPage() { this.getTableList(); - this.getOrganList(); + // this.getOrganList(); this.$refs.userCustomtable.clearRadioIndex(); }, //获取菜单树 async getMenuData() { - let res = await GetMenuButton({}); - if (res.code == 1) { - let arr = JSON.parse(res.data[0]); - this.menuData = JSON.parse(res.data[0]); - this.changeMenu(this.menuData, 0); + // let res = await GetMenuButton({}); + let res = await authApi('sysMenuConfigService', '', 'queryEntityTree', '', { state: 0 }) + if (res.status == 200) { + let arr = res.attribute + this.menuData = res.attribute + this.changeMenu(this.menuData, 0) // this.getButtonArray(this.menuData) } }, @@ -216,13 +218,14 @@ export default { let params = { ...this.pageModel, }; - let res = await RoleGetBillList(params); - if (res.code === 1) { - this.tableData = res.data[1]; + const res = await authApi("sysRoleService","","queryEntityPage","",params) + if (res.status == 200) { + console.log(res,'res') + this.tableData = res.attribute.list; this.$nextTick(() => { // this.$refs.customtable.clearRadioIndex() - this.$refs.userLayout.setPageTotal(res.data[0]); + this.$refs.userLayout.setPageTotal(res.attribute.total); }); this.tabLoading = false; } @@ -244,7 +247,7 @@ export default { // 单选 userRadioChange(val) { this.radioIndex = val.index; - this.userRadioId = val.r_RoleID; + this.userRadioId = val.id; }, // 获取组织列表 async getOrganList() { @@ -266,7 +269,7 @@ export default { }, resetTable() { - this.pageModel.page = 1; + this.pageModel.pageNum = 1; this.userRadioId = false; this.radioIndex = false; this.$nextTick(() => { @@ -283,35 +286,23 @@ export default { } this[btnEven.btnFunciton](); }, + //点击权限设置 async setting() { - this.getMenuData(); - - this.permissionPopup = true; - this.$nextTick(() => { - this.$refs.rightDialog.drawer = true; - this.$refs.rightDialog.buttonLoading = true; + this.getMenuData() + this.permissionPopup = true + this.$nextTick(async() => { + this.$refs.rightDialog.drawer = true + this.$refs.rightDialog.buttonLoading = true let params = { - objectID: this.userRadioId, - kindid: 2, - }; - GetPppedomSet(params).then((res) => { - if (res.code == 1) { - const data = res.data; - let menuIDs = - data[0].length > 0 ? data[0][0].fp_MenuIdList.split(",") : []; - let echo = data[1].length > 0 ? data[1] : []; - this.$refs.rightDialog.exhibitList(menuIDs, echo, this.userRadioId); - let dataPermissions = data[2].length > 0 ? data[2] : []; - this.$refs.rightDialog.$refs.dataPermissions.selectedList = - dataPermissions; - this.$refs.rightDialog.$refs.layOutPermissions.selectedList = res - .data[3][0] - ? res.data[3][0].widgetList - : ""; - // this.menuData = this.addToButtonList(this.menuData,echo) - } - }); - }); + id: this.userRadioId, + kindId: 2 + } + const res = await authApi('sysUserService', '', 'jurisdiction', '',params) + if (res.status == 200) { + const data = res.attribute + this.$refs.rightDialog.exhibitList(res.attribute.menvVoList,res.attribute.homeList,this.userRadioId) + } + }) }, // setting() { // if (this.radioIndex === false) { @@ -325,7 +316,7 @@ export default { async GetPppedomData() { let params = { objectID: this.userRadioId, - kindid: 2, + kindId: 2, }; let res = await GetPppedomSet(params); if (res.code == 1) { @@ -360,8 +351,8 @@ export default { return array; }, pageChange(model) { - this.pageModel.page = model.page; - this.pageModel.limit = model.limit; + this.pageModel.pageNum = model.page; + this.pageModel.pageSize = model.limit; this.getTableList(); }, settingConfirmClick() { diff --git a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/jurisdictionSetting.vue b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/jurisdictionSetting.vue index df6167f..fc0a5bf 100644 --- a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/jurisdictionSetting.vue +++ b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/jurisdictionSetting.vue @@ -1,13 +1,13 @@ diff --git a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/layOutPermissions.vue b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/layOutPermissions.vue index 7d42f0e..cec1c56 100644 --- a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/layOutPermissions.vue +++ b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/layOutPermissions.vue @@ -18,11 +18,8 @@ font-size: 25px; margin-right: 7px; " - v-show=" - scope.row.dataList.length != 0 && - scope.row.dataList.length == scope.row.buttonList.length - " - @click="cancellation(scope.row)" + v-show="btnShowHandle(homeList,true)" + @click="cancellation(homeList)" > - - {{ item.name }} - + {{ item.name }} @@ -54,63 +41,81 @@ diff --git a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/rightDialog.vue b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/rightDialog.vue index 63f21de..499e429 100644 --- a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/rightDialog.vue +++ b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/rightDialog.vue @@ -38,46 +38,40 @@ > - + @@ -91,11 +85,13 @@