cloud-web-corejs 1.0.54-dev.425 → 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.
@@ -62,11 +62,13 @@
62
62
  <searchFormDialog
63
63
  v-if="showSearchDialog"
64
64
  :visiable.sync="showSearchDialog"
65
+ ref="searchFormDialog"
65
66
  :option="searchDialogOption"
66
67
  ></searchFormDialog>
67
68
  <formDialog
68
69
  v-if="showFormDialog"
69
70
  :visiable.sync="showFormDialog"
71
+ ref="formDialog"
70
72
  :option="formDialogOption"
71
73
  ></formDialog>
72
74
  <importDialog
@@ -2771,6 +2771,11 @@ modules = {
2771
2771
  this.formDialogOption = option;
2772
2772
  this.showFormDialog = true;
2773
2773
  },
2774
+ closeFormDialog() {
2775
+ if(this.showFormDialog){
2776
+ this.$refs.formDialog.close();
2777
+ }
2778
+ },
2774
2779
  confirmFormDialog() {
2775
2780
  this.formDialogOption.confirm && this.formDialogOption.confirm();
2776
2781
  },
@@ -115,6 +115,7 @@ export default {
115
115
  "tempStorage": "暂存按钮",
116
116
  "oplog": "操作日志",
117
117
  "gantt": "甘特图",
118
+ "download-button": "附件下载",
118
119
  },
119
120
  hint: {
120
121
  formulaSetting: "公式设置",
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) {
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,7 +1052,8 @@ install = (Vue, opts = {}) => {
1049
1052
  isLoading: true,
1050
1053
  success: (res) => {
1051
1054
  // window.open(res.objx.url);
1052
- openInNewTab(res.objx.url);
1055
+ let url = res.objx.url;
1056
+ openInNewTab(url);
1053
1057
  },
1054
1058
  });
1055
1059
  });