echart部门id转换
This commit is contained in:
		| @@ -34,7 +34,7 @@ | ||||
|                   <el-card> | ||||
|                     <div class="flex-between"> | ||||
|                       <p class="item-title">{{item.taskTitle}}</p> | ||||
|                       <span class="item-time" v-if="item.createTime">{{item.createTime.substring(10, 16)}}</span> | ||||
|                       <span class="item-time" v-if="item.choiceTime">{{item.choiceTime.substring(10, 16)}}</span> | ||||
|                     </div> | ||||
|                     <div class="item-info item-created"> | ||||
|                       <span class="label">创建人:</span> | ||||
| @@ -116,7 +116,7 @@ | ||||
|         </div> | ||||
|       </div> | ||||
|  | ||||
|       <ai-dialog :visible.sync="dialogDate" title="选择时间" width="500px" customFooter :show-close="false"> | ||||
|       <ai-dialog :visible.sync="dialogDate" title="选择时间" width="500px" customFooter> | ||||
|         <el-date-picker v-model="timeList" size="small" type="daterange" value-format="yyyy-MM-dd" | ||||
|           range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"> | ||||
|         </el-date-picker> | ||||
| @@ -226,11 +226,13 @@ | ||||
|           return this.$message.error('请选择自定义时间'); | ||||
|         } | ||||
|  | ||||
|         if(this.effectType == 3 && this.isEffectTimeSelect) { //宣发效果 | ||||
|         if(this.isEffectTimeSelect) { //宣发效果 | ||||
|           this.timeListEffect = this.timeList | ||||
|           this.effectType = 3 | ||||
|           this.getEffect() | ||||
|         } else {  //宣发明细 | ||||
|           this.timeListDepart = this.timeList | ||||
|           this.departType = 3 | ||||
|           this.getDepart() | ||||
|         } | ||||
|  | ||||
| @@ -256,7 +258,6 @@ | ||||
|         }else { | ||||
|           this.timeList = this.timeListEffect | ||||
|         } | ||||
|         this.effectType = type | ||||
|         if(type == 3) { | ||||
|           this.isEffectTimeSelect = true | ||||
|           this.dialogDate = true | ||||
| @@ -322,7 +323,6 @@ | ||||
|         }else { | ||||
|           this.timeList = this.timeListDepart | ||||
|         } | ||||
|         this.departType = type | ||||
|         if(type == 3) { | ||||
|           this.isEffectTimeSelect = false | ||||
|           this.dialogDate = true | ||||
| @@ -384,7 +384,7 @@ | ||||
|               type: 'shadow' | ||||
|             }, | ||||
|             formatter: function(data) { | ||||
|               let name = `<ai-open-data type="userName" :openid="${this.departBarData[data[0].dataIndex].deptId}" class="name"></ai-open-data><br/>宣发任务数:${data[0].data}` | ||||
|               let name = `<ai-open-data type="departmentName" openid="${this.departBarData[data[0].dataIndex].deptId}" class="name"></ai-open-data><br/>宣发任务数:${data[0].data}` | ||||
|               return name | ||||
|             } | ||||
|           }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user