石广澎
2023-12-02 7affdc596091a32dee82fb7bff6a244361e14933
fix: 11-30漏洞修复
4个文件已修改
29 ■■■■■ 已修改文件
admin-web/public/static/config.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-web/src/utils/base.js 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-web/src/views/mixins/listPage.js 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-web/src/views/stock/ledger/inventoryAlert/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-web/public/static/config.js
@@ -4,8 +4,8 @@
  // 上传路径
  ftpUrl: 'https://yqzx.jinmingyuan.com/lowConsum',//开发
  // 接口请求地址
  apiBaseURL: 'http://172.16.20.2:8083/lowConsum',//开发
  // apiBaseURL: 'http://172.16.60.155:8083/lowConsum',//开发
  // apiBaseURL: 'http://172.16.20.2:8083/lowConsum',//开发
  apiBaseURL: 'http://172.16.60.155:8083/lowConsum',//开发
  // apiBaseURL: 'https://yqzx.jinmingyuan.com/lowConsum',//开发
  debug: false //调试开关  true时会输出请求日志
};
admin-web/src/utils/base.js
@@ -31,18 +31,12 @@
    url = SettingIplatform.ftpUrl + obj.url
  }
  window.open(decodeURI(url))
  /* var doc = document.createElement('a')
   var doc = document.createElement('a')
  doc.href = url
  doc.download = filename
  doc.target = '_blank'
  doc.click()*/
  /* const loading = Loading.service({
    lock: true,
    text: '正在下载...',
    spinner: 'el-icon-loading',
    background: 'rgba(0, 0, 0, 0.7)'
  })
  download(obj.url, obj.name, null, loading)*/
  doc.rel = "noreferrer noopener"
  doc.click()
  document.body.removeChild(doc);
}
// 上传文件
admin-web/src/views/mixins/listPage.js
@@ -58,11 +58,14 @@
                        const elink = document.createElement('a');
                        elink.download = `${fileName}.xls`;
                        elink.style.display = 'none';
                        elink.href = URL.createObjectURL(blob);
            const URL = window.URL || window.webkitURL
            const href = URL.createObjectURL(blob)
            elink.href = href;
                        document.body.appendChild(elink);
                        elink.click();
                        URL.revokeObjectURL(elink.href);
                        document.body.removeChild(elink);
            window.URL.revokeObjectURL(href)
                    } else {
                        // IE10+下载
                        navigator.msSaveBlob(blob, `${fileName}.xls`);
admin-web/src/views/stock/ledger/inventoryAlert/index.vue
@@ -52,7 +52,7 @@
          options: [],
          cascader: [
            {key: 'warehouseId', queryKey: 'agencyId'},
            {key: 'goodsTemplateId', queryKey: 'agencyId'},
            {key: 'baseGoodsTemplateId', queryKey: 'agencyId'},
          ],
          optionsConfig: {url: '/pc/fin/sys/tenant/select/tree_fin_tenant', props: null},
        },
@@ -121,7 +121,7 @@
        dialogShow: false,
        fileSettings: {
          data: {},
          uploadUrl: getBaseUrl() + "/pc/fin/sys/tenant/import", // 上传地址
          uploadUrl: getBaseUrl() + "/pc/warehouse/warningConfig/import", // 上传地址
          accept: '.xls', // 格式
          type: 'text', // 回显形式
          loading: false // 导入效果
@@ -129,7 +129,7 @@
        /* 模板下载 */
        templateSettings: {
          templateName: '导入模板.xls', // 名称
          templateUrl: SettingIplatform.apiBaseURL + '/pc/fin/sys/tenant/getImportTemplate' // 下载地址
          templateUrl: SettingIplatform.apiBaseURL + '/pc/warehouse/warningConfig/getWarnConfImportTemplate' // 下载地址
        },
        onSuccess: null
      },