From 0b5d56b06178956e65891875696d3eba4ddb0f1f Mon Sep 17 00:00:00 2001 From: hyt <958868763@qq.com> Date: Tue, 26 Mar 2024 13:47:11 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E9=9B=86=E6=88=90=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=8C=89=E9=92=AE=E6=96=B0=E5=A2=9E=E3=80=81?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newIntegrationTask/foregroundTask/rightDialog.vue | 4 ---- src/views/newIntegrationTask/plugInOptions/rightDialog.vue | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/newIntegrationTask/foregroundTask/rightDialog.vue b/src/views/newIntegrationTask/foregroundTask/rightDialog.vue index 274bedc..f534e12 100644 --- a/src/views/newIntegrationTask/foregroundTask/rightDialog.vue +++ b/src/views/newIntegrationTask/foregroundTask/rightDialog.vue @@ -218,10 +218,6 @@ export default { this.submitShow = true; this.isEdit = false this.funData = [ - { - color: "#ff0000", - text: "删除", - } ] // 新增 if (type == "add") { diff --git a/src/views/newIntegrationTask/plugInOptions/rightDialog.vue b/src/views/newIntegrationTask/plugInOptions/rightDialog.vue index c01bf2b..5611032 100644 --- a/src/views/newIntegrationTask/plugInOptions/rightDialog.vue +++ b/src/views/newIntegrationTask/plugInOptions/rightDialog.vue @@ -151,6 +151,10 @@ export default { this.submitShow = true; this.isEdit = false this.funData = [ + { + color: "#ff0000", + text: "删除", + } ] // 新增 if (type == "add") { From d413a8c1a7f228362564770e062b4c6f66fcc70a Mon Sep 17 00:00:00 2001 From: hyt <958868763@qq.com> Date: Tue, 26 Mar 2024 14:21:37 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=8F=98=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E3=80=81form=E6=8F=92=E6=A7=BD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/base/baseNewForm/index.vue | 956 +++++++++--------- .../foregroundTask/baseNewSelect.vue | 2 +- .../foregroundTask/index.vue | 8 +- .../foregroundTask/rightDialog.vue | 9 +- .../plugInOptions/rightDialog.vue | 38 +- 5 files changed, 521 insertions(+), 492 deletions(-) diff --git a/src/components/base/baseNewForm/index.vue b/src/components/base/baseNewForm/index.vue index 7a80daa..dedd948 100644 --- a/src/components/base/baseNewForm/index.vue +++ b/src/components/base/baseNewForm/index.vue @@ -4,541 +4,541 @@ * @date: 2022-08-24 --> diff --git a/src/views/newIntegrationTask/foregroundTask/baseNewSelect.vue b/src/views/newIntegrationTask/foregroundTask/baseNewSelect.vue index 3304fa5..d314abb 100644 --- a/src/views/newIntegrationTask/foregroundTask/baseNewSelect.vue +++ b/src/views/newIntegrationTask/foregroundTask/baseNewSelect.vue @@ -46,7 +46,7 @@
{{ showValue }}
diff --git a/src/views/newIntegrationTask/foregroundTask/index.vue b/src/views/newIntegrationTask/foregroundTask/index.vue index 04a1cd6..0f08633 100644 --- a/src/views/newIntegrationTask/foregroundTask/index.vue +++ b/src/views/newIntegrationTask/foregroundTask/index.vue @@ -74,7 +74,7 @@ export default { { color: "#6a9af1", - text: "编辑", + text: "重推", }, { color: "#d67a74", @@ -137,15 +137,15 @@ export default { add() { this.$refs.rightDialog.openDialog("add"); }, - // 表格操作事件 查看 编辑 删除 + // 表格操作事件 查看 重推 删除 onFunc(index, row,item) { // 查看 if (item.text==='查看') { this.openLoading("detail"); this.$refs.rightDialog.openDialog("show", row); } - // 编辑 - if (item.text==='编辑') { + // 重推 + if (item.text==='重推') { this.openLoading("detail"); this.$refs.rightDialog.openDialog("edit", row); } diff --git a/src/views/newIntegrationTask/foregroundTask/rightDialog.vue b/src/views/newIntegrationTask/foregroundTask/rightDialog.vue index f534e12..2ca4e70 100644 --- a/src/views/newIntegrationTask/foregroundTask/rightDialog.vue +++ b/src/views/newIntegrationTask/foregroundTask/rightDialog.vue @@ -42,7 +42,7 @@ :funData="funData" @onFunc="onFunc" > - + @@ -141,6 +193,8 @@ export default { isEdit: false, select_dist:{}, plugNameOptions:[], + tableColumn:configData.operationTableColumn,//操作记录 + tableData:[], }; }, mounted() { @@ -265,6 +319,7 @@ export default { this.$set(item,'endDate',item.argValue.split("/")[1]) } }) + this.tableData=res.attribute.sysIntegratedForegroundTaskParameterEntities // let result = []; // this.tableVersionData = Object.assign([], result); }); @@ -384,6 +439,10 @@ export default { diff --git a/src/components/base/baseLayout/index.vue b/src/components/base/baseLayout/index.vue index 65d292e..59d8bc4 100644 --- a/src/components/base/baseLayout/index.vue +++ b/src/components/base/baseLayout/index.vue @@ -5,142 +5,219 @@ --> @@ -148,7 +225,6 @@ diff --git a/src/components/base/baseOrganization/index.vue b/src/components/base/baseOrganization/index.vue index cc2d85e..95975e9 100644 --- a/src/components/base/baseOrganization/index.vue +++ b/src/components/base/baseOrganization/index.vue @@ -21,7 +21,7 @@
- +
@@ -100,6 +100,7 @@ export default { }, // 菜单树选中 handleNodeClick(data) { + console.log(data) this.organizationForm = data }, // 清空form @@ -126,4 +127,4 @@ export default { border-radius: 5px; } } - \ No newline at end of file + diff --git a/src/components/base/basePerson/index.vue b/src/components/base/basePerson/index.vue index 8a3167c..a1b7051 100644 --- a/src/components/base/basePerson/index.vue +++ b/src/components/base/basePerson/index.vue @@ -29,6 +29,7 @@ + + \ No newline at end of file diff --git a/src/views/doraChunk/components/menuChunk/index copy.vue b/src/views/doraChunk/components/menuChunk/index copy.vue new file mode 100644 index 0000000..4d02ae8 --- /dev/null +++ b/src/views/doraChunk/components/menuChunk/index copy.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/src/views/doraChunk/components/menuChunk/index.vue b/src/views/doraChunk/components/menuChunk/index.vue new file mode 100644 index 0000000..e7dbc5d --- /dev/null +++ b/src/views/doraChunk/components/menuChunk/index.vue @@ -0,0 +1,120 @@ + + + + + diff --git a/src/views/doraChunk/components/optionsChunk/index.vue b/src/views/doraChunk/components/optionsChunk/index.vue new file mode 100644 index 0000000..30ae3e9 --- /dev/null +++ b/src/views/doraChunk/components/optionsChunk/index.vue @@ -0,0 +1,169 @@ + + + + + diff --git a/src/views/doraChunk/config/indexChunkConfig.js b/src/views/doraChunk/config/indexChunkConfig.js new file mode 100644 index 0000000..6b5a3ef --- /dev/null +++ b/src/views/doraChunk/config/indexChunkConfig.js @@ -0,0 +1,206 @@ +/** + * huyitong 2023-09-05 + * tag:"layOutChunk"首页模块 + * name:"左侧拖拽菜单显示名" + * icon:“左侧拖拽菜单显示icon” + * min:最小宽度 + * width:初始宽度 + * defaultWidth:默认宽度(还原默认用) + * componentName:组件名(需去@/components/index.js提前注册) + * alignCenter:是否居中 + */ +const config = [ + // { + // name: "今日数据概览-普通员工", + // componentName: "employeeTodayData", + // width: 60, + // defaultWidth: 60, + // min: 10, + // icon: "el-icon-picture-outline-round", + // tag: "layOutChunk", + // alignCenter: false, + // }, + { + name: "任务预警", + componentName: "taskWarning", + width: 32, + defaultWidth: 32, + min: 10, + icon: "el-icon-picture-outline-round", + tag: "layOutChunk", + alignCenter: false, + }, + { + name: "合同预警", + componentName: "contractWarning", + width: 32, + defaultWidth: 32, + min: 10, + icon: "el-icon-picture-outline-round", + tag: "layOutChunk", + alignCenter: false, + }, + { + name: "待审工作", + componentName: "agencyReviewWork", + width: 32, + defaultWidth: 32, + min: 10, + icon: "el-icon-picture-outline-round", + tag: "layOutChunk", + alignCenter: false, + }, + { + name: "项目预警", + componentName: "projectWarning", + width: 32, + defaultWidth: 32, + min: 10, + icon: "el-icon-picture-outline-round", + tag: "layOutChunk", + alignCenter: false, + }, + { + name: "交接单未立项", + componentName: "contractHandover", + width: 16, + defaultWidth: 16, + min: 10, + icon: "el-icon-picture-outline-round", + tag: "layOutChunk", + alignCenter: false, + }, + { + name: "本月任务数", + componentName: "employeeMonthTask", + width: 35, + min: 10, + defaultWidth: 35, + icon: "el-icon-menu", + tag: "layOutChunk", + alignCenter: false, + }, + { + name: "本周任务", + componentName: "employeeWeekTask", + width: 60, + min: 10, + defaultWidth: 60, + icon: "el-icon-s-cooperation", + tag: "layOutChunk", + alignCenter: false, + }, + { + name: "快捷操作区", + componentName: "quickOperation", + width: 35, + min: 10, + defaultWidth: 35, + icon: "el-icon-s-cooperation", + tag: "layOutChunk", + alignCenter: false, + }, + { + name: "我的周计划", + componentName: "weekPlan", + width: 35, + min: 10, + defaultWidth: 35, + icon: "el-icon-s-release", + tag: "layOutChunk", + alignCenter: false, + }, + { + name: "我的审批", + componentName: "approval", + width: 35, + min: 10, + defaultWidth: 35, + icon: "el-icon-date", + tag: "layOutChunk", + alignCenter: false, + }, + // { + // name: "今日数据概览-项目经理", + // componentName: "projectManagerTodayData", + // width: 60, + // defaultWidth: 60, + // min: 10, + // icon: "el-icon-s-check", + // tag: "layOutChunk", + // alignCenter: false, + // }, + { + name: "未处理问题", + componentName: "projectManagerProblem", + width: 35, + min: 10, + defaultWidth: 35, + icon: "el-icon-s-claim", + tag: "layOutChunk", + alignCenter: false, + }, + { + name: "项目阶段预警", + componentName: "projectManagerProjectWarning", + width: 60, + defaultWidth: 60, + min: 10, + icon: "el-icon-picture-outline-round", + tag: "littleModule", + alignCenter: false, + }, + { + name: "重点项目跟进", + componentName: "keyProject", + width: 60, + defaultWidth: 60, + min: 10, + icon: "el-icon-picture-outline-round", + tag: "littleModule", + alignCenter: false, + }, + // { + // name: "今日数据概览-业务员", + // componentName: "salesManTodayData", + // width: 60, + // defaultWidth: 60, + // min: 10, + // icon: "el-icon-picture-outline-round", + // tag: "littleModule", + // alignCenter: false, + // }, + { + name: "回款认领", + componentName: "salesMamRefundClaim", + width: 60, + defaultWidth: 60, + min: 10, + icon: "el-icon-picture-outline-round", + tag: "littleModule", + alignCenter: false, + }, + { + name: "合同收款预警", + componentName: "salesManCollectionWarning", + width: 60, + defaultWidth: 60, + min: 10, + icon: "el-icon-picture-outline-round", + tag: "littleModule", + alignCenter: false, + }, + { + name: "今日天气", + componentName: "weatherChunk", + width: 35, + defaultWidth: 35, + min: 10, + icon: "el-icon-picture-outline-round", + tag: "littleModule", + alignCenter: false, + }, +]; +export default { + config, +}; diff --git a/src/views/doraChunk/config/littleModule.js b/src/views/doraChunk/config/littleModule.js new file mode 100644 index 0000000..65362b1 --- /dev/null +++ b/src/views/doraChunk/config/littleModule.js @@ -0,0 +1,6 @@ +const config = [ + +] +export default { + config, +}; \ No newline at end of file diff --git a/src/views/doraChunk/index.vue b/src/views/doraChunk/index.vue new file mode 100644 index 0000000..5fa8b95 --- /dev/null +++ b/src/views/doraChunk/index.vue @@ -0,0 +1,137 @@ + + + + + diff --git a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/buttonSetting.vue b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/buttonSetting.vue index ed486c5..014127c 100644 --- a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/buttonSetting.vue +++ b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/buttonSetting.vue @@ -1,98 +1,98 @@ - diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 1ab3dc6..085393b 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -14,7 +14,7 @@ - + diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue index fe57342..72e2b9d 100644 --- a/src/layout/components/Sidebar/SidebarItem.vue +++ b/src/layout/components/Sidebar/SidebarItem.vue @@ -5,25 +5,25 @@ - + - +
- + {{onlyOneChild.meta.title}}
- + {{onlyOneChild.meta.title}}
@@ -32,7 +32,7 @@ diff --git a/src/layout/components/Sidebar/childrenAppSider.vue b/src/layout/components/Sidebar/childrenAppSider.vue index c44c0bd..bb27416 100644 --- a/src/layout/components/Sidebar/childrenAppSider.vue +++ b/src/layout/components/Sidebar/childrenAppSider.vue @@ -3,7 +3,7 @@
- +
@@ -20,7 +20,7 @@
- + @@ -93,7 +93,7 @@ export default { this.$emit("openChildren", item); }, async collectClick(val) { - // console.log(val.meta.icon); + // console.log(val.meta.menuIcon); let params = { mcId: val.id, type: "", @@ -344,4 +344,4 @@ $activeColor: var(--bg-color, "#00aaff"); border-radius: 8px; color: #ffffff; } - \ No newline at end of file + diff --git a/src/layout/components/Sidebar/newsSider.vue b/src/layout/components/Sidebar/newsSider.vue index bb8ce84..4b0e005 100644 --- a/src/layout/components/Sidebar/newsSider.vue +++ b/src/layout/components/Sidebar/newsSider.vue @@ -30,7 +30,7 @@ @mouseenter="openChildren(item, index)" @click="goRouter(item, index)" > - +

{{ item.meta.title }}

diff --git a/src/layout/components/Sidebar/newsSiderApp.vue b/src/layout/components/Sidebar/newsSiderApp.vue index 6a9bf72..6be1175 100644 --- a/src/layout/components/Sidebar/newsSiderApp.vue +++ b/src/layout/components/Sidebar/newsSiderApp.vue @@ -29,8 +29,8 @@ class="newsSider" @mouseenter="openChildren(item, index)" > - - + +

{{ item.meta.title }}

diff --git a/src/layout/components_new/Sidebar/SidebarItem.vue b/src/layout/components_new/Sidebar/SidebarItem.vue index fe57342..72e2b9d 100644 --- a/src/layout/components_new/Sidebar/SidebarItem.vue +++ b/src/layout/components_new/Sidebar/SidebarItem.vue @@ -5,25 +5,25 @@ - + - +
- + {{onlyOneChild.meta.title}}
- + {{onlyOneChild.meta.title}}
@@ -32,7 +32,7 @@ diff --git a/src/layout/components_new/Sidebar/childrenAppSider.vue b/src/layout/components_new/Sidebar/childrenAppSider.vue index 18b12c1..4733982 100644 --- a/src/layout/components_new/Sidebar/childrenAppSider.vue +++ b/src/layout/components_new/Sidebar/childrenAppSider.vue @@ -3,7 +3,7 @@
- +
@@ -20,7 +20,7 @@
- + @@ -93,7 +93,7 @@ export default { this.$emit("openChildren", item); }, async collectClick(val) { - // console.log(val.meta.icon); + // console.log(val.meta.menuIcon); let params = { mcId: val.id, type: "", @@ -345,4 +345,4 @@ $activeColor: var(--bg-color, "#00aaff"); border-radius: 8px; color: #ffffff; } - \ No newline at end of file + diff --git a/src/layout/components_new/Sidebar/newsSider.vue b/src/layout/components_new/Sidebar/newsSider.vue index 457c356..283cf03 100644 --- a/src/layout/components_new/Sidebar/newsSider.vue +++ b/src/layout/components_new/Sidebar/newsSider.vue @@ -14,7 +14,7 @@
- +

{{ item.meta.title }}

diff --git a/src/layout/components_new/Sidebar/newsSiderApp.vue b/src/layout/components_new/Sidebar/newsSiderApp.vue index 66f744e..d360366 100644 --- a/src/layout/components_new/Sidebar/newsSiderApp.vue +++ b/src/layout/components_new/Sidebar/newsSiderApp.vue @@ -14,7 +14,7 @@
- +

{{ item.meta.title }}

diff --git a/src/views/systemMaintenance/buttonManagement/configData.js b/src/views/systemMaintenance/buttonManagement/configData.js index 8a52254..32ac59d 100644 --- a/src/views/systemMaintenance/buttonManagement/configData.js +++ b/src/views/systemMaintenance/buttonManagement/configData.js @@ -1,157 +1,174 @@ // 表头配置 const tableColumnJson = [ - { - label: '按钮编号', - prop: 'code', - tooltip: true, - }, - { - label: '按钮中文编码', - prop: 'nameEN', - tooltip: true, - }, - { - label: '按钮英文编码', - prop: 'nameEN', - tooltip: true, - }, - { - label: '按钮格式', - prop: 'style', - tooltip: true, - }, - { - label: '按钮图标', - prop: 'icoName', - tooltip: true - }, - { - label: '按钮方法', - prop: 'btnFunction', - tooltip: true - }, - { - label: '按钮顺序', - prop: 'sort', - tooltip: true, - }, - { - label: '备注', - prop: 'remark', - tooltip: true - }, - { - label: '创建时间', - prop: 'createTime', - tooltip: true - }, - // { - // label: '删除标识', - // prop: 'IsDelete', - // tooltip: true - // }, + { + label: '按钮编号', + prop: 'code', + tooltip: true, + }, + { + label: '按钮中文编码', + prop: 'nameCh', + tooltip: true, + }, + { + label: '按钮英文编码', + prop: 'nameEn', + tooltip: true, + }, + { + label: '按钮格式', + prop: 'styles', + tooltip: true, + }, + { + label: '按钮图标', + prop: 'iconName', + tooltip: true + }, + { + label: '按钮方法', + prop: 'btnFunction', + tooltip: true + }, + { + label: '按钮顺序', + prop: 'sorts', + tooltip: true, + }, + { + label: '备注', + prop: 'remark', + tooltip: true + }, + { + label: '创建时间', + prop: 'createTime', + tooltip: true + }, + // { + // label: '删除标识', + // prop: 'IsDelete', + // tooltip: true + // }, ] // 详情页面结构JSON -const formRow = [{ - elCol: [{ - label: '按钮编号', - prop: 'Code', - tag: 'elInput', - }, - { - label: '中文名称', - prop: 'nameCN', - tag: 'elInput', - }, - ] - }, - { - elCol: [{ - label: '英文名称', - prop: 'nameEN', - tag: 'elInput' - }, - { - label: '调用方法', - prop: 'btnFunction', - tag: 'elInput', - }, - ] - }, - { - elCol: [{ - label: '样式', - prop: 'style', - tag: 'elInput', - }, - { - label: '图标', - prop: 'icoName', - tag: 'elInput', - }, - ] - }, - { - elCol: [{ - label: '顺序', - prop: 'sort', - tag: 'elInput', - } - ] - }, - { - elCol: [{ - label: '备注', - prop: 'remark', - tag: 'elInput', - span:24, - type:'textarea' - } - ] - }, -] -const roleOptions = [{ - label: '超级管理员', - value: 1 - }, - { - label: '业务员', - value: 2 - }, - { - label: '管理员', - value: 3 - }, - { - label: '开发成员', - value: 4 - }, - { - label: '项目经理', - value: 5 - }, - { - label: '实施人员', - value: 6 - }, - { - label: '财务', - value: 7 - }, - { - label: '总经理', - value: 8 - }, - { - label: '副总', - value: 9 - } -] -const rules = { -}; +const formRow = [ + { + elCol: [ + { + label: "按钮编号", + prop: "code", + tag: "elInput", + }, + { + label: "中文名称", + prop: "nameCh", + tag: "elInput", + }, + ], + }, + { + elCol: [ + { + label: "英文名称", + prop: "nameEn", + tag: "elInput", + }, + { + label: "调用方法", + prop: "btnFunction", + tag: "elInput", + }, + ], + }, + { + elCol: [ + { + label: "样式", + prop: "styles", + tag: "elInput", + }, + { + label: "图标", + prop: "iconName", + tag: "elInput", + }, + ], + }, + { + elCol: [ + { + label: "顺序", + prop: "sorts", + tag: "elInput", + }, + ], + }, + // { + // elCol: [ + // { + // label: "接口名称", + // prop: "actionName", + // tag: "elInput", + // span: 24, + // type: "textarea", + // }, + // ], + // }, + { + elCol: [ + { + label: "备注", + prop: "remark", + tag: "elInput", + span: 24, + type: "textarea", + }, + ], + }, +]; +const roleOptions = [ + { + label: "超级管理员", + value: 1, + }, + { + label: "业务员", + value: 2, + }, + { + label: "管理员", + value: 3, + }, + { + label: "开发成员", + value: 4, + }, + { + label: "项目经理", + value: 5, + }, + { + label: "实施人员", + value: 6, + }, + { + label: "财务", + value: 7, + }, + { + label: "总经理", + value: 8, + }, + { + label: "副总", + value: 9, + }, +]; +const rules = {}; export default { - formRow, - rules, - tableColumnJson -} + formRow, + rules, + tableColumnJson, +}; diff --git a/src/views/systemMaintenance/buttonManagement/index.vue b/src/views/systemMaintenance/buttonManagement/index.vue index 00b22fa..b051ef6 100644 --- a/src/views/systemMaintenance/buttonManagement/index.vue +++ b/src/views/systemMaintenance/buttonManagement/index.vue @@ -1,263 +1,277 @@ diff --git a/src/views/systemMaintenance/menuManagement/configData.js b/src/views/systemMaintenance/menuManagement/configData.js index 9bdd43e..eb26168 100644 --- a/src/views/systemMaintenance/menuManagement/configData.js +++ b/src/views/systemMaintenance/menuManagement/configData.js @@ -1,156 +1,173 @@ // 详情页面结构JSON const formRow = [{ - elCol: [{ - label: '父节点', - prop: 'upIds', - tag: 'elTreeSelect', - options:[], - }, - { - label: '等级', - prop: 'lvl', - disabled:true, - tag: 'elInputNumber', - }, - ] - }, - { - elCol: [{ - label: '菜单名称', - prop: 'title', - tag: 'elInput', - }, - { - label: '菜单英文名称', - prop: 'name', - tag: 'elInput', - }, - ] - }, - { - elCol: [{ - label: '文件路径', - prop: 'component', - tag: 'elInput', - }, - { - label: '菜单图标', - prop: 'icon', - tag: 'elInput', - }, - ] - }, - { - elCol: [{ - label: '页面路径', - prop: 'path', - tag: 'elInput', - }, - {label: '菜单编码', - prop: 'code', - tag: 'elInput', - }, - ] - }, - { - elCol: [ - { - label: '打开方式', - prop: 'openType', - tag: 'elRadio', - options: [{ - label: '菜单', - value: '1' - },{ - label: '弹窗', - value: '2' - } - ] - }, - { - label: '菜单顺序', - prop: 'sorts', - tag: 'elInputNumber', - }, - ] - }, - { - elCol: [{ - label: '操作级别', - prop: 'level', - tag: 'elRadio', - options: [{ - label: 'SuperAdmin', - value: '1' - },{ - label: 'admin', - value: '2' - },{ - label: 'user', - value: '3' - } - ] - }, - { - label: '显示', - prop: 'hidden', - tag: 'elRadio', - options: [{ - label: '是', - value: 'false' - },{ - label: '否', - value: 'true' - } - ] - }, - - // { - // label: '操作权限', - // prop: 'telphone', - // tag: 'elRadio', - // options: [{ - // label: '是', - // value: '1' - // },{ - // label: '否', - // value: '2' - // } - // ] - // }, - ] - }, + elCol: [{ + label: '父节点', + prop: 'parentMenuName', + tag: 'elDialog', + span:24, + }, + // { + // label: '菜单顺序', + // prop: 'mc_Sort', + // tag: 'elInput', + // rules:true + // // type:'number' + // }, + ] +}, + { + elCol: [{ + label: '菜单名称', + prop: 'menuName', + tag: 'elInput', + }, + { + label: '菜单英文名称', + prop: 'menuEnglishName', + tag: 'elInput', + }, + ] + }, + { + elCol: [{ + label: '菜单路径', + prop: 'route', + tag: 'elInput', + }, + { + label: '菜单图标', + prop: 'menuIcon', + tag: 'elInput', + }, + ] + }, + { + elCol: [{ + label: '页面路径', + prop: 'menuPage', + tag: 'elInput', + }, + ] + }, + { + elCol: [ + { + label: '打开方式', + prop: 'showType', + tag: 'elRadio', + options: [{ + label: '菜单', + value: "1" + },{ + label: '弹窗', + value: "2" + } + ] + }, + { + label: '显示', + prop: 'visibles', + tag: 'elRadio', + options: [{ + label: '是', + value: "1" + },{ + label: '否', + value: "0", + } + ] + }, + ] + }, + // { + // elCol: [{ + // label: '功能权限', + // prop: 'birthday', + // tag: 'elRadio', + // options: [{ + // label: '是', + // value: '1' + // },{ + // label: '否', + // value: '2' + // } + // ] + // }, + // { + // label: '操作权限', + // prop: 'telphone', + // tag: 'elRadio', + // options: [{ + // label: '是', + // value: '1' + // },{ + // label: '否', + // value: '2' + // } + // ] + // }, + // ] + // }, +] +const roleOptions = [{ + label: '超级管理员', + value: 1 +}, + { + label: '业务员', + value: 2 + }, + { + label: '管理员', + value: 3 + }, + { + label: '开发成员', + value: 4 + }, + { + label: '项目经理', + value: 5 + }, + { + label: '实施人员', + value: 6 + }, + { + label: '财务', + value: 7 + }, + { + label: '总经理', + value: 8 + }, + { + label: '副总', + value: 9 + } ] const rules = { - title: [{ - required: true, - message: '请输入名称', - trigger: 'change' - }], - component: [{ - required: true, - message: '请输入文件路径', - trigger: 'change' - }], - path: [{ - required: true, - message: '请输入路由路径', - trigger: 'change' - }], - code: [{ - required: true, - message: '请输入编码', - trigger: 'change' - }], - openType: [{ - required: true, - message: '请选择打开方式', - trigger: 'change' - }], + villageId: [{ + required: true, + message: '请选择村/社区名称', + trigger: 'change' + }], + registerTime: [{ + required: true, + message: '请选择登记时间', + trigger: 'change' + }], }; +// 详情显示图片配置 +const showImgJson = { + span: 24, + text: '现场照片', + field: 'photoUrls', +}; export default { - formRow, - rules -} + showImgJson, + formRow, + rules +} diff --git a/src/views/systemMaintenance/menuManagement/index.vue b/src/views/systemMaintenance/menuManagement/index.vue index b54e976..9781cd5 100644 --- a/src/views/systemMaintenance/menuManagement/index.vue +++ b/src/views/systemMaintenance/menuManagement/index.vue @@ -3,81 +3,49 @@ * @date: 2022-09-09 --> \ No newline at end of file + +// 表头配置 +const tableColumnJson = [ +{ +label: '用户账号', +prop: 'u_LoginCode', +tooltip: true, +}, +{ +label: '用户姓名', +prop: 'p_PersonName', +tooltip: true, +}, +{ +label: '所属部门', +prop: 'o_OrganName', +tooltip: true, +}, +{ +label: '手机号', +prop: 'p_Telphone', +tooltip: true +}, +{ +label: '状态', +prop: 'stateNote', +tooltip: true +}, + +] + +export default { +tableColumnJson, +} diff --git a/src/views/systemSettings/jurisdictionManage/userJurisdiction/configData.js b/src/views/systemSettings/jurisdictionManage/userJurisdiction/configData.js index 7dd458a..c51b2e9 100644 --- a/src/views/systemSettings/jurisdictionManage/userJurisdiction/configData.js +++ b/src/views/systemSettings/jurisdictionManage/userJurisdiction/configData.js @@ -1,34 +1,34 @@ // 表头配置 const tableColumnJson = [ - { - label: '用户账号', - prop: 'u_LoginCode', - tooltip: true, - }, - { - label: '用户姓名', - prop: 'p_PersonName', - tooltip: true, - }, - { - label: '所属部门', - prop: 'o_OrganName', - tooltip: true, - }, - { - label: '手机号', - prop: 'p_Telphone', - tooltip: true - }, - { - label: '状态', - prop: 'stateNote', - tooltip: true - }, + { + label: '用户账号', + prop: 'loginCode', + tooltip: true, + }, + { + label: '用户姓名', + prop: 'personName', + tooltip: true, + }, + { + label: '所属部门', + prop: 'organName', + tooltip: true, + }, + { + label: '手机号', + prop: 'mobilePhone', + tooltip: true + }, + { + label: '状态', + prop: 'state', + tooltip: true + }, ] export default { - tableColumnJson, + tableColumnJson, } diff --git a/src/views/systemSettings/jurisdictionManage/userJurisdiction/dataPermissions.vue b/src/views/systemSettings/jurisdictionManage/userJurisdiction/dataPermissions.vue new file mode 100644 index 0000000..4e208d8 --- /dev/null +++ b/src/views/systemSettings/jurisdictionManage/userJurisdiction/dataPermissions.vue @@ -0,0 +1,126 @@ + + + + diff --git a/src/views/systemSettings/jurisdictionManage/userJurisdiction/dataSetting.vue b/src/views/systemSettings/jurisdictionManage/userJurisdiction/dataSetting.vue index ddadc2f..9131b67 100644 --- a/src/views/systemSettings/jurisdictionManage/userJurisdiction/dataSetting.vue +++ b/src/views/systemSettings/jurisdictionManage/userJurisdiction/dataSetting.vue @@ -1,114 +1,114 @@ +.dataSetting { + 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.active { + background: $activeColor; + color: #fff; + } +} + diff --git a/src/views/systemSettings/jurisdictionManage/userJurisdiction/index.vue b/src/views/systemSettings/jurisdictionManage/userJurisdiction/index.vue index 86e6faf..b585919 100644 --- a/src/views/systemSettings/jurisdictionManage/userJurisdiction/index.vue +++ b/src/views/systemSettings/jurisdictionManage/userJurisdiction/index.vue @@ -1,460 +1,525 @@ - - diff --git a/src/views/systemSettings/jurisdictionManage/userJurisdiction/jurisdictionSetting.vue b/src/views/systemSettings/jurisdictionManage/userJurisdiction/jurisdictionSetting.vue index 99dfaba..846e73a 100644 --- a/src/views/systemSettings/jurisdictionManage/userJurisdiction/jurisdictionSetting.vue +++ b/src/views/systemSettings/jurisdictionManage/userJurisdiction/jurisdictionSetting.vue @@ -1,13 +1,13 @@ diff --git a/src/views/systemSettings/jurisdictionManage/userJurisdiction/layOutPermissions.vue b/src/views/systemSettings/jurisdictionManage/userJurisdiction/layOutPermissions.vue new file mode 100644 index 0000000..cec1c56 --- /dev/null +++ b/src/views/systemSettings/jurisdictionManage/userJurisdiction/layOutPermissions.vue @@ -0,0 +1,121 @@ + + + + diff --git a/src/views/systemSettings/jurisdictionManage/userJurisdiction/menuSetting.vue b/src/views/systemSettings/jurisdictionManage/userJurisdiction/menuSetting.vue index c822f0c..e01f43f 100644 --- a/src/views/systemSettings/jurisdictionManage/userJurisdiction/menuSetting.vue +++ b/src/views/systemSettings/jurisdictionManage/userJurisdiction/menuSetting.vue @@ -1,131 +1,131 @@ +} + diff --git a/src/views/systemSettings/jurisdictionManage/userJurisdiction/newSetting.vue b/src/views/systemSettings/jurisdictionManage/userJurisdiction/newSetting.vue index e944bc1..66d1946 100644 --- a/src/views/systemSettings/jurisdictionManage/userJurisdiction/newSetting.vue +++ b/src/views/systemSettings/jurisdictionManage/userJurisdiction/newSetting.vue @@ -1,410 +1,410 @@ \ No newline at end of file +$activeColor: var(--bg-color, "#00aaff"); +.el-icon-star-on{ + /* color: #00aa00; */ + color: $activeColor; +} + diff --git a/src/views/systemSettings/jurisdictionManage/userJurisdiction/rightDialog.vue b/src/views/systemSettings/jurisdictionManage/userJurisdiction/rightDialog.vue new file mode 100644 index 0000000..dfafb77 --- /dev/null +++ b/src/views/systemSettings/jurisdictionManage/userJurisdiction/rightDialog.vue @@ -0,0 +1,392 @@ + + + + diff --git a/src/views/systemSettings/userSettings/PersonnelSettings/index.vue b/src/views/systemSettings/userSettings/PersonnelSettings/index.vue index 3049def..7390979 100644 --- a/src/views/systemSettings/userSettings/PersonnelSettings/index.vue +++ b/src/views/systemSettings/userSettings/PersonnelSettings/index.vue @@ -227,8 +227,8 @@ export default { let params = { id: id } - let res = await PersonDelData(params) - if (res.code == 1) { + let res = await authApi('sysPersonService','','deleteEntity','',params) + if (res.status == 200) { this.$vmNews('删除成功', 'success') this.resetTable() // this.pageModel.page = 1 @@ -456,7 +456,14 @@ export default { let params = { ...data, } - let res = await authApi("sysPersonService","","saveEntity","",params) + let res + console.log(params,'params') + if(params.id){ + res = await authApi("sysPersonService","","updateEntity","",params) + }else{ + res = await authApi("sysPersonService","","saveEntity","",params) + + } if (res.status == 200) { this.$vmNews('保存成功', 'success') this.addDialog = false diff --git a/src/views/systemSettings/userSettings/userInformation/configData.js b/src/views/systemSettings/userSettings/userInformation/configData.js index 8a1ce38..145accc 100644 --- a/src/views/systemSettings/userSettings/userInformation/configData.js +++ b/src/views/systemSettings/userSettings/userInformation/configData.js @@ -1,527 +1,243 @@ + // 页面操作按钮配置 const fucDataJson = [{ - name: '导出', - type: 'danger', - icon: 'el-icon-position' - }, + name: '导出', + type: 'danger', + icon: 'el-icon-position' +}, ] // 表头配置 -const tableColumnJson = [{ - label: '显示名称', - prop: 'viewName', - tooltip: true, - }, - { - label: '登录名', - prop: 'loginName', - tooltip: true, - // other: { - // color: '#4C9CFF', - // isClick: true - // } - }, - { - label: '密码超期时间', - prop: 'expirationDate', - tooltip: true, - }, - { - label: '入职时间', - prop: 'entryTime', - tooltip: true, - }, - { - label: '是否启用', - prop: 'state', - tooltip: true - }, - { - label: '电子邮箱', - prop: 'email', - tooltip: true - }, - { - label: '在职状态', - prop: 'useState', - tooltip: true, - }, +const personColumn = [ + { + label: '所属部门', + prop: 'organName', + tooltip: true, + }, + { + label: '工号', + prop: 'personCode', + tooltip: true, + // other: { + // color: '#4C9CFF', + // isClick: true + // } + }, + { + label: '姓名', + prop: 'personName', + tooltip: true, + }, + { + label: '入职时间', + prop: 'entryTime', + tooltip: true, + }, + // { + // label: '离职时间', + // prop: 'number', + // tooltip: true + // }, + // { + // label: '性别', + // prop: 'sex', + // tooltip: true + // }, + // { + // label: '学历', + // prop: 'Degree', + // tooltip: true, + // }, + // { + // label: '职务', + // prop: 'Post', + // tooltip: true, + // }, + // { + // label: '级别 ', + // prop: 'illegalType', + // tooltip: true, + // }, + // { + // label: '生日', + // prop: 'BirthDay', + // tooltip: true, + // }, + { + label: '固定电话 ', + prop: 'mobilePhone', + tooltip: true, + }, + // { + // label: '籍贯 ', + // prop: 'areaCovered', + // tooltip: true, + // }, + // { + // label: '身份证', + // prop: 'areaBuilding', + // tooltip: true, + // }, + { + label: '电子邮箱', + prop: 'email', + tooltip: true, + }, + { + label: '出生年月', + prop: 'birthDay', + tooltip: true, + }, + { + label: '是否用户分配', + prop: 'state', + tooltip: true, + }, ] // 表头配置 -const personColumn = [{ - label: '用户账号', - prop: 'u_LoginCode', - tooltip: true, - }, - { - label: '用户姓名', - prop: 'p_PersonName', - tooltip: true, - }, - { - label: '所属部门', - prop: 'o_OrganName', - tooltip: true, - }, - { - label: '手机号', - prop: 'p_Telphone', - tooltip: true - }, - { - label: '状态', - prop: 'stateNote', - tooltip: true - }, +const tableColumnJson = [ + { + label: '用户账号', + prop: 'loginCode', + tooltip: true, + }, + { + label: '用户姓名', + prop: 'personName', + tooltip: true, + }, + { + label: '所属部门', + prop: 'organName', + tooltip: true, + }, + { + label: '手机号', + prop: 'mobilePhone', + tooltip: true + }, + { + label: '状态', + prop: 'state', + tooltip: true + }, ] // 详情页面结构JSON const formRow1 = [{ - elCol: [{ - label: '选择人员', - prop: 'p_PersonName', - tag: 'elDialog', - // disabled:false - }, - { - label: '登录账号', - prop: 'u_LoginCode', - tag: 'elInput', - // placeholder:'自动带入', - // disabled:true - }, - ] -}, { - elCol: [{ - label: '描述', - prop: 'u_Remark', - tag: 'elInput', - type: 'textarea', - span: 24 - }, ] -}] + elCol: [{ + label: '选择人员', + prop: 'personName', + tag: 'elDialog', + // disabled:false + }, + { + label: '登录账号', + prop: 'loginCode', + tag: 'elInput', + // placeholder:'自动带入', + // disabled:true + }, + ] +},{ + elCol: [{ + label: '描述', + prop: 'remark', + tag: 'elInput', + type:'textarea', + span:24 + }, + ] +} +] const formRow2 = [{ - elCol: [{ - label: '用户名', - prop: 'p_PersonName', - tag: 'elDialog', - // disabled:false - }, - { - label: '登录账号', - prop: 'u_LoginCode', - tag: 'elInput', - // placeholder:'自动带入', - // disabled:true - }, - ] -}, { - elCol: [{ - label: '描述', - prop: 'u_Remark', - tag: 'elInput', - type: 'textarea', - span: 24 - }, ] -}] + elCol: [{ + label: '用户名', + prop: 'p_PersonName', + tag: 'elDialog', + // disabled:false + }, + { + label: '登录账号', + prop: 'u_LoginCode', + tag: 'elInput', + // placeholder:'自动带入', + // disabled:true + }, + ] +},{ + elCol: [{ + label: '描述', + prop: 'u_Remark', + tag: 'elInput', + type:'textarea', + span:24 + }, + ] +} +] +const roleOptions = [{ + label: '超级管理员', + value: 1 +}, + { + label: '业务员', + value: 2 + }, + { + label: '管理员', + value: 3 + }, + { + label: '开发成员', + value: 4 + }, + { + label: '项目经理', + value: 5 + }, + { + label: '实施人员', + value: 6 + }, + { + label: '财务', + value: 7 + }, + { + label: '总经理', + value: 8 + }, + { + label: '副总', + value: 9 + } +] const rules = { - villageId: [{ - required: true, - message: '请选择村/社区名称', - trigger: 'change' - }], - registerTime: [{ - required: true, - message: '请选择登记时间', - trigger: 'change' - }], + villageId: [{ + required: true, + message: '请选择村/社区名称', + trigger: 'change' + }], + registerTime: [{ + required: true, + message: '请选择登记时间', + trigger: 'change' + }], }; // 详情显示图片配置 const showImgJson = { - span: 24, - text: '现场照片', - field: 'photoUrls', + span: 24, + text: '现场照片', + field: 'photoUrls', }; -const formRow = [ - { - elCol: [{ - label: '显示名称', - prop: 'viewName', - tag: 'elInput', - }, { - label: '登录名', - prop: 'loginName', - tag: 'elInput', - disabled: false - }] - }, - { - elCol: [{ - label: '密码', - prop: 'password', - tag: 'elInput', - type: 'password' - }, { - label: '加密策略', - prop: 'encryptionPolicy', - tag: 'elInput', - }] - }, - { - elCol: [{ - label: '密码超时时间', - prop: 'expirationDate', - tag: 'elDatePicker', - type: 'datetime' - }, { - label: '密码次数', - prop: 'pawFrequency', - tag: 'elInputNumber', - }] - }, { - elCol: [{ - label: '人员编号 ', - prop: 'staffId', - tag: 'elInput', - }, - { - label: '头像路径', - prop: 'iconUrl', - tag: 'elInput', - disabled: false - } - ] - }, - { - elCol: [{ - label: '是否是内部', - prop: 'builtIn', - tag: 'elRadio', - options: [{ - label: '是', - value: '1' - }, - { - label: '否', - value: '0' - }, - ] - }, { - label: '是否启用', - prop: 'state', - tag: 'elRadio', - options: [{ - label: '启用', - value: '1' - }, - { - label: '停用', - value: '0' - }, - ] - }] - }, - { - elCol: [{ - label: '模块操作级别', - prop: 'level', - tag: 'elSelect', - options: [{ - label: 'SuperAdmin', - value: '1' - },{ - label: 'admin', - value: '2' - },{ - label: 'user', - value: '3' - } - ] - - }, { - label: '电子邮件', - prop: 'email', - tag: 'elInput', - }] - }, - { - elCol: [{ - label: '手机号码', - prop: 'phone', - tag: 'elInput', - }, { - label: '职务级别', - prop: 'userLvl', - tag: 'elSelect', - options: [ - { - label: '管理员', - value: '0' - }, - { - label: '访客', - value: '1' - }, - { - label: '员工', - value: '2' - }, - ] - }] - }, - { - elCol: [{ - label: '性别', - prop: 'sex', - tag: 'elRadio', - options: [{ - label: '男', - value: '0' - }, - { - label: '女', - value: '1' - }, - ] - }, { - label: '锁定状态', - prop: 'lockState', - tag: 'elRadio', - options: [{ - label: '锁定', - value: '0' - }, - { - label: '未锁定', - value: '1' - }, - ] - }] - }, - { - elCol: [{ - label: '在职状态', - prop: 'useState', - tag: 'elRadio', - options: [{ - label: '在职', - value: '1' - }, - { - label: '离职', - value: '2' - }, - ] - }, { - label: '微信token', - prop: 'wechatToken', - tag: 'elInput', - disabled: true - }] - }, - { - elCol: [{ - label: '是否可以登录', - prop: 'isLoginable', - tag: 'elRadio', - options: [{ - label: '是', - value: '1' - }, - { - label: '否', - value: '0' - }, - ] - }, { - label: '是否虚拟账号', - prop: 'isVirtual', - tag: 'elRadio', - options: [{ - label: '是', - value: '1' - }, - { - label: '否', - value: '0' - }, - ] - }] - }, - { - elCol: [{ - label: '是否被分配', - prop: 'isAssigned', - tag: 'elRadio', - options: [{ - label: '是', - value: '1' - }, - { - label: '否', - value: '0' - }, - ] - }, { - label: '是否管理员', - prop: 'isAdmin', - tag: 'elRadio', - options: [{ - label: '是', - value: '1' - }, - { - label: '否', - value: '0' - }, - ] - }] - }, - { - elCol: [{ - label: '枚举', - prop: 'memberType', - tag: 'elInput', - tag: 'elRadio', - options: [{ - label: '正式', - value: '1' - }, - { - label: '非正式', - value: '0' - }, - ] - }, { - label: '是否被删除', - prop: 'isDeleted', - tag: 'elRadio', - options: [{ - label: '删除', - value: '1' - }, - { - label: '未删除', - value: '0' - }, - ] - }] - }, - { - elCol: [{ - label: '内外标识', - prop: 'externalType', - tag: 'elRadio', - options: [{ - label: '外部人', - value: '1' - }, - { - label: '内部人', - value: '0' - }, - ] - }, { - label: '编号', - prop: 'memberCode', - tag: 'elInput', - }] - }, - { - elCol: [{ - label: '出生日期', - prop: 'birthDate', - tag: 'elDatePicker', - type: 'datetime' - }, { - label: '办公电话', - prop: 'officeTel', - tag: 'elInput', - }] - }, - - { - elCol: [{ - label: '人员照片地址', - prop: 'photoAddress', - tag: 'elInput', - disabled: true - }, { - label: '所属部门', - prop: 'department', - tag: 'elTreeSelect', - options:[], - }] - }, - { - elCol: [{ - label: '排序编号', - prop: 'sorts', - tag: 'elInputNumber', - }, { - label: '工作地', - prop: 'workplace', - tag: 'elInput', - }] - }, - { - elCol: [{ - label: '主岗', - prop: 'majorPosition', - tag: 'elInput', - }, { - label: '副岗', - prop: 'deputyPost', - tag: 'elInput', - }] - }, - { - elCol: [{ - label: '人员类型', - prop: 'userType', - tag: 'elSelect', - options:[ - {label:'超级管理员',value:'1'}, - {label:'管理员',value:'2'}, - {label:'业务员',value:'3'}, - ] - }, { - label: '人员状态', - prop: 'personnelStatus', - tag: 'elInput', - tag: 'elRadio', - options: [{ - label: '启用', - value: '1' - }, - { - label: '停用', - value: '0' - }, - ] - }] - }, - { - elCol: [{ - label: '入职时间', - prop: 'entryTime', - tag: 'elDatePicker', - type: 'datetime' - }, { - label: '汇报人', - prop: 'reporter', - tag: 'elInput', - }] - }, -] export default { - fucDataJson, - tableColumnJson, - showImgJson, - formRow1, - formRow2, - rules, - personColumn, - formRow -} + fucDataJson, + tableColumnJson, + showImgJson, + formRow1, + formRow2, + rules, + personColumn +} diff --git a/src/views/systemSettings/userSettings/userInformation/index.vue b/src/views/systemSettings/userSettings/userInformation/index.vue index 2f66179..e99a743 100644 --- a/src/views/systemSettings/userSettings/userInformation/index.vue +++ b/src/views/systemSettings/userSettings/userInformation/index.vue @@ -1,273 +1,588 @@ - 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 6/6] =?UTF-8?q?=E8=A7=92=E8=89=B2=E6=9D=83=E9=99=90?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E6=96=B0=E5=A2=9E=E3=80=81=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=BA=A7=E5=88=AB=E3=80=81=E5=AD=A6=E5=8E=86?= =?UTF-8?q?=E3=80=81=E8=81=8C=E5=8A=A1=E4=B8=8B=E6=8B=89=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=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 @@