From 9da3f3bac5c87f1b8f07c40ce1f98622bee4f182 Mon Sep 17 00:00:00 2001 From: wangxia <779219182@qq.com> Date: Mon, 13 Nov 2023 20:49:47 +0800 Subject: [PATCH] 1 --- src/api/merchantConfig.js | 77 ++-- src/components/FirstJob/recordBill.vue | 77 ++-- .../merchantManagement/addRoleManagement.vue | 452 ++++++++------------- .../merchantManagement/roleManagement.vue | 58 ++- .../merchantManagement/roleManagementDetail.vue | 363 ++++------------- src/views/merchantBack.vue | 13 +- 6 files changed, 399 insertions(+), 641 deletions(-) diff --git a/src/api/merchantConfig.js b/src/api/merchantConfig.js index 8013538..4b28b62 100644 --- a/src/api/merchantConfig.js +++ b/src/api/merchantConfig.js @@ -3,6 +3,40 @@ import qs from "qs"; let setqs = function (data) { return qs.stringify(data); }; +// 后台侧边栏menu获取 +export function getMenuListApi () { + return request({ + url: "/yishoudan/getMenus", + method: "get", + }); +} + +// 数据统计列表获取 +export function dataStatisticsListApi (data) { + return request({ + url: "/yishoudan/statistics/agency/teamWithGroup", + method: "post", + // headers: { "Content-Type": "multipart/form-data" }, + data: setqs(data), + // data, + }); +} +// 数据统计工单详情获取 +export function dataStatisticsTeamDetailApi (data) { + return request({ + url: "/yishoudan/statistics/agency/teamDetail", + method: "post", + // headers: { "Content-Type": "multipart/form-data" }, + data: setqs(data), + }); +} + + +/** +* 成员相关 +* +* +*/ // 成员管理:获取成员列表 export function getMemberListApi (data) { return request({ @@ -37,32 +71,6 @@ export function updateMemberApi (data) { data: setqs(data), }); } -// 数据统计列表获取 -export function dataStatisticsListApi (data) { - return request({ - url: "/yishoudan/statistics/agency/teamWithGroup", - method: "post", - // headers: { "Content-Type": "multipart/form-data" }, - data: setqs(data), - // data, - }); -} -// 数据统计工单详情获取 -export function dataStatisticsTeamDetailApi (data) { - return request({ - url: "/yishoudan/statistics/agency/teamDetail", - method: "post", - // headers: { "Content-Type": "multipart/form-data" }, - data: setqs(data), - }); -} - - -/** -* 成员相关 -* -* -*/ // 获取成员分组信息 export function getMemberGroupApi (data) { return request({ @@ -154,8 +162,25 @@ export function addRoleApi (data) { data: setqs(data), }); } +// 新增获取角色权限列表 +export function getRolePermissionApi (data) { + return request({ + url: "/yishoudan/agency/role/findAllVisibleMenus", + method: "get", + // data: setqs(data), + }); +} +// 修改获取角色相关信息 +export function getRoleInfoApi (data) { + return request({ + url: "/yishoudan/agency/role/detail/" + data, + method: "get", + // data: setqs(data), + }); +} // 修改角色 export function updateRoleApi (data) { + return request({ url: "/yishoudan/agency/role/update", method: "post", diff --git a/src/components/FirstJob/recordBill.vue b/src/components/FirstJob/recordBill.vue index 2196c89..327c6a8 100644 --- a/src/components/FirstJob/recordBill.vue +++ b/src/components/FirstJob/recordBill.vue @@ -259,7 +259,7 @@ export default { fileListT2: [], // facetimedate: "", previewVisible: false, - currentPolicy: 1, + currentPolicy: 0, proxyStatus: '', // 代理选择的控制 storeStatus: '', // 企业选择的控制 jobnameStatus: '', // 岗位选择的控制 @@ -310,6 +310,13 @@ export default { message: '请输入正确的姓名', trigger: 'blur', }, + ], + policy: [ + { + required: true, + message: '请选择政策', + trigger: 'submit', + }, ], sex: [ { @@ -449,36 +456,36 @@ export default { console.log(error) } }, - async getPolicyListByJobId(value) { - console.log(value) - try { - const { data } = await getPolicyListByJobIdApi(value) - console.log(data) - if (data.status === 200) { - this.form.policy = data.data - // this.form.policy = [ - // { - // label: '政策1', - // content: '政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容', - // id: 1, - // }, - // { - // label: '政策1', - // content: '政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容', - // id: 2, - // }, - // { - // label: '政策1', - // content: '政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容', - // id: 3, - // }, - // ] - this.currentPolicy = this.form.policy[0].id - } - } catch (error) { - console.log(error) - } - }, + // async getPolicyListByJobId(value) { + // console.log(value) + // try { + // const { data } = await getPolicyListByJobIdApi(value) + // console.log(data) + // if (data.status === 200) { + // this.form.policy = data.data + // // this.form.policy = [ + // // { + // // label: '政策1', + // // content: '政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容', + // // id: 1, + // // }, + // // { + // // label: '政策1', + // // content: '政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容', + // // id: 2, + // // }, + // // { + // // label: '政策1', + // // content: '政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容政策内容', + // // id: 3, + // // }, + // // ] + // this.currentPolicy = this.form.policy[0].id + // } + // } catch (error) { + // console.log(error) + // } + // }, async getJobDetail(value) { try { const { data } = await getJobDetailApi(value) @@ -582,7 +589,11 @@ export default { if (ispass) { console.log(this.form) this.form['imgs'] = that.fileListT2.toString() - + if (this.currentPolicy == 0) { + this.$message.warning('请选择政策') + this.confirmLoading = false + return + } let dataObj = qs.stringify({ ...this.form, storeJobId: this.firminfo.id, @@ -1736,7 +1747,7 @@ export default { /deep/ .ant-select-selection { border-radius: 0px !important; } -.policyRadios{ +.policyRadios { flex-wrap: wrap; } diff --git a/src/components/merchantManagement/addRoleManagement.vue b/src/components/merchantManagement/addRoleManagement.vue index 29a4565..70fe18f 100644 --- a/src/components/merchantManagement/addRoleManagement.vue +++ b/src/components/merchantManagement/addRoleManagement.vue @@ -30,8 +30,8 @@
在 - - {{item.roleName}} + + {{item.roleName}}
取消 @@ -73,7 +73,7 @@