ocpview-plus 1.1.1 → 1.1.3

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,12 @@ billImportConfig: {
25
25
  ],
26
26
  }
27
27
  ```
28
+
29
+ ### 1.1.1 更新说明
30
+ 导出默认加mktcode
31
+
32
+ ### 1.1.2 更新说明
33
+ 导出xls格式
34
+
35
+ ### 1.1.3 更新说明
36
+ 修复:调整高度导致合计丢失问题
@@ -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);
@@ -44206,12 +44218,11 @@ const _sfc_main$v = {
44206
44218
  },
44207
44219
  computed: {
44208
44220
  tableHeight() {
44209
- let currentHeight = this.currentHeight - this.extraHeight - this.outsideHeight;
44210
44221
  if (this.isFull) {
44211
- currentHeight = this.clientHeight - this.$refs.table.$el.offsetTop;
44222
+ return this.clientHeight - this.$refs.table.$el.offsetTop;
44212
44223
  } else {
44213
44224
  if (!this.myConfig.dynamicHeight) {
44214
- currentHeight = this.currentHeight;
44225
+ let currentHeight = this.currentHeight;
44215
44226
  if (this.extraHeight) {
44216
44227
  currentHeight = currentHeight - Number(this.extraHeight);
44217
44228
  }
@@ -44221,22 +44232,26 @@ const _sfc_main$v = {
44221
44232
  if (this.myConfig.showSummary) {
44222
44233
  currentHeight = currentHeight - 50;
44223
44234
  }
44235
+ return currentHeight;
44236
+ } else {
44237
+ return null;
44224
44238
  }
44225
44239
  }
44226
- return currentHeight;
44227
44240
  },
44228
44241
  tableMaxHeight() {
44229
- let currentHeight = this.currentHeight - this.extraHeight - this.outsideHeight;
44230
44242
  if (this.isFull) {
44231
- currentHeight = this.clientHeight - this.$refs.table.$el.offsetTop;
44243
+ return this.clientHeight - this.$refs.table.$el.offsetTop;
44232
44244
  } else {
44233
44245
  if (this.myConfig.dynamicHeight) {
44246
+ let currentHeight = this.currentHeight - this.extraHeight - this.outsideHeight;
44234
44247
  if (this.myConfig.showSummary) {
44235
44248
  currentHeight = currentHeight - 50;
44236
44249
  }
44250
+ return currentHeight;
44251
+ } else {
44252
+ return null;
44237
44253
  }
44238
44254
  }
44239
- return currentHeight;
44240
44255
  }
44241
44256
  },
44242
44257
  methods: {
@@ -44685,7 +44700,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
44685
44700
  _: 3
44686
44701
  }, 512);
44687
44702
  }
44688
- var mEditGridCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$s], ["__scopeId", "data-v-3cf9d240"]]);
44703
+ var mEditGridCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$s], ["__scopeId", "data-v-60ea7df7"]]);
44689
44704
  const _sfc_main$u = {
44690
44705
  name: "mformcard",
44691
44706
  extends: FormBox,