lincl 3 tahun lalu
induk
melakukan
6e436afc9d
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      src/components/TablePage/index.vue

+ 3 - 3
src/components/TablePage/index.vue

@ -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
		},
	},