diff --git a/src/project/saas/AppCooperationPropaganda/addPropaganda.vue b/src/project/saas/AppCooperationPropaganda/addPropaganda.vue index f0f10268..eacbbef6 100644 --- a/src/project/saas/AppCooperationPropaganda/addPropaganda.vue +++ b/src/project/saas/AppCooperationPropaganda/addPropaganda.vue @@ -8,7 +8,11 @@
*发送范围
- 请选择 + + 请选择 + 已选择 + +
@@ -18,7 +22,7 @@
预览
- +
@@ -70,8 +74,10 @@
- -
+ + +

{{ item.name }}

{{ item.fileSizeStr }}

@@ -113,6 +119,7 @@ export default { choiceTime: '', // 定时发送时间 sendScope: '', // 0:全部居民群、1:按部门选择、2:按网格选择 sendType: '0', // 0:立即发送、1:定时发送 + wxGroups: [], }, enableExamine: false, isTimedTask: false, @@ -129,7 +136,8 @@ export default { minute: true, second: true, timestamp: false, - } + }, + flag: false, } }, methods: { @@ -177,6 +185,43 @@ export default { }, confirm() { + if(this.flag) return + + this.form.contents = [ + { + content: this.content, + msgType: '0' + }, + ...this.files + ] + + if(!this.form.contents.length) { + return this.$u.toast("请输入发送内容") + } + + // if(!this.enableExamine) { + // if(!this.form.examines.length) { + // return this.$u.toast("请选择审批人") + // } else { + // this.form.enableExamine = '1' + // } + // } + + if(!this.isTimedTask) { + if(!this.form.choiceTime.length) { + return this.$u.toast("请选择发送时间") + } + } + + this.$http.post(`/app/appmasssendingtask/addOrUpdate`, { ...this.form }).then(res=>{ + this.flag = false + if(res?.code ==0) { + + // uni.navigateBack() + this.$u.toast("新增成功") + } + }) + }, @@ -198,10 +243,14 @@ export default { } }, onShow() { + }, onLoad(o) { this.type = o.index; document.title = this.type==0? "群发居民群": this.type==1? "群发居民": "群发朋友圈" + uni.$on('checkedScope', res => { + this.form.sendScope = res.sendScope + }) } } @@ -324,6 +373,15 @@ export default { width: 84px; height: 84px; } + .only_pic { + max-width: 206px; + max-height: 200px; + } + .only_video { + max-width: 284px; + max-height: 160px; + } + .text_right { width: calc(100% - 116px); background: #FFF; diff --git a/src/project/saas/AppCooperationPropaganda/scopedSelect.vue b/src/project/saas/AppCooperationPropaganda/scopedSelect.vue index d41c4a98..c8a0e725 100644 --- a/src/project/saas/AppCooperationPropaganda/scopedSelect.vue +++ b/src/project/saas/AppCooperationPropaganda/scopedSelect.vue @@ -49,6 +49,7 @@