From 86b0362eaf4c320dc6a54fc12ce80b0bf7890a85 Mon Sep 17 00:00:00 2001
From: yaozc <yaozc@yhzhg.cn>
Date: Thu, 30 May 2024 02:06:17 +0000
Subject: [PATCH] 11111
---
eladmin-web-master/src/views/system/user/index.vue | 43 ++++++++++++-------------------------------
1 files changed, 12 insertions(+), 31 deletions(-)
diff --git a/eladmin-web-master/src/views/system/user/index.vue b/eladmin-web-master/src/views/system/user/index.vue
index cf84f58..c46fd8e 100644
--- a/eladmin-web-master/src/views/system/user/index.vue
+++ b/eladmin-web-master/src/views/system/user/index.vue
@@ -60,29 +60,6 @@
<crudOperation show="" :permission="permission">
<el-button
slot="right"
- v-permission="permission.levelWage"
- class="filter-item"
- size="mini"
- type="info"
- icon="el-icon-view"
- @click="toLevelWage"
- >
- 用户级别工资
- </el-button>
- <el-button
- slot="right"
- v-permission="permission.levelInsurance"
- class="filter-item"
- size="mini"
- type="info"
- icon="el-icon-view"
- style="margin-left: 4px !important;"
- @click="toLevelInsurance"
- >
- 用户级别保险
- </el-button>
- <el-button
- slot="right"
v-permission="permission.levelOther"
class="filter-item"
size="mini"
@@ -305,11 +282,12 @@
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import { LOAD_CHILDREN_OPTIONS } from '@riophae/vue-treeselect'
import crudRostering from '@/api/system/rostering'
-import crudLevel from '@/api/system/level'
+// import crudLevel from '@/api/system/level'
+import crudCmnLevel from '@/api/treatment/cmnLevel'
import crudSysCompany from '@/api/system/sysCompany'
let userRoles = []
let userJobs = []
-const defaultForm = { id: null, username: null, company: { id: null }, internshipTime: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 }
+const defaultForm = { id: null, username: null, company: { id: null }, internshipTime: 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 }
export default {
name: 'User',
components: { Treeselect, crudOperation, rrOperation, udOperation, pagination, DateRangePicker },
@@ -382,7 +360,7 @@
],
'company.id': [
{ required: true, message: '公司不能为空', trigger: 'blur' }
- ],
+ ]
},
// CRUD状态
crudStatusPrepared: CRUD.STATUS.PREPARED,
@@ -392,7 +370,7 @@
levels: [],
// 公司
companyList: [],
- internshipTimeList: Array.from({length: 12}, (v, i) => ({id: i+2, label: `${i+1}个月`})),
+ internshipTimeList: Array.from({ length: 12 }, (v, i) => ({ id: i + 2, label: `${i + 1}个月` })),
isEditing: false
}
},
@@ -418,8 +396,7 @@
// 公司列表
this.companyList = res
this.companyList.forEach(image => {
- console.log('id:' + image.id)
- })
+ })
})
return true
},
@@ -649,8 +626,12 @@
getLevel() {
// 判断用户岗位列表
if (userJobs.length !== 0) {
- // 获取级别
- crudLevel.getAll({ jobId: userJobs[0].id }).then(res => {
+ // // 获取级别
+ // crudLevel.getAll({ jobId: userJobs[0].id }).then(res => {
+ // // 级别
+ // this.levels = res
+ // })
+ crudCmnLevel.getAll({ jobId: userJobs[0].id }).then(res => {
// 级别
this.levels = res
})
--
Gitblit v1.9.3