| | |
| | | shows.push('innerFunc') |
| | | } else { |
| | | shows.push('sql', 'sqlType') |
| | | if (this.record.execSuccess === 'never' && this.record.resetForms && this.record.resetForms[0]) { |
| | | shows.push('returnValue') |
| | | } |
| | | // if (this.record.execSuccess === 'never' && this.record.resetForms && this.record.resetForms[0]) { |
| | | // shows.push('returnValue') |
| | | // } |
| | | } |
| | | |
| | | if (this.record.linkmenu && this.record.linkmenu !== 'goback') { |
| | |
| | | if (values.outerBlacklist) { |
| | | values.outerBlacklist = values.outerBlacklist.replace(/\s/ig, '') |
| | | } |
| | | if (values.resetForms && values.resetForms.length === 0) { |
| | | values.resetForms = null |
| | | if (values.resetForms) { |
| | | if (values.resetForms.length === 0) { |
| | | values.resetForms = null |
| | | } else { |
| | | values.returnValue = 'true' |
| | | } |
| | | } |
| | | resolve(values) |
| | | } else { |
| | |
| | | mode: 'multiple', |
| | | options: resets |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'returnValue', |
| | | label: '更新表单', |
| | | initVal: card.returnValue || 'false', |
| | | tooltip: '与重置表单配合使用,开启时,必须在自定义脚本中返回数据,用于替换字段集和填充表单。', |
| | | options: [{ |
| | | value: 'false', |
| | | text: '禁用' |
| | | }, { |
| | | value: 'true', |
| | | text: '启用' |
| | | }] |
| | | }, |
| | | // { |
| | | // type: 'radio', |
| | | // key: 'returnValue', |
| | | // label: '更新表单', |
| | | // initVal: card.returnValue || 'false', |
| | | // tooltip: '与重置表单配合使用,开启时,必须在自定义脚本中返回数据,用于替换字段集和填充表单。', |
| | | // options: [{ |
| | | // value: 'false', |
| | | // text: '禁用' |
| | | // }, { |
| | | // value: 'true', |
| | | // text: '启用' |
| | | // }] |
| | | // }, |
| | | { |
| | | type: 'radio', |
| | | key: 'reload', |
| | |
| | | langList: [], |
| | | syncApp: false, |
| | | loginWays: null, |
| | | touristLogin: false, |
| | | syncing: false, |
| | | } |
| | | |
| | |
| | | sessionStorage.setItem('visitorUserID', result.UserID || '') |
| | | sessionStorage.setItem('visitorLoginUID', result.LoginUID || '') |
| | | |
| | | if (result.UserID && result.LoginUID) { |
| | | this.setState({touristLogin: true}) |
| | | } |
| | | |
| | | // 获取系统信息 |
| | | let _param = { |
| | | func: 's_Get_style', |
| | |
| | | } |
| | | |
| | | render () { |
| | | const { lineColor, bgImage, loginlogo, copyRight, webSite, ICP, loginWays, touristLogin } = this.state |
| | | const { lineColor, bgImage, loginlogo, copyRight, webSite, ICP, loginWays } = this.state |
| | | |
| | | return ( |
| | | <div className="login-container" id="mk-login-view" style={bgImage ? {backgroundImage: 'url(' + bgImage + ')'} : {}}> |
| | |
| | | {loginWays ? <LoginForm |
| | | auth={this.state.auth} |
| | | authError={this.state.authError} |
| | | touristLogin={touristLogin} |
| | | loginWays={loginWays} |
| | | lang={this.state.selectedlang} |
| | | langList={this.state.langList} |
| | |
| | | authLogin: PropTypes.func, |
| | | auth: PropTypes.bool, |
| | | authError: PropTypes.string, |
| | | touristLogin: PropTypes.bool, |
| | | lang: PropTypes.string, |
| | | langList: PropTypes.array, |
| | | loginWays: PropTypes.array |
| | |
| | | if (!this.props.auth) { |
| | | warning({ |
| | | title: this.props.authError || dict['auth_tip'] || '系统未授权,请联系管理员。', |
| | | okText: dict['ok'] || '确定', |
| | | cancelText: dict['cancel'] || '取消', |
| | | okText: dict['got_it'] || '知道了', |
| | | onOk() {}, |
| | | onCancel() {} |
| | | }) |
| | |
| | | } |
| | | |
| | | getvercode = () => { |
| | | const { smsId } = this.state |
| | | const { smsId, dict } = this.state |
| | | let _phone = this.props.form.getFieldValue('phone') |
| | | if (!_phone) { |
| | | message.warning('请输入手机号!') |
| | | message.warning(dict['phone_no_required'] || '请输入手机号!') |
| | | return |
| | | } else if (!/^1[3456789]\d{9}$/.test(_phone)) { |
| | | message.warning('手机号格式错误,请重填!') |
| | | message.warning(dict['phone_error'] || '手机号格式错误,请重填!') |
| | | return |
| | | } else if (!this.props.touristLogin) { |
| | | message.warning('未获取验证码设置,请稍后或刷新重试!') |
| | | } else if (!sessionStorage.getItem('visitorUserID') || !sessionStorage.getItem('visitorLoginUID')) { |
| | | message.warning(dict['vercode_error'] || '未获取验证码设置,请稍后或刷新重试!') |
| | | return |
| | | } |
| | | |