|
@@ -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') || (content.isOfficial==1 && ['5','6','7','8','9'].includes(item.dictValue))"
|
|
|
|
|
|
|
+ :disabled="(content.type!=2 && (item.dictValue === '9' || item.dictValue == 18)) || (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,8 +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 == 9 && content.type==2 )">
|
|
|
|
|
|
|
+ <div v-if="setList.contentType == 3 || setList.contentType == 18 || (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"
|
|
@@ -550,7 +549,7 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
<div v-if="setList.contentType == 16 || setList.contentType == 17">
|
|
<div v-if="setList.contentType == 16 || setList.contentType == 17">
|
|
|
<el-card class="box-card">
|
|
<el-card class="box-card">
|
|
@@ -567,7 +566,7 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -847,7 +846,7 @@ export default {
|
|
|
ruleList: [],
|
|
ruleList: [],
|
|
|
ids: [],
|
|
ids: [],
|
|
|
startTimeRange: [],
|
|
startTimeRange: [],
|
|
|
- courseTypeList: ['1','2', '4','5','6', '7','8','9','10'],
|
|
|
|
|
|
|
+ courseTypeList: ['1','2', '4','5','6', '7','8','9','10','18'],
|
|
|
sysFsSopWatchStatus: [],
|
|
sysFsSopWatchStatus: [],
|
|
|
//消息内容类型 企微版
|
|
//消息内容类型 企微版
|
|
|
sysQwSopContentType: [],
|
|
sysQwSopContentType: [],
|
|
@@ -1344,19 +1343,24 @@ export default {
|
|
|
this.$message.error("图片不能为空")
|
|
this.$message.error("图片不能为空")
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
- if ((data.content[j].setting[k].contentType == 3 || data.content[j].setting[k].contentType == 9 || data.content[j].setting[k].contentType == 10) && (data.content[j].setting[k].linkTitle == null || data.content[j].setting[k].linkTitle == "")) {
|
|
|
|
|
|
|
+ if (['3','9','10','18'].includes(String(data.content[j].setting[k].contentType))
|
|
|
|
|
+ && (data.content[j].setting[k].linkTitle == null || data.content[j].setting[k].linkTitle == "")) {
|
|
|
this.$message.error("链接标题不能为空")
|
|
this.$message.error("链接标题不能为空")
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
- if ((data.content[j].setting[k].contentType == 3 || data.content[j].setting[k].contentType == 9 || data.content[j].setting[k].contentType == 10) && (data.content[j].setting[k].linkDescribe == null || data.content[j].setting[k].linkDescribe == "")) {
|
|
|
|
|
|
|
+ if (['3','9','10','18'].includes(String(data.content[j].setting[k].contentType))
|
|
|
|
|
+ && (data.content[j].setting[k].linkDescribe == null || data.content[j].setting[k].linkDescribe == "")) {
|
|
|
this.$message.error("链接描述不能为空")
|
|
this.$message.error("链接描述不能为空")
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
- if ((data.content[j].setting[k].contentType == 3 || data.content[j].setting[k].contentType == 9 || data.content[j].setting[k].contentType == 10) && (data.content[j].setting[k].linkImageUrl == null || data.content[j].setting[k].linkImageUrl == "")) {
|
|
|
|
|
|
|
+ if (['3','9','10','18'].includes(String(data.content[j].setting[k].contentType))
|
|
|
|
|
+ && (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].type == 1 && (data.content[j].setting[k].linkUrl == null || data.content[j].setting[k].linkUrl == "")) {
|
|
|
|
|
|
|
+ if ((data.content[j].setting[k].contentType == 3 || data.content[j].setting[k].contentType == '18')
|
|
|
|
|
+ && data.content[j].setting[k].type == 1
|
|
|
|
|
+ && (data.content[j].setting[k].linkUrl == null || data.content[j].setting[k].linkUrl == "")) {
|
|
|
this.$message.error("链接地址不能为空")
|
|
this.$message.error("链接地址不能为空")
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
@@ -1661,7 +1665,7 @@ export default {
|
|
|
if (selectedCourse && content.type == 2 && content.courseId != null) {
|
|
if (selectedCourse && content.type == 2 && content.courseId != null) {
|
|
|
//响应式直接给链接的标题/封面上值
|
|
//响应式直接给链接的标题/封面上值
|
|
|
|
|
|
|
|
- if (content.setting[i].contentType == 3 || content.setting[i].contentType == 9) {
|
|
|
|
|
|
|
+ if (['3', '9', '18'].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);
|
|
|
}
|
|
}
|
|
@@ -1805,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 (content.setting[i].contentType == 3 || content.setting[i].contentType == 9) {
|
|
|
|
|
|
|
+ if (['3', '9', '18'].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);
|
|
|
}
|
|
}
|
|
@@ -1826,7 +1830,7 @@ export default {
|
|
|
//响应式直接给链接的描述上值
|
|
//响应式直接给链接的描述上值
|
|
|
if (selectedVideo && content.type == 2 && content.videoId != null) {
|
|
if (selectedVideo && content.type == 2 && content.videoId != null) {
|
|
|
|
|
|
|
|
- if (content.setting[i].contentType == 3 || content.setting[i].contentType == 9) {
|
|
|
|
|
|
|
+ if (['3', '9', '18'].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 ) {
|