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
b7ca08d7
Commit
b7ca08d7
authored
Dec 05, 2018
by
Davve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改star城市必填
parent
01e4d534
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
list.vue
vu/src/views/group/list.vue
+2
-11
StarDetail.vue
vu/src/views/star/components/StarDetail.vue
+5
-0
No files found.
vu/src/views/group/list.vue
View file @
b7ca08d7
...
...
@@ -48,21 +48,18 @@
<el-table-column
align=
"center"
label=
"用户数"
>
<
template
slot-scope=
"scope"
>
<router-link
:to=
"
{path: '/user/list/', query: {group_id: scope.row.id}}" class="link-type"
v-if="this.adminRole"
>
<router-link
:to=
"
{path: '/user/list/', query: {group_id: scope.row.id}}" class="link-type">
<span>
{{
scope
.
row
.
user_nums
}}
</span>
</router-link>
<span
v-else
>
{{
scope
.
row
.
user_nums
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"帖子数"
>
<
template
slot-scope=
"scope"
>
<router-link
:to=
"
{path: '/topic/list/', query: {group_id: scope.row.id}}" class="link-type"
v-if="this.adminRole"
>
<router-link
:to=
"
{path: '/topic/list/', query: {group_id: scope.row.id}}" class="link-type">
<span>
{{
scope
.
row
.
topic_nums
}}
</span>
</router-link>
<span
v-else
>
{{
scope
.
row
.
topic_nums
}}
</span>
</
template
>
</el-table-column>
...
...
@@ -93,7 +90,6 @@
</template>
<
script
>
import
{
mapGetters
}
from
'vuex'
import
{
fetchList
,
OffLineOrOnLine
}
from
'@/api/group'
import
Pagination
from
'@/components/Pagination'
// Secondary package based on el-pagination
import
waves
from
'@/directive/waves'
...
...
@@ -111,11 +107,6 @@ export default {
return
statusMap
[
status
]
}
},
computed
:
{
...
mapGetters
([
'roles'
])
},
data
()
{
return
{
list
:
null
,
...
...
vu/src/views/star/components/StarDetail.vue
View file @
b7ca08d7
...
...
@@ -292,6 +292,11 @@
this
.
$refs
.
postForm
.
validate
(
valid
=>
{
if
(
valid
)
{
this
.
loading
=
true
if
(
this
.
city
==
''
){
this
.
$message
.
error
(
'城市必填'
)
this
.
loading
=
false
return
false
}
this
.
postForm
.
groups
=
JSON
.
stringify
(
this
.
group_ids
);
this
.
postForm
.
city
=
this
.
city
starCreate
(
this
.
postForm
).
then
(
response
=>
{
...
...
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