cloud-web-corejs 1.0.54-dev.426 → 1.0.54-dev.427

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/utils/vab.js CHANGED
@@ -1024,7 +1024,7 @@ install = (Vue, opts = {}) => {
1024
1024
  });
1025
1025
  };
1026
1026
 
1027
- Vue.prototype.$downloadByFileWhole = function (fileWhole, handler) {
1027
+ Vue.prototype.$downloadByFileWhole = function (fileWhole, fileName) {
1028
1028
  let that = this;
1029
1029
  if (!fileWhole) {
1030
1030
  this.$baseAlert("凭证信息不存在");
@@ -1042,6 +1042,9 @@ install = (Vue, opts = {}) => {
1042
1042
  });
1043
1043
  };
1044
1044
  getDownloadDomian((domain) => {
1045
+ if(fileName){
1046
+ fileWhole.fileName = fileName;
1047
+ }
1045
1048
  that.$http({
1046
1049
  method: "post",
1047
1050
  url: domain + "/docfile/download",
@@ -1049,11 +1052,8 @@ install = (Vue, opts = {}) => {
1049
1052
  isLoading: true,
1050
1053
  success: (res) => {
1051
1054
  // window.open(res.objx.url);
1052
- if(!handler){
1053
- openInNewTab(res.objx.url);
1054
- }else{
1055
- handler(res.objx.url)
1056
- }
1055
+ let url = res.objx.url;
1056
+ openInNewTab(url);
1057
1057
  },
1058
1058
  });
1059
1059
  });