|
@@ -104,7 +104,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
</div>
|
|
</div>
|
|
|
- <div v-if="item.contentType == 4 || item.contentType == 10 ">
|
|
|
|
|
|
|
+ <div v-if="item.contentType == 4 || item.contentType == 10 || item.contentType == 17">
|
|
|
<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字" />
|
|
@@ -204,7 +204,7 @@
|
|
|
</el-card>
|
|
</el-card>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div v-if="item.contentType == 12">
|
|
|
|
|
|
|
+ <div v-if="item.contentType == 12 || item.contentType == 18 || item.contentType == 19">
|
|
|
<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"
|
|
@@ -329,6 +329,7 @@ import ImageUpload from "@/views/qw/sop/ImageUpload.vue";
|
|
|
import {courseList, videoList} from "@/api/qw/sop";
|
|
import {courseList, videoList} from "@/api/qw/sop";
|
|
|
import userVideo from "@/views/qw/userVideo/userVideo";
|
|
import userVideo from "@/views/qw/userVideo/userVideo";
|
|
|
import {listReward} from "@/api/qw/luckyBag";
|
|
import {listReward} from "@/api/qw/luckyBag";
|
|
|
|
|
+import {listToLiveNoEnd} from "@/api/live/live";
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -405,6 +406,7 @@ export default {
|
|
|
//插件版
|
|
//插件版
|
|
|
sysQwSopAiContentType:[],
|
|
sysQwSopAiContentType:[],
|
|
|
|
|
|
|
|
|
|
+ liveList: [],
|
|
|
sendMsgOpen:{
|
|
sendMsgOpen:{
|
|
|
title:'一键批量群发',
|
|
title:'一键批量群发',
|
|
|
open:false,
|
|
open:false,
|
|
@@ -446,6 +448,9 @@ export default {
|
|
|
this.getDicts("sys_fs_sop_watch_status").then(response => {
|
|
this.getDicts("sys_fs_sop_watch_status").then(response => {
|
|
|
this.sysFsSopWatchStatus = response.data;
|
|
this.sysFsSopWatchStatus = response.data;
|
|
|
});
|
|
});
|
|
|
|
|
+ listToLiveNoEnd().then(response => {
|
|
|
|
|
+ this.liveList = response.rows;
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
courseList().then(response => {
|
|
courseList().then(response => {
|
|
|
this.courseList = response.list;
|
|
this.courseList = response.list;
|
|
@@ -464,6 +469,20 @@ export default {
|
|
|
content.luckyBagDataStatus = null;
|
|
content.luckyBagDataStatus = null;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ liveChange(content) {
|
|
|
|
|
+ // content.liveId 是选中的直播间 ID(liveId)
|
|
|
|
|
+ const selectedLive = this.liveList.find(live => live.liveId === content.liveId);
|
|
|
|
|
+ if (selectedLive) {
|
|
|
|
|
+ // 从选中的直播间对象中提取标题和封面,赋值给当前内容的对应字段
|
|
|
|
|
+ // 假设直播间对象中标题字段为 liveTitle,封面字段为 coverImg(根据实际接口字段调整)
|
|
|
|
|
+ content.miniprogramTitle = selectedLive.liveName || ''; // 自动填充标题
|
|
|
|
|
+ content.miniprogramPicUrl = selectedLive.liveImgUrl || ''; // 自动填充封面
|
|
|
|
|
+ } else {
|
|
|
|
|
+ // 若未找到对应直播间,清空标题和封面(可选)
|
|
|
|
|
+ content.miniprogramTitle = '';
|
|
|
|
|
+ content.miniprogramPicUrl = '';
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
qwUserVideoResult(val) {
|
|
qwUserVideoResult(val) {
|
|
|
|
|
|
|
@@ -502,7 +521,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 ){
|
|
|
|
|
|
|
+ if ( this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17){
|
|
|
this.$set(this.setting[i], 'miniprogramPicUrl', selectedCourse.dictImgUrl);
|
|
this.$set(this.setting[i], 'miniprogramPicUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -532,7 +551,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 ){
|
|
|
|
|
|
|
+ if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17){
|
|
|
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) {
|
|
@@ -760,7 +779,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){
|
|
|
|
|
|
|
+ if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17){
|
|
|
this.$set(this.setting[i], 'miniprogramPicUrl', selectedCourse.dictImgUrl);
|
|
this.$set(this.setting[i], 'miniprogramPicUrl', selectedCourse.dictImgUrl);
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -787,7 +806,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
- if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10){
|
|
|
|
|
|
|
+ if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17){
|
|
|
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) {
|
|
@@ -865,10 +884,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].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].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].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].miniprogramPicUrl == null || this.setting[i].miniprogramPicUrl == "")) {
|
|
|
return this.$message.error("小程序封面地址不能为空")
|
|
return this.$message.error("小程序封面地址不能为空")
|
|
|
}
|
|
}
|
|
|
|
|
|