| | |
| | | }, |
| | | created() { |
| | | this.getParams(); |
| | | |
| | | // console.log('referConfig:') |
| | | // console.log(this.referConfig) |
| | | }, |
| | | mounted() { |
| | | console.log('referrTable') |
| | | if(this.referConfig.options.page){ |
| | | this.page.pageSize=this.referConfig.options.page.limit || this.referConfig.options.page.pageSize; |
| | | this.page.currentPage=this.referConfig.options.page.page || this.referConfig.options.page.currentPage; |
| | | } |
| | | this.$nextTick(() => { |
| | | this.$refs.referCrud.doLayout() |
| | | }) |
| | | }, |
| | | |
| | | computed:{ |
| | |
| | | if(this.options.displayTable){ |
| | | //说明是使用平台的表格 |
| | | getTableDefinedUrl({btmType:(this.options.referBo||this.options.referType),code:this.options.displayTable,isMuti:this.isMuti},this.tableDefinedUrl).then(result => { |
| | | console.log('result',result) |
| | | if(result.success){ |
| | | var queryScheme = result.querySchema; |
| | | if(!validatenull(queryScheme) && validatenull(this.options.queryScheme)){ |
| | |
| | | this.params=paramsData; |
| | | }, |
| | | setValue(){ |
| | | console.log('确定') |
| | | if(this.selectionList.length==0){ |
| | | this.$message.warning( '没有选择数据'); |
| | | return false; |