diff --git a/src/api/modules/jxjview.ts b/src/api/modules/jxjview.ts index 8c56ce2..31ec417 100644 --- a/src/api/modules/jxjview.ts +++ b/src/api/modules/jxjview.ts @@ -23,7 +23,7 @@ export const editUser = (params: { id: string }) => { }; // * 删除用户 -export const deleteUser = (params: { id: string }) => { +export const deleteUser = (params: { configId: string }) => { return http.post(PORT1 + `/xmgl/systemConfig/delete`, params); }; @@ -31,16 +31,30 @@ export const deleteUser = (params: { id: string }) => { export const getGovermentList = (params: User.ReqUserParams) => { return http.post>(PORT1 + `/xmgl/government/page`, params); }; - // * 新增用户 export const addGovernment = (params: FormData) => { return http.post(PORT1 + `/xmgl/government/add`, params); }; - // * 编辑用户 export const editGovernment = (params: { id: string }) => { return http.post(PORT1 + `/xmgl/government/edit`, params); }; +export const editGoverCheck = (params: { id: string }) => { + return http.post(PORT1 + `/xmgl/moduleTemplate/saveOrUpdate`, params); +}; +//权限配置多选编辑 +// 通过id查询政务以及账号信息 +export const getGoverDetail = (params: User.ReqUserParams) => { + return http.post>(PORT1 + `/xmgl/government/queryDetailById`, params); +}; +// 列表查询(按模块类型分组) +export const getGoverType = (params: User.ReqUserParams) => { + return http.post>(PORT1 + `/xmgl/baseModule/listByType`, params); +}; +// 查询政务下的模块模板信息 +export const getGoverForm = (params: User.ReqUserParams) => { + return http.post>(PORT1 + `/xmgl/baseModule/listByGovernment`, params); +}; // 字典 !!!!!!!!!!!!!! // 查询 diff --git a/src/components/DialogForm/index.vue b/src/components/DialogForm/index.vue index 2e555b5..d4143d4 100644 --- a/src/components/DialogForm/index.vue +++ b/src/components/DialogForm/index.vue @@ -22,7 +22,7 @@ @@ -252,5 +252,8 @@ onMounted(() => { :deep(.el-dialog__body) { border-top: 1px solid #eee; } + :deep(.el-select--large) { + width: 100%; + } } diff --git a/src/views/jxjview/appmanage/index.vue b/src/views/jxjview/appmanage/index.vue index 0567c3c..305e2ad 100644 --- a/src/views/jxjview/appmanage/index.vue +++ b/src/views/jxjview/appmanage/index.vue @@ -14,7 +14,7 @@ - + diff --git a/src/views/jxjview/menumanage/index.vue b/src/views/jxjview/menumanage/index.vue index fd2f36b..b16ffb5 100644 --- a/src/views/jxjview/menumanage/index.vue +++ b/src/views/jxjview/menumanage/index.vue @@ -272,7 +272,16 @@ function handleEditItem(index: string, row: any) { mode.value = "edit"; visible.value = true; title.value = "编辑模块"; + formData.value = reactive(row); + // if (row.styleType === 1) { + // formData.value.styleType == "政务后台"; + // } + // row.styleType == 1 + // ? formData.value.styleType == "政务后台" + // : row.styleType == 2 + // ? formData.value.styleType == "企业后台" + // : "项目后台"; } // 按钮管理的新增 @@ -349,7 +358,7 @@ const columns: ColumnProps[] = [ ]; // 弹窗中的配置 -const formConfig = { +const formConfig = reactive({ formItemConfig: [ { label: "标签名称", @@ -366,6 +375,18 @@ const formConfig = { prop: "moduleName", type: "input" }, + { + label: "模块类型", + prop: "moduleType", + type: "select", + data: [] + }, + { + label: "模块风格", + prop: "styleType", + type: "select", + data: [] + }, { label: "解锁模块图标", prop: "moduleIconChecked", @@ -403,7 +424,11 @@ const formConfig = { { label: "是否是重要模块", prop: "isImportantModule", - type: "input" + type: "radio", + data: [ + { label: "是", value: "1" }, + { label: "否", value: "0" } + ] } ], rules: { @@ -415,7 +440,7 @@ const formConfig = { } ] } -}; +}); // 按钮管理的新增与编辑 const formbtnConfig = { @@ -523,12 +548,6 @@ const onSubmitMenu = async (form: any) => { getMenuTabList({ moduleId: form.moduleId }); }; -// 页面下拉框获取 -const getDiaTabList = async (params: any) => { - await getDicList(params); - return getDicList(params); -}; - const getBtnTabList = async (params: any) => { const res = await btnList(params); buttonData.value = res.result; @@ -568,19 +587,21 @@ const onChangeType = async (val: number) => { }; onMounted(async () => { - const res = await getDiaTabList(diaTableData); + const res = await getDicList(diaTableData); optionStyle.value = res.result.map(i => { return { label: i.dictValue, value: i.dictLabel }; }); - const res1 = await getDiaTabList(diaTableType); + formConfig.formItemConfig[3].data = optionStyle.value; + const res1 = await getDicList(diaTableType); optionType.value = res1.result.map(i => { return { label: i.dictValue, value: i.dictLabel }; }); + formConfig.formItemConfig[4].data = optionType.value; }); diff --git a/src/views/jxjview/system/index.vue b/src/views/jxjview/system/index.vue index 44cd27f..626ba44 100644 --- a/src/views/jxjview/system/index.vue +++ b/src/views/jxjview/system/index.vue @@ -170,7 +170,7 @@ const saveItem = async (form: any) => { // 删除用户信息 const deleteAccount = async (params: User.ResUserList) => { - await useHandleData(deleteUser, { id: params.configId }, `删除【${params.username}】用户`); + await useHandleData(deleteUser, { configId: params.configId }, `删除【${params.username}】用户`); proTable.value.getTableList(); };