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
f7ebdf08
Commit
f7ebdf08
authored
Dec 07, 2018
by
陈伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/bug02' into 'dev'
Hotfix/bug02 See merge request
alpha/sun!9
parents
71db8135
e6ef6685
Hide 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 @
f7ebdf08
...
...
@@ -219,6 +219,13 @@
</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=
"评论内容"
>
<
template
slot-scope=
"scope"
>
<span
>
{{
scope
.
row
.
content
}}
</span>
...
...
@@ -311,6 +318,15 @@
default
:
false
}
},
filters
:
{
isOnlineFilter
(
status
)
{
const
statusMap
=
{
1
:
'success'
,
0
:
'info'
,
}
return
statusMap
[
status
]
},
},
data
()
{
const
validateRequire
=
(
rule
,
value
,
callback
)
=>
{
if
(
value
===
''
)
{
...
...
@@ -340,7 +356,6 @@
rules
:
{
posting_time
:
[{
validator
:
validateRequire
,
trigger
:
'blur'
}],
},
ReplyTypeOptions
:
[
{
'key'
:
'1'
,
'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