| | |
| | | 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.selectionList.forEach((item,_index) =>{ |
| | | if(isMutiValue){ |
| | | var valueFieldArray = _that.props.value.split(","); |
| | | valueFieldArray.forEach((_indexField,_itemField)=>{ |
| | | value.push( item[_itemField] + (_that.referConfig.valueSep?_that.referConfig.valueSep:' ')); |
| | | valueFieldArray.forEach((_itemField,_indexFiel)=>{ |
| | | value.push( (item[_itemField] || item['data'][_itemField]) + (_that.referConfig.valueSep?_that.referConfig.valueSep:' ')); |
| | | }) |
| | | }else { |
| | | value.push(item[_that.props.value]); |
| | | value.push(item[_that.props.value] || item['data'][_that.props.value]); |
| | | } |
| | | if(isMutiRaw) { |
| | | var rawFieldArray = _that.props.label.split(","); |
| | | rawFieldArray.forEach((_indexField,_itemField)=>{ |
| | | text.push(item[_itemField] + (_that.referConfig.textSep?_that.referConfig.textSep:' ')) ; |
| | | rawFieldArray.forEach((_itemField,_indexField)=>{ |
| | | text.push((item[_itemField] || item['data'][_itemField]) + (_that.referConfig.textSep?_that.referConfig.textSep:' ')) ; |
| | | }) |
| | | }else{ |
| | | text.push(item[_that.props.label]); |
| | | text.push(item[_that.props.label] || item['data'][_that.props.label]); |
| | | } |
| | | }) |
| | | |