选择部门
This commit is contained in:
		| @@ -55,8 +55,12 @@ | ||||
|           <ai-title title="宣发效果"></ai-title> | ||||
|           <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> | ||||
|             <ai-picker :instance="instance" v-model="deptList" style="display:inlie=block;"> | ||||
|               <div class="time-select"><span class="dept-name" :style="deptList.length ? '' : 'color:#999;'">宣发部门</span><i class="el-icon-arrow-down"></i></div> | ||||
|             <ai-picker :instance="instance" v-model="deptList" @change="getEffect"> | ||||
|               <div class="time-select"> | ||||
|                 <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/> | ||||
|                 <i class="el-icon-arrow-down"></i> | ||||
|               </div> | ||||
|             </ai-picker> | ||||
|           </div> | ||||
|         </div> | ||||
| @@ -257,8 +261,8 @@ import { mapActions } from 'vuex'; | ||||
|         } | ||||
|       }, | ||||
|       getEffect() { | ||||
|         var startTime = this.timeList[0] || '' , endTime = this.timeList[1] || '' | ||||
|         this.instance.post(`/app/appmasssendingtask/statisticsEffect?type=${this.effectType}&startTime=${startTime}&endTime=${endTime}`).then(res => { | ||||
|         var startTime = this.timeList[0] || '' , endTime = this.timeList[1] || '', departId = this.deptList[0] || '' | ||||
|         this.instance.post(`/app/appmasssendingtask/statisticsEffect?type=${this.effectType}&startTime=${startTime}&endTime=${endTime}&departId=${departId}`).then(res => { | ||||
|           if (res.code == 0) { | ||||
|             this.effectData = res.data | ||||
|             var xData = [], createData = [], executeData = [], receiveData = [] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user