| | |
| | | oriConfig: null, |
| | | scriptValue: '', |
| | | cols: null, |
| | | hasMainSearch: false, |
| | | colColumns: [ |
| | | { |
| | | title: '名称', |
| | |
| | | searches: formatSearch(search), |
| | | searchKey: '', |
| | | debugId: _setting.debugId || '', |
| | | hasMainSearch: mainSearch && mainSearch.length > 0, |
| | | oriConfig: fromJS({ |
| | | scripts, |
| | | columns: columns, |
| | |
| | | |
| | | if ((setting.interType === 'system' && setting.execute !== 'false') || _scripts.length > 0) { |
| | | let _columns = columns |
| | | if (config.subtype === 'dualdatacard') { |
| | | if (config.subtype === 'dualdatacard' && setting.subdata !== 'sub_data_string') { |
| | | _columns = [...columns, ...subColumns] |
| | | } |
| | | |
| | |
| | | if @pageIndex_top > 0 |
| | | delete #${setting.tableName || 'tb'} where sort_id <= @pageIndex_top |
| | | |
| | | drop table #${setting.tableName || 'tb'}${extend}` |
| | | drop table #${setting.tableName || 'tb'}${extend} |
| | | |
| | | select top 99999 @mk_total as mk_total, * from #${setting.tableName || 'tb'} order by sort_id` |
| | | |
| | | document.body.appendChild(oInput) |
| | | oInput.select() |
| | |
| | | |
| | | render() { |
| | | const { config } = this.props |
| | | const { columns, subColumns, median, skip, setting, scripts, colColumns, scriptsColumns, activeKey, loading, searches, defaultsql, visible, pvisible, reload, script, scriptValue, searchKey, editLineId } = this.state |
| | | const { columns, subColumns, median, skip, setting, scripts, colColumns, scriptsColumns, activeKey, loading, searches, defaultsql, visible, pvisible, reload, script, scriptValue, searchKey, editLineId, hasMainSearch } = this.state |
| | | |
| | | return ( |
| | | <div className="model-data-source-wrap"> |
| | |
| | | subColumns={subColumns} |
| | | setting={setting} |
| | | scripts={scripts} |
| | | hasMainSearch={hasMainSearch} |
| | | updateStatus={this.updateStatus} |
| | | updateColumns={this.updateColumns} |
| | | addProcess={this.addProcess} |