From 3a7a3198e0fddc75c25e1c184ea9019ac846c8ef Mon Sep 17 00:00:00 2001 From: BabyBoy <2019108827@qq.com> Date: Thu, 4 Sep 2025 16:24:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/pms/productCategory.js | 2 +- src/router/index.ts | 15 +++- src/views/account/index.vue | 39 +------- src/views/system/user/index.vue | 13 +++ src/views/system/user/tenant.vue | 147 +++++++++++++++++++++++++++++++ 5 files changed, 176 insertions(+), 40 deletions(-) create mode 100644 src/views/system/user/tenant.vue diff --git a/src/api/pms/productCategory.js b/src/api/pms/productCategory.js index d21717e..0fe220b 100644 --- a/src/api/pms/productCategory.js +++ b/src/api/pms/productCategory.js @@ -3,7 +3,7 @@ import request from '@/utils/request'; // 查询商品分类列表 export function listPmsProductCategory(query, pageReq) { return request({ - url: '/pms/product/category/tree', + url: '/pms/productCategory/tree', method: 'post', data: query // params: pageReq diff --git a/src/router/index.ts b/src/router/index.ts index 4cef375..cdcc499 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -114,7 +114,20 @@ export const dynamicRoutes: RouteRecordRaw[] = [ } ] }, - + { + path: '/system/user-auth', + component: Layout, + hidden: true, + permissions: ['system:user:edit'], + children: [ + { + path: 'tenant/:userId(\\d+)', + component: () => import('@/views/system/user/tenant.vue'), + name: 'AuthTenant', + meta: { title: '分配租户', activeMenu: '/system/user' } + } + ] + }, { path: '/system/role-auth', component: Layout, diff --git a/src/views/account/index.vue b/src/views/account/index.vue index f0b0f2d..9d85a8f 100644 --- a/src/views/account/index.vue +++ b/src/views/account/index.vue @@ -91,6 +91,7 @@ const tableData = ref([]); const dialogVisible = ref(false); // 查看明细 const handleSeach = (row: any) => { + dialogVisible.value = true; console.log(row); }; const resetQuery = () => { @@ -102,44 +103,6 @@ const resetQuery = () => { }; getListList(); }; -// const headDate = ref({ -// platformType: '', -// versionCode: '', -// versionName: '', -// downloadUrl: '', -// isForceUpdate: null, -// releaseNotes: '', -// status: null -// }); -// const handleAdd = async () => { -// const res = await postAdd(headDate.value); -// if (res.code === 200) { -// ElMessage.success('添加成功'); -// headDate.value = { -// platformType: '', -// versionCode: '', -// versionName: '', -// downloadUrl: '', -// isForceUpdate: null, -// releaseNotes: '', -// status: null -// }; -// showRefuteDialog.value = false; -// getListList(); -// } -// }; -// 修改 -// const handleStatusChange = async (row: any) => { -// const obj = { -// id: row.id, -// status: row.status == 1 ? 0 : 1 -// }; -// const res = await getupdate(obj); -// if (res.code === 200) { -// ElMessage.success('修改成功'); -// getListList(); -// } -// }; const handldDelOnline = (row: any) => { ElMessageBox.confirm('确定要删除吗?', '提示', { confirmButtonText: '确定', diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index c91b6ed..f910a8d 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -130,6 +130,15 @@ + + + @@ -527,6 +536,10 @@ const handleAuthRole = (row: UserVO) => { const userId = row.userId; router.push('/system/user-auth/role/' + userId); }; +const handleAuthTenant = (row: UserVO) => { + const userId = row.userId; + router.push('/system/user-auth/tenant/' + userId); +}; /** 重置密码按钮操作 */ const handleResetPwd = async (row: UserVO) => { diff --git a/src/views/system/user/tenant.vue b/src/views/system/user/tenant.vue new file mode 100644 index 0000000..4a3a70d --- /dev/null +++ b/src/views/system/user/tenant.vue @@ -0,0 +1,147 @@ + + +