king
2022-04-11 3551d43a6aa26a4cce7ac647c3f27bdfe7a17a87
2022-04-11
4个文件已修改
74 ■■■■ 已修改文件
public/options.json 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/cardcellcomponent/dragaction/card.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/cardcomponent/index.jsx 53 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/zshare/verifycard/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/options.json
@@ -1,17 +1,18 @@
{
  "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",
  "keepPassword": "true",
  "host": "http://demo.mk9h.cn",
  "service": "erp_new/"
}
src/menu/components/card/cardcellcomponent/dragaction/card.jsx
@@ -164,8 +164,8 @@
  }
  let able = true
  // if ((appType === 'mob' || appType === 'pc') && parent && (parent.setting.click === 'menu' || parent.setting.click === 'menus')) {
  if ((appType === 'mob' || appType === 'pc') && parent && parent.setting.click === 'menu') {
  if ((appType === 'mob' || appType === 'pc') && parent && (parent.setting.click === 'menu' || parent.setting.click === 'menus')) {
  // if ((appType === 'mob' || appType === 'pc') && parent && parent.setting.click === 'menu') {
    able = false
  }
src/menu/components/card/cardcomponent/index.jsx
@@ -1,7 +1,7 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import { is, fromJS } from 'immutable'
import { Popover, Switch, Col } from 'antd'
import { Popover, Switch, Col, Modal, Button } from 'antd'
import { PlusOutlined, PlusSquareOutlined, EditOutlined, ArrowLeftOutlined, ArrowRightOutlined, SwapOutlined, ToolOutlined, DeleteOutlined, FontColorsOutlined } from '@ant-design/icons'
import asyncComponent from '@/utils/asyncComponent'
@@ -33,6 +33,7 @@
    elements: null,        // 编辑组
    side: 'front',
    appType: sessionStorage.getItem('appType'),
    visible: false
  }
  /**
@@ -276,7 +277,8 @@
  }
  doubleClickCard = () => {
    const { card } = this.state
    const { cards } = this.props
    const { card, appType } = this.state
    if (card.setting.click === 'menu' && card.setting.menu) {
      if (['IM'].includes(card.setting.menu)) {
@@ -294,12 +296,32 @@
      } else {
        MKEmitter.emit('changeEditMenu', {MenuID: card.setting.menu})
      }
    } else if (card.setting.click === 'menus' && card.menus && card.menus.length > 0 && cards.subtype === 'datacard' && appType) {
      this.setState({visible: true})
    }
  }
  changeMenu = (MenuId) => {
    if (MenuId === 'IM') {
      if (!sessionStorage.getItem('instantMessage')) return
      let param = {
        MenuID: sessionStorage.getItem('instantMessage'),
        copyMenuId: '',
        type: 'view'
      }
      param = window.btoa(window.encodeURIComponent(JSON.stringify(param)))
      MKEmitter.emit('changeEditMenu', {routerUrl: '/imdesign/' + param})
    } else {
      MKEmitter.emit('changeEditMenu', {MenuID: MenuId})
    }
  }
  render() {
    const { cards, offset } = this.props
    const { card, elements, side } = this.state
    const { card, elements, side, visible } = this.state
    let _style = {...card.style}
@@ -346,6 +368,31 @@
            </Popover>
          </div>
        </div>
        <Modal
          title="菜单组"
          wrapClassName="menus-detail-modal"
          visible={visible}
          closable={false}
          width={900}
          maskClosable={false}
          footer={[<Button key="close" onClick={() => { this.setState({ visible: false })}}>关闭</Button>]}
          destroyOnClose
        >
          <div className="menu-line">
            <div className="sort">序号</div>
            <div className="sign">标识</div>
            <div className="name">菜单</div>
            <div className="action">操作</div>
          </div>
          {card.menus && card.menus.map((item, index) => {
            return <div className="menu-line" key={index}>
              <div className="sort">{index + 1}</div>
              <div className="sign">{item.sign}</div>
              <div className="name">{item.label}</div>
              <div className="action"><span onClick={() => this.changeMenu(item.menu)}>详情</span></div>
            </div>
          })}
        </Modal>
      </Col>
    )
  }
src/templates/zshare/verifycard/index.jsx
@@ -535,7 +535,7 @@
  UNSAFE_componentWillMount() {
    const { columns, config, card, btnTab } = this.props
    let _verify = card.verify || {}
    let _verify = fromJS(card.verify || {}).toJS()
    let _invalid = _verify.invalid