瀏覽代碼

处理员工管理搜索功能

wangcz 7 年之前
父節點
當前提交
8ee7a3e3be
共有 3 個文件被更改,包括 3 次插入9 次删除
  1. 2 7
      components/mobile/staffManagement/StaffList.vue
  2. 0 1
      pages/mobile/user/staff/index.vue
  3. 1 1
      store/staff.js

+ 2 - 7
components/mobile/staffManagement/StaffList.vue

@@ -112,9 +112,6 @@
       EmptyStatus,
       BaseFilter
     },
-    created () {
-      this.auditRecord()
-    },
     mounted () {
       // 获取角色
       this.$nextTick(() => {
@@ -150,8 +147,7 @@
           } else {
             this.AuditList = [...this.AuditList, ...val.content]
           }
-        },
-        immediate: true
+        }
       }
     },
     computed: {
@@ -165,8 +161,7 @@
         return Math.floor(this.staffData.totalElements / this.staffData.size) + Math.floor(this.staffData.totalElements % this.staffData.size > 0 ? 1 : 0)
       },
       auditBind () {
-        console.log(this.$store.state.staff.infoList.audit.data, '213')
-        return this.$store.state.staff.infoList.audit.data ? this.$store.state.staff.infoList.audit.data.content : {content: []}
+        return this.$store.state.staff.infoList.audit.data || {content:[]}
       },
       fetch () {
         return this.$store.state.staff.infoList.audit.fetching

+ 0 - 1
pages/mobile/user/staff/index.vue

@@ -13,7 +13,6 @@
     },
     fetch ({ store }) {
       return Promise.all([
-        store.dispatch('staff/loadBindAudit', {count: 10, page: 1, speaceUU: store.state.option.user.data.enterprise.uu, status: 311}),
         store.dispatch('staff/loadStaffList', {count: 10, page: 1, enuu: store.state.option.user.data.enterprise.uu})
       ])
     }

+ 1 - 1
store/staff.js

@@ -16,7 +16,7 @@ export const actions = {
     commit('infoList/REQUEST_BIND_AUDIT')
     return axios.get(`/api/userspace/apply/info/mall`, {params})
       .then(res => {
-        commit('infoList/GET_BIND_AUDIT_SUCCESS', res.data)
+        commit('infoList/GET_BIND_AUDIT_SUCCESS', res.data.content)
       }, err => {
         commit('infoList/GET_BIND_AUDIT_FAILURE', err)
       })