Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sun
Project
Project
Details
Activity
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
谢林臻
sun
Commits
e6ef6685
Commit
e6ef6685
authored
Dec 07, 2018
by
Davve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加评论是否上下线
parent
bf7a4353
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
TopicDetail.vue
vu/src/views/topic/components/TopicDetail.vue
+16
-1
No files found.
vu/src/views/topic/components/TopicDetail.vue
View file @
e6ef6685
...
@@ -219,6 +219,13 @@
...
@@ -219,6 +219,13 @@
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
label=
"是否下线"
>
<
template
slot-scope=
"scope"
>
<el-tag
:type=
"scope.row.is_online | isOnlineFilter"
>
{{
scope
.
row
.
is_online
===
1
?
'是'
:
'否'
}}
</el-tag>
</
template
>
</el-table-column>
<el-table-column
label=
"评论内容"
>
<el-table-column
label=
"评论内容"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
>
{{
scope
.
row
.
content
}}
</span>
<span
>
{{
scope
.
row
.
content
}}
</span>
...
@@ -310,6 +317,15 @@
...
@@ -310,6 +317,15 @@
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
}
}
},
filters
:
{
isOnlineFilter
(
status
)
{
const
statusMap
=
{
1
:
'success'
,
0
:
'info'
,
}
return
statusMap
[
status
]
},
},
},
data
()
{
data
()
{
const
validateRequire
=
(
rule
,
value
,
callback
)
=>
{
const
validateRequire
=
(
rule
,
value
,
callback
)
=>
{
...
@@ -340,7 +356,6 @@
...
@@ -340,7 +356,6 @@
rules
:
{
rules
:
{
posting_time
:
[{
validator
:
validateRequire
,
trigger
:
'blur'
}],
posting_time
:
[{
validator
:
validateRequire
,
trigger
:
'blur'
}],
},
},
ReplyTypeOptions
:
[
ReplyTypeOptions
:
[
{
'key'
:
'1'
,
'display_name'
:
'帖主的评论'
},
{
'key'
:
'1'
,
'display_name'
:
'帖主的评论'
},
{
'key'
:
'2'
,
'display_name'
:
'评论帖子'
},
{
'key'
:
'2'
,
'display_name'
:
'评论帖子'
},
...
...
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