diff --git a/dist.rar b/dist.rar new file mode 100644 index 0000000..645a3a2 Binary files /dev/null and b/dist.rar differ diff --git a/src/views/statistic_cw/index.vue b/src/views/statistic_cw/index.vue index b742236..76fd845 100644 --- a/src/views/statistic_cw/index.vue +++ b/src/views/statistic_cw/index.vue @@ -90,92 +90,7 @@ const visitorOption: any = reactive({ // 颜色 const colorList = ['#5DB1FF', '#4CD384', '#FFC46A', '#CAA5F1', '#FFC46A', '#4CD384', '#5DB1FF', '#CAA5F1'] // 商品浏览量, 商品访客数, 加购件数, 下单件数, 支付件数, 支付金额, 成本金额, 退款金额, 退款件数, 访客-支付转化率 -const basicList = reactive([ - // { - // name: '访客数', - // type: 'people', - // icon: 'RectangleCopy', - // num: 0, - // percent: 0 - // }, - // { - // name: '浏览量', - // type: 'browse', - // icon: 'RectangleCopy49', - // num: 0, - // percent: 0 - // }, - // { - // name: '新增用户数', - // type: 'newUser', - // icon: 'RectangleCopy53', - // num: 0, - // percent: 0 - // }, - // { - // name: '成交用户数', - // type: 'payPeople', - // icon: 'RectangleCopy5', - // num: 0, - // percent: 0 - // }, - // { - // name: '访客-支付转换率', - // type: 'payPercent', - // icon: 'RectangleCopy4', - // num: 0, - // percent: 0 - // }, - // { - // name: '激活付费会员数', - // type: 'payUser', - // icon: 'RectangleCopy7', - // num: 0, - // percent: 0 - // }, - // { - // name: '充值用户数', - // type: 'rechargePeople', - // icon: 'RectangleCopy59', - // num: 0, - // percent: 0 - // }, - // { - // name: '客单价', - // type: 'payPrice', - // icon: 'RectangleCopy15', - // num: 0, - // percent: 0 - // }, - // { - // name: '累计用户', - // type: 'cumulativeUser', - // icon: 'RectangleCopy54', - // num: 0, - // percent: 0 - // }, - // { - // name: '累计付费会员数', - // type: 'cumulativePayUser', - // icon: 'RectangleCopy7', - // num: 0, - // percent: 0 - // }, - // { - // name: '累计充值用户数', - // type: 'cumulativeRechargePeople', - // icon: 'RectangleCopy6', - // num: 0, - // percent: 0 - // }, - // { - // name: '累计成交用户数', - // type: 'cumulativePayPeople', - // icon: 'RectangleCopy9', - // num: 0, - // percent: 0 - // } -]) +const basicList = reactive([]) @@ -235,6 +150,7 @@ const getData2 = () => { num: item.total_money, } + visitorOption.legend.data.push(item.title) }) }) } diff --git a/src/views/statistic_gc/index.vue b/src/views/statistic_gc/index.vue index 9f621a2..52958d4 100644 --- a/src/views/statistic_gc/index.vue +++ b/src/views/statistic_gc/index.vue @@ -253,6 +253,8 @@ const getData2 = () => { num: item.total_money, } + visitorOption.legend.data.push(item.title) + }) }) } diff --git a/src/views/statistic_sc/index.vue b/src/views/statistic_sc/index.vue index 14300cb..a61fa64 100644 --- a/src/views/statistic_sc/index.vue +++ b/src/views/statistic_sc/index.vue @@ -235,6 +235,8 @@ const getData2 = () => { num: item.total_money, } + visitorOption.legend.data.push(item.title) + }) }) } diff --git a/src/views/statistic_xm/index.vue b/src/views/statistic_xm/index.vue index f216cf8..cd67466 100644 --- a/src/views/statistic_xm/index.vue +++ b/src/views/statistic_xm/index.vue @@ -258,6 +258,8 @@ const getData2 = () => { num: item.total_money, } + visitorOption.legend.data.push(item.title) + }) }) } diff --git a/src/views/statistic_zj/index.vue b/src/views/statistic_zj/index.vue index 5a28daa..9bcc534 100644 --- a/src/views/statistic_zj/index.vue +++ b/src/views/statistic_zj/index.vue @@ -67,7 +67,7 @@ const visitorOption: any = reactive({ containLabel: true }, legend: { - data: ['访问量'] + data: [] }, itemStyle: { // 点的颜色。 @@ -76,6 +76,8 @@ const visitorOption: any = reactive({ tooltip: { trigger: 'axis' }, + + series: [ { name: '访问量', @@ -89,92 +91,7 @@ const visitorOption: any = reactive({ // 颜色 const colorList = ['#5DB1FF', '#4CD384', '#FFC46A', '#CAA5F1', '#FFC46A', '#4CD384', '#5DB1FF', '#CAA5F1'] // 商品浏览量, 商品访客数, 加购件数, 下单件数, 支付件数, 支付金额, 成本金额, 退款金额, 退款件数, 访客-支付转化率 -const basicList = reactive([ - // { - // name: '访客数', - // type: 'people', - // icon: 'RectangleCopy', - // num: 0, - // percent: 0 - // }, - // { - // name: '浏览量', - // type: 'browse', - // icon: 'RectangleCopy49', - // num: 0, - // percent: 0 - // }, - // { - // name: '新增用户数', - // type: 'newUser', - // icon: 'RectangleCopy53', - // num: 0, - // percent: 0 - // }, - // { - // name: '成交用户数', - // type: 'payPeople', - // icon: 'RectangleCopy5', - // num: 0, - // percent: 0 - // }, - // { - // name: '访客-支付转换率', - // type: 'payPercent', - // icon: 'RectangleCopy4', - // num: 0, - // percent: 0 - // }, - // { - // name: '激活付费会员数', - // type: 'payUser', - // icon: 'RectangleCopy7', - // num: 0, - // percent: 0 - // }, - // { - // name: '充值用户数', - // type: 'rechargePeople', - // icon: 'RectangleCopy59', - // num: 0, - // percent: 0 - // }, - // { - // name: '客单价', - // type: 'payPrice', - // icon: 'RectangleCopy15', - // num: 0, - // percent: 0 - // }, - // { - // name: '累计用户', - // type: 'cumulativeUser', - // icon: 'RectangleCopy54', - // num: 0, - // percent: 0 - // }, - // { - // name: '累计付费会员数', - // type: 'cumulativePayUser', - // icon: 'RectangleCopy7', - // num: 0, - // percent: 0 - // }, - // { - // name: '累计充值用户数', - // type: 'cumulativeRechargePeople', - // icon: 'RectangleCopy6', - // num: 0, - // percent: 0 - // }, - // { - // name: '累计成交用户数', - // type: 'cumulativePayPeople', - // icon: 'RectangleCopy9', - // num: 0, - // percent: 0 - // } -]) +const basicList = reactive([]) function getLastMonthRange() { // 获取今天的日期 let today = new Date(); @@ -230,6 +147,7 @@ const getData2 = () => { num: item.total_money, } + visitorOption.legend.data.push(item.title) }) }) } diff --git a/src/views/statistic_zx/index.vue b/src/views/statistic_zx/index.vue index c3d5f11..3d8ea1c 100644 --- a/src/views/statistic_zx/index.vue +++ b/src/views/statistic_zx/index.vue @@ -231,6 +231,7 @@ const getData2 = () => { icon: 'RectangleCopy14', num: item.total_money, } + visitorOption.legend.data.push(item.title) }) }) } diff --git a/src/views/workbench/index.vue b/src/views/workbench/index.vue index d2537c1..1ad1065 100644 --- a/src/views/workbench/index.vue +++ b/src/views/workbench/index.vue @@ -1,201 +1,233 @@ + - + +