king
2020-06-04 113313a0496f958860a156b4330960e0d12522a7
src/templates/sharecomponent/tabscomponent/tabform/index.jsx
@@ -1,6 +1,6 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import { Form, Row, Col, Input, Select, Icon, Tooltip, Radio, InputNumber } from 'antd'
import { Form, Row, Col, Input, Select, Icon, Tooltip, Radio, InputNumber, notification } from 'antd'
import { formRule } from '@/utils/option.js'
import Utils from '@/utils/utils.js'
import './index.scss'
@@ -272,6 +272,12 @@
          }
          if (values.level === undefined) {
            values.level = ''
          } else if (values.supMenu && values.level === 0) {
            notification.warning({
              top: 92,
              message: '存在上级标签,且设置显示级别为0时,会造成子表中按钮不可用!',
              duration: 5
            })
          }
          resolve(values)