Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust_web
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
张伯涛
cust_web
Commits
0ff52e63
Commit
0ff52e63
authored
Jan 02, 2025
by
方建宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发布状态相关功能
parent
f93922d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
index.vue
src/views/contentManagement/activity/index.vue
+2
-2
index.vue
src/views/contentManagement/activity/info/index.vue
+5
-1
No files found.
src/views/contentManagement/activity/index.vue
View file @
0ff52e63
...
@@ -24,8 +24,8 @@
...
@@ -24,8 +24,8 @@
<el-option
v-for=
"item in yesOrNo"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
<el-option
v-for=
"item in yesOrNo"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"状态:"
prop=
"
flag
"
>
<el-form-item
label=
"状态:"
prop=
"
publishStatus
"
>
<el-select
v-model=
"queryParams.
flag
"
placeholder=
"请选择发布状态"
style=
"width: 150px"
clearable
>
<el-select
v-model=
"queryParams.
publishStatus
"
placeholder=
"请选择发布状态"
style=
"width: 150px"
clearable
>
<el-option
<el-option
v-for=
"item in releaseStatusOptions"
v-for=
"item in releaseStatusOptions"
:key=
"item.value"
:key=
"item.value"
...
...
src/views/contentManagement/activity/info/index.vue
View file @
0ff52e63
...
@@ -5,7 +5,8 @@
...
@@ -5,7 +5,8 @@
<span
class=
"topTitleText"
>
{{
title
}}
</span>
<span
class=
"topTitleText"
>
{{
title
}}
</span>
</div>
</div>
<div
class=
"twoTitle"
>
<div
class=
"twoTitle"
>
<el-tag
v-if=
"form.flag==='1'"
type=
"success"
>
已发布
</el-tag>
<el-tag
v-if=
"form.publishStatus==='1'"
type=
"success"
>
已发布
</el-tag>
<el-tag
v-else-if=
"form.publishStatus !=='2'"
type=
"danger"
>
未发布
</el-tag>
</div>
</div>
<div
class=
"updateBoby"
>
<div
class=
"updateBoby"
>
<el-form
ref=
"deviceFormRef"
:model=
"form"
:rules=
"rules"
label-position=
"right"
label-width=
"auto"
>
<el-form
ref=
"deviceFormRef"
:model=
"form"
:rules=
"rules"
label-position=
"right"
label-width=
"auto"
>
...
@@ -402,6 +403,7 @@ export default {
...
@@ -402,6 +403,7 @@ export default {
title
:
null
,
title
:
null
,
isApplication
:
null
,
isApplication
:
null
,
publishDate
:
null
,
publishDate
:
null
,
publishStatus
:
null
,
flag
:
null
,
flag
:
null
,
startTime
:
null
,
startTime
:
null
,
endTime
:
null
,
endTime
:
null
,
...
@@ -608,6 +610,7 @@ export default {
...
@@ -608,6 +610,7 @@ export default {
}
}
})
})
}
else
{
}
else
{
this
.
form
.
publishStatus
=
'0'
addCmsActivity
(
this
.
form
).
then
(
res
=>
{
addCmsActivity
(
this
.
form
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
$message
({
this
.
$message
({
...
@@ -632,6 +635,7 @@ export default {
...
@@ -632,6 +635,7 @@ export default {
// 编辑
// 编辑
console
.
log
(
'编辑打印'
,
this
.
form
)
console
.
log
(
'编辑打印'
,
this
.
form
)
this
.
form
.
flag
=
'1'
this
.
form
.
flag
=
'1'
this
.
form
.
publishStatus
=
'1'
updateCmsActivity
(
this
.
form
).
then
(
res
=>
{
updateCmsActivity
(
this
.
form
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
$message
({
this
.
$message
({
...
...
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