king
2022-01-11 10505e3f2b515a9e0c94496b2bc8340316863d64
2022-01-11
9个文件已修改
48 ■■■■ 已修改文件
src/menu/components/card/cardcomponent/index.jsx 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/cardcomponent/menus-wrap/index.jsx 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/cardcomponent/options.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/data-card/options.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/prop-card/index.jsx 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/treepage/index.jsx 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/menudesign/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mobdesign/index.jsx 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/pcdesign/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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, Modal, Button } from 'antd'
import { Popover, Switch, Col, Modal, Button, notification } from 'antd'
import { PlusOutlined, PlusSquareOutlined, EditOutlined, ArrowLeftOutlined, ArrowRightOutlined, SwapOutlined, ToolOutlined, DeleteOutlined, FontColorsOutlined } from '@ant-design/icons'
import asyncComponent from '@/utils/asyncComponent'
@@ -272,6 +272,14 @@
    const { card, appType } = this.state
    if (card.setting.click === 'menu' && card.setting.menu) {
      if (['IM'].includes(card.setting.menu)) {
        notification.warning({
          top: 92,
          message: '系统页面不可编辑!',
          duration: 5
        })
        return
      }
      MKEmitter.emit('changeEditMenu', {MenuID: card.setting.menu})
    } else if (card.setting.click === 'menus' && card.menus && card.menus.length > 0 && cards.subtype === 'datacard' && card.$cardType !== 'extendCard' && (appType === 'mob' || appType === 'pc')) {
      this.setState({visible: true})
src/menu/components/card/cardcomponent/menus-wrap/index.jsx
@@ -39,6 +39,11 @@
      } else {
        menulist = []
      }
      if (appType === 'mob') {
        menulist.push({
          value: 'IM', label: '即时通信(系统页)'
        })
      }
    } else {
      menulist = sessionStorage.getItem('fstMenuList')
      if (menulist) {
src/menu/components/card/cardcomponent/options.jsx
@@ -19,7 +19,7 @@
    } else {
      appmenulist = []
    }
    if (appType === 'mob' && hasMenus) { // 数据卡可打开即时通信
    if (appType === 'mob' && (subtype === 'datacard' || subtype === 'propcard') && cardType !== 'extendCard') { // 数据卡可打开即时通信
      appmenulist.push({
        value: 'IM', label: '即时通信(系统页)'
      })
src/menu/components/card/data-card/options.jsx
@@ -103,7 +103,7 @@
        {field: 'checkAll', values: ['checkbox']},
        {field: 'selected', values: ['radio', 'checkbox']},
        {field: 'selStyle', values: ['radio', 'checkbox']},
        {field: 'priKeyType', values: ['radio', 'checkbox']},
        // {field: 'priKeyType', values: ['radio', 'checkbox']},
      ],
      forbid: subtype === 'tablecard'
    },
src/tabviews/custom/components/card/prop-card/index.jsx
@@ -43,7 +43,7 @@
    let _data = { $$empty: true }
    let _sync = false
    
    if (_config.setting && _config.wrap.datatype !== 'static') {
    if (_config.wrap.datatype !== 'static') {
      _sync = _config.setting.sync === 'true'
      if (_sync && data) {
@@ -64,7 +64,7 @@
    if (_data) {
      _data.$$BID = BID || ''
      _data.$$BData = BData || ''
      if (_config.setting && _config.setting.primaryKey) {
      if (_config.setting.primaryKey) {
        _data.$$uuid = _data[_config.setting.primaryKey] || ''
      }
    }
@@ -101,7 +101,7 @@
    })
    let offset = 0
    if (_config.wrap.cardFloat && _config.wrap.cardFloat !== 'left' && _config.subcards[0] && _width < 24) {
    if (_config.wrap.cardFloat && _config.wrap.cardFloat !== 'left' && _width < 24) {
      offset = 24 - _width
      if (_config.wrap.cardFloat === 'center') {
        offset = Math.floor(offset / 2)
@@ -126,7 +126,7 @@
      config: _config,
      arr_field: _config.columns.map(col => col.field).join(','),
    }, () => {
      if (_config.wrap.datatype !== 'static' && _config.setting && _config.setting.sync !== 'true' && _config.setting.onload === 'true') {
      if (_config.wrap.datatype !== 'static' && _config.setting.sync !== 'true' && _config.setting.onload === 'true') {
        this.loadData()
      } else if ((!_sync || _config.wrap.priKeyType === 'static') && selected !== 'false') {
        setTimeout(() => {
@@ -192,8 +192,6 @@
  checkTopLine = () => {
    const { config, data, selected } = this.state
    if (!config.subcards[0]) return
    this.setState({
      activeKey: 0,
@@ -288,7 +286,7 @@
  resetParentParam = (MenuID, id, data) => {
    const { config } = this.state
    if (!config.setting || !config.setting.supModule || config.setting.supModule !== MenuID) return
    if (!config.setting.supModule || config.setting.supModule !== MenuID) return
    if (id !== this.state.BID || id !== '') {
      this.setState({ BID: id, BData: data }, () => {
        this.loadData()
src/tabviews/treepage/index.jsx
@@ -51,7 +51,8 @@
    revertLoading: false, // 恢复默认设置
    expandedKeys: [],     // 展开的树节点
    selectedKeys: [],     // 选中的树节点
    shortcuts: null       // 快捷键
    shortcuts: null,      // 快捷键
    searchKey: ''
  }
  /**
@@ -470,7 +471,8 @@
      BIDs: {},
      shortcuts: null,
      expandedKeys: [],
      selectedKeys: []
      selectedKeys: [],
      searchKey: ''
    }, () => {
      this.loadconfig()
    })
src/views/menudesign/index.jsx
@@ -931,7 +931,11 @@
        } else if (item.type === 'group') {
          check(item.components)
          return
        } else if (item.subtype === 'propcard' && item.subcards.length === 0) {
          error = `组件《${item.name}》中卡片不可为空!`
          return
        }
        if (['propcard', 'brafteditor', 'sandbox', 'stepform', 'tabform'].includes(item.subtype) && item.wrap.datatype === 'static') return
        if (['balcony'].includes(item.type) && item.wrap.datatype === 'static') return
  
src/views/mobdesign/index.jsx
@@ -1274,6 +1274,9 @@
          if (!item.wrap.field) {
            error = `搜索条件《${item.name}》未设置搜索字段!`
          }
        } else if (item.subtype === 'propcard' && item.subcards.length === 0) {
          error = `组件《${item.name}》中卡片不可为空!`
          return
        }
        if (item.wrap && item.wrap.pagestyle === 'slide') {
          swipes.push(item.name)
src/views/pcdesign/index.jsx
@@ -1476,7 +1476,11 @@
        } else if (item.type === 'group') {
          check(item.components)
          return
        } else if (item.subtype === 'propcard' && item.subcards.length === 0) {
          error = `组件《${item.name}》中卡片不可为空!`
          return
        }
        if (['propcard', 'brafteditor', 'sandbox', 'stepform', 'tabform'].includes(item.subtype) && item.wrap.datatype === 'static') return
        if (['balcony'].includes(item.type) && item.wrap.datatype === 'static') return