Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
million
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
viitto
million
Commits
5b0e8174
Commit
5b0e8174
authored
Jul 07, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
想
parent
82bfc5a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
list.vue
src/components/searchdata/list.vue
+10
-1
Search.vue
src/pages/Search.vue
+9
-2
No files found.
src/components/searchdata/list.vue
View file @
5b0e8174
...
...
@@ -11,7 +11,7 @@
</div>
</div>
<div>
<div
class=
"group-box"
v-for=
"(item,index) in DataList"
>
<div
class=
"group-box"
v-for=
"(item,index) in DataList"
:key=
"index"
>
<a
class=
"group-cover"
>
<img
v-if=
"item.newCoverImg"
:src=
"item.newCoverImg"
/>
</a>
...
...
@@ -44,6 +44,11 @@
</div>
</div>
</div>
<div
style=
"display:flex;justify-content: center;"
>
<q-pagination
v-if=
"qMsg.PageCount>1"
v-model=
"qMsg.pageIndex"
:max=
"qMsg.PageCount"
@
input=
"gerOrderList()"
:direction-links=
"true"
>
</q-pagination>
</div>
</div>
</div>
...
...
@@ -59,6 +64,10 @@
methods
:
{
GotoDetails
(
item
)
{
this
.
CommonJump
(
'/details/'
+
item
.
id
+
"/"
+
item
.
tcid
,
{});
},
//调用
gerOrderList
(){
this
.
$emit
(
'getPage'
)
}
}
}
...
...
src/pages/Search.vue
View file @
5b0e8174
...
...
@@ -762,7 +762,7 @@
</div>
</div>
<!--列表-->
<searchList
:DataList=
"DataList"
:qMsg=
"qMsg"
></searchList>
<searchList
:DataList=
"DataList"
:qMsg=
"qMsg"
@
getPage=
"getPage"
></searchList>
</div>
</
template
>
</div>
...
...
@@ -823,7 +823,7 @@
option-value=
"Name"
label=
"請選擇地區"
/>
</div>
<div
class=
"q-mb-md"
v-if=
"chosenResult.tl.SubList"
>
<q-select
filled
v-model=
"chosenResult.ful"
:options=
"chosenResult.tl.SubList"
option-label=
"Name"
<q-select
filled
v-model=
"chosenResult.ful"
@
input=
"setSearchKey(chosenResult.ful)"
:options=
"chosenResult.tl.SubList"
option-label=
"Name"
option-value=
"Name"
label=
"請選擇地區"
/>
</div>
</div>
...
...
@@ -1118,6 +1118,13 @@
this
.
qMsg
.
pageIndex
=
1
;
this
.
goSearchHandler
();
},
//分页方法
getPage
(){
this
.
goSearchHandler
();
},
setSearchKey
(
obj
){
this
.
qMsg
.
searchKey
=
obj
.
Name
;
},
goSearchHandler
()
{
this
.
$q
.
loading
.
show
()
this
.
DataList
=
[];
...
...
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