|
@ -49,7 +49,7 @@
|
|
|
<el-form-item class="mb22">
|
|
|
<el-button v-if="showSearchButton" type="primary" icon="el-icon-search" @click="page=1;emitLoad()">查询</el-button>
|
|
|
<el-button @click="$emit('onAdd')" v-if="configs.showAddButton" type="success" icon="el-icon-circle-plus-outline">新增</el-button>
|
|
|
<slot name="topBanner"></slot>
|
|
|
<slot name="topBanner" :data="searchForm"></slot>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
@ -116,6 +116,7 @@
|
|
|
|
|
|
<script>
|
|
|
import Tools from '../../utils/tool'
|
|
|
import _ from 'lodash'
|
|
|
export default {
|
|
|
name: 'CustomTable',
|
|
|
props: ['totalCount', 'configs', 'loading'],
|
|
@ -173,7 +174,7 @@ export default {
|
|
|
handler(n){
|
|
|
if(n){
|
|
|
this.$nextTick(v=>{
|
|
|
this.$refs.table.doLayout()
|
|
|
this.$refs.table&&this.$refs.table.doLayout()
|
|
|
})
|
|
|
}
|
|
|
},
|
|
@ -182,7 +183,6 @@ export default {
|
|
|
handler(n){
|
|
|
this.$emit('getSearchForm', n)
|
|
|
},
|
|
|
immediate: true,
|
|
|
deep: true
|
|
|
},
|
|
|
},
|