|
@@ -394,7 +394,7 @@
|
|
|
</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 type="warning">选择的课程小节
|
|
|
即为卡片链接地址
|
|
即为卡片链接地址
|
|
|
</el-tag>
|
|
</el-tag>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -420,7 +420,7 @@
|
|
|
:width="150" :height="150"/>
|
|
:width="150" :height="150"/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="appid" prop="miniprogramAppid" v-show="false">
|
|
<el-form-item label="appid" prop="miniprogramAppid" v-show="false">
|
|
|
- <el-input v-model="setList.miniprogramAppid='wx73f85f8d62769119' " :disabled="formType == 3 || !roles.includes('edit_sop_temp_content')"
|
|
|
|
|
|
|
+ <el-input v-model="setList.miniprogramAppid" :disabled="formType == 3 || !roles.includes('edit_sop_temp_content')"
|
|
|
disabled/>
|
|
disabled/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="page路径" prop="miniprogramPage" v-show="setList.contentType == 10"
|
|
<el-form-item label="page路径" prop="miniprogramPage" v-show="setList.contentType == 10"
|
|
@@ -456,7 +456,7 @@
|
|
|
<ImageUpload :disabled="content.type==20" v-model="setList.miniprogramPicUrl" type="image" :num="10" :width="150" :height="150" />
|
|
<ImageUpload :disabled="content.type==20" v-model="setList.miniprogramPicUrl" type="image" :num="10" :width="150" :height="150" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="appid" prop="miniprogramAppid" v-show="false">
|
|
<el-form-item label="appid" prop="miniprogramAppid" v-show="false">
|
|
|
- <el-input v-model="setList.miniprogramAppid='wx503cf8ab31f83dd4' " disabled />
|
|
|
|
|
|
|
+ <el-input v-model="setList.miniprogramAppid" disabled />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="page路径" prop="miniprogramPage" v-show="false" label-width="100px" style="margin-left: -30px">
|
|
<el-form-item label="page路径" prop="miniprogramPage" v-show="false" label-width="100px" style="margin-left: -30px">
|
|
|
<el-input v-model="setList.miniprogramPage" placeholder="小程序消息打开后的路径" disabled />
|
|
<el-input v-model="setList.miniprogramPage" placeholder="小程序消息打开后的路径" disabled />
|
|
@@ -745,7 +745,7 @@
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/deep/ .el-badge__content.is-fixed {
|
|
|
|
|
|
|
+::v-deep .el-badge__content.is-fixed {
|
|
|
top: 10px !important;
|
|
top: 10px !important;
|
|
|
right: 0 !important;
|
|
right: 0 !important;
|
|
|
width: 8px;
|
|
width: 8px;
|
|
@@ -902,9 +902,6 @@ export default {
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
- getRoles().then(res => {
|
|
|
|
|
- this.roles = res.data;
|
|
|
|
|
- })
|
|
|
|
|
this.getDicts("sys_qwSopAi_contentType").then(response => {
|
|
this.getDicts("sys_qwSopAi_contentType").then(response => {
|
|
|
this.sysQwSopAiContentType = response.data;
|
|
this.sysQwSopAiContentType = response.data;
|
|
|
});
|
|
});
|
|
@@ -934,9 +931,6 @@ export default {
|
|
|
listToLiveNoEnd().then(response => {
|
|
listToLiveNoEnd().then(response => {
|
|
|
this.liveList = response.rows;
|
|
this.liveList = response.rows;
|
|
|
})
|
|
})
|
|
|
- listReward(this.queryParams1).then(response => {
|
|
|
|
|
- this.luckyBagList = response.rows;
|
|
|
|
|
- });
|
|
|
|
|
|
|
|
|
|
const id = this.$route.params && this.$route.params.id;
|
|
const id = this.$route.params && this.$route.params.id;
|
|
|
this.id = id;
|
|
this.id = id;
|
|
@@ -1342,7 +1336,7 @@ export default {
|
|
|
this.$message.error("时间不能为空")
|
|
this.$message.error("时间不能为空")
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (data.content[j].type == 20){
|
|
if (data.content[j].type == 20){
|
|
|
if (data.content[j].liveId == null || data.content[j].liveId == "") {
|
|
if (data.content[j].liveId == null || data.content[j].liveId == "") {
|
|
|
this.$message.error("请选择直播间")
|
|
this.$message.error("请选择直播间")
|
|
@@ -1821,9 +1815,9 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
handleContentTypeChange(content, index, countIndex, setIndex, item, fieldName, val) {
|
|
handleContentTypeChange(content, index, countIndex, setIndex, item, fieldName, val) {
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
//消息类别是直播间&&选择了发送直播间
|
|
//消息类别是直播间&&选择了发送直播间
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if(content.type == 20 && val == 12){
|
|
if(content.type == 20 && val == 12){
|
|
|
//如果选择了直播间 直接赋值
|
|
//如果选择了直播间 直接赋值
|
|
|
if(!!content.liveId){
|
|
if(!!content.liveId){
|
|
@@ -1859,6 +1853,18 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+ // 根据内容类别初始化关联的默认字段值
|
|
|
|
|
+ if (val == '3' || val == '9') {
|
|
|
|
|
+ if (content.type == 2) {
|
|
|
|
|
+ this.$set(content.setting[setIndex], 'isBindUrl', '1');
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (val == '4' || val == '10') {
|
|
|
|
|
+ this.$set(content.setting[setIndex], 'miniprogramAppid', 'wx73f85f8d62769119');
|
|
|
|
|
+ }
|
|
|
|
|
+ if (val == '12') {
|
|
|
|
|
+ this.$set(content.setting[setIndex], 'miniprogramAppid', 'wx503cf8ab31f83dd4');
|
|
|
|
|
+ }
|
|
|
if (content.videoId != null && content.type == 2) {
|
|
if (content.videoId != null && content.type == 2) {
|
|
|
// 查找选中的课节对应的 label
|
|
// 查找选中的课节对应的 label
|
|
|
const selectedVideo = this.videoList[countIndex].find(course => parseInt(course.dictValue) === content.videoId);
|
|
const selectedVideo = this.videoList[countIndex].find(course => parseInt(course.dictValue) === content.videoId);
|
|
@@ -2056,7 +2062,7 @@ export default {
|
|
|
// 取消按钮
|
|
// 取消按钮
|
|
|
cancel() {
|
|
cancel() {
|
|
|
this.$store.dispatch("tagsView/delView", this.$route);
|
|
this.$store.dispatch("tagsView/delView", this.$route);
|
|
|
- this.$router.replace('/qw/conversion/sopTemp')
|
|
|
|
|
|
|
+ this.$router.replace('/qw/sopTemp')
|
|
|
// this.reset();
|
|
// this.reset();
|
|
|
|
|
|
|
|
},
|
|
},
|
|
@@ -2135,6 +2141,14 @@ export default {
|
|
|
// delTagVisible: false,
|
|
// delTagVisible: false,
|
|
|
// delTagValue: ''
|
|
// delTagValue: ''
|
|
|
// })
|
|
// })
|
|
|
|
|
+ if (this.form.companyId) {
|
|
|
|
|
+ getRoles(this.form.companyId).then(res => {
|
|
|
|
|
+ this.roles = res.data;
|
|
|
|
|
+ });
|
|
|
|
|
+ listReward(this.queryParams1, this.form.companyId).then(response => {
|
|
|
|
|
+ this.luckyBagList = response.rows;
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
},
|
|
},
|