|
|
@@ -455,7 +455,22 @@
|
|
|
</el-form-item>
|
|
|
</el-card>
|
|
|
</div>
|
|
|
-
|
|
|
+ <div v-if="item.contentType == 16 || item.contentType == 17">
|
|
|
+ <el-card class="box-card">
|
|
|
+ <el-form-item label="素材" >
|
|
|
+ <el-select :disabled="formType == 3" v-model="item.shareMaterialId"
|
|
|
+ placeholder="请选择素材" size="mini"
|
|
|
+ @change="getShareMaterialImgUrl(item)" >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in shareMaterialList"
|
|
|
+ :key="dict.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="dict.dictValue"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-card>
|
|
|
+ </div>
|
|
|
<div v-if="item.contentType == 21">
|
|
|
<el-card class="box-card">
|
|
|
<el-form-item label="短信模板" >
|
|
|
@@ -609,12 +624,14 @@ import PaginationMore from "../../../components/PaginationMore/index.vue";
|
|
|
import { getSmsTempList } from "@/api/company/companySmsTemp";
|
|
|
import { listPacket } from "@/api/qw/packet";
|
|
|
import { secondNameOptionList } from "@/api/qw/signArticle";
|
|
|
+import { shareMaterialOptions } from "@/api/his/shareMaterial";
|
|
|
|
|
|
export default {
|
|
|
name: "sopUserLogsInfoDetails",
|
|
|
components: {PaginationMore, userVideo, ImageUpload},
|
|
|
data() {
|
|
|
return {
|
|
|
+ shareMaterialList: [],
|
|
|
// 查询参数
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
|
@@ -736,6 +753,9 @@ export default {
|
|
|
},
|
|
|
|
|
|
created() {
|
|
|
+ shareMaterialOptions().then(res=>{
|
|
|
+ this.shareMaterialList = res.data;
|
|
|
+ });
|
|
|
secondNameOptionList().then(res=>{
|
|
|
this.signArticleList = res.data;
|
|
|
});
|
|
|
@@ -773,6 +793,15 @@ export default {
|
|
|
content.signArticleImgUrl = null;
|
|
|
}
|
|
|
},
|
|
|
+ getShareMaterialImgUrl(content){
|
|
|
+ const selectedShareMaterial = this.shareMaterialList.find(item => item.dictValue == content.shareMaterialId);
|
|
|
+ if (selectedShareMaterial) {
|
|
|
+ content.shareMaterialUrl = selectedShareMaterial.dictImgUrl; // 自动填充标题
|
|
|
+ } else {
|
|
|
+ // 若未找到对应直播间,清空标题和封面(可选)
|
|
|
+ content.shareMaterialUrl = null;
|
|
|
+ }
|
|
|
+ },
|
|
|
getRedPacketStatus(content){
|
|
|
const selectedRedPacket = this.packetList.find(item => item.id === content.redPacketId);
|
|
|
if (selectedRedPacket) {
|