king
2022-03-19 53ae8b0a762a3fcbfe35acc9055ffbaeec621742
2022-03-19
4个文件已修改
63 ■■■■ 已修改文件
public/options.json 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/mob/components/topbar/normal-navbar/index.jsx 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/mob/components/topbar/normal-navbar/index.scss 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/mob/components/topbar/normal-navbar/options.jsx 33 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/options.json
@@ -1,17 +1,17 @@
{
  "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": "",
  "host": "http://qingqiumarket.cn",
  "service": "MKWMS/"
  "licenseKey": "7EFE13KIKLILIJB64C12",
  "probation": "2021-12-31",
  "host": "http://demo.mk9h.cn",
  "service": "erp_new/"
}
src/mob/components/topbar/normal-navbar/index.jsx
@@ -7,6 +7,7 @@
import asyncIconComponent from '@/utils/asyncIconComponent'
import getWrapForm from './options'
import MKEmitter from '@/utils/events.js'
import avatar from '@/assets/img/avatar.jpg'
import './index.scss'
const NormalForm = asyncIconComponent(() => import('@/components/normalform'))
@@ -20,6 +21,7 @@
  }
  state = {
    avatar: sessionStorage.getItem('CloudAvatar') || avatar,
    card: null,
    back: false
  }
@@ -181,7 +183,7 @@
  }
  render() {
    const { card } = this.state
    const { card, avatar } = this.state
    let right = null
    if (card.wrap.logout === 'true') {
@@ -210,7 +212,8 @@
        </Popover>
        <div className="am-navbar">
          <div className="am-navbar-left">
            {card.wrap.back !== 'false' ? <LeftOutlined /> : null}
            {card.wrap.back !== 'false' && card.wrap.menuPosition !== 'left' ? <LeftOutlined /> : null}
            {card.wrap.menuPosition === 'left' ? <div className="img" style={{backgroundImage: `url(${avatar})`}}></div> : null}
          </div>
          {card.wrap.type !== 'search' ?
            <div className="am-navbar-title">{card.wrap.title || ''}</div> :
src/mob/components/topbar/normal-navbar/index.scss
@@ -36,6 +36,15 @@
      .anticon-left {
        margin: 0 8px 0 5px;
      }
      .img {
        width: 30px;
        height: 30px;
        border-radius: 4px;
        margin-top: 9px;
        margin-right: 5px;
        background-size: cover;
        background-position: center center;
      }
    }
    .am-navbar-title {
      text-align: center;
src/mob/components/topbar/normal-navbar/options.jsx
@@ -46,6 +46,21 @@
    },
    {
      type: 'radio',
      field: 'menuPosition',
      label: '菜单位置',
      initval: wrap.menuPosition || 'right',
      tooltip: '自定义菜单的位置。',
      required: false,
      options: [
        {value: 'left', label: '左侧'},
        {value: 'right', label: '右侧'},
      ],
      controlFields: [
        {field: 'back', values: ['right']},
      ]
    },
    {
      type: 'radio',
      field: 'back',
      label: '返回',
      initval: wrap.back || 'true',
@@ -108,15 +123,6 @@
      ]
    },
    {
      type: 'select',
      field: 'linkmenu',
      label: '关联菜单',
      initval: wrap.linkmenu || '',
      tooltip: '使用扫码登录功能或菜单跳转功能时,需选择跳转的菜单。',
      required: false,
      options: menulist
    },
    {
      type: 'radio',
      field: 'reload',
      label: '返回后',
@@ -132,6 +138,15 @@
      }]
    },
    {
      type: 'select',
      field: 'linkmenu',
      label: '关联菜单',
      initval: wrap.linkmenu || '',
      tooltip: '使用扫码登录功能或菜单跳转功能时,需选择跳转的菜单。',
      required: false,
      options: menulist
    },
    {
      type: 'table',
      field: 'menus',
      label: '自定义菜单',