Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
5260fd5e
Commit
5260fd5e
authored
Oct 26, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a522ce19
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
99 additions
and
20 deletions
+99
-20
contribution.js
src/api/teacher/contribution.js
+10
-0
ChooseImg.vue
src/pages/teacher/components/ChooseImg.vue
+4
-4
addimageText.vue
src/pages/teacher/contribution/addimageText.vue
+60
-13
contributeManage.vue
src/pages/teacher/contribution/contributeManage.vue
+25
-3
No files found.
src/api/teacher/contribution.js
View file @
5260fd5e
...
...
@@ -114,3 +114,13 @@ export function setAdminContributeInfo(data) {
})
}
// 获取发布记录
export
function
getContributeInfoPublishLogList
(
data
)
{
return
request
({
url
:
'/QYContribute/GetContributeInfoPublishLogList'
,
method
:
'post'
,
data
})
}
src/pages/teacher/components/ChooseImg.vue
View file @
5260fd5e
...
...
@@ -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
.
Media
Group
Name
}}
</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
.
Media
Group
Name
}}
</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
.
Media
Group
Name
}}
</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
.
Media
Group
Name
}}
</div>
<div
class=
"app-attachment-name"
>
{{
x
.
MediaName
}}
</div>
</div>
</el-tooltip>
...
...
src/pages/teacher/contribution/addimageText.vue
View file @
5260fd5e
...
...
@@ -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,17 +169,39 @@
<q-btn
class=
"q-mr-md"
label=
"推送"
@
click=
"tuisong()"
style=
"width: 60px;"
/>
</div>
<!-- 是管理端 -->
<div
style=
"margin-top: 20px;"
v-if=
"isManage==true"
>
<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
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;"
: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>
<!-- 选择文件 -->
<q-dialog
title=
"选择文件"
v-model=
"getImgChoice"
width=
"1200px"
>
...
...
@@ -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
)
{
url
=
x
.
Media_Id
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
.
Media
Name
,
fileUrl
:
url
}
data
.
push
(
a
)
...
...
@@ -456,7 +487,7 @@
// _newArr.forEach(x=>{
// console.log(x)
// if(x.num==1){
// let a = new RegExp(`
<
mp
-
miniprogram
$
{
x
.
name
}[
^>
]
*>
(.
|
\
n
)
*<
\
/
mp
-
miniprogram
>
`,'g')
// console.log(a)
// this.addMsg.Content = data.replace(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
...
...
src/pages/teacher/contribution/contributeManage.vue
View file @
5260fd5e
...
...
@@ -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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment