| | |
| | | 'header.form.clickscale': '点击缩放', |
| | | 'header.form.easyCode': 'EasyCode', |
| | | 'header.modal.form.edit': '表单-编辑', |
| | | 'model.searchCriteria': 'Search Criteria', |
| | | 'model.action': '按钮', |
| | | 'header.modal.action.copy': '按钮-复制', |
| | | 'header.modal.form.copy': '表单-复制', |
| | | 'header.modal.column.edit': '显示列-编辑', |
| | | 'header.modal.gridbtn.edit': '操作列-编辑', |
| | | 'header.modal.tabs.edit': '标签-编辑', |
| | | 'model.field.exist': '字段已存在', |
| | | 'model.name.exist': '名称已存在', |
| | | 'form.required.input': 'Please enter the ', |
| | | 'form.required.select': 'Please select a ', |
| | | 'form.required.add': 'Please add ', |
| | |
| | | 'header.form.clickscale': '点击缩放', |
| | | 'header.form.easyCode': '助记码', |
| | | 'header.modal.form.edit': '表单-编辑', |
| | | 'model.searchCriteria': '搜索条件', |
| | | 'model.action': '按钮', |
| | | 'header.modal.action.copy': '按钮-复制', |
| | | 'header.modal.form.copy': '表单-复制', |
| | | 'header.modal.column.edit': '显示列-编辑', |
| | | 'header.modal.gridbtn.edit': '操作列-编辑', |
| | | 'header.modal.tabs.edit': '标签-编辑', |
| | | 'model.field.exist': '字段已存在', |
| | | 'model.name.exist': '名称已存在', |
| | | 'form.required.input': '请输入', |
| | | 'form.required.select': '请选择', |
| | | 'form.required.add': '请添加', |
| | |
| | | if (fieldrepet) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: this.state.dict['model.field.exist'] + ' !', |
| | | message: '字段已存在!', |
| | | duration: 5 |
| | | }) |
| | | return |
| | | } else if (labelrepet) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: this.state.dict['model.name.exist'] + ' !', |
| | | message: '名称已存在!', |
| | | duration: 5 |
| | | }) |
| | | return |
| | |
| | | </Popover> |
| | | {/* 编辑搜索条件 */} |
| | | <Modal |
| | | title={dict['model.searchCriteria'] + '-' + dict['model.edit']} |
| | | title="搜索条件-编辑" |
| | | visible={visible} |
| | | width={850} |
| | | maskClosable={false} |
| | |
| | | if (labelrepet) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: this.state.dict['model.name.exist'] + ' !', |
| | | message: '名称已存在!', |
| | | duration: 5 |
| | | }) |
| | | return |
| | |
| | | _defaultValue = '' |
| | | } |
| | | } else if (card.setAll === 'true') { |
| | | _defaultValue = 'All' |
| | | _defaultValue = '全部' |
| | | } |
| | | } else if (card.type === 'daterange') { |
| | | _defaultValue = [null, null] |
| | |
| | | return ( |
| | | <Popover overlayClassName="mk-popover-control-wrap" mouseLeaveDelay={0.2} mouseEnterDelay={0.2} content={ |
| | | <div className="mk-popover-control"> |
| | | <Icon className="edit" title="edit" type="edit" onClick={() => editCard(id)} /> |
| | | <Icon className="copy" title="copy" type="copy" onClick={() => copyCard(id)} /> |
| | | <Icon className="close" title="delete" type="close" onClick={() => delCard(id)} /> |
| | | <Icon className="edit" title="编辑" type="edit" onClick={() => editCard(id)} /> |
| | | <Icon className="copy" title="复制" type="copy" onClick={() => copyCard(id)} /> |
| | | <Icon className="close" title="删除" type="close" onClick={() => delCard(id)} /> |
| | | </div> |
| | | } trigger="hover"> |
| | | <div className={'page-card ' + (card.labelShow || '')} style={{ opacity: opacity}}> |
| | |
| | | if (fieldrepet) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: this.state.dict['model.field.exist'] + ' !', |
| | | message: '字段已存在!', |
| | | duration: 5 |
| | | }) |
| | | return |
| | | } else if (labelrepet) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: this.state.dict['model.name.exist'] + ' !', |
| | | message: '名称已存在!', |
| | | duration: 5 |
| | | }) |
| | | return |
| | |
| | | */ |
| | | deleteElement = (card) => { |
| | | const { config } = this.props |
| | | const { dict } = this.state |
| | | let _this = this |
| | | |
| | | confirm({ |
| | | content: dict['model.confirm'] + dict['model.delete'] + ` - ${card.label} ?`, |
| | | content: `确定删除 - ${card.label} ?`, |
| | | onOk() { |
| | | let _searchlist = fromJS(_this.state.searchlist).toJS() |
| | | |
| | |
| | | /> |
| | | {/* 编辑搜索条件 */} |
| | | <Modal |
| | | title={dict['model.searchCriteria'] + '-' + dict['model.edit']} |
| | | title="搜索条件-编辑" |
| | | visible={visible} |
| | | width={850} |
| | | maskClosable={false} |
| | |
| | | if (labelrepet) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: this.state.dict['model.name.exist'] + ' !', |
| | | message: '名称已存在!', |
| | | duration: 5 |
| | | }) |
| | | return |
| | |
| | | if (fieldrepet) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: this.state.dict['model.field.exist'] + ' !', |
| | | message: '字段已存在!', |
| | | duration: 5 |
| | | }) |
| | | return |
| | |
| | | if (fieldrepet) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: this.state.dict['model.field.exist'] + ' !', |
| | | message: '字段已存在!', |
| | | duration: 5 |
| | | }) |
| | | return |
| | | } else if (labelrepet) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: this.state.dict['model.name.exist'] + ' !', |
| | | message: '名称已存在!', |
| | | duration: 5 |
| | | }) |
| | | return |
| | |
| | | /> |
| | | {/* 编辑搜索条件 */} |
| | | <Modal |
| | | title={dict['model.searchCriteria'] + '-' + (card && card.copyType === 'search' ? dict['model.copy'] : dict['model.edit'])} |
| | | title={card && card.copyType === 'search' ? '搜索条件-复制' : '搜索条件-编辑'} |
| | | visible={visible} |
| | | width={850} |
| | | maskClosable={false} |
| | |
| | | color: #ffffff; |
| | | } |
| | | } |
| | | // .ant-btn-primary[disabled] { |
| | | // color: #fff; |
| | | // background-color: #40a9ff; |
| | | // border-color: #40a9ff; |
| | | // } |
| | | .ant-btn-primary[disabled] { |
| | | color: #fff; |
| | | // background-color: #40a9ff; |
| | | // border-color: #40a9ff; |
| | | } |
| | | } |
| | | .sync-cloud-application { |
| | | .ant-modal-body { |