| | |
| | | currentPage: 1, |
| | | total: 50, |
| | | }, |
| | | simplePage:{ |
| | | simplePage: { |
| | | currentPage: 1, |
| | | total: 100, |
| | | pagerCount:4, |
| | | layout:"prev, pager, next" |
| | | pagerCount: 4, |
| | | layout: "prev, pager, next" |
| | | }, |
| | | //表格树 |
| | | form: {}, |
| | |
| | | editBtn: false, |
| | | delBtn: false, |
| | | selection: true, |
| | | tip:false, |
| | | tip: false, |
| | | calcHeight: 15, |
| | | indexFixed: false, |
| | | menuFixed: false, |
| | |
| | | TreeSelectList: [] |
| | | } |
| | | }, |
| | | watch:{ |
| | | parentHeight:{ |
| | | watch: { |
| | | parentHeight: { |
| | | handler(newval) { |
| | | if(newval >50){ |
| | | this.option.height=newval; |
| | | if (newval > 50) { |
| | | this.option.height = newval; |
| | | //doLayout不生效,手动设置表格高度 |
| | | this.$children[0].$children[1].$children[1].$children[0].$el.style.height=newval+'px'; |
| | | this.$children[0].$children[1].$children[1].$children[0].$el.style.height = newval + 'px'; |
| | | /*this.$nextTick(() => { |
| | | if (this.$refs.dataTable && this.$refs.dataTable.doLayout) { |
| | | this.$refs.dataTable.doLayout(); |
| | |
| | | } |
| | | } |
| | | }, |
| | | isShow:{ |
| | | isShow: { |
| | | handler(newval) { |
| | | if(newval && this.$el.clientHeight>50) { |
| | | if (newval && this.$el.clientHeight > 50) { |
| | | this.parentHeight = this.$el.clientHeight - this.$children[0].$children[1].$children[0].$el.clientHeight - this.$children[0].$children[2].$el.clientHeight - 5; |
| | | } |
| | | } |