diff --git a/Web/src/views/system/org/component/editOrg.vue b/Web/src/views/system/org/component/editOrg.vue index 6ea49fcb..e5757be6 100644 --- a/Web/src/views/system/org/component/editOrg.vue +++ b/Web/src/views/system/org/component/editOrg.vue @@ -8,7 +8,7 @@ - + - + diff --git a/Web/src/views/system/role/component/baseApi.vue b/Web/src/views/system/role/component/baseApi.vue index 8af8b890..1408398b 100644 --- a/Web/src/views/system/role/component/baseApi.vue +++ b/Web/src/views/system/role/component/baseApi.vue @@ -56,6 +56,7 @@ import { reactive, onMounted, ref, watch } from 'vue'; import type { ElTree } from 'element-plus'; import { Search, MoreFilled } from '@element-plus/icons-vue'; + import { getAPI } from '/@/utils/axios-utils'; import { SysCommonApi, SysRoleApi } from '/@/api-services/api'; @@ -72,14 +73,17 @@ const state = reactive({ selectedTabName: 0, }); +// 页面初始化 onMounted(() => { initTreeData(); }); +// 节点过滤 watch(filterText, (val) => { treeRef.value!.filter(val); }); +// 初始化树 const initTreeData = async () => { state.loading = true; var res = await getAPI(SysCommonApi).apiSysCommonApiListGet(); @@ -109,6 +113,7 @@ const openDrawer = async () => { state.loading = false; }; +// 节点过滤 const filterNode = (value: string, data: any) => { if (!value) return true; return data.route.includes(value); diff --git a/Web/src/views/system/role/component/editRole.vue b/Web/src/views/system/role/component/editRole.vue index 9131c8bc..fc066194 100644 --- a/Web/src/views/system/role/component/editRole.vue +++ b/Web/src/views/system/role/component/editRole.vue @@ -8,7 +8,7 @@ - + @@ -48,7 +48,7 @@ icon="ele-Menu" highlight-current default-expand-all - style="height: 600px; overflow-y: auto; width: 100%" + style="height: 500px; overflow-y: auto; width: 100%" /> @@ -85,6 +85,7 @@ const state = reactive({ menuData: [] as Array, // 菜单数据 }); +// 页面初始化 onMounted(async () => { state.loading = true; var res = await getAPI(SysMenuApi).apiSysMenuListGet(); diff --git a/Web/src/views/system/role/component/grantApi.vue b/Web/src/views/system/role/component/grantApi.vue index 8ee71d98..68783cda 100644 --- a/Web/src/views/system/role/component/grantApi.vue +++ b/Web/src/views/system/role/component/grantApi.vue @@ -56,6 +56,7 @@ import { reactive, onMounted, ref, watch } from 'vue'; import type { ElTree } from 'element-plus'; import { Search, MoreFilled } from '@element-plus/icons-vue'; + import { getAPI } from '/@/utils/axios-utils'; import { SysCommonApi, SysRoleApi } from '/@/api-services/api'; @@ -73,14 +74,17 @@ const state = reactive({ selectedTabName: 0, }); +// 页面初始化 onMounted(() => { initTreeData(); }); +// 节点过滤 watch(filterText, (val) => { treeRef.value!.filter(val); }); +// 初始化树 const initTreeData = async () => { state.loading = true; var res = await getAPI(SysCommonApi).apiSysCommonApiListGet(); @@ -111,6 +115,7 @@ const openDrawer = async (row: any) => { state.loading = false; }; +// 节点过滤 const filterNode = (value: string, data: any) => { if (!value) return true; return data.route.includes(value); diff --git a/Web/src/views/system/role/component/grantData.vue b/Web/src/views/system/role/component/grantData.vue index d3580c23..e7b4f970 100644 --- a/Web/src/views/system/role/component/grantData.vue +++ b/Web/src/views/system/role/component/grantData.vue @@ -8,8 +8,8 @@ - - + + @@ -17,8 +17,10 @@ - - + +
+ +
@@ -86,3 +88,14 @@ const submit = async () => { // 导出对象 defineExpose({ openDialog }); + + diff --git a/Web/src/views/system/user/component/editUser.vue b/Web/src/views/system/user/component/editUser.vue index 31b4c12e..3cacecce 100644 --- a/Web/src/views/system/user/component/editUser.vue +++ b/Web/src/views/system/user/component/editUser.vue @@ -263,6 +263,7 @@ import { onMounted, reactive, ref } from 'vue'; import { storeToRefs } from 'pinia'; import { useUserInfo } from '/@/stores/userInfo'; + import { getAPI } from '/@/utils/axios-utils'; import { SysPosApi, SysRoleApi, SysUserApi } from '/@/api-services/api'; import { RoleOutput, SysOrg, PagePosOutput, UpdateUserInput } from '/@/api-services/models'; @@ -284,6 +285,7 @@ const state = reactive({ roleData: [] as Array, // 角色数据 }); +// 页面初始化 onMounted(async () => { state.loading = true; const { data } = await getAPI(SysPosApi).apiSysPosPagePost({ page: 1, pageSize: 9999 }); diff --git a/Web/src/views/system/user/component/orgTree.vue b/Web/src/views/system/user/component/orgTree.vue index d6c7b529..023a525c 100644 --- a/Web/src/views/system/user/component/orgTree.vue +++ b/Web/src/views/system/user/component/orgTree.vue @@ -55,6 +55,7 @@ const state = reactive({ }, }); +// 页面初始化 onMounted(async () => { state.loading = true; var res = await getAPI(SysOrgApi).apiSysOrgListGet(0); diff --git a/Web/src/views/system/user/component/userCenter.vue b/Web/src/views/system/user/component/userCenter.vue index adc5fa13..85ccf098 100644 --- a/Web/src/views/system/user/component/userCenter.vue +++ b/Web/src/views/system/user/component/userCenter.vue @@ -171,6 +171,7 @@ import CropperDialog from '/@/components/cropper/index.vue'; import VueGridLayout from 'vue-grid-layout'; import { sm2 } from 'sm-crypto-v2'; import { clearAccessTokens, getAPI } from '/@/utils/axios-utils'; + import { SysFileApi, SysUserApi } from '/@/api-services/api'; import { ChangePwdInput, SysUser, SysFile } from '/@/api-services/models'; @@ -200,6 +201,7 @@ const state = reactive({ cropperTitle: '', }); +// 页面初始化 onMounted(async () => { state.loading = true; var res = await getAPI(SysUserApi).apiSysUserBaseInfoGet(); @@ -207,6 +209,7 @@ onMounted(async () => { state.loading = false; }); +// 签名监听 watch(state.signOptions, () => { signaturePadRef.value.signaturePad.penColor = state.signOptions.penColor; signaturePadRef.value.signaturePad.minWidth = state.signOptions.minWidth;