king
2024-08-25 326aa6b3effaccc71cfe0775d47b0f29eb3695a6
src/menu/components/form/tab-form/index.jsx
@@ -279,7 +279,7 @@
  closeGroup = (cell) => {
    const { group } = this.state
    let card = fromJS(this.state.card).toJS()
    const _this = this
    const that = this
    confirm({
      content: '确定删除分组吗?',
@@ -291,8 +291,8 @@
          _group = card.subcards[0] || null
        }
        _this.setState({group: _group})
        _this.updateComponent(card)
        that.setState({group: _group})
        that.updateComponent(card)
      },
      onCancel() {}
    })
@@ -323,7 +323,7 @@
  changecols = (type) => {
    let card = fromJS(this.state.card).toJS()
    let config = fromJS(this.state.group).toJS()
    let _this = this
    let that = this
    config.fields = config.fields.map(item => {
      item.labelwidth = 33.3
@@ -355,8 +355,8 @@
          }
          return item
        })
        _this.setState({group: config})
        _this.updateComponent(card)
        that.setState({group: config})
        that.updateComponent(card)
      },
      onCancel() {}
    })
@@ -386,7 +386,7 @@
  closeForm = (cell) => {
    let group = fromJS(this.state.group).toJS()
    let card = fromJS(this.state.card).toJS()
    let _this = this
    let that = this
    group.fields = group.fields.filter(item => item.uuid !== cell.uuid)
@@ -400,8 +400,8 @@
    confirm({
      content: `确定删除<<${cell.label}>>吗?`,
      onOk() {
        _this.setState({group})
        _this.updateComponent(card)
        that.setState({group})
        that.updateComponent(card)
      },
      onCancel() {}
    })
@@ -573,7 +573,7 @@
  clearGroup = () => {
    let group = fromJS(this.state.group).toJS()
    let card = fromJS(this.state.card).toJS()
    let _this = this
    let that = this
    group.fields = []
@@ -587,8 +587,8 @@
    confirm({
      content: `确定清空表单吗?`,
      onOk() {
        _this.setState({group})
        _this.updateComponent(card)
        that.setState({group})
        that.updateComponent(card)
      },
      onCancel() {}
    })