| | |
| | | if (id !== this.props.MenuID) return |
| | | |
| | | if (this.props.data.length > 0) { |
| | | this.changeRow(null, 0) |
| | | this.changeRow(this.props.data[0], 0) |
| | | } |
| | | } |
| | | |
| | |
| | | let i = index - (pageIndex - 1) * pageSize - 1 |
| | | |
| | | if (this.props.data[i]) { |
| | | this.changeRow(null, i) |
| | | this.changeRow(this.props.data[i], i) |
| | | MKEmitter.emit('autoTransSelectData', this.props.MenuID, this.props.data[i]) |
| | | } else { |
| | | MKEmitter.emit('autoMaticOver', this.props.MenuID) |
| | |
| | | content = md5(content) |
| | | } |
| | | |
| | | if (item.linkThdMenu || item.linkurl) { |
| | | if (!record.$disabled && (item.linkThdMenu || item.linkurl)) { |
| | | if (item.rowspan === 'true') { |
| | | return { |
| | | children: ( |
| | |
| | | content = md5(content) |
| | | } |
| | | |
| | | if (item.linkThdMenu || item.linkurl) { |
| | | if (!record.$disabled && (item.linkThdMenu || item.linkurl)) { |
| | | if (item.rowspan === 'true') { |
| | | return { |
| | | children: ( |
| | |
| | | key={btn.uuid} |
| | | btn={btn} |
| | | BID={record.$$BID} |
| | | disabled={record.$disabled} |
| | | selectedData={[record]} |
| | | BData={this.props.BData} |
| | | setting={this.props.setting} |
| | |
| | | key={btn.uuid} |
| | | btn={btn} |
| | | BID={record.$$BID} |
| | | disabled={record.$disabled} |
| | | selectedData={[record]} |
| | | BData={this.props.BData} |
| | | setting={this.props.setting} |
| | |
| | | <TabButton |
| | | key={btn.uuid} |
| | | btn={btn} |
| | | disabled={record.$disabled} |
| | | selectedData={[record]} |
| | | BData={this.props.BData} |
| | | MenuID={this.props.MenuID} |
| | |
| | | <NewPageButton |
| | | key={btn.uuid} |
| | | btn={btn} |
| | | disabled={record.$disabled} |
| | | selectedData={[record]} |
| | | BData={this.props.BData} |
| | | setting={this.props.setting} |
| | |
| | | |
| | | this.setState({ selectedRowKeys, activeIndex: _activeIndex }) |
| | | |
| | | let selects = this.props.data.filter((item, _index) => selectedRowKeys.includes(_index)) |
| | | let selects = this.props.data.filter((item, _index) => selectedRowKeys.includes(_index) && !item.$disabled) |
| | | |
| | | this.props.chgSelectData(selects) |
| | | } |
| | |
| | | */ |
| | | changeRow = (record, index) => { |
| | | if (!this.props.setting.tableType || this.props.pickup) return |
| | | if (record.$disabled) return |
| | | |
| | | let newkeys = fromJS(this.state.selectedRowKeys).toJS() |
| | | |
| | |
| | | const { setting } = this.props |
| | | |
| | | if (!setting.doubleClick) return |
| | | if (record.$disabled) return |
| | | |
| | | MKEmitter.emit('triggerBtnId', setting.doubleClick, [record]) |
| | | } |
| | |
| | | dataSource={_data} |
| | | rowClassName={(record) => { |
| | | let className = '' |
| | | if ((setting.tableType === 'checkbox' || setting.tableType === 'radio') && record.key === activeIndex) { |
| | | if (record.$disabled) { |
| | | className = 'mk-disabled ' |
| | | } else if ((setting.tableType === 'checkbox' || setting.tableType === 'radio') && record.key === activeIndex) { |
| | | className = 'mk-row-active ' |
| | | } |
| | | |