Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
ybf
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
xulili
ybf
Commits
38a69f35
Commit
38a69f35
authored
Feb 05, 2020
by
Z
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Z: Dot: store strict search done.next unstrict search.
parent
c0c3ef7d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
4 deletions
+41
-4
store.js
ybf_admin/src/api/in/store.js
+8
-0
store.vue
ybf_admin/src/pages/in/contact/store.vue
+33
-4
No files found.
ybf_admin/src/api/in/store.js
View file @
38a69f35
...
...
@@ -57,3 +57,11 @@ export function ApiStoreGetBarList(inData) {
})
}
export
function
ApiStoreSearch
(
inData
)
{
return
request
({
url
:
'/admin/auth/stall/getStallByKeyWords'
,
method
:
'get'
,
params
:
inData
})
}
ybf_admin/src/pages/in/contact/store.vue
View file @
38a69f35
...
...
@@ -12,12 +12,17 @@
<el-form-item
label=
"关键词"
>
<el-input
size=
"small"
v-model=
"
data.search.key
s"
v-model=
"
zdata.searchPost.keyword
s"
style=
"width:160px"
placeholder=
"请输入关键词"
/>
</el-form-item>
<el-button
class=
"button buttondark"
size=
"small"
style=
"margin-top:4px;"
>
搜索
</el-button>
<el-button
class=
"button buttondark"
size=
"small"
@
click=
"storeSearch"
style=
"margin-top:4px;"
>
搜索
</el-button>
</el-form>
</div>
<!-- 列表区 -->
...
...
@@ -274,7 +279,9 @@ import {
ApiStoreGetStoreDetail
,
ApiStoreDelStore
,
ApiStoreGetUnGroupManList
,
ApiStoreEditStore
ApiStoreEditStore
,
ApiStoreGetBarList
,
ApiStoreSearch
}
from
"@api/in/store"
;
import
axios
from
"axios"
;
const
zlog
=
console
.
log
.
bind
(
console
);
...
...
@@ -293,6 +300,9 @@ export default {
}
},
zdata
:
{
searchPost
:
{
keywords
:
""
},
see
:
{
storeName
:
"storeName"
,
storeType
:
"storeType"
,
...
...
@@ -365,7 +375,8 @@ export default {
name
:
"柜组二号"
}
],
unGroupMan
:
[]
unGroupMan
:
[],
bar
:
[]
},
page
:
{
...
...
@@ -500,6 +511,7 @@ export default {
})
.
catch
(
err
=>
{});
},
storeGetBarList
()
{},
matchManIdAndManName
(
inId
)
{
let
manList
=
this
.
list
.
man
;
let
manName
=
"未知"
;
...
...
@@ -532,6 +544,23 @@ export default {
}
}
},
storeSearch
()
{
let
postData
=
{
keyWords
:
this
.
zdata
.
searchPost
.
keywords
};
if
(
this
.
zdata
.
searchPost
.
keywords
==
""
)
{
this
.
storeGetMainList
();
}
else
{
ApiStoreSearch
(
postData
)
.
then
(
res
=>
{
let
result
=
[];
console
.
log
(
"--->res"
,
res
);
result
.
push
(
res
.
data
.
stallInfo
);
this
.
list
.
main
=
result
;
})
.
catch
(
err
=>
{});
}
},
storeGetMainList
()
{
// zlog("--->In Get API!");
let
postData
=
{
...
...
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