king
2019-12-13 a70940450c021a47e69abdf8fa8f7f98594601cc
src/templates/comtableconfig/index.jsx
@@ -147,6 +147,9 @@
          }, {
            MenuID: 'newpage',
            text: this.state.dict['header.form.newpage']
          }, {
            MenuID: 'currenttab',
            text: this.state.dict['header.form.currenttab']
          }]
        }
      ]
@@ -1742,8 +1745,6 @@
      })
      let _columns = [...columnsMap.values()]
      let indexes = items.map(card => {return card.id})
      let id = Math.max(...indexes, 0) + 1
      _columns.forEach(item => {
        if (item.selected) {
@@ -1760,7 +1761,6 @@
          }
          let newcard = {
            id: id,
            uuid: Utils.getuuid(),
            label: item.label,
            field: item.field,
@@ -1780,7 +1780,6 @@
          }
          items.push(newcard)
          id++
        }
      })
    } else {
@@ -1798,13 +1797,10 @@
      })
      let _columns = [...columnsMap.values()]
      let indexes = items.map(card => {return card.id})
      let id = Math.max(...indexes, 0)
      _columns.forEach(item => {
        if (item.selected) {
          let newcard = {
            id: id,
            uuid: Utils.getuuid(),
            Align: 'left',
            label: item.label,
@@ -1816,7 +1812,6 @@
          }
          items.push(newcard)
          id++
        }
      })
    }