diff --git a/src/views/modules/user/user-add-or-update.vue b/src/views/modules/user/user-add-or-update.vue
index b2c4bed0..006bdfcc 100644
--- a/src/views/modules/user/user-add-or-update.vue
+++ b/src/views/modules/user/user-add-or-update.vue
@@ -153,6 +153,8 @@ export default {
...this.dataForm,
...res.data
}
+ console.log(this.dataForm)
+ this.dataForm.tagIds = []
}).catch(() => {})
},
// 审核
diff --git a/src/views/modules/user/user.vue b/src/views/modules/user/user.vue
index 6132236e..5af18954 100644
--- a/src/views/modules/user/user.vue
+++ b/src/views/modules/user/user.vue
@@ -85,8 +85,8 @@
-
-
+
+
@@ -313,7 +313,7 @@
-
+
@@ -372,7 +372,8 @@ export default {
startTime: '',
endTime: '',
isParty: '',
- tabFlag: '0'
+ tabFlag: '0',
+ auditState: ''
},
streetOptions: [],
communityOptions: [],
@@ -427,15 +428,23 @@ export default {
this.dataForm.startTime = this.time[0]
this.dataForm.endTime = this.time[1]
},
- formatPartyFlag: function (row, column) {
- return row.partyFlag === 1 ? '是' : row.partyFlag === 0 ? '否' : '未知'
+ formatState: function (row, column) {
+ console.log(row.state)
+ return row.state === 1 ? '审核通过' : row.state === 0 ? '待审核' : '未知'
},
handleClick (tab, event) {
console.log(tab, event)
- console.log(this.tabFlag)
- if (this.tabFlag !== 1) {
+ if (this.tabFlag === '0') {
+ this.dataForm.auditState = 0
+ this.dataForm.isParty = ''
+ } else if (this.tabFlag === '1') {
+ this.dataForm.auditState = 1
+ } else if (this.tabFlag === '2') {
+ this.dataForm.auditState = 2
this.dataForm.isParty = ''
}
+ console.log(this.dataForm.auditState)
+ this.getDataList()
}
},
components: {