diff --git a/src/views/modules/user/unauthorized.vue b/src/views/modules/user/unauthorized.vue
index 4bf7de3..a762a84 100644
--- a/src/views/modules/user/unauthorized.vue
+++ b/src/views/modules/user/unauthorized.vue
@@ -4,7 +4,7 @@
+ @keyup.enter.native="getDataList()">
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+ 注册时间
+
- {{ $t('query') }}
+ {{ $t('query') }}
{{ $t('export') }}
@@ -96,11 +81,12 @@
border
@selection-change="dataListSelectionChangeHandle"
style="width: 100%;">
-
-
- {{scope.$index+1}}
-
-
+
+ {{scope.$index+1}}
-
+
+
+
+
+ align="center">
+ align="center">
+ width="100">
{
- let beginDateVal = this.dataForm.endTime
- if (beginDateVal) {
- return time.getTime() > new Date(beginDateVal + ' 00:00:00').getTime()
- }
- }
- },
- pickerBeginDateAfter: {
- disabledDate: (time) => {
- let EndDateVal = this.dataForm.startTime
- if (EndDateVal) {
- return time.getTime() < new Date(EndDateVal + ' 00:00:00').getTime()
- }
- }
- },
deptIdList: [],
options: [],
userDetailVisible: false,
@@ -235,7 +202,6 @@ export default {
this.options = res.data.options
})
.catch(() => { })
- this.initTime()
},
watch: {
'deptIdList': function (val) {
@@ -243,53 +209,29 @@ export default {
this.dataForm.streetId = ''
this.dataForm.communityId = ''
this.dataForm.gridId = ''
- }
+ this.dataForm.deptId = ''
+ }else
if (val.length === 1) {
this.dataForm.streetId = this.deptIdList[0]
this.dataForm.communityId = ''
this.dataForm.gridId = ''
- }
+ this.dataForm.deptId = this.deptIdList[0]
+ }else
if (val.length === 2) {
this.dataForm.streetId = this.deptIdList[0]
this.dataForm.communityId = this.deptIdList[1]
this.dataForm.gridId = ''
- }
+ this.dataForm.deptId = this.deptIdList[1]
+ }else
if (val.length === 3) {
this.dataForm.streetId = this.deptIdList[0]
this.dataForm.communityId = this.deptIdList[1]
this.dataForm.gridId = this.deptIdList[2]
+ this.dataForm.deptId = this.deptIdList[2]
}
}
},
methods: {
- initTime () {
- const end = new Date()
- const start = new Date()
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
- this.time = [start, end]
- let year = start.getFullYear()
- let month = start.getMonth() + 1
- if (month < 10) {
- month = '0' + month
- }
- let date = start.getDate()
- if (date < 10) {
- date = '0' + date
- }
- let startDate = year + '-' + month + '-' + date
- let yearend = end.getFullYear()
- let monthend = end.getMonth() + 1
- if (monthend < 10) {
- monthend = '0' + monthend
- }
- let dateend = end.getDate()
- if (dateend < 10) {
- dateend = '0' + dateend
- }
- let endDate = yearend + '-' + monthend + '-' + dateend
- this.dataForm.startTime = startDate
- this.dataForm.endTime = endDate
- },
getStreetList () {
this.$http.get(`/sys/dept/sublist/` + (localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street'))).then(({ data: res }) => {
if (res.code !== 0) {
@@ -322,6 +264,10 @@ export default {
}).catch(() => { })
}
},
+ setRegistTime () {
+ this.dataForm.startTime = this.time[0]
+ this.dataForm.endTime = this.time[1]
+ },
formatState: function (row, column) {
let state = row.state
if (state === '1') {
@@ -374,15 +320,7 @@ export default {
this.$refs.userDetail.dataForm.id = userId
this.$refs.userDetail.init()
})
- },
- btKeyUpnickname(e){
- e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】\\[\]、;‘’,。、\s+]/g, '')
- this.dataForm.nickname = e.target.value
- },
- btKeyUpmobile(e){
- e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】\\[\]、;‘’,。、\s+]/g, '')
- this.dataForm.mobile = e.target.value
- },
+ }
},
components: {
AddOrUpdate,