-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ $t('query') }}
+
{{ $t('add') }}
- {{ $t('import') }}
+ {{ $t('deleteBatch') }}
- {{ $t('export') }}
+ {{ $t('import') }}
- {{ $t('deleteBatch') }}
+ {{ $t('export') }}
@@ -71,14 +138,58 @@ export default {
deleteIsBatch: true
},
dataForm: {
- id: ''
- }
+ id: '',
+ realName: '',
+ mobile: '',
+ streetId: '',
+ identityNo: '',
+ communityId: '',
+ gridId: '',
+ registFlag: '',
+ postId: '',
+ timeRange: ''
+ },
+ streetOptions: [],
+ communityOptions: [],
+ gridOptions: [],
+ registOptions: [],
+ postOptions: []
}
},
components: {
AddOrUpdate
},
+ created: function () {
+ this.getStreetList()
+ },
methods: {
+ getStreetList () {
+ this.$http.get(`/sys/dept/sublist/0`).then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ }
+ this.streetOptions = res.data
+ }).catch(() => {})
+ },
+ getCommunityList () {
+ this.dataForm.communityId = ''
+ this.dataForm.gridId = ''
+ this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ }
+ this.communityOptions = res.data
+ }).catch(() => {})
+ },
+ getGridList () {
+ this.dataForm.gridId = ''
+ this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ }
+ this.gridOptions = res.data
+ }).catch(() => {})
+ },
formatCadre: function (row, column) {
return row.cadreFlag === 1 ? '是' : row.cadreFlag === 0 ? '否' : '未知'
},