/** * @Description: * @author cxg * @date 2022/03/29 */ <template> <div class="XbomTable-com"> <dee-as-com ref="XbomTable" :lay-config="{ typeName: 'DxPart', layKey: '292a87d8-4fa4-4719-a54c-81394694fc5d' }" @row-click="rowClickFunction" /> </div> </template> <script> export default { componentName: '部件列表', name: 'XbomTable', components: {}, data() { return { emitMethods: [ { methods: 'getData', methodsName: '获取列表数据' }, { methods: 'getServerData', methodsName: '更新当前分页数据' } ], evenList: [ { even: 'row-click', name: '行点击事件' }, { even: 'freshData', name: '列表数据更新' } ] } }, computed: {}, mounted() {}, methods: { getData(val, ori) { console.log('传递的条件', val) console.log('原始的条件', val) console.log(this.$refs.XbomTable.$refs.asCom.getData) this.$refs.XbomTable.$refs.asCom.getData(val, ori) }, rowClickFunction(data) { this.$emit('row-click', data.row) } } } </script> <style lang='scss'> </style>