From f7c300ab8f47a03d19c1f863002ca43b78db27e7 Mon Sep 17 00:00:00 2001 From: tx <2622874537@qq.com> Date: Fri, 8 Nov 2024 09:54:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E9=9C=80=E6=B1=82=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/dept/deptDetail.vue | 7 +++++-- src/views/system/user/index.vue | 14 +++++++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/views/system/dept/deptDetail.vue b/src/views/system/dept/deptDetail.vue index b4764a2..1a7a074 100644 --- a/src/views/system/dept/deptDetail.vue +++ b/src/views/system/dept/deptDetail.vue @@ -244,6 +244,9 @@ + + + @@ -289,7 +292,7 @@ import refund from "@/views/system/refund/index"; import audit from "@/views/system/audit/index"; import flow from "@/views/system/flow/index"; import withdraw from "@/views/system/withdrawAudit/index"; - +import user from "@/views/system/user/index"; // import Withdraw from '@/views/system/withdraw/index.vue' // import RealName from '@/views/ss/realName/index.vue' @@ -301,7 +304,7 @@ import withdraw from "@/views/system/withdrawAudit/index"; export default { name: 'User/:deptId', mixins: [$view, $serviceType], - components: { Area, Fees, Model, device, order, partner, refund, audit, flow, withdraw, BooleanTag, Recharge, UserRechargeReport, UserConfigDialog, UserAccount, UserDevice, LineChart }, + components: { Area, Fees,user, Model, device, order, partner, refund, audit, flow, withdraw, BooleanTag, Recharge, UserRechargeReport, UserConfigDialog, UserAccount, UserDevice, LineChart }, dicts: ['sys_normal_disable', 'sys_yes_no'], computed: { SmUserType() { diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 1b38c20..a4ee5d4 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -265,6 +265,13 @@ export default { return this.userName === 'admin' ? 21 : 24; } }, + props: { + // 用户id + deptId: { + type: Number, + default: null, + } + }, data() { return { options: [], @@ -333,7 +340,7 @@ export default { userName: undefined, phonenumber: undefined, status: undefined, - deptId: undefined, + deptId: this.deptId, typeList: "00,03" }, // 列信息 @@ -518,6 +525,7 @@ export default { getDeptTree() { deptTreeSelect().then(response => { this.deptOptions = response.data; + }); }, // 筛选节点 @@ -611,6 +619,10 @@ export default { this.open = true; this.title = "添加用户"; this.form.password = this.initPassword; + if(this.deptId){ + this.form.deptId=this.deptId + } + }); }, /** 修改按钮操作 */