| | |
| | | _children.forEach((cell, i) => { |
| | | cell.key = i |
| | | cell.$$uuid = cell[config.setting.subKey] || '' |
| | | cell.$$parentId = item[config.setting.primaryKey] || '' |
| | | cell.$$BID = item[config.setting.primaryKey] || '' |
| | | cell.$$BData = {...item} |
| | | cell.$Index = i + 1 + '' |
| | |
| | | |
| | | if (position === 'line') { |
| | | if (lines && lines.length === 1) { |
| | | this.loadLinedata(lines[0].$$uuid) |
| | | this.loadLinedata(lines[0].$$parentId || lines[0].$$uuid) |
| | | } else { |
| | | this.loadData(id) |
| | | } |
| | |
| | | _children.forEach((cell, i) => { |
| | | cell.key = i |
| | | cell.$$uuid = cell[config.setting.subKey] || '' |
| | | cell.$$parentId = item[config.setting.primaryKey] || '' |
| | | cell.$$BID = item[config.setting.primaryKey] || '' |
| | | cell.$$BData = {...item} |
| | | cell.$Index = i + 1 + '' |
| | |
| | | _children.forEach((cell, i) => { |
| | | cell.key = i |
| | | cell.$$uuid = cell[config.setting.subKey] || '' |
| | | cell.$$parentId = item[config.setting.primaryKey] || '' |
| | | cell.$$BID = item[config.setting.primaryKey] || '' |
| | | cell.$$BData = {...item} |
| | | cell.$Index = i + 1 + '' |
| | |
| | | total: result.total, |
| | | loading: false |
| | | }) |
| | | |
| | | if (config.timer && config.clearField && result.data && result.data[0]) { |
| | | let vals = (config.clearValue || '').split(',') |
| | | if (vals.includes(result.data[0][config.clearField])) { |
| | | this.timer && this.timer.stop() |
| | | } |
| | | } |
| | | } else { |
| | | this.setState({ |
| | | loading: false |
| | |
| | | _children.forEach((cell, i) => { |
| | | cell.key = i |
| | | cell.$$uuid = cell[config.setting.subKey] || '' |
| | | cell.$$parentId = _data[config.setting.primaryKey] || '' |
| | | cell.$$BID = _data[config.setting.primaryKey] || '' |
| | | cell.$$BData = {..._data} |
| | | cell.$Index = i + 1 + '' |