| | |
| | | item.setting.interType = 'system' |
| | | item.setting.execute = btn.verify.defaultSql || 'true' |
| | | item.setting.dataresource = btn.verify.dataresource || '' |
| | | item.setting.primaryKey = btn.verify.primaryKey || component.setting.primaryKey || 'ID' |
| | | item.setting.primaryKey = btn.verify.primaryKey || '' |
| | | item.setting.queryType = btn.verify.queryType |
| | | item.setting.laypage = btn.pagination |
| | | item.setting.order = btn.verify.order || '' |
| | | |
| | | if (btn.Ot === 'requiredOnce') { |
| | | item.setting.primaryKey = btn.verify.primaryKey || component.setting.primaryKey || 'ID' |
| | | } |
| | | |
| | | item.scripts = btn.verify.scripts || [] |
| | | |
| | |
| | | item.$searches = fromJS(searches).toJS() |
| | | searches = formatSearch(searches) |
| | | |
| | | let _columns = item.columns || [] |
| | | let _columns = [] |
| | | if (item.subtype === 'dualdatacard') { |
| | | _columns = [...item.columns, ...item.subColumns] |
| | | } else if (item.columns) { |
| | | _columns = [...item.columns] |
| | | } |
| | | |
| | | if (item.setting.primaryKey) { |
| | | let key = item.setting.primaryKey.toLowerCase() |
| | | if (_columns.findIndex(cell => cell.field.toLowerCase() === key) === -1) { |
| | | _columns.push({ |
| | | field: item.setting.primaryKey |
| | | }) |
| | | } |
| | | } |
| | | |
| | | let arr_field = _columns.map(col => col.field).join(',') |