king
2024-07-06 2b0818d407be09db0717a1922139707793c86026
src/utils/utils-custom.js
@@ -703,10 +703,6 @@
  * @return {String}  item 组件信息
  */
  static resetComponentConfig = (item, appType, commonId) => {
    if (item.type === 'navbar') {
      return item
    }
    if (item.subtype === 'tablecard') { // 兼容
      item.type = 'card'
    }
@@ -724,7 +720,22 @@
      item.name = item.setting.name
    }
    if (item.type === 'menubar') {
    if (item.columns) {
      item.columns = item.columns.map(cell => {
        cell.uuid = this.getuuid()
        return cell
      })
    }
    if (item.type === 'navbar') {
      if (appType === 'mob') {
        item.menus.forEach(menu => {
          menu.MenuID = this.getuuid()
        })
        item.wrap.MenuNo = item.wrap.MenuNo + sign
      }
      return item
    } else if (item.type === 'menubar') {
      item.subMenus = item.subMenus.map(cell => {
        cell.uuid = this.getuuid()
        return cell
@@ -923,12 +934,6 @@
      }
    } else if (item.search) {
      item.search = item.search.map(cell => {
        cell.uuid = this.getuuid()
        return cell
      })
    }
    if (item.columns) {
      item.columns = item.columns.map(cell => {
        cell.uuid = this.getuuid()
        return cell
      })
@@ -2056,6 +2061,13 @@
      duration: 5
    })
    return false
  } else if (/\sdecimal\(8,/ig.test(sql)) {
    notification.warning({
      top: 92,
      message: `不可使用 decimal(8`,
      duration: 5
    })
    return false
  } else if (type === 'customscript' && /\son\s+[a-z0-9_]+\.[a-z0-9_]+\s*=\s*[a-z0-9_]+\.[a-z0-9_]+/ig.test(sql)) {
    let list = sql.match(/\son\s+[a-z0-9_]+\.[a-z0-9_]+\s*=\s*[a-z0-9_]+\.[a-z0-9_]+/ig)
    let errors = []