| | |
| | | : this.span, |
| | | value: item.value || item.defaultValue, |
| | | display: item.display || !item.hidden, |
| | | suffixIcon: item.suffixIcon || item.prefix, |
| | | labelSuffix: item.labelSuffix || item.suffix, |
| | | tip: item.tip || item.tooltips, |
| | | dictCode: item.dictCode || item.comboxKey, |
| | |
| | | if (Object.keys(this.sourceData).length > 0 && this.isShow && this.actionType != "add") { |
| | | this.loading = true; |
| | | let url='' |
| | | if(this.componentVO.bsCustQueryCLsOrUrl && this.componentVO.bsCustQueryCLsOrUrl.indexOf('/')!=-1){ |
| | | url=this.componentVO.bsCustQueryCLsOrUrl |
| | | if(this.componentVO.bsDataModel && this.componentVO.bsDataModel.indexOf('/')!=-1){ |
| | | url=this.componentVO.bsDataModel |
| | | } |
| | | dataForm(this.params, this.paramVOS.getdataurl || url, this.paramVOS.getdatamethod).then(res => { |
| | | this.form = res.data.obj.data; |
| | |
| | | const typeValue = item.type === 'text' ? 'input' : item.type === 'combox' ? 'select' : item.type; |
| | | |
| | | return { |
| | | ...item, |
| | | label: item.text, |
| | | prop: item.field, |
| | | prop: item.prop || item.field, |
| | | type: typeValue, |
| | | value: item.defaultValue, |
| | | dicData: item.type === 'combox' ? item.dicData : item.dicUrl, |
| | | readonly: item.readOnly, |
| | | disabled: item.disabled, |
| | | labelSuffix: item.suffix, |
| | | suffixIcon: item.prefix, |
| | | placeholder:item.placeholder, |
| | | clearable:item.clearable, |
| | | suffixIcon: item.suffixIcon || item.prefix, |
| | | labelSuffix: item.labelSuffix || item.suffix, |
| | | tip: item.tooltips, |
| | | keyAttr: item.keyAttr, |
| | | rules: [{ |
| | | required: item.required, |
| | | message: `请输入${item.text}!`, |
| | |
| | | this.tableList = []; |
| | | this.loading = true; |
| | | let url=''; |
| | | if(this.componentVO.bsCustQueryCLsOrUrl && this.componentVO.bsCustQueryCLsOrUrl.indexOf('/')!=-1){ |
| | | url=this.componentVO.bsCustQueryCLsOrUrl; |
| | | if(this.componentVO.bsDataModel && this.componentVO.bsDataModel.indexOf('/')!=-1){ |
| | | url=this.componentVO.bsDataModel; |
| | | } |
| | | getList(page.currentPage, page.pageSize, Object.assign({},this.params,this.query,params),url).then(res => { |
| | | let data = []; |
| | |
| | | || (node.data.attributes && node.data.attributes.btmname) |
| | | || ''; |
| | | const params = this.params; |
| | | let url='';debugger; |
| | | if(this.componentVO.bsCustQueryCLsOrUrl && this.componentVO.bsCustQueryCLsOrUrl.indexOf('/')!=-1){ |
| | | url=this.componentVO.bsCustQueryCLsOrUrl; |
| | | let url=''; |
| | | if(this.componentVO.bsDataModel && this.componentVO.bsDataModel.indexOf('/')!=-1){ |
| | | url=this.componentVO.bsDataModel; |
| | | } |
| | | if (node.level === 0) { |
| | | params.queryRoot = true; |