king
2020-09-04 b987be8dd8b6bc1fa01810daa1e1a60e58a3c921
src/tabviews/custom/index.jsx
@@ -173,12 +173,14 @@
          }
        }
        component.customScript = _customScript // 整理后自定义脚本
        if (component.setting) {
          component.setting.customScript = _customScript // 整理后自定义脚本
        }
        // format   数据格式 array 或 object
        // dataName 系统生成的数据源名称
        // laypage  是否分页,组件属性,不分页的组件才可以统一查询
        if (component.format && component.dataName && !component.laypage && component.setting.interType === 'system' && component.setting.onload === 'true' && component.setting.sync === 'true') {
        // pageable 是否分页,组件属性,不分页的组件才可以统一查询
        if (component.format && component.dataName && !component.pageable && component.setting.interType === 'system' && component.setting.onload === 'true' && component.setting.sync === 'true') {
          let param = this.getDefaultParam(component, mainSearch)
          params.push(param)
        } else {
@@ -213,7 +215,7 @@
   * @description 获取系统存储过程 sPC_Get_TableData 的参数
   */
  getDefaultParam = (component, mainSearch) => {
    const { columns, search, setting, dataName, format, customScript } = component
    const { columns, search, setting, dataName, format } = component
    
    let searchlist = []
    if (search && search.length > 0) {
@@ -225,7 +227,7 @@
    let arr_field = columns.map(col => col.field)
    let _dataresource = setting.dataresource
    let _customScript = customScript
    let _customScript = setting.customScript
    if (setting.queryType === 'statistics' || _customScript) {
      let allSearch = Utils.getAllSearchOptions(searchlist)