|
|
@ -114,7 +114,7 @@ |
|
|
|
<el-form-item label="年龄" |
|
|
|
prop="age"> |
|
|
|
<inputRange v-model="searchForm.age" |
|
|
|
type="range" |
|
|
|
type="num" |
|
|
|
@change="handleAgeChange" /> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
@ -157,6 +157,7 @@ |
|
|
|
<el-table class="table" |
|
|
|
:data="tableData" |
|
|
|
border |
|
|
|
ref="ref_table" |
|
|
|
:height="tableHeight" |
|
|
|
v-loading="tableLoading" |
|
|
|
:header-cell-style="{background:'#2195FE',color:'#FFFFFF'}" |
|
|
@ -199,6 +200,12 @@ |
|
|
|
label="身份证号" |
|
|
|
width="180"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="birthDay" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
label="出生日期" |
|
|
|
width="140"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="vaccineCount" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
@ -563,16 +570,25 @@ export default { |
|
|
|
await this.loadTable() |
|
|
|
this.sHeight = this.$refs.div_search.offsetHeight + 230 |
|
|
|
}, |
|
|
|
activated () { |
|
|
|
this.$refs['ref_table'].doLayout() |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
handleAgeChange (val) { |
|
|
|
console.log('val----age---', val) |
|
|
|
if (val.end) { |
|
|
|
const s = this.computedBirth(val.end) |
|
|
|
if (val.start) { |
|
|
|
const e = this.computedBirth(val.start) |
|
|
|
this.searchForm.startBirthDay = s |
|
|
|
this.searchForm.endBirthDay = e |
|
|
|
|
|
|
|
} else { |
|
|
|
this.searchForm.endBirthDay = '' |
|
|
|
} |
|
|
|
if (val.end) { |
|
|
|
const s = this.computedBirth(val.end) |
|
|
|
this.searchForm.startBirthDay = s |
|
|
|
} else { |
|
|
|
this.searchForm.startBirthDay = '' |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|