ocpview-pro 0.1.0 → 0.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/dist/index.js CHANGED
@@ -453,7 +453,7 @@ common.initEview = function(ViewUI2) {
453
453
  common.initAnchor(ViewUI2.Anchor);
454
454
  };
455
455
  const name = "ocpview-pro";
456
- const version$2 = "0.1.0";
456
+ const version$2 = "0.1.1";
457
457
  const title = "ocpviewPlus";
458
458
  const description = "A high quality Service UI components Library with Vue.js";
459
459
  const homepage = "";
@@ -10850,12 +10850,13 @@ const _sfc_main$1I = {
10850
10850
  created() {
10851
10851
  var _a2, _b2;
10852
10852
  this.myConfig = Object.assign({}, this.myConfig, this.config);
10853
- if ((_b2 = (_a2 = this == null ? void 0 : this.OmdUrl) == null ? void 0 : _a2.portalConfig) == null ? void 0 : _b2.appendixsize) {
10854
- this.fileSize = Number(this.OmdUrl.portalConfig.appendixsize) * 1024;
10855
- }
10856
10853
  if (this.myConfig.fileSize !== void 0) {
10857
10854
  this.fileSize = 1024 * Number(this.myConfig.fileSize);
10858
10855
  }
10856
+ if ((_b2 = (_a2 = this == null ? void 0 : this.OmdUrl) == null ? void 0 : _a2.portalConfig) == null ? void 0 : _b2.appendixsize) {
10857
+ this.fileSize = Number(this.OmdUrl.portalConfig.appendixsize) * 1024;
10858
+ this.myConfig.fileSize = Number(this.OmdUrl.portalConfig.appendixsize);
10859
+ }
10859
10860
  this.uploadUrl = this.myConfig.uploadfile;
10860
10861
  },
10861
10862
  methods: {
@@ -19725,10 +19726,15 @@ const _sfc_main$1l = {
19725
19726
  }
19726
19727
  },
19727
19728
  created() {
19729
+ var _a2, _b2;
19728
19730
  this.myConfig = Object.assign({}, this.myConfig, this.config);
19729
19731
  if (this.myConfig.fileSize !== void 0) {
19730
19732
  this.fileSize = 1024 * Number(this.myConfig.fileSize);
19731
19733
  }
19734
+ if ((_b2 = (_a2 = this == null ? void 0 : this.OmdUrl) == null ? void 0 : _a2.portalConfig) == null ? void 0 : _b2.appendixsize) {
19735
+ this.fileSize = Number(this.OmdUrl.portalConfig.appendixsize) * 1024;
19736
+ this.myConfig.fileSize = Number(this.OmdUrl.portalConfig.appendixsize);
19737
+ }
19732
19738
  this.uploadUrl = this.myConfig.uploadfile;
19733
19739
  },
19734
19740
  methods: {
@@ -29821,6 +29827,7 @@ const _sfc_main$J = {
29821
29827
  };
29822
29828
  },
29823
29829
  created() {
29830
+ var _a2, _b2;
29824
29831
  this.myConfig = Object.assign({}, this.myConfig, this.config);
29825
29832
  if (this.myConfig.showTitle !== void 0) {
29826
29833
  this.showTitle = this.myConfig.showTitle;
@@ -29843,6 +29850,10 @@ const _sfc_main$J = {
29843
29850
  if (this.myConfig.fileSize !== void 0) {
29844
29851
  this.fileSize = Number(this.myConfig.fileSize) * 1024;
29845
29852
  }
29853
+ if ((_b2 = (_a2 = this == null ? void 0 : this.OmdUrl) == null ? void 0 : _a2.portalConfig) == null ? void 0 : _b2.appendixsize) {
29854
+ this.fileSize = Number(this.OmdUrl.portalConfig.appendixsize) * 1024;
29855
+ this.myConfig.fileSize = Number(this.OmdUrl.portalConfig.appendixsize);
29856
+ }
29846
29857
  if (this.myConfig.notdelfile) {
29847
29858
  this.myConfig.items[0].visible = true;
29848
29859
  } else {
@@ -36130,6 +36141,7 @@ const _sfc_main$v = {
36130
36141
  };
36131
36142
  },
36132
36143
  created() {
36144
+ var _a2, _b2;
36133
36145
  this.myConfig = Object.assign({}, this.myConfig, this.config);
36134
36146
  if (this.myConfig.showTitle !== void 0) {
36135
36147
  this.showTitle = this.myConfig.showTitle;
@@ -36150,6 +36162,10 @@ const _sfc_main$v = {
36150
36162
  if (this.myConfig.fileSize !== void 0) {
36151
36163
  this.fileSize = Number(this.myConfig.fileSize) * 1024;
36152
36164
  }
36165
+ if ((_b2 = (_a2 = this == null ? void 0 : this.OmdUrl) == null ? void 0 : _a2.portalConfig) == null ? void 0 : _b2.appendixsize) {
36166
+ this.fileSize = Number(this.OmdUrl.portalConfig.appendixsize) * 1024;
36167
+ this.myConfig.fileSize = Number(this.OmdUrl.portalConfig.appendixsize);
36168
+ }
36153
36169
  if (this.myConfig.uploadfile.indexOf("?") != -1) {
36154
36170
  this.uploadfile = this.myConfig.uploadfile + "&token=" + this.getToken();
36155
36171
  } else {
@@ -37948,6 +37964,17 @@ const _sfc_main$t = {
37948
37964
  }
37949
37965
  },
37950
37966
  methods: {
37967
+ comMethod(callback, msg) {
37968
+ this.$Modal.confirm({
37969
+ title: "\u786E\u8BA4",
37970
+ content: `\u786E\u5B9A\u662F\u5426${msg}\u6570\u636E\uFF1F`,
37971
+ onOk: () => {
37972
+ callback();
37973
+ },
37974
+ onCancel: () => {
37975
+ }
37976
+ });
37977
+ },
37951
37978
  onSubmit() {
37952
37979
  let flag = true;
37953
37980
  if (this.$parent && typeof this.$parent.onSubmitBefore === "function") {
@@ -38461,7 +38488,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38461
38488
  style: { "width": "66px" },
38462
38489
  onClick: $options.userCancel
38463
38490
  }, {
38464
- default: withCtx(() => [..._cache[16] || (_cache[16] = [
38491
+ default: withCtx(() => [..._cache[21] || (_cache[21] = [
38465
38492
  createTextVNode("\u53D6\u6D88", -1)
38466
38493
  ])]),
38467
38494
  _: 1
@@ -38476,7 +38503,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38476
38503
  type: "info",
38477
38504
  onClick: $options.userOk
38478
38505
  }, {
38479
- default: withCtx(() => [..._cache[17] || (_cache[17] = [
38506
+ default: withCtx(() => [..._cache[22] || (_cache[22] = [
38480
38507
  createTextVNode("\u786E\u8BA4", -1)
38481
38508
  ])]),
38482
38509
  _: 1
@@ -38502,7 +38529,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38502
38529
  span: "6"
38503
38530
  }, {
38504
38531
  default: withCtx(() => [
38505
- _cache[9] || (_cache[9] = createTextVNode(" \u5DF2\u9009\u6284\u9001\u4EBA:", -1)),
38532
+ _cache[14] || (_cache[14] = createTextVNode(" \u5DF2\u9009\u6284\u9001\u4EBA:", -1)),
38506
38533
  createElementVNode("span", _hoisted_1$p, toDisplayString($data.selectuserdata.length), 1),
38507
38534
  createElementVNode("span", {
38508
38535
  textContent: toDisplayString($options.info)
@@ -38515,11 +38542,11 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38515
38542
  span: "6"
38516
38543
  }, {
38517
38544
  default: withCtx(() => [
38518
- _cache[10] || (_cache[10] = createTextVNode(" \u5DF2\u9009\u5BA1\u6279", -1)),
38545
+ _cache[15] || (_cache[15] = createTextVNode(" \u5DF2\u9009\u5BA1\u6279", -1)),
38519
38546
  createElementVNode("span", {
38520
38547
  textContent: toDisplayString($options.info)
38521
38548
  }, null, 8, _hoisted_3$a),
38522
- _cache[11] || (_cache[11] = createTextVNode(" :", -1)),
38549
+ _cache[16] || (_cache[16] = createTextVNode(" :", -1)),
38523
38550
  createElementVNode("span", _hoisted_4$8, toDisplayString($data.selectuserdata.length), 1),
38524
38551
  createElementVNode("span", {
38525
38552
  textContent: toDisplayString($options.info)
@@ -38540,7 +38567,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38540
38567
  "custom-icon": "iconfont icon-custom-quanshan",
38541
38568
  onClick: $options.delAll
38542
38569
  }, {
38543
- default: withCtx(() => [..._cache[12] || (_cache[12] = [
38570
+ default: withCtx(() => [..._cache[17] || (_cache[17] = [
38544
38571
  createTextVNode("\u5168\u90E8\u5220\u9664", -1)
38545
38572
  ])]),
38546
38573
  _: 1
@@ -38592,7 +38619,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38592
38619
  default: withCtx(() => [
38593
38620
  createVNode(_component_Col, { span: "4" }, {
38594
38621
  default: withCtx(() => [
38595
- _cache[13] || (_cache[13] = createTextVNode(" \u5DF2\u52FE\u9009:", -1)),
38622
+ _cache[18] || (_cache[18] = createTextVNode(" \u5DF2\u52FE\u9009:", -1)),
38596
38623
  createElementVNode("span", _hoisted_6$4, toDisplayString($data.select.length), 1),
38597
38624
  createElementVNode("span", {
38598
38625
  textContent: toDisplayString($options.info)
@@ -38641,13 +38668,13 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38641
38668
  }, {
38642
38669
  default: withCtx(() => [
38643
38670
  createVNode(_component_Radio, { label: "USER" }, {
38644
- default: withCtx(() => [..._cache[14] || (_cache[14] = [
38671
+ default: withCtx(() => [..._cache[19] || (_cache[19] = [
38645
38672
  createElementVNode("span", null, "\u5BA1\u6279\u4EBA", -1)
38646
38673
  ])]),
38647
38674
  _: 1
38648
38675
  }),
38649
38676
  createVNode(_component_Radio, { label: "USERGROUP" }, {
38650
- default: withCtx(() => [..._cache[15] || (_cache[15] = [
38677
+ default: withCtx(() => [..._cache[20] || (_cache[20] = [
38651
38678
  createElementVNode("span", null, "\u5C97\u4F4D", -1)
38652
38679
  ])]),
38653
38680
  _: 1
@@ -38729,7 +38756,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38729
38756
  "class-name": "efutureapproval",
38730
38757
  title: "\u5DE5\u4F5C\u6D41",
38731
38758
  modelValue: $data.showDrawer,
38732
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $data.showDrawer = $event),
38759
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => $data.showDrawer = $event),
38733
38760
  width: 534
38734
38761
  }, {
38735
38762
  default: withCtx(() => [
@@ -38741,7 +38768,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38741
38768
  ]),
38742
38769
  $data.copyuser.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_14, [
38743
38770
  createElementVNode("span", null, [
38744
- _cache[18] || (_cache[18] = createTextVNode("\u5DF2\u6284\u9001\uFF1A", -1)),
38771
+ _cache[23] || (_cache[23] = createTextVNode("\u5DF2\u6284\u9001\uFF1A", -1)),
38745
38772
  createElementVNode("span", null, [
38746
38773
  (openBlock(true), createElementBlock(Fragment, null, renderList($data.copyuser, (item, index) => {
38747
38774
  return openBlock(), createBlock(_component_Tag, {
@@ -38757,7 +38784,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38757
38784
  ])
38758
38785
  ])
38759
38786
  ])) : createCommentVNode("", true),
38760
- _cache[19] || (_cache[19] = createElementVNode("p", { class: "title" }, [
38787
+ _cache[24] || (_cache[24] = createElementVNode("p", { class: "title" }, [
38761
38788
  createElementVNode("span", { class: "text" }, "\u5BA1\u6279\u65E5\u5FD7")
38762
38789
  ], -1))
38763
38790
  ], 512),
@@ -38770,7 +38797,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38770
38797
  class: "log-list",
38771
38798
  key: index
38772
38799
  }, [
38773
- _cache[24] || (_cache[24] = createElementVNode("div", { class: "line-wrap" }, null, -1)),
38800
+ _cache[29] || (_cache[29] = createElementVNode("div", { class: "line-wrap" }, null, -1)),
38774
38801
  createElementVNode("div", _hoisted_16, [
38775
38802
  item.mulflag === "N" ? (openBlock(), createElementBlock("span", _hoisted_17, toDisplayString(item.username), 1)) : (openBlock(), createBlock(_component_Icon, {
38776
38803
  key: 1,
@@ -38805,12 +38832,12 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38805
38832
  ]),
38806
38833
  createElementVNode("div", null, [
38807
38834
  index === $data.auditLog.length - 1 && item.candidateUserList && item.candidateUserList.length > 0 ? (openBlock(), createElementBlock("p", _hoisted_23, [
38808
- _cache[20] || (_cache[20] = createTextVNode(" \u5F85\u5BA1\u6279\u4EBA\uFF1A", -1)),
38835
+ _cache[25] || (_cache[25] = createTextVNode(" \u5F85\u5BA1\u6279\u4EBA\uFF1A", -1)),
38809
38836
  createElementVNode("span", null, toDisplayString($options.getCandidateUserText(item.candidateUserList)), 1)
38810
38837
  ])) : createCommentVNode("", true),
38811
38838
  createElementVNode("span", null, toDisplayString(item.act_time_), 1),
38812
38839
  createElementVNode("p", _hoisted_24, [
38813
- _cache[21] || (_cache[21] = createTextVNode("\u610F\u89C1\uFF1A", -1)),
38840
+ _cache[26] || (_cache[26] = createTextVNode("\u610F\u89C1\uFF1A", -1)),
38814
38841
  createElementVNode("span", {
38815
38842
  textContent: toDisplayString($options.getMessage(item.message))
38816
38843
  }, null, 8, _hoisted_25)
@@ -38879,7 +38906,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38879
38906
  type: "text",
38880
38907
  onClick: ($event) => $options.showGroupUser(index)
38881
38908
  }, {
38882
- default: withCtx(() => [..._cache[22] || (_cache[22] = [
38909
+ default: withCtx(() => [..._cache[27] || (_cache[27] = [
38883
38910
  createTextVNode("\u5C55\u5F00 ", -1)
38884
38911
  ])]),
38885
38912
  _: 1
@@ -38890,7 +38917,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38890
38917
  type: "text",
38891
38918
  onClick: ($event) => $options.showGroupUser(index)
38892
38919
  }, {
38893
- default: withCtx(() => [..._cache[23] || (_cache[23] = [
38920
+ default: withCtx(() => [..._cache[28] || (_cache[28] = [
38894
38921
  createTextVNode(" \u6536\u8D77", -1)
38895
38922
  ])]),
38896
38923
  _: 1
@@ -38922,8 +38949,8 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38922
38949
  createVNode(_component_Col, { span: "2" }, {
38923
38950
  default: withCtx(() => [
38924
38951
  createElementVNode("span", _hoisted_33, toDisplayString($data.copy.length), 1),
38925
- _cache[25] || (_cache[25] = createTextVNode()),
38926
- _cache[26] || (_cache[26] = createElementVNode("span", null, "\u4EBA", -1))
38952
+ _cache[30] || (_cache[30] = createTextVNode()),
38953
+ _cache[31] || (_cache[31] = createElementVNode("span", null, "\u4EBA", -1))
38927
38954
  ]),
38928
38955
  _: 1
38929
38956
  }),
@@ -38944,7 +38971,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38944
38971
  size: "12",
38945
38972
  color: "#AF292E"
38946
38973
  }),
38947
- _cache[27] || (_cache[27] = createElementVNode("span", { style: { "margin-left": "9px", "color": "#AF292E", "font-size": "14px" } }, " \u6DFB\u52A0\u6284\u9001\u4EBA ", -1))
38974
+ _cache[32] || (_cache[32] = createElementVNode("span", { style: { "margin-left": "9px", "color": "#AF292E", "font-size": "14px" } }, " \u6DFB\u52A0\u6284\u9001\u4EBA ", -1))
38948
38975
  ])
38949
38976
  ]),
38950
38977
  _: 1
@@ -38993,7 +39020,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38993
39020
  createVNode(_component_Col, { span: "2" }, {
38994
39021
  default: withCtx(() => [
38995
39022
  createElementVNode("span", _hoisted_34, toDisplayString($data.approvals.length), 1),
38996
- _cache[28] || (_cache[28] = createTextVNode()),
39023
+ _cache[33] || (_cache[33] = createTextVNode()),
38997
39024
  createElementVNode("span", {
38998
39025
  textContent: toDisplayString($options.info2)
38999
39026
  }, null, 8, _hoisted_35)
@@ -39017,7 +39044,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39017
39044
  size: "12",
39018
39045
  color: "#AF292E"
39019
39046
  }),
39020
- _cache[29] || (_cache[29] = createElementVNode("span", { style: { "margin-left": "9px", "color": "#AF292E", "font-size": "14px" } }, " \u6DFB\u52A0\u5BA1\u6279\u4EBA ", -1))
39047
+ _cache[34] || (_cache[34] = createElementVNode("span", { style: { "margin-left": "9px", "color": "#AF292E", "font-size": "14px" } }, " \u6DFB\u52A0\u5BA1\u6279\u4EBA ", -1))
39021
39048
  ])
39022
39049
  ]),
39023
39050
  _: 1
@@ -39083,13 +39110,13 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39083
39110
  default: withCtx(() => [
39084
39111
  createVNode(_component_Button, {
39085
39112
  customIcon: "iconfont icon-custom-submit",
39086
- onClick: $options.onSubmit
39113
+ onClick: _cache[8] || (_cache[8] = ($event) => $options.comMethod($options.onSubmit, "\u63D0\u4EA4"))
39087
39114
  }, {
39088
- default: withCtx(() => [..._cache[30] || (_cache[30] = [
39115
+ default: withCtx(() => [..._cache[35] || (_cache[35] = [
39089
39116
  createTextVNode("\u63D0\u4EA4", -1)
39090
39117
  ])]),
39091
39118
  _: 1
39092
- }, 8, ["onClick"])
39119
+ })
39093
39120
  ]),
39094
39121
  _: 1
39095
39122
  })) : createCommentVNode("", true),
@@ -39097,13 +39124,13 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39097
39124
  default: withCtx(() => [
39098
39125
  createVNode(_component_Button, {
39099
39126
  customIcon: "iconfont icon-custom-recall",
39100
- onClick: $options.billBack
39127
+ onClick: _cache[9] || (_cache[9] = ($event) => $options.comMethod($options.billBack, "\u64A4\u56DE"))
39101
39128
  }, {
39102
- default: withCtx(() => [..._cache[31] || (_cache[31] = [
39129
+ default: withCtx(() => [..._cache[36] || (_cache[36] = [
39103
39130
  createTextVNode("\u64A4\u56DE", -1)
39104
39131
  ])]),
39105
39132
  _: 1
39106
- }, 8, ["onClick"])
39133
+ })
39107
39134
  ]),
39108
39135
  _: 1
39109
39136
  })) : createCommentVNode("", true),
@@ -39111,13 +39138,13 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39111
39138
  default: withCtx(() => [
39112
39139
  createVNode(_component_Button, {
39113
39140
  customIcon: "iconfont icon-custom-jiaqian",
39114
- onClick: $options.billBack
39141
+ onClick: _cache[10] || (_cache[10] = ($event) => $options.comMethod($options.billBack, "\u52A0\u7B7E"))
39115
39142
  }, {
39116
- default: withCtx(() => [..._cache[32] || (_cache[32] = [
39143
+ default: withCtx(() => [..._cache[37] || (_cache[37] = [
39117
39144
  createTextVNode("\u52A0\u7B7E", -1)
39118
39145
  ])]),
39119
39146
  _: 1
39120
- }, 8, ["onClick"])
39147
+ })
39121
39148
  ]),
39122
39149
  _: 1
39123
39150
  }, 512), [
@@ -39127,13 +39154,13 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39127
39154
  default: withCtx(() => [
39128
39155
  createVNode(_component_Button, {
39129
39156
  customIcon: "iconfont icon-custom-reject",
39130
- onClick: $options.reject
39157
+ onClick: _cache[11] || (_cache[11] = ($event) => $options.comMethod($options.reject, "\u9A73\u56DE"))
39131
39158
  }, {
39132
- default: withCtx(() => [..._cache[33] || (_cache[33] = [
39159
+ default: withCtx(() => [..._cache[38] || (_cache[38] = [
39133
39160
  createTextVNode("\u9A73\u56DE", -1)
39134
39161
  ])]),
39135
39162
  _: 1
39136
- }, 8, ["onClick"])
39163
+ })
39137
39164
  ]),
39138
39165
  _: 1
39139
39166
  })) : createCommentVNode("", true),
@@ -39141,13 +39168,13 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39141
39168
  default: withCtx(() => [
39142
39169
  createVNode(_component_Button, {
39143
39170
  customIcon: "iconfont icon-custom-approve",
39144
- onClick: $options.submitApprove
39171
+ onClick: _cache[12] || (_cache[12] = ($event) => $options.comMethod($options.submitApprove, "\u5BA1\u6279"))
39145
39172
  }, {
39146
- default: withCtx(() => [..._cache[34] || (_cache[34] = [
39173
+ default: withCtx(() => [..._cache[39] || (_cache[39] = [
39147
39174
  createTextVNode("\u5BA1\u6279", -1)
39148
39175
  ])]),
39149
39176
  _: 1
39150
- }, 8, ["onClick"])
39177
+ })
39151
39178
  ]),
39152
39179
  _: 1
39153
39180
  })) : createCommentVNode("", true)
@@ -39160,7 +39187,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39160
39187
  }, 8, ["modelValue"])
39161
39188
  ]);
39162
39189
  }
39163
- var ApprovalBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$q], ["__scopeId", "data-v-7435e8cd"]]);
39190
+ var ApprovalBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$q], ["__scopeId", "data-v-75cde814"]]);
39164
39191
  const _sfc_main$s = {
39165
39192
  name: "moperlog",
39166
39193
  data() {