|
@@ -312,7 +312,7 @@
|
|
|
<el-radio
|
|
<el-radio
|
|
|
:key="item.dictValue"
|
|
:key="item.dictValue"
|
|
|
:label="item.dictValue"
|
|
:label="item.dictValue"
|
|
|
- :disabled="(content.type!=2 && (item.dictValue === '9' || item.dictValue == 18)) || (content.isOfficial==1 && ['5','6','7','8','9'].includes(item.dictValue))"
|
|
|
|
|
|
|
+ :disabled="(content.type!=2 && (item.dictValue === '9' || item.dictValue == 18 || item.dictValue === '19')) || (content.isOfficial==1 && ['5','6','7','8','9'].includes(item.dictValue))"
|
|
|
v-for="item in sysQwSopAiContentType"
|
|
v-for="item in sysQwSopAiContentType"
|
|
|
v-if="courseTypeList.includes(item.dictValue)">{{ item.dictLabel }}
|
|
v-if="courseTypeList.includes(item.dictValue)">{{ item.dictLabel }}
|
|
|
</el-radio>
|
|
</el-radio>
|
|
@@ -350,7 +350,7 @@
|
|
|
v-model="setList.imgUrl"
|
|
v-model="setList.imgUrl"
|
|
|
type="image" :num="1" :width="150" :height="150"/>
|
|
type="image" :num="1" :width="150" :height="150"/>
|
|
|
|
|
|
|
|
- <div v-if="setList.contentType == 3 || setList.contentType == 18 || (setList.contentType == 9 && content.type==2 )">
|
|
|
|
|
|
|
+ <div v-if="setList.contentType == 3 || setList.contentType == 18 || setList.contentType == 19 || (setList.contentType == 9 && content.type==2 )">
|
|
|
<el-card class="box-card">
|
|
<el-card class="box-card">
|
|
|
<el-form-item label="链接标题:" label-width="100px" required>
|
|
<el-form-item label="链接标题:" label-width="100px" required>
|
|
|
<el-input :disabled="formType == 3 || (form.sendType == 11 && contentIndex != 0 && setIndex == 0)" v-model="setList.linkTitle"
|
|
<el-input :disabled="formType == 3 || (form.sendType == 11 && contentIndex != 0 && setIndex == 0)" v-model="setList.linkTitle"
|
|
@@ -846,7 +846,7 @@ export default {
|
|
|
ruleList: [],
|
|
ruleList: [],
|
|
|
ids: [],
|
|
ids: [],
|
|
|
startTimeRange: [],
|
|
startTimeRange: [],
|
|
|
- courseTypeList: ['1','2', '4','5','6', '7','8','9','10','18'],
|
|
|
|
|
|
|
+ courseTypeList: ['1','2', '4','5','6', '7','8','9','10','18','19'],
|
|
|
sysFsSopWatchStatus: [],
|
|
sysFsSopWatchStatus: [],
|
|
|
//消息内容类型 企微版
|
|
//消息内容类型 企微版
|
|
|
sysQwSopContentType: [],
|
|
sysQwSopContentType: [],
|
|
@@ -1343,22 +1343,22 @@ export default {
|
|
|
this.$message.error("图片不能为空")
|
|
this.$message.error("图片不能为空")
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
- if (['3','9','10','18'].includes(String(data.content[j].setting[k].contentType))
|
|
|
|
|
|
|
+ if (['3','9','10','18','19'].includes(String(data.content[j].setting[k].contentType))
|
|
|
&& (data.content[j].setting[k].linkTitle == null || data.content[j].setting[k].linkTitle == "")) {
|
|
&& (data.content[j].setting[k].linkTitle == null || data.content[j].setting[k].linkTitle == "")) {
|
|
|
this.$message.error("链接标题不能为空")
|
|
this.$message.error("链接标题不能为空")
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
- if (['3','9','10','18'].includes(String(data.content[j].setting[k].contentType))
|
|
|
|
|
|
|
+ if (['3','9','10','18','19'].includes(String(data.content[j].setting[k].contentType))
|
|
|
&& (data.content[j].setting[k].linkDescribe == null || data.content[j].setting[k].linkDescribe == "")) {
|
|
&& (data.content[j].setting[k].linkDescribe == null || data.content[j].setting[k].linkDescribe == "")) {
|
|
|
this.$message.error("链接描述不能为空")
|
|
this.$message.error("链接描述不能为空")
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
- if (['3','9','10','18'].includes(String(data.content[j].setting[k].contentType))
|
|
|
|
|
|
|
+ if (['3','9','10','18','19'].includes(String(data.content[j].setting[k].contentType))
|
|
|
&& (data.content[j].setting[k].linkImageUrl == null || data.content[j].setting[k].linkImageUrl == "")) {
|
|
&& (data.content[j].setting[k].linkImageUrl == null || data.content[j].setting[k].linkImageUrl == "")) {
|
|
|
this.$message.error("链接图片不能为空")
|
|
this.$message.error("链接图片不能为空")
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
- if ((data.content[j].setting[k].contentType == 3 || data.content[j].setting[k].contentType == '18')
|
|
|
|
|
|
|
+ if ((data.content[j].setting[k].contentType == 3 || data.content[j].setting[k].contentType == '18' || data.content[j].setting[k].contentType == '19')
|
|
|
&& data.content[j].setting[k].type == 1
|
|
&& data.content[j].setting[k].type == 1
|
|
|
&& (data.content[j].setting[k].linkUrl == null || data.content[j].setting[k].linkUrl == "")) {
|
|
&& (data.content[j].setting[k].linkUrl == null || data.content[j].setting[k].linkUrl == "")) {
|
|
|
this.$message.error("链接地址不能为空")
|
|
this.$message.error("链接地址不能为空")
|
|
@@ -1665,7 +1665,7 @@ export default {
|
|
|
if (selectedCourse && content.type == 2 && content.courseId != null) {
|
|
if (selectedCourse && content.type == 2 && content.courseId != null) {
|
|
|
//响应式直接给链接的标题/封面上值
|
|
//响应式直接给链接的标题/封面上值
|
|
|
|
|
|
|
|
- if (['3', '9', '18'].includes(String(content.setting[i].contentType))) {
|
|
|
|
|
|
|
+ if (['3', '9', '18','19'].includes(String(content.setting[i].contentType))) {
|
|
|
this.$set(content.setting[i], 'linkTitle', selectedCourse.dictLabel);
|
|
this.$set(content.setting[i], 'linkTitle', selectedCourse.dictLabel);
|
|
|
this.$set(content.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
this.$set(content.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
}
|
|
@@ -1809,7 +1809,7 @@ export default {
|
|
|
for (let i = 0; i < content.setting.length; i++) {
|
|
for (let i = 0; i < content.setting.length; i++) {
|
|
|
//响应式直接给链接的标题/封面上值
|
|
//响应式直接给链接的标题/封面上值
|
|
|
if (selectedCourse && content.type == 2 && content.courseId != null) {
|
|
if (selectedCourse && content.type == 2 && content.courseId != null) {
|
|
|
- if (['3', '9', '18'].includes(String(content.setting[i].contentType))) {
|
|
|
|
|
|
|
+ if (['3', '9', '18','19'].includes(String(content.setting[i].contentType))) {
|
|
|
this.$set(content.setting[i], 'linkTitle', selectedCourse.dictLabel);
|
|
this.$set(content.setting[i], 'linkTitle', selectedCourse.dictLabel);
|
|
|
this.$set(content.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
this.$set(content.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
}
|
|
@@ -1830,7 +1830,7 @@ export default {
|
|
|
//响应式直接给链接的描述上值
|
|
//响应式直接给链接的描述上值
|
|
|
if (selectedVideo && content.type == 2 && content.videoId != null) {
|
|
if (selectedVideo && content.type == 2 && content.videoId != null) {
|
|
|
|
|
|
|
|
- if (['3', '9', '18'].includes(String(content.setting[i].contentType))) {
|
|
|
|
|
|
|
+ if (['3', '9', '18','19'].includes(String(content.setting[i].contentType))) {
|
|
|
this.$set(content.setting[i], 'linkDescribe', selectedVideo.dictLabel);
|
|
this.$set(content.setting[i], 'linkDescribe', selectedVideo.dictLabel);
|
|
|
}
|
|
}
|
|
|
if (content.setting[i].contentType == 4 || content.setting[i].contentType == 10 ) {
|
|
if (content.setting[i].contentType == 4 || content.setting[i].contentType == 10 ) {
|