Commit 74c3c37e by 胡悦

修改搜索框

1 parent c2f714fc
...@@ -49,11 +49,8 @@ ...@@ -49,11 +49,8 @@
</template> </template>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<template <template>
name="form-slot" <slot name="form-slot">
slot-scope="scope"
>
<slot :scope="scope">
</slot> </slot>
</template> </template>
</el-form-item> </el-form-item>
...@@ -86,7 +83,7 @@ export default { ...@@ -86,7 +83,7 @@ export default {
.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;
} }
......
.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="dictDataFormList" :formList="dictDataFormList"
> >
<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>
<div class="table-btn"> <div class="table-btn">
<el-button <el-button
...@@ -53,9 +56,8 @@ ...@@ -53,9 +56,8 @@
<el-button <el-button
v-for="(j, idx) in tableParams.tableOption.btnList" v-for="(j, idx) in tableParams.tableOption.btnList"
:key="idx" :key="idx"
:type="j.type" :type="j.type || 'text'"
size="mini" :size="btn_size"
plain
@click="btnClick(j.pType, scope.scope)" @click="btnClick(j.pType, scope.scope)"
>{{j.name}}</el-button> >{{j.name}}</el-button>
</span> </span>
...@@ -163,12 +165,10 @@ export default { ...@@ -163,12 +165,10 @@ export default {
width: 200, width: 200,
btnList: [ btnList: [
{ {
type: 'primary',
name: '编辑', name: '编辑',
pType: 'edit' pType: 'edit'
}, },
{ {
type: 'danger',
name: '删除', name: '删除',
pType: 'delete' pType: 'delete'
} }
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
:formModel="searchForm" :formModel="searchForm"
:formList="dictionaryFormList" :formList="dictionaryFormList"
> >
<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>
<div class="table-btn"> <div class="table-btn">
<el-button <el-button
...@@ -53,9 +56,8 @@ ...@@ -53,9 +56,8 @@
<el-button <el-button
v-for="(j, idx) in tableParams.tableOption.btnList" v-for="(j, idx) in tableParams.tableOption.btnList"
:key="idx" :key="idx"
:type="j.type" :type="j.type || 'text'"
size="mini" :size="btn_size"
plain
@click="btnClick(j.pType, scope.scope)" @click="btnClick(j.pType, scope.scope)"
>{{j.name}}</el-button> >{{j.name}}</el-button>
</span> </span>
...@@ -155,17 +157,14 @@ export default { ...@@ -155,17 +157,14 @@ export default {
width: 250, width: 250,
btnList: [ btnList: [
{ {
type: 'primary',
name: '列表', name: '列表',
pType: 'list' pType: 'list'
}, },
{ {
type: 'primary',
name: '编辑', name: '编辑',
pType: 'edit' pType: 'edit'
}, },
{ {
type: 'danger',
name: '删除', name: '删除',
pType: 'delete' pType: 'delete'
} }
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
:formModel="searchForm" :formModel="searchForm"
:formList="menuFormList" :formList="menuFormList"
> >
<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>
<div class="table-btn"> <div class="table-btn">
<el-button <el-button
...@@ -77,9 +80,8 @@ ...@@ -77,9 +80,8 @@
<el-button <el-button
v-for="(j, idx) in tableParams.tableOption.btnList" v-for="(j, idx) in tableParams.tableOption.btnList"
:key="idx" :key="idx"
:type="j.type" :type="j.type || 'text'"
size="mini" :size="btn_size"
plain
@click="btnClick(j.pType, scope.row)" @click="btnClick(j.pType, scope.row)"
>{{j.name}}</el-button> >{{j.name}}</el-button>
</template> </template>
...@@ -188,17 +190,14 @@ export default { ...@@ -188,17 +190,14 @@ export default {
tableOption: { tableOption: {
btnList: [ btnList: [
{ {
type: 'primary',
name: '新增', name: '新增',
pType: 'btnCreate' pType: 'btnCreate'
}, },
{ {
type: 'primary',
name: '编辑', name: '编辑',
pType: 'edit' pType: 'edit'
}, },
{ {
type: 'danger',
name: '删除', name: '删除',
pType: 'delete' pType: 'delete'
} }
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
:formModel="searchForm" :formModel="searchForm"
:formList="orginizaFormList" :formList="orginizaFormList"
> >
<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>
<div class="table-btn"> <div class="table-btn">
<el-button <el-button
...@@ -74,9 +77,8 @@ ...@@ -74,9 +77,8 @@
<el-button <el-button
v-for="(j, idx) in tableParams.tableOption.btnList" v-for="(j, idx) in tableParams.tableOption.btnList"
:key="idx" :key="idx"
:type="j.type" :type="j.type || 'text'"
size="mini" :size="btn_size"
plain
@click="btnClick(j.pType, scope.row)" @click="btnClick(j.pType, scope.row)"
>{{j.name}}</el-button> >{{j.name}}</el-button>
</template> </template>
...@@ -155,17 +157,14 @@ export default { ...@@ -155,17 +157,14 @@ export default {
tableOption: { tableOption: {
btnList: [ btnList: [
{ {
type: 'primary',
name: '新增', name: '新增',
pType: 'create' pType: 'create'
}, },
{ {
type: 'primary',
name: '编辑', name: '编辑',
pType: 'edit' pType: 'edit'
}, },
{ {
type: 'danger',
name: '删除', name: '删除',
pType: 'delete' pType: 'delete'
} }
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
:formModel="searchForm" :formModel="searchForm"
:formList="roleFormList" :formList="roleFormList"
> >
<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>
<div class="table-btn"> <div class="table-btn">
<el-button <el-button
...@@ -53,9 +56,8 @@ ...@@ -53,9 +56,8 @@
<el-button <el-button
v-for="(j, idx) in tableParams.tableOption.btnList" v-for="(j, idx) in tableParams.tableOption.btnList"
:key="idx" :key="idx"
:type="j.type" :type="j.type || 'text'"
size="mini" :size="btn_size"
plain
@click="btnClick(j.pType, scope.scope)" @click="btnClick(j.pType, scope.scope)"
>{{j.name}}</el-button> >{{j.name}}</el-button>
</span> </span>
...@@ -166,12 +168,10 @@ export default { ...@@ -166,12 +168,10 @@ export default {
width: 300, width: 300,
btnList: [ btnList: [
{ {
type: 'primary',
name: '编辑', name: '编辑',
pType: 'edit' pType: 'edit'
}, },
{ {
type: 'danger',
name: '删除', name: '删除',
pType: 'delete' pType: 'delete'
} }
......
...@@ -26,7 +26,10 @@ ...@@ -26,7 +26,10 @@
:formModel="searchForm" :formModel="searchForm"
:formList="userFormList" :formList="userFormList"
> >
<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"
...@@ -39,7 +42,7 @@ ...@@ -39,7 +42,7 @@
icon="el-icon-refresh" icon="el-icon-refresh"
@click="refresh" @click="refresh"
>重置</el-button> >重置</el-button>
</slot> </span>
</search-form> </search-form>
<div class="table-btn"> <div class="table-btn">
<el-button <el-button
...@@ -73,9 +76,8 @@ ...@@ -73,9 +76,8 @@
<el-button <el-button
v-for="(j, idx) in tableParams.tableOption.btnList" v-for="(j, idx) in tableParams.tableOption.btnList"
:key="idx" :key="idx"
:type="j.type" :type="j.type || 'text'"
size="mini" :size="btn_size"
plain
@click="btnClick(j.pType, scope.scope)" @click="btnClick(j.pType, scope.scope)"
>{{j.name}}</el-button> >{{j.name}}</el-button>
</span> </span>
...@@ -194,12 +196,10 @@ export default { ...@@ -194,12 +196,10 @@ export default {
tableOption: { tableOption: {
btnList: [ btnList: [
{ {
type: 'primary',
name: '编辑', name: '编辑',
pType: 'edit' pType: 'edit'
}, },
{ {
type: 'danger',
name: '删除', name: '删除',
pType: 'delete' pType: 'delete'
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!