|
@@ -353,7 +353,7 @@
|
|
|
</el-card>
|
|
|
</div>
|
|
|
|
|
|
- <div v-if="setList.contentType == 4">
|
|
|
+ <div v-if="setList.contentType == 4 || setList.contentType == 10">
|
|
|
<el-card class="box-card">
|
|
|
<el-form-item label="标题" prop="miniprogramTitle">
|
|
|
<el-input v-model="setList.miniprogramTitle"
|
|
@@ -374,11 +374,11 @@
|
|
|
<el-input v-model="setList.miniprogramAppid='wx73f85f8d62769119' " :disabled="formType == 3 || !roles.includes('edit_sop_temp_content')"
|
|
|
disabled/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="page路径" prop="miniprogramPage" v-show="false"
|
|
|
+ <el-form-item label="page路径" prop="miniprogramPage" v-show="setList.contentType == 10"
|
|
|
label-width="100px" style="margin-left: -30px">
|
|
|
<el-input v-model="setList.miniprogramPage"
|
|
|
:disabled="formType == 3 || !roles.includes('edit_sop_temp_content')"
|
|
|
- placeholder="小程序消息打开后的路径" disabled/>
|
|
|
+ placeholder="小程序消息打开后的路径" type="textarea" :rows="3" />
|
|
|
</el-form-item>
|
|
|
</el-card>
|
|
|
</div>
|
|
@@ -475,31 +475,6 @@
|
|
|
|
|
|
</el-card>
|
|
|
</div>
|
|
|
- <div v-if="setList.contentType == 10 ">
|
|
|
- <el-card class="box-card">
|
|
|
- <el-form-item label="链接标题:" label-width="100px" required>
|
|
|
- <el-input :disabled="formType == 3 || !roles.includes('edit_sop_temp_content')" v-model="setList.linkTitle"
|
|
|
- placeholder="请输入链接标题"
|
|
|
- style="width: 90%;"/>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="链接描述:" label-width="100px" required>
|
|
|
- <el-input :disabled="formType == 3 || !roles.includes('edit_sop_temp_content')" type="textarea" :rows="3"
|
|
|
- v-model="setList.linkDescribe"
|
|
|
- placeholder="请输入链接描述"
|
|
|
- style="width: 90%;margin-top: 1%;"/>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="链接封面:" label-width="100px" required>
|
|
|
- <ImageUpload :disabled="formType == 3 || !roles.includes('edit_sop_temp_content')" v-model="setList.linkImageUrl"
|
|
|
- type="image" :num="1"
|
|
|
- :file-size="2" :width="150" :height="150"
|
|
|
- style="margin-top: 1%;"/>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="链接地址:" label-width="100px">
|
|
|
- <el-tag type="warning"> 链接地址自动生成
|
|
|
- </el-tag>
|
|
|
- </el-form-item>
|
|
|
- </el-card>
|
|
|
- </div>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="添加短链"
|
|
|
v-if="content.type == 2 && setList.contentType == 1 ">
|
|
@@ -739,7 +714,7 @@ export default {
|
|
|
ruleList: [],
|
|
|
ids: [],
|
|
|
startTimeRange: [],
|
|
|
- courseTypeList: ['1','3', '4', '9'],
|
|
|
+ courseTypeList: ['1','3', '4', '9','10'],
|
|
|
sysFsSopWatchStatus: [],
|
|
|
//消息内容类型 企微版
|
|
|
sysQwSopContentType: [],
|
|
@@ -1141,15 +1116,20 @@ export default {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- if (data.content[j].setting[k].contentType == 4 && (data.content[j].setting[k].miniprogramTitle == null || data.content[j].setting[k].miniprogramTitle == "")) {
|
|
|
+ if ((data.content[j].setting[k].contentType == 4 || data.content[j].setting[k].contentType == 10) && (data.content[j].setting[k].miniprogramTitle == null || data.content[j].setting[k].miniprogramTitle == "")) {
|
|
|
this.$message.error("小程序消息标题不能为空")
|
|
|
return false;
|
|
|
}
|
|
|
- if (data.content[j].setting[k].contentType == 4 && data.content[j].isOfficial !== '1' && (data.content[j].setting[k].miniprogramPicUrl == null || data.content[j].setting[k].miniprogramPicUrl == "")) {
|
|
|
+ if ((data.content[j].setting[k].contentType == 4 || data.content[j].setting[k].contentType == 10) && data.content[j].isOfficial !== '1' && (data.content[j].setting[k].miniprogramPicUrl == null || data.content[j].setting[k].miniprogramPicUrl == "")) {
|
|
|
this.$message.error("小程序封面地址不能为空")
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ if (data.content[j].setting[k].contentType == 10 && data.content[j].isOfficial !== '1' && (data.content[j].setting[k].miniprogramPage == null || data.content[j].setting[k].miniprogramPage == "")) {
|
|
|
+ this.$message.error("小程序page地址不能为空")
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
if (data.content[j].setting[k].contentType == 5 && (data.content[j].setting[k].fileUrl == null || data.content[j].setting[k].fileUrl == "")) {
|
|
|
this.$message.error("文件不能为空")
|
|
|
return false;
|
|
@@ -1375,7 +1355,7 @@ export default {
|
|
|
this.$set(content.setting[i], 'linkTitle', selectedCourse.dictLabel);
|
|
|
this.$set(content.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
|
- if (content.setting[i].contentType == 4) {
|
|
|
+ if (content.setting[i].contentType == 4 || content.setting[i].contentType == 10) {
|
|
|
this.$set(content.setting[i], 'miniprogramPicUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
|
|
|
@@ -1487,8 +1467,7 @@ export default {
|
|
|
this.$set(content.setting[i], 'linkTitle', selectedCourse.dictLabel);
|
|
|
this.$set(content.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
|
- if (content.setting[i].contentType == 4 && (content.isOfficial == '0' || content.isOfficial == null)) {
|
|
|
- console.log(content.isOfficial);
|
|
|
+ if ((content.setting[i].contentType == 4 || content.setting[i].contentType == 10) && (content.isOfficial == '0' || content.isOfficial == null)) {
|
|
|
this.$set(content.setting[i], 'miniprogramPicUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
|
|
|
@@ -1508,7 +1487,7 @@ export default {
|
|
|
if (content.setting[i].contentType == 3 || content.setting[i].contentType == 9) {
|
|
|
this.$set(content.setting[i], 'linkDescribe', selectedVideo.dictLabel);
|
|
|
}
|
|
|
- if (content.setting[i].contentType == 4) {
|
|
|
+ if (content.setting[i].contentType == 4 || content.setting[i].contentType == 10 ) {
|
|
|
this.$set(content.setting[i], 'miniprogramTitle', this.truncateTextByByteLength(selectedVideo.dictLabel, 60));
|
|
|
}
|
|
|
}
|
|
@@ -1542,7 +1521,7 @@ export default {
|
|
|
if (content.setting[i].contentType == 3 || content.setting[i].contentType == 9) {
|
|
|
this.$set(content.setting[i], 'linkDescribe', selectedVideo.dictLabel);
|
|
|
}
|
|
|
- if (content.setting[i].contentType == 4) {
|
|
|
+ if (content.setting[i].contentType == 4 || content.setting[i].contentType == 10) {
|
|
|
this.$set(content.setting[i], 'miniprogramTitle', this.truncateTextByByteLength(selectedVideo.dictLabel, 60));
|
|
|
}
|
|
|
|