30710
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
<el-calendar v-model="calendarDate">
|
<el-calendar v-model="calendarDate">
|
||||||
<template
|
<template
|
||||||
slot="dateCell"
|
slot="dateCell"
|
||||||
slot-scope="{date, data}" >
|
slot-scope="{date, data}">
|
||||||
<div class="flex-date">
|
<div class="flex-date">
|
||||||
<span>{{Number(data.day.substring(8, 10))}}</span>
|
<span>{{Number(data.day.substring(8, 10))}}</span>
|
||||||
<span class="tips" v-if="data.day.substring(5, 7) == chooseMonth && dateList[Number(data.day.substring(8, 10))] && dateList[Number(data.day.substring(8, 10))].taskList.length">{{dateList[Number(data.day.substring(8, 10))].taskList.length}}</span>
|
<span class="tips" v-if="data.day.substring(5, 7) == chooseMonth && dateList[Number(data.day.substring(8, 10))] && dateList[Number(data.day.substring(8, 10))].taskList.length">{{dateList[Number(data.day.substring(8, 10))].taskList.length}}</span>
|
||||||
@@ -61,10 +61,10 @@
|
|||||||
<ai-title title="宣发效果"></ai-title>
|
<ai-title title="宣发效果"></ai-title>
|
||||||
<div class="right-search">
|
<div class="right-search">
|
||||||
<div class="time-select" :class="effectType == index ? 'active' : ''" v-for="(item, index) in dateTypeList" :key="index" @click="changeEffectType(index)">{{item}}</div>
|
<div class="time-select" :class="effectType == index ? 'active' : ''" v-for="(item, index) in dateTypeList" :key="index" @click="changeEffectType(index)">{{item}}</div>
|
||||||
<ai-picker :instance="instance" v-model="deptList" @change="getEffect" dialogTitle="选择部门">
|
<ai-picker :instance="instance" @pick="e => onUserChange(e)" :multiple="false" dialogTitle="选择部门" action="/app/wxcp/wxdepartment/departList">
|
||||||
<div class="time-select">
|
<div class="time-select">
|
||||||
<span class="dept-name" style="color:#999;" v-if="deptList && !deptList.length">宣发部门</span>
|
<span class="dept-name" style="color:#999;" v-if="deptList && !deptList.length">宣发部门</span>
|
||||||
<ai-open-data class="dept-name" type="departmentName" :openid="deptList[0]" v-else/>
|
<span class="dept-name" v-else>{{deptList[0].name}}</span>
|
||||||
<i class="el-icon-arrow-down"></i>
|
<i class="el-icon-arrow-down"></i>
|
||||||
</div>
|
</div>
|
||||||
</ai-picker>
|
</ai-picker>
|
||||||
@@ -219,6 +219,10 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(['initOpenData', 'transCanvas']),
|
...mapActions(['initOpenData', 'transCanvas']),
|
||||||
|
onUserChange (e) {
|
||||||
|
this.deptList = e
|
||||||
|
this.getEffect()
|
||||||
|
},
|
||||||
selectDete() {
|
selectDete() {
|
||||||
if(!this.timeList || !this.timeList.length) {
|
if(!this.timeList || !this.timeList.length) {
|
||||||
return this.$message.error('请选择自定义时间');
|
return this.$message.error('请选择自定义时间');
|
||||||
@@ -265,7 +269,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
getEffect() {
|
getEffect() {
|
||||||
var startTime = this.timeListEffect[0] || '' , endTime = this.timeListEffect[1] || '', departId = this.deptList[0] || ''
|
var startTime = this.timeListEffect[0] || '' , endTime = this.timeListEffect[1] || '', departId = this.deptList[0].id || ''
|
||||||
this.instance.post(`/app/appmasssendingtask/statisticsEffect?type=${this.effectType}&startTime=${startTime}&endTime=${endTime}&departId=${departId}`).then(res => {
|
this.instance.post(`/app/appmasssendingtask/statisticsEffect?type=${this.effectType}&startTime=${startTime}&endTime=${endTime}&departId=${departId}`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.effectData = res.data
|
this.effectData = res.data
|
||||||
|
|||||||
Reference in New Issue
Block a user