| | |
| | | @selection-change="selectChange"> |
| | | <!--top区域按钮--> |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <dynamic-button :butttonList="componentVO.buttons" :selectList="selectList" LocationType="top" |
| | | <dynamic-button :componentVO="componentVO" :butttonList="componentVO.buttons" :dataStore="selectList" LocationType="top" :sourceData="sourceData" |
| | | type="table"></dynamic-button> |
| | | </template> |
| | | |
| | | <!--menu区域按钮--> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <dynamic-button :butttonList="componentVO.buttons" :scope="scope" :selectList="selectList" LocationType="menu" |
| | | <dynamic-button :componentVO="componentVO" :butttonList="componentVO.buttons" :scope="scope" :dataStore="selectList" :sourceData="sourceData" LocationType="menu" |
| | | type="table"></dynamic-button> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | |
| | | <script> |
| | | import {validatenull} from '@/util/validate' |
| | | import {getList} from '@/api/base/ui' |
| | | |
| | | export default { |
| | | name: "dynamic-table", |
| | | props: { |
| | |
| | | }, |
| | | selectChange(row) { |
| | | this.selectList = row; |
| | | }, |
| | | searchChange(form,done){ |
| | | console.log(form) |
| | | done() |
| | | this.$emit("setDataStore", { |
| | | area: this.areasName, |
| | | type:this.componentVO.uiComponentType, |
| | | dataStore:row |
| | | }); |
| | | }, |
| | | searchChange(form,done){ |
| | | done(); |
| | | }, |
| | | handleRefresh(){ |
| | | this.$refs.dataTable.refreshTable(); |
| | | } |
| | | } |
| | | } |