群发居民群需求变更

This commit is contained in:
yanran200730
2022-09-15 13:44:11 +08:00
parent 0c2ac4808a
commit cf80182740
2 changed files with 29 additions and 4 deletions

View File

@@ -136,6 +136,17 @@
<em>从本地上传图片最大支持10MB支持JPG,PNG格式视频最大支持10MB支持MP4格式文件最大支持20MB</em>
</div>
</el-form-item>
<el-form-item label="结束时间" v-if="params.sendChannel === '1'" style="width: 100%;" prop="taskEndTime" :rules="[{ required: true, message: '请选择结束时间', trigger: 'change' }]">
<el-date-picker
style="width: 100%;"
v-model="form.taskEndTime"
type="datetime"
size="small"
:picker-options="pickerOptions"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="请选择结束时间">
</el-date-picker>
</el-form-item>
<el-form-item label="宣发审批" prop="enableExamine" style="width: 100%;" :rules="[{ required: true, message: '请输入任务名称', trigger: 'blur' }]">
<el-switch
v-model="form.enableExamine"
@@ -324,6 +335,7 @@ export default {
choiceTime: '',
contents: [],
enableExamine: '0',
taskEndTime: '',
examines: [],
wxGroups: [],
wxGroupsName: '',
@@ -622,6 +634,7 @@ export default {
wxGroups: this.form.wxGroups,
contents,
sendType,
sendChannel: this.params.sendChannel,
choiceTime: this.dateForm.choiceTime,
filterCriteria: this.form.filterCriteria.join(','),
examines: this.form.examines.length ? this.form.examines.map(v => {

View File

@@ -10,7 +10,7 @@
<template slot="content">
<ai-search-bar class="search-bar">
<template #left>
<el-button size="small" type="primary" icon="iconfont iconAdd" @click="toAdd('')">创建宣发</el-button>
<el-button size="small" type="primary" icon="iconfont iconAdd" @click="isShow = true">创建宣发</el-button>
<ai-select
v-model="search.status"
@change="search.current = 1, getList()"
@@ -77,11 +77,21 @@
<el-button type="text" @click="remindExamine(row.id)" v-if="['0'].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.id)" v-if="['1', '3'].includes(row.status)">编辑</el-button>
<el-button type="text" @click="toAdd(row.mstSendChannel, row.id)" v-if="['1', '3'].includes(row.status)">编辑</el-button>
</div>
</template>
</el-table-column>
</ai-table>
<ai-dialog
:visible.sync="isShow"
width="590px"
title="定时发送"
customFooter>
<el-button @click="toAdd('0', '')">成员一键群发</el-button>
<el-button @click="toAdd('1', '')">通知成员群发</el-button>
<div class="dialog-footer" slot="footer">
</div>
</ai-dialog>
</template>
</ai-list>
</template>
@@ -107,6 +117,7 @@
endTime: ''
},
name: '',
isShow: false,
user: [],
tableData: [],
loading: false,
@@ -213,11 +224,12 @@
})
},
toAdd(id) {
toAdd(type, id) {
this.$emit('change', {
type: 'Add',
params: {
id
id,
sendChannel: type
}
})
},