From 02f85f84ce3d2212736e231c376dd084a7153783 Mon Sep 17 00:00:00 2001 From: 石广澎 <shiguangpeng@163.com> Date: 星期四, 30 十一月 2023 15:09:15 +0800 Subject: [PATCH] feat: 库存管理 出库管理、采购管理、报废管理 新增时物品查询增加机构限制 --- admin-web/src/views/systemManger/server/user/edit.vue | 36 +++++++++++++++++++----------------- 1 files changed, 19 insertions(+), 17 deletions(-) diff --git a/admin-web/src/views/systemManger/server/user/edit.vue b/admin-web/src/views/systemManger/server/user/edit.vue index 14efd94..395ee74 100644 --- a/admin-web/src/views/systemManger/server/user/edit.vue +++ b/admin-web/src/views/systemManger/server/user/edit.vue @@ -66,14 +66,14 @@ </template> <script> - import winSm from '@/components/win/win-sm' - import myButton from '@/components/myButton/myButton' - import * as DateFormatter from '@/utils/DateFormatter' - import * as role from "@/api/system/role"; - import * as user from "@/api/user"; - import {departmentListAll} from "@/api/system/deptment"; +import winSm from '@/components/win/win-sm' +import myButton from '@/components/myButton/myButton' +import * as DateFormatter from '@/utils/DateFormatter' +import * as role from "@/api/system/role"; +import * as user from "@/api/user"; +import {departmentListAll} from "@/api/system/deptment"; - export default { +export default { components: {winSm, myButton}, props: { // setting 涓』鑷冲皯鍖呭惈鎺у埗dialog鏄剧ず鎴栭殣钘忕殑灞炴��,鍏朵綑灞炴�у彲鎷撳睍 @@ -87,6 +87,7 @@ }, data() { return { + deptmentOptions:[], checkAll: false, checkedList: [], roleList: [ @@ -148,17 +149,18 @@ methods: { // 鑾峰彇鎵�鏈夎鑹� getAllRole() { - const user = this.$store.getters.userInfo + // const user = this.$store.getters.userInfo + // this.data_scope = 1 + // if (user.lv == 1) { + // this.data_scope = 1 + // } + // if (user.lv == 2) { + // this.data_scope = 2 + // } + // if (user.lv == 3) { + // this.data_scope = 3 + // } this.data_scope = 1 - if (user.lv == 1) { - this.data_scope = 1 - } - if (user.lv == 2) { - this.data_scope = 2 - } - if (user.lv == 3) { - this.data_scope = 3 - } role.listRoleByDataScope({dataScope: this.data_scope}).then(response => { if (response) { this.roleOptions = response; -- Gitblit v1.9.1