From ee8c372e9bd02c8b58aa5a49998c33943b62ec94 Mon Sep 17 00:00:00 2001 From: dzl <863620989@qq.com> Date: Wed, 14 May 2025 11:21:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E9=A1=B5=E9=9D=A2=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/SysManage/AccountManage/index.vue | 79 +++++++++++++------ .../form/accountmanage/AccountManage.vue | 3 + 2 files changed, 57 insertions(+), 25 deletions(-) diff --git a/ebike-operate/src/views/SysManage/AccountManage/index.vue b/ebike-operate/src/views/SysManage/AccountManage/index.vue index 52a5818..3988015 100644 --- a/ebike-operate/src/views/SysManage/AccountManage/index.vue +++ b/ebike-operate/src/views/SysManage/AccountManage/index.vue @@ -90,29 +90,56 @@ >启用 @@ -138,10 +165,12 @@ import { callUser } from '@/apis/call.js' import config from '@/utils/config.js' import { getGUID } from '@/utils/tools' import AccountManage from '@/views/form/accountmanage/AccountManage.vue'; +import { getCache } from '@/utils/authority'; const open = ref(false); const openTitle = ref(''); const modalKey = ref(getGUID()) const formModel = ref(null); +const staff = getCache("ebike-userinfo") const columns = [ { @@ -287,8 +316,8 @@ const handleOkModal = () => { }); } -const handleDisable = (record) => { - callUser("/staff/staffInfoDisable/" + record['staffId'], {}, "get").then((res) => { +const handleDisable = (record, state) => { + callUser("/staff/staffInfoDisable/" + record['staffId'] + "/" + state, {}, "get").then((res) => { if (res.code != 200) { message.error(res.message) dataSource.value = [] diff --git a/ebike-operate/src/views/form/accountmanage/AccountManage.vue b/ebike-operate/src/views/form/accountmanage/AccountManage.vue index 8285980..ecdfe7d 100644 --- a/ebike-operate/src/views/form/accountmanage/AccountManage.vue +++ b/ebike-operate/src/views/form/accountmanage/AccountManage.vue @@ -145,6 +145,9 @@ const openForm = (params = {}) => { return { label: item['zoneName'], value: item['zoneId'] } }) options.value = data; + if (params['staffId']) { + changeZoneId(params['zoneId']) + } }); callUser("/roles/listByOrgId", {}, "get").then((res) => { if (res.code != 200) {