king
2023-06-20 b25bda3d390f7db85584ae97315f2aeb7aae32ce
src/templates/zshare/modalform/datatable/index.jsx
@@ -174,6 +174,7 @@
      !is(fromJS(this.props.fields), fromJS(nextProps.fields)) ||
      !is(fromJS(this.props.linkSubFields), fromJS(nextProps.linkSubFields)) ||
      this.props.display !== nextProps.display ||
      (nextProps.multiple && this.props.multiple !== nextProps.multiple) ||
      this.props.type !== nextProps.type
    ) {
      this.setState({editingKey: ''}, () => {
@@ -185,9 +186,9 @@
  }
  getCloumns = () => {
    const { display, fields, linkSubFields, transfield, type } = this.props
    const { display, fields, linkSubFields, transfield, type, multiple } = this.props
    let columns = []
    let keys = ['ParentID']
    let keys = ['ParentID', 'pid']
    if (display === 'picture') {
      columns.push({
@@ -241,6 +242,14 @@
      editable: true,
    })
    if (multiple === 'dropdown' && display === 'text') {
      columns.unshift({
        title: 'pid',
        dataIndex: 'pid',
        editable: true,
      })
    }
    if (type === 'link') {
      columns.unshift({
        title: 'ParentID',