diff --git a/cmdb-ui/src/views/setting/companyStructure/index.vue b/cmdb-ui/src/views/setting/companyStructure/index.vue
index 63e1578..7620d25 100644
--- a/cmdb-ui/src/views/setting/companyStructure/index.vue
+++ b/cmdb-ui/src/views/setting/companyStructure/index.vue
@@ -534,7 +534,7 @@ export default {
})
},
getAllFlatEmployees() {
- getEmployeeList({ block_status: 0, page_size: 99999 }).then((res) => {
+ getEmployeeList({ block_status: -1, page_size: 99999 }).then((res) => {
this.allFlatEmployees = res.data_list
})
},
@@ -721,7 +721,7 @@ export default {
this.loading = false
},
updateAll() {
- this.expression = []
+ // this.expression = []
this.updateCount()
this.updateTableDataByFilter()
},
@@ -774,7 +774,7 @@ export default {
},
reset() {
this.filterName = ''
- this.$refs.filterComp.expression = ''
+ this.$refs.filterComp.expression = []
this.updateTableDataByFilter()
},
handleSearch(expression) {
diff --git a/cmdb-ui/src/views/setting/components/employeeTable.vue b/cmdb-ui/src/views/setting/components/employeeTable.vue
index 979b25d..652ea12 100644
--- a/cmdb-ui/src/views/setting/components/employeeTable.vue
+++ b/cmdb-ui/src/views/setting/components/employeeTable.vue
@@ -57,23 +57,7 @@
>
-
+
用户名
@@ -88,23 +72,7 @@
>
-
+
邮箱
@@ -120,23 +88,7 @@
>
-
+
性别
@@ -151,57 +103,25 @@
>
-
+
手机号
-
+
部门
@@ -217,29 +137,13 @@
sortable
v-if="
checkedCols.findIndex((v) => v == 'position_name') !== -1 &&
- attributes.findIndex((v) => v == 'position_name') !== -1
+ attributes.findIndex((v) => v == 'position_name') !== -1
"
key="position_name"
>
-
+
岗位
@@ -251,29 +155,13 @@
sortable
v-if="
checkedCols.findIndex((v) => v == 'direct_supervisor_id') !== -1 &&
- attributes.findIndex((v) => v == 'direct_supervisor_id') !== -1
+ attributes.findIndex((v) => v == 'direct_supervisor_id') !== -1
"
key="direct_supervisor_id"
>
-
+
直接上级
@@ -290,30 +178,14 @@
min-width="80"
v-if="
checkedCols.findIndex((v) => v == 'annual_leave') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'annual_leave') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'annual_leave') !== -1
"
key="annual_leave"
>
-
+
年假
@@ -325,30 +197,14 @@
min-width="100"
v-if="
checkedCols.findIndex((v) => v == 'virtual_annual_leave') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'virtual_annual_leave') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'virtual_annual_leave') !== -1
"
key="virtual_annual_leave"
>
-
+
虚拟年假
@@ -360,34 +216,58 @@
min-width="100"
v-if="
checkedCols.findIndex((v) => v == 'parenting_leave') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'parenting_leave') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'parenting_leave') !== -1
"
key="parenting_leave"
>
-
+
育儿假
+
+
+
+
+ 目前所属主体
+
+
+
+
+
+
+
+ 初始入职日期
+
+
+
-
+
目前主体入职日期
@@ -431,30 +295,14 @@
v-bind="tableType === 'structure' ? { filters: internOptions, 'filter-multiple': false } : {}"
v-if="
checkedCols.findIndex((v) => v == 'is_internship') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'is_internship') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'is_internship') !== -1
"
key="is_internship"
>
-
+
正式/实习生
@@ -469,30 +317,14 @@
min-width="100"
v-if="
checkedCols.findIndex((v) => v == 'leave_date') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'leave_date') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'leave_date') !== -1
"
key="leave_date"
>
-
+
离职日期
@@ -504,30 +336,14 @@
min-width="120"
v-if="
checkedCols.findIndex((v) => v == 'id_card') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'id_card') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'id_card') !== -1
"
key="id_card"
>
-
+
身份证号码
@@ -539,30 +355,14 @@
min-width="80"
v-if="
checkedCols.findIndex((v) => v == 'nation') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'nation') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'nation') !== -1
"
key="nation"
>
-
+
民族
@@ -574,30 +374,14 @@
min-width="120"
v-if="
checkedCols.findIndex((v) => v == 'id_place') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'id_place') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'id_place') !== -1
"
key="id_place"
>
-
+
籍贯
@@ -609,30 +393,14 @@
min-width="100"
v-if="
checkedCols.findIndex((v) => v == 'party') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'party') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'party') !== -1
"
key="party"
>
-
+
组织关系
@@ -644,30 +412,14 @@
min-width="100"
v-if="
checkedCols.findIndex((v) => v == 'household_registration_type') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'household_registration_type') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'household_registration_type') !== -1
"
key="household_registration_type"
>
-
+
户籍类型
@@ -679,30 +431,14 @@
min-width="120"
v-if="
checkedCols.findIndex((v) => v == 'hometown') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'hometown') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'hometown') !== -1
"
key="hometown"
>
-
+
户口所在地
@@ -714,30 +450,14 @@
min-width="100"
v-if="
checkedCols.findIndex((v) => v == 'marry') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'marry') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'marry') !== -1
"
key="marry"
>
-
+
婚姻情况
@@ -749,30 +469,14 @@
min-width="100"
v-if="
checkedCols.findIndex((v) => v == 'max_degree') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'max_degree') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'max_degree') !== -1
"
key="max_degree"
>
-
+
最高学历
@@ -784,30 +488,14 @@
min-width="110"
v-if="
checkedCols.findIndex((v) => v == 'emergency_person') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'emergency_person') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'emergency_person') !== -1
"
key="emergency_person"
>
-
+
紧急联系人
@@ -819,30 +507,14 @@
min-width="120"
v-if="
checkedCols.findIndex((v) => v == 'emergency_phone') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'emergency_phone') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'emergency_phone') !== -1
"
key="emergency_phone"
>
-
+
紧急联系电话
@@ -854,30 +526,14 @@
min-width="120"
v-if="
checkedCols.findIndex((v) => v == 'bank_card_number') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'bank_card_number') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'bank_card_number') !== -1
"
key="bank_card_number"
>
-
+
卡号
@@ -889,30 +545,14 @@
min-width="100"
v-if="
checkedCols.findIndex((v) => v == 'bank_card_name') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'bank_card_name') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'bank_card_name') !== -1
"
key="bank_card_name"
>
-
+
银行
@@ -924,30 +564,14 @@
min-width="100"
v-if="
checkedCols.findIndex((v) => v == 'opening_bank') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'opening_bank') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'opening_bank') !== -1
"
key="opening_bank"
>
-
+
开户行
@@ -959,30 +583,14 @@
min-width="120"
v-if="
checkedCols.findIndex((v) => v == 'account_opening_location') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'account_opening_location') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'account_opening_location') !== -1
"
key="account_opening_location"
>
-
+
开户地
@@ -993,30 +601,14 @@
min-width="100"
v-if="
checkedCols.findIndex((v) => v == 'school') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'school') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'school') !== -1
"
key="school"
>
-
+
学校
@@ -1027,30 +619,14 @@
min-width="100"
v-if="
checkedCols.findIndex((v) => v == 'major') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'major') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'major') !== -1
"
key="major"
>
-
+
专业
@@ -1061,30 +637,14 @@
min-width="80"
v-if="
checkedCols.findIndex((v) => v == 'education') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'education') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'education') !== -1
"
key="education"
>
-
+
学历
@@ -1095,30 +655,14 @@
min-width="100"
v-if="
checkedCols.findIndex((v) => v == 'graduation_year') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'graduation_year') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'graduation_year') !== -1
"
key="graduation_year"
>
-
+
毕业年份
@@ -1129,30 +673,14 @@
min-width="80"
v-if="
checkedCols.findIndex((v) => v == 'name') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'name') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'name') !== -1
"
key="name"
>
-
+
子女姓名
@@ -1163,30 +691,14 @@
min-width="80"
v-if="
checkedCols.findIndex((v) => v == 'gender') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'gender') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'gender') !== -1
"
key="gender"
>
-
+
子女性别
@@ -1197,30 +709,14 @@
min-width="100"
v-if="
checkedCols.findIndex((v) => v == 'birthday') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'birthday') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'birthday') !== -1
"
key="birthday"
>
-
+
子女出生日期
@@ -1231,34 +727,51 @@
min-width="100"
v-if="
checkedCols.findIndex((v) => v == 'parental_leave_left') !== -1 &&
- tableType == 'structure' &&
- attributes.findIndex((v) => v == 'parental_leave_left') !== -1
+ tableType == 'structure' &&
+ attributes.findIndex((v) => v == 'parental_leave_left') !== -1
"
key="parental_leave_left"
>
-
+
剩余育儿假
+
+
+
+
+ 角色
+
+
+
+
+
+
+ {{ item.role_name }}
+
+
+
+
+ {{ item.role_name }}
+
+
+
+
+
-
+
上次登录时间
@@ -1317,7 +814,7 @@
>
确定
-
+
-
+
- 重置密码
-
+
+ 重置密码
+
+
- 禁用
+
+ 禁用
+
- 恢复
+
+ 恢复
+
- 移除
+
+ 移除
+
@@ -1376,13 +881,17 @@