Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
06e7af88
authored
Sep 23, 2022
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
22401b9c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
src/views/Goods/brand.vue
src/views/Goods/brand.vue
View file @
06e7af88
...
@@ -3,13 +3,11 @@
...
@@ -3,13 +3,11 @@
<div
class=
"brand-con"
>
<div
class=
"brand-con"
>
<el-form
:inline=
"true"
:model=
"formParam"
class=
"demo-form-inline"
>
<el-form
:inline=
"true"
:model=
"formParam"
class=
"demo-form-inline"
>
<el-form-item
label=
"品牌"
>
<el-form-item
label=
"品牌"
>
<el-autocomplete
v-model=
"formParam.brand_name"
:trigger-on-focus=
"false"
@
keyup
.
enter
.
native=
"onSubmit"
:fetch-suggestions=
"querySearchAsyncBrand"
placeholder=
"请输入品牌"
clearable
></el-autocomplete>
<el-autocomplete
v-model=
"formParam.brand_name"
:trigger-on-focus=
"false"
@
keyup
.
enter
.
native=
"submit"
:fetch-suggestions=
"querySearchAsyncBrand"
placeholder=
"请输入品牌"
clearable
></el-autocomplete>
</el-form-item>
</el-form-item>
<el-form-item
label=
"关键词"
>
<el-form-item
label=
"关键词"
>
<el-input
v-model=
"formParam.keyword"
placeholder=
"请输入关键词"
@
keyup
.
enter
.
native=
"submit"
clearable
></el-input>
<el-input
v-model=
"formParam.keyword"
placeholder=
"请输入关键词"
@
keyup
.
enter
.
native=
"submit"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"submit"
>
搜索
</el-button>
<el-button
type=
"primary"
@
click=
"submit"
>
搜索
</el-button>
</el-form-item>
</el-form-item>
...
@@ -69,7 +67,6 @@
...
@@ -69,7 +67,6 @@
<el-input
v-model=
"scope.row.remark"
placeholder=
"点击修改"
></el-input>
<el-input
v-model=
"scope.row.remark"
placeholder=
"点击修改"
></el-input>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
...
@@ -86,15 +83,13 @@
...
@@ -86,15 +83,13 @@
<
script
>
<
script
>
import
Vue
from
'vue'
;
import
Vue
from
'vue'
;
import
Menu
from
"@/components/menu.vue"
;
import
Menu
from
"@/components/menu.vue"
;
import
Tool
from
'../../tool'
import
{
Autocomplete
,
Button
,
Dialog
,
Form
,
FormItem
,
Input
,
Message
,
MessageBox
,
Option
,
Pagination
,
Select
,
Table
,
TableColumn
}
from
'element-ui'
import
{
Form
,
FormItem
,
Select
,
Option
,
Input
,
Button
,
Table
,
TableColumn
,
Message
,
MessageBox
,
Dialog
,
Pagination
,
Autocomplete
}
from
'element-ui'
Vue
.
prototype
.
$message
=
Message
Vue
.
prototype
.
$message
=
Message
Vue
.
use
(
Button
).
use
(
Form
).
use
(
Select
).
use
(
Option
).
use
(
Input
).
use
(
FormItem
).
use
(
Dialog
).
use
(
Pagination
).
use
(
Autocomplete
)
Vue
.
use
(
Button
).
use
(
Form
).
use
(
Select
).
use
(
Option
).
use
(
Input
).
use
(
FormItem
).
use
(
Dialog
).
use
(
Pagination
).
use
(
Autocomplete
)
Vue
.
use
(
TableColumn
).
use
(
Table
)
Vue
.
use
(
TableColumn
).
use
(
Table
)
export
default
{
export
default
{
name
:
"brand"
,
name
:
"brand"
,
data
()
{
data
()
{
return
{
return
{
dialogVisible
:
false
,
dialogVisible
:
false
,
...
@@ -127,7 +122,7 @@ export default {
...
@@ -127,7 +122,7 @@ export default {
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
this
.
tableData
=
res
.
data
.
list
||
[];
this
.
tableData
=
res
.
data
.
list
||
[];
this
.
total
=
Number
(
res
.
data
.
total
)
||
0
;
this
.
total
=
Number
(
res
.
data
.
count
)
||
0
;
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
message
:
res
.
msg
,
message
:
res
.
msg
,
...
...
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