ocpview-plus 1.1.1 → 1.1.2

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/README.md CHANGED
@@ -25,3 +25,9 @@ billImportConfig: {
25
25
  ],
26
26
  }
27
27
  ```
28
+
29
+ ### 1.1.1 更新说明
30
+ 导出默认加mktcode
31
+
32
+ ### 1.1.2 更新说明
33
+ 导出xls格式
@@ -453,7 +453,7 @@ common.initEview = function(ViewUI2) {
453
453
  common.initAnchor(ViewUI2.Anchor);
454
454
  };
455
455
  const name = "ocpview-plus";
456
- const version$2 = "1.1.0";
456
+ const version$2 = "1.1.2";
457
457
  const title = "ocpviewPlus";
458
458
  const description = "A high quality Service UI components Library with Vue.js";
459
459
  const homepage = "";
@@ -1630,7 +1630,7 @@ function buildFilename(postObj, xhr2) {
1630
1630
  String(now2.getSeconds()).padStart(2, "0")
1631
1631
  ].join("");
1632
1632
  const billmoduleid = postObj.billmoduleid || "export";
1633
- return `${t10}${billmoduleid}.xlsx`;
1633
+ return `${t10}${billmoduleid}.xls`;
1634
1634
  }
1635
1635
  caseMethod.getFilesInfo = function(billno, billmoduleid, notdelfile, scenetype, callBackMethod) {
1636
1636
  let usercode = caseMethod.getUserCode();
@@ -33885,6 +33885,18 @@ const _sfc_main$14 = {
33885
33885
  window.open(temp, "_self");
33886
33886
  }
33887
33887
  },
33888
+ setExportDownUrl(url, param) {
33889
+ let self2 = this;
33890
+ this.url = this.getResturl(url, null, {}, self2);
33891
+ if (this.myConfig.typeData.length > 1) {
33892
+ this.param = param;
33893
+ this.type = this.myConfig.typeData[0].code;
33894
+ this.showUpload = true;
33895
+ } else {
33896
+ let temp = this.url + "&param=" + encodeURI(JSON.stringify(param));
33897
+ window.open(temp, "_self");
33898
+ }
33899
+ },
33888
33900
  handleUpload(file) {
33889
33901
  if (!this.checkFormat(file)) {
33890
33902
  this.handleFormatError(file);