king
2021-09-02 3d4bc79a80eb9cff0f8ef7c53f9685c9ff9fbd2d
src/menu/components/share/markcomponent/index.jsx
@@ -129,8 +129,11 @@
  resetMark = () => {
    const { marks, columns, type } = this.props
    let markColumns = fromJS(this.state.markColumns).toJS()
    let _columns = fromJS(columns).toJS()
    let options = columns.map(col => {
    _columns.unshift({field: '$Index', label: '序号'})
    let options = _columns.map(col => {
      return {
        value: col.field,
        label: col.label,
@@ -143,7 +146,7 @@
          {
            value: 'dynamic',
            label: '动态值',
            children: columns.map(cell => {
            children: _columns.map(cell => {
              return {
                value: cell.field,
                label: cell.label
@@ -251,7 +254,7 @@
      }
    ]
    if (type === 'line') {
    if (type === 'line' || type === 'sequence') {
      signs.pop()
    } else if (type === 'slider') {
      markColumns = markColumns.filter(col => {
@@ -296,7 +299,7 @@
          } else {
            item.fontColor = ''
          }
        } catch {
        } catch (e) {
          item.fontColor = ''
        }
      }