Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
aixianling
2022-08-18 15:36:42 +08:00
2 changed files with 14 additions and 16 deletions

View File

@@ -120,10 +120,10 @@ export default {
this.getDetail() this.getDetail()
this.getIntegralChange() this.getIntegralChange()
this.getEventSummary() this.getEventSummary()
let timeSta = dayjs().format('YYYY-MM-DD') let nowTime = dayjs().format('YYYY-MM-DD')
let timeEnd = dayjs().subtract(29, 'day').format('YYYY-MM-DD') let timeAgo = dayjs().subtract(29, 'day').format('YYYY-MM-DD')
this.startPla = timeSta this.startPla = timeAgo
this.endPla = timeEnd this.endPla = nowTime
}) })
}, },
@@ -206,16 +206,12 @@ export default {
data: xData, data: xData,
}, },
yAxis: { yAxis: {
type: 'value' type: 'value',
}, },
series: [ series: [
{ {
data: yData, data: yData,
type: 'bar', type: 'bar',
showBackground: true,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
},
itemStyle: { itemStyle: {
normal: { normal: {
color: "#5087ec", color: "#5087ec",

View File

@@ -18,7 +18,7 @@
</ai-download> </ai-download>
</template> </template>
</ai-search-bar> </ai-search-bar>
<ai-table :tableData="tableData" :total="page.total" :current.sync="current" :size.sync="page.size" <ai-table :tableData="tableData" :total="total" :current.sync="current" :size.sync="size"
@getList="getTableData()" :col-configs="colConfigs" :dict="dict" @sort-change="changeTableSort"> @getList="getTableData()" :col-configs="colConfigs" :dict="dict" @sort-change="changeTableSort">
@@ -90,7 +90,8 @@ export default {
}, },
girdIdList: [], girdIdList: [],
tableData: [], tableData: [],
page: {size: 10, total: 0}, size: 10,
total: 0,
current: 1, current: 1,
girdList: [], girdList: [],
form: { form: {
@@ -124,9 +125,9 @@ export default {
return [ return [
{ prop: "userName", label: '姓名', align: "left", }, { prop: "userName", label: '姓名', align: "left", },
{ prop: "girdName", label: '所属网格' }, { prop: "girdName", label: '所属网格' },
{ prop: "integral", label: '积分余额', align: "center", sortable: true }, { prop: "integral", label: '积分余额', align: "center", sortable: "custom" },
{ prop: "totalIntegral", label: '累计积分', align: "center", sortable: true }, { prop: "totalIntegral", label: '累计积分', align: "center", sortable: "custom" },
{ prop: "usedIntegral", label: '已用积分', align: "center", sortable: true }, { prop: "usedIntegral", label: '已用积分', align: "center", sortable: "custom" },
{ slot: "options" }, { slot: "options" },
] ]
}, },
@@ -144,14 +145,15 @@ export default {
getTableData() { getTableData() {
this.instance.post(`/app/appintegraluser/integralManager`,null,{ this.instance.post(`/app/appintegraluser/integralManager`,null,{
params: { params: {
...this.page,
...this.search, ...this.search,
current: this.current, current: this.current,
size: this.size,
total: this.total
} }
}).then(res => { }).then(res => {
if(res?.data) { if(res?.data) {
this.tableData = res.data.records this.tableData = res.data.records
this.page.total = res.data.total this.total = res.data.total
} }
}) })
}, },