黔西南大屏
This commit is contained in:
@@ -37,6 +37,7 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.AiDvPanel {
|
.AiDvPanel {
|
||||||
|
position: relative;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
* {
|
* {
|
||||||
|
|||||||
@@ -229,6 +229,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="right-right">
|
<div class="right-right">
|
||||||
<AiDvPanel class="bottom" style="width: 410px" border="border6" title="办理排行">
|
<AiDvPanel class="bottom" style="width: 410px" border="border6" title="办理排行">
|
||||||
|
<div class="title-right">
|
||||||
|
<span :class="[dateRange === 0 ? 'active' : '']" @click="onReportChange(0)">昨天</span>
|
||||||
|
<span :class="[dateRange === 1 ? 'active' : '']" @click="onReportChange(1)">近七天</span>
|
||||||
|
<span :class="[dateRange === 2 ? 'active' : '']" @click="onReportChange(2)">近30天</span>
|
||||||
|
</div>
|
||||||
<ai-table
|
<ai-table
|
||||||
height="890px"
|
height="890px"
|
||||||
:tableData="reportHandleList"
|
:tableData="reportHandleList"
|
||||||
@@ -648,6 +653,7 @@
|
|||||||
status: '',
|
status: '',
|
||||||
categoryId: ''
|
categoryId: ''
|
||||||
},
|
},
|
||||||
|
dateRange: 2,
|
||||||
eventList: []
|
eventList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -848,6 +854,14 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onReportChange (index) {
|
||||||
|
this.dateRange = index
|
||||||
|
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.getReportHandleList()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
getReportList () {
|
getReportList () {
|
||||||
this.instance.post(`/api/wxgridinfo/reportList`, null, {
|
this.instance.post(`/api/wxgridinfo/reportList`, null, {
|
||||||
params: {
|
params: {
|
||||||
@@ -885,6 +899,23 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getReportHandleList () {
|
||||||
|
this.instance.post(`/api/wxgridinfo/reportHandleList`, null, {
|
||||||
|
params: {
|
||||||
|
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA',
|
||||||
|
gridId: this.gridId || this.gridParentId,
|
||||||
|
size: '50',
|
||||||
|
dateRange: this.dateRange
|
||||||
|
}
|
||||||
|
}).then(res => {
|
||||||
|
if (res.code === 0) {
|
||||||
|
this.reportHandleList = [
|
||||||
|
...res.data
|
||||||
|
]
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
getInfo () {
|
getInfo () {
|
||||||
this.instance.post(`/api/wxgridinfo/comprehensiveOverview`, null, {
|
this.instance.post(`/api/wxgridinfo/comprehensiveOverview`, null, {
|
||||||
params: {
|
params: {
|
||||||
@@ -897,22 +928,7 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
this.getWxGridReportCata()
|
this.getWxGridReportCata()
|
||||||
|
this.getReportHandleList()
|
||||||
this.instance.post(`/api/wxgridinfo/reportHandleList`, null, {
|
|
||||||
params: {
|
|
||||||
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA',
|
|
||||||
gridId: this.gridId || this.gridParentId,
|
|
||||||
size: '50',
|
|
||||||
dateRange: '2'
|
|
||||||
}
|
|
||||||
}).then(res => {
|
|
||||||
if (res.code === 0) {
|
|
||||||
this.reportHandleList = [
|
|
||||||
...res.data
|
|
||||||
]
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
this.getReportList()
|
this.getReportList()
|
||||||
|
|
||||||
this.instance.post(`/api/wxgridinfo/wxGridReportOverview`, null, {
|
this.instance.post(`/api/wxgridinfo/wxGridReportOverview`, null, {
|
||||||
@@ -972,6 +988,33 @@
|
|||||||
background: #0c0c0c;
|
background: #0c0c0c;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
.title-right {
|
||||||
|
display: flex;
|
||||||
|
position: absolute;
|
||||||
|
align-items: center;
|
||||||
|
top: 4px;
|
||||||
|
right: 0;
|
||||||
|
z-index: 11;
|
||||||
|
|
||||||
|
span {
|
||||||
|
width: 58px;
|
||||||
|
height: 22px;
|
||||||
|
line-height: 22px;
|
||||||
|
margin-right: 4px;
|
||||||
|
color: #1FBECC;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 12px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all ease 0.3s;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
background: rgba(31, 158, 204, 0.16);
|
||||||
|
|
||||||
|
&.active, &:hover {
|
||||||
|
background: rgba(31, 158, 204, 0.2);
|
||||||
|
border: 1px solid #20B4C5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.event-info {
|
.event-info {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user