| | |
| | | if (execAction.groups.length > 0) { |
| | | execAction.groups.forEach(group => { |
| | | group.sublist.forEach(field => { |
| | | if ((field.type === 'select' || field.type === 'link') && field.resourceType === '1') { |
| | | if ((field.type === 'select' || field.type === 'link') && field.resourceType === '1' && field.dataSource) { |
| | | subfields.push(field) |
| | | } |
| | | }) |
| | | }) |
| | | } else { |
| | | execAction.fields.forEach(field => { |
| | | if ((field.type === 'select' || field.type === 'link') && field.resourceType === '1') { |
| | | if ((field.type === 'select' || field.type === 'link') && field.resourceType === '1' && field.dataSource) { |
| | | subfields.push(field) |
| | | } |
| | | }) |
| | |
| | | arrfield = arrfield + ',' + item.linkField |
| | | } |
| | | |
| | | let _sql = Utils.getSelectQuerySql(item) |
| | | console.log(_sql) |
| | | _sql = Utils.formatOptions(_sql) |
| | | let param = { |
| | | func: 'sPC_Get_SelectedList', |
| | | LText: item.dataSourceSql, |
| | | LText: _sql, |
| | | obj_name: 'data', |
| | | arr_field: arrfield |
| | | } |
| | |
| | | this.setState({ |
| | | confirmLoading: true |
| | | }) |
| | | this.execSubmit(this.state.execAction, this.state.tabledata, () => { |
| | | this.setState({ |
| | | confirmLoading: false |
| | | }) |
| | | }, res) |
| | | console.log(res) |
| | | // this.execSubmit(this.state.execAction, this.state.tabledata, () => { |
| | | // this.setState({ |
| | | // confirmLoading: false |
| | | // }) |
| | | // }, res) |
| | | }, () => {}) |
| | | } |
| | | |