diff --git a/src/project/saas/AppCooperationPropaganda/AppCooperationPropaganda.vue b/src/project/saas/AppCooperationPropaganda/AppCooperationPropaganda.vue index d3ab2be5..c2815b6b 100644 --- a/src/project/saas/AppCooperationPropaganda/AppCooperationPropaganda.vue +++ b/src/project/saas/AppCooperationPropaganda/AppCooperationPropaganda.vue @@ -113,8 +113,7 @@ export default { // console.log(res); }) }, - - filterBtn() {}, + reset() { this.startTime = '', this.endTime = '' @@ -122,6 +121,15 @@ export default { selectConfirm() { this.start = this.startTime, this.end = this.endTime + let startTmp = this.start.split("-"); + let endTmp = this.end.split("-"); + let stT = new Date(startTmp[0], startTmp[1], startTmp[2]); + let edT = new Date(endTmp[0], endTmp[1], endTmp[2]); + if (stT.getTime() >= edT.getTime()) { + this.$u.toast("开始日期不能大于或等于结束日期!"); + this.filterShow = true + return + } this.filterShow = false this.getList() }, diff --git a/src/project/saas/AppCooperationPropaganda/cooperationDetail.vue b/src/project/saas/AppCooperationPropaganda/cooperationDetail.vue index 999144f4..d39702bd 100644 --- a/src/project/saas/AppCooperationPropaganda/cooperationDetail.vue +++ b/src/project/saas/AppCooperationPropaganda/cooperationDetail.vue @@ -2,35 +2,54 @@
-
{{ item }} +
+ {{ item }}
- -
+
防疫宣传群发通知
-
创建时间: {{ createTime }}
+
+ 创建时间: {{ createTime }} +
查看详情
-
数据更新于{{ info.remindTime }}
+
+ 数据更新于{{ info.remindTime }} +
-
+
-
计划送达居民群: {{ info.planCount || 0 }}
-
未送达居民群: {{ info.unExecutedCount || 0 }}
-
已送达居民群: {{ info.executedCount || 0 }}
-
无法送达居民群: {{ info.cannotExecuteCount || 0 }}
+
+ 计划送达居民群: {{ info.planCount || 0 }} +
+
+ 未送达居民群: {{ info.unExecutedCount || 0 }} +
+
+ 已送达居民群: {{ info.executedCount || 0 }} +
+
+ 无法送达居民群: {{ info.cannotExecuteCount || 0 }} +
-
提醒成员发送
+ +
提醒成员发送
@@ -39,8 +58,16 @@
- - + +
@@ -48,143 +75,174 @@ \ No newline at end of file diff --git a/src/project/saas/AppPropagandaStatistics/AppPropagandaStatistics.vue b/src/project/saas/AppPropagandaStatistics/AppPropagandaStatistics.vue index 9ab6cc7d..8ceb01ee 100644 --- a/src/project/saas/AppPropagandaStatistics/AppPropagandaStatistics.vue +++ b/src/project/saas/AppPropagandaStatistics/AppPropagandaStatistics.vue @@ -198,20 +198,38 @@
开始时间:
-
- +
+
结束时间:
-
- +
+
- - + +
确定
@@ -263,15 +281,12 @@ export default { onShow() { document.title = "宣发统计"; - }, - created() { this.getBrokenDate(); this.getData(); this.getColData(); this.getNowDate(); }, mounted() { - // this.getBrokenDate(); this.getBrokenEcharts1(); this.getBrokenEcharts2(); this.getBrokenEcharts3(); @@ -283,8 +298,7 @@ export default { checkTime(index) { if (index == 3) { this.timeSelect = index; - this.customShow = true; - + this.customShow = true; this.showStart = false; this.showEnd = false; } else { @@ -298,34 +312,43 @@ export default { // 重置 reset() { this.timeType = 0; - this.startTime = ""; - this.endTime = ""; + this.timeSelect = 0; + this.start = ""; + this.end = ""; this.departId = ""; }, selectConfirm() { if (this.timeSelect == 3) { - this.timeType = this.timeSelect; + this.detailType = this.timeSelect; this.start = this.startTime; this.end = this.endTime; - this.getBrokenDate(); } else { - this.timeType = this.timeSelect; - this.getBrokenDate(); + this.detailType = this.timeSelect; } + this.getBrokenDate(); this.filterShow = false; }, confirmStart(val) { - this.startTime = val.year + '-' + val.month + '-' + val.day + this.startTime = val.year + "-" + val.month + "-" + val.day; }, confirmEnd(val) { - this.endTime = val.year + '-' + val.month + '-' + val.day + this.endTime = val.year + "-" + val.month + "-" + val.day; }, handleTime() { - this.start = this.startTime - this.end = this.endTime + this.start = this.startTime; + this.end = this.endTime; + let startTmp = this.start.split("-"); + let endTmp = this.end.split("-"); + let stT = new Date(startTmp[0], startTmp[1], startTmp[2]); + let edT = new Date(endTmp[0], endTmp[1], endTmp[2]); + if (stT.getTime() >= edT.getTime()) { + this.$u.toast("开始日期不能大于或等于结束日期!"); + this.customShow = true + return + } this.customShow = false; }, @@ -341,10 +364,8 @@ export default { params: {}, }) .then((res) => { - { - if (res?.data) { - this.calendarList = res.data; - } + if (res?.data) { + this.calendarList = res.data; } }); }, @@ -363,18 +384,37 @@ export default { .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) + "日"); + 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) + "日"); + 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.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.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.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}) + this.predictNum = this.res3Y.reduce((accumulator, currentValue) => { + return accumulator + currentValue; + }); + this.getBrokenEcharts1(); + this.getBrokenEcharts2(); + this.getBrokenEcharts3(); + this.getColumnarEcharts(); } }); }, @@ -382,8 +422,6 @@ export default { getBrokenEcharts1() { let dataX = this.resX; let dataY1 = this.resY; - console.log(dataX); - console.log(dataY1); this.brokenEcharts1 = echarts.init( document.getElementById("brokenEcharts1") ); @@ -414,7 +452,7 @@ export default { axisLine: { show: false, }, - data: dataX, + data: this.resX, }, yAxis: { type: "value", diff --git a/src/project/saas/AppPropagandaStatistics/calendarInfo.vue b/src/project/saas/AppPropagandaStatistics/calendarInfo.vue index a02149e2..43f7ecca 100644 --- a/src/project/saas/AppPropagandaStatistics/calendarInfo.vue +++ b/src/project/saas/AppPropagandaStatistics/calendarInfo.vue @@ -1,6 +1,6 @@