|
|
@ -334,10 +334,39 @@ export default { |
|
|
.catch(() => { }) |
|
|
.catch(() => { }) |
|
|
// this.getStreetList() |
|
|
// this.getStreetList() |
|
|
this.getRegistOptions() |
|
|
this.getRegistOptions() |
|
|
|
|
|
this.initTime() |
|
|
// this.getPostOptions() |
|
|
// this.getPostOptions() |
|
|
this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/app-user/partymembers/importExcel?token=${Cookies.get('token')}` |
|
|
this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/app-user/partymembers/importExcel?token=${Cookies.get('token')}` |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
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 |
|
|
|
|
|
}, |
|
|
btKeyUpRealName (e) { |
|
|
btKeyUpRealName (e) { |
|
|
e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】、;‘’,。、]/g, '') |
|
|
e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】、;‘’,。、]/g, '') |
|
|
this.dataForm.realName = e.target.value |
|
|
this.dataForm.realName = e.target.value |
|
|
|