| | |
| | | dataIndex: 'title', |
| | | inputType: 'select', |
| | | editable: true, |
| | | required: false, |
| | | width: '12%', |
| | | options: [ |
| | | { value: 'true', text: '显示'}, |
| | |
| | | ], |
| | | render: (text, record) => { |
| | | let trans = {'true': '显示', 'false': '隐藏'} |
| | | return trans[text] || '显示' |
| | | return trans[text] || '' |
| | | } |
| | | }, |
| | | { |
| | |
| | | }) |
| | | |
| | | let padding = [10, 30, 30, 30] |
| | | if (plot.mutilBar === 'overlap') { |
| | | if (plot.mutilBar === 'overlap' || Bar_axis.length === 1) { |
| | | Bar_axis = [] |
| | | } |
| | | |
| | |
| | | |
| | | if (_Ot !== 'notRequired' && _opentype !== 'excelOut') { |
| | | _options.push('control') |
| | | if (_control) { |
| | | if (_control === 'parent') { |
| | | _options.push('controlVal') |
| | | } else if (_control) { |
| | | _options.push('controlField', 'controlVal') |
| | | } |
| | | } |
| | |
| | | }, { |
| | | value: 'hidden', |
| | | text: '隐藏' |
| | | // }, { |
| | | // value: 'parent', |
| | | // text: '上级' |
| | | }] |
| | | }, |
| | | { |
| | |
| | | type: 'text', |
| | | key: 'controlVal', |
| | | label: '控制值', |
| | | tooltip: '当选择控制字段,且字段值与控制值相等时,按钮会隐藏或禁用,多个值用逗号分隔。', |
| | | tooltip: '当选择禁用或隐藏,且字段值与控制值相等时,按钮会隐藏或禁用,多个值用逗号分隔。当选择上级时,默认隐藏,只有主表行信息符合条件时显示,格式为@field@:values,field为主表字段名,values为值多个可用逗号拼接', |
| | | initVal: card.controlVal || '', |
| | | required: false |
| | | }, |
| | |
| | | <Col key={card.uuid} className="mk-cell-btn" span={card.width}> |
| | | <ExcelInButton |
| | | BID={data.$$BID} |
| | | BData={data.$$BData || ''} |
| | | btn={card} |
| | | show={card.show} |
| | | style={card.style} |
| | |
| | | <Col key={card.uuid} className="mk-cell-btn" span={card.width}> |
| | | <ExcelOutButton |
| | | BID={data.$$BID} |
| | | BData={data.$$BData || ''} |
| | | btn={card} |
| | | show={card.show} |
| | | style={card.style} |
| | |
| | | return ( |
| | | <Col key={card.uuid} className="mk-cell-btn" span={card.width}> |
| | | <TabButton |
| | | BData={data.$$BData || ''} |
| | | btn={card} |
| | | show={card.show} |
| | | style={card.style} |
| | |
| | | return ( |
| | | <Col key={card.uuid} className="mk-cell-btn" span={card.width}> |
| | | <NewPageButton |
| | | BData={data.$$BData || ''} |
| | | btn={card} |
| | | show={card.show} |
| | | style={card.style} |
| | |
| | | <Col key={card.uuid} className="mk-cell-btn" span={card.width}> |
| | | <ChangeUserButton |
| | | BID={data.$$BID} |
| | | BData={data.$$BData || ''} |
| | | btn={card} |
| | | show={card.show} |
| | | style={card.style} |
| | |
| | | class NewPageButton extends Component { |
| | | static propTpyes = { |
| | | show: PropTypes.any, // 按钮显示样式控制 |
| | | position: PropTypes.any, // 按钮位置,工具栏为toolbar |
| | | MenuID: PropTypes.any, // 菜单ID |
| | | BData: PropTypes.any, // 主表数据 |
| | | BID: PropTypes.string, // 主表ID |
| | | btn: PropTypes.object, // 按钮 |
| | | selectedData: PropTypes.any, // 子表中选择数据 |
| | |
| | | class ExcelInButton extends Component { |
| | | static propTpyes = { |
| | | show: PropTypes.any, // 显示样式 |
| | | position: PropTypes.any, // 按钮位置,工具栏为toolbar |
| | | BID: PropTypes.string, // 主表ID |
| | | BData: PropTypes.any, // 主表数据 |
| | | selectedData: PropTypes.any, // 子表中选择数据 |
| | | Tab: PropTypes.any, // 如果当前元素为标签时,tab为标签信息 |
| | | btn: PropTypes.object, // 按钮 |
| | |
| | | class ExcelOutButton extends Component { |
| | | static propTpyes = { |
| | | BID: PropTypes.string, // 主表ID |
| | | position: PropTypes.any, // 按钮位置,工具栏为toolbar |
| | | BData: PropTypes.any, // 主表数据 |
| | | show: PropTypes.any, // 显示样式 |
| | | Tab: PropTypes.any, // 如果当前元素为标签时,tab为标签信息 |
| | | btn: PropTypes.object, // 按钮 |
| | |
| | | BData={BData} |
| | | setting={setting} |
| | | columns={columns} |
| | | position="toolbar" |
| | | ContainerId={ContainerId} |
| | | selectedData={selectedData} |
| | | /> |
| | |
| | | BID={BID} |
| | | Tab={Tab} |
| | | btn={item} |
| | | BData={BData} |
| | | setting={setting} |
| | | position="toolbar" |
| | | selectedData={selectedData} |
| | | /> |
| | | ) |
| | |
| | | BID={BID} |
| | | Tab={Tab} |
| | | btn={item} |
| | | BData={BData} |
| | | setting={setting} |
| | | position="toolbar" |
| | | /> |
| | | ) |
| | | } else if (item.OpenType === 'popview') { |
| | |
| | | btn={item} |
| | | BData={BData} |
| | | setting={setting} |
| | | position="toolbar" |
| | | selectedData={selectedData} |
| | | /> |
| | | ) |
| | |
| | | key={item.uuid} |
| | | show={item.show || 'actionList'} |
| | | btn={item} |
| | | BData={BData} |
| | | MenuID={MenuID} |
| | | setting={setting} |
| | | position="toolbar" |
| | | selectedData={selectedData} |
| | | /> |
| | | ) |
| | |
| | | key={item.uuid} |
| | | show="actionList" |
| | | btn={item} |
| | | BData={BData} |
| | | setting={setting} |
| | | position="toolbar" |
| | | selectedData={selectedData} |
| | | /> |
| | | ) |
| | |
| | | show={item.show || 'actionList'} |
| | | BID={BID} |
| | | btn={item} |
| | | BData={BData} |
| | | MenuID={MenuID} |
| | | setting={setting} |
| | | position="toolbar" |
| | | selectedData={selectedData} |
| | | /> |
| | | ) |
| | |
| | | btn={item} |
| | | BData={BData} |
| | | setting={setting} |
| | | position="toolbar" |
| | | ContainerId={ContainerId} |
| | | selectedData={selectedData} |
| | | /> |
| | |
| | | class NewPageButton extends Component { |
| | | static propTpyes = { |
| | | show: PropTypes.any, // 按钮显示样式控制 |
| | | position: PropTypes.any, // 按钮位置,工具栏为toolbar |
| | | BData: PropTypes.any, // 主表数据 |
| | | btn: PropTypes.object, // 按钮 |
| | | selectedData: PropTypes.any, // 子表中选择数据 |
| | | setting: PropTypes.any, // 页面通用设置 |
| | |
| | | class PopupButton extends Component { |
| | | static propTpyes = { |
| | | show: PropTypes.any, // 按钮显示样式控制 |
| | | position: PropTypes.any, // 按钮位置,工具栏为toolbar |
| | | BID: PropTypes.string, // 主表ID |
| | | BData: PropTypes.any, // 主表数据 |
| | | selectedData: PropTypes.any, // 子表中选择数据 |
| | |
| | | class PrintButton extends Component { |
| | | static propTpyes = { |
| | | show: PropTypes.any, // 按钮显示样式控制 |
| | | position: PropTypes.any, // 按钮位置,工具栏为toolbar |
| | | BID: PropTypes.string, // 主表ID |
| | | BData: PropTypes.any, // 主表数据 |
| | | selectedData: PropTypes.any, // 子表中选择数据 |
| | |
| | | class TabButton extends Component { |
| | | static propTpyes = { |
| | | show: PropTypes.any, // 按钮显示样式控制 |
| | | position: PropTypes.any, // 按钮位置,工具栏为toolbar |
| | | BData: PropTypes.any, // 主表数据 |
| | | MenuID: PropTypes.string, // 菜单ID |
| | | btn: PropTypes.object, // 按钮 |
| | | selectedData: PropTypes.any, // 子表中选择数据 |
| | |
| | | key={btn.uuid} |
| | | btn={btn} |
| | | selectedData={[record]} |
| | | BData={this.props.BData} |
| | | MenuID={this.props.MenuID} |
| | | setting={this.props.setting} |
| | | /> |
| | |
| | | key={btn.uuid} |
| | | btn={btn} |
| | | selectedData={[record]} |
| | | BData={this.props.BData} |
| | | setting={this.props.setting} |
| | | /> |
| | | ) |