mooho-base-admin-plus 0.4.39 → 0.4.40

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.
@@ -31739,6 +31739,7 @@ const _sfc_main$A = {
31739
31739
  mixins: [mixinPage],
31740
31740
  data() {
31741
31741
  return {
31742
+ inited: false,
31742
31743
  opened: false,
31743
31744
  sourceFilter: {}
31744
31745
  };
@@ -31768,6 +31769,7 @@ const _sfc_main$A = {
31768
31769
  this.$refs.selectSourceTable.loadData();
31769
31770
  this.$refs.selectTargetTable.init(targetViewCode, () => {
31770
31771
  this.setSelected([]);
31772
+ this.inited = true;
31771
31773
  if (typeof callback === "function") {
31772
31774
  callback();
31773
31775
  }
@@ -31784,8 +31786,10 @@ const _sfc_main$A = {
31784
31786
  return this.$refs.selectTargetTable.data;
31785
31787
  },
31786
31788
  setSelected(data2) {
31787
- this.$refs.selectTargetTable.loadData(data2);
31788
- this.$refs.selectSourceTable.setSelected(data2);
31789
+ if (this.inited) {
31790
+ this.$refs.selectTargetTable.loadData(data2);
31791
+ this.$refs.selectSourceTable.setSelected(data2);
31792
+ }
31789
31793
  },
31790
31794
  loadSource(filter2) {
31791
31795
  for (let key in this.sourceFilter) {
@@ -33960,7 +33964,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
33960
33964
  return openBlock(), createElementBlock("div", null, [
33961
33965
  createVNode$1(_component_Modal, {
33962
33966
  modelValue: $data.opened,
33963
- "onUpdate:modelValue": _cache[52] || (_cache[52] = ($event) => $data.opened = $event),
33967
+ "onUpdate:modelValue": _cache[53] || (_cache[53] = ($event) => $data.opened = $event),
33964
33968
  scrollable: "",
33965
33969
  "mask-closable": _ctx.layout.maskClosable,
33966
33970
  draggable: _ctx.layout.draggable,
@@ -34007,7 +34011,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
34007
34011
  "label-colon": "\uFF1A",
34008
34012
  class: "ivu-mt",
34009
34013
  rules: $data.rules,
34010
- onSubmit: _cache[51] || (_cache[51] = withModifiers(() => {
34014
+ onSubmit: _cache[52] || (_cache[52] = withModifiers(() => {
34011
34015
  }, ["prevent"]))
34012
34016
  }, {
34013
34017
  default: withCtx(() => [
@@ -34662,6 +34666,26 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
34662
34666
  ]),
34663
34667
  _: 1
34664
34668
  }, 16),
34669
+ createVNode$1(_component_Col, normalizeProps(guardReactiveProps(_ctx.grid8)), {
34670
+ default: withCtx(() => [
34671
+ createVNode$1(_component_FormItem, {
34672
+ label: "\u7981\u7528\u6392\u5E8F",
34673
+ key: "sortDisable",
34674
+ prop: "sortDisable"
34675
+ }, {
34676
+ default: withCtx(() => [
34677
+ createVNode$1(_component_Switch, {
34678
+ "model-value": !!$data.data.sortDisable,
34679
+ "onUpdate:modelValue": _cache[35] || (_cache[35] = ($event) => {
34680
+ $data.data.sortDisable = $event;
34681
+ })
34682
+ }, null, 8, ["model-value"])
34683
+ ]),
34684
+ _: 1
34685
+ })
34686
+ ]),
34687
+ _: 1
34688
+ }, 16),
34665
34689
  createVNode$1(_component_Col, normalizeProps(guardReactiveProps(_ctx.grid8)), {
34666
34690
  default: withCtx(() => [
34667
34691
  createVNode$1(_component_FormItem, {
@@ -34673,7 +34697,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
34673
34697
  createVNode$1(_component_Input, {
34674
34698
  type: "text",
34675
34699
  modelValue: $data.data.defaultValue,
34676
- "onUpdate:modelValue": _cache[35] || (_cache[35] = ($event) => $data.data.defaultValue = $event),
34700
+ "onUpdate:modelValue": _cache[36] || (_cache[36] = ($event) => $data.data.defaultValue = $event),
34677
34701
  maxlength: "200"
34678
34702
  }, null, 8, ["modelValue"])
34679
34703
  ]),
@@ -34693,7 +34717,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
34693
34717
  createVNode$1(_component_Input, {
34694
34718
  type: "text",
34695
34719
  modelValue: $data.data.description,
34696
- "onUpdate:modelValue": _cache[36] || (_cache[36] = ($event) => $data.data.description = $event),
34720
+ "onUpdate:modelValue": _cache[37] || (_cache[37] = ($event) => $data.data.description = $event),
34697
34721
  maxlength: "200"
34698
34722
  }, null, 8, ["modelValue"])
34699
34723
  ]),
@@ -34715,7 +34739,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
34715
34739
  style: { "width": "100px" },
34716
34740
  number: "",
34717
34741
  modelValue: $data.data.maxLength,
34718
- "onUpdate:modelValue": _cache[37] || (_cache[37] = ($event) => $data.data.maxLength = $event)
34742
+ "onUpdate:modelValue": _cache[38] || (_cache[38] = ($event) => $data.data.maxLength = $event)
34719
34743
  }, null, 8, ["modelValue"])
34720
34744
  ]),
34721
34745
  _: 1
@@ -34736,7 +34760,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
34736
34760
  style: { "width": "100px" },
34737
34761
  number: "",
34738
34762
  modelValue: $data.data.maxLength,
34739
- "onUpdate:modelValue": _cache[38] || (_cache[38] = ($event) => $data.data.maxLength = $event)
34763
+ "onUpdate:modelValue": _cache[39] || (_cache[39] = ($event) => $data.data.maxLength = $event)
34740
34764
  }, null, 8, ["modelValue"])
34741
34765
  ]),
34742
34766
  _: 1
@@ -34753,7 +34777,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
34753
34777
  style: { "width": "60px" },
34754
34778
  number: "",
34755
34779
  modelValue: $data.data.minValue,
34756
- "onUpdate:modelValue": _cache[39] || (_cache[39] = ($event) => $data.data.minValue = $event)
34780
+ "onUpdate:modelValue": _cache[40] || (_cache[40] = ($event) => $data.data.minValue = $event)
34757
34781
  }, null, 8, ["modelValue"]),
34758
34782
  _hoisted_6$5,
34759
34783
  createVNode$1(_component_Input, {
@@ -34761,7 +34785,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
34761
34785
  style: { "width": "60px" },
34762
34786
  number: "",
34763
34787
  modelValue: $data.data.maxValue,
34764
- "onUpdate:modelValue": _cache[40] || (_cache[40] = ($event) => $data.data.maxValue = $event)
34788
+ "onUpdate:modelValue": _cache[41] || (_cache[41] = ($event) => $data.data.maxValue = $event)
34765
34789
  }, null, 8, ["modelValue"])
34766
34790
  ]),
34767
34791
  _: 1
@@ -34782,7 +34806,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
34782
34806
  style: { "width": "100px" },
34783
34807
  number: "",
34784
34808
  modelValue: $data.data.digit,
34785
- "onUpdate:modelValue": _cache[41] || (_cache[41] = ($event) => $data.data.digit = $event)
34809
+ "onUpdate:modelValue": _cache[42] || (_cache[42] = ($event) => $data.data.digit = $event)
34786
34810
  }, null, 8, ["modelValue"])
34787
34811
  ]),
34788
34812
  _: 1
@@ -34800,7 +34824,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
34800
34824
  default: withCtx(() => [
34801
34825
  createVNode$1(_component_Switch, {
34802
34826
  "model-value": !!$data.data.fixedDigit,
34803
- "onUpdate:modelValue": _cache[42] || (_cache[42] = ($event) => {
34827
+ "onUpdate:modelValue": _cache[43] || (_cache[43] = ($event) => {
34804
34828
  $data.data.fixedDigit = $event;
34805
34829
  })
34806
34830
  }, null, 8, ["model-value"])
@@ -34820,7 +34844,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
34820
34844
  default: withCtx(() => [
34821
34845
  createVNode$1(_component_Switch, {
34822
34846
  "model-value": !!$data.data.newLine,
34823
- "onUpdate:modelValue": _cache[43] || (_cache[43] = ($event) => {
34847
+ "onUpdate:modelValue": _cache[44] || (_cache[44] = ($event) => {
34824
34848
  $data.data.newLine = $event;
34825
34849
  })
34826
34850
  }, null, 8, ["model-value"])
@@ -34841,7 +34865,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
34841
34865
  createVNode$1(_component_Input, {
34842
34866
  type: "text",
34843
34867
  modelValue: $data.data.parentCode,
34844
- "onUpdate:modelValue": _cache[44] || (_cache[44] = ($event) => $data.data.parentCode = $event),
34868
+ "onUpdate:modelValue": _cache[45] || (_cache[45] = ($event) => $data.data.parentCode = $event),
34845
34869
  maxlength: "200"
34846
34870
  }, null, 8, ["modelValue"])
34847
34871
  ]),
@@ -34860,7 +34884,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
34860
34884
  default: withCtx(() => [
34861
34885
  createVNode$1(_component_Switch, {
34862
34886
  "model-value": !!$data.data.mergeSame,
34863
- "onUpdate:modelValue": _cache[45] || (_cache[45] = ($event) => {
34887
+ "onUpdate:modelValue": _cache[46] || (_cache[46] = ($event) => {
34864
34888
  $data.data.mergeSame = $event;
34865
34889
  })
34866
34890
  }, null, 8, ["model-value"])
@@ -34881,7 +34905,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
34881
34905
  createVNode$1(_component_Input, {
34882
34906
  type: "text",
34883
34907
  modelValue: $data.data.pattern,
34884
- "onUpdate:modelValue": _cache[46] || (_cache[46] = ($event) => $data.data.pattern = $event),
34908
+ "onUpdate:modelValue": _cache[47] || (_cache[47] = ($event) => $data.data.pattern = $event),
34885
34909
  maxlength: "100"
34886
34910
  }, null, 8, ["modelValue"])
34887
34911
  ]),
@@ -34901,7 +34925,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
34901
34925
  createVNode$1(_component_Input, {
34902
34926
  type: "text",
34903
34927
  modelValue: $data.data.pattern,
34904
- "onUpdate:modelValue": _cache[47] || (_cache[47] = ($event) => $data.data.pattern = $event),
34928
+ "onUpdate:modelValue": _cache[48] || (_cache[48] = ($event) => $data.data.pattern = $event),
34905
34929
  maxlength: "100"
34906
34930
  }, null, 8, ["modelValue"])
34907
34931
  ]),
@@ -34921,7 +34945,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
34921
34945
  createVNode$1(_component_Input, {
34922
34946
  type: "text",
34923
34947
  modelValue: $data.data.pattern,
34924
- "onUpdate:modelValue": _cache[48] || (_cache[48] = ($event) => $data.data.pattern = $event),
34948
+ "onUpdate:modelValue": _cache[49] || (_cache[49] = ($event) => $data.data.pattern = $event),
34925
34949
  maxlength: "100"
34926
34950
  }, null, 8, ["modelValue"])
34927
34951
  ]),
@@ -34943,7 +34967,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
34943
34967
  style: { "width": "100px" },
34944
34968
  number: "",
34945
34969
  modelValue: $data.data.tabIndex,
34946
- "onUpdate:modelValue": _cache[49] || (_cache[49] = ($event) => $data.data.tabIndex = $event)
34970
+ "onUpdate:modelValue": _cache[50] || (_cache[50] = ($event) => $data.data.tabIndex = $event)
34947
34971
  }, null, 8, ["modelValue"])
34948
34972
  ]),
34949
34973
  _: 1
@@ -34962,7 +34986,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
34962
34986
  createVNode$1(_component_Input, {
34963
34987
  type: "text",
34964
34988
  modelValue: $data.data.calculate,
34965
- "onUpdate:modelValue": _cache[50] || (_cache[50] = ($event) => $data.data.calculate = $event),
34989
+ "onUpdate:modelValue": _cache[51] || (_cache[51] = ($event) => $data.data.calculate = $event),
34966
34990
  maxlength: "500"
34967
34991
  }, null, 8, ["modelValue"])
34968
34992
  ]),
@@ -34983,7 +35007,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
34983
35007
  }, 8, ["modelValue", "mask-closable", "draggable"]),
34984
35008
  createVNode$1(_component_Modal, {
34985
35009
  modelValue: $data.paramOpened,
34986
- "onUpdate:modelValue": _cache[54] || (_cache[54] = ($event) => $data.paramOpened = $event),
35010
+ "onUpdate:modelValue": _cache[55] || (_cache[55] = ($event) => $data.paramOpened = $event),
34987
35011
  scrollable: "",
34988
35012
  "mask-closable": _ctx.layout.maskClosable,
34989
35013
  draggable: _ctx.layout.draggable,
@@ -35005,7 +35029,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
35005
35029
  type: "primary",
35006
35030
  ghost: "",
35007
35031
  "custom-icon": "fa fa-plus",
35008
- onClick: _cache[53] || (_cache[53] = ($event) => $options.paramEdit())
35032
+ onClick: _cache[54] || (_cache[54] = ($event) => $options.paramEdit())
35009
35033
  }, {
35010
35034
  default: withCtx(() => [
35011
35035
  createTextVNode(toDisplayString$1(_ctx.$t("Front_Btn_Add")), 1)
@@ -35074,7 +35098,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
35074
35098
  }, 8, ["modelValue", "mask-closable", "draggable"]),
35075
35099
  createVNode$1(_component_Modal, {
35076
35100
  modelValue: $data.paramItemOpened,
35077
- "onUpdate:modelValue": _cache[61] || (_cache[61] = ($event) => $data.paramItemOpened = $event),
35101
+ "onUpdate:modelValue": _cache[62] || (_cache[62] = ($event) => $data.paramItemOpened = $event),
35078
35102
  scrollable: "",
35079
35103
  "mask-closable": _ctx.layout.maskClosable,
35080
35104
  draggable: _ctx.layout.draggable,
@@ -35118,7 +35142,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
35118
35142
  "label-position": "top",
35119
35143
  "label-colon": "\uFF1A",
35120
35144
  class: "ivu-mt",
35121
- onSubmit: _cache[60] || (_cache[60] = withModifiers(() => {
35145
+ onSubmit: _cache[61] || (_cache[61] = withModifiers(() => {
35122
35146
  }, ["prevent"]))
35123
35147
  }, {
35124
35148
  default: withCtx(() => [
@@ -35138,12 +35162,12 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
35138
35162
  createVNode$1(_component_Input, {
35139
35163
  type: "text",
35140
35164
  modelValue: $data.paramData.code,
35141
- "onUpdate:modelValue": _cache[56] || (_cache[56] = ($event) => $data.paramData.code = $event)
35165
+ "onUpdate:modelValue": _cache[57] || (_cache[57] = ($event) => $data.paramData.code = $event)
35142
35166
  }, {
35143
35167
  prepend: withCtx(() => [
35144
35168
  createVNode$1(_component_Button, {
35145
35169
  "custom-icon": "fa fa-search",
35146
- onClick: _cache[55] || (_cache[55] = ($event) => $options.openColumnSelect($data.paramData, "code"))
35170
+ onClick: _cache[56] || (_cache[56] = ($event) => $options.openColumnSelect($data.paramData, "code"))
35147
35171
  })
35148
35172
  ]),
35149
35173
  _: 1
@@ -35164,7 +35188,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
35164
35188
  default: withCtx(() => [
35165
35189
  createVNode$1(_component_RadioGroup, {
35166
35190
  modelValue: $data.paramData.keyType,
35167
- "onUpdate:modelValue": _cache[57] || (_cache[57] = ($event) => $data.paramData.keyType = $event),
35191
+ "onUpdate:modelValue": _cache[58] || (_cache[58] = ($event) => $data.paramData.keyType = $event),
35168
35192
  onOnChange: $options.keyTypeChange
35169
35193
  }, {
35170
35194
  default: withCtx(() => [
@@ -35190,7 +35214,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
35190
35214
  createVNode$1(_component_Input, {
35191
35215
  type: "text",
35192
35216
  modelValue: $data.paramData.val,
35193
- "onUpdate:modelValue": _cache[58] || (_cache[58] = ($event) => $data.paramData.val = $event)
35217
+ "onUpdate:modelValue": _cache[59] || (_cache[59] = ($event) => $data.paramData.val = $event)
35194
35218
  }, null, 8, ["modelValue"])
35195
35219
  ]),
35196
35220
  _: 1
@@ -35209,7 +35233,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
35209
35233
  createVNode$1(_component_Input, {
35210
35234
  type: "text",
35211
35235
  modelValue: $data.paramData.val,
35212
- "onUpdate:modelValue": _cache[59] || (_cache[59] = ($event) => $data.paramData.val = $event)
35236
+ "onUpdate:modelValue": _cache[60] || (_cache[60] = ($event) => $data.paramData.val = $event)
35213
35237
  }, {
35214
35238
  prepend: withCtx(() => [
35215
35239
  createVNode$1(_component_Button, {
@@ -37413,7 +37437,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
37413
37437
  ]);
37414
37438
  }
37415
37439
  var tableFilter = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$r]]);
37416
- var viewTable_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-group[data-v-7798e64c]{display:flex}.image-group .image[data-v-7798e64c]{border:solid 1px #ccc;width:75px;height:75px;margin:2px 1px;cursor:pointer}.image-group .image img[data-v-7798e64c]{width:75px;height:75px}\n")();
37440
+ var viewTable_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-group[data-v-90dc040a]{display:flex}.image-group .image[data-v-90dc040a]{border:solid 1px #ccc;width:75px;height:75px;margin:2px 1px;cursor:pointer}.image-group .image img[data-v-90dc040a]{width:75px;height:75px}\n")();
37417
37441
  var getColumns = (view, item) => {
37418
37442
  let children = view.viewColumns.filter((i2) => {
37419
37443
  return i2.parentCode == item.code;
@@ -37448,7 +37472,7 @@ var getColumns = (view, item) => {
37448
37472
  width: item.controlWidth,
37449
37473
  minWidth: 100,
37450
37474
  align: item.align ? item.align.toLowerCase() : "center",
37451
- sortable: "custom",
37475
+ sortable: !view.dataView.sortDisable && !item.sortDisable ? "custom" : false,
37452
37476
  resizable: true,
37453
37477
  slot: "normal"
37454
37478
  };
@@ -39411,7 +39435,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39411
39435
  ], 2)
39412
39436
  ], 2);
39413
39437
  }
39414
- var ViewTable = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-7798e64c"]]);
39438
+ var ViewTable = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-90dc040a"]]);
39415
39439
  const _sfc_main$p = {
39416
39440
  mixins: [mixinPage],
39417
39441
  components: { columnSelect, columnEdit },