king
2023-03-10 cec96a86ed6b3fba6a10d6d46818e9755ac3b5ca
src/tabviews/zshare/mutilform/index.jsx
@@ -104,6 +104,12 @@
        delete item.style.marginRight
      }
      if (item.type === 'split' && item.splitctrl) {
        if (data.hasOwnProperty(item.splitctrl.toLowerCase()) && data[item.splitctrl.toLowerCase()] === '') {
          return false
        }
      }
      if (item.type === 'split' || item.type === 'formula') return true
      if (item.type === 'hint') {
        if (item.field && data[item.field.toLowerCase()]) {
@@ -165,6 +171,10 @@
          })
        }
        item.oriOptions = fromJS(item.options).toJS()
        if (item.empty === 'hidden' && item.oriOptions.length === 0) {
          item.hidden = true
        }
      }
      let newval = '$empty'
@@ -810,6 +820,10 @@
            })
          }
        }
        if (item.empty === 'hidden' && item.oriOptions.length > 0) {
          item.hidden = false
        }
      }
      
      return item
@@ -901,17 +915,8 @@
    formlist.forEach((item, index) => {
      if (item.hidden) return
      if (item.empty === 'hidden' && item.oriOptions.length === 0) return
      if (item.type === 'split') {
        if (item.splitctrl) {
          let cell = formlist.filter(m => m.field === item.splitctrl)[0]
          if (cell && (cell.hidden || (cell.empty === 'hidden' && !cell.oriOptions.length))) {
            return null
          }
        }
        fields.push(
          <Col span={24} key={index}>
            <p className="mk-form-split-line" style={item.style}>{item.label}</p>