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) {