|
@@ -813,7 +813,7 @@ import ImageUpload from "@/views/qw/sop/ImageUpload.vue";
|
|
|
import {courseList, videoList} from "@/api/app/course";
|
|
import {courseList, videoList} from "@/api/app/course";
|
|
|
import { getPackageOptions,} from "@/api/app/pkg";
|
|
import { getPackageOptions,} from "@/api/app/pkg";
|
|
|
import { groupSendMessage, } from '@/api/app/userLogs'
|
|
import { groupSendMessage, } from '@/api/app/userLogs'
|
|
|
-// import { getLiveOptions,} from "@/api/app/live";
|
|
|
|
|
|
|
+import { getLiveOptions,} from "@/api/app/live";
|
|
|
// import { getMedicinesOptions, } from "@/api/app/medicines";
|
|
// import { getMedicinesOptions, } from "@/api/app/medicines";
|
|
|
// import { getProductOptions, } from "@/api/app/product";
|
|
// import { getProductOptions, } from "@/api/app/product";
|
|
|
// import { getShortVideoOptions, } from "@/api/app/shortVideo";
|
|
// import { getShortVideoOptions, } from "@/api/app/shortVideo";
|
|
@@ -886,12 +886,12 @@ export default {
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
async created() {
|
|
async created() {
|
|
|
- const disabledContentTypes = ['21', '22', '23', '24'];
|
|
|
|
|
|
|
+ // 仅屏蔽民品/药品/短视频,直播(21)需要展示
|
|
|
|
|
+ const disabledContentTypes = ['22', '23', '24'];
|
|
|
this.getDicts("app_sop_plugin_settingType").then(response => {
|
|
this.getDicts("app_sop_plugin_settingType").then(response => {
|
|
|
this.sysQwSopAiContentType = response.data.filter(
|
|
this.sysQwSopAiContentType = response.data.filter(
|
|
|
item => !disabledContentTypes.includes(String(item.dictValue))
|
|
item => !disabledContentTypes.includes(String(item.dictValue))
|
|
|
);
|
|
);
|
|
|
- // this.sysQwSopAiContentType = response.data;
|
|
|
|
|
});
|
|
});
|
|
|
this.getDicts("app_sop_watch_status").then(response => {
|
|
this.getDicts("app_sop_watch_status").then(response => {
|
|
|
this.sysFsSopWatchStatus = response.data;
|
|
this.sysFsSopWatchStatus = response.data;
|
|
@@ -899,16 +899,19 @@ export default {
|
|
|
const [
|
|
const [
|
|
|
courseInfo,
|
|
courseInfo,
|
|
|
defaultPkg,
|
|
defaultPkg,
|
|
|
|
|
+ defaultLive,
|
|
|
defaultArticle,
|
|
defaultArticle,
|
|
|
defaultOpenClassVideo,
|
|
defaultOpenClassVideo,
|
|
|
] = await Promise.all([
|
|
] = await Promise.all([
|
|
|
courseList(),
|
|
courseList(),
|
|
|
this.getPkgList(null, null),
|
|
this.getPkgList(null, null),
|
|
|
|
|
+ this.getLiveList(),
|
|
|
this.getArticleList(null, null),
|
|
this.getArticleList(null, null),
|
|
|
this.getOpenClassVideoList(null, null),
|
|
this.getOpenClassVideoList(null, null),
|
|
|
]);
|
|
]);
|
|
|
this.courseList = courseInfo.list;
|
|
this.courseList = courseInfo.list;
|
|
|
this.pkgList = defaultPkg.data;
|
|
this.pkgList = defaultPkg.data;
|
|
|
|
|
+ this.liveList = defaultLive.data || defaultLive.rows || [];
|
|
|
this.articleList = defaultArticle.data;
|
|
this.articleList = defaultArticle.data;
|
|
|
this.openClassVideoList = defaultOpenClassVideo.data;
|
|
this.openClassVideoList = defaultOpenClassVideo.data;
|
|
|
// const [
|
|
// const [
|
|
@@ -989,12 +992,12 @@ export default {
|
|
|
};
|
|
};
|
|
|
return await getPackageOptions(data);
|
|
return await getPackageOptions(data);
|
|
|
},
|
|
},
|
|
|
- // /**
|
|
|
|
|
- // * 获取直播间信息
|
|
|
|
|
- // */
|
|
|
|
|
- // async getLiveList() {
|
|
|
|
|
- // return await getLiveOptions();
|
|
|
|
|
- // },
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 获取直播间信息
|
|
|
|
|
+ */
|
|
|
|
|
+ async getLiveList() {
|
|
|
|
|
+ return await getLiveOptions();
|
|
|
|
|
+ },
|
|
|
// /**
|
|
// /**
|
|
|
// * 获取民品列表
|
|
// * 获取民品列表
|
|
|
// * @param keyword
|
|
// * @param keyword
|
|
@@ -1263,7 +1266,7 @@ export default {
|
|
|
liveChange(content) {
|
|
liveChange(content) {
|
|
|
content.liveTitle = null;
|
|
content.liveTitle = null;
|
|
|
content.liveImgUrl = null;
|
|
content.liveImgUrl = null;
|
|
|
- const selectedLive = this.liveList.find(live => live.liveId === content.liveId);
|
|
|
|
|
|
|
+ const selectedLive = this.liveList.find(live => parseInt(live.liveId) === parseInt(content.liveId));
|
|
|
if (selectedLive) {
|
|
if (selectedLive) {
|
|
|
content.liveTitle = selectedLive.liveName; // 自动填充标题
|
|
content.liveTitle = selectedLive.liveName; // 自动填充标题
|
|
|
content.liveImgUrl = selectedLive.liveImgUrl; // 自动填充封面
|
|
content.liveImgUrl = selectedLive.liveImgUrl; // 自动填充封面
|
|
@@ -1630,9 +1633,9 @@ export default {
|
|
|
if ([20].includes(Number(dcs.contentType)) && this.isEmpty(dcs.packageId)) {
|
|
if ([20].includes(Number(dcs.contentType)) && this.isEmpty(dcs.packageId)) {
|
|
|
return this.$message.error("疗法不能为空");
|
|
return this.$message.error("疗法不能为空");
|
|
|
}
|
|
}
|
|
|
- // if ([21].includes(Number(dcs.contentType)) && this.isEmpty(dcs.liveId)) {
|
|
|
|
|
- // return this.$message.error("直播间不能为空");
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ if ([21].includes(Number(dcs.contentType)) && this.isEmpty(dcs.liveId)) {
|
|
|
|
|
+ return this.$message.error("直播间不能为空");
|
|
|
|
|
+ }
|
|
|
// if ([22].includes(Number(dcs.contentType)) && this.isEmpty(dcs.productId)) {
|
|
// if ([22].includes(Number(dcs.contentType)) && this.isEmpty(dcs.productId)) {
|
|
|
// return this.$message.error("民品不能为空");
|
|
// return this.$message.error("民品不能为空");
|
|
|
// }
|
|
// }
|