king
2025-01-16 886e6cda9d597477825945181d58658564d2d445
2025-01-16
13个文件已修改
2个文件已删除
240 ■■■■ 已修改文件
src/menu/components/form/formaction/actionform/index.jsx 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/form/formaction/formconfig.jsx 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/search/main-search/options.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/actioncomponent/actionform/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/actioncomponent/formconfig.jsx 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/basetable/index.jsx 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/index.jsx 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/sysmessage/index.jsx 78 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/sysmessage/index.scss 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/changeuserbutton/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/excelInbutton/index.jsx 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/exceloutbutton/index.jsx 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/normalbutton/index.jsx 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/topSearch/index.jsx 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/searchcomponent/settingform/index.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/form/formaction/actionform/index.jsx
@@ -62,6 +62,9 @@
      if (this.record.execSuccess === 'never') {
        shows.push('resetForms')
      }
      if (this.record.refreshTab && this.record.refreshTab.length) {
        shows.push('urlPar')
      }
      if (this.record.syncComponent && this.record.syncComponent[0]) {
        shows.push('syncDelay')
      }
src/menu/components/form/formaction/formconfig.jsx
@@ -456,6 +456,22 @@
      options: menulist
    },
    {
      type: 'radio',
      key: 'urlPar',
      label: 'URL变量',
      initVal: card.urlPar || 'false',
      tooltip: '刷新菜单时是否清除URL变量。',
      required: false,
      options: [{
        value: 'true',
        text: '清空'
      }, {
        value: 'false',
        text: '不清空'
      }],
      forbid: appType === 'pc' || appType === 'mob' || viewType === 'popview',
    },
    {
      type: (appType === 'pc' || appType === 'mob') ? 'select' : 'cascader',
      key: 'linkmenu',
      label: '下一步操作',
src/menu/components/search/main-search/options.jsx
@@ -144,6 +144,7 @@
      options: [
        {value: 'init', label: '恢复初始值'},
        {value: 'clear', label: '清空'},
        {value: 'refresh', label: '刷新菜单'},
      ],
    },
    {
src/menu/components/share/actioncomponent/actionform/index.jsx
@@ -621,6 +621,10 @@
      }
    }
    if (shows.includes('refreshTab') && this.record.refreshTab && this.record.refreshTab.length) {
      shows.push('urlPar')
    }
    return {
      shows,
      reOptions,
src/menu/components/share/actioncomponent/formconfig.jsx
@@ -1089,6 +1089,22 @@
      options: menulist
    },
    {
      type: 'radio',
      key: 'urlPar',
      label: 'URL变量',
      initVal: card.urlPar || 'false',
      tooltip: '刷新菜单时是否清除URL变量。',
      required: false,
      options: [{
        value: 'true',
        text: '清空'
      }, {
        value: 'false',
        text: '不清空'
      }],
      forbid: isApp || viewType === 'popview',
    },
    {
      type: !appType ? 'cascader' : 'select',
      key: 'openmenu',
      label: '打开菜单',
@@ -2499,6 +2515,22 @@
      options: menulist
    },
    {
      type: 'radio',
      key: 'urlPar',
      label: 'URL变量',
      initVal: card.urlPar || 'false',
      tooltip: '刷新菜单时是否清除URL变量。',
      required: false,
      options: [{
        value: 'true',
        text: '清空'
      }, {
        value: 'false',
        text: '不清空'
      }],
      forbid: viewType === 'popview',
    },
    {
      type: 'cascader',
      key: 'openmenu',
      label: '打开菜单',
src/tabviews/basetable/index.jsx
@@ -39,7 +39,8 @@
    userConfig: null,     // 用户自定义设置
    visible: false,       // 标签页控制
    shortcuts: null,      // 快捷键
    autoMatic: null
    autoMatic: null,
    noParam: false
  }
  /**
@@ -47,6 +48,7 @@
   */
  async loadconfig () {
    const { MenuID, MenuName, param } = this.props
    const { noParam } = this.state
    let _param = {
      func: 'sPC_Get_LongParam',
@@ -164,13 +166,17 @@
      let skip = window.GLOB.mkHS
      let urlparam = {} // url参数
      if (param) {
        Object.keys(param).forEach(key => {
          if (/^\$/.test(key)) {
            urlparam[key] = param[key]
          } else {
            urlparam[key.toLowerCase()] = param[key]
          }
        })
        if (!noParam) {
          Object.keys(param).forEach(key => {
            if (/^\$/.test(key)) {
              urlparam[key] = param[key]
            } else {
              urlparam[key.toLowerCase()] = param[key]
            }
          })
        } else {
          urlparam.$BID = param.$BID
        }
      }
      window.GLOB.CacheData.set(MenuID, urlparam)
@@ -712,12 +718,12 @@
    })
  }
  reloadMenuView = (menuId) => {
  reloadMenuView = (menuId, clear) => {
    const { MenuID } = this.props
    if (MenuID !== menuId) return
    this.reloadview()
    this.reloadview(clear)
  }
  resetActiveMenu = (menuId) => {
@@ -779,7 +785,7 @@
    })
  }
  reloadview = () => {
  reloadview = (clear) => {
    window.GLOB.CacheData.delete(this.props.MenuID)
    if (this.state.config) {
      this.deleteCache(this.state.config.components)
@@ -791,6 +797,7 @@
      viewlost: false,      // 页面丢失:1、未获取到配置-页面丢失;2、页面未启用
      config: null,         // 页面配置信息,包括组件等
      shortcuts: null,
      noParam: clear === true
    }, () => {
      this.loadconfig()
    })
src/tabviews/custom/index.jsx
@@ -69,7 +69,8 @@
    loading: false,       // 列表数据加载中
    visible: false,       // 标签页控制
    shortcuts: null,      // 快捷键
    loadinginter: false
    loadinginter: false,
    noParam: false
  }
  stepInter = null
@@ -79,6 +80,7 @@
   */
  async loadconfig () {
    const { MenuID, MenuName, param } = this.props
    const { noParam } = this.state
    let _param = {
      func: 'sPC_Get_LongParam',
@@ -209,13 +211,17 @@
      let skip = config.permission === 'false' || window.GLOB.mkHS
      let urlparam = {} // url参数
      if (param) {
        Object.keys(param).forEach(key => {
          if (/^\$/.test(key)) {
            urlparam[key] = param[key]
          } else {
            urlparam[key.toLowerCase()] = param[key]
          }
        })
        if (!noParam) {
          Object.keys(param).forEach(key => {
            if (/^\$/.test(key)) {
              urlparam[key] = param[key]
            } else {
              urlparam[key.toLowerCase()] = param[key]
            }
          })
        } else {
          urlparam.$BID = param.$BID
        }
      }
      window.GLOB.CacheData.set(MenuID, urlparam)
@@ -1481,12 +1487,12 @@
    })
  }
  reloadMenuView = (menuId) => {
  reloadMenuView = (menuId, clear) => {
    const { MenuID } = this.props
    if (MenuID !== menuId) return
    this.reloadview()
    this.reloadview(clear)
  }
  resetActiveMenu = (menuId) => {
@@ -1581,7 +1587,7 @@
    })
  }
  reloadview = () => {
  reloadview = (clear) => {
    window.GLOB.CacheData.delete(this.props.MenuID)
    
    if (this.state.config) {
@@ -1599,7 +1605,8 @@
      viewlost: false,      // 页面丢失:1、未获取到配置-页面丢失;2、页面未启用
      config: null,         // 页面配置信息,包括组件等
      loading: false,       // 列表数据加载中
      shortcuts: null
      shortcuts: null,
      noParam: clear === true
    }, () => {
      this.loadconfig()
    })
src/tabviews/sysmessage/index.jsx
File was deleted
src/tabviews/sysmessage/index.scss
File was deleted
src/tabviews/zshare/actionList/changeuserbutton/index.jsx
@@ -114,7 +114,7 @@
      MKEmitter.emit('closeTabView', MenuID || btn.$MenuID)
      if (btn.refreshTab && btn.refreshTab.length > 0) {
        MKEmitter.emit('reloadMenuView', btn.refreshTab[btn.refreshTab.length - 1])
        MKEmitter.emit('reloadMenuView', btn.refreshTab[btn.refreshTab.length - 1], btn.urlPar === 'true')
      }
      return
    }
src/tabviews/zshare/actionList/excelInbutton/index.jsx
@@ -187,7 +187,7 @@
    }
    if (tabId && btn.$MenuID === tabId) { // 刷新当前菜单时,停止其他操作
      MKEmitter.emit('reloadMenuView', tabId)
      MKEmitter.emit('reloadMenuView', tabId, btn.urlPar === 'true')
      return
    }
@@ -216,7 +216,7 @@
    }
    if (tabId) {
      MKEmitter.emit('reloadMenuView', tabId)
      MKEmitter.emit('reloadMenuView', tabId, btn.urlPar === 'true')
    }
    if (btn.switchTab && btn.switchTab.length > 0) {
@@ -278,7 +278,7 @@
        tabId = btn.refreshTab[btn.refreshTab.length - 1]
      }
      if (tabId && btn.$MenuID === tabId) { // 刷新当前菜单时,停止其他操作
        MKEmitter.emit('reloadMenuView', tabId, 'table')
        MKEmitter.emit('reloadMenuView', tabId, btn.urlPar === 'true')
        return
      }
@@ -303,7 +303,7 @@
      }
      if (tabId) {
        MKEmitter.emit('reloadMenuView', tabId)
        MKEmitter.emit('reloadMenuView', tabId, btn.urlPar === 'true')
      }
    }
src/tabviews/zshare/actionList/exceloutbutton/index.jsx
@@ -990,7 +990,7 @@
    }
    if (tabId && btn.$MenuID === tabId) { // 刷新当前菜单时,停止其他操作
      MKEmitter.emit('reloadMenuView', tabId)
      MKEmitter.emit('reloadMenuView', tabId, btn.urlPar === 'true')
      return
    }
@@ -1019,7 +1019,7 @@
    }
    if (tabId) {
      MKEmitter.emit('reloadMenuView', tabId)
      MKEmitter.emit('reloadMenuView', tabId, btn.urlPar === 'true')
    }
    
    if (btn.switchTab && btn.switchTab.length > 0) {
@@ -1081,7 +1081,7 @@
        tabId = btn.refreshTab[btn.refreshTab.length - 1]
      }
      if (tabId && btn.$MenuID === tabId) { // 刷新当前菜单时,停止其他操作
        MKEmitter.emit('reloadMenuView', tabId)
        MKEmitter.emit('reloadMenuView', tabId, btn.urlPar === 'true')
        return
      }
@@ -1106,7 +1106,7 @@
      }
      if (tabId) {
        MKEmitter.emit('reloadMenuView', tabId)
        MKEmitter.emit('reloadMenuView', tabId, btn.urlPar === 'true')
      }
    }
src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -2981,7 +2981,7 @@
    }
    if (tabId && btn.$MenuID === tabId) { // 刷新当前菜单时,停止其他操作
      MKEmitter.emit('reloadMenuView', tabId)
      MKEmitter.emit('reloadMenuView', tabId, btn.urlPar === 'true')
      if (menu) {
        MKEmitter.emit('modifyTabs', menu, true)
@@ -3027,7 +3027,7 @@
    }
    if (tabId) {
      MKEmitter.emit('reloadMenuView', tabId)
      MKEmitter.emit('reloadMenuView', tabId, btn.urlPar === 'true')
    }
    
    if (btn.switchTab && btn.switchTab.length > 0) {
@@ -3731,7 +3731,7 @@
        tabId = btn.refreshTab[btn.refreshTab.length - 1]
      }
      if (tabId && btn.$MenuID === tabId) { // 刷新当前菜单时,停止其他操作
        MKEmitter.emit('reloadMenuView', tabId)
        MKEmitter.emit('reloadMenuView', tabId, btn.urlPar === 'true')
        return
      }
@@ -3763,7 +3763,7 @@
      }
      if (tabId) {
        MKEmitter.emit('reloadMenuView', tabId)
        MKEmitter.emit('reloadMenuView', tabId, btn.urlPar === 'true')
      }
    }
src/tabviews/zshare/topSearch/index.jsx
@@ -55,7 +55,7 @@
    let linkFields = {}
    let record = {}
    let forbid = false // header中不设置高级搜索
    let _setting = {showAdv: false, show: false, style: null}
    let _setting = {showAdv: false, show: false, style: null, $pageId: config.$pageId || ''}
    let BID = this.props.BID
    let sysvals = {}
@@ -1060,6 +1060,11 @@
  handleReset = () => {
    const { setting } = this.state
    if (setting.resetContrl === 'refresh') {
      MKEmitter.emit('reloadMenuView', setting.$pageId, true)
      return
    }
    let record = {}
    let advanceValues = []
    let searchlist = this.state.searchlist.map(item => {
src/templates/sharecomponent/searchcomponent/settingform/index.jsx
@@ -162,6 +162,7 @@
                <Radio.Group>
                  <Radio value="init">恢复初始值</Radio>
                  <Radio value="clear">清空</Radio>
                  <Radio value="refresh">刷新菜单</Radio>
                </Radio.Group>
              )}
            </Form.Item>