Commit 74c3c37e by 胡悦

修改搜索框

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