From 744ddc3550c2bdbe61f7326e4ab7c00dfa3ac51f Mon Sep 17 00:00:00 2001
From: yaozc <unbelievers@yeah.net>
Date: Tue, 21 Feb 2023 03:43:24 +0000
Subject: [PATCH] Merge branch 'master' of http://192.168.1.110:5678/r/pms-upgrade into yaozc
---
eladmin-web-master/src/views/system/user/index.vue | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/eladmin-web-master/src/views/system/user/index.vue b/eladmin-web-master/src/views/system/user/index.vue
index cfc9ef5..a54ed3a 100644
--- a/eladmin-web-master/src/views/system/user/index.vue
+++ b/eladmin-web-master/src/views/system/user/index.vue
@@ -199,9 +199,9 @@
>{{ item.label }}</el-radio>
</el-radio-group>
</el-form-item>
- <el-form-item label="公司" prop="company">
- <el-select v-model="form.company" style="width: 437px" clearable>
- <el-option v-for="item in companyList" :key="item.id" :label="item.label" :value="item.value" />
+ <el-form-item label="公司" prop="companyId">
+ <el-select v-model="form.companyId" style="width: 437px" clearable>
+ <el-option v-for="item in companyList" :key="item.id" :label="item.label" :value="item.id" />
</el-select>
</el-form-item>
<el-form-item style="margin-bottom: 0;" label="角色" prop="roles">
@@ -209,7 +209,6 @@
v-model="roleDatas"
style="width: 437px"
multiple
- :multiple-limit="1"
placeholder="请选择"
@remove-tag="deleteTag"
@change="changeRole"
@@ -243,10 +242,10 @@
</template>
</el-table-column>
<!-- 魏传栋 - 始 -->
- <el-table-column :show-overflow-tooltip="true" prop="company" label="公司" width="150">
+ <el-table-column :show-overflow-tooltip="true" prop="companyId" label="公司" width="150">
<template slot-scope="scope">
<template v-for="item in companyList">
- <span v-if="scope.row.company == item.value" :key="item.id">{{ item.label }}</span>
+ <span v-if="scope.row.companyId == item.id" :key="item.id">{{ item.label }}</span>
</template>
</template>
</el-table-column>
@@ -304,7 +303,7 @@
import { LOAD_CHILDREN_OPTIONS } from '@riophae/vue-treeselect'
import crudRostering from '@/api/system/rostering'
import crudLevel from '@/api/system/level'
-import crudSysUserCompany from '@/api/system/sysUserCompany'
+import crudSysCompany from '@/api/system/sysCompany'
let userRoles = []
let userJobs = []
const defaultForm = { id: null, username: null, nickName: null, gender: '男', email: null, enabled: 'false', roles: [], jobs: [], dept: { id: null }, phone: null, birthday: null, address: null, dingding: null, sysRostering: { id: null }, levelId: null }
@@ -376,7 +375,7 @@
{ min: 2, max: 100, message: '长度在 2 到 100 个字符', trigger: 'blur' }
],
// 魏传栋 - 始
- company: [
+ companyId: [
{ required: true, message: '请选择公司', trigger: 'blur' }
]
// 魏传栋 - 终
@@ -412,7 +411,7 @@
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
[CRUD.HOOK.beforeRefresh]() {
// 查询配置参数
- crudSysUserCompany.getAll().then(res => {
+ crudSysCompany.getAll().then(res => {
// 公司列表
this.companyList = res
})
--
Gitblit v1.9.3