| | |
| | | :page.sync="pageType" |
| | | :table-loading="loading" |
| | | @row-click="rowClickChange" |
| | | @search-change='searchChange' |
| | | @selection-change="selectChange"> |
| | | <!--top区域按钮--> |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {treeMenu} from '@/api/treeMyMenu' |
| | | import {validatenull} from '@/util/validate' |
| | | export default { |
| | | name: "dynamic-table", |
| | |
| | | }); |
| | | }, |
| | | pageType() { |
| | | return this.areasName.indexOf('westArea') == 0 ? this.simplePage : this.page; |
| | | return this.areasName === 'westArea' ? this.simplePage : this.page; |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | this.parentHeight = this.$el.clientHeight - this.$children[0].$children[1].$children[0].$el.clientHeight - this.$children[0].$children[2].$el.clientHeight - 5; |
| | | } |
| | | } |
| | | }, |
| | | sourceData:{ |
| | | handler(newval) { |
| | | //源数据有变化时变更当前区域数据 |
| | | console.log(this.areasName); |
| | | console.log(newval); |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | }, |
| | | selectChange(row) { |
| | | this.selectList = row; |
| | | }, |
| | | searchChange(form,done){ |
| | | console.log(form) |
| | | done() |
| | | this.$emit("setDataStore", { |
| | | area: this.areasName, |
| | | dataStore:row |