Commit cadd7cd2 authored by zhanglw's avatar zhanglw

页面调整

parent b64f8888
<template> <template>
<div class="search-box"> <div class="search-box">
<div class="search-btn"> <div class="search-btn">
<el-input v-model="query.keyword" placeholder="请输入关键字" style="width: 600px" /> <el-input v-model="query.keyword" clearable placeholder="请输入关键字" style="width: 600px" />
<el-select v-model="query.productType" placeholder="全部产品" style="width: 160px"> <el-select v-model="query.productType" placeholder="全部产品" style="width: 160px">
<el-option v-for="item in [{value:undefined,label:'全部产品'}, ...dict.product_type]" :key="item.value" :label="item.label" :value="item.value" /> <el-option v-for="item in [{value:undefined,label:'全部产品'}, ...dict.product_type]" :key="item.value" :label="item.label" :value="item.value" />
</el-select> </el-select>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<div class="search-tools"> <div class="search-tools">
<el-row :gutter="18"> <el-row :gutter="18">
<el-col :span="18"> <el-col :span="18">
<el-input v-model="query.keyword" placeholder="请输入关键字" /> <el-input v-model="query.keyword" clearable placeholder="请输入关键字" />
</el-col> </el-col>
<el-col :span="3"> <el-col :span="3">
<el-select v-model="query.productType" placeholder="全部产品"> <el-select v-model="query.productType" placeholder="全部产品">
...@@ -199,6 +199,7 @@ export default { ...@@ -199,6 +199,7 @@ export default {
defaultImgSystem: default_system, defaultImgSystem: default_system,
imgSrcStart: process.env.VUE_APP_BASE_API, imgSrcStart: process.env.VUE_APP_BASE_API,
query: { query: {
keyword: '',
area: undefined, area: undefined,
type: undefined, type: undefined,
sort: false sort: false
...@@ -351,7 +352,7 @@ export default { ...@@ -351,7 +352,7 @@ export default {
this.areaOpts = [{ value: undefined, label: '全部' }, ...dict.area_province] this.areaOpts = [{ value: undefined, label: '全部' }, ...dict.area_province]
}, },
keywordClick(item, type) { keywordClick(item, type) {
this.query.keyword = item
}, },
setQuertType(type) { setQuertType(type) {
if (type === this.query.type) { if (type === this.query.type) {
......
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 to comment