|
|
@@ -53,7 +53,7 @@
|
|
|
<el-form :model="item" label-width="70px">
|
|
|
<el-form-item label="内容类别" style="margin: 2%">
|
|
|
<el-radio-group v-model="item.contentType">
|
|
|
- <el-radio :label="item.dictValue" v-for="item in sysQwSopAiContentType" @change="handleContentTypeChange()">{{item.dictLabel}}</el-radio>
|
|
|
+ <el-radio :label="item.dictValue" v-for="item in filteredAiContentTypes" @change="handleContentTypeChange()">{{item.dictLabel}}</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="内容" style="margin-bottom: 2%" >
|
|
|
@@ -441,6 +441,14 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
|
|
|
+ computed: {
|
|
|
+ filteredAiContentTypes() {
|
|
|
+ if (!this.msgForm.courseId) {
|
|
|
+ return this.sysQwSopAiContentType.filter(item => item.dictValue != '18');
|
|
|
+ }
|
|
|
+ return this.sysQwSopAiContentType;
|
|
|
+ }
|
|
|
+ },
|
|
|
created() {
|
|
|
this.getDicts("sys_qwSopAi_contentType").then(response => {
|
|
|
this.sysQwSopAiContentType = response.data;
|
|
|
@@ -903,7 +911,7 @@ export default {
|
|
|
if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9 || this.setting[i].contentType == 18 ) && (this.setting[i].linkImageUrl == null || this.setting[i].linkImageUrl == "")) {
|
|
|
return this.$message.error("链接图片不能为空")
|
|
|
}
|
|
|
- if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9 || this.setting[i].contentType == 18 )&& this.setting[i].type == 1 && (this.setting[i].linkUrl == null || this.setting[i].linkUrl == "")) {
|
|
|
+ if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9) && this.setting[i].type == 1 && (this.setting[i].linkUrl == null || this.setting[i].linkUrl == "")) {
|
|
|
return this.$message.error("链接地址不能为空")
|
|
|
}
|
|
|
|