|
|
@@ -309,7 +309,7 @@
|
|
|
|
|
|
<ImageUpload v-if="item.contentType == 2 " v-model="item.imgUrl" type="image" :num="1" :width="150" :height="150" />
|
|
|
|
|
|
- <div v-if="item.contentType == 3 || item.contentType ==9 ">
|
|
|
+ <div v-if="item.contentType == 3 || item.contentType ==9 || item.contentType ==18">
|
|
|
<el-card class="box-card">
|
|
|
<el-form-item label="链接标题:" label-width="100px">
|
|
|
<el-input v-model="item.linkTitle" placeholder="请输入链接标题" style="width: 90%;"/>
|
|
|
@@ -454,7 +454,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-card>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
<div v-if="item.contentType == 16 || item.contentType == 17">
|
|
|
<el-card class="box-card">
|
|
|
<el-form-item label="素材" >
|
|
|
@@ -1031,7 +1031,7 @@ export default {
|
|
|
for (let i = 0; i < this.setting.length; i++) {
|
|
|
//响应式直接给链接的标题/封面上值
|
|
|
if (selectedCourse && this.msgForm.courseId != null) {
|
|
|
- if ( this.setting[i].contentType == 3 || this.setting[i].contentType == 9 ){
|
|
|
+ if ( this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18 ){
|
|
|
this.$set(this.setting[i], 'linkTitle', selectedCourse.dictLabel);
|
|
|
this.$set(this.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
|
@@ -1057,7 +1057,7 @@ export default {
|
|
|
for (let i = 0; i < this.setting.length; i++) {
|
|
|
//响应式直接给链接的描述上值
|
|
|
if (selectedVideo && this.msgForm.videoId != null) {
|
|
|
- if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9 ){
|
|
|
+ if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9 || this.setting[i].contentType ==18 ){
|
|
|
this.$set(this.setting[i], 'linkDescribe', selectedVideo.dictLabel);
|
|
|
}
|
|
|
|
|
|
@@ -1272,7 +1272,7 @@ export default {
|
|
|
//响应式直接给链接的标题/封面上值
|
|
|
if (selectedCourse && this.msgForm.courseId != null) {
|
|
|
|
|
|
- if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9){
|
|
|
+ if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18){
|
|
|
this.$set(this.setting[i], 'linkTitle', selectedCourse.dictLabel);
|
|
|
this.$set(this.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
|
@@ -1294,7 +1294,7 @@ export default {
|
|
|
//响应式直接给链接的描述上值
|
|
|
if (selectedVideo && this.msgForm.videoId != null) {
|
|
|
|
|
|
- if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9){
|
|
|
+ if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18){
|
|
|
this.$set(this.setting[i], 'linkDescribe', selectedVideo.dictLabel);
|
|
|
}
|
|
|
if (this.setting[i].contentType == 4){
|
|
|
@@ -1443,16 +1443,16 @@ export default {
|
|
|
if (this.setting[i].contentType == 2 && (this.setting[i].imgUrl == null || this.setting[i].imgUrl == "")) {
|
|
|
return this.$message.error("图片不能为空")
|
|
|
}
|
|
|
- if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9 ) && (this.setting[i].linkTitle == null || this.setting[i].linkTitle == "")) {
|
|
|
+ if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18 ) && (this.setting[i].linkTitle == null || this.setting[i].linkTitle == "")) {
|
|
|
return this.$message.error("链接标题不能为空")
|
|
|
}
|
|
|
- if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9 ) && (this.setting[i].linkDescribe == null || this.setting[i].linkDescribe == "")) {
|
|
|
+ if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18 ) && (this.setting[i].linkDescribe == null || this.setting[i].linkDescribe == "")) {
|
|
|
return this.$message.error("链接描述不能为空")
|
|
|
}
|
|
|
- if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9 ) && (this.setting[i].linkImageUrl == null || this.setting[i].linkImageUrl == "")) {
|
|
|
+ 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].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].contentType == 18 )&& this.setting[i].type == 1 && (this.setting[i].linkUrl == null || this.setting[i].linkUrl == "")) {
|
|
|
return this.$message.error("链接地址不能为空")
|
|
|
}
|
|
|
|