| | |
| | | licenseKey -- 许可密钥,在内部网络中使用系统时,会跳过epc验证 |
| | | probation -- 试用期(YYYY-MM-DD),在正式系统中,试用期内调用系统接口的脚本会记录下来 |
| | | keepPassword -- 记住密码,默认开启,当值为"false"时禁用 |
| | | platforms -- 移动端可使用的平台类型,默认为 ["H5", "wechat", "android", "ios"] 分别代表H5页面、微信公众号、安卓APP、苹果APP |
| | | platforms -- 移动端可使用的平台类型,默认为 ["H5", "wechat", "android", "ios", "wxMiniProgram"] 分别代表H5页面、微信公众号、安卓APP、苹果APP、微信小程序 |
| | |
| | | "licenseKey": "", |
| | | "probation": "", |
| | | "keepPassword": "true", |
| | | "platforms": ["H5", "wechat", "android", "ios"], |
| | | "platforms": ["H5", "wechat", "android", "ios", "wxMiniProgram"], |
| | | "host": "http://qingqiumarket.cn", |
| | | "service": "MKWMS/" |
| | | } |
| | |
| | | </div> |
| | | </div> |
| | | } else if (card.type === 'formula') { |
| | | formItem = <div className="am-list-item hint"> |
| | | formItem = <div className="am-list-item formula"> |
| | | <div className="am-list-line"> |
| | | <div className="am-input-label">{card.label}</div> |
| | | <div className="am-input-control"> |
| | |
| | | } |
| | | } |
| | | } |
| | | .am-list-item.formula { |
| | | .am-list-line { |
| | | .am-input-control { |
| | | font-size: inherit; |
| | | font-weight: inherit; |
| | | color: inherit; |
| | | padding-right: 0px; |
| | | } |
| | | } |
| | | } |
| | | .am-list-item.checkbox { |
| | | height: auto; |
| | | .am-list-line { |
| | |
| | | } |
| | | let _rules = [{ |
| | | pattern: /^[^']*$/ig, |
| | | message: formRule.input.quotemsg |
| | | message: '不可使用英文状态的单引号!' |
| | | }, { |
| | | pattern: /^[^--]*$/ig, |
| | | message: '不可使用 -- !' |
| | | }, { |
| | | required: item.required === 'true', |
| | | message: item.label + '不可为空!' |
| | |
| | | if (item.encryption !== 'true') { |
| | | _rules.push({ |
| | | pattern: /^[^']*$/ig, |
| | | message: formRule.input.quotemsg |
| | | message: '不可使用英文状态的单引号!' |
| | | }, { |
| | | pattern: /^[^--]*$/ig, |
| | | message: '不可使用 -- !' |
| | | }) |
| | | } |
| | | item.rules = _rules |
| | |
| | | } else if (type === 'text' && !error) { |
| | | if (/'/ig.test(val)) { |
| | | error = `搜索条件${item.label}中,不可使用英文状态的单引号。` |
| | | } else if (/--/ig.test(val)) { |
| | | error = `搜索条件${item.label}中,不可使用 -- 。` |
| | | } else if (/(^|\s)select\s/ig.test(val)) { |
| | | error = `搜索条件${item.label}中,不可使用关键字select。` |
| | | } else if (/\sfrom(\s|\()/ig.test(val)) { |
| | |
| | | <Checkbox value="D">D</Checkbox> |
| | | </Checkbox.Group>) |
| | | } else if (card.type === 'hint') { |
| | | formItem = <div style={{marginTop: '10px', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '1.5', ...card.style}}>{card.message}</div> |
| | | formItem = <div style={{marginTop: '8px', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '1.5', ...card.style}}>{card.message}</div> |
| | | } else if (card.type === 'formula') { |
| | | formItem = <div style={{marginTop: '8px', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '1.5', ...card.style}}>{card.formula}{card.postfix || ''}</div> |
| | | } else if (card.type === 'split') { |
| | |
| | | formMessage: '最多@max个字符。', // 文本表单最大提示 |
| | | numbermsg: '请输入数字!', |
| | | lettermsg: '请输入字母!', |
| | | quotemsg: '不可使用英文状态的单引号!', |
| | | funcname: '请输入数字、字母、汉字以及_' |
| | | }, |
| | | field: { // 字段名 |
| | |
| | | <ScriptForm applist={applist} wrappedComponentRef={(inst) => this.scriptRef = inst} inputSubmit={this.submitScript} /> |
| | | </Modal> |
| | | <Modal |
| | | title={'编辑子应用'} |
| | | title={subVisible === 'plus' ? '添加子应用' : '编辑子应用'} |
| | | width={'850px'} |
| | | maskClosable={false} |
| | | visible={subVisible !== false} |
| | |
| | | initialValue: card ? card.css : 'bg_black_style_blue' |
| | | })( |
| | | <Select> |
| | | <Select.Option value="bg_black_style_blue">蓝色</Select.Option> |
| | | <Select.Option value="bg_black_style_red">红色</Select.Option> |
| | | <Select.Option value="bg_black_style_orange_red">橙红色</Select.Option> |
| | | <Select.Option value="bg_black_style_orange">橙色</Select.Option> |
| | | <Select.Option value="bg_black_style_orange_yellow">橙黄色</Select.Option> |
| | | <Select.Option value="bg_black_style_yellow">黄色</Select.Option> |
| | | <Select.Option value="bg_black_style_yellow_green">黄绿色</Select.Option> |
| | | <Select.Option value="bg_black_style_green">绿色</Select.Option> |
| | | <Select.Option value="bg_black_style_cyan">青色</Select.Option> |
| | | <Select.Option value="bg_black_style_blue_purple">蓝紫色</Select.Option> |
| | | <Select.Option value="bg_black_style_purple">紫色</Select.Option> |
| | | <Select.Option value="bg_black_style_magenta">洋红色</Select.Option> |
| | | <Select.Option value="bg_black_style_grass_green">草绿色</Select.Option> |
| | | <Select.Option value="bg_black_style_deep_red">深红色</Select.Option> |
| | | <Select.Option value="bg_black_style_blue"><span className="color-block" style={{background: '#1890ff'}}></span>蓝色</Select.Option> |
| | | <Select.Option value="bg_black_style_red"><span className="color-block" style={{background: '#f5222d'}}></span>红色</Select.Option> |
| | | <Select.Option value="bg_black_style_orange_red"><span className="color-block" style={{background: '#fa541c'}}></span>橙红色</Select.Option> |
| | | <Select.Option value="bg_black_style_orange"><span className="color-block" style={{background: '#fa8c16'}}></span>橙色</Select.Option> |
| | | <Select.Option value="bg_black_style_orange_yellow"><span className="color-block" style={{background: '#faad14'}}></span>橙黄色</Select.Option> |
| | | <Select.Option value="bg_black_style_yellow"><span className="color-block" style={{background: '#fadb14'}}></span>黄色</Select.Option> |
| | | <Select.Option value="bg_black_style_yellow_green"><span className="color-block" style={{background: '#a0d911'}}></span>黄绿色</Select.Option> |
| | | <Select.Option value="bg_black_style_green"><span className="color-block" style={{background: '#52c41a'}}></span>绿色</Select.Option> |
| | | <Select.Option value="bg_black_style_cyan"><span className="color-block" style={{background: '#13c2c2'}}></span>青色</Select.Option> |
| | | <Select.Option value="bg_black_style_blue_purple"><span className="color-block" style={{background: '#2f54eb'}}></span>蓝紫色</Select.Option> |
| | | <Select.Option value="bg_black_style_purple"><span className="color-block" style={{background: '#722ed1'}}></span>紫色</Select.Option> |
| | | <Select.Option value="bg_black_style_magenta"><span className="color-block" style={{background: '#eb2f96'}}></span>洋红色</Select.Option> |
| | | <Select.Option value="bg_black_style_grass_green"><span className="color-block" style={{background: '#aeb303'}}></span>草绿色</Select.Option> |
| | | <Select.Option value="bg_black_style_deep_red"><span className="color-block" style={{background: '#c32539'}}></span>深红色</Select.Option> |
| | | </Select> |
| | | )} |
| | | </Form.Item> |
| | |
| | | </Tooltip> |
| | | }> |
| | | {getFieldDecorator('delay', { |
| | | initialValue: card ? card.delay || 0 : 0 |
| | | initialValue: card ? card.delay || 0 : 200 |
| | | })(<InputNumber min={0} max={5000} precision={0} onPressEnter={this.handleSubmit}/>)} |
| | | </Form.Item> |
| | | </Col> : null} |
| | |
| | | padding-top: 7px; |
| | | } |
| | | } |
| | | .color-block { |
| | | display: inline-block; |
| | | width: 16px; |
| | | height: 16px; |
| | | margin-right: 5px; |
| | | vertical-align: middle; |
| | | position: relative; |
| | | top: -2px; |
| | | } |
| | | } |
| | | .ant-select-dropdown { |
| | | .color-block { |
| | | display: inline-block; |
| | | width: 16px; |
| | | height: 16px; |
| | | margin-right: 5px; |
| | | vertical-align: middle; |
| | | position: relative; |
| | | top: -2px; |
| | | } |
| | | } |