Commit dba268ab authored by Mac's avatar Mac

1

parent 7cba0660
...@@ -196,10 +196,23 @@ ...@@ -196,10 +196,23 @@
color: #c94052; color: #c94052;
} }
.tougao_ImgList{ .tougao_ImgList{
width: 150px; width: 130px;
height: 150px; height: 130px;
margin: 0 5px 10px; margin: 0 5px 10px;
} }
.tougaohtml td{
padding: 5px 10px ;
border:1px solid #DDD;
}
.tougaohtml table{
border-collapse: collapse;
}
.left_width{
width: 80px;
}
</style> </style>
<template> <template>
<q-dialog <q-dialog
...@@ -270,26 +283,30 @@ ...@@ -270,26 +283,30 @@
<el-tag>写新图文</el-tag> <el-tag>写新图文</el-tag>
</div> </div>
<div style="margin:20px 0;display:flex;"> <div style="margin:20px 0;display:flex;">
<div style="flex-shrink:0;">标题:</div> <div style="flex-shrink:0;" class="left_width">标题:</div>
<div class="backOtherInfo" v-if="setingObj.DataObj"> <div class="backOtherInfo" v-if="setingObj.DataObj">
{{ setingObj.DataObj.Title }} {{ setingObj.DataObj.Title }}
</div> </div>
</div> </div>
<div> <div style="display: flex;">
<span>作者:</span> <div class="left_width">作者:</div>
<span class="backOtherInfo" v-if="setingObj.DataObj"> <span class="backOtherInfo" v-if="setingObj.DataObj">
{{ setingObj.DataObj.Author }} {{ setingObj.DataObj.Author }}
</span> </span>
</div> </div>
<div style="margin:20px 0;" v-html="setingObj.DataObj.Content"></div> <div style="display: flex;margin:20px 0;width: 100%;">
<div style="flex-shrink:0" class="left_width">图文内容:</div>
<div class="tougaohtml" style="border:1px solid rgb(235, 235, 235);padding: 10px;flex:1" v-html="setingObj.DataObj.Content"></div>
</div>
<div style="margin-top:20px;display:flex;"> <div style="margin-top:20px;display:flex;">
<div style="margin-bottom:10px;">封面图:</div> <div style="margin-bottom:10px;" class="left_width">封面图:</div>
<div class="tougao_ImgList" style="width: 210px;height: 90px;"> <div class="tougao_ImgList" style="width: 210px;height: 90px;">
<el-image v-if="setingObj.DataObj.CoverImagePath && setingObj.DataObj.CoverImagePath!=''" style="width: 100%; height: 100%" :src="setingObj.DataObj.CoverImagePath" fit="cover"></el-image> <el-image v-if="setingObj.DataObj.CoverImagePath && setingObj.DataObj.CoverImagePath!=''" style="width: 100%; height: 100%" :src="setingObj.DataObj.CoverImagePath" fit="cover"></el-image>
</div> </div>
</div> </div>
<div style="margin-top:20px;display:flex;"> <div style="margin-top:20px;display:flex;">
<div style="margin-bottom:10px;flex-shrink:0;width:60px;">描述:</div> <div style="margin-bottom:10px;flex-shrink:0;width:60px;" class="left_width">描述:</div>
<div>{{setingObj.DataObj.Description}}</div> <div>{{setingObj.DataObj.Description}}</div>
</div> </div>
</template> </template>
...@@ -297,7 +314,11 @@ ...@@ -297,7 +314,11 @@
<div> <div>
<el-tag>文本消息</el-tag> <el-tag>文本消息</el-tag>
</div> </div>
<div style="margin-top:20px;" v-html="setingObj.DataObj.Content"></div> <div style="display: flex;margin-top: 20px;">
<div class="left_width">文本内容:</div>
<div v-html="setingObj.DataObj.Content"></div>
</div>
</template> </template>
<template v-if="setingObj.DataObj.Type==4"> <template v-if="setingObj.DataObj.Type==4">
<div> <div>
...@@ -309,9 +330,13 @@ ...@@ -309,9 +330,13 @@
{{ setingObj.DataObj.Title }} {{ setingObj.DataObj.Title }}
</div> </div>
</div> </div>
<div> <div style="display:flex;">
{{setingObj.DataObj.Description}} <div style="flex-shrink:0">推荐语:</div>
<div class="backOtherInfo" v-if="setingObj.DataObj">
{{ setingObj.DataObj.Description }}
</div>
</div> </div>
<div style="margin-top:20px;width:300px;" v-if="setingObj.DataObj.VideoMediumPath"> <div style="margin-top:20px;width:300px;" v-if="setingObj.DataObj.VideoMediumPath">
<audio :src="setingObj.DataObj.VideoMediumPath" controls="controls"></audio> <audio :src="setingObj.DataObj.VideoMediumPath" controls="controls"></audio>
</div> </div>
...@@ -320,20 +345,25 @@ ...@@ -320,20 +345,25 @@
<div> <div>
<el-tag>图片消息</el-tag> <el-tag>图片消息</el-tag>
</div> </div>
<div style="margin:20px 0;"> <div style="margin:20px 0;display:flex;">
{{setingObj.DataObj.Description}} <div style="flex-shrink:0" class="left_width">推荐语:</div>
</div> <div class="backOtherInfo" v-if="setingObj.DataObj" style="margin-left: 5px;">
<div style="display:flex;"> {{ setingObj.DataObj.Description }}
<div class="tougao_ImgList" v-for="(x,y) in setingObj.DataObj.ImageList" :key='y'>
<el-image style="width: 100%; height: 100%" :src="x.ImageUrl" fit="cover"></el-image>
</div>
</div>
<div style="margin-top:20px;display:flex;">
<div style="margin-bottom:10px;">封面图:</div>
<div class="tougao_ImgList">
<el-image style="width: 100%; height: 100%" :src="setingObj.DataObj.CoverImagePath" fit="cover"></el-image>
</div> </div>
</div> </div>
<!-- <div style="margin:20px 0;">
{{setingObj.DataObj.Description}}
</div> -->
<div style="display: flex;">
<div style="flex-shrink:0" class="left_width">图片列表:</div>
<div style="display:flex;flex-wrap: wrap;">
<div class="tougao_ImgList" v-for="(x,y) in setingObj.DataObj.ImageList" :key='y'>
<el-image style="width: 100%; height: 100%" :src="x.ImageUrl" fit="cover"></el-image>
</div>
</div>
</div>
</template> </template>
</div> </div>
</div> </div>
......
...@@ -129,15 +129,7 @@ ...@@ -129,15 +129,7 @@
<div v-if="data && data.Id && data.Id>0"> <div v-if="data && data.Id && data.Id>0">
<div class="Period-rules"> <div class="Period-rules">
<div class="Period_Spreate">
<div class="Period-rule-title">平台类型</div>
<div>
<span>
{{data.Type}}
</span>
</div>
</div>
<div class="Period_Spreate"> <div class="Period_Spreate">
<div class="Period-rule-title"> <div class="Period-rule-title">
平台名称 平台名称
...@@ -146,8 +138,6 @@ ...@@ -146,8 +138,6 @@
{{data.Name}} {{data.Name}}
</div> </div>
</div> </div>
</div>
<div class="Period-rules">
<div class="Period_Spreate"> <div class="Period_Spreate">
<div class="Period-rule-title"> <div class="Period-rule-title">
AppId AppId
...@@ -157,6 +147,9 @@ ...@@ -157,6 +147,9 @@
</div> </div>
</div> </div>
</div>
<div class="Period-rules">
<div class="Period_Spreate"> <div class="Period_Spreate">
<div class="Period-rule-title"> <div class="Period-rule-title">
App秘钥 App秘钥
...@@ -166,10 +159,6 @@ ...@@ -166,10 +159,6 @@
</div> </div>
</div> </div>
</div>
<div class="Period-rules">
<div class="Period_Spreate"> <div class="Period_Spreate">
<div class="Period-rule-title"> <div class="Period-rule-title">
开启状态 开启状态
...@@ -178,8 +167,12 @@ ...@@ -178,8 +167,12 @@
{{data.Enable==1?'已开启':'未开启'}} {{data.Enable==1?'已开启':'未开启'}}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div v-else style="width: 100%;height: 100px;line-height: 100px;text-align: center;"> <div v-else style="width: 100%;height: 100px;line-height: 100px;text-align: center;">
暂无任何配置 暂无任何配置
......
...@@ -274,6 +274,7 @@ ...@@ -274,6 +274,7 @@
EndTime: "", //结束时间 EndTime: "", //结束时间
Conditon: 1, Conditon: 1,
ReceiptType: "", //单据类型 ReceiptType: "", //单据类型
RelationId :0,
}, },
tabCheck: "1", tabCheck: "1",
pageCount: 0, pageCount: 0,
...@@ -297,8 +298,12 @@ ...@@ -297,8 +298,12 @@
this.tabCheck = this.$route.query.tab; this.tabCheck = this.$route.query.tab;
} }
if (this.$route.query.ReceiptType) { if (this.$route.query.ReceiptType) {
this.msg.ReceiptType = this.$route.query.ReceiptType; this.msg.ReceiptType = Number(this.$route.query.ReceiptType);
} }
if (this.$route.query.RelationId) {
this.msg.RelationId = this.$route.query.RelationId;
}
if (this.$route.query.id) { if (this.$route.query.id) {
this.msg.Id = this.$route.query.id; this.msg.Id = this.$route.query.id;
......
...@@ -96,6 +96,8 @@ ...@@ -96,6 +96,8 @@
<contributionUE :config="config" ref="UE_cb" @input="getcontnet" v-model="addMsg.Content"> <contributionUE :config="config" ref="UE_cb" @input="getcontnet" v-model="addMsg.Content">
</contributionUE> </contributionUE>
</div> </div>
<span v-if='addMsg.Type==2' style="font-size: 11px;color: red;">*注:小程序和超链接会额外的占用字符</span>
<div style="display: flex;align-items: flex-start;margin-top: 20px;" v-if="addMsg.Type == 1"> <div style="display: flex;align-items: flex-start;margin-top: 20px;" v-if="addMsg.Type == 1">
<div v-if=" addMsg.CoverImageId==0" <div v-if=" addMsg.CoverImageId==0"
style="width:210px;height:90px;border:2px dashed #ebebeb;display: flex;align-items: center;justify-content: center;flex-direction: column;" style="width:210px;height:90px;border:2px dashed #ebebeb;display: flex;align-items: center;justify-content: center;flex-direction: column;"
...@@ -125,8 +127,8 @@ ...@@ -125,8 +127,8 @@
<!-- 图片 --> <!-- 图片 -->
<div v-if="addMsg.Type == 5"> <div v-if="addMsg.Type == 5">
<q-input clearable filled v-model="addMsg.Description" label="可以输入140字以内的推荐语(选填)" maxlength="140" <q-input clearable filled v-model="addMsg.Description" label="可以输入140字以内的推荐语(选填)" maxlength="140"
counter type="textarea" bottom-slots style="width: 100%;" /> counter type="textarea" bottom-slots style="width: 100%;margin-top: 20px;" />
<div style="display: flex;flex-wrap: wrap;width: 100%;border-bottom: 1px solid #d7d7d7;"> <div style="display: flex;flex-wrap: wrap;width: 100%;">
<draggable v-model="imgsList" style="display: flex;flex-wrap: wrap;width: 100%;"> <draggable v-model="imgsList" style="display: flex;flex-wrap: wrap;width: 100%;">
<div style="width: 178px;height: 178px;margin: 0 5px 10px;position: relative;cursor: grab" <div style="width: 178px;height: 178px;margin: 0 5px 10px;position: relative;cursor: grab"
v-for="(x,y) in imgsList" :key='y'> v-for="(x,y) in imgsList" :key='y'>
...@@ -141,14 +143,14 @@ ...@@ -141,14 +143,14 @@
添加图片 添加图片
</div> </div>
</div> </div>
<div>封面预览</div> <!-- <div>封面预览</div>
<div style="margin-top: 20px;display: flex;align-items: flex-start;"> <div style="margin-top: 20px;display: flex;align-items: flex-start;">
<div style="width:210px;height:90px"> <div style="width:210px;height:90px">
<el-image style="width: 100%; height: 100%" :src="coverimg" fit="cover"></el-image> <el-image style="width: 100%; height: 100%" :src="coverimg" fit="cover"></el-image>
</div> </div>
<q-btn color="accent" class="q-mr-md" label="上传封面图" @click="getChoice(0),iscover=true" size="sm" <q-btn color="accent" class="q-mr-md" label="上传封面图" @click="getChoice(0),iscover=true" size="sm"
style="margin-left: 30px;" /> style="margin-left: 30px;" />
</div> </div> -->
</div> </div>
<!-- 不是管理端 --> <!-- 不是管理端 -->
...@@ -165,7 +167,7 @@ ...@@ -165,7 +167,7 @@
<div style="display: flex;align-items: flex-end;"> <div style="display: flex;align-items: flex-end;">
<q-input clearable standout="bg-primary text-white" v-model="SourceUrl" @input="$forceUpdate()" <q-input clearable standout="bg-primary text-white" v-model="SourceUrl" @input="$forceUpdate()"
v-if="addMsg.Type==1" label="原文地址" style="margin-top: 20px;width: 500px;" /> v-if="addMsg.Type==1" label="原文地址" style="margin-top: 20px;width: 500px;" />
<span style="font-size: 11px;color: red;">*注:在图文消息页面点击“阅读原文”后的页面</span> <span v-if="addMsg.Type==1" style="font-size: 11px;color: red;">*注:在图文消息页面点击“阅读原文”后的页面</span>
</div> </div>
<div style="display: flex;align-items: center;margin: 10px 0 ;" v-if="addMsg.Type==1"> <div style="display: flex;align-items: center;margin: 10px 0 ;" v-if="addMsg.Type==1">
...@@ -653,13 +655,18 @@ ...@@ -653,13 +655,18 @@
_newArr.forEach(x=>{ _newArr.forEach(x=>{
if(x.num==2){ if(x.num==2){
let a = new RegExp(`<mp-miniprogram ${x.name}[^>]*>(.|\n)*<\/mp-miniprogram><span ${x.name}></span>`,'g') let a = new RegExp(`<mp-miniprogram ${x.name}[^>]*>(.|\n)*<\/mp-miniprogram><span ${x.name}></span>`,'g')
this.addMsg.SendContent = this.addMsg.SendContent.replace(a,'') this.addMsg.SendContent = this.addMsg.SendContent.replace(a,'')
// this.$refs.UE_cb.getagain(this.addMsg.Content)
} }
// 清楚sengConent 里面不用的iframe
let b = new RegExp(`<iframe[^>]*>(.|\n)*<\/iframe><span ${x.name}></span>`,'g')
this.addMsg.SendContent = this.addMsg.SendContent.replace(b,'')
}) })
// 清楚sengConent 里面不用的iframe
// this.addMsg.SendContent = this.addMsg.SendContent.replace(/<iframe[^>]*>(.|\n)*<\/iframe>/gi,'')
console.log(this.addMsg.SendContent)
} }
} }
}, },
......
...@@ -36,8 +36,18 @@ ...@@ -36,8 +36,18 @@
style="width: 200px;height: 80px;display: flex;align-items: center;justify-content: center;background: #f6f7f8;"> style="width: 200px;height: 80px;display: flex;align-items: center;justify-content: center;background: #f6f7f8;">
<img src="../../../assets/images/Noticen.png" alt="" style="width: 41px;height: 39px;"> <img src="../../../assets/images/Noticen.png" alt="" style="width: 41px;height: 39px;">
</div> </div>
<div style="width: 200px;min-height: 80px;padding: 5px;background: #f6f7f8;display: inline-block;white-space:pre-wrap" <!-- <div style="width: 200px;min-height: 80px;padding: 5px;background: #f6f7f8;display: inline-block;white-space:pre-wrap"
v-if="props.row.Type==2" v-html="props.row.Description"></div> v-if="props.row.Type==2" v-html="props.row.Description"></div> -->
</q-td>
</template>
<template v-slot:body-cell-Title="props">
<q-td :props="props">
<span>{{props.row.Title}}</span>
<div style="width: 200px;overflow: hidden ;
display: -webkit-box ;
-webkit-line-clamp: 2 ;
-webkit-box-orient: vertical ;
word-break: break-all ;" v-if="props.row.Type==2" v-html="props.row.Description"></div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
......
...@@ -42,7 +42,17 @@ ...@@ -42,7 +42,17 @@
<div v-if="props.row.Type==4" style="width: 200px;height: 80px;display: flex;align-items: center;justify-content: center;background: #f6f7f8;"> <div v-if="props.row.Type==4" style="width: 200px;height: 80px;display: flex;align-items: center;justify-content: center;background: #f6f7f8;">
<img src="../../../assets/images/Noticen.png" alt="" style="width: 41px;height: 39px;"> <img src="../../../assets/images/Noticen.png" alt="" style="width: 41px;height: 39px;">
</div> </div>
<div style="width: 200px;min-height: 80px;padding: 5px;background: #f6f7f8;display: inline-block;white-space:pre-wrap" v-if="props.row.Type==2" v-html="props.row.Description"></div> <!-- <div style="width: 200px;min-height: 80px;padding: 5px;background: #f6f7f8;display: inline-block;white-space:pre-wrap" v-if="props.row.Type==2" v-html="props.row.Description"></div> -->
</q-td>
</template>
<template v-slot:body-cell-Title="props">
<q-td :props="props">
<span>{{props.row.Title}}</span>
<div style="width: 200px;overflow: hidden ;
display: -webkit-box ;
-webkit-line-clamp: 2 ;
-webkit-box-orient: vertical ;
word-break: break-all ;" v-if="props.row.Type==2" v-html="props.row.Description"></div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
...@@ -269,12 +279,11 @@ ...@@ -269,12 +279,11 @@
type: type type: type
}); });
}, },
goliucheng(){//查看流程 goliucheng(item){//查看流程
this.$router.push({ this.OpenNewUrl("/teacher/change-class-manager", {
path: '/teacher/change-class-manager', ReceiptType: 10,
query: { RelationId:item.Id
ReceiptType: 10
}
}); });
}, },
......
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
' style="background-color:transparent;border-radius: 3px;overflow: hidden;z-index: 0;" scrolling="no" ' + ' style="background-color:transparent;border-radius: 3px;overflow: hidden;z-index: 0;" scrolling="no" ' +
' src="http://localhost:8181/#/teacher/contribution/graphicType?Name=' + data.appletmsg.Name + '&Image=' + ' src="http://localhost:8181/#/teacher/contribution/graphicType?Name=' + data.appletmsg.Name + '&Image=' +
data.appletmsg.Image + '&title=' + data.title + '&imgUrl=' + data.imgUrl + data.appletmsg.Image + '&title=' + data.title + '&imgUrl=' + data.imgUrl +
'" class="ans-insertaudio-module" module="_insertaudio">' + ' </iframe></p>'; '" class="ans-insertaudio-module" module="_insertaudio">' + ' </iframe><span data-time=' + dataTime + '></span></p>';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment