协同宣发
This commit is contained in:
		| @@ -131,15 +131,25 @@ | ||||
|                         </div> | ||||
|                       </div> | ||||
|                     </el-popover> | ||||
|                     <div class="add-material add-item" @click="$refs.ChooseMaterial.open()"> | ||||
|                     <!-- <div class="add-material add-item" @click="$refs.ChooseMaterial.open()"> | ||||
|                       <img src="https://cdn.cunwuyun.cn/dvcp/announce/add.png"/> | ||||
|                       <span style="color: #2266FF; font-size: 12px;">从素材库选择</span> | ||||
|                     </div> | ||||
|                     </div> --> | ||||
|                   </div> | ||||
|                   <div class="tips"> | ||||
|                     <em>从本地上传,图片最大支持10MB,支持JPG,PNG格式;视频最大支持10MB,支持MP4格式;文件最大支持20MB</em> | ||||
|                   </div> | ||||
|                 </el-form-item> | ||||
|                 <el-form-item label="标签" style="width: 100%;" prop="markTag"> | ||||
|                   <el-checkbox-group v-model="form.markTag"> | ||||
|                     <el-checkbox | ||||
|                       v-for="(item, index) in dict.getDict('mstTag')" | ||||
|                       :key="index" | ||||
|                       :label="item.dictValue"> | ||||
|                       {{ item.dictName }} | ||||
|                     </el-checkbox> | ||||
|                   </el-checkbox-group> | ||||
|                 </el-form-item> | ||||
|                 <el-form-item label="结束时间" style="width: 100%;" prop="taskEndTime" :rules="[{ required: true, message: '请选择结束时间', trigger: 'change' }]"> | ||||
|                   <el-date-picker | ||||
|                     style="width: 100%;" | ||||
| @@ -281,7 +291,7 @@ | ||||
|             <el-button @click="onDateForm" type="primary" :loading="isLoading2" style="width: 92px;">确认</el-button> | ||||
|           </div> | ||||
|         </ai-dialog> | ||||
|         <ChooseMaterial ref="ChooseMaterial" :instance="instance" @change="onChooseChange"></ChooseMaterial> | ||||
|         <!-- <ChooseMaterial ref="ChooseMaterial" :instance="instance" @change="onChooseChange"></ChooseMaterial> --> | ||||
|       </div> | ||||
|     </template> | ||||
|     <template #footer> | ||||
| @@ -346,6 +356,7 @@ export default { | ||||
|         taskEndTime: '', | ||||
|         examines: [], | ||||
|         wxGroups: [], | ||||
|         markTag: [], | ||||
|         wxGroupsName: '', | ||||
|         sendScope: '0', | ||||
|         sendType: 0, | ||||
| @@ -382,8 +393,10 @@ export default { | ||||
|     if (this.params && this.params.id) { | ||||
|       this.id = this.params.id | ||||
|       this.getInfo(this.params.id) | ||||
|       this.dict.load('mstTag') | ||||
|     } else { | ||||
|       this.getWxGroups() | ||||
|       this.dict.load('mstTag') | ||||
|     } | ||||
|   }, | ||||
|  | ||||
| @@ -403,7 +416,8 @@ export default { | ||||
|             ...this.form, | ||||
|             ...res.data, | ||||
|             wxGroupsName: '1', | ||||
|             filterCriteria: res.data.filterCriteria.split(',') | ||||
|             filterCriteria: res.data.filterCriteria.split(','), | ||||
|             markTag: res.data.markTag.split(',') | ||||
|           } | ||||
|  | ||||
|           if (res.data.girdNames) { | ||||
| @@ -656,6 +670,7 @@ export default { | ||||
|             wxGroups: this.form.wxGroups, | ||||
|             contents, | ||||
|             sendType, | ||||
|             markTag: this.form.markTag.join(','), | ||||
|             sendChannel: this.params.sendChannel, | ||||
|             choiceTime: this.dateForm.choiceTime, | ||||
|             filterCriteria: this.form.filterCriteria.join(','), | ||||
|   | ||||
| @@ -37,9 +37,11 @@ | ||||
|                 </div> | ||||
|               </div> | ||||
|             </ai-info-item> | ||||
|             <ai-info-item label="发送方式" isLine> | ||||
|             <ai-info-item label="发送方式"> | ||||
|               <span>{{ info.sendChannel === '1' ? '通知员工转发' : '成员一键群发' }}</span> | ||||
|             </ai-info-item> | ||||
|             <ai-info-item label="标签" :value="info.markTag"> | ||||
|             </ai-info-item> | ||||
|             <ai-info-item label="创建时间" :value="info.createTime"></ai-info-item> | ||||
|             <ai-info-item label="群发时间" :value="info.choiceTime"></ai-info-item> | ||||
|             <ai-info-item label="结束时间" :value="info.taskEndTime" v-if="info.sendChannel === '1'"></ai-info-item> | ||||
|   | ||||
| @@ -78,7 +78,7 @@ | ||||
|               <el-button type="text" @click="close(row.id)" v-if="['4'].includes(row.status)">关闭</el-button> | ||||
|               <el-button type="text" @click="cancel(row.id)" v-if="['0'].includes(row.status)">撤回</el-button> | ||||
|               <el-button type="text" @click="toDetail(row.id)">详情</el-button> | ||||
|               <el-button type="text" @click="toAdd(row.sendChannel, row.id)" v-if="['1', '3'].includes(row.status)">编辑</el-button> | ||||
|               <el-button type="text" @click="toAdd(row.id)" v-if="['1', '3'].includes(row.status)">编辑</el-button> | ||||
|             </div> | ||||
|           </template> | ||||
|         </el-table-column> | ||||
| @@ -141,6 +141,7 @@ | ||||
|           { slot: 'user', label: '创建人', openType: 'userName', align: 'center' }, | ||||
|           { prop: 'choiceTime', label: '群发时间', align: 'center' }, | ||||
|           { prop: 'taskEndTime', label: '群发结束时间', align: 'center' }, | ||||
|           { prop: 'markTag', label: '标签', align: 'center' }, | ||||
|           { | ||||
|             prop: 'status', | ||||
|             align: 'center', | ||||
| @@ -159,7 +160,7 @@ | ||||
|     }, | ||||
|  | ||||
|     created () { | ||||
|       this.dict.load('mstStatus', 'mstSendType').then(() => { | ||||
|       this.dict.load('mstStatus', 'mstSendType', 'mstTag').then(() => { | ||||
|         this.getList() | ||||
|       }) | ||||
|     }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user