Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sensorConsult
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
zhanglw
sensorConsult
Commits
d97f4f3d
Commit
d97f4f3d
authored
Aug 08, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
供应商搜索
parent
2278e7c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
3 deletions
+37
-3
index.vue
src/views/homepage/product/index.vue
+1
-1
index.vue
src/views/homepage/supplier/index.vue
+36
-2
No files found.
src/views/homepage/product/index.vue
View file @
d97f4f3d
...
...
@@ -73,7 +73,7 @@
<el-input
v-model=
"query.minPrice"
placeholder=
"请输入价格(元)"
clearable
style=
"width: 140px"
/>
~
<el-input
v-model=
"query.maxPrice"
placeholder=
"请输入价格(元)"
clearable
style=
"width: 140px"
/>
<div
class=
"btn touch"
>
确 定
</div>
<div
class=
"btn touch"
@
click=
"search"
>
确 定
</div>
</div>
</div>
</el-col>
...
...
src/views/homepage/supplier/index.vue
View file @
d97f4f3d
...
...
@@ -14,6 +14,19 @@
<breadcrumb
/>
<!--查询面板-->
<div
class=
"search-box"
>
<div
class=
"search-tools"
>
<el-row
:gutter=
"18"
>
<el-col
:span=
"21"
>
<el-input
v-model=
"query.keyword"
clearable
placeholder=
"请输入关键字"
/>
</el-col>
<el-col
:span=
"3"
>
<el-button
icon=
"el-icon-search"
class=
"btn"
@
click=
"search"
>
搜索
</el-button>
</el-col>
</el-row>
</div>
<div
class=
"search-keyword"
>
<span
v-for=
"(item, index) in keywords"
:key=
"index"
class=
"label"
@
click=
"keywordClick(item, 'keyword')"
>
{{
item
.
name
}}
</span>
</div>
<el-row
style=
"padding-top: 16px"
>
<el-col
:span=
"2"
><div
class=
"area-title"
>
地区选择
</div></el-col>
<el-col
:span=
"22"
style=
"border: 1px solid rgba(0,0,0,0.12);"
>
...
...
@@ -55,7 +68,7 @@
<el-input
v-model=
"query.minPrice"
placeholder=
"请输入价格(元)"
clearable
style=
"width: 140px"
/>
~
<el-input
v-model=
"query.maxPrice"
placeholder=
"请输入价格(元)"
clearable
style=
"width: 140px"
/>
<div
class=
"btn touch"
>
确 定
</div>
<div
class=
"btn touch"
@
click=
"search"
>
确 定
</div>
</div>
</div>
</el-col>
...
...
@@ -135,6 +148,7 @@ import breadcrumb from '../components/breadcrumb'
import
homeFooter
from
'
../components/homeFooter
'
import
inquiryView
from
'
../components/inquiryView
'
import
floatBtn
from
'
../components/floatBtn
'
import
{
HttpReq
}
from
'
@/api/common
'
export
default
{
components
:
{
titleMenus
,
userLogin
,
languageSetting
,
breadcrumb
,
homeFooter
,
inquiryView
,
floatBtn
},
...
...
@@ -155,6 +169,7 @@ export default {
sort
:
false
},
areaOpts
:
[],
keywords
:
[],
supplierList
:
[
{
isGood
:
true
,
...
...
@@ -206,13 +221,32 @@ export default {
},
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
query
=
Object
.
assign
(
this
.
query
,
this
.
$route
.
params
)
HttpReq
.
webClientApi
.
homePageGetSearch
({
preview
:
false
}).
then
((
res
)
=>
{
this
.
keywords
=
res
.
data
.
suppliers
})
})
},
methods
:
{
onDictReady
(
dict
)
{
this
.
areaOpts
=
[{
value
:
undefined
,
label
:
'
全部
'
},
...
dict
.
area_province
]
},
search
()
{
HttpReq
.
webClientApi
.
productGetHardwareList
({
page
:
this
.
page
-
1
,
pageSize
:
this
.
pageSize
,
...
this
.
query
}).
then
((
res
)
=>
{
this
.
hardwareList
=
res
.
data
.
hardwareList
.
data
this
.
total
=
res
.
data
.
hardwareList
.
total
})
},
keywordClick
(
item
,
type
)
{
this
.
query
.
keyword
=
item
.
name
this
.
search
()
},
setQuertType
(
type
)
{
if
(
type
===
this
.
query
.
type
)
{
this
.
query
.
sort
=
!
this
.
query
.
sort
...
...
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