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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
src/views/Goods/brand.vue
src/views/Goods/brand.vue
View file @
06e7af88
...
...
@@ -3,13 +3,11 @@
<div
class=
"brand-con"
>
<el-form
:inline=
"true"
:model=
"formParam"
class=
"demo-form-inline"
>
<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
label=
"关键词"
>
<el-input
v-model=
"formParam.keyword"
placeholder=
"请输入关键词"
@
keyup
.
enter
.
native=
"submit"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"submit"
>
搜索
</el-button>
</el-form-item>
...
...
@@ -21,7 +19,7 @@
<a
:href=
"downHref"
ref=
"downs"
target=
"_blank"
style=
"display:none"
>
下载
</a>
</div>
<div
class=
"data-box th-all"
v-if=
"tableData"
>
<el-table
:data=
"tableData"
border
max-height=
"600"
@
selection-change=
"handleSelectionChange"
>
<el-table
:data=
"tableData"
border
max-height=
"600"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
fixed
type=
"selection"
width=
"37"
></el-table-column>
<el-table-column
prop=
"internal_standard_name"
label=
"内部标准名称"
min-width=
"15%"
>
</el-table-column>
...
...
@@ -69,7 +67,6 @@
<el-input
v-model=
"scope.row.remark"
placeholder=
"点击修改"
></el-input>
</
template
>
</el-table-column>
</el-table>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
...
...
@@ -86,15 +83,13 @@
<
script
>
import
Vue
from
'vue'
;
import
Menu
from
"@/components/menu.vue"
;
import
Tool
from
'../../tool'
import
{
Form
,
FormItem
,
Select
,
Option
,
Input
,
Button
,
Table
,
TableColumn
,
Message
,
MessageBox
,
Dialog
,
Pagination
,
Autocomplete
}
from
'element-ui'
import
{
Autocomplete
,
Button
,
Dialog
,
Form
,
FormItem
,
Input
,
Message
,
MessageBox
,
Option
,
Pagination
,
Select
,
Table
,
TableColumn
}
from
'element-ui'
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
(
TableColumn
).
use
(
Table
)
export
default
{
name
:
"brand"
,
data
()
{
return
{
dialogVisible
:
false
,
...
...
@@ -127,7 +122,7 @@ export default {
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
tableData
=
res
.
data
.
list
||
[];
this
.
total
=
Number
(
res
.
data
.
total
)
||
0
;
this
.
total
=
Number
(
res
.
data
.
count
)
||
0
;
}
else
{
this
.
$message
({
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