king
2021-06-26 bfadd84fbc2b23c59695e5a94778ab7ac40fea03
src/tabviews/custom/index.jsx
@@ -737,12 +737,19 @@
        return component
      }
      if (component.wrap && component.wrap.datatype === 'static') {
        component.format = ''
      if (component.setting) {
        component.setting.useMSearch = component.setting.useMSearch === 'true'
        component.setting.syncRefresh = (component.setting.useMSearch && component.setting.syncRefresh === 'true')
      }
      if (!component.setting) return component // 不使用系统函数时
      if (!component.format) return component  // 没有动态数据  数据格式 array 或 object
      if (component.wrap && component.wrap.datatype === 'static') {
        component.format = ''
        component.setting = component.setting || {}
        component.setting.useMSearch = false
        component.setting.syncRefresh = false
      }
      if (!component.setting || !component.format) return component  // 1、不使用系统函数时;2、 没有动态数据  数据格式 array 或 object
      if (component.setting.interType !== 'system') { // 不使用系统函数时
        component.setting.sync = 'false'
        component.setting.laypage = component.setting.laypage === 'true'
@@ -790,7 +797,7 @@
      // dataName 系统生成的数据源名称
      // pageable 是否分页,组件属性,不分页的组件才可以统一查询
      if (component.floor === 1 && component.dataName && (!component.pageable || (component.pageable && !component.setting.laypage)) && component.setting.onload === 'true' && component.setting.sync === 'true') {
        if (isEmpty && component.setting.useMSearch === 'true') {
        if (isEmpty && component.setting.useMSearch) {
          component.setting.sync = 'false'
          component.setting.onload = 'false'
        } else {
@@ -805,7 +812,7 @@
            component.setting.sync = 'false'
            component.setting.onload = 'false'
          } else {
            if (component.setting.useMSearch === 'true') {
            if (component.setting.useMSearch) {
              let keys = searchlist.map(item => item.key)
              mainSearch.forEach(item => {
                if (!keys.includes(item.key)) {