|
|
@@ -238,23 +238,24 @@
|
|
|
staffList () {
|
|
|
this.$store.dispatch('staff/loadStaffList', {count: this.count, page: this.page, enuu: this.userInfo.enterprise.uu})
|
|
|
},
|
|
|
+ // 员工列表下拉加载更多
|
|
|
onPullUpAction: function () {
|
|
|
this.page++
|
|
|
this.staffList()
|
|
|
this.isValid = true
|
|
|
},
|
|
|
- // 员工搜索
|
|
|
+ // 员工列表搜索
|
|
|
staffRecord () {
|
|
|
this.role = '全部角色'
|
|
|
this.showRole = false
|
|
|
this.$store.dispatch('staff/loadStaffList', {count: this.count, page: this.page, enuu: this.user.data.enterprise.uu, keyword: this.staffSearch})
|
|
|
},
|
|
|
- // 删除员工
|
|
|
+ // 员工列表删除员工
|
|
|
openDelete (item) {
|
|
|
this.currentObject = item
|
|
|
this.showDelete = true
|
|
|
},
|
|
|
- // 确认删除
|
|
|
+ // 员工列表确认删除
|
|
|
sureDelete () {
|
|
|
this.$http.delete('/basic/user/' + this.currentObject.userUU)
|
|
|
.then(response => {
|
|
|
@@ -311,7 +312,7 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- // 当前选中对象
|
|
|
+ // 员工列表当前选中对象
|
|
|
goEdit (item) {
|
|
|
let currentData = item
|
|
|
this.currentStaff = this.baseUtils.deepCopy(currentData)
|
|
|
@@ -325,15 +326,15 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- // 选择角色
|
|
|
+ // 员工列表选择角色
|
|
|
checkRole (role) {
|
|
|
role.checked = !role.checked
|
|
|
},
|
|
|
- // 取消编辑
|
|
|
+ // 员工列表取消编辑
|
|
|
cancelBind () {
|
|
|
this.activeTab = 0
|
|
|
},
|
|
|
- // 确定编辑
|
|
|
+ // 员工列表确定编辑
|
|
|
sureEdit () {
|
|
|
this.currentStaff.roles = []
|
|
|
for (var i = 0 ; i< this.rolesList.length; i++) {
|
|
|
@@ -352,9 +353,10 @@
|
|
|
},
|
|
|
// 申请绑定搜索
|
|
|
auditRecord () {
|
|
|
+ console.log(this.user.data.enterprise.uu)
|
|
|
this.$store.dispatch('staff/loadBindAudit', {count: this.count, page: this.page, speaceUU: this.user.data.enterprise.uu, status: 311, keyword: this.auditSearch})
|
|
|
},
|
|
|
- // 绑定下拉
|
|
|
+ // 申请绑定下拉更多
|
|
|
onPullUpAudit () {
|
|
|
this.page++
|
|
|
this.auditRecord()
|
|
|
@@ -381,8 +383,8 @@
|
|
|
background: #fff;
|
|
|
span {
|
|
|
font-size: .29rem;
|
|
|
- &:first-child {
|
|
|
- margin-right: 2.6rem;
|
|
|
+ &:last-child {
|
|
|
+ margin-left: 2.6rem;
|
|
|
}
|
|
|
&.active {
|
|
|
color: $base-color;
|