| | |
| | | }, |
| | | created() { |
| | | this.getParams(); |
| | | |
| | | // console.log('referConfig:') |
| | | // console.log(this.referConfig) |
| | | }, |
| | | mounted() { |
| | | if(this.referConfig.options.page){ |
| | |
| | | if(!tableConfig){ |
| | | this.$message.error( '没有定义参照的表格配置'); |
| | | } |
| | | //this.page.pageSize=tableConfig.page.limit || 10; |
| | | if(!paramsData){ |
| | | paramsData = { |
| | | currentUserReferModelKey:this.options.currentUserReferModelKey, |
| | |
| | | queryParams[key] = this.options.rootParams[key]; |
| | | } |
| | | } |
| | | if(this.options.sortField){ |
| | | queryParams['sort'] = this.options.sortField;//字段 |
| | | } |
| | | if(this.options.sortType){ |
| | | queryParams['order'] = this.options.sortType;//方法 |
| | | } |
| | | if (this.options.conditionParams) { |
| | | //说明是扩展属性 |
| | | for (var key in this.options.conditionParams) { |