Commit 5260fd5e authored by Mac's avatar Mac

1

parent a522ce19
......@@ -114,3 +114,13 @@ export function setAdminContributeInfo(data) {
})
}
// 获取发布记录
export function getContributeInfoPublishLogList(data) {
return request({
url: '/QYContribute/GetContributeInfoPublishLogList',
method: 'post',
data
})
}
......@@ -16,7 +16,7 @@
<div @click="PageSelect(item)" :class="getChecked(item) ? 'selected' :''"
class="el-tooltip item app-attachment-item">
<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>
</el-tooltip>
</div>
......@@ -29,7 +29,7 @@
<div @click="PageSelect(item)" :class="getChecked(item) ? 'selected' :''"
class="el-tooltip item app-attachment-item">
<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>
</el-tooltip>
</div>
......@@ -47,7 +47,7 @@
<span style="font-size: 11px;">
</span>
</q-circular-progress>
<div class="app-attachment-name">{{x.MediaGroupName}}</div>
<div class="app-attachment-name">{{x.MediaName}}</div>
</div>
</el-tooltip>
</div>
......@@ -62,7 +62,7 @@
<video width="100%" height="140" controls="controls" v-if="x.Path">
<source :src="x.Path" type="video/mp4" />
</video>
<div class="app-attachment-name">{{x.MediaGroupName}}</div>
<div class="app-attachment-name">{{x.MediaName}}</div>
</div>
</el-tooltip>
......
......@@ -89,7 +89,7 @@
</q-item>
</q-list>
</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="hyperlinks" /> -->
<q-btn push label="小程序" @click="getapplet" />
......@@ -169,7 +169,27 @@
<q-btn class="q-mr-md" label="推送" @click="tuisong()" style="width: 60px;" />
</div>
<!-- 是管理端 -->
<div style="margin-top: 20px;" v-if="isManage==true">
<div v-if="isManage==true" style="margin-top: 20px;">
<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;" />
<div style="display: flex;align-items: center;margin: 10px 0 ;" v-if="addMsg.Type==1">
显示封面图:
<q-radio v-model="IsShowCover" val="1" label="显示" />
<q-radio v-model="IsShowCover" val="0" label="不显示" />
</div>
<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;"
......@@ -179,6 +199,8 @@
<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>
<!-- 选择文件 -->
......@@ -279,6 +301,10 @@
IsPreview: 0,//1预览 2群发 0 只保存投稿 不发送
TagId: '',//预览 =》 微信号(必传); 群发 =》 标签ID
PlatformId: '',//发布的平台
IsShowCover: '0',//是否显示封面,1为显示,0为不显示 (图文)
SourceUrl: '',// 原文地址 (图文)
IsOpenComment: '0',//是否打开评论,0不打开,1打开(图文 + 图片)
IsFansCanComment: '0',//是否粉丝才可评论,0所有人可评论,1粉丝才
platTypeList: [],//平台列表
}
},
......@@ -361,12 +387,17 @@
if (this.type == 1) {
url = x.ImageUrl
} else if (this.type == 2) {
if (this.addMsg.Type == 1) {
url = x.Path
} else {
url = x.Media_Id
}
} else if (this.type == 3) {
url = x.VideoWXPath
}
let a = {
fileName: x.Name,
fileName: x.MediaName,
fileUrl: url
}
data.push(a)
......@@ -518,6 +549,14 @@
msg.IsPreview = type;
msg.TagId = '';
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
setAdminContributeInfo(msg).then(res => {
this.loading = false
......@@ -564,6 +603,14 @@
msg.IsPreview = this.IsPreview;
msg.TagId = this.TagId;
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
setAdminContributeInfo(msg).then(res => {
this.loading = false
......
......@@ -49,6 +49,19 @@
label="修改" @click="goedit(props.row)" />
<q-btn flat size="xs" icon="iconfont icon-fabu" style="font-weight:400;color: purple" class="q-mr-xs"
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>
</template>
......@@ -98,7 +111,8 @@
getContributeInfoStateEnumList,
getContributeInfoAuditedPageList,
setContributeInfoState,
setContributeInfoPublish
setContributeInfoPublish,
getContributeInfoPublishLogList
} from '../../../api/teacher/contribution';
import {
GetContributePlatfrom,//获取平台
......@@ -180,7 +194,8 @@
PlatformId: '',
IsPreview: 0,
TagId: ''
}
},
recordDate:[],
}
},
......@@ -253,11 +268,18 @@
this.publishMsg.TagId = '';
this.releasedialog = true
},
releaserecord(row){
getContributeInfoPublishLogList({ContributeId:row.Id}).then(res => {
if (res.Code == 1) {
this.recordDate=res.Data
}
}).catch(() => {
})
},
closeCourseForm() {
this.releasedialog = false
},
saveCourse() {//发布投稿
console.log(this.publishMsg)
if (this.publishMsg.PlatformId == '') {
this.$q.notify({
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