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
e7a86b04
Commit
e7a86b04
authored
Oct 29, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增用户标签
parent
be4ca40a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
4 deletions
+38
-4
contribution.js
src/api/teacher/contribution.js
+8
-0
addimageText.vue
src/pages/teacher/contribution/addimageText.vue
+15
-1
contributeManage.vue
src/pages/teacher/contribution/contributeManage.vue
+15
-3
No files found.
src/api/teacher/contribution.js
View file @
e7a86b04
...
...
@@ -123,4 +123,12 @@ export function getContributeInfoPublishLogList(data) {
})
}
// 获取公众号用户标签
export
function
getGZHUserTagList
(
data
)
{
return
request
({
url
:
'/QYContribute/GetGZHUserTagList'
,
method
:
'post'
,
data
})
}
src/pages/teacher/contribution/addimageText.vue
View file @
e7a86b04
...
...
@@ -218,6 +218,8 @@
:options=
"platTypeList"
label=
"发布平台"
:dense=
"false"
emit-value
map-options
/>
<q-input
v-if=
'IsPreview==1'
clearable
filled
v-model=
"TagId"
label=
"输入微信号"
maxlength=
"30"
style=
"margin-top: 20px;"
/>
<q-select
v-if=
'IsPreview==2'
clearable
filled
stack-label
option-value=
"id"
option-label=
"name"
v-model=
"TagId"
style=
"margin-top: 20px;"
:options=
"tagList"
label=
"用户标签"
:dense=
"false"
emit-value
map-options
/>
</q-card-section>
<q-separator
/>
<q-card-actions
align=
"right"
class=
"bg-white"
>
...
...
@@ -240,7 +242,8 @@
setContributeInfo
,
getContributeInfo
,
setContributeInfoPublish
,
setAdminContributeInfo
setAdminContributeInfo
,
getGZHUserTagList
}
from
'../../../api/teacher/contribution'
;
import
{
GetContributePlatfrom
,
//获取平台
...
...
@@ -301,6 +304,7 @@
IsOpenComment
:
'0'
,
//是否打开评论,0不打开,1打开(图文 + 图片)
IsFansCanComment
:
'0'
,
//是否粉丝才可评论,0所有人可评论,1粉丝才
platTypeList
:
[],
//平台列表
tagList
:[],
//用户标签列表
}
},
created
()
{
...
...
@@ -339,6 +343,8 @@
}
},
mounted
()
{
this
.
getGZHUserTagList
()
//获取公众号的用户标签
},
methods
:
{
//获取已开放平台
...
...
@@ -349,6 +355,13 @@
}
})
},
getGZHUserTagList
()
{
getGZHUserTagList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
tagList
=
res
.
Data
;
}
})
},
getdetails
()
{
getContributeInfo
({
ContributeId
:
this
.
addMsg
.
Id
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
...
...
@@ -515,6 +528,7 @@
})
}
else
{
//预览 和 群发
this
.
TagId
=
''
this
.
releasedialog
=
true
this
.
IsPreview
=
type
}
...
...
src/pages/teacher/contribution/contributeManage.vue
View file @
e7a86b04
...
...
@@ -82,8 +82,8 @@
<div
style=
"display: flex;align-items: center;margin: 10px 0 ;"
>
展示方式:
<q-radio
v-model=
"publishMsg.IsPreview"
val=
"0"
label=
"上传不发布"
/>
<q-radio
v-model=
"publishMsg.IsPreview"
val=
"1"
label=
"预览"
/>
<q-radio
v-model=
"publishMsg.IsPreview"
val=
"2"
label=
"群发"
/>
<q-radio
v-model=
"publishMsg.IsPreview"
val=
"1"
label=
"预览"
@
input=
"publishMsg.TagId=''"
/>
<q-radio
v-model=
"publishMsg.IsPreview"
val=
"2"
label=
"群发"
@
input=
"publishMsg.TagId=''"
/>
</div>
<div
style=
"color: red;font-size: 12px;margin: 5px 0 10px;"
>
<span
v-if=
'publishMsg.IsPreview==0'
>
注:只上传到公众号平台不发布
</span>
...
...
@@ -92,6 +92,8 @@
</div>
<q-input
v-if=
'publishMsg.IsPreview==1'
clearable
filled
v-model=
"publishMsg.TagId"
label=
"输入微信号"
maxlength=
"30"
/>
<q-select
v-if=
'publishMsg.IsPreview==2'
clearable
filled
stack-label
option-value=
"id"
option-label=
"name"
v-model=
"publishMsg.TagId"
:options=
"tagList"
label=
"用户标签"
:dense=
"false"
emit-value
map-options
/>
</q-card-section>
<q-separator
/>
<q-card-actions
align=
"right"
class=
"bg-white"
>
...
...
@@ -112,7 +114,8 @@
getContributeInfoAuditedPageList
,
setContributeInfoState
,
setContributeInfoPublish
,
getContributeInfoPublishLogList
getContributeInfoPublishLogList
,
getGZHUserTagList
}
from
'../../../api/teacher/contribution'
;
import
{
GetContributePlatfrom
,
//获取平台
...
...
@@ -196,6 +199,7 @@
TagId
:
''
},
recordDate
:[],
tagList
:[],
}
},
...
...
@@ -204,6 +208,7 @@
this
.
getPlatForm
()
this
.
getStateList
()
this
.
getList
()
this
.
getGZHUserTagList
()
//获取公众号的用户标签
},
methods
:
{
//获取已开放平台
...
...
@@ -215,6 +220,13 @@
}
})
},
getGZHUserTagList
()
{
getGZHUserTagList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
tagList
=
res
.
Data
;
}
})
},
getTypeList
()
{
getContributeInfoTypeEnumList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
...
...
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