Commit 5260fd5e authored by Mac's avatar Mac

1

parent a522ce19
...@@ -114,3 +114,13 @@ export function setAdminContributeInfo(data) { ...@@ -114,3 +114,13 @@ export function setAdminContributeInfo(data) {
}) })
} }
// 获取发布记录
export function getContributeInfoPublishLogList(data) {
return request({
url: '/QYContribute/GetContributeInfoPublishLogList',
method: 'post',
data
})
}
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<div @click="PageSelect(item)" :class="getChecked(item) ? 'selected' :''" <div @click="PageSelect(item)" :class="getChecked(item) ? 'selected' :''"
class="el-tooltip item app-attachment-item"> class="el-tooltip item app-attachment-item">
<img :src="getIconLink(item.ImageUrl)" class="app-attachment-img" style="width: 100px; height: 100px;"> <img :src="getIconLink(item.ImageUrl)" class="app-attachment-img" style="width: 100px; height: 100px;">
<div class="app-attachment-name">{{item.MediaGroupName}}</div> <div class="app-attachment-name">{{item.MediaName}}</div>
</div> </div>
</el-tooltip> </el-tooltip>
</div> </div>
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<div @click="PageSelect(item)" :class="getChecked(item) ? 'selected' :''" <div @click="PageSelect(item)" :class="getChecked(item) ? 'selected' :''"
class="el-tooltip item app-attachment-item"> class="el-tooltip item app-attachment-item">
<img :src="getIconLink(item.ImageUrl)" class="app-attachment-img" style="width: 100px; height: 100px;"> <img :src="getIconLink(item.ImageUrl)" class="app-attachment-img" style="width: 100px; height: 100px;">
<div class="app-attachment-name">{{item.MediaGroupName}}</div> <div class="app-attachment-name">{{item.MediaName}}</div>
</div> </div>
</el-tooltip> </el-tooltip>
</div> </div>
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<span style="font-size: 11px;"> <span style="font-size: 11px;">
</span> </span>
</q-circular-progress> </q-circular-progress>
<div class="app-attachment-name">{{x.MediaGroupName}}</div> <div class="app-attachment-name">{{x.MediaName}}</div>
</div> </div>
</el-tooltip> </el-tooltip>
</div> </div>
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
<video width="100%" height="140" controls="controls" v-if="x.Path"> <video width="100%" height="140" controls="controls" v-if="x.Path">
<source :src="x.Path" type="video/mp4" /> <source :src="x.Path" type="video/mp4" />
</video> </video>
<div class="app-attachment-name">{{x.MediaGroupName}}</div> <div class="app-attachment-name">{{x.MediaName}}</div>
</div> </div>
</el-tooltip> </el-tooltip>
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
</q-item> </q-item>
</q-list> </q-list>
</q-btn-dropdown> </q-btn-dropdown>
<q-btn push label="视频" @click="getChoice(3),iscover=false" /> <!-- <q-btn push label="视频" @click="getChoice(3),iscover=false" /> -->
<q-btn push label="音频" @click="getChoice(2),iscover=false" /> <q-btn push label="音频" @click="getChoice(2),iscover=false" />
<!-- <q-btn push label="超链接" @click="hyperlinks" /> --> <!-- <q-btn push label="超链接" @click="hyperlinks" /> -->
<q-btn push label="小程序" @click="getapplet" /> <q-btn push label="小程序" @click="getapplet" />
...@@ -169,17 +169,39 @@ ...@@ -169,17 +169,39 @@
<q-btn class="q-mr-md" label="推送" @click="tuisong()" style="width: 60px;" /> <q-btn class="q-mr-md" label="推送" @click="tuisong()" style="width: 60px;" />
</div> </div>
<!-- 是管理端 --> <!-- 是管理端 -->
<div style="margin-top: 20px;" v-if="isManage==true"> <div v-if="isManage==true" style="margin-top: 20px;">
<q-btn color="accent" class="q-mr-md" label="保存" @click="savemoveManage(0)" style="width: 100px;" <q-input clearable standout="bg-primary text-white" v-model="SourceUrl" @input="$forceUpdate()"
:loading="loading" /> v-if="addMsg.Type==1" label="原文地址" style="margin-top: 20px;width: 500px;" />
<q-btn color="accent" class="q-mr-md" label="预览" @click="savemoveManage(1)" style="width: 120px;" <div style="display: flex;align-items: center;margin: 10px 0 ;" v-if="addMsg.Type==1">
:loading="loading" /> 显示封面图:
<q-btn color="accent" class="q-mr-md" label="保存并群发" @click="savemoveManage(2)" style="width: 120px;" <q-radio v-model="IsShowCover" val="1" label="显示" />
:loading="loading" /> <q-radio v-model="IsShowCover" val="0" label="不显示" />
<q-btn class="q-mr-md" label="返回" @click="goblck()" style="width: 60px;" /> </div>
<!-- <q-btn class="q-mr-md" label="推送" @click="tuisong()" style="width: 60px;" /> --> <div style="display: flex;align-items: center;margin: 10px 0 ;"
v-if="addMsg.Type==1 || addMsg.Type==5 ">
是否打开评论:
<q-radio v-model="IsOpenComment" val="1" label="打开" />
<q-radio v-model="IsOpenComment" val="0" label="不打开" />
</div>
<div style="display: flex;align-items: center;margin: 10px 0 ;"
v-if="(addMsg.Type==1 || addMsg.Type==5) && IsOpenComment==1">
是否粉丝才可评论:
<q-radio v-model="IsFansCanComment" val="1" label="粉丝" />
<q-radio v-model="IsFansCanComment" val="0" label="所有人" />
</div>
<div style="margin-top: 20px;">
<q-btn color="accent" class="q-mr-md" label="保存" @click="savemoveManage(0)" style="width: 100px;"
:loading="loading" />
<q-btn color="accent" class="q-mr-md" label="预览" @click="savemoveManage(1)" style="width: 120px;"
:loading="loading" />
<q-btn color="accent" class="q-mr-md" label="保存并群发" @click="savemoveManage(2)" style="width: 120px;"
:loading="loading" />
<q-btn class="q-mr-md" label="返回" @click="goblck()" style="width: 60px;" />
<!-- <q-btn class="q-mr-md" label="推送" @click="tuisong()" style="width: 60px;" /> -->
</div>
</div> </div>
</div> </div>
<!-- 选择文件 --> <!-- 选择文件 -->
<q-dialog title="选择文件" v-model="getImgChoice" width="1200px"> <q-dialog title="选择文件" v-model="getImgChoice" width="1200px">
...@@ -279,6 +301,10 @@ ...@@ -279,6 +301,10 @@
IsPreview: 0,//1预览 2群发 0 只保存投稿 不发送 IsPreview: 0,//1预览 2群发 0 只保存投稿 不发送
TagId: '',//预览 =》 微信号(必传); 群发 =》 标签ID TagId: '',//预览 =》 微信号(必传); 群发 =》 标签ID
PlatformId: '',//发布的平台 PlatformId: '',//发布的平台
IsShowCover: '0',//是否显示封面,1为显示,0为不显示 (图文)
SourceUrl: '',// 原文地址 (图文)
IsOpenComment: '0',//是否打开评论,0不打开,1打开(图文 + 图片)
IsFansCanComment: '0',//是否粉丝才可评论,0所有人可评论,1粉丝才
platTypeList: [],//平台列表 platTypeList: [],//平台列表
} }
}, },
...@@ -361,12 +387,17 @@ ...@@ -361,12 +387,17 @@
if (this.type == 1) { if (this.type == 1) {
url = x.ImageUrl url = x.ImageUrl
} else if (this.type == 2) { } else if (this.type == 2) {
url = x.Media_Id if (this.addMsg.Type == 1) {
url = x.Path
} else {
url = x.Media_Id
}
} else if (this.type == 3) { } else if (this.type == 3) {
url = x.VideoWXPath url = x.VideoWXPath
} }
let a = { let a = {
fileName: x.Name, fileName: x.MediaName,
fileUrl: url fileUrl: url
} }
data.push(a) data.push(a)
...@@ -456,7 +487,7 @@ ...@@ -456,7 +487,7 @@
// _newArr.forEach(x=>{ // _newArr.forEach(x=>{
// console.log(x) // console.log(x)
// if(x.num==1){ // if(x.num==1){
// let a = new RegExp(`<mp-miniprogram ${x.name}[^>]*>(.|\n)*<\/mp-miniprogram>`,'g') // let a = new RegExp(`<mp-miniprogram ${x.name}[^>]*>(.|\n)*<\/mp-miniprogram>`,'g')
// console.log(a) // console.log(a)
// this.addMsg.Content = data.replace(a,'') // this.addMsg.Content = data.replace(a,'')
...@@ -518,6 +549,14 @@ ...@@ -518,6 +549,14 @@
msg.IsPreview = type; msg.IsPreview = type;
msg.TagId = ''; msg.TagId = '';
msg.PlatformId = 0; msg.PlatformId = 0;
if (this.addMsg.Type == 1) {
msg.SourceUrl = this.SourceUrl
msg.IsShowCover = this.IsShowCover
}
if (this.addMsg.Type == 1 || this.addMsg.Type == 5) {
msg.IsOpenComment = this.IsOpenComment
msg.IsFansCanComment = this.IsFansCanComment
}
this.loading = true this.loading = true
setAdminContributeInfo(msg).then(res => { setAdminContributeInfo(msg).then(res => {
this.loading = false this.loading = false
...@@ -564,6 +603,14 @@ ...@@ -564,6 +603,14 @@
msg.IsPreview = this.IsPreview; msg.IsPreview = this.IsPreview;
msg.TagId = this.TagId; msg.TagId = this.TagId;
msg.PlatformId = this.PlatformId; msg.PlatformId = this.PlatformId;
if (this.addMsg.Type == 1) {
msg.SourceUrl = this.SourceUrl
msg.IsShowCover = this.IsShowCover
}
if (this.addMsg.Type == 1 || this.addMsg.Type == 5) {
msg.IsOpenComment = this.IsOpenComment
msg.IsFansCanComment = this.IsFansCanComment
}
this.loading = true this.loading = true
setAdminContributeInfo(msg).then(res => { setAdminContributeInfo(msg).then(res => {
this.loading = false this.loading = false
......
...@@ -49,6 +49,19 @@ ...@@ -49,6 +49,19 @@
label="修改" @click="goedit(props.row)" /> label="修改" @click="goedit(props.row)" />
<q-btn flat size="xs" icon="iconfont icon-fabu" style="font-weight:400;color: purple" class="q-mr-xs" <q-btn flat size="xs" icon="iconfont icon-fabu" style="font-weight:400;color: purple" class="q-mr-xs"
label="发布" @click="release(props.row)" /> label="发布" @click="release(props.row)" />
<q-btn flat size="xs" icon="iconfont icon-fabu" style="font-weight:400;color: purple" class="q-mr-xs"
label="发布记录" @click="releaserecord(props.row)" >
<q-popup-proxy transition-show="flip-up" transition-hide="flip-down">
<div style="padding: 10px;">
<el-table :data="recordDate" border >
<el-table-column width="100" property="PlatfromName" label="平台"></el-table-column>
<el-table-column width="200" property="Content" label="内容"></el-table-column>
<el-table-column width="100" property="UpdateByName" label="操作人"></el-table-column>
<el-table-column width="150" property="UpdateTime" label="操作时间"></el-table-column>
</el-table>
</div>
</q-popup-proxy>
</q-btn>
</q-td> </q-td>
</template> </template>
...@@ -98,7 +111,8 @@ ...@@ -98,7 +111,8 @@
getContributeInfoStateEnumList, getContributeInfoStateEnumList,
getContributeInfoAuditedPageList, getContributeInfoAuditedPageList,
setContributeInfoState, setContributeInfoState,
setContributeInfoPublish setContributeInfoPublish,
getContributeInfoPublishLogList
} from '../../../api/teacher/contribution'; } from '../../../api/teacher/contribution';
import { import {
GetContributePlatfrom,//获取平台 GetContributePlatfrom,//获取平台
...@@ -180,7 +194,8 @@ ...@@ -180,7 +194,8 @@
PlatformId: '', PlatformId: '',
IsPreview: 0, IsPreview: 0,
TagId: '' TagId: ''
} },
recordDate:[],
} }
}, },
...@@ -253,11 +268,18 @@ ...@@ -253,11 +268,18 @@
this.publishMsg.TagId = ''; this.publishMsg.TagId = '';
this.releasedialog = true this.releasedialog = true
}, },
releaserecord(row){
getContributeInfoPublishLogList({ContributeId:row.Id}).then(res => {
if (res.Code == 1) {
this.recordDate=res.Data
}
}).catch(() => {
})
},
closeCourseForm() { closeCourseForm() {
this.releasedialog = false this.releasedialog = false
}, },
saveCourse() {//发布投稿 saveCourse() {//发布投稿
console.log(this.publishMsg)
if (this.publishMsg.PlatformId == '') { if (this.publishMsg.PlatformId == '') {
this.$q.notify({ this.$q.notify({
type: 'negative', type: 'negative',
......
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