Commit 8b0f3772 by 胡悦

修改搜索框

1 parent a43f6108
...@@ -42,8 +42,8 @@ ...@@ -42,8 +42,8 @@
v-model="formModel[item.prop]" v-model="formModel[item.prop]"
type="daterange" type="daterange"
range-separator="至" range-separator="至"
start-placeholder="开始日期" :start-placeholder="item.startPlaceholder || '开始日期'"
end-placeholder="结束日期" :end-placeholder="item.endPlaceholder || '结束日期'"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
:picker-options="item.pickerOptions || {}" :picker-options="item.pickerOptions || {}"
> >
...@@ -81,23 +81,16 @@ ...@@ -81,23 +81,16 @@
> >
</el-date-picker> </el-date-picker>
</template> </template>
<template
name="self"
slot-scope="scope"
>
<slot :scope="scope">
</slot>
</template>
</template> </template>
</el-form-item> </el-form-item>
<el-form-item> <slot name="self">
<template
name="form-slot"
slot-scope="scope"
>
<slot :scope="scope">
</slot> </slot>
<el-form-item>
<slot name="form-slot">
<template>
</template> </template>
</slot>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -123,18 +116,18 @@ export default { ...@@ -123,18 +116,18 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
.search-form { .search-form {
padding: 20px 20px 0; padding: 20px;
.el-form-item { .el-form-item {
display: inline-block; display: inline-block;
// float: left; // float: left;
// width: 50%; width: calc(50% - 20px);
max-width: 420px; max-width: 420px;
margin-right: 18px; margin-right: 18px;
} }
.el-form-item__content { .el-form-item__content {
// width: 100%; width: 100%;
} }
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -10,6 +10,10 @@ ...@@ -10,6 +10,10 @@
margin-left: 20px; margin-left: 20px;
} }
.inline-b {
display: inline-block;
}
.table-btn { .table-btn {
margin-bottom: 20px; margin-bottom: 20px;
} }
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
:formModel="searchForm" :formModel="searchForm"
:formList="todoFormList" :formList="todoFormList"
> >
<slot name="form-slot"> <span
class="inline-b"
slot="form-slot"
>
<el-button <el-button
type="primary" type="primary"
:size="btn_size" :size="btn_size"
...@@ -18,7 +21,7 @@ ...@@ -18,7 +21,7 @@
:size="btn_size" :size="btn_size"
icon="el-icon-refresh" icon="el-icon-refresh"
>重置</el-button> >重置</el-button>
</slot> </span>
</search-form> </search-form>
<h3>上牌资料信息 <h3>上牌资料信息
<div class="pull-right"> <div class="pull-right">
...@@ -58,16 +61,16 @@ export default { ...@@ -58,16 +61,16 @@ export default {
searchDataForm: {}, searchDataForm: {},
todoFormList: [ todoFormList: [
{ {
label: '关键字:',
type: 'input', type: 'input',
inputType: 'text', inputType: 'text',
prop: 'keywords', prop: 'keywords',
placeholder: '特约店编码|店名称 | 设备号 | 车型', placeholder: '特约店编码|店名称 | 设备号 | 车型',
}, },
{ {
label: '报警时间:',
type: 'daterange', type: 'daterange',
prop: 'daterange', prop: 'daterange',
startPlaceholder: '报警开始时间',
endPlaceholder: '报警结束时间'
// pickerOptions: { // pickerOptions: {
// disabledDate(time) { // disabledDate(time) {
// return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime() // return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
...@@ -168,12 +171,3 @@ export default { ...@@ -168,12 +171,3 @@ export default {
}, },
} }
</script> </script>
<style>
.removeAlarm .el-form .el-input__inner {
width: 300px;
}
.removeAlarm .el-range-separator {
width: 10%;
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
:formModel="searchForm" :formModel="searchForm"
:formList="reportFormList" :formList="reportFormList"
> >
<slot name="form-slot"> <span
class="inline-b"
slot="form-slot"
>
<el-button <el-button
type="primary" type="primary"
:size="btn_size" :size="btn_size"
...@@ -19,7 +22,7 @@ ...@@ -19,7 +22,7 @@
icon="el-icon-refresh" icon="el-icon-refresh"
>重置</el-button> >重置</el-button>
</slot> </span>
</search-form> </search-form>
<h3> <h3>
有效试驾信息 有效试驾信息
...@@ -64,7 +67,7 @@ export default { ...@@ -64,7 +67,7 @@ export default {
type: 'singleDate', type: 'singleDate',
dateType: 'month', dateType: 'month',
prop: 'date', prop: 'date',
placeholder: '月份', placeholder: '请选择年月',
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
return time.getTime() < new Date(_this.date).getTime() return time.getTime() < new Date(_this.date).getTime()
......
<template> <template>
<div class="system-container vehicle"> <div class="system-container special-shop">
<div class="container"> <div class="container">
<search-form <search-form
class="searchTop border-shadow" class="searchTop border-shadow"
:formModel="searchForm" :formModel="searchForm"
:formList="shopFormList" :formList="shopFormList"
> >
<slot name="self"> <span slot="self">
<el-form-item>
<el-select <el-select
v-model="searchForm.area" v-model="searchForm.area"
placeholder="请选择" placeholder="请选择大区"
@change="change('area', searchForm.area)" @change="change('area', searchForm.area)"
clearable clearable
> >
...@@ -23,7 +24,7 @@ ...@@ -23,7 +24,7 @@
</el-select> </el-select>
<el-select <el-select
v-model="searchForm.province" v-model="searchForm.province"
placeholder="请选择" placeholder="请选择省"
@change="change('province', searchForm.province)" @change="change('province', searchForm.province)"
clearable clearable
> >
...@@ -37,7 +38,7 @@ ...@@ -37,7 +38,7 @@
</el-select> </el-select>
<el-select <el-select
v-model="searchForm.city" v-model="searchForm.city"
placeholder="请选择" placeholder="请选择市"
clearable clearable
> >
<el-option <el-option
...@@ -48,10 +49,10 @@ ...@@ -48,10 +49,10 @@
> >
</el-option> </el-option>
</el-select> </el-select>
</slot> </el-form-item>
<slot name="form-slot"> </span>
<span slot="form-slot">
<el-button <el-button
style="margin-left: 20px;"
type="primary" type="primary"
:size="btn_size" :size="btn_size"
icon="el-icon-search" icon="el-icon-search"
...@@ -63,7 +64,7 @@ ...@@ -63,7 +64,7 @@
icon="el-icon-refresh" icon="el-icon-refresh"
@click="reset" @click="reset"
>重置</el-button> >重置</el-button>
</slot> </span>
</search-form> </search-form>
<h3> <h3>
<el-button <el-button
...@@ -119,7 +120,6 @@ export default { ...@@ -119,7 +120,6 @@ export default {
searchForm: {}, searchForm: {},
shopFormList: [ shopFormList: [
{ {
label: '关键字:',
type: 'input', type: 'input',
inputType: 'text', inputType: 'text',
prop: 'term', prop: 'term',
...@@ -240,9 +240,9 @@ export default { ...@@ -240,9 +240,9 @@ export default {
}) })
break break
case 'delete': case 'delete':
deleteSpecialShop({shopId}).then(res => { deleteSpecialShop({ shopId }).then(res => {
const { code, message } = res; const { code, message } = res;
if(code == 200) { if (code == 200) {
this.$refs.shopTable.refreshTable() this.$refs.shopTable.refreshTable()
} else { } else {
this.$message({ this.$message({
...@@ -271,13 +271,13 @@ export default { ...@@ -271,13 +271,13 @@ export default {
</script> </script>
<style scope> <style scope>
.search-form .el-form-item { .special-shop .el-select {
max-width: none !important; width: 33%;
} }
.el-select { /* .search-form .el-form-item {
width: auto; max-width: none !important;
} }
.vehicle .el-form .el-select .el-input { .vehicle .el-form .el-select .el-input {
width: 150px; width: 150px;
} } */
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
:formModel="searchForm" :formModel="searchForm"
:formList="checkFormList" :formList="checkFormList"
> >
<slot name="form-slot"> <span
class="inline-b"
slot="form-slot"
>
<el-button <el-button
type="primary" type="primary"
:size="btn_size" :size="btn_size"
...@@ -19,7 +22,7 @@ ...@@ -19,7 +22,7 @@
icon="el-icon-refresh" icon="el-icon-refresh"
@click="refresh" @click="refresh"
>重置</el-button> >重置</el-button>
</slot> </span>
</search-form> </search-form>
<basic-table <basic-table
...@@ -90,14 +93,12 @@ export default { ...@@ -90,14 +93,12 @@ export default {
}, },
checkFormList: [ checkFormList: [
{ {
label: '关键字:',
type: 'input', type: 'input',
inputType: 'text', inputType: 'text',
prop: 'keywords', prop: 'keywords',
placeholder: '特约店编码|店名称', placeholder: '特约店编码|店名称',
}, },
{ {
label: '审核状态:',
type: 'select', type: 'select',
prop: 'approvalStatus', prop: 'approvalStatus',
placeholder: '请选择审核状态', placeholder: '请选择审核状态',
...@@ -235,7 +236,7 @@ export default { ...@@ -235,7 +236,7 @@ export default {
updateFenceApproval() { updateFenceApproval() {
updateFenceApproval(this.approvalParams).then(res => { updateFenceApproval(this.approvalParams).then(res => {
const { code, message } = res; const { code, message } = res;
if(code == 200) { if (code == 200) {
this.$message({ this.$message({
type: 'success', type: 'success',
message: '操作成功!' message: '操作成功!'
...@@ -258,9 +259,3 @@ export default { ...@@ -258,9 +259,3 @@ export default {
}, },
} }
</script> </script>
<style>
.testDrive .el-form .el-input__inner {
width: 300px;
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
:formModel="searchForm" :formModel="searchForm"
:formList="todoFormList" :formList="todoFormList"
> >
<slot name="form-slot"> <span
class="inline-b"
slot="form-slot"
>
<el-button <el-button
type="primary" type="primary"
:size="btn_size" :size="btn_size"
...@@ -19,7 +22,7 @@ ...@@ -19,7 +22,7 @@
icon="el-icon-refresh" icon="el-icon-refresh"
@click="reset" @click="reset"
>重置</el-button> >重置</el-button>
</slot> </span>
</search-form> </search-form>
<basic-table <basic-table
ref="todoTable" ref="todoTable"
...@@ -60,11 +63,10 @@ import { getTodoList } from 'services/approval' ...@@ -60,11 +63,10 @@ import { getTodoList } from 'services/approval'
export default { export default {
data() { data() {
return { return {
searchForm: {}, searchForm: { status: 1 },
ITEMTYPE: this.$Constants.ITEM_TYPE, ITEMTYPE: this.$Constants.ITEM_TYPE,
todoFormList: [ todoFormList: [
{ {
label: '处理状态:',
type: 'select', type: 'select',
prop: 'status', prop: 'status',
placeholder: '请选择', placeholder: '请选择',
...@@ -80,7 +82,6 @@ export default { ...@@ -80,7 +82,6 @@ export default {
}] }]
}, },
{ {
label: '事项类型:',
type: 'select', type: 'select',
prop: 'busType', prop: 'busType',
placeholder: '请选择', placeholder: '请选择',
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
:formModel="searchForm" :formModel="searchForm"
:formList="vehicleFormList" :formList="vehicleFormList"
> >
<slot name="form-slot"> <span
class="sinline-b"
slot="form-slot"
>
<el-button <el-button
type="primary" type="primary"
:size="btn_size" :size="btn_size"
...@@ -18,7 +21,7 @@ ...@@ -18,7 +21,7 @@
:size="btn_size" :size="btn_size"
icon="el-icon-refresh" icon="el-icon-refresh"
>重置</el-button> >重置</el-button>
</slot> </span>
</search-form> </search-form>
<h3>试驾车辆信息 <h3>试驾车辆信息
<div class="pull-right"> <div class="pull-right">
...@@ -192,7 +195,6 @@ export default { ...@@ -192,7 +195,6 @@ export default {
searchForm: {}, searchForm: {},
vehicleFormList: [ vehicleFormList: [
{ {
label: '关键字:',
type: 'input', type: 'input',
inputType: 'text', inputType: 'text',
prop: 'searchKey', prop: 'searchKey',
...@@ -561,9 +563,3 @@ export default { ...@@ -561,9 +563,3 @@ export default {
}, },
} }
</script> </script>
\ No newline at end of file \ No newline at end of file
<style scope>
.vehicle .el-form .el-input__inner {
width: 350px;
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
:formModel="searchForm" :formModel="searchForm"
:formList="submitFormList" :formList="submitFormList"
> >
<slot name="form-slot"> <span
class="inline-b"
slot="form-slot"
>
<el-button <el-button
type="primary" type="primary"
:size="btn_size" :size="btn_size"
...@@ -19,7 +22,7 @@ ...@@ -19,7 +22,7 @@
icon="el-icon-refresh" icon="el-icon-refresh"
@click="reset" @click="reset"
>重置</el-button> >重置</el-button>
</slot> </span>
</search-form> </search-form>
<h3>上牌资料信息</h3> <h3>上牌资料信息</h3>
<basic-table <basic-table
...@@ -65,24 +68,21 @@ export default { ...@@ -65,24 +68,21 @@ export default {
searchForm: {}, searchForm: {},
submitFormList: [ submitFormList: [
{ {
label: '关键字:',
type: 'input', type: 'input',
inputType: 'text', inputType: 'text',
prop: 'keywords', prop: 'keywords',
placeholder: '特约店编码|店名称|围栏名称', placeholder: '特约店编码|店名称|围栏名称',
}, },
{ {
label: '提交状态:',
type: 'select', type: 'select',
prop: 'submitStatus', prop: 'submitStatus',
placeholder: '请选择', placeholder: '请选择提交状态',
options: [] options: []
}, },
{ {
label: '审核状态:',
type: 'select', type: 'select',
prop: 'approvalStatus', prop: 'approvalStatus',
placeholder: '请选择', placeholder: '请选择审核状态',
options: [] options: []
} }
], ],
...@@ -183,9 +183,3 @@ export default { ...@@ -183,9 +183,3 @@ export default {
}, },
} }
</script> </script>
\ No newline at end of file \ No newline at end of file
<style>
.vehicle .el-form .el-input__inner {
width: 300px;
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
:formModel="searchForm" :formModel="searchForm"
:formList="checkFormList" :formList="checkFormList"
> >
<slot name="form-slot"> <span
class="inline-b"
slot="form-slot"
>
<el-button <el-button
type="primary" type="primary"
:size="btn_size" :size="btn_size"
...@@ -19,7 +22,7 @@ ...@@ -19,7 +22,7 @@
icon="el-icon-refresh" icon="el-icon-refresh"
@click="reset" @click="reset"
>重置</el-button> >重置</el-button>
</slot> </span>
</search-form> </search-form>
<h3>上牌资料审核 <h3>上牌资料审核
<el-button <el-button
...@@ -81,24 +84,21 @@ export default { ...@@ -81,24 +84,21 @@ export default {
searchForm: {}, searchForm: {},
checkFormList: [ checkFormList: [
{ {
label: '关键字:',
type: 'input', type: 'input',
inputType: 'text', inputType: 'text',
prop: 'keywords', prop: 'keywords',
placeholder: '特约店编码|店名称|围栏名称', placeholder: '特约店编码|店名称|围栏名称',
}, },
// {
// type: 'select',
// prop: 'submitStatus',
// placeholder: '请选择',
// options: []
// },
{ {
label: '提交状态:',
type: 'select',
prop: 'submitStatus',
placeholder: '请选择',
options: []
},
{
label: '审核状态:',
type: 'select', type: 'select',
prop: 'approvalStatus', prop: 'approvalStatus',
placeholder: '请选择', placeholder: '请选择审核状态',
options: [] options: []
} }
], ],
...@@ -220,9 +220,3 @@ export default { ...@@ -220,9 +220,3 @@ export default {
}, },
} }
</script> </script>
<style>
.vehicle .el-form .el-input__inner {
width: 300px;
}
</style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!