Commit 06e7af88 by LJM

bug

parent 22401b9c
Showing with 3 additions and 8 deletions
...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment