king
2023-03-06 63a40e3da5f24b449122fb8b50c16dcbf69d5907
src/tabviews/custom/index.jsx
@@ -554,6 +554,14 @@
            cell.style = {...cell.style, ...cell.btnstyle}
          }
          if (cell.controlField) {
            if (/,/ig.test(cell.controlVal)) {
              cell.controlVals = cell.controlVal.split(',')
            } else {
              cell.controlVals = [(cell.controlVal || '')]
            }
          }
          return skip || permAction[cell.uuid]
        })
      }
@@ -589,9 +597,12 @@
              if (cell.OpenType === 'funcbutton' && cell.funcType === 'print' && cell.verify) { // 打印机设置
                cell = this.getPrinter(cell, item.uuid)
              }
              if (card.btnstyle) { // 兼容
                card.style = card.style || {}
                card.style = {...card.style, ...card.btnstyle}
              if (cell.controlField) {
                if (/,/ig.test(cell.controlVal)) {
                  cell.controlVals = cell.controlVal.split(',')
                } else {
                  cell.controlVals = [(cell.controlVal || '')]
                }
              }
            } else if (['text', 'number', 'formula'].includes(cell.eleType)) {
              if (!cell.height) {
@@ -632,9 +643,12 @@
              if (cell.OpenType === 'funcbutton' && cell.funcType === 'print' && cell.verify) { // 打印机设置
                cell = this.getPrinter(cell, item.uuid)
              }
              if (card.btnstyle) { // 兼容
                card.style = card.style || {}
                card.style = {...card.style, ...card.btnstyle}
              if (cell.controlField) {
                if (/,/ig.test(cell.controlVal)) {
                  cell.controlVals = cell.controlVal.split(',')
                } else {
                  cell.controlVals = [(cell.controlVal || '')]
                }
              }
            } else if (['text', 'number', 'formula'].includes(cell.eleType)) {
              if (!cell.height) {
@@ -680,6 +694,13 @@
            if (cell.OpenType === 'funcbutton' && cell.funcType === 'print' && cell.verify) { // 打印机设置
              cell = this.getPrinter(cell, item.uuid)
            }
            if (cell.controlField) {
              if (/,/ig.test(cell.controlVal)) {
                cell.controlVals = cell.controlVal.split(',')
              } else {
                cell.controlVals = [(cell.controlVal || '')]
              }
            }
          } else if (['text', 'number', 'formula'].includes(cell.eleType)) {
            if (!cell.height) {
              cell.innerHeight = 'auto'
@@ -724,6 +745,14 @@
              cell.style = {...cell.style, ...cell.btnstyle}
            }
            if (cell.controlField) {
              if (/,/ig.test(cell.controlVal)) {
                cell.controlVals = cell.controlVal.split(',')
              } else {
                cell.controlVals = [(cell.controlVal || '')]
              }
            }
            return skip || permAction[cell.uuid]
          })
          return col.elements.length !== 0