|
@@ -303,7 +303,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 === '17')) || (content.isOfficial==1 && ['5','6','7','8','9','17'].includes(item.dictValue))"
|
|
|
v-for="item in sysQwSopAiContentType">{{ item.dictLabel }}
|
|
v-for="item in sysQwSopAiContentType">{{ item.dictLabel }}
|
|
|
</el-radio>
|
|
</el-radio>
|
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
@@ -315,7 +315,7 @@
|
|
|
<el-radio
|
|
<el-radio
|
|
|
:key="item.dictValue"
|
|
:key="item.dictValue"
|
|
|
:label="item.dictValue"
|
|
:label="item.dictValue"
|
|
|
- :disabled="((content.type!=2 || form.sendType == 4) && (item.dictValue === '8' || item.dictValue === '9') || (content.isOfficial==1 && ['5','6','7','8','9'].includes(item.dictValue)))"
|
|
|
|
|
|
|
+ :disabled="((content.type!=2 || form.sendType == 4) && (item.dictValue === '8' || 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 }}
|
|
v-for="item in sysQwSopAiContentType">{{ item.dictLabel }}
|
|
|
</el-radio>
|
|
</el-radio>
|
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
@@ -327,7 +327,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 === '17')) || (content.isOfficial==1 && ['5','6','7','8','9','17'].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>
|
|
@@ -395,7 +395,7 @@
|
|
|
type="image" :num="1" :width="150" :height="150"/>
|
|
type="image" :num="1" :width="150" :height="150"/>
|
|
|
|
|
|
|
|
<div
|
|
<div
|
|
|
- v-if="(setList.contentType == 3 || item.contentType ==9) || (setList.contentType == 9 && content.type==2 )">
|
|
|
|
|
|
|
+ v-if="(setList.contentType == 3 || item.contentType ==9) || ((setList.contentType == 9 || setList.contentType == 17) && 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"
|
|
@@ -426,7 +426,8 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div v-if="content.type == 2 ">
|
|
<div v-if="content.type == 2 ">
|
|
|
<el-form-item label="链接地址:" label-width="100px">
|
|
<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-tag>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -951,6 +952,7 @@ import {listToLiveNoEnd} from "@/api/live/live";
|
|
|
import ImageUpload from "@/views/qw/sop/ImageUpload";
|
|
import ImageUpload from "@/views/qw/sop/ImageUpload";
|
|
|
import userVideo from "@/views/qw/userVideo/userVideo.vue";
|
|
import userVideo from "@/views/qw/userVideo/userVideo.vue";
|
|
|
import {listReward} from "@/api/qw/luckyBag";
|
|
import {listReward} from "@/api/qw/luckyBag";
|
|
|
|
|
+import { listFeishuAccountOptions } from '@/api/feishu/feishuAccount'
|
|
|
import RandomTextListEditor from "@/components/RandomTextListEditor/index.vue";
|
|
import RandomTextListEditor from "@/components/RandomTextListEditor/index.vue";
|
|
|
import {
|
|
import {
|
|
|
getRoles,
|
|
getRoles,
|
|
@@ -996,7 +998,7 @@ export default {
|
|
|
ruleList: [],
|
|
ruleList: [],
|
|
|
ids: [],
|
|
ids: [],
|
|
|
// startTimeRange: [],
|
|
// startTimeRange: [],
|
|
|
- courseTypeList: ['1','2', '4','5','6', '7','8','9','10','11'],
|
|
|
|
|
|
|
+ courseTypeList: ['1','2', '4','5','6', '7','8','9','10','11','17'],
|
|
|
sysFsSopWatchStatus: [],
|
|
sysFsSopWatchStatus: [],
|
|
|
//消息内容类型 企微版
|
|
//消息内容类型 企微版
|
|
|
sysQwSopContentType: [],
|
|
sysQwSopContentType: [],
|
|
@@ -1068,6 +1070,7 @@ export default {
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
liveList: [],
|
|
liveList: [],
|
|
|
|
|
+ feishuAccountOptions: [],
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -1077,6 +1080,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
|
|
+ this.loadFeishuAccountOptions();
|
|
|
getRoles().then(res => {
|
|
getRoles().then(res => {
|
|
|
this.roles = res.data;
|
|
this.roles = res.data;
|
|
|
})
|
|
})
|
|
@@ -1120,6 +1124,11 @@ export default {
|
|
|
this.handleUpdate(id);
|
|
this.handleUpdate(id);
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ loadFeishuAccountOptions() {
|
|
|
|
|
+ listFeishuAccountOptions().then(res => {
|
|
|
|
|
+ this.feishuAccountOptions = res.data || []
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
getLuckyBagStatus(content) {
|
|
getLuckyBagStatus(content) {
|
|
|
const selectedLuckyBag = this.luckyBagList.find(item => item.id === content.luckyBagId);
|
|
const selectedLuckyBag = this.luckyBagList.find(item => item.id === content.luckyBagId);
|
|
|
if (selectedLuckyBag) {
|
|
if (selectedLuckyBag) {
|
|
@@ -1575,15 +1584,15 @@ 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 ((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("链接标题不能为空")
|
|
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 ((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("链接描述不能为空")
|
|
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 ((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("链接图片不能为空")
|
|
this.$message.error("链接图片不能为空")
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
@@ -1654,15 +1663,15 @@ export default {
|
|
|
this.$message.error("图片不能为空")
|
|
this.$message.error("图片不能为空")
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
- if ((set.contentType == 3 || set.contentType == 9) && (set.linkTitle == null || set.linkTitle == "")) {
|
|
|
|
|
|
|
+ if ((set.contentType == 3 || set.contentType == 9 || set.contentType == 17) && (set.linkTitle == null || set.linkTitle == "")) {
|
|
|
this.$message.error("链接标题不能为空")
|
|
this.$message.error("链接标题不能为空")
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
- if ((set.contentType == 3 || set.contentType == 9) && (set.linkDescribe == null || set.linkDescribe == "")) {
|
|
|
|
|
|
|
+ if ((set.contentType == 3 || set.contentType == 9 || set.contentType == 17) && (set.linkDescribe == null || set.linkDescribe == "")) {
|
|
|
this.$message.error("链接描述不能为空")
|
|
this.$message.error("链接描述不能为空")
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
- if ((set.contentType == 3 || set.contentType == 9) && (set.linkImageUrl == null || set.linkImageUrl == "")) {
|
|
|
|
|
|
|
+ if ((set.contentType == 3 || set.contentType == 9 || set.contentType == 17) && (set.linkImageUrl == null || set.linkImageUrl == "")) {
|
|
|
this.$message.error("链接图片不能为空")
|
|
this.$message.error("链接图片不能为空")
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
@@ -1932,7 +1941,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 (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], 'linkTitle', selectedCourse.dictLabel);
|
|
|
this.$set(content.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
this.$set(content.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
}
|
|
@@ -2162,7 +2171,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 (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], 'linkTitle', selectedCourse.dictLabel);
|
|
|
this.$set(content.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
this.$set(content.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
}
|
|
@@ -2183,7 +2192,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 (content.setting[i].contentType == 3 || content.setting[i].contentType == 9 || content.setting[i].contentType == 17) {
|
|
|
this.$set(content.setting[i], 'linkDescribe', selectedVideo.dictLabel);
|
|
this.$set(content.setting[i], 'linkDescribe', selectedVideo.dictLabel);
|
|
|
|
|
|
|
|
if (this.projectFrom == 'sxjz' && selectedVideo.dictImgUrl) {
|
|
if (this.projectFrom == 'sxjz' && selectedVideo.dictImgUrl) {
|
|
@@ -2227,7 +2236,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 (content.setting[i].contentType == 3 || content.setting[i].contentType == 9 || content.setting[i].contentType == 17) {
|
|
|
this.$set(content.setting[i], 'linkDescribe', selectedVideo.dictLabel);
|
|
this.$set(content.setting[i], 'linkDescribe', selectedVideo.dictLabel);
|
|
|
|
|
|
|
|
if (this.projectFrom == 'sxjz' && selectedVideo.dictImgUrl) {
|
|
if (this.projectFrom == 'sxjz' && selectedVideo.dictImgUrl) {
|