|
|
@@ -267,7 +267,7 @@
|
|
|
<el-radio
|
|
|
:key="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 === '17')) || (content.isOfficial==1 && ['5','6','7','8','9','17'].includes(item.dictValue))"
|
|
|
v-for="item in sysQwSopAiContentType">{{ item.dictLabel }}
|
|
|
</el-radio>
|
|
|
</el-radio-group>
|
|
|
@@ -279,7 +279,7 @@
|
|
|
<el-radio
|
|
|
:key="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 === '17')) || (content.isOfficial==1 && ['5','6','7','8','9','17'].includes(item.dictValue))"
|
|
|
v-for="item in sysQwSopAiContentType" v-if="setIndex == 0 ? courseTypeList.includes(item.dictValue) : !courseTypeList.includes(item.dictValue)">{{ item.dictLabel }}
|
|
|
</el-radio>
|
|
|
</el-radio-group>
|
|
|
@@ -309,7 +309,7 @@
|
|
|
type="image" :num="1" :width="150" :height="150"/>
|
|
|
|
|
|
<div
|
|
|
- v-if="setList.contentType == 3 || (setList.contentType == 9 && content.type==2 )">
|
|
|
+ v-if="setList.contentType == 3 || ((setList.contentType == 9 || setList.contentType == 17) && content.type==2 )">
|
|
|
<el-card class="box-card">
|
|
|
<el-form-item label="链接标题:" label-width="100px" required>
|
|
|
<el-input :disabled="formType == 3 || (form.sendType == 11 && contentIndex != 0 && setIndex == 0)" v-model="setList.linkTitle"
|
|
|
@@ -340,7 +340,8 @@
|
|
|
</div>
|
|
|
<div v-if="content.type == 2 ">
|
|
|
<el-form-item label="链接地址:" label-width="100px">
|
|
|
- <el-tag type="warning" v-model="setList.isBindUrl = 1 ">选择的课程小节
|
|
|
+ <el-tag v-if="setList.contentType == 17" type="info">飞书看课链接由服务端根据所选课程、课节自动生成</el-tag>
|
|
|
+ <el-tag v-else type="warning" v-model="setList.isBindUrl = 1 ">选择的课程小节
|
|
|
即为卡片链接地址
|
|
|
</el-tag>
|
|
|
</el-form-item>
|
|
|
@@ -738,7 +739,7 @@ export default {
|
|
|
dayList: [],
|
|
|
ruleList: [],
|
|
|
ids: [],
|
|
|
- courseTypeList: ['1','3', '4', '9'],
|
|
|
+ courseTypeList: ['1','3', '4', '9', '17'],
|
|
|
sysFsSopWatchStatus: [],
|
|
|
//消息内容类型 企微版
|
|
|
sysQwSopContentType: [],
|
|
|
@@ -1114,15 +1115,15 @@ export default {
|
|
|
this.$message.error("图片不能为空")
|
|
|
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 ((data.content[j].setting[k].contentType == 3 || data.content[j].setting[k].contentType == 9 || data.content[j].setting[k].contentType == 17 || data.content[j].setting[k].contentType == 10) && (data.content[j].setting[k].linkTitle == null || data.content[j].setting[k].linkTitle == "")) {
|
|
|
this.$message.error("链接标题不能为空")
|
|
|
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 ((data.content[j].setting[k].contentType == 3 || data.content[j].setting[k].contentType == 9 || data.content[j].setting[k].contentType == 17 || data.content[j].setting[k].contentType == 10) && (data.content[j].setting[k].linkDescribe == null || data.content[j].setting[k].linkDescribe == "")) {
|
|
|
this.$message.error("链接描述不能为空")
|
|
|
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 ((data.content[j].setting[k].contentType == 3 || data.content[j].setting[k].contentType == 9 || data.content[j].setting[k].contentType == 17 || data.content[j].setting[k].contentType == 10) && (data.content[j].setting[k].linkImageUrl == null || data.content[j].setting[k].linkImageUrl == "")) {
|
|
|
this.$message.error("链接图片不能为空")
|
|
|
return false;
|
|
|
}
|
|
|
@@ -1355,7 +1356,7 @@ export default {
|
|
|
if (selectedCourse && content.type == 2 && content.courseId != null) {
|
|
|
//响应式直接给链接的标题/封面上值
|
|
|
|
|
|
- if (content.setting[i].contentType == 3 || content.setting[i].contentType == 9) {
|
|
|
+ if (content.setting[i].contentType == 3 || content.setting[i].contentType == 9 || content.setting[i].contentType == 17) {
|
|
|
this.$set(content.setting[i], 'linkTitle', selectedCourse.dictLabel);
|
|
|
this.$set(content.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
|
@@ -1467,7 +1468,7 @@ export default {
|
|
|
for (let i = 0; i < content.setting.length; i++) {
|
|
|
//响应式直接给链接的标题/封面上值
|
|
|
if (selectedCourse && content.type == 2 && content.courseId != null) {
|
|
|
- if (content.setting[i].contentType == 3 || content.setting[i].contentType == 9) {
|
|
|
+ if (content.setting[i].contentType == 3 || content.setting[i].contentType == 9 || content.setting[i].contentType == 17) {
|
|
|
this.$set(content.setting[i], 'linkTitle', selectedCourse.dictLabel);
|
|
|
this.$set(content.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
|
@@ -1489,7 +1490,7 @@ export default {
|
|
|
//响应式直接给链接的描述上值
|
|
|
if (selectedVideo && content.type == 2 && content.videoId != null) {
|
|
|
|
|
|
- if (content.setting[i].contentType == 3 || content.setting[i].contentType == 9) {
|
|
|
+ if (content.setting[i].contentType == 3 || content.setting[i].contentType == 9 || content.setting[i].contentType == 17) {
|
|
|
this.$set(content.setting[i], 'linkDescribe', selectedVideo.dictLabel);
|
|
|
}
|
|
|
if (content.setting[i].contentType == 4) {
|
|
|
@@ -1523,7 +1524,7 @@ export default {
|
|
|
//如果是链接的才上
|
|
|
if (selectedVideo && content.type == 2 && content.videoId != null) {
|
|
|
|
|
|
- if (content.setting[i].contentType == 3 || content.setting[i].contentType == 9) {
|
|
|
+ if (content.setting[i].contentType == 3 || content.setting[i].contentType == 9 || content.setting[i].contentType == 17) {
|
|
|
this.$set(content.setting[i], 'linkDescribe', selectedVideo.dictLabel);
|
|
|
}
|
|
|
if (content.setting[i].contentType == 4) {
|