@@ -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
@@ -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})
])
@@ -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)
})