public/options.json | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/assets/css/viewstyle.scss | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/tabviews/zshare/topSearch/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/templates/zshare/verifycard/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/login/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
public/options.json
@@ -10,7 +10,7 @@ "defaultLang": "zh-CN", "WXAppID": "", "debugger": false, "licenseKey": "", "licenseKey": "7EFE13KIKKILIJ7C8CFC", "probation": "", "host": "http://demo.mk9h.cn", "service": "erp_new/" src/assets/css/viewstyle.scss
@@ -441,6 +441,20 @@ border-color: $color6; } } .ant-carousel { .slick-dots { >li { button { background-color: $color3; } } >li.slick-active { button { background-color: $color6; } } } } } body.hidden-split-line #root { // 去除登录页分割线 src/tabviews/zshare/topSearch/index.jsx
@@ -520,9 +520,16 @@ this.props.form.validateFields((err, values) => { if (err) return let searches = this.getFieldsValues(values) let { searches, error } = this.getFieldsValues(values) if (this.state.hasReqFields) { if (error) { notification.warning({ top: 92, message: error, duration: 3 }) return } else if (this.state.hasReqFields) { let requireFields = searches.filter(item => item.required && item.value === '') if (requireFields.length > 0) { let labels = requireFields.map(item => item.label) @@ -580,6 +587,7 @@ // 获取搜索条件值 let search = [] let error = null searchlist.forEach(item => { if (item.type === 'group') { search.push({ @@ -601,10 +609,37 @@ }) } else { let type = item.type let val = values[item.field] !== undefined ? values[item.field] : '' if (type === 'multiselect' || (type === 'checkcard' && item.multiple === 'true')) { type = 'multi' } else if (type === 'text' && !error) { 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)) { error = `搜索条件${item.label}中,不可使用关键字from。` } else if (/(^|\s)insert\s/ig.test(val)) { error = `搜索条件${item.label}中,不可使用关键字insert。` } else if (/(^|\s)delete\s/ig.test(val)) { error = `搜索条件${item.label}中,不可使用关键字delete。` } else if (/(^|\s)update\s/ig.test(val)) { error = `搜索条件${item.label}中,不可使用关键字update。` } else if (/(^|\s)where\s/ig.test(val)) { error = `搜索条件${item.label}中,不可使用关键字where。` } else if (/(^|\s)drop\s/ig.test(val)) { error = `搜索条件${item.label}中,不可使用关键字drop。` } else if (/(^|\s)exec\s/ig.test(val)) { error = `搜索条件${item.label}中,不可使用关键字exec。` } else if (/(^|\s)truncate\s/ig.test(val)) { error = `搜索条件${item.label}中,不可使用关键字truncate。` } else if (/(^|\s)while\s/ig.test(val)) { error = `搜索条件${item.label}中,不可使用关键字while。` } else if (/(^|\s)for\s/ig.test(val)) { error = `搜索条件${item.label}中,不可使用关键字for。` } let val = values[item.field] !== undefined ? values[item.field] : '' } if (typeof(val) === 'string') { val = val.replace(/(^\s*|\s*$)/ig, '') @@ -622,7 +657,7 @@ } }) return search return {searches: search, error} } handleOk = (values) => { src/templates/zshare/verifycard/index.jsx
@@ -228,7 +228,7 @@ render: (text) => { let title = text.match(/^\s*\/\*.+\*\//) title = title && title[0] ? title[0] : '' text = title ? text.replace(title, '') : text // text = title ? text.replace(title, '') : text return ( <div> @@ -298,7 +298,7 @@ render: (text) => { let title = text.match(/^\s*\/\*.+\*\//) title = title && title[0] ? title[0] : '' text = title ? text.replace(title, '') : text // text = title ? text.replace(title, '') : text return ( <div> @@ -367,7 +367,7 @@ render: (text) => { let title = text.match(/^\s*\/\*.+\*\//) title = title && title[0] ? title[0] : '' text = title ? text.replace(title, '') : text // text = title ? text.replace(title, '') : text return ( <div> src/views/login/index.jsx
@@ -328,16 +328,85 @@ let _s = md5('mksoft' + moment().format('YYYYMMDD')) authCode = authCode ? authCode.split(',') : [] let index = authCode.findIndex(key => key === _s) let license = false if (window.GLOB.licenseKey) { if (window.GLOB.licenseKey.length !== 20) { Modal.warning({ title: `本地授权码已失效,请联系管理员。`, okText: '知道了' }) } else { let key = md5(window.GLOB.appId + 'minke_software' + window.GLOB.appkey).toUpperCase().substr(-6) if (index > -1 || window.GLOB.licenseKey === key) { let key1 = window.GLOB.licenseKey.substring(0, 6) let key2 = window.GLOB.licenseKey.substring(6, 14) let key3 = window.GLOB.licenseKey.substring(14) let key4 = md5(key1 + key2).toUpperCase().substr(-6) if (key === key1 && key3 === key4) { let last = window.GLOB.appkey[window.GLOB.appkey.length - 1] let offset = 0 let keys = {} if (!isNaN(+last)) { offset = (10 - last) % 10 } else { last = last.charCodeAt() - 65 offset = (30 - last) % 10 } for (let i = 0; i < 26; i++) { let char = String.fromCharCode(65 + i) keys[char] = (offset + i) % 10 } let lictime = +key2.replace(/[A-Z]/ig, (s) => { return keys[s] }) let curtime = +moment().format('YYYYMMDD') let licday = lictime - curtime let _mindUrl = window.location.href.split('#')[0] + 'notMind' if (licday < 0 || isNaN(licday)) { Modal.warning({ title: '本地授权码已失效,请联系管理员。', okText: '知道了' }) } else if (licday > 20) { license = true localStorage.removeItem(_mindUrl) } else { license = true if (localStorage.getItem(_mindUrl) !== 'false') { Modal.confirm({ title: `距离授权到期还剩${licday}天,请联系管理员。`, okText: '不在提醒', cancelText: '关闭', onOk() { localStorage.setItem(_mindUrl, 'false') }, onCancel() {}, }) } } } else { Modal.warning({ title: '本地授权码已失效,请联系管理员。', okText: '知道了' }) } } } if ((!window.GLOB.licenseKey && index > -1) || license) { this.setState({ auth: true }) } if (window.GLOB.licenseKey !== key && (index === -1 || index > 5)) { if (!window.GLOB.licenseKey && (index === -1 || index > 5)) { let _appId = window.GLOB.appId if (options.sysType === 'cloud') { // 云端使用系统配置appid