ocpview-pro 0.1.22 → 0.1.24

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.
@@ -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.21";
456
+ const version$2 = "0.1.23";
457
457
  const title = "ocpviewPlus";
458
458
  const description = "A high quality Service UI components Library with Vue.js";
459
459
  const homepage = "";
@@ -5371,9 +5371,9 @@ const _sfc_main$1S = {
5371
5371
  temp.data = [];
5372
5372
  el2.data.forEach((el22) => {
5373
5373
  if (this.myConfig.codeWithName) {
5374
- el22.label = "[" + el22[this.myConfig.valueField] + "]" + el22[this.myConfig.textField];
5374
+ el22.label = "[" + el22[this.myConfig.valueField] + "]" + this.$t(el22[this.myConfig.textField]);
5375
5375
  } else {
5376
- el22.label = el22[this.myConfig.textField];
5376
+ el22.label = this.$t(el22[this.myConfig.textField]);
5377
5377
  }
5378
5378
  if (this.myConfig.filterData) {
5379
5379
  el22.visible = this.myConfig.filterData(el22);
@@ -5385,9 +5385,9 @@ const _sfc_main$1S = {
5385
5385
  } else {
5386
5386
  obj.data.forEach((el2) => {
5387
5387
  if (this.myConfig.codeWithName) {
5388
- el2.label = "[" + el2[this.myConfig.valueField] + "]" + el2[this.myConfig.textField];
5388
+ el2.label = "[" + el2[this.myConfig.valueField] + "]" + this.$t(el2[this.myConfig.textField]);
5389
5389
  } else {
5390
- el2.label = el2[this.myConfig.textField];
5390
+ el2.label = this.$t(el2[this.myConfig.textField]);
5391
5391
  }
5392
5392
  if (this.myConfig.filterData) {
5393
5393
  el2.visible = this.myConfig.filterData(el2);
@@ -5408,10 +5408,10 @@ const _sfc_main$1S = {
5408
5408
  temp.data = [];
5409
5409
  el2.data.forEach((el22) => {
5410
5410
  if (this.myConfig.codeWithName) {
5411
- el22.label = "[" + el22[this.myConfig.valueField] + "]" + el22[this.myConfig.textField];
5411
+ el22.label = "[" + el22[this.myConfig.valueField] + "]" + this.$t(el22[this.myConfig.textField]);
5412
5412
  } else {
5413
5413
  if (el22[this.myConfig.textField]) {
5414
- el22.label = el22[this.myConfig.textField];
5414
+ el22.label = this.$t(el22[this.myConfig.textField]);
5415
5415
  } else {
5416
5416
  el22.label = el22[this.myConfig.valueField];
5417
5417
  }
@@ -5427,10 +5427,10 @@ const _sfc_main$1S = {
5427
5427
  } else {
5428
5428
  this.myConfig.data.forEach((el2) => {
5429
5429
  if (this.myConfig.codeWithName) {
5430
- el2.label = "[" + el2[this.myConfig.valueField] + "]" + el2[this.myConfig.textField];
5430
+ el2.label = "[" + el2[this.myConfig.valueField] + "]" + this.$t(el2[this.myConfig.textField]);
5431
5431
  } else {
5432
5432
  if (el2[this.myConfig.textField]) {
5433
- el2.label = el2[this.myConfig.textField];
5433
+ el2.label = this.$t(el2[this.myConfig.textField]);
5434
5434
  } else {
5435
5435
  el2.label = el2[this.myConfig.valueField];
5436
5436
  }
@@ -25741,7 +25741,7 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
25741
25741
  $data.showUnit ? {
25742
25742
  name: "append",
25743
25743
  fn: withCtx(() => [
25744
- $data.showUnit ? (openBlock(), createElementBlock("span", _hoisted_1$16, toDisplayString$1($data.myConfig.unit), 1)) : createCommentVNode("", true),
25744
+ $data.showUnit ? (openBlock(), createElementBlock("span", _hoisted_1$16, toDisplayString$1($data.myConfig.unit ? _ctx.$t($data.myConfig.unit) : $data.myConfig.unit), 1)) : createCommentVNode("", true),
25745
25745
  $data.myConfig.unitCustom ? (openBlock(), createElementBlock("div", {
25746
25746
  key: 1,
25747
25747
  style: normalizeStyle("min-width:" + $data.myConfig.unitWidth + "px")
@@ -36166,9 +36166,9 @@ const _sfc_main$11 = {
36166
36166
  if (obj.data !== void 0 && obj.data.length > 0) {
36167
36167
  obj.data.forEach((el2) => {
36168
36168
  if (this.myConfig.codeWithName) {
36169
- el2.label = "[" + el2[this.myConfig.valueField] + "]" + el2[this.myConfig.textField];
36169
+ el2.label = "[" + el2[this.myConfig.valueField] + "]" + this.$t(el2[this.myConfig.textField]);
36170
36170
  } else {
36171
- el2.label = el2[this.myConfig.textField];
36171
+ el2.label = this.$t(el2[this.myConfig.textField]);
36172
36172
  }
36173
36173
  });
36174
36174
  }
@@ -36178,10 +36178,10 @@ const _sfc_main$11 = {
36178
36178
  if (this.myConfig.data && this.myConfig.data.length > 0) {
36179
36179
  this.myConfig.data.forEach((el2) => {
36180
36180
  if (this.myConfig.codeWithName) {
36181
- el2.label = "[" + el2[this.myConfig.valueField] + "]" + el2[this.myConfig.textField];
36181
+ el2.label = "[" + el2[this.myConfig.valueField] + "]" + this.$t(el2[this.myConfig.textField]);
36182
36182
  } else {
36183
36183
  if (el2[this.myConfig.textField]) {
36184
- el2.label = el2[this.myConfig.textField];
36184
+ el2.label = this.$t(el2[this.myConfig.textField]);
36185
36185
  } else {
36186
36186
  el2.label = el2[this.myConfig.valueField];
36187
36187
  }
@@ -46924,7 +46924,15 @@ const _sfc_main$w = {
46924
46924
  if (index > -1) {
46925
46925
  let form = this.$Method.copy(this.data[index]);
46926
46926
  if (this.$refs[obj.para.curlIndex] && this.$refs[obj.para.curlIndex][0]) {
46927
- form = this.$refs[obj.para.curlIndex][0].getData();
46927
+ let rowObject = this.$refs[obj.para.curlIndex][0];
46928
+ form = rowObject.getData();
46929
+ let gridName = rowObject.config ? rowObject.config.gridName : void 0;
46930
+ if (gridName && rowObject.$refs && rowObject.$refs.grid) {
46931
+ let gridDelData = rowObject.$refs.grid.delData || [];
46932
+ if (gridDelData.length > 0) {
46933
+ form[gridName] = gridDelData.concat(form[gridName] || []);
46934
+ }
46935
+ }
46928
46936
  }
46929
46937
  if (this.myConfig.delRowBefore) {
46930
46938
  let obj2 = {};
@@ -52835,7 +52843,7 @@ const _sfc_main$m = {
52835
52843
  this.myConfig.gridConfig.showStripe = true;
52836
52844
  this.myConfig.gridConfig.generalOrientation = true;
52837
52845
  if (this.myConfig.gridConfig.title !== void 0) {
52838
- this.myConfig.gridtitle = this.myConfig.gridConfig.title;
52846
+ this.myConfig.gridtitle = this.$t(this.myConfig.gridConfig.title);
52839
52847
  }
52840
52848
  if (this.myConfig.gridConfig.multiSelect === void 0) {
52841
52849
  this.myConfig.gridConfig.multiSelect = false;
@@ -53470,7 +53478,7 @@ const _sfc_main$l = {
53470
53478
  this.myConfig.gridConfig.height = 1;
53471
53479
  this.myConfig.gridConfig.adjustHeight = 0;
53472
53480
  if (this.myConfig.gridConfig.title !== void 0) {
53473
- this.myConfig.gridtitle = this.myConfig.gridConfig.title;
53481
+ this.myConfig.gridtitle = this.$t(this.myConfig.gridConfig.title);
53474
53482
  }
53475
53483
  if (!this.myConfig.gridConfig.method) {
53476
53484
  this.myConfig.gridConfig.method = this.myConfig.classPrefix + ".search";
@@ -54201,7 +54209,7 @@ const _sfc_main$k = {
54201
54209
  this.myConfig.gridConfig.showPage = true;
54202
54210
  this.myConfig.gridConfig.generalOrientation = true;
54203
54211
  if (this.myConfig.gridConfig.title) {
54204
- this.myConfig.gridtitle = this.myConfig.gridConfig.title;
54212
+ this.myConfig.gridtitle = this.$t(this.myConfig.gridConfig.title);
54205
54213
  }
54206
54214
  let size2 = this.myConfig.detailGridsConfig.length;
54207
54215
  this.myConfig.detailGridsConfig.forEach((el2, index) => {