宣发统计
This commit is contained in:
@@ -1,10 +1,31 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="AppPropagandaStatistics">
|
<div class="AppPropagandaStatistics">
|
||||||
|
<div class="calendar_header">
|
||||||
|
<u-section title="宣发日历" :show-line="false" sub-title="查看更多"></u-section>
|
||||||
|
</div>
|
||||||
|
<div class="threeDays">
|
||||||
|
<div class="yesterday">
|
||||||
|
<div class="itemYesterday">昨天<span>11:51</span></div>
|
||||||
|
<div>晴风小区志愿者活动</div>
|
||||||
|
</div>
|
||||||
|
<div class="today">
|
||||||
|
<div class="itemToday">今天<span>11:51</span></div>
|
||||||
|
<div>晴风小区志愿者活动</div>
|
||||||
|
</div>
|
||||||
|
<div class="tomorrow">
|
||||||
|
<div class="itemTomorrow">明天<span>11:51</span></div>
|
||||||
|
<div @click="showMore(index)">晴风小区志愿者活动</div>
|
||||||
|
<div class="isShow" @click="showMore()">{{ isShow ? '收起' : '展开' }}</div>
|
||||||
|
<span ></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<uni-calendar :insert="true" :selected="selected" :lunar="false" @change="change"/>
|
|
||||||
|
|
||||||
<!-- 折线图 -->
|
<!-- 折线图 -->
|
||||||
<div class="brokenEcharts">
|
<div class="brokenEcharts">
|
||||||
|
<div>
|
||||||
|
|
||||||
|
</div>
|
||||||
<div id="brokenEcharts"></div>
|
<div id="brokenEcharts"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="columnarEcharts">
|
<div class="columnarEcharts">
|
||||||
@@ -17,26 +38,22 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { uniCalendar } from "@dcloudio/uni-ui"
|
|
||||||
import echarts from 'echarts';
|
import echarts from 'echarts';
|
||||||
export default {
|
export default {
|
||||||
name: 'AppPropagandaStatistics',
|
name: 'AppPropagandaStatistics',
|
||||||
appName: '宣发统计',
|
appName: '宣发统计',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
date: '',
|
isShow: false,
|
||||||
selected: [{date: '2022-07-08',}],
|
|
||||||
brokenEcharts: null,
|
brokenEcharts: null,
|
||||||
columnarEcharts: null,
|
columnarEcharts: null,
|
||||||
pieEcharts: null,
|
pieEcharts: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
|
||||||
uniCalendar
|
|
||||||
},
|
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = '宣发统计'
|
document.title = '宣发统计'
|
||||||
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getBrokenEcharts()
|
this.getBrokenEcharts()
|
||||||
@@ -44,9 +61,8 @@ export default {
|
|||||||
this.getPieEcharts()
|
this.getPieEcharts()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
change(val) {
|
showMore() {},
|
||||||
this.date = `${val.year} + '-' + ${val.month} + '-' + ${val.day}`
|
|
||||||
},
|
|
||||||
// 折线图
|
// 折线图
|
||||||
getBrokenEcharts() {
|
getBrokenEcharts() {
|
||||||
this.brokenEcharts = echarts.init(document.getElementById('brokenEcharts'))
|
this.brokenEcharts = echarts.init(document.getElementById('brokenEcharts'))
|
||||||
@@ -55,6 +71,8 @@ export default {
|
|||||||
trigger: 'axis'
|
trigger: 'axis'
|
||||||
},
|
},
|
||||||
legend: {
|
legend: {
|
||||||
|
selectedMode: false,
|
||||||
|
orient: 'horizontal',
|
||||||
data: ['触达人次', '宣发次数', '宣发任务数']
|
data: ['触达人次', '宣发次数', '宣发任务数']
|
||||||
},
|
},
|
||||||
grid: {
|
grid: {
|
||||||
@@ -66,7 +84,7 @@ export default {
|
|||||||
xAxis: {
|
xAxis: {
|
||||||
type: 'category',
|
type: 'category',
|
||||||
boundaryGap: false,
|
boundaryGap: false,
|
||||||
data: ['2022.02', '2202.03', '2202.04', '2202.05', '2202.06', '2202.07']
|
data: ['2月', '3月', '4月', '5月', '6月', '7月']
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
type: 'value',
|
type: 'value',
|
||||||
@@ -75,20 +93,17 @@ export default {
|
|||||||
{
|
{
|
||||||
name: '触达人次',
|
name: '触达人次',
|
||||||
type: 'line',
|
type: 'line',
|
||||||
stack: 'Total',
|
|
||||||
data: [120, 132, 101, 134, 90, 230]
|
data: [120, 132, 101, 134, 90, 230]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '宣发次数',
|
name: '宣发次数',
|
||||||
type: 'line',
|
type: 'line',
|
||||||
stack: 'Total',
|
|
||||||
data: [220, 182, 191, 234, 290, 330]
|
data: [220, 182, 191, 234, 290, 330]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '宣发任务数',
|
name: '宣发任务数',
|
||||||
type: 'line',
|
type: 'line',
|
||||||
stack: 'Total',
|
data: [1000, 232, 201, 154, 190, 330]
|
||||||
data: [800, 232, 201, 154, 190, 330]
|
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
@@ -145,14 +160,15 @@ export default {
|
|||||||
show: false
|
show: false
|
||||||
},
|
},
|
||||||
data: [
|
data: [
|
||||||
{value: 5, name: '群发送达率',label:{
|
{value: 10, name: '群发送达率', label:{
|
||||||
normal:{
|
normal:{
|
||||||
show:true,
|
show:true,
|
||||||
formatter: '{d}%',
|
formatter: '{d}%\n群发送达率',
|
||||||
textStyle: {
|
textStyle: {
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
},
|
},
|
||||||
}}},
|
}}
|
||||||
|
},
|
||||||
{value: 120, name: '邮件营销'}
|
{value: 120, name: '邮件营销'}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -165,20 +181,54 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.AppPropagandaStatistics {
|
.AppPropagandaStatistics {
|
||||||
::v-deep .uni-calendar-item__weeks-box-circle {
|
|
||||||
top: 77%;
|
.calendar_header {
|
||||||
right: 45%;
|
padding: 26px 32px;
|
||||||
border-radius: 12px;
|
box-sizing: border-box;
|
||||||
|
background: #FFF;
|
||||||
|
::v-deep .u-section__title__text {
|
||||||
|
font-size: 32px;
|
||||||
}
|
}
|
||||||
::v-deep .uni-calendar__header {
|
|
||||||
height: 76px;
|
|
||||||
}
|
}
|
||||||
::v-deep .uni-calendar__backtoday {
|
.threeDays {
|
||||||
display: none
|
background: #FFF;
|
||||||
|
padding: 8px 32px 12px 32px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
.yesterday,
|
||||||
|
.today,
|
||||||
|
.tomorrow {
|
||||||
|
background: #F7F8FA;
|
||||||
|
margin-bottom: 32px;
|
||||||
|
padding: 30px 0 30px 40px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
.isShow {
|
||||||
|
color: #3AA0FF;
|
||||||
|
}
|
||||||
|
.itemYesterday,
|
||||||
|
.itemToday,
|
||||||
|
.itemTomorrow {
|
||||||
|
color: #999999;
|
||||||
|
span {
|
||||||
|
margin-left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.yesterday {
|
||||||
|
border-left: 6px solid #FBD444;
|
||||||
|
}
|
||||||
|
.today {
|
||||||
|
border-left: 6px solid #50CB74;
|
||||||
|
}
|
||||||
|
.tomorrow {
|
||||||
|
border-left: 6px solid #3AA0FF;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.brokenEcharts {
|
.brokenEcharts {
|
||||||
margin: 32px 0,
|
padding: 32px 0 60px 0,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.brokenEcharts,
|
.brokenEcharts,
|
||||||
@@ -191,6 +241,7 @@ export default {
|
|||||||
#pieEcharts {
|
#pieEcharts {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 400px;
|
height: 400px;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
43
src/project/saas/AppPropagandaStatistics/calendarInfo.vue
Normal file
43
src/project/saas/AppPropagandaStatistics/calendarInfo.vue
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
<template>
|
||||||
|
<div class="calendarInfo">
|
||||||
|
<uni-calendar :insert="true" :selected="selected" :lunar="false" @change="change"/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { uniCalendar } from "@dcloudio/uni-ui"
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
date: '',
|
||||||
|
selected: [{date: '2022-07-12'}],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
uniCalendar
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
change(val) {
|
||||||
|
this.date = `${val.year} + '-' + ${val.month} + '-' + ${val.day}`
|
||||||
|
},
|
||||||
|
},
|
||||||
|
onShow() {},
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.calendarInfo {
|
||||||
|
::v-deep .uni-calendar-item__weeks-box-circle {
|
||||||
|
top: 77%;
|
||||||
|
right: 45%;
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
::v-deep .uni-calendar__header {
|
||||||
|
height: 76px;
|
||||||
|
}
|
||||||
|
::v-deep .uni-calendar__backtoday {
|
||||||
|
display: none
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
18
src/project/saas/AppPropagandaStatistics/groupSendDetail.vue
Normal file
18
src/project/saas/AppPropagandaStatistics/groupSendDetail.vue
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<template>
|
||||||
|
<div class="groupSendDetail"></div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {}
|
||||||
|
},
|
||||||
|
methods: {},
|
||||||
|
onShow() {},
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.groupSendDetail {}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
<template>
|
||||||
|
<div class="groupSendResident"></div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
current: 1,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {},
|
||||||
|
onShow() {},
|
||||||
|
onReachBottom() {
|
||||||
|
this.current ++
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.groupSendResident {}
|
||||||
|
</style>
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
transpileDependencies: ['uview-ui'],
|
transpileDependencies: ['uview-ui'],
|
||||||
transpileDependencies:['@dcloudio/uni-ui'],
|
|
||||||
devServer: {
|
devServer: {
|
||||||
proxy: {
|
proxy: {
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user