king
2024-08-28 c10fc10d5fd307a7b334bcde6af5c1175aaa0410
src/tabviews/basetable/index.jsx
@@ -174,19 +174,19 @@
      window.GLOB.CacheData.set(MenuID, urlparam)
      // if (window.backend && config.allSqls) {
      //   let keys = Object.keys(urlparam)
      //   config.allSqls.forEach(item => {
      //     if (item.type === 'datasource') {
      //       item.urlkeys = keys
      //       item.urlparam = urlparam
      //       if (config.flow_code) {
      //         item.works_flow_code = config.flow_code
      //       }
      //     }
      //     window.GLOB.CacheData.set('sql_' + item.uuid, item)
      //   })
      // }
      if (window.backend && config.allSqls) {
        let keys = Object.keys(urlparam)
        config.allSqls.forEach(item => {
          if (item.type === 'datasource') {
            item.urlkeys = keys
            item.urlparam = urlparam
            if (config.flow_code) {
              item.works_flow_code = config.flow_code
            }
          }
          window.GLOB.CacheData.set('sql_' + item.uuid, item)
        })
      }
      let userName = sessionStorage.getItem('User_Name') || ''
      let fullName = sessionStorage.getItem('Full_Name') || ''