|
|
@ -23,6 +23,7 @@ |
|
|
|
type="date" |
|
|
|
:clearable="false" |
|
|
|
@change="handleChangeDate" |
|
|
|
:picker-options="pickerOptions" |
|
|
|
prefix-icon="el-icon-caret-bottom" |
|
|
|
placeholder="选择日期" |
|
|
|
value-format="yyyy-MM-dd"> |
|
|
@ -30,11 +31,10 @@ |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-scrollbar style="width: 100%"> |
|
|
|
<div class="warning-box-top"> |
|
|
|
<div class="top-item" |
|
|
|
:class="{ |
|
|
|
'top-item-active': activeIndex == index , |
|
|
|
}" |
|
|
|
:class="{'top-item-active': activeIndex == index}" |
|
|
|
@click="onClickList(item,index)" |
|
|
|
v-for="(item, index) in categoryList" |
|
|
|
:key="index"> |
|
|
@ -62,6 +62,9 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</el-scrollbar> |
|
|
|
|
|
|
|
<div class="warning-box-bottom"> |
|
|
|
<screen-table ref="ref_recordlist"></screen-table> |
|
|
|
<div class="pagination"> |
|
|
@ -108,11 +111,15 @@ export default { |
|
|
|
checkStrictly: true |
|
|
|
}, |
|
|
|
|
|
|
|
pickerOptions: { //控制时间范围 |
|
|
|
disabledDate (time) { |
|
|
|
return time.getTime() > (Date.now() - (24 * 60 * 60 * 1000)) |
|
|
|
} |
|
|
|
}, |
|
|
|
dateIdShow: '', |
|
|
|
agencyId: '', |
|
|
|
level: '', |
|
|
|
dateId: '',//yyyyMMdd |
|
|
|
monthId: '',//yyyyMM |
|
|
|
categoryKey: '', |
|
|
|
agencyInfo: {}, |
|
|
|
|
|
|
@ -141,10 +148,7 @@ export default { |
|
|
|
async getApiData () { |
|
|
|
//获取各类人数 |
|
|
|
await this.getCategoryData() |
|
|
|
|
|
|
|
|
|
|
|
this.$refs.ref_recordlist.getRecordlist(this.monthId, this.categoryKey, this.pageNo, this.pageSize) |
|
|
|
|
|
|
|
this.loadRecordList() |
|
|
|
}, |
|
|
|
initData () { |
|
|
|
var time = (new Date).getTime() - 24 * 60 * 60 * 1000; |
|
|
@ -188,13 +192,19 @@ export default { |
|
|
|
this.pageNo = 1; |
|
|
|
this.categoryKey = item.categoryKey |
|
|
|
|
|
|
|
this.$refs.ref_recordlist.getRecordlist(this.monthId, this.categoryKey, this.pageNo, this.pageSize) |
|
|
|
this.loadRecordList() |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
loadRecordList () { |
|
|
|
this.$refs.ref_recordlist.getRecordlist(this.dateId, this.categoryKey, this.pageNo, this.pageSize, this.agencyId, this.level) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//获取各类人数 |
|
|
|
async getCategoryData () { |
|
|
|
// const url = "/data/aggregator/icuser/category-data"; |
|
|
|
const url = "http://yapi.elinkservice.cn/mock/245/data/aggregator/icuser/category-data"; |
|
|
|
const url = "/data/aggregator/icuser/category-data"; |
|
|
|
// const url = "http://yapi.elinkservice.cn/mock/245/data/aggregator/icuser/category-data"; |
|
|
|
let params = { |
|
|
|
orgType: this.level, |
|
|
|
orgId: this.agencyId, |
|
|
@ -226,18 +236,18 @@ export default { |
|
|
|
pageSizeChangeHandleNew (val) { |
|
|
|
this.pageNo = 1; |
|
|
|
this.pageSize = val; |
|
|
|
this.$refs.ref_recordlist.getRecordlist(this.monthId, this.categoryKey, this.pageNo, this.pageSize) |
|
|
|
this.loadRecordList() |
|
|
|
}, |
|
|
|
pageCurrentChangeHandleNew (val) { |
|
|
|
this.pageNo = val; |
|
|
|
this.$refs.ref_recordlist.getRecordlist(this.monthId, this.categoryKey, this.pageNo, this.pageSize) |
|
|
|
this.loadRecordList() |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
dateIdShow () { |
|
|
|
let dataArray = this.dateIdShow.split('-') |
|
|
|
this.dateId = dataArray.join('') |
|
|
|
this.monthId = this.dateId.substring(0, 6) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|