| | |
| | | 'header.form.action.LogicDelete': '逻辑删除', |
| | | 'header.form.action.delete': '物理删除', |
| | | 'header.form.valueField': '值·字段', |
| | | 'header.form.valueText': '文本·字段', |
| | | 'header.form.orderBy': '排序·字段', |
| | | 'header.form.orderType': '排序方式', |
| | | 'header.form.match': '匹配模式', |
| | | 'header.form.matchVal': '匹配值', |
| | | 'header.form.asc': '正序', |
| | |
| | | 'header.form.button': '按钮', |
| | | 'model.form.style': '风格', |
| | | 'model.form.color': 'Color', |
| | | 'header.form.order': '排列', |
| | | 'header.form.horizontal': '横向', |
| | | 'header.form.vertical': '纵向', |
| | | 'header.form.vertical2': '纵向(2列)', |
| | | 'header.form.topPicBottomText': '上图下文', |
| | | 'header.form.leftPicRightText': '左图右文', |
| | | 'model.form.selectItem.error': '下拉选项设置错误!', |
| | | 'header.form.readonly': '只读', |
| | | 'header.form.queryType': '查询类型', |
| | | 'header.form.query': '查询', |
| | | 'header.form.statistics': '统计', |
| | | 'header.form.database': '数据库', |
| | | 'header.form.database.local': '本地', |
| | | 'header.form.database.sso': '系统', |
| | | 'header.form.linkMain': '关联主表', |
| | | 'model.query.delete': '确定删除吗?', |
| | | 'header.form.up': '上移', |
| | | 'header.form.down': '下移', |
| | | 'header.form.status.change': '状态切换', |
| | | 'model.status.forbidden': '禁用', |
| | | 'model.status.open': '启用', |
| | | 'header.form.readin': '自动填充', |
| | | 'header.form.pagination': '分页', |
| | | 'header.form.regular': '正则校验', |
| | | 'header.form.quickadd': '快捷添加', |
| | | 'model.form.funcbutton': 'Function button', |
| | | 'header.form.funcType': '功能类型', |
| | | 'header.form.func.changeuser': '切换用户', |
| | | 'header.form.func.print': '打印', |
| | | 'model.form.execMode': 'Mode', |
| | | 'header.form.thawbutton': '解冻按钮', |
| | | 'header.form.maxRows': '最大行数', |
| | | 'header.form.paste': '粘贴', |
| | | 'header.form.ratio': '比例', |
| | | 'header.form.blacklist': '黑名单', |
| | | 'model.form.linkmenu': 'Association', |
| | | 'header.form.clickscale': '点击缩放', |
| | | 'header.form.easyCode': 'EasyCode', |
| | | 'header.modal.form.edit': '表单-编辑', |
| | | 'model.action': '按钮', |
| | | 'header.modal.action.copy': '按钮-复制', |
| | | 'header.modal.form.copy': '表单-复制', |
| | | 'header.modal.column.edit': '显示列-编辑', |
| | | 'header.modal.gridbtn.edit': '操作列-编辑', |
| | | 'header.modal.tabs.edit': '标签-编辑', |
| | | 'form.required.input': 'Please enter the ', |
| | | 'form.required.select': 'Please select a ', |
| | | 'form.required.add': 'Please add ', |
| | | 'model.tooltip.table.guide': '此处可以添加页面配置相关的常用表,可通过工具栏中的添加按钮,可批量添加表格相关字段。', |
| | | 'model.tooltip.search.guide': '在左侧工具栏《搜索》中,选择对应搜索框拖至此处添加;或点击按钮《添加搜索条件》批量添加,选择批量添加时,需提前选择使用表。', |
| | | 'model.tooltip.action.guide': '在左侧工具栏《按钮》中,选择对应类型的按钮拖至此处添加,如选择按钮类型为表单、新标签页等含有配置页面的按钮,可在左侧工具栏-按钮-可配置按钮处,点击按钮完成相关配置。注:当设置按钮显示位置为表格时,显示列会增加操作列。', |
| | | 'model.tooltip.column.guide': '在左侧工具栏《显示列》中,选择对应类型的显示列拖至此处添加;或点击《添加显示列》按钮批量添加,选择批量添加时,需提前选择使用表。注:添加合并列时,需设置可选列。', |
| | | 'model.tooltip.tabs.guide': '在左侧工具栏《标签页》中,选择对应类型的标签页拖至此处添加。', |
| | | 'model.tooltip.func.innerface': '函数名称需以@ableField等字符开始;', |
| | | } |
| | |
| | | 'header.form.action.LogicDelete': '逻辑删除', |
| | | 'header.form.action.delete': '物理删除', |
| | | 'header.form.valueField': '值·字段', |
| | | 'header.form.valueText': '文本·字段', |
| | | 'header.form.orderBy': '排序·字段', |
| | | 'header.form.orderType': '排序方式', |
| | | 'header.form.match': '匹配模式', |
| | | 'header.form.matchVal': '匹配值', |
| | | 'header.form.asc': '正序', |
| | |
| | | 'header.form.button': '按钮', |
| | | 'model.form.style': '风格', |
| | | 'model.form.color': '颜色', |
| | | 'header.form.order': '排列', |
| | | 'header.form.horizontal': '横向', |
| | | 'header.form.vertical': '纵向', |
| | | 'header.form.vertical2': '纵向(2列)', |
| | | 'header.form.topPicBottomText': '上图下文', |
| | | 'header.form.leftPicRightText': '左图右文', |
| | | 'model.form.selectItem.error': '下拉选项设置错误!', |
| | | 'header.form.readonly': '只读', |
| | | 'header.form.queryType': '查询类型', |
| | | 'header.form.query': '查询', |
| | | 'header.form.statistics': '统计', |
| | | 'header.form.database': '数据库', |
| | | 'header.form.database.local': '本地', |
| | | 'header.form.database.sso': '系统', |
| | | 'header.form.linkMain': '关联主表', |
| | | 'model.query.delete': '确定删除吗?', |
| | | 'header.form.up': '上移', |
| | | 'header.form.down': '下移', |
| | | 'header.form.status.change': '状态切换', |
| | | 'model.status.forbidden': '禁用', |
| | | 'model.status.open': '启用', |
| | | 'header.form.readin': '自动填充', |
| | | 'header.form.pagination': '分页', |
| | | 'header.form.regular': '正则校验', |
| | | 'header.form.quickadd': '快捷添加', |
| | | 'model.form.funcbutton': '功能按钮', |
| | | 'header.form.funcType': '功能类型', |
| | | 'header.form.func.changeuser': '切换用户', |
| | | 'header.form.func.print': '打印', |
| | | 'model.form.execMode': '执行方式', |
| | | 'header.form.thawbutton': '解冻按钮', |
| | | 'header.form.maxRows': '最大行数', |
| | | 'header.form.paste': '粘贴', |
| | | 'header.form.ratio': '比例', |
| | | 'header.form.blacklist': '黑名单', |
| | | 'model.form.linkmenu': '关联菜单', |
| | | 'header.form.clickscale': '点击缩放', |
| | | 'header.form.easyCode': '助记码', |
| | | 'header.modal.form.edit': '表单-编辑', |
| | | 'model.action': '按钮', |
| | | 'header.modal.action.copy': '按钮-复制', |
| | | 'header.modal.form.copy': '表单-复制', |
| | | 'header.modal.column.edit': '显示列-编辑', |
| | | 'header.modal.gridbtn.edit': '操作列-编辑', |
| | | 'header.modal.tabs.edit': '标签-编辑', |
| | | 'form.required.input': '请输入', |
| | | 'form.required.select': '请选择', |
| | | 'form.required.add': '请添加', |
| | | 'model.tooltip.table.guide': '添加页面配置相关的常用表,可通过常用表字段批量添加搜索条件、显示列、数据源字段集等。', |
| | | 'model.tooltip.search.guide': '在左侧工具栏《搜索》中,选择对应搜索框拖至此处添加;或点击按钮《添加搜索条件》批量添加,选择批量添加时,需提前选择使用表。', |
| | | 'model.tooltip.action.guide': '在左侧工具栏《按钮》中,选择对应类型的按钮拖至此处添加,如选择按钮类型为表单、新标签页等含有配置页面的按钮,可在左侧工具栏-按钮-可配置按钮处,点击按钮完成相关配置。注:当设置按钮显示位置为表格时,显示列会增加操作列。', |
| | | 'model.tooltip.column.guide': '在左侧工具栏《显示列》中,选择对应类型的显示列拖至此处添加;或点击《添加显示列》按钮批量添加,选择批量添加时,需提前选择使用表。注:添加合并列时,需设置可选列。', |
| | | 'model.tooltip.tabs.guide': '在左侧工具栏《标签页》中,选择对应类型的标签页拖至此处添加。', |
| | | 'model.tooltip.func.innerface': '函数名称需以@ableField等字符开始;', |
| | | } |
| | |
| | | tooltip: '统计图表适用于展示数据类型为动态值。', |
| | | required: false, |
| | | options: [ |
| | | { value: 'query', text: Formdict['header.form.query'] }, |
| | | { value: 'statistics', text: Formdict['header.form.statistics'] } |
| | | { value: 'query', text: '查询' }, |
| | | { value: 'statistics', text: '统计' } |
| | | ] |
| | | }, { |
| | | type: 'select', |
| | |
| | | const isApp = ['pc', 'mob'].includes(appType) |
| | | |
| | | let funTypes = [ |
| | | { value: 'changeuser', text: Formdict['header.form.func.changeuser'] }, |
| | | { value: 'changeuser', text: '切换用户' }, |
| | | { value: 'print', text: '标签打印' }, |
| | | { value: 'closetab', text: '标签关闭' }, |
| | | ] |
| | |
| | | { value: 'custom', text: '链接' } |
| | | ] |
| | | funTypes = [ |
| | | { value: 'changeuser', text: Formdict['header.form.func.changeuser'] }, |
| | | { value: 'changeuser', text: '切换用户' }, |
| | | ] |
| | | opentypes = opentypes.filter(item => item.value !== 'tab') |
| | | } |
| | |
| | | { |
| | | type: 'select', |
| | | key: 'funcType', |
| | | label: Formdict['header.form.funcType'], |
| | | label: '功能类型', |
| | | initVal: card.funcType || '', |
| | | required: true, |
| | | options: funTypes |
| | |
| | | { |
| | | type: 'radio', |
| | | key: 'pagination', |
| | | label: Formdict['header.form.pagination'], |
| | | label: '分页', |
| | | initVal: card.pagination || 'false', |
| | | required: false, |
| | | options: [{ |
| | |
| | | dataIndex: 'operation', |
| | | render: (text, record) => |
| | | (<div> |
| | | <span className="operation-btn" title={this.props.dict['model.edit']} onClick={() => this.handleEdit(record, 'scripts')} style={{color: '#1890ff'}}><Icon type="edit" /></span> |
| | | <span className="operation-btn" title={this.props.dict['header.form.up']} onClick={() => this.handleUpDown(record, 'scripts', 'up')} style={{color: '#1890ff'}}><Icon type="arrow-up" /></span> |
| | | <span className="operation-btn" title={this.props.dict['header.form.down']} onClick={() => this.handleUpDown(record, 'scripts', 'down')} style={{color: '#ff4d4f'}}><Icon type="arrow-down" /></span> |
| | | <span className="operation-btn" onClick={() => this.handleEdit(record, 'scripts')} style={{color: '#1890ff'}}><Icon type="edit" /></span> |
| | | <span className="operation-btn" onClick={() => this.handleUpDown(record, 'scripts', 'up')} style={{color: '#1890ff'}}><Icon type="arrow-up" /></span> |
| | | <span className="operation-btn" onClick={() => this.handleUpDown(record, 'scripts', 'down')} style={{color: '#ff4d4f'}}><Icon type="arrow-down" /></span> |
| | | <span className="operation-btn" title={this.props.dict['header.form.status.change']} onClick={() => this.handleStatus(record, 'scripts')} style={{color: '#8E44AD'}}><Icon type="swap" /></span> |
| | | <Popconfirm |
| | | overlayClassName="popover-confirm" |
| | |
| | | { |
| | | type: 'radio', |
| | | key: 'scale', |
| | | label: Formdict['header.form.clickscale'], |
| | | initVal: card.scale || 'false', |
| | | label: '点击缩放', |
| | | initVal: card.scale || 'true', |
| | | required: false, |
| | | options: [{ |
| | | value: 'true', |
| | |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={24}> |
| | | <Form.Item label={dict['header.form.easyCode']}> |
| | | <Form.Item label="助记码"> |
| | | {getFieldDecorator('easyCode', { |
| | | initialValue: config.easyCode, |
| | | rules: [ |
| | |
| | | </DndProvider> |
| | | {/* 编辑表单 */} |
| | | <Modal |
| | | title={this.state.card && this.state.card.iscopy ? this.state.dict['header.modal.form.copy'] : this.state.dict['header.modal.form.edit']} |
| | | title={this.state.card && this.state.card.iscopy ? '表单-复制' : '表单-编辑'} |
| | | visible={modaltype === 'search'} |
| | | width={700} |
| | | maskClosable={false} |
| | |
| | | }, |
| | | { |
| | | type: 'form', |
| | | label: CommonDict['header.form.linkMain'], |
| | | label: '关联主表', |
| | | subType: 'linkMain', |
| | | } |
| | | ] |
| | |
| | | |
| | | return ( |
| | | <div className="model-table-action-list" style={config.charts.length > 1 ? {paddingTop: 25} : null}> |
| | | <Tooltip placement="bottomLeft" overlayClassName="middle" title={dict['model.tooltip.action.guide']}> |
| | | <Tooltip placement="bottomLeft" overlayClassName="middle" title="在左侧工具栏《按钮》中,选择对应类型的按钮拖至此处添加,如选择按钮类型为表单、新标签页等含有配置页面的按钮,可在左侧工具栏-按钮-可配置按钮处,点击按钮完成相关配置。注:当设置按钮显示位置为表格时,显示列会增加操作列。"> |
| | | <QuestionCircleOutlined style={{color: '#c49f47', position: 'absolute', left: '5px', top: '5px'}} /> |
| | | </Tooltip> |
| | | <DragElement |
| | |
| | | render: (text, record) => |
| | | this.state.dataSource.length >= 1 ? ( |
| | | <div> |
| | | <span className="operation-btn" title={props.dict['header.form.up']} onClick={() => this.handleUpDown(record, 'up')} style={{color: '#1890ff'}}><Icon type="arrow-up" /></span> |
| | | <span className="operation-btn" title={props.dict['header.form.down']} onClick={() => this.handleUpDown(record, 'down')} style={{color: '#ff4d4f'}}><Icon type="arrow-down" /></span> |
| | | <span className="operation-btn" onClick={() => this.handleUpDown(record, 'up')} style={{color: '#1890ff'}}><Icon type="arrow-up" /></span> |
| | | <span className="operation-btn" onClick={() => this.handleUpDown(record, 'down')} style={{color: '#ff4d4f'}}><Icon type="arrow-down" /></span> |
| | | <Popconfirm |
| | | overlayClassName="popover-confirm" |
| | | title={props.dict['model.query.delete']} |
| | | onConfirm={() => this.handleDelete(record.key) |
| | | }> |
| | | <span style={{color: '#1890ff', cursor: 'pointer'}}><Icon type="delete" /></span> |
| | |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={24}> |
| | | <EditTable data={verify.printerTypeList} dict={this.props.dict} ref="editTable"/> |
| | | <EditTable data={verify.printerTypeList} ref="editTable"/> |
| | | </Col> |
| | | </Row> |
| | | </Form> |
| | |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={12}> |
| | | <Form.Item label={this.props.dict['header.form.order']}> |
| | | <Form.Item label="排列"> |
| | | {getFieldDecorator('order', { |
| | | initialValue: card.order, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: this.props.dict['form.required.select'] + this.props.dict['header.form.order'] + '!' |
| | | message: this.props.dict['form.required.select'] + '排列!' |
| | | } |
| | | ] |
| | | })( |
| | | <Select getPopupContainer={() => document.getElementById('columncolspan')} > |
| | | <Select.Option value="vertical">{this.props.dict['header.form.vertical']}</Select.Option> |
| | | <Select.Option value="horizontal">{this.props.dict['header.form.horizontal']}</Select.Option> |
| | | <Select.Option value="vertical2">{this.props.dict['header.form.vertical2']}</Select.Option> |
| | | <Select.Option value="topPicBottomText">{this.props.dict['header.form.topPicBottomText']}</Select.Option> |
| | | <Select.Option value="leftPicRightText">{this.props.dict['header.form.leftPicRightText']}</Select.Option> |
| | | <Select.Option value="vertical">纵向</Select.Option> |
| | | <Select.Option value="horizontal">横向</Select.Option> |
| | | <Select.Option value="vertical2">纵向(2列)</Select.Option> |
| | | <Select.Option value="topPicBottomText">上图下文</Select.Option> |
| | | <Select.Option value="leftPicRightText">左图右文</Select.Option> |
| | | </Select> |
| | | )} |
| | | </Form.Item> |
| | |
| | | label: this.props.dict['model.form.columnWidth'], |
| | | initVal: this.props.card.Width, |
| | | required: true |
| | | }, |
| | | // { |
| | | // type: 'select', |
| | | // key: 'style', |
| | | // label: this.props.dict['model.form.style'], |
| | | // initVal: this.props.card.style, |
| | | // required: true, |
| | | // options: [{ |
| | | // MenuID: 'button', |
| | | // text: this.props.dict['header.form.button'] |
| | | // }, { |
| | | // MenuID: 'text', |
| | | // text: this.props.dict['model.form.href'] |
| | | // }] |
| | | // }, |
| | | // { |
| | | // type: 'select', |
| | | // key: 'show', |
| | | // label: this.props.dict['header.form.order'], |
| | | // initVal: this.props.card.show, |
| | | // required: true, |
| | | // options: [{ |
| | | // MenuID: 'horizontal', |
| | | // text: this.props.dict['header.form.horizontal'] |
| | | // }, { |
| | | // MenuID: 'vertical', |
| | | // text: this.props.dict['header.form.vertical'] |
| | | // }] |
| | | // } |
| | | } |
| | | ] |
| | | } |
| | | |
| | |
| | | |
| | | return ( |
| | | <div className="model-table-column-list"> |
| | | <Tooltip placement="bottomLeft" overlayClassName="middle" title={dict['model.tooltip.column.guide']}> |
| | | <Tooltip placement="bottomLeft" overlayClassName="middle" title="在左侧工具栏《显示列》中,选择对应类型的显示列拖至此处添加;或点击《添加显示列》按钮批量添加,选择批量添加时,需提前选择使用表。注:添加合并列时,需设置可选列。"> |
| | | <QuestionCircleOutlined style={{color: '#c49f47', position: 'relative', left: '-15px', top: '5px'}} /> |
| | | </Tooltip> |
| | | {columnlist && columnlist.length > 0 ? |
| | |
| | | /> |
| | | {/* 显示列编辑 */} |
| | | <Modal |
| | | title={dict['header.modal.column.edit']} |
| | | title="显示列-编辑" |
| | | visible={modaltype === 'columns'} |
| | | width={800} |
| | | maskClosable={false} |
| | |
| | | </Modal> |
| | | {/* 操作列编辑 */} |
| | | <Modal |
| | | title={dict['header.modal.gridbtn.edit']} |
| | | title="操作列-编辑" |
| | | visible={modaltype === 'gridbtn'} |
| | | width={800} |
| | | maskClosable={false} |
| | |
| | | render: (text, record) => |
| | | ( |
| | | <div> |
| | | <span className="operation-btn" title={this.props.dict['model.edit']} onClick={() => this.handleEdit(record)} style={{color: '#1890ff'}}><Icon type="edit" /></span> |
| | | <span className="operation-btn" title={this.props.dict['header.form.up']} onClick={() => this.handleUpDown(record, 'up')} style={{color: '#1890ff'}}><Icon type="arrow-up" /></span> |
| | | <span className="operation-btn" title={this.props.dict['header.form.down']} onClick={() => this.handleUpDown(record, 'down')} style={{color: '#ff4d4f'}}><Icon type="arrow-down" /></span> |
| | | <span className="operation-btn" onClick={() => this.handleEdit(record)} style={{color: '#1890ff'}}><Icon type="edit" /></span> |
| | | <span className="operation-btn" onClick={() => this.handleUpDown(record, 'up')} style={{color: '#1890ff'}}><Icon type="arrow-up" /></span> |
| | | <span className="operation-btn" onClick={() => this.handleUpDown(record, 'down')} style={{color: '#ff4d4f'}}><Icon type="arrow-down" /></span> |
| | | <Popconfirm |
| | | overlayClassName="popover-confirm" |
| | | title={this.props.dict['model.query.delete']} |
| | | onConfirm={() => this.handleDelete(record) |
| | | }> |
| | | <span className="operation-btn" style={{color: '#ff4d4f'}}><Icon type="delete" /></span> |
| | |
| | | |
| | | return ( |
| | | <div className={'model-table-search-list length' + searchlist.length}> |
| | | <Tooltip placement="bottomLeft" overlayClassName="middle" title={dict['model.tooltip.search.guide']}> |
| | | <Tooltip placement="bottomLeft" overlayClassName="middle" title="在左侧工具栏《搜索》中,选择对应搜索框拖至此处添加;或点击按钮《添加搜索条件》批量添加,选择批量添加时,需提前选择使用表。"> |
| | | <QuestionCircleOutlined style={{color: '#c49f47', position: 'relative', left: '-15px', top: '5px'}} /> |
| | | </Tooltip> |
| | | <FieldsComponent config={{uuid: config.uuid, search: searchlist}} type="search" /> |
| | |
| | | render: (text, record) => |
| | | this.state.dataSource.length >= 1 ? ( |
| | | <div> |
| | | <span className="operation-btn" title={props.dict['header.form.down']} onClick={() => this.handleUpDown(record, 'down')} style={{color: '#ff4d4f'}}><Icon type="arrow-down" /></span> |
| | | <span className="operation-btn" title={props.dict['header.form.up']} onClick={() => this.handleUpDown(record, 'up')} style={{color: '#1890ff'}}><Icon type="arrow-up" /></span> |
| | | <span className="operation-btn" onClick={() => this.handleUpDown(record, 'down')} style={{color: '#ff4d4f'}}><Icon type="arrow-down" /></span> |
| | | <span className="operation-btn" onClick={() => this.handleUpDown(record, 'up')} style={{color: '#1890ff'}}><Icon type="arrow-up" /></span> |
| | | <Popconfirm |
| | | overlayClassName="popover-confirm" |
| | | title={props.dict['model.query.delete']} |
| | | onConfirm={() => this.handleDelete(record.key) |
| | | }> |
| | | <span style={{color: '#ff4d4f', cursor: 'pointer'}}><Icon type="delete" /></span> |
| | |
| | | render: (text, record) => |
| | | this.state.dataSource.length >= 1 ? ( |
| | | <div> |
| | | <span className="operation-btn" title={this.props.dict['header.form.up']} onClick={() => this.handleUpDown(record, 'up')} style={{color: '#1890ff'}}><Icon type="arrow-up" /></span> |
| | | <span className="operation-btn" title={this.props.dict['header.form.down']} onClick={() => this.handleUpDown(record, 'down')} style={{color: '#ff4d4f'}}><Icon type="arrow-down" /></span> |
| | | <span className="operation-btn" onClick={() => this.handleUpDown(record, 'up')} style={{color: '#1890ff'}}><Icon type="arrow-up" /></span> |
| | | <span className="operation-btn" onClick={() => this.handleUpDown(record, 'down')} style={{color: '#ff4d4f'}}><Icon type="arrow-down" /></span> |
| | | <Popconfirm |
| | | overlayClassName="popover-confirm" |
| | | title={this.props.dict['model.query.delete']} |
| | | onConfirm={() => this.handleDelete(record.key) |
| | | }> |
| | | <span style={{color: '#1890ff', cursor: 'pointer'}}><Icon type="delete" /></span> |
| | |
| | | } else { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: this.props.dict['model.form.selectItem.error'], |
| | | message: '下拉选项设置错误!', |
| | | duration: 5 |
| | | }) |
| | | } |
| | |
| | | {/* 表名添加 */} |
| | | <div className="ant-col ant-form-item-label"> |
| | | <label> |
| | | <Tooltip placement="topLeft" title={dict['model.tooltip.table.guide']}> |
| | | <Tooltip placement="topLeft" title="此处可以添加页面配置相关的常用表,可通过工具栏中的添加按钮,可批量添加表格相关字段。"> |
| | | <QuestionCircleOutlined className="mk-form-tip" /> |
| | | {dict['header.menu.table.add']} |
| | | </Tooltip> |
| | |
| | | {tabgroups.map((group, index) => { |
| | | return ( |
| | | <div key={index} className="tab-line-list"> |
| | | {index === 0 ? <Tooltip placement="bottomLeft" overlayClassName="middle" title={dict['model.tooltip.tabs.guide']}> |
| | | {index === 0 ? <Tooltip placement="bottomLeft" overlayClassName="middle" title="在左侧工具栏《标签页》中,选择对应类型的标签页拖至此处添加。"> |
| | | <QuestionCircleOutlined style={{color: '#c49f47', position: 'absolute', left: '5px', top: '20px'}} /> |
| | | </Tooltip> : null} |
| | | {index !== (tabgroups.length - 1) ? |
| | |
| | | })} |
| | | {/* 标签编辑 */} |
| | | <Modal |
| | | title={dict['header.modal.tabs.edit']} |
| | | title="标签-编辑" |
| | | visible={visible} |
| | | width={750} |
| | | maskClosable={false} |
| | |
| | | { |
| | | type: 'text', |
| | | key: 'valueText', |
| | | label: Formdict['header.form.valueText'], |
| | | label: '文本·字段', |
| | | initVal: card.valueText || '', |
| | | required: true, |
| | | readonly: false |
| | |
| | | { |
| | | type: 'text', |
| | | key: 'orderBy', |
| | | label: Formdict['header.form.orderBy'], |
| | | label: '排序·字段', |
| | | initVal: card.orderBy || '', |
| | | required: false, |
| | | readonly: false |
| | |
| | | { |
| | | type: 'select', |
| | | key: 'orderType', |
| | | label: Formdict['header.form.orderType'], |
| | | label: '排序方式', |
| | | initVal: card.orderType || 'asc', |
| | | options: [{ |
| | | value: 'asc', |
| | |
| | | { |
| | | type: 'radio', |
| | | key: 'database', |
| | | label: Formdict['header.form.database'], |
| | | label: '数据库', |
| | | initVal: card.database || 'local', |
| | | options: [{ |
| | | value: 'local', |
| | | text: Formdict['header.form.database.local'] |
| | | text: '本地' |
| | | }, { |
| | | value: 'sso', |
| | | text: Formdict['header.form.database.sso'] |
| | | text: '系统' |
| | | }] |
| | | }, |
| | | { |
| | |
| | | { |
| | | type: 'select', |
| | | key: 'funcType', |
| | | label: Formdict['header.form.funcType'], |
| | | label: '功能类型', |
| | | initVal: card.funcType || '', |
| | | required: true, |
| | | options: [{ |
| | | value: 'changeuser', |
| | | text: Formdict['header.form.func.changeuser'] |
| | | text: '切换用户' |
| | | }, { |
| | | value: 'print', |
| | | text: '标签打印' |
| | |
| | | { |
| | | type: 'radio', |
| | | key: 'pagination', |
| | | label: Formdict['header.form.pagination'], |
| | | label: '分页', |
| | | initVal: card.pagination || 'false', |
| | | required: false, |
| | | options: [{ |
| | |
| | | { |
| | | type: 'radio', |
| | | key: 'scale', |
| | | label: Formdict['header.form.clickscale'], |
| | | initVal: card.scale || 'false', |
| | | label: '点击缩放', |
| | | initVal: card.scale || 'true', |
| | | required: false, |
| | | options: [{ |
| | | value: 'true', |
| | |
| | | readonly: !(setting.laypage === 'false'), |
| | | forbid: !['line', 'bar'].includes(card.chartType), |
| | | options: [ |
| | | { value: 'query', text: Formdict['header.form.query'] }, |
| | | { value: 'statistics', text: Formdict['header.form.statistics'] } |
| | | { value: 'query', text: '查询' }, |
| | | { value: 'statistics', text: '统计' } |
| | | ] |
| | | }, |
| | | { |
| | |
| | | text: '分隔线' |
| | | }, { |
| | | value: 'linkMain', |
| | | text: Formdict['header.form.linkMain'] |
| | | text: '关联主表' |
| | | }] |
| | | |
| | | let _fieldlength = 50 |
| | |
| | | { |
| | | type: 'text', |
| | | key: 'valueText', |
| | | label: Formdict['header.form.valueText'], |
| | | label: '文本·字段', |
| | | initVal: card.valueText || '', |
| | | required: true, |
| | | readonly: false |
| | |
| | | { |
| | | type: 'text', |
| | | key: 'orderBy', |
| | | label: Formdict['header.form.orderBy'], |
| | | label: '排序·字段', |
| | | initVal: card.orderBy || '', |
| | | required: false, |
| | | readonly: false |
| | |
| | | { |
| | | type: 'select', |
| | | key: 'orderType', |
| | | label: Formdict['header.form.orderType'], |
| | | label: '排序方式', |
| | | initVal: card.orderType || 'asc', |
| | | options: [{ |
| | | value: 'asc', |
| | |
| | | min: 1, |
| | | max: 100, |
| | | precision: 0, |
| | | label: appType === 'mob' ? '行数' : Formdict['header.form.maxRows'], |
| | | label: appType === 'mob' ? '行数' : '最大行数', |
| | | tooltip: appType === 'mob' ? '行数为空时,高度自适应' : '', |
| | | initVal: card.maxRows || (appType === 'mob' ? '' : 6), |
| | | required: false |
| | |
| | | { |
| | | type: 'select', |
| | | key: 'regular', |
| | | label: Formdict['header.form.regular'], |
| | | label: '正则校验', |
| | | initVal: card.regular || '', |
| | | options: [{ |
| | | value: '', |
| | |
| | | { |
| | | type: 'radio', |
| | | key: 'readonly', |
| | | label: Formdict['header.form.readonly'], |
| | | label: '只读', |
| | | initVal: card.readonly || 'false', |
| | | options: [{ |
| | | value: 'true', |
| | |
| | | { |
| | | type: 'radio', |
| | | key: 'database', |
| | | label: Formdict['header.form.database'], |
| | | label: '数据库', |
| | | initVal: card.database || 'local', |
| | | options: [{ |
| | | value: 'local', |
| | | text: Formdict['header.form.database.local'] |
| | | text: '本地' |
| | | }, { |
| | | value: 'sso', |
| | | text: Formdict['header.form.database.sso'] |
| | | text: '系统' |
| | | }] |
| | | }, |
| | | { |
| | |
| | | { |
| | | type: 'radio', |
| | | key: 'readin', |
| | | label: Formdict['header.form.readin'], |
| | | label: '自动填充', |
| | | tooltip: '是否将表格选中的数据自动填充到表单(字段相同)', |
| | | initVal: card.readin || 'true', |
| | | options: [{ |
| | |
| | | <Form.Item label={item.label} className="text-area"> |
| | | {getFieldDecorator(item.key, { |
| | | initialValue: item.initVal |
| | | })(<EditTable dict={this.props.dict} type={openType} linkSubFields={this.state.linkSubFields}/>)} |
| | | })(<EditTable type={openType} linkSubFields={this.state.linkSubFields}/>)} |
| | | </Form.Item> |
| | | </Col> |
| | | ) |
| | |
| | | if (empty) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: this.props.dict['model.form.selectItem.error'], |
| | | message: '下拉选项设置错误!', |
| | | duration: 5 |
| | | }) |
| | | return |
| | |
| | | |
| | | class EditTable extends Component { |
| | | static propTpyes = { |
| | | dict: PropTypes.object, // 字典项 |
| | | type: PropTypes.string, // 表单类型 |
| | | linkSubFields: PropTypes.array, // 关联字段 |
| | | onChange: PropTypes.func // 数据变化 |
| | |
| | | } |
| | | |
| | | UNSAFE_componentWillMount () { |
| | | const { linkSubFields, type, dict } = this.props |
| | | const { linkSubFields, type } = this.props |
| | | let data = this.props['data-__meta'].initialValue |
| | | |
| | | if (!data) { |
| | |
| | | render: (text, record) => |
| | | this.state.dataSource.length >= 1 ? ( |
| | | <div> |
| | | <span className="operation-btn" title={dict['header.form.up']} onClick={() => this.handleUpDown(record, 'up')} style={{color: '#1890ff'}}><Icon type="arrow-up" /></span> |
| | | <span className="operation-btn" title={dict['header.form.down']} onClick={() => this.handleUpDown(record, 'down')} style={{color: '#ff4d4f'}}><Icon type="arrow-down" /></span> |
| | | <span className="operation-btn" onClick={() => this.handleUpDown(record, 'up')} style={{color: '#1890ff'}}><Icon type="arrow-up" /></span> |
| | | <span className="operation-btn" onClick={() => this.handleUpDown(record, 'down')} style={{color: '#ff4d4f'}}><Icon type="arrow-down" /></span> |
| | | <Popconfirm |
| | | overlayClassName="popover-confirm" |
| | | title={dict['model.query.delete']} |
| | | onConfirm={() => this.handleDelete(record.key) |
| | | }> |
| | | <span style={{color: '#ff4d4f', cursor: 'pointer'}}><Icon type="delete" /></span> |
| | |
| | | render: (text, record) => |
| | | this.state.dataSource.length >= 1 ? ( |
| | | <div> |
| | | <span className="operation-btn" title={this.props.dict['header.form.up']} onClick={() => this.handleUpDown(record, 'up')} style={{color: '#1890ff'}}><Icon type="arrow-up" /></span> |
| | | <span className="operation-btn" title={this.props.dict['header.form.down']} onClick={() => this.handleUpDown(record, 'down')} style={{color: '#ff4d4f'}}><Icon type="arrow-down" /></span> |
| | | <span className="operation-btn" onClick={() => this.handleUpDown(record, 'up')} style={{color: '#1890ff'}}><Icon type="arrow-up" /></span> |
| | | <span className="operation-btn" onClick={() => this.handleUpDown(record, 'down')} style={{color: '#ff4d4f'}}><Icon type="arrow-down" /></span> |
| | | <Popconfirm |
| | | overlayClassName="popover-confirm" |
| | | title={this.props.dict['model.query.delete']} |
| | | onConfirm={() => this.handleDelete(record.key) |
| | | }> |
| | | <span style={{color: '#ff4d4f', cursor: 'pointer'}}><Icon type="delete" /></span> |
| | |
| | | |
| | | // 测试系统打印查询语句 |
| | | if ((options.sysType === 'local' && !window.GLOB.systemType) || window.debugger === true) { |
| | | _customScript && console.info(`${setting.$name ? `/*${setting.$name} 自定义脚本(同步查询)/\n` : ''}${_dataresource ? '' : '/*不执行默认sql*/\n'}${_customScript}`) |
| | | _customScript && console.info(`${setting.$name ? `/*${setting.$name} 自定义脚本(同步查询)*/\n` : ''}${_dataresource ? '' : '/*不执行默认sql*/\n'}${_customScript}`) |
| | | _dataresource && console.info(`${setting.$name ? `/*${setting.$name} 数据源(同步查询)*/\n` : ''}` + _dataresource) |
| | | } |
| | | |