From 0d704977a91adb83c3ff9c1769fe4b73fc54a565 Mon Sep 17 00:00:00 2001 From: futian.liu <liufutianyoo@163.com> Date: 星期四, 21 十二月 2023 17:29:38 +0800 Subject: [PATCH] 采购单模板下载和导入 --- admin-web/src/views/systemManger/server/user/edit.vue | 38 ++++++++++++++++++++------------------ 1 files changed, 20 insertions(+), 18 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..9e4d187 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: [ @@ -120,7 +121,7 @@ }, rules: { sysDeptId: [ - {required: true, message: '璇疯緭鍏�', trigger: 'blur'} + {required: true, message: '璇烽�夋嫨閮ㄩ棬', trigger: 'change'} ], userName: [ {required: true, message: '璇疯緭鍏ヤ汉鍛樺鍚�', trigger: 'blur'} @@ -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