bug
This commit is contained in:
@@ -87,8 +87,10 @@
|
|||||||
<ai-table
|
<ai-table
|
||||||
:tableData="tableData"
|
:tableData="tableData"
|
||||||
:col-configs="colConfigs"
|
:col-configs="colConfigs"
|
||||||
:isShowPagination="false"
|
:total="search1.total"
|
||||||
@getList="() => {}">
|
:current.sync="search1.current"
|
||||||
|
:size.sync="search1.size"
|
||||||
|
@getList="getActiveAnalysStatistics">
|
||||||
</ai-table>
|
</ai-table>
|
||||||
</template>
|
</template>
|
||||||
</ai-card>
|
</ai-card>
|
||||||
@@ -193,6 +195,11 @@
|
|||||||
current: 1,
|
current: 1,
|
||||||
wxUserId: ''
|
wxUserId: ''
|
||||||
},
|
},
|
||||||
|
search1: {
|
||||||
|
size: 10,
|
||||||
|
total: 0,
|
||||||
|
current: 1
|
||||||
|
},
|
||||||
search: {
|
search: {
|
||||||
status: '',
|
status: '',
|
||||||
size: 10,
|
size: 10,
|
||||||
@@ -373,7 +380,7 @@
|
|||||||
series: y.map(key => {
|
series: y.map(key => {
|
||||||
return {
|
return {
|
||||||
data: data.map(v => v[key]),
|
data: data.map(v => v[key]),
|
||||||
type: 'bar',
|
type: 'line',
|
||||||
name: key,
|
name: key,
|
||||||
tooltip: {
|
tooltip: {
|
||||||
valueFormatter: function (value) {
|
valueFormatter: function (value) {
|
||||||
@@ -461,9 +468,17 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
getActiveAnalysStatistics () {
|
getActiveAnalysStatistics () {
|
||||||
this.instance.post(`/app/wxuseruselog/active-analysis-statistics?department=${this.department}&x=${this.x}&y=${this.y}`).then(res => {
|
this.instance.post(`/app/wxuseruselog/active-analysis-statistics`, null, {
|
||||||
|
params: {
|
||||||
|
department: this.department,
|
||||||
|
x: this.x,
|
||||||
|
y: this.y,
|
||||||
|
...this.search1
|
||||||
|
}
|
||||||
|
}).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.tableData = res.data
|
this.tableData = res.data.records
|
||||||
|
this.search1.total = res.data.total
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user