宣发
This commit is contained in:
@@ -1,47 +1,115 @@
|
||||
<template>
|
||||
<div class="AppPropagandaStatistics">
|
||||
<div class="calendar_header">
|
||||
<u-section title="宣发日历" :show-line="false" sub-title="查看更多" @click="readMore"></u-section>
|
||||
<u-section
|
||||
title="宣发日历"
|
||||
:show-line="false"
|
||||
sub-title="查看更多"
|
||||
@click="readMore"
|
||||
></u-section>
|
||||
</div>
|
||||
<div class="threeDays">
|
||||
<div class="yesterday">
|
||||
<div class="itemYesterday">昨天<span>{{ nowMonth }}.{{ nowDate - 1 }}</span></div>
|
||||
<!-- <div v-if="calendarList[nowDate - 1].taskList">晴风小区志愿者活动</div> -->
|
||||
<!-- <div v-if="!calendarList[nowDate - 1].taskList">今日暂无宣发任务</div> -->
|
||||
<div class="itemYesterday">
|
||||
昨天<span>{{ nowMonth }}.{{ nowDate - 1 }}</span>
|
||||
</div>
|
||||
<div
|
||||
v-if="
|
||||
calendarList &&
|
||||
calendarList[nowDate - 1] &&
|
||||
calendarList[nowDate - 1].taskList.length > 0
|
||||
"
|
||||
>
|
||||
晴风小区志愿者活动
|
||||
</div>
|
||||
<div
|
||||
v-if="
|
||||
!(
|
||||
calendarList &&
|
||||
calendarList[nowDate - 1] &&
|
||||
calendarList[nowDate - 1].taskList.length > 0
|
||||
)
|
||||
"
|
||||
>
|
||||
今日暂无宣发任务
|
||||
</div>
|
||||
</div>
|
||||
<div class="today">
|
||||
<div class="itemToday">今天<span>{{ nowMonth }}.{{ nowDate }}</span></div>
|
||||
<!-- <div v-if="calendarList[nowDate].taskList">晴风小区志愿者活动</div> -->
|
||||
<!-- <div v-if="!calendarList[nowDate].taskList">今日暂无宣发任务</div> -->
|
||||
<div class="itemToday">
|
||||
今天<span>{{ nowMonth }}.{{ nowDate }}</span>
|
||||
</div>
|
||||
<div
|
||||
v-if="
|
||||
calendarList &&
|
||||
calendarList[nowDate - 1] &&
|
||||
calendarList[nowDate - 1].taskList.length > 0
|
||||
"
|
||||
>
|
||||
晴风小区志愿者活动
|
||||
</div>
|
||||
<div
|
||||
v-if="
|
||||
!(
|
||||
calendarList &&
|
||||
calendarList[nowDate - 1] &&
|
||||
calendarList[nowDate - 1].taskList.length > 0
|
||||
)
|
||||
"
|
||||
>
|
||||
今日暂无宣发任务
|
||||
</div>
|
||||
</div>
|
||||
<div class="tomorrow">
|
||||
<div class="itemTomorrow">明天<span>{{ nowMonth }}.{{ nowDate + 1 }}</span></div>
|
||||
<!-- <div v-if="calendarList[nowDate + 1].taskList">晴风小区志愿者活动</div> -->
|
||||
<!-- <div v-if="!calendarList[nowDate + 1].taskList">今日暂无宣发任务</div> -->
|
||||
<div class="isShow" @click="showMore()">{{ isShow ? '收起' : '展开' }}</div>
|
||||
<div class="itemTomorrow">
|
||||
明天<span>{{ nowMonth }}.{{ nowDate + 1 }}</span>
|
||||
</div>
|
||||
<div
|
||||
v-if="
|
||||
calendarList &&
|
||||
calendarList[nowDate - 1] &&
|
||||
calendarList[nowDate - 1].taskList.length > 0
|
||||
"
|
||||
>
|
||||
晴风小区志愿者活动
|
||||
</div>
|
||||
<div
|
||||
v-if="
|
||||
!(
|
||||
calendarList &&
|
||||
calendarList[nowDate - 1] &&
|
||||
calendarList[nowDate - 1].taskList.length > 0
|
||||
)
|
||||
"
|
||||
>
|
||||
今日暂无宣发任务
|
||||
</div>
|
||||
<div class="isShow" @click="showMore()">
|
||||
{{ isShow ? "收起" : "展开" }}
|
||||
</div>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 折线图 -->
|
||||
<div class="brokenEcharts">
|
||||
<div class="broken_title">
|
||||
<div class="broken_left">宣发效果</div>
|
||||
<div class="broken_right" @click="filterShow = true"><img src="./images/shaixuan.png" alt="">筛选</div>
|
||||
<div class="broken_right" @click="filterShow = true">
|
||||
<img src="./images/shaixuan.png" alt="" />筛选
|
||||
</div>
|
||||
</div>
|
||||
<div class="broken_statistics">
|
||||
<div class="broken_item">
|
||||
<div>创建宣发任务数</div>
|
||||
<div>200</div>
|
||||
<div>{{ peopleNum }}</div>
|
||||
</div>
|
||||
<div class="broken_item">
|
||||
<div>执行宣发次数</div>
|
||||
<div>200</div>
|
||||
<div>{{ sendNum }}</div>
|
||||
</div>
|
||||
<div class="broken_item">
|
||||
<div>触达人次</div>
|
||||
<div>200</div>
|
||||
<div>{{ predictNum }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="title">触达人次</div>
|
||||
@@ -55,9 +123,21 @@
|
||||
<div class="broken_title">
|
||||
<div class="broken_left">宣发明细</div>
|
||||
<div class="broken_right">
|
||||
<span :class="detailType ==0? 'active': ''" @click="detailType = 0, getColData()">近七天</span>
|
||||
<span :class="detailType ==1? 'active': ''" @click="detailType = 1, getColData()">近30天</span>
|
||||
<span :class="detailType ==2? 'active': ''" @click="detailType = 2, getColData()">近1年</span>
|
||||
<span
|
||||
:class="detailType == 0 ? 'active' : ''"
|
||||
@click="(detailType = 0), getColData()"
|
||||
>近七天</span
|
||||
>
|
||||
<span
|
||||
:class="detailType == 1 ? 'active' : ''"
|
||||
@click="(detailType = 1), getColData()"
|
||||
>近30天</span
|
||||
>
|
||||
<span
|
||||
:class="detailType == 2 ? 'active' : ''"
|
||||
@click="(detailType = 2), getColData()"
|
||||
>近1年</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<div id="columnarEcharts"></div>
|
||||
@@ -67,21 +147,45 @@
|
||||
<div class="popup">
|
||||
<div class="tips"></div>
|
||||
<div class="title">
|
||||
<div class="cancel" @click.stop="filterShow=false,timeSelect=0">取消</div>
|
||||
<div
|
||||
class="cancel"
|
||||
@click.stop="(filterShow = false), (timeSelect = 0)"
|
||||
>
|
||||
取消
|
||||
</div>
|
||||
<p>筛选条件</p>
|
||||
<div class="confirm" @click.stop="selectConfirm">确定</div>
|
||||
</div>
|
||||
<scroll-view class="select-content" scroll-y="true">
|
||||
<div class="type-list">
|
||||
<div class="type-title">宣发时间</div>
|
||||
<div class="item" v-for="(item, index) in timeList" :key="index" :class="index == timeSelect ? 'active' : ''" @click.stop="checkTime(index)">{{item}}</div>
|
||||
<div
|
||||
class="item"
|
||||
v-for="(item, index) in timeList"
|
||||
:key="index"
|
||||
:class="index == timeSelect ? 'active' : ''"
|
||||
@click.stop="checkTime(index)"
|
||||
>
|
||||
{{ item }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="type-list">
|
||||
<div class="type-title">宣发部门</div>
|
||||
<AiPagePicker type="custom" :selected.sync="deptList" nodeKey="id" :ops="{url:`./selectDeptUser`,label:'name'}" valueObj>
|
||||
<AiPagePicker
|
||||
type="custom"
|
||||
:selected.sync="deptList"
|
||||
nodeKey="id"
|
||||
:ops="{ url: `./selectDeptUser`, label: 'name' }"
|
||||
valueObj
|
||||
>
|
||||
<span class="label" v-if="deptList.length">已选择</span>
|
||||
<span v-else style="color:#999;">请选择</span>
|
||||
<u-icon name="arrow-right" color="#999" size="24" style="margin-left:8px;"/>
|
||||
<span v-else style="color: #999">请选择</span>
|
||||
<u-icon
|
||||
name="arrow-right"
|
||||
color="#999"
|
||||
size="24"
|
||||
style="margin-left: 8px"
|
||||
/>
|
||||
</AiPagePicker>
|
||||
</div>
|
||||
</scroll-view>
|
||||
@@ -91,17 +195,27 @@
|
||||
</div>
|
||||
</div>
|
||||
<u-popup v-model="customShow" mode="bottom" border-radius="14" closeable>
|
||||
<div class="customPop">
|
||||
<div class="customPop">
|
||||
<div class="startTime">
|
||||
<div>开始时间:</div>
|
||||
<div>
|
||||
<u-input v-model="start" placeholder="请输入格式为2022-00-00的开始时间" type="text" clearable/>
|
||||
<u-input
|
||||
v-model="start"
|
||||
placeholder="请输入格式为2022-00-00的开始时间"
|
||||
type="text"
|
||||
clearable
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="endTime">
|
||||
<div>结束时间:</div>
|
||||
<div>
|
||||
<u-input v-model="end" placeholder="请输入格式为2022-00-00的结束时间" type="text" clearable/>
|
||||
<u-input
|
||||
v-model="end"
|
||||
placeholder="请输入格式为2022-00-00的结束时间"
|
||||
type="text"
|
||||
clearable
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="timeBtn" @click="handleTime">确定</div>
|
||||
@@ -112,10 +226,10 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import echarts from 'echarts';
|
||||
import echarts from "echarts";
|
||||
export default {
|
||||
name: 'AppPropagandaStatistics',
|
||||
appName: '宣发统计',
|
||||
name: "AppPropagandaStatistics",
|
||||
appName: "宣发统计",
|
||||
data() {
|
||||
return {
|
||||
isShow: false,
|
||||
@@ -125,143 +239,166 @@ export default {
|
||||
columnarEcharts: null,
|
||||
filterShow: false,
|
||||
customShow: false,
|
||||
timeList: ['近7天', '近30天', '近1年','自定义'],
|
||||
timeList: ["近7天", "近30天", "近1年", "自定义"],
|
||||
timeSelect: 0,
|
||||
start: '',
|
||||
end: '',
|
||||
start: "",
|
||||
end: "",
|
||||
deptList: [],
|
||||
nowMonth: '',
|
||||
nowDate: '',
|
||||
nowMonth: "",
|
||||
nowDate: "",
|
||||
calendarList: [],
|
||||
colData: {},
|
||||
detailType: 0,
|
||||
timeType: '',
|
||||
departId: '',
|
||||
startTime: '',
|
||||
endTime: '',
|
||||
x: [],
|
||||
}
|
||||
timeType: "",
|
||||
departId: "",
|
||||
startTime: "",
|
||||
endTime: "",
|
||||
resX: [],
|
||||
resY: [],
|
||||
res2Y: [],
|
||||
res3Y: [],
|
||||
peopleNum: "",
|
||||
sendNum: "",
|
||||
predictNum: "",
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
onShow() {
|
||||
document.title = '宣发统计'
|
||||
this.getData()
|
||||
this.getColData()
|
||||
this.getNowDate()
|
||||
this.getBrokenDate()
|
||||
document.title = "宣发统计";
|
||||
},
|
||||
created() {
|
||||
this.getBrokenDate();
|
||||
this.getData();
|
||||
this.getColData();
|
||||
this.getNowDate();
|
||||
},
|
||||
mounted() {
|
||||
this.getBrokenEcharts1()
|
||||
this.getBrokenEcharts2()
|
||||
this.getBrokenEcharts3()
|
||||
this.getColumnarEcharts()
|
||||
// this.getBrokenDate();
|
||||
this.getBrokenEcharts1();
|
||||
this.getBrokenEcharts2();
|
||||
this.getBrokenEcharts3();
|
||||
this.getColumnarEcharts();
|
||||
},
|
||||
methods: {
|
||||
showMore() {},
|
||||
|
||||
checkTime(index) {
|
||||
if(index == 3) {
|
||||
this.timeSelect = index
|
||||
this.customShow = true
|
||||
if (index == 3) {
|
||||
this.timeSelect = index;
|
||||
this.customShow = true;
|
||||
} else {
|
||||
this.timeSelect = index
|
||||
this.timeSelect = index;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
readMore() {
|
||||
uni.navigateTo({url: `./calendarInfo`})
|
||||
uni.navigateTo({ url: `./calendarInfo` });
|
||||
},
|
||||
// 重置
|
||||
reset() {
|
||||
this.timeType = 0
|
||||
this.startTime = ''
|
||||
this.endTime = ''
|
||||
this.departId = ''
|
||||
this.timeType = 0;
|
||||
this.startTime = "";
|
||||
this.endTime = "";
|
||||
this.departId = "";
|
||||
},
|
||||
|
||||
selectConfirm() {
|
||||
if(this.timeSelect == 3) {
|
||||
this.timeType = this.timeSelect
|
||||
this.startTime = this.start
|
||||
this.endTime = this.end
|
||||
this.getBrokenDate()
|
||||
if (this.timeSelect == 3) {
|
||||
this.timeType = this.timeSelect;
|
||||
this.startTime = this.start;
|
||||
this.endTime = this.end;
|
||||
this.getBrokenDate();
|
||||
} else {
|
||||
this.timeType = this.timeSelect
|
||||
this.getBrokenDate()
|
||||
this.timeType = this.timeSelect;
|
||||
this.getBrokenDate();
|
||||
}
|
||||
this.filterShow = false
|
||||
|
||||
this.filterShow = false;
|
||||
},
|
||||
|
||||
handleTime() {
|
||||
this.startTime = this.start
|
||||
this.endTime = this.end
|
||||
this.customShow = false
|
||||
this.startTime = this.start;
|
||||
this.endTime = this.end;
|
||||
this.customShow = false;
|
||||
},
|
||||
|
||||
getNowDate() {
|
||||
let date = new Date()
|
||||
this.nowDate = date.getDate()
|
||||
this.nowMonth = date.getMonth() + 1
|
||||
let date = new Date();
|
||||
this.nowDate = date.getDate();
|
||||
this.nowMonth = date.getMonth() + 1;
|
||||
},
|
||||
// 宣发日历
|
||||
getData() {
|
||||
this.$http.post(`/app/appmasssendingtask/statisticsCalendar`, null, {
|
||||
params: {}
|
||||
}).then((res)=> {{
|
||||
if(res?.data) {
|
||||
this.calendarList = res.data
|
||||
}
|
||||
}})
|
||||
this.$http
|
||||
.post(`/app/appmasssendingtask/statisticsCalendar`, null, {
|
||||
params: {},
|
||||
})
|
||||
.then((res) => {
|
||||
{
|
||||
if (res?.data) {
|
||||
this.calendarList = res.data;
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
// 宣发效果
|
||||
getBrokenDate() {
|
||||
this.$http.post(`/app/appmasssendingtask/statisticsEffect`, null, {
|
||||
params: {
|
||||
type: this.timeSelect,
|
||||
startTime: this.startTime,
|
||||
endTime: this.endTime,
|
||||
// departId: this.departId
|
||||
}
|
||||
}).then(res=>{
|
||||
if(res?.data) {
|
||||
if(this.timeType == 0) {
|
||||
this.x = res.data.trend.map(e=> e.ymd.substring(5,7) + '月' + e.ymd.substring(8,10) + '日')
|
||||
} else if (this.timeType == 1) {
|
||||
this.x = res.data.trend.map(e=> e.ymd.substring(5,7) + '月' + e.ymd.substring(8,10) + '日')
|
||||
} else if (this.timeType == 2) {
|
||||
this.x = res.data.trend.map(e=> e.ymd.substring(0,4) + '年' + e.ymd.substring(5,7) + '月')
|
||||
this.$http
|
||||
.post(`/app/appmasssendingtask/statisticsEffect`, null, {
|
||||
params: {
|
||||
type: this.timeSelect,
|
||||
startTime: this.startTime,
|
||||
endTime: this.endTime,
|
||||
// departId: this.departId
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
if (res?.data) {
|
||||
if (this.timeType == 0) {
|
||||
this.resX = res.data.trend.map((e) =>e.ymd.substring(5, 7) + "月" + e.ymd.substring(8, 10) + "日");
|
||||
} else if (this.timeType == 1) {
|
||||
this.resX = res.data.trend.map((e) =>e.ymd.substring(5, 7) + "月" + e.ymd.substring(8, 10) + "日");
|
||||
} else if (this.timeType == 2) {
|
||||
this.resX = res.data.trend.map((e) =>e.ymd.substring(0, 4) + "年" + e.ymd.substring(5, 7) + "月");
|
||||
}
|
||||
this.resY = res.data.trend.map((e) => e.receiveCount);
|
||||
this.peopleNum = this.resY.reduce((accumulator, currentValue)=>{ return accumulator + currentValue})
|
||||
this.res2Y = res.data.trend.map((e) => e.executeCount);
|
||||
this.sendNum = this.res2Y.reduce((accumulator, currentValue)=>{ return accumulator + currentValue})
|
||||
this.res3Y = res.data.trend.map((e) => e.createCount);
|
||||
this.predictNum = this.res3Y.reduce((accumulator, currentValue)=>{ return accumulator + currentValue})
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
})
|
||||
});
|
||||
},
|
||||
// 触发人数
|
||||
getBrokenEcharts1() {
|
||||
this.brokenEcharts1 = echarts.init(document.getElementById('brokenEcharts1'))
|
||||
this.brokenEcharts1.setOption({
|
||||
let dataX = this.resX;
|
||||
let dataY1 = this.resY;
|
||||
console.log(dataX);
|
||||
console.log(dataY1);
|
||||
this.brokenEcharts1 = echarts.init(
|
||||
document.getElementById("brokenEcharts1")
|
||||
);
|
||||
const option = {
|
||||
tooltip: {
|
||||
trigger: 'axis'
|
||||
trigger: "axis",
|
||||
},
|
||||
grid: {
|
||||
left: '2%',
|
||||
right: '5%',
|
||||
bottom: '2%',
|
||||
containLabel: true
|
||||
left: "2%",
|
||||
right: "5%",
|
||||
bottom: "2%",
|
||||
containLabel: true,
|
||||
},
|
||||
dataZoom: [
|
||||
{
|
||||
id: 'dataZoomX',
|
||||
type: 'slider',
|
||||
id: "dataZoomX",
|
||||
type: "slider",
|
||||
xAxisIndex: [0],
|
||||
filterMode: 'filter'
|
||||
filterMode: "filter",
|
||||
},
|
||||
],
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
type: "category",
|
||||
boundaryGap: false,
|
||||
axisTick: {
|
||||
show: false,
|
||||
@@ -269,54 +406,58 @@ export default {
|
||||
axisLine: {
|
||||
show: false,
|
||||
},
|
||||
data: this.x
|
||||
data: dataX,
|
||||
},
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
type: "value",
|
||||
axisTick: {
|
||||
show: false,
|
||||
},
|
||||
axisLine: {
|
||||
show: false,
|
||||
}
|
||||
},
|
||||
},
|
||||
series: [
|
||||
{
|
||||
type: 'line',
|
||||
data: [120, 132, 101, 134, 90, 230],
|
||||
type: "line",
|
||||
data: dataY1,
|
||||
lineStyle: {
|
||||
color: '#4B87FE',
|
||||
color: "#4B87FE",
|
||||
},
|
||||
itemStyle: {
|
||||
color: '#4E8EEE'
|
||||
}
|
||||
color: "#4E8EEE",
|
||||
},
|
||||
},
|
||||
]
|
||||
})
|
||||
],
|
||||
};
|
||||
option && this.brokenEcharts1.setOption(option);
|
||||
},
|
||||
// 宣发次数
|
||||
getBrokenEcharts2() {
|
||||
this.brokenEcharts2 = echarts.init(document.getElementById('brokenEcharts2'))
|
||||
this.brokenEcharts2 = echarts.init(
|
||||
document.getElementById("brokenEcharts2")
|
||||
);
|
||||
this.brokenEcharts2.setOption({
|
||||
tooltip: {
|
||||
trigger: 'axis'
|
||||
trigger: "axis",
|
||||
},
|
||||
grid: {
|
||||
left: '2%',
|
||||
right: '5%',
|
||||
bottom: '2%',
|
||||
containLabel: true
|
||||
left: "2%",
|
||||
right: "5%",
|
||||
bottom: "2%",
|
||||
containLabel: true,
|
||||
},
|
||||
dataZoom: [
|
||||
{
|
||||
id: 'dataZoomX',
|
||||
type: 'slider',
|
||||
id: "dataZoomX",
|
||||
type: "slider",
|
||||
xAxisIndex: [0],
|
||||
filterMode: 'filter'
|
||||
filterMode: "filter",
|
||||
},
|
||||
],
|
||||
calculable: true,
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
type: "category",
|
||||
boundaryGap: false,
|
||||
axisTick: {
|
||||
show: false,
|
||||
@@ -324,54 +465,56 @@ export default {
|
||||
axisLine: {
|
||||
show: false,
|
||||
},
|
||||
data: ['2月', '3月', '4月', '5月', '6月', '7月']
|
||||
data: this.resX,
|
||||
},
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
type: "value",
|
||||
axisTick: {
|
||||
show: false,
|
||||
},
|
||||
axisLine: {
|
||||
show: false,
|
||||
}
|
||||
},
|
||||
},
|
||||
series: [
|
||||
{
|
||||
type: 'line',
|
||||
data: [220, 182, 191, 234, 290, 330],
|
||||
type: "line",
|
||||
data: this.res2Y,
|
||||
lineStyle: {
|
||||
color: '#32C5FF',
|
||||
color: "#32C5FF",
|
||||
},
|
||||
itemStyle: {
|
||||
color: '#31C1FA'
|
||||
}
|
||||
color: "#31C1FA",
|
||||
},
|
||||
},
|
||||
]
|
||||
})
|
||||
],
|
||||
});
|
||||
},
|
||||
// 宣发任务数
|
||||
getBrokenEcharts3() {
|
||||
this.brokenEcharts3 = echarts.init(document.getElementById('brokenEcharts3'))
|
||||
this.brokenEcharts3 = echarts.init(
|
||||
document.getElementById("brokenEcharts3")
|
||||
);
|
||||
this.brokenEcharts3.setOption({
|
||||
tooltip: {
|
||||
trigger: 'axis'
|
||||
trigger: "axis",
|
||||
},
|
||||
grid: {
|
||||
left: '2%',
|
||||
right: '5%',
|
||||
bottom: '2%',
|
||||
containLabel: true
|
||||
left: "2%",
|
||||
right: "5%",
|
||||
bottom: "2%",
|
||||
containLabel: true,
|
||||
},
|
||||
dataZoom: [
|
||||
{
|
||||
id: 'dataZoomX',
|
||||
type: 'slider',
|
||||
id: "dataZoomX",
|
||||
type: "slider",
|
||||
xAxisIndex: [0],
|
||||
filterMode: 'filter'
|
||||
filterMode: "filter",
|
||||
},
|
||||
],
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
type: "category",
|
||||
boundaryGap: false,
|
||||
axisTick: {
|
||||
show: false,
|
||||
@@ -379,60 +522,63 @@ export default {
|
||||
axisLine: {
|
||||
show: false,
|
||||
},
|
||||
data: ['2月', '3月', '4月', '5月', '6月', '7月']
|
||||
data: this.resX,
|
||||
},
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
type: "value",
|
||||
axisTick: {
|
||||
show: false,
|
||||
},
|
||||
axisLine: {
|
||||
show: false,
|
||||
}
|
||||
},
|
||||
},
|
||||
series: [
|
||||
{
|
||||
type: 'line',
|
||||
data: [1000, 232, 201, 154, 190, 330],
|
||||
type: "line",
|
||||
data: this.res3Y,
|
||||
lineStyle: {
|
||||
color: '#FFAA44',
|
||||
color: "#FFAA44",
|
||||
},
|
||||
itemStyle: {
|
||||
color: '#FFAA44'
|
||||
}
|
||||
color: "#FFAA44",
|
||||
},
|
||||
},
|
||||
]
|
||||
})
|
||||
],
|
||||
});
|
||||
},
|
||||
// 宣发明细
|
||||
getColData() {
|
||||
this.$http.post(`/app/appmasssendingtask/statisticsDepart`, null, {
|
||||
params: {
|
||||
type: this.detailType
|
||||
}
|
||||
}).then(res=> {
|
||||
// console.log(res);
|
||||
if(res?.data) {
|
||||
console.log(res);
|
||||
this.colData = res.data
|
||||
}
|
||||
})
|
||||
this.$http
|
||||
.post(`/app/appmasssendingtask/statisticsDepart`, null, {
|
||||
params: {
|
||||
type: this.detailType,
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
if (res?.data) {
|
||||
console.log(res);
|
||||
this.colData = res.data;
|
||||
}
|
||||
});
|
||||
},
|
||||
getColumnarEcharts() {
|
||||
this.columnarEcharts = echarts.init(document.getElementById('columnarEcharts'))
|
||||
this.columnarEcharts = echarts.init(
|
||||
document.getElementById("columnarEcharts")
|
||||
);
|
||||
this.columnarEcharts.setOption({
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
type: "category",
|
||||
axisTick: {
|
||||
show: false,
|
||||
},
|
||||
axisLine: {
|
||||
show: false,
|
||||
},
|
||||
data: ['卫健委', '法院', '团委', '扶贫办', '警察局']
|
||||
data: ["卫健委", "法院", "团委", "扶贫办", "警察局"],
|
||||
},
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
type: "value",
|
||||
axisTick: {
|
||||
show: false,
|
||||
},
|
||||
@@ -443,47 +589,43 @@ export default {
|
||||
series: [
|
||||
{
|
||||
data: [120, 200, 150, 80, 70, 110, 130],
|
||||
itemStyle:{
|
||||
normal:{
|
||||
color:'#5087ec'
|
||||
}
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: "#5087ec",
|
||||
},
|
||||
},
|
||||
type: 'bar'
|
||||
}
|
||||
]
|
||||
})
|
||||
type: "bar",
|
||||
},
|
||||
],
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.AppPropagandaStatistics {
|
||||
|
||||
.calendar_header {
|
||||
padding: 26px 32px;
|
||||
box-sizing: border-box;
|
||||
background: #FFF;
|
||||
background: #fff;
|
||||
::v-deep .u-section__title__text {
|
||||
font-size: 32px;
|
||||
}
|
||||
}
|
||||
.threeDays {
|
||||
background: #FFF;
|
||||
background: #fff;
|
||||
padding: 8px 32px 12px 32px;
|
||||
box-sizing: border-box;
|
||||
.yesterday,
|
||||
.today,
|
||||
.tomorrow {
|
||||
background: #F7F8FA;
|
||||
background: #f7f8fa;
|
||||
margin-bottom: 32px;
|
||||
padding: 30px 0 30px 40px;
|
||||
box-sizing: border-box;
|
||||
.isShow {
|
||||
color: #3AA0FF;
|
||||
color: #3aa0ff;
|
||||
}
|
||||
.itemYesterday,
|
||||
.itemToday,
|
||||
@@ -492,21 +634,19 @@ export default {
|
||||
span {
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
.yesterday {
|
||||
border-left: 6px solid #FBD444;
|
||||
border-left: 6px solid #fbd444;
|
||||
}
|
||||
.today {
|
||||
border-left: 6px solid #50CB74;
|
||||
border-left: 6px solid #50cb74;
|
||||
}
|
||||
.tomorrow {
|
||||
border-left: 6px solid #3AA0FF;
|
||||
border-left: 6px solid #3aa0ff;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.brokenEcharts,
|
||||
.columnarEcharts {
|
||||
margin: 24px 0 24px 0;
|
||||
@@ -532,17 +672,17 @@ export default {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
|
||||
|
||||
span {
|
||||
margin-right: 12px;
|
||||
padding: 8px 10px;
|
||||
display: inline-block;
|
||||
border: 1px solid #DDD;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 8px;
|
||||
}
|
||||
.active {
|
||||
background: #3399FF;
|
||||
color: #FFF;
|
||||
background: #3399ff;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -579,7 +719,7 @@ export default {
|
||||
|
||||
.brokenEcharts,
|
||||
.columnarEcharts {
|
||||
background: #FFF;
|
||||
background: #fff;
|
||||
|
||||
#brokenEcharts1,
|
||||
#brokenEcharts2,
|
||||
@@ -587,24 +727,24 @@ export default {
|
||||
#columnarEcharts {
|
||||
width: 100%;
|
||||
height: 400px;
|
||||
background: #F9F9F9;
|
||||
background: #f9f9f9;
|
||||
border-radius: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.popup{
|
||||
.popup {
|
||||
box-sizing: border-box;
|
||||
// height: 800px;
|
||||
.tips{
|
||||
.tips {
|
||||
width: 80px;
|
||||
height: 6px;
|
||||
background: #DDDDDD;
|
||||
background: #dddddd;
|
||||
border-radius: 4px;
|
||||
padding: 0 32px;
|
||||
box-sizing: border-box;
|
||||
margin: 32px auto 8px auto;
|
||||
}
|
||||
.title{
|
||||
.title {
|
||||
height: 48px;
|
||||
line-height: 48px;
|
||||
font-size: 34px;
|
||||
@@ -614,56 +754,55 @@ export default {
|
||||
padding: 0 32px;
|
||||
box-sizing: border-box;
|
||||
padding-bottom: 32px;
|
||||
.cancel{
|
||||
.cancel {
|
||||
display: inline-block;
|
||||
width: 200px;
|
||||
color: #aaa;
|
||||
}
|
||||
.confirm{
|
||||
.confirm {
|
||||
display: inline-block;
|
||||
width: 200px;
|
||||
text-align: right;
|
||||
color: #333;
|
||||
}
|
||||
p{
|
||||
p {
|
||||
display: inline-block;
|
||||
width: calc(100% - 400px);
|
||||
text-align: center;
|
||||
font-size: 28px;
|
||||
}
|
||||
}
|
||||
.select-content{
|
||||
.select-content {
|
||||
height: calc(100% - 100px);
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.type-list{
|
||||
.type-list {
|
||||
padding: 0 32px;
|
||||
box-sizing: border-box;
|
||||
margin-bottom: 32px;
|
||||
.type-title{
|
||||
.type-title {
|
||||
line-height: 108px;
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
.item{
|
||||
.item {
|
||||
display: inline-block;
|
||||
width: 210px;
|
||||
text-align: center;
|
||||
line-height: 64px;
|
||||
background: #F3F4F7;
|
||||
background: #f3f4f7;
|
||||
border-radius: 4px;
|
||||
margin: 0 16px 16px 0;
|
||||
font-size: 28px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
color: #333;
|
||||
}
|
||||
.active{
|
||||
background: #1365DD;
|
||||
.active {
|
||||
background: #1365dd;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
}
|
||||
.popBtn {
|
||||
display: flex;
|
||||
@@ -671,15 +810,15 @@ export default {
|
||||
line-height: 98px;
|
||||
div {
|
||||
width: 50%;
|
||||
border: 2px solid #3399FF;
|
||||
border: 2px solid #3399ff;
|
||||
text-align: center;
|
||||
}
|
||||
div:first-child {
|
||||
color: #3399FF;
|
||||
color: #3399ff;
|
||||
}
|
||||
div:last-child {
|
||||
color: #FFF;
|
||||
background: #3399FF;
|
||||
color: #fff;
|
||||
background: #3399ff;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -690,20 +829,19 @@ export default {
|
||||
|
||||
.startTime,
|
||||
.endTime {
|
||||
border-bottom: 1px solid #DDD;
|
||||
border-bottom: 1px solid #ddd;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.timeBtn {
|
||||
width: 100%;
|
||||
background: #3399FF;
|
||||
background: #3399ff;
|
||||
height: 80px;
|
||||
line-height: 80px;
|
||||
text-align: center;
|
||||
border-radius: 16px;
|
||||
color: #FFF;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
@@ -29,23 +29,61 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
date: '',
|
||||
selected: [{date: '2022-07-12'}],
|
||||
selected: [],
|
||||
list: [{
|
||||
time: '11:00',
|
||||
info: '晴风小区志愿者活动'
|
||||
}]
|
||||
}],
|
||||
calendarList: {},
|
||||
year: '',
|
||||
month: '',
|
||||
day: '',
|
||||
}
|
||||
},
|
||||
components: {
|
||||
uniCalendar
|
||||
},
|
||||
created() {
|
||||
this.getNowDay()
|
||||
this.getData()
|
||||
|
||||
},
|
||||
methods: {
|
||||
change(val) {
|
||||
this.date = `${val.year} + '-' + ${val.month} + '-' + ${val.day}`
|
||||
},
|
||||
getNowDay() {
|
||||
const date = new Date()
|
||||
this.year = date.getFullYear()
|
||||
this.month = date.getMonth() + 1
|
||||
},
|
||||
toGroup() {
|
||||
uni.navigateTo({url: './groupSendResident'})
|
||||
}
|
||||
},
|
||||
getData() {
|
||||
this.$http.post(`/app/appmasssendingtask/statisticsCalendar`, null, {
|
||||
params: {},
|
||||
})
|
||||
.then((res) => {
|
||||
if (res?.data) {
|
||||
this.calendarList = res.data;
|
||||
var arr = Object.keys(res.data).map(key => (res.data[key]))
|
||||
var calList = arr.filter(item=> (item.taskList && item.taskList.length > 0))
|
||||
this.selected = calList.map(item=> {
|
||||
if(item.day>=1 && item.day<=9) {
|
||||
if(this.month>=1 && this.month <=9) {
|
||||
return this.year + '-' + '0' + this.month + '-' + '0' + item.day
|
||||
}
|
||||
} else if(item.day> 9) {
|
||||
if(this.month > 9) {
|
||||
return this.year + '-' + this.month + '-' + item.day
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(this.selected);
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
onShow() {
|
||||
document.title = '宣发日历'
|
||||
|
||||
@@ -119,7 +119,7 @@ export default {
|
||||
{value: 10, name: '群发送达率', label:{
|
||||
normal:{
|
||||
show:true,
|
||||
formatter: '{d}%\n群发送达率',
|
||||
formatter: `{d}%\n群发居民群`,
|
||||
textStyle: {
|
||||
fontSize: 16,
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<div class="searchBox">
|
||||
<u-search placeholder="请输入任务名称" v-model="name" :show-action="false"></u-search>
|
||||
</div>
|
||||
<div class="filterBtn"><img src="./images/shaixuan.png" alt="">筛选</div>
|
||||
<div class="filterBtn" @click="filterShow = true"><img src="./images/shaixuan.png" alt="">筛选</div>
|
||||
</div>
|
||||
</AiTopFixed>
|
||||
<div class="resident_list">
|
||||
@@ -19,6 +19,57 @@
|
||||
<div>创建部门:<span>{{ item.createUserDept }}</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<u-popup v-model="filterShow" mode="bottom" border-radius="14">
|
||||
<div class="popup">
|
||||
<div class="tips"></div>
|
||||
<div class="title">
|
||||
<div
|
||||
class="cancel"
|
||||
@click.stop="(filterShow = false), (timeSelect = 0)"
|
||||
>
|
||||
取消
|
||||
</div>
|
||||
<p>筛选条件</p>
|
||||
<div class="confirm" @click.stop="selectConfirm">确定</div>
|
||||
</div>
|
||||
<scroll-view class="select-content" scroll-y="true">
|
||||
<div class="type-list">
|
||||
<div class="type-title">创建人</div>
|
||||
<!-- <div
|
||||
class="item"
|
||||
v-for="(item, index) in timeList"
|
||||
:key="index"
|
||||
:class="index == timeSelect ? 'active' : ''"
|
||||
@click.stop="checkTime(index)">
|
||||
{{ item }}
|
||||
</div> -->
|
||||
</div>
|
||||
<div class="type-list">
|
||||
<div class="type-title">群发时间</div>
|
||||
<div class="item">
|
||||
<div>开始时间</div>
|
||||
<div style="display: flex;">
|
||||
<u-input v-model="startTime" disabled placeholder="请选择开始时间" @click="showStart = true" />
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div>结束时间</div>
|
||||
<div style="display: flex;">
|
||||
<u-input v-model="endTime" disabled placeholder="请选择开始时间" @click="showEnd = true" />
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</scroll-view>
|
||||
<u-picker mode="time" v-model="showStart" @confirm="confirmStart"></u-picker>
|
||||
<u-picker mode="time" v-model="showEnd" @confirm="confirmEnd"></u-picker>
|
||||
<div class="popBtn">
|
||||
<div @click="reset">重置</div>
|
||||
<div @click="selectConfirm">确认</div>
|
||||
</div>
|
||||
</div>
|
||||
</u-popup>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -29,6 +80,11 @@ export default {
|
||||
current: 1,
|
||||
name: '',
|
||||
list: [],
|
||||
filterShow: false,
|
||||
startTime: '',
|
||||
endTime: '',
|
||||
showStart: false,
|
||||
showEnd: false,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -39,7 +95,6 @@ export default {
|
||||
this.$http.post(`/app/appmasssendingtask/list`, null, {
|
||||
params: {
|
||||
current: this.current,
|
||||
|
||||
}
|
||||
}).then(res=> {
|
||||
if(res?.data) {
|
||||
@@ -47,14 +102,28 @@ export default {
|
||||
}
|
||||
console.log(res);
|
||||
})
|
||||
}
|
||||
},
|
||||
filterBtn() {},
|
||||
reset() {
|
||||
this.startTime = '',
|
||||
this.endTime = ''
|
||||
},
|
||||
selectConfirm() {},
|
||||
confirmStart(val) {
|
||||
this.startTime = val.year + '-' + val.month + '-' + val.day
|
||||
},
|
||||
confirmEnd(val) {
|
||||
this.endTime = val.year + '-' + val.month + '-' + val.day
|
||||
},
|
||||
},
|
||||
onShow() {
|
||||
document.title = '群发居民群'
|
||||
this.current = 1
|
||||
this.getList()
|
||||
},
|
||||
onReachBottom() {
|
||||
this.current ++
|
||||
this.getList()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
@@ -112,5 +181,94 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
.popup {
|
||||
box-sizing: border-box;
|
||||
// height: 800px;
|
||||
.tips {
|
||||
width: 80px;
|
||||
height: 6px;
|
||||
background: #dddddd;
|
||||
border-radius: 4px;
|
||||
padding: 0 32px;
|
||||
box-sizing: border-box;
|
||||
margin: 32px auto 8px auto;
|
||||
}
|
||||
.title {
|
||||
height: 48px;
|
||||
line-height: 48px;
|
||||
font-size: 34px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #222;
|
||||
padding: 0 32px;
|
||||
box-sizing: border-box;
|
||||
padding-bottom: 32px;
|
||||
.cancel {
|
||||
display: inline-block;
|
||||
width: 200px;
|
||||
color: #aaa;
|
||||
}
|
||||
.confirm {
|
||||
display: inline-block;
|
||||
width: 200px;
|
||||
text-align: right;
|
||||
color: #333;
|
||||
}
|
||||
p {
|
||||
display: inline-block;
|
||||
width: calc(100% - 400px);
|
||||
text-align: center;
|
||||
font-size: 28px;
|
||||
}
|
||||
}
|
||||
.select-content {
|
||||
height: calc(100% - 100px);
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.type-list {
|
||||
padding: 0 32px;
|
||||
box-sizing: border-box;
|
||||
margin-bottom: 32px;
|
||||
.type-title {
|
||||
line-height: 108px;
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
.item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
& > div:last-child {
|
||||
::v-deep .uni-input-input,
|
||||
::v-deep .uni-input-placeholder {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
.active {
|
||||
background: #1365dd;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
.popBtn {
|
||||
display: flex;
|
||||
height: 98px;
|
||||
line-height: 98px;
|
||||
div {
|
||||
width: 50%;
|
||||
border: 2px solid #3399ff;
|
||||
text-align: center;
|
||||
}
|
||||
div:first-child {
|
||||
color: #3399ff;
|
||||
}
|
||||
div:last-child {
|
||||
color: #fff;
|
||||
background: #3399ff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user