|
@@ -101,7 +101,7 @@
|
|
|
</el-card>
|
|
</el-card>
|
|
|
</div> -->
|
|
</div> -->
|
|
|
<el-form-item label="内容" style="margin-bottom: 2%" >
|
|
<el-form-item label="内容" style="margin-bottom: 2%" >
|
|
|
- <div v-if="item.contentType == 12 || item.contentType == 18 || item.contentType == 19">
|
|
|
|
|
|
|
+ <div v-if="item.contentType == 12 || item.contentType == 18 || item.contentType == 19 || item.contentType == 24">
|
|
|
<el-card class="box-card">
|
|
<el-card class="box-card">
|
|
|
<el-form-item label="直播间" >
|
|
<el-form-item label="直播间" >
|
|
|
<el-select v-model="item.liveId"
|
|
<el-select v-model="item.liveId"
|
|
@@ -179,7 +179,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
</div>
|
|
</div>
|
|
|
- <div v-if="item.contentType == 4 || item.contentType == 10 || item.contentType == 17 ">
|
|
|
|
|
|
|
+ <div v-if="item.contentType == 4 || item.contentType == 10 || item.contentType == 17 || item.contentType == 23">
|
|
|
<el-card class="box-card">
|
|
<el-card class="box-card">
|
|
|
<el-form-item label="标题" prop="miniprogramTitle">
|
|
<el-form-item label="标题" prop="miniprogramTitle">
|
|
|
<el-input v-model="item.miniprogramTitle" placeholder="请输入小程序消息标题,最长为64字" />
|
|
<el-input v-model="item.miniprogramTitle" placeholder="请输入小程序消息标题,最长为64字" />
|
|
@@ -602,7 +602,6 @@ export default {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
oneClickGroupSending(val,type,corpId){
|
|
oneClickGroupSending(val,type,corpId){
|
|
|
-
|
|
|
|
|
this.sendMsgOpen.open= true;
|
|
this.sendMsgOpen.open= true;
|
|
|
this.msgForm.ids = val;
|
|
this.msgForm.ids = val;
|
|
|
this.msgForm.type = type;
|
|
this.msgForm.type = type;
|
|
@@ -620,7 +619,7 @@ export default {
|
|
|
this.$set(this.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
this.$set(this.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if ( this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17 ){
|
|
|
|
|
|
|
+ if ( this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17 || this.setting[i].contentType == 23){
|
|
|
this.$set(this.setting[i], 'miniprogramPicUrl', selectedCourse.dictImgUrl);
|
|
this.$set(this.setting[i], 'miniprogramPicUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -651,7 +650,7 @@ export default {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17 ){
|
|
|
|
|
|
|
+ if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17 || this.setting[i].contentType == 23){
|
|
|
this.$set(this.setting[i], 'miniprogramTitle', selectedVideo.dictLabel);
|
|
this.$set(this.setting[i], 'miniprogramTitle', selectedVideo.dictLabel);
|
|
|
|
|
|
|
|
if (this.projectFrom == 'sxjz' && selectedVideo.dictImgUrl) {
|
|
if (this.projectFrom == 'sxjz' && selectedVideo.dictImgUrl) {
|
|
@@ -877,15 +876,12 @@ export default {
|
|
|
this.$set(this.setting[i], 'linkTitle', selectedCourse.dictLabel);
|
|
this.$set(this.setting[i], 'linkTitle', selectedCourse.dictLabel);
|
|
|
this.$set(this.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
this.$set(this.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
}
|
|
|
- if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17 ){
|
|
|
|
|
|
|
+ if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17
|
|
|
|
|
+ || this.setting[i].contentType == 23){//新增APP 看课 跳转短链回填封面
|
|
|
this.$set(this.setting[i], 'miniprogramPicUrl', selectedCourse.dictImgUrl);
|
|
this.$set(this.setting[i], 'miniprogramPicUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
if (this.msgForm.videoId != null ) {
|
|
if (this.msgForm.videoId != null ) {
|
|
|
// 查找选中的课节对应的 label
|
|
// 查找选中的课节对应的 label
|
|
@@ -902,7 +898,8 @@ export default {
|
|
|
this.$set(this.setting[i], 'linkImageUrl', selectedVideo.dictImgUrl);
|
|
this.$set(this.setting[i], 'linkImageUrl', selectedVideo.dictImgUrl);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17){
|
|
|
|
|
|
|
+ if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17
|
|
|
|
|
+ || this.setting[i].contentType == 23){//新增APP 看课 跳转短链回填标题
|
|
|
this.$set(this.setting[i], 'miniprogramTitle', selectedVideo.dictLabel);
|
|
this.$set(this.setting[i], 'miniprogramTitle', selectedVideo.dictLabel);
|
|
|
|
|
|
|
|
if (this.projectFrom == 'sxjz' && selectedVideo.dictImgUrl) {
|
|
if (this.projectFrom == 'sxjz' && selectedVideo.dictImgUrl) {
|
|
@@ -986,12 +983,9 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
submitMsgForm(){
|
|
submitMsgForm(){
|
|
|
-
|
|
|
|
|
this.$refs["msgForm"].validate(valid => {
|
|
this.$refs["msgForm"].validate(valid => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
if (this.msgForm.draftStrategy==1) {
|
|
if (this.msgForm.draftStrategy==1) {
|
|
|
|
|
|
|
|
if (!!hasLiveSetting && (this.msgForm.courseId != null && this.msgForm.courseId != '')) {
|
|
if (!!hasLiveSetting && (this.msgForm.courseId != null && this.msgForm.courseId != '')) {
|
|
@@ -1049,10 +1043,10 @@ export default {
|
|
|
return this.$message.error("链接地址不能为空")
|
|
return this.$message.error("链接地址不能为空")
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if ((this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17) && (this.setting[i].miniprogramTitle == null || this.setting[i].miniprogramTitle == "")) {
|
|
|
|
|
|
|
+ if ((this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17 || this.setting[i].contentType == 23 || this.setting[i].contentType == 24) && (this.setting[i].miniprogramTitle == null || this.setting[i].miniprogramTitle == "")) {
|
|
|
return this.$message.error("小程序消息标题不能为空")
|
|
return this.$message.error("小程序消息标题不能为空")
|
|
|
}
|
|
}
|
|
|
- if ((this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17) && (this.setting[i].miniprogramPicUrl == null || this.setting[i].miniprogramPicUrl == "")) {
|
|
|
|
|
|
|
+ if ((this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17 || this.setting[i].contentType == 23 || this.setting[i].contentType == 24) && (this.setting[i].miniprogramPicUrl == null || this.setting[i].miniprogramPicUrl == "")) {
|
|
|
return this.$message.error("小程序封面地址不能为空")
|
|
return this.$message.error("小程序封面地址不能为空")
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1073,7 +1067,7 @@ export default {
|
|
|
if (this.setting[i].contentType == 14 && (this.setting[i].luckyBagId == null || this.setting[i].luckyBagId === "")) {
|
|
if (this.setting[i].contentType == 14 && (this.setting[i].luckyBagId == null || this.setting[i].luckyBagId === "")) {
|
|
|
return this.$message.error("福袋不能为空")
|
|
return this.$message.error("福袋不能为空")
|
|
|
}
|
|
}
|
|
|
- if (this.setting[i].contentType == 12 && (this.setting[i].liveId == null || this.setting[i].liveId == "")) {
|
|
|
|
|
|
|
+ if ((this.setting[i].contentType == 12 || this.setting[i].contentType == 24) && (this.setting[i].liveId == null || this.setting[i].liveId == "")) {
|
|
|
return this.$message.error("直播间不能为空");
|
|
return this.$message.error("直播间不能为空");
|
|
|
}
|
|
}
|
|
|
// 短信模板验证
|
|
// 短信模板验证
|
|
@@ -1117,7 +1111,6 @@ export default {
|
|
|
spinner: 'el-icon-loading',
|
|
spinner: 'el-icon-loading',
|
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
sendMsgSopType(this.msgForm).then(response => {
|
|
sendMsgSopType(this.msgForm).then(response => {
|
|
|
this.msgSuccess("一键群发成功");
|
|
this.msgSuccess("一键群发成功");
|
|
|
loading.close();
|
|
loading.close();
|