This commit is contained in:
faiz 2024-06-25 17:07:31 +08:00
parent e594023894
commit 69d900b1f9
2 changed files with 18 additions and 7 deletions

View File

@ -1,20 +1,20 @@
<template>
<el-row :gutter="40" class="panel-group">
<el-col :xs="12" :sm="12" :lg="6" class="card-panel-col">
<div class="card-panel">
<div class="card-panel" @click="handleOrder()">
<div class="card-panel-icon-wrapper icon-shopping">
<svg-icon icon-class="shopping" class-name="card-panel-icon" />
</div>
<div class="card-panel-description">
<div class="card-panel-text">
<router-link to="/order/index">订单</router-link>
<span>订单</span>
</div>
<count-to :start-val="0" :end-val="all" :duration="1" class="card-panel-num" />
</div>
</div>
</el-col>
<el-col :xs="12" :sm="12" :lg="6" class="card-panel-col">
<div class="card-panel">
<div class="card-panel" @click="handleOrder()">
<div class="card-panel-icon-wrapper icon-money3">
<svg-icon icon-class="money" class-name="card-panel-icon" />
</div>
@ -27,26 +27,26 @@
</div>
</el-col>
<el-col :xs="12" :sm="12" :lg="6" class="card-panel-col">
<div class="card-panel">
<div class="card-panel" @click="handleOrder({status:0})">
<div class="card-panel-icon-wrapper icon-message2">
<svg-icon icon-class="message" class-name="card-panel-icon" />
</div>
<div class="card-panel-description">
<div class="card-panel-text">
<router-link to="/order/index?status=0">待跟进</router-link>
<span to="/order/index?">待跟进</span>
</div>
<count-to :start-val="0" :end-val="wait" :duration="1" class="card-panel-num" />
</div>
</div>
</el-col>
<el-col :xs="12" :sm="12" :lg="6" class="card-panel-col">
<div class="card-panel">
<div class="card-panel" @click="handleOrder({status:1})">
<div class="card-panel-icon-wrapper icon-message">
<svg-icon icon-class="message" class-name="card-panel-icon" />
</div>
<div class="card-panel-description">
<div class="card-panel-text">
<router-link to="/order/index?status=1">跟进中</router-link>
<span to="/order/index?status=1">跟进中</span>
</div>
<count-to :start-val="0" :end-val="doing" :duration="1" class="card-panel-num" />
</div>
@ -145,6 +145,12 @@ export default {
methods: {
handleSetLineChartData(type) {
this.$emit('handleSetLineChartData', type)
},
handleOrder(val){
this.$router.push({
path: "/order/index",
query: val
})
}
}
}

View File

@ -448,6 +448,11 @@ export default {
this.listQuery.times = [this.$route.query.start, this.$route.query.end]
}
if (this.$route.query.hasOwnProperty('status')) {
this.listQuery.status = this.$route.query.status
} else {
this.listQuery.status = ''
}
this.getList()
this.getShortcutContent()
this.getAdminList()