| | |
| | | { |
| | | "appId": "201912040924165801464FF1788654BC5AC73", |
| | | "appkey": "20191106103859640976D6E924E464D029CF0", |
| | | "appId": "202108312122504607B107A83F55B40C98CCF", |
| | | "appkey": "20210831212235413F287EC3BF489424496C8", |
| | | "mainSystemApi": "http://sso.mk9h.cn/cloud/webapi/dostars", |
| | | "systemType": "", |
| | | "externalDatabase": "false", |
| | | "lineColor": "", |
| | | "filter": "false", |
| | | "defaultApp": "mk", |
| | | "defaultApp": "mkindustry", |
| | | "defaultLang": "zh-CN", |
| | | "WXAppID": "", |
| | | "debugger": false, |
| | | "licenseKey": "", |
| | | "probation": "", |
| | | "licenseKey": "7EFE13KIKLILIJB64C12", |
| | | "probation": "2021-12-31", |
| | | "keepPassword": "true", |
| | | "host": "http://qingqiumarket.cn", |
| | | "service": "MKWMS/" |
| | | "host": "http://demo.mk9h.cn", |
| | | "service": "erp_new/" |
| | | } |
| | |
| | | loginDevice = () => { |
| | | const { lines, selectIp } = this.state |
| | | |
| | | // 上报接口设置:工程模式-场景模式-开放接口设置-数据上报设置-数据上报服务器地址(开启服务器二次鉴权) |
| | | // let ip = 'http://localhost:3001' |
| | | let ip = selectIp.face_ip |
| | | |
| | |
| | | } |
| | | |
| | | previewPicture = (template) => { |
| | | if (template.disabled) return |
| | | // 图片预览 |
| | | this.setState({ |
| | | preview: template.url, |
| | |
| | | |
| | | Api.getSystemConfig({func: 'sPC_Get_UserTemp', TypeCharTwo: 'menu'}).then(res => { |
| | | let _templates = [] |
| | | let hasRolePermission = false |
| | | |
| | | res.UserTemp.forEach(temp => { |
| | | if (temp.Template === 'NewPage') { |
| | | return |
| | | } else if (temp.Template === 'RolePermission') { |
| | | hasRolePermission = true |
| | | return |
| | | } else if (temp.Template === 'CustomPage' && memberLevel < 20) { |
| | | return |
| | |
| | | }) |
| | | |
| | | sysTemplates = sysTemplates.map(temp => { |
| | | if (temp.type === 'RolePermission' && !hasRolePermission) { |
| | | temp.hidden = false |
| | | } else if (temp.type === 'CustomPage' && memberLevel < 20) { |
| | | temp.hidden = true |
| | | if (temp.type === 'CustomPage' && memberLevel < 20) { |
| | | temp.disabled = true |
| | | temp.disTitle = '会员等级不够,无开发权限。' |
| | | } |
| | | |
| | | return temp |
| | |
| | | let sysTemplates = fromJS(this.state.sysTemplates).toJS() |
| | | |
| | | // 角色权限分配模板,只可以添加一次 |
| | | if (sysMenu.isSystem && (sysMenu.Template === 'RolePermission')) { |
| | | sysTemplates = sysTemplates.map(temp => { |
| | | if (temp.type === sysMenu.type) { |
| | | temp.hidden = true |
| | | } |
| | | // if (sysMenu.isSystem && (sysMenu.Template === 'RolePermission')) { |
| | | // sysTemplates = sysTemplates.map(temp => { |
| | | // if (temp.type === sysMenu.type) { |
| | | // temp.hidden = true |
| | | // } |
| | | |
| | | return temp |
| | | }) |
| | | } |
| | | // return temp |
| | | // }) |
| | | // } |
| | | |
| | | this.menuFormRef.handleConfirm().then(res => { |
| | | let PageParam = { |
| | |
| | | <TabPane tab="系统模板" key="1"> |
| | | <Row> |
| | | {this.state.sysTemplates.map((template, index) => { |
| | | if (template.hidden) return null |
| | | // if (template.hidden) return null |
| | | |
| | | return ( |
| | | <Col key={`${index}`} span={8}> |
| | | <Col key={`${index}`} className={template.disabled ? 'disabled' : ''} title={template.disTitle || ''} span={8}> |
| | | <Card |
| | | title={template.title}> |
| | | <img onClick={() => {this.previewPicture(template)}} src={template.url} alt=""/> |
| | |
| | | .ant-col { |
| | | padding: 10px; |
| | | } |
| | | .ant-col.disabled { |
| | | cursor: not-allowed; |
| | | .ant-card-head-title { |
| | | color: #959595; |
| | | } |
| | | .card-operation { |
| | | display: none; |
| | | } |
| | | img { |
| | | cursor: not-allowed; |
| | | } |
| | | } |
| | | .ant-card-head-title { |
| | | text-align: center; |
| | | } |
| | |
| | | isSubtable: true |
| | | }, |
| | | { |
| | | title: '自定义', |
| | | type: 'CustomPage', |
| | | url: customImg, |
| | | baseconfig: '', |
| | | isSystem: true |
| | | }, |
| | | { |
| | | title: '树形页面', |
| | | type: 'TreePage', |
| | | url: treepage, |
| | |
| | | isSystem: true |
| | | }, |
| | | { |
| | | title: '自定义', |
| | | type: 'CustomPage', |
| | | url: customImg, |
| | | baseconfig: '', |
| | | isSystem: true |
| | | }, |
| | | { |
| | | title: '外部页面', |
| | | type: 'NewPage', |
| | | url: customImg, |
| | |
| | | title: '角色权限分配', |
| | | type: 'RolePermission', |
| | | url: rolemanage, |
| | | isSystem: true, |
| | | hidden: true |
| | | isSystem: true |
| | | } |
| | | ] |
| | | |