mooho-base-admin-plus 2.2.13 → 2.2.15

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.
@@ -6807,7 +6807,8 @@ const Setting = {
6807
6807
  maskClosable: true,
6808
6808
  draggable: true,
6809
6809
  alertStyle: "SweetAlert",
6810
- filterWidth: 125
6810
+ filterWidth: 125,
6811
+ pageSize: 10
6811
6812
  },
6812
6813
  page: {
6813
6814
  opened: [],
@@ -37128,7 +37129,7 @@ const _sfc_main$w = {
37128
37129
  column.triggers = [];
37129
37130
  });
37130
37131
  this.columns.filter((column) => {
37131
- return !column.isStaticItem && !!(column.source || "").trim() && !!(column.param || "").trim() && !column.dataType.startsWith("Enum:");
37132
+ return !column.isStaticItem && !!(column.source || "").trim() && !!(column.param || "").trim() && !(column.dataType && column.dataType.startsWith("Enum:"));
37132
37133
  }).forEach((column) => {
37133
37134
  let param = JSON.parse(column.param);
37134
37135
  for (let key in param) {
@@ -37333,7 +37334,7 @@ const _sfc_main$w = {
37333
37334
  }
37334
37335
  if (sender == null || sender.triggers && sender.triggers !== []) {
37335
37336
  this.columns.forEach(function(column) {
37336
- if (!column.isStaticItem && !!(column.source || "").trim() && !column.dataType.startsWith("Enum:") && (sender == null || sender.triggers.some((item) => {
37337
+ if (!column.isStaticItem && !!(column.source || "").trim() && !(column.dataType && column.dataType.startsWith("Enum:")) && (sender == null || sender.triggers.some((item) => {
37337
37338
  return item.code == column.code;
37338
37339
  }))) {
37339
37340
  column.needRefresh = true;
@@ -37352,7 +37353,7 @@ const _sfc_main$w = {
37352
37353
  column.triggers.forEach((item) => {
37353
37354
  item.needClear = true;
37354
37355
  });
37355
- } else if (column.needRefresh && !!(column.source || "").trim() && !column.dataType.startsWith("Enum:")) {
37356
+ } else if (column.needRefresh && !!(column.source || "").trim() && !(column.dataType && column.dataType.startsWith("Enum:"))) {
37356
37357
  let param = this.getParam(this.data, column);
37357
37358
  if (column.controlType === "Select" || column.controlType === "MultiSelect" || column.controlType === "TreeSelect" || column.controlType === "MultiTreeSelect" || column.controlType === "SelectWithOther" || column.controlType === "ComboSelect" || column.controlType === "Radio" || column.controlType === "CheckGroup") {
37358
37359
  if (param != null) {
@@ -38425,7 +38426,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
38425
38426
  return openBlock(), createElementBlock("div", null, [
38426
38427
  createVNode$1(_component_Modal, {
38427
38428
  modelValue: $data.opened,
38428
- "onUpdate:modelValue": _cache[59] || (_cache[59] = ($event) => $data.opened = $event),
38429
+ "onUpdate:modelValue": _cache[61] || (_cache[61] = ($event) => $data.opened = $event),
38429
38430
  scrollable: "",
38430
38431
  "mask-closable": _ctx.layout.maskClosable,
38431
38432
  draggable: _ctx.layout.draggable,
@@ -38472,7 +38473,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
38472
38473
  "label-colon": "\uFF1A",
38473
38474
  class: "ivu-mt",
38474
38475
  rules: $data.rules,
38475
- onSubmit: _cache[58] || (_cache[58] = withModifiers(() => {
38476
+ onSubmit: _cache[60] || (_cache[60] = withModifiers(() => {
38476
38477
  }, ["prevent"]))
38477
38478
  }, {
38478
38479
  default: withCtx(() => [
@@ -39139,6 +39140,46 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39139
39140
  ]),
39140
39141
  _: 1
39141
39142
  }, 16),
39143
+ $props.viewType == "TableView" && $data.data.controlType == "Label" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 20 }, _ctx.grid8)), {
39144
+ default: withCtx(() => [
39145
+ createVNode$1(_component_FormItem, {
39146
+ label: "\u5F3A\u5236\u5355\u884C",
39147
+ key: "is_fixed",
39148
+ prop: "isSingleLine"
39149
+ }, {
39150
+ default: withCtx(() => [
39151
+ createVNode$1(_component_Switch, {
39152
+ "model-value": !!$data.data.isSingleLine,
39153
+ "onUpdate:modelValue": _cache[35] || (_cache[35] = ($event) => {
39154
+ $data.data.isSingleLine = $event;
39155
+ })
39156
+ }, null, 8, ["model-value"])
39157
+ ]),
39158
+ _: 1
39159
+ })
39160
+ ]),
39161
+ _: 1
39162
+ }, 16)) : createCommentVNode("v-if", true),
39163
+ $props.viewType == "TableView" && $data.data.controlType == "Label" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 21 }, _ctx.grid8)), {
39164
+ default: withCtx(() => [
39165
+ createVNode$1(_component_FormItem, {
39166
+ label: "\u56FA\u5B9A\u5728\u6700\u524D",
39167
+ key: "isFixed",
39168
+ prop: "isFixed"
39169
+ }, {
39170
+ default: withCtx(() => [
39171
+ createVNode$1(_component_Switch, {
39172
+ "model-value": !!$data.data.isFixed,
39173
+ "onUpdate:modelValue": _cache[36] || (_cache[36] = ($event) => {
39174
+ $data.data.isFixed = $event;
39175
+ })
39176
+ }, null, 8, ["model-value"])
39177
+ ]),
39178
+ _: 1
39179
+ })
39180
+ ]),
39181
+ _: 1
39182
+ }, 16)) : createCommentVNode("v-if", true),
39142
39183
  createVNode$1(_component_Col, normalizeProps(guardReactiveProps(_ctx.grid8)), {
39143
39184
  default: withCtx(() => [
39144
39185
  createVNode$1(_component_FormItem, {
@@ -39150,14 +39191,14 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39150
39191
  $options.showCheck($data.data.requiredJson) ? (openBlock(), createBlock(_component_Switch, {
39151
39192
  key: 0,
39152
39193
  "model-value": !!$data.data.isRequired,
39153
- "onUpdate:modelValue": _cache[35] || (_cache[35] = ($event) => {
39194
+ "onUpdate:modelValue": _cache[37] || (_cache[37] = ($event) => {
39154
39195
  $data.data.isRequired = $event;
39155
39196
  }),
39156
- onOnChange: _cache[36] || (_cache[36] = ($event) => $options.checkChange("requiredJson", "isRequired"))
39197
+ onOnChange: _cache[38] || (_cache[38] = ($event) => $options.checkChange("requiredJson", "isRequired"))
39157
39198
  }, null, 8, ["model-value"])) : createCommentVNode("v-if", true),
39158
39199
  createVNode$1(_component_Button, {
39159
39200
  style: { "margin-left": "8px" },
39160
- onClick: _cache[37] || (_cache[37] = ($event) => _ctx.$refs.conditionEdit.open($data.data, "requiredJson", "isRequired", $data.data.dataView.model)),
39201
+ onClick: _cache[39] || (_cache[39] = ($event) => _ctx.$refs.conditionEdit.open($data.data, "requiredJson", "isRequired", $data.data.dataView.model)),
39161
39202
  type: "primary",
39162
39203
  size: "small",
39163
39204
  icon: "ios-settings"
@@ -39173,7 +39214,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39173
39214
  ]),
39174
39215
  _: 1
39175
39216
  }, 16),
39176
- $props.viewType == "TableView" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 20 }, _ctx.grid8)), {
39217
+ $props.viewType == "TableView" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 22 }, _ctx.grid8)), {
39177
39218
  default: withCtx(() => [
39178
39219
  createVNode$1(_component_FormItem, {
39179
39220
  label: "\u7981\u7528\u6392\u5E8F",
@@ -39183,7 +39224,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39183
39224
  default: withCtx(() => [
39184
39225
  createVNode$1(_component_Switch, {
39185
39226
  "model-value": !!$data.data.sortDisable,
39186
- "onUpdate:modelValue": _cache[38] || (_cache[38] = ($event) => {
39227
+ "onUpdate:modelValue": _cache[40] || (_cache[40] = ($event) => {
39187
39228
  $data.data.sortDisable = $event;
39188
39229
  })
39189
39230
  }, null, 8, ["model-value"])
@@ -39204,7 +39245,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39204
39245
  createVNode$1(_component_Input, {
39205
39246
  type: "text",
39206
39247
  modelValue: $data.data.defaultValue,
39207
- "onUpdate:modelValue": _cache[39] || (_cache[39] = ($event) => $data.data.defaultValue = $event),
39248
+ "onUpdate:modelValue": _cache[41] || (_cache[41] = ($event) => $data.data.defaultValue = $event),
39208
39249
  maxlength: "200",
39209
39250
  style: { "width": "150px" }
39210
39251
  }, null, 8, ["modelValue"]),
@@ -39262,7 +39303,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39262
39303
  ]),
39263
39304
  _: 1
39264
39305
  }, 16),
39265
- $data.data.controlType != "Description" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 21 }, _ctx.grid8)), {
39306
+ $data.data.controlType != "Description" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 23 }, _ctx.grid8)), {
39266
39307
  default: withCtx(() => [
39267
39308
  createVNode$1(_component_FormItem, {
39268
39309
  label: "\u63CF\u8FF0",
@@ -39273,7 +39314,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39273
39314
  createVNode$1(_component_Input, {
39274
39315
  type: "text",
39275
39316
  modelValue: $data.data.description,
39276
- "onUpdate:modelValue": _cache[40] || (_cache[40] = ($event) => $data.data.description = $event),
39317
+ "onUpdate:modelValue": _cache[42] || (_cache[42] = ($event) => $data.data.description = $event),
39277
39318
  maxlength: "200"
39278
39319
  }, null, 8, ["modelValue"])
39279
39320
  ]),
@@ -39282,7 +39323,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39282
39323
  ]),
39283
39324
  _: 1
39284
39325
  }, 16)) : createCommentVNode("v-if", true),
39285
- $data.data.controlType == "Description" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 22 }, _ctx.grid24)), {
39326
+ $data.data.controlType == "Description" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 24 }, _ctx.grid24)), {
39286
39327
  default: withCtx(() => [
39287
39328
  createVNode$1(_component_FormItem, {
39288
39329
  label: "\u63CF\u8FF0",
@@ -39294,7 +39335,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39294
39335
  type: "textarea",
39295
39336
  rows: 5,
39296
39337
  modelValue: $data.data.description,
39297
- "onUpdate:modelValue": _cache[41] || (_cache[41] = ($event) => $data.data.description = $event)
39338
+ "onUpdate:modelValue": _cache[43] || (_cache[43] = ($event) => $data.data.description = $event)
39298
39339
  }, null, 8, ["modelValue"])
39299
39340
  ]),
39300
39341
  _: 1
@@ -39302,7 +39343,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39302
39343
  ]),
39303
39344
  _: 1
39304
39345
  }, 16)) : createCommentVNode("v-if", true),
39305
- $data.data.controlType == "TextInput" || $data.data.controlType == "TextArea" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 23 }, _ctx.grid8)), {
39346
+ $data.data.controlType == "TextInput" || $data.data.controlType == "TextArea" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 25 }, _ctx.grid8)), {
39306
39347
  default: withCtx(() => [
39307
39348
  createVNode$1(_component_FormItem, {
39308
39349
  label: "\u6700\u5927\u5B57\u7B26\u6570\u91CF",
@@ -39315,7 +39356,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39315
39356
  style: { "width": "100px" },
39316
39357
  number: "",
39317
39358
  modelValue: $data.data.maxLength,
39318
- "onUpdate:modelValue": _cache[42] || (_cache[42] = ($event) => $data.data.maxLength = $event)
39359
+ "onUpdate:modelValue": _cache[44] || (_cache[44] = ($event) => $data.data.maxLength = $event)
39319
39360
  }, null, 8, ["modelValue"])
39320
39361
  ]),
39321
39362
  _: 1
@@ -39323,7 +39364,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39323
39364
  ]),
39324
39365
  _: 1
39325
39366
  }, 16)) : createCommentVNode("v-if", true),
39326
- $data.data.controlType == "Attachment" || $data.data.controlType == "Image" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 24 }, _ctx.grid8)), {
39367
+ $data.data.controlType == "Attachment" || $data.data.controlType == "Image" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 26 }, _ctx.grid8)), {
39327
39368
  default: withCtx(() => [
39328
39369
  createVNode$1(_component_FormItem, {
39329
39370
  label: "\u6700\u5927\u6587\u4EF6\u6570\u91CF",
@@ -39336,7 +39377,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39336
39377
  style: { "width": "100px" },
39337
39378
  number: "",
39338
39379
  modelValue: $data.data.maxLength,
39339
- "onUpdate:modelValue": _cache[43] || (_cache[43] = ($event) => $data.data.maxLength = $event)
39380
+ "onUpdate:modelValue": _cache[45] || (_cache[45] = ($event) => $data.data.maxLength = $event)
39340
39381
  }, null, 8, ["modelValue"])
39341
39382
  ]),
39342
39383
  _: 1
@@ -39344,7 +39385,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39344
39385
  ]),
39345
39386
  _: 1
39346
39387
  }, 16)) : createCommentVNode("v-if", true),
39347
- $data.data.controlType == "NumberInput" || $data.data.controlType == "Slider" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 25 }, _ctx.grid8)), {
39388
+ $data.data.controlType == "NumberInput" || $data.data.controlType == "Slider" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 27 }, _ctx.grid8)), {
39348
39389
  default: withCtx(() => [
39349
39390
  createVNode$1(_component_FormItem, { label: "\u8F93\u5165\u8303\u56F4" }, {
39350
39391
  default: withCtx(() => [
@@ -39353,7 +39394,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39353
39394
  style: { "width": "60px" },
39354
39395
  number: "",
39355
39396
  modelValue: $data.data.minValue,
39356
- "onUpdate:modelValue": _cache[44] || (_cache[44] = ($event) => $data.data.minValue = $event)
39397
+ "onUpdate:modelValue": _cache[46] || (_cache[46] = ($event) => $data.data.minValue = $event)
39357
39398
  }, null, 8, ["modelValue"]),
39358
39399
  createTextVNode(" - "),
39359
39400
  createVNode$1(_component_Input, {
@@ -39361,7 +39402,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39361
39402
  style: { "width": "60px" },
39362
39403
  number: "",
39363
39404
  modelValue: $data.data.maxValue,
39364
- "onUpdate:modelValue": _cache[45] || (_cache[45] = ($event) => $data.data.maxValue = $event)
39405
+ "onUpdate:modelValue": _cache[47] || (_cache[47] = ($event) => $data.data.maxValue = $event)
39365
39406
  }, null, 8, ["modelValue"])
39366
39407
  ]),
39367
39408
  _: 1
@@ -39382,7 +39423,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39382
39423
  style: { "width": "100px" },
39383
39424
  number: "",
39384
39425
  modelValue: $data.data.digit,
39385
- "onUpdate:modelValue": _cache[46] || (_cache[46] = ($event) => $data.data.digit = $event)
39426
+ "onUpdate:modelValue": _cache[48] || (_cache[48] = ($event) => $data.data.digit = $event)
39386
39427
  }, null, 8, ["modelValue"])
39387
39428
  ]),
39388
39429
  _: 1
@@ -39400,7 +39441,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39400
39441
  default: withCtx(() => [
39401
39442
  createVNode$1(_component_Switch, {
39402
39443
  "model-value": !!$data.data.fixedDigit,
39403
- "onUpdate:modelValue": _cache[47] || (_cache[47] = ($event) => {
39444
+ "onUpdate:modelValue": _cache[49] || (_cache[49] = ($event) => {
39404
39445
  $data.data.fixedDigit = $event;
39405
39446
  })
39406
39447
  }, null, 8, ["model-value"])
@@ -39410,7 +39451,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39410
39451
  ]),
39411
39452
  _: 1
39412
39453
  }, 16),
39413
- $props.viewType == "FormView" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 26 }, _ctx.grid8)), {
39454
+ $props.viewType == "FormView" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 28 }, _ctx.grid8)), {
39414
39455
  default: withCtx(() => [
39415
39456
  createVNode$1(_component_FormItem, {
39416
39457
  label: "\u5F3A\u5236\u6362\u884C",
@@ -39420,7 +39461,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39420
39461
  default: withCtx(() => [
39421
39462
  createVNode$1(_component_Switch, {
39422
39463
  "model-value": !!$data.data.newLine,
39423
- "onUpdate:modelValue": _cache[48] || (_cache[48] = ($event) => {
39464
+ "onUpdate:modelValue": _cache[50] || (_cache[50] = ($event) => {
39424
39465
  $data.data.newLine = $event;
39425
39466
  })
39426
39467
  }, null, 8, ["model-value"])
@@ -39430,7 +39471,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39430
39471
  ]),
39431
39472
  _: 1
39432
39473
  }, 16)) : createCommentVNode("v-if", true),
39433
- $props.viewType == "TableView" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 27 }, _ctx.grid8)), {
39474
+ $props.viewType == "TableView" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 29 }, _ctx.grid8)), {
39434
39475
  default: withCtx(() => [
39435
39476
  createVNode$1(_component_FormItem, {
39436
39477
  label: "\u7236\u5355\u5143\u683C\u4EE3\u7801",
@@ -39441,7 +39482,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39441
39482
  createVNode$1(_component_Input, {
39442
39483
  type: "text",
39443
39484
  modelValue: $data.data.parentCode,
39444
- "onUpdate:modelValue": _cache[49] || (_cache[49] = ($event) => $data.data.parentCode = $event),
39485
+ "onUpdate:modelValue": _cache[51] || (_cache[51] = ($event) => $data.data.parentCode = $event),
39445
39486
  maxlength: "200"
39446
39487
  }, null, 8, ["modelValue"])
39447
39488
  ]),
@@ -39450,7 +39491,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39450
39491
  ]),
39451
39492
  _: 1
39452
39493
  }, 16)) : createCommentVNode("v-if", true),
39453
- $props.viewType == "TableView" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 28 }, _ctx.grid8)), {
39494
+ $props.viewType == "TableView" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 30 }, _ctx.grid8)), {
39454
39495
  default: withCtx(() => [
39455
39496
  createVNode$1(_component_FormItem, {
39456
39497
  label: "\u5408\u5E76\u5355\u5143\u683C",
@@ -39460,7 +39501,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39460
39501
  default: withCtx(() => [
39461
39502
  createVNode$1(_component_Switch, {
39462
39503
  "model-value": !!$data.data.mergeSame,
39463
- "onUpdate:modelValue": _cache[50] || (_cache[50] = ($event) => {
39504
+ "onUpdate:modelValue": _cache[52] || (_cache[52] = ($event) => {
39464
39505
  $data.data.mergeSame = $event;
39465
39506
  })
39466
39507
  }, null, 8, ["model-value"])
@@ -39470,7 +39511,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39470
39511
  ]),
39471
39512
  _: 1
39472
39513
  }, 16)) : createCommentVNode("v-if", true),
39473
- $props.viewType == "FormView" && $data.data.controlType == "Attachment" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 29 }, _ctx.grid8)), {
39514
+ $props.viewType == "FormView" && $data.data.controlType == "Attachment" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 31 }, _ctx.grid8)), {
39474
39515
  default: withCtx(() => [
39475
39516
  createVNode$1(_component_FormItem, {
39476
39517
  label: "\u62D6\u62FD\u4E0A\u4F20",
@@ -39480,7 +39521,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39480
39521
  default: withCtx(() => [
39481
39522
  createVNode$1(_component_Switch, {
39482
39523
  "model-value": !!$data.data.mergeSame,
39483
- "onUpdate:modelValue": _cache[51] || (_cache[51] = ($event) => {
39524
+ "onUpdate:modelValue": _cache[53] || (_cache[53] = ($event) => {
39484
39525
  $data.data.mergeSame = $event;
39485
39526
  })
39486
39527
  }, null, 8, ["model-value"])
@@ -39490,7 +39531,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39490
39531
  ]),
39491
39532
  _: 1
39492
39533
  }, 16)) : createCommentVNode("v-if", true),
39493
- $data.data.controlType == "TextInput" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 30 }, _ctx.grid8)), {
39534
+ $data.data.controlType == "TextInput" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 32 }, _ctx.grid8)), {
39494
39535
  default: withCtx(() => [
39495
39536
  createVNode$1(_component_FormItem, {
39496
39537
  label: "\u9A8C\u8BC1\u8868\u8FBE\u5F0F",
@@ -39501,7 +39542,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39501
39542
  createVNode$1(_component_Input, {
39502
39543
  type: "text",
39503
39544
  modelValue: $data.data.pattern,
39504
- "onUpdate:modelValue": _cache[52] || (_cache[52] = ($event) => $data.data.pattern = $event),
39545
+ "onUpdate:modelValue": _cache[54] || (_cache[54] = ($event) => $data.data.pattern = $event),
39505
39546
  maxlength: "100"
39506
39547
  }, null, 8, ["modelValue"])
39507
39548
  ]),
@@ -39510,7 +39551,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39510
39551
  ]),
39511
39552
  _: 1
39512
39553
  }, 16)) : createCommentVNode("v-if", true),
39513
- $data.data.controlType == "SelectWithOther" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 31 }, _ctx.grid8)), {
39554
+ $data.data.controlType == "SelectWithOther" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 33 }, _ctx.grid8)), {
39514
39555
  default: withCtx(() => [
39515
39556
  createVNode$1(_component_FormItem, {
39516
39557
  label: "\u5176\u4ED6\u6587\u672C",
@@ -39521,7 +39562,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39521
39562
  createVNode$1(_component_Input, {
39522
39563
  type: "text",
39523
39564
  modelValue: $data.data.pattern,
39524
- "onUpdate:modelValue": _cache[53] || (_cache[53] = ($event) => $data.data.pattern = $event),
39565
+ "onUpdate:modelValue": _cache[55] || (_cache[55] = ($event) => $data.data.pattern = $event),
39525
39566
  maxlength: "100"
39526
39567
  }, null, 8, ["modelValue"])
39527
39568
  ]),
@@ -39530,7 +39571,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39530
39571
  ]),
39531
39572
  _: 1
39532
39573
  }, 16)) : createCommentVNode("v-if", true),
39533
- $data.data.controlType == "Attachment" || $data.data.controlType == "Image" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 32 }, _ctx.grid8)), {
39574
+ $data.data.controlType == "Attachment" || $data.data.controlType == "Image" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 34 }, _ctx.grid8)), {
39534
39575
  default: withCtx(() => [
39535
39576
  createVNode$1(_component_FormItem, {
39536
39577
  label: "\u63A5\u53D7\u7684\u6587\u4EF6\u7C7B\u578B",
@@ -39541,7 +39582,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39541
39582
  createVNode$1(_component_Input, {
39542
39583
  type: "text",
39543
39584
  modelValue: $data.data.pattern,
39544
- "onUpdate:modelValue": _cache[54] || (_cache[54] = ($event) => $data.data.pattern = $event),
39585
+ "onUpdate:modelValue": _cache[56] || (_cache[56] = ($event) => $data.data.pattern = $event),
39545
39586
  maxlength: "100"
39546
39587
  }, null, 8, ["modelValue"])
39547
39588
  ]),
@@ -39550,7 +39591,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39550
39591
  ]),
39551
39592
  _: 1
39552
39593
  }, 16)) : createCommentVNode("v-if", true),
39553
- $props.viewType == "FormView" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 33 }, _ctx.grid8)), {
39594
+ $props.viewType == "FormView" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 35 }, _ctx.grid8)), {
39554
39595
  default: withCtx(() => [
39555
39596
  createVNode$1(_component_FormItem, {
39556
39597
  label: "\u9009\u9879\u5361\u5E8F\u53F7",
@@ -39563,7 +39604,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39563
39604
  style: { "width": "100px" },
39564
39605
  number: "",
39565
39606
  modelValue: $data.data.tabIndex,
39566
- "onUpdate:modelValue": _cache[55] || (_cache[55] = ($event) => $data.data.tabIndex = $event)
39607
+ "onUpdate:modelValue": _cache[57] || (_cache[57] = ($event) => $data.data.tabIndex = $event)
39567
39608
  }, null, 8, ["modelValue"])
39568
39609
  ]),
39569
39610
  _: 1
@@ -39582,7 +39623,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39582
39623
  createVNode$1(_component_Input, {
39583
39624
  type: "text",
39584
39625
  modelValue: $data.data.calculate,
39585
- "onUpdate:modelValue": _cache[56] || (_cache[56] = ($event) => $data.data.calculate = $event),
39626
+ "onUpdate:modelValue": _cache[58] || (_cache[58] = ($event) => $data.data.calculate = $event),
39586
39627
  maxlength: "500"
39587
39628
  }, null, 8, ["modelValue"])
39588
39629
  ]),
@@ -39591,7 +39632,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39591
39632
  ]),
39592
39633
  _: 1
39593
39634
  }, 16),
39594
- $props.viewType == "FormView" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 34 }, _ctx.grid24)), {
39635
+ $props.viewType == "FormView" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 36 }, _ctx.grid24)), {
39595
39636
  default: withCtx(() => [
39596
39637
  createVNode$1(_component_FormItem, {
39597
39638
  label: "\u6587\u5B57\u63D0\u793A",
@@ -39603,7 +39644,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39603
39644
  type: "textarea",
39604
39645
  autosize: true,
39605
39646
  modelValue: $data.data.tooltip,
39606
- "onUpdate:modelValue": _cache[57] || (_cache[57] = ($event) => $data.data.tooltip = $event),
39647
+ "onUpdate:modelValue": _cache[59] || (_cache[59] = ($event) => $data.data.tooltip = $event),
39607
39648
  maxlength: "500"
39608
39649
  }, null, 8, ["modelValue"])
39609
39650
  ]),
@@ -39624,7 +39665,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39624
39665
  }, 8, ["modelValue", "mask-closable", "draggable"]),
39625
39666
  createVNode$1(_component_Modal, {
39626
39667
  modelValue: $data.paramOpened,
39627
- "onUpdate:modelValue": _cache[61] || (_cache[61] = ($event) => $data.paramOpened = $event),
39668
+ "onUpdate:modelValue": _cache[63] || (_cache[63] = ($event) => $data.paramOpened = $event),
39628
39669
  scrollable: "",
39629
39670
  "mask-closable": _ctx.layout.maskClosable,
39630
39671
  draggable: _ctx.layout.draggable,
@@ -39646,7 +39687,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39646
39687
  type: "primary",
39647
39688
  ghost: "",
39648
39689
  "custom-icon": "fa fa-plus",
39649
- onClick: _cache[60] || (_cache[60] = ($event) => $options.paramEdit())
39690
+ onClick: _cache[62] || (_cache[62] = ($event) => $options.paramEdit())
39650
39691
  }, {
39651
39692
  default: withCtx(() => [
39652
39693
  createTextVNode(toDisplayString$1(_ctx.$t("Front_Btn_Add")), 1)
@@ -39715,7 +39756,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39715
39756
  }, 8, ["modelValue", "mask-closable", "draggable"]),
39716
39757
  createVNode$1(_component_Modal, {
39717
39758
  modelValue: $data.paramItemOpened,
39718
- "onUpdate:modelValue": _cache[68] || (_cache[68] = ($event) => $data.paramItemOpened = $event),
39759
+ "onUpdate:modelValue": _cache[70] || (_cache[70] = ($event) => $data.paramItemOpened = $event),
39719
39760
  scrollable: "",
39720
39761
  "mask-closable": _ctx.layout.maskClosable,
39721
39762
  draggable: _ctx.layout.draggable,
@@ -39759,7 +39800,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39759
39800
  "label-position": "top",
39760
39801
  "label-colon": "\uFF1A",
39761
39802
  class: "ivu-mt",
39762
- onSubmit: _cache[67] || (_cache[67] = withModifiers(() => {
39803
+ onSubmit: _cache[69] || (_cache[69] = withModifiers(() => {
39763
39804
  }, ["prevent"]))
39764
39805
  }, {
39765
39806
  default: withCtx(() => [
@@ -39779,12 +39820,12 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39779
39820
  createVNode$1(_component_Input, {
39780
39821
  type: "text",
39781
39822
  modelValue: $data.paramData.code,
39782
- "onUpdate:modelValue": _cache[63] || (_cache[63] = ($event) => $data.paramData.code = $event)
39823
+ "onUpdate:modelValue": _cache[65] || (_cache[65] = ($event) => $data.paramData.code = $event)
39783
39824
  }, {
39784
39825
  prepend: withCtx(() => [
39785
39826
  createVNode$1(_component_Button, {
39786
39827
  "custom-icon": "fa fa-search",
39787
- onClick: _cache[62] || (_cache[62] = ($event) => $options.openColumnSelect($data.paramData, "code"))
39828
+ onClick: _cache[64] || (_cache[64] = ($event) => $options.openColumnSelect($data.paramData, "code"))
39788
39829
  })
39789
39830
  ]),
39790
39831
  _: 1
@@ -39805,7 +39846,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39805
39846
  default: withCtx(() => [
39806
39847
  createVNode$1(_component_RadioGroup, {
39807
39848
  modelValue: $data.paramData.keyType,
39808
- "onUpdate:modelValue": _cache[64] || (_cache[64] = ($event) => $data.paramData.keyType = $event),
39849
+ "onUpdate:modelValue": _cache[66] || (_cache[66] = ($event) => $data.paramData.keyType = $event),
39809
39850
  onOnChange: $options.keyTypeChange
39810
39851
  }, {
39811
39852
  default: withCtx(() => [
@@ -39831,7 +39872,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39831
39872
  createVNode$1(_component_Input, {
39832
39873
  type: "text",
39833
39874
  modelValue: $data.paramData.val,
39834
- "onUpdate:modelValue": _cache[65] || (_cache[65] = ($event) => $data.paramData.val = $event)
39875
+ "onUpdate:modelValue": _cache[67] || (_cache[67] = ($event) => $data.paramData.val = $event)
39835
39876
  }, null, 8, ["modelValue"])
39836
39877
  ]),
39837
39878
  _: 1
@@ -39850,7 +39891,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
39850
39891
  createVNode$1(_component_Input, {
39851
39892
  type: "text",
39852
39893
  modelValue: $data.paramData.val,
39853
- "onUpdate:modelValue": _cache[66] || (_cache[66] = ($event) => $data.paramData.val = $event)
39894
+ "onUpdate:modelValue": _cache[68] || (_cache[68] = ($event) => $data.paramData.val = $event)
39854
39895
  }, {
39855
39896
  prepend: withCtx(() => [
39856
39897
  createVNode$1(_component_Button, {
@@ -41404,7 +41445,9 @@ const _sfc_main$r = {
41404
41445
  mixins: [mixin$1, mixinPage],
41405
41446
  components: { DialogSelect },
41406
41447
  data() {
41407
- return {};
41448
+ return {
41449
+ data: {}
41450
+ };
41408
41451
  },
41409
41452
  async created() {
41410
41453
  this.init();
@@ -41413,7 +41456,7 @@ const _sfc_main$r = {
41413
41456
  tableView: {
41414
41457
  type: Object
41415
41458
  },
41416
- data: {
41459
+ filter: {
41417
41460
  type: Object
41418
41461
  },
41419
41462
  columns: {
@@ -41429,6 +41472,10 @@ const _sfc_main$r = {
41429
41472
  methods: {
41430
41473
  init() {
41431
41474
  let data2 = this.data;
41475
+ if (this.filter) {
41476
+ lodash$1.exports.defaultsDeep(data2, this.filter);
41477
+ lodash$1.exports.assign(this.filter, data2);
41478
+ }
41432
41479
  this.columns.forEach((item) => {
41433
41480
  if (item.defaultValue) {
41434
41481
  if (item.defaultValue == "{today}") {
@@ -41518,7 +41565,7 @@ const _sfc_main$r = {
41518
41565
  column.triggers = [];
41519
41566
  });
41520
41567
  this.columns.filter((column) => {
41521
- return !column.isStaticItem && !!(column.source || "").trim() && !!(column.param || "").trim() && !column.dataType.startsWith("Enum:");
41568
+ return !column.isStaticItem && !!(column.source || "").trim() && !!(column.param || "").trim() && !(column.dataType && column.dataType.startsWith("Enum:"));
41522
41569
  }).forEach((column) => {
41523
41570
  let param = JSON.parse(column.param);
41524
41571
  for (let key in param) {
@@ -41635,7 +41682,7 @@ const _sfc_main$r = {
41635
41682
  });
41636
41683
  if (sender == null || sender.triggers !== []) {
41637
41684
  this.columns.forEach(function(column) {
41638
- if (!column.isStaticItem && !!(column.source || "").trim() && !column.dataType.startsWith("Enum:") && (sender == null || sender.triggers.some((item) => {
41685
+ if (!column.isStaticItem && !!(column.source || "").trim() && !(column.dataType && column.dataType.startsWith("Enum:")) && (sender == null || sender.triggers.some((item) => {
41639
41686
  return item.id === column.id;
41640
41687
  }))) {
41641
41688
  column.needRefresh = true;
@@ -41816,18 +41863,18 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
41816
41863
  column.controlType === "Custom" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
41817
41864
  createCommentVNode("\r\n @slot \u81EA\u5B9A\u4E49\u5217\r\n @binding {object} filter \u6570\u636E\u5BF9\u8C61\r\n @binding {object} column \u5217\u5BF9\u8C61\r\n @binding {string} code \u5217\u4EE3\u7801\r\n "),
41818
41865
  renderSlot(_ctx.$slots, "column", {
41819
- filter: $props.data,
41866
+ filter: $data.data,
41820
41867
  column,
41821
41868
  code: column.code
41822
41869
  })
41823
41870
  ], 64)) : column.controlType === "Label" ? (openBlock(), createElementBlock("div", _hoisted_2$f, [
41824
- createElementVNode("div", null, toDisplayString$1(_ctx.showData($props.data, column)), 1)
41871
+ createElementVNode("div", null, toDisplayString$1(_ctx.showData($data.data, column)), 1)
41825
41872
  ])) : column.controlType === "TextInput" ? (openBlock(), createBlock(_component_Input, {
41826
41873
  key: 2,
41827
41874
  size: "small",
41828
41875
  type: "text",
41829
- "model-value": $options.parseFilterData($props.data, column),
41830
- "onUpdate:modelValue": ($event) => $options.setFilterData($props.data, column, $event),
41876
+ "model-value": $options.parseFilterData($data.data, column),
41877
+ "onUpdate:modelValue": ($event) => $options.setFilterData($data.data, column, $event),
41831
41878
  onOnKeyup: _cache[0] || (_cache[0] = ($event) => $options.onKeyup($event)),
41832
41879
  style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
41833
41880
  placeholder: column.description
@@ -41836,16 +41883,16 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
41836
41883
  size: "small",
41837
41884
  type: "number",
41838
41885
  number: "",
41839
- "model-value": $options.parseFilterData($props.data, column),
41840
- "onUpdate:modelValue": ($event) => $options.setFilterData($props.data, column, $event),
41886
+ "model-value": $options.parseFilterData($data.data, column),
41887
+ "onUpdate:modelValue": ($event) => $options.setFilterData($data.data, column, $event),
41841
41888
  onOnKeyup: _cache[1] || (_cache[1] = ($event) => $options.onKeyup($event)),
41842
41889
  style: normalizeStyle$1({ width: column.controlWidth == null ? "100px" : column.controlWidth + "px" }),
41843
41890
  placeholder: column.description
41844
41891
  }, null, 8, ["model-value", "onUpdate:modelValue", "style", "placeholder"])) : column.controlType === "Select" ? (openBlock(), createBlock(_component_Select, {
41845
41892
  key: 4,
41846
41893
  size: "small",
41847
- "model-value": $options.parseFilterData($props.data, column),
41848
- "onUpdate:modelValue": ($event) => $options.setFilterData($props.data, column, $event),
41894
+ "model-value": $options.parseFilterData($data.data, column),
41895
+ "onUpdate:modelValue": ($event) => $options.setFilterData($data.data, column, $event),
41849
41896
  clearable: "",
41850
41897
  style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
41851
41898
  placeholder: column.description,
@@ -41853,7 +41900,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
41853
41900
  onOnChange: (selected) => $options.onSelectDataChange(column, selected)
41854
41901
  }, {
41855
41902
  default: withCtx(() => [
41856
- (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($props.data, column), (item) => {
41903
+ (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($data.data, column), (item) => {
41857
41904
  return openBlock(), createBlock(_component_Option, {
41858
41905
  key: item.id,
41859
41906
  value: item.id
@@ -41869,17 +41916,17 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
41869
41916
  }, 1032, ["model-value", "onUpdate:modelValue", "style", "placeholder", "onOnChange"])) : column.controlType === "MultiSelect" ? (openBlock(), createBlock(_component_Select, {
41870
41917
  key: 5,
41871
41918
  size: "small",
41872
- "model-value": $options.parseArrayFilterData($props.data, column),
41919
+ "model-value": $options.parseArrayFilterData($data.data, column),
41873
41920
  multiple: true,
41874
41921
  clearable: "",
41875
- "onUpdate:modelValue": ($event) => $options.setArrayFilterData($props.data, column, $event),
41922
+ "onUpdate:modelValue": ($event) => $options.setArrayFilterData($data.data, column, $event),
41876
41923
  style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
41877
41924
  placeholder: column.description,
41878
41925
  transfer: true,
41879
41926
  onOnChange: (selected) => $options.onSelectDataChange(column, selected)
41880
41927
  }, {
41881
41928
  default: withCtx(() => [
41882
- (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($props.data, column), (item) => {
41929
+ (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($data.data, column), (item) => {
41883
41930
  return openBlock(), createBlock(_component_Option, {
41884
41931
  key: item.id,
41885
41932
  value: item.id
@@ -41895,9 +41942,9 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
41895
41942
  }, 1032, ["model-value", "onUpdate:modelValue", "style", "placeholder", "onOnChange"])) : column.controlType === "TreeSelect" ? (openBlock(), createBlock(_component_TreeSelect, {
41896
41943
  key: 6,
41897
41944
  size: "small",
41898
- "model-value": $options.parseTreeFilterData($props.data, column),
41899
- "onUpdate:modelValue": ($event) => $options.setFilterData($props.data, column, $event),
41900
- data: $options.getDataSource($props.data, column),
41945
+ "model-value": $options.parseTreeFilterData($data.data, column),
41946
+ "onUpdate:modelValue": ($event) => $options.setFilterData($data.data, column, $event),
41947
+ data: $options.getDataSource($data.data, column),
41901
41948
  clearable: true,
41902
41949
  style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
41903
41950
  placeholder: column.description,
@@ -41906,9 +41953,9 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
41906
41953
  }, null, 8, ["model-value", "onUpdate:modelValue", "data", "style", "placeholder", "onOnChange"])) : column.controlType === "MultiTreeSelect" ? (openBlock(), createBlock(_component_TreeSelect, {
41907
41954
  key: 7,
41908
41955
  size: "small",
41909
- "model-value": $options.parseArrayFilterData($props.data, column),
41910
- "onUpdate:modelValue": ($event) => $options.setArrayFilterData($props.data, column, $event),
41911
- data: $options.getDataSource($props.data, column),
41956
+ "model-value": $options.parseArrayFilterData($data.data, column),
41957
+ "onUpdate:modelValue": ($event) => $options.setArrayFilterData($data.data, column, $event),
41958
+ data: $options.getDataSource($data.data, column),
41912
41959
  multiple: true,
41913
41960
  "show-checkbox": true,
41914
41961
  clearable: true,
@@ -41919,8 +41966,8 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
41919
41966
  }, null, 8, ["model-value", "onUpdate:modelValue", "data", "style", "placeholder", "onOnChange"])) : column.controlType === "SelectWithOther" ? (openBlock(), createElementBlock(Fragment, { key: 8 }, [
41920
41967
  createVNode$1(_component_Select, {
41921
41968
  size: "small",
41922
- "model-value": $options.parseFilterDataWithOther($props.data, column),
41923
- "onUpdate:modelValue": ($event) => $options.setFilterDataWithOther($props.data, column, $event),
41969
+ "model-value": $options.parseFilterDataWithOther($data.data, column),
41970
+ "onUpdate:modelValue": ($event) => $options.setFilterDataWithOther($data.data, column, $event),
41924
41971
  clearable: "",
41925
41972
  style: normalizeStyle$1({ width: column.controlWidth == null ? "40%" : column.controlWidth + "px" }),
41926
41973
  placeholder: column.description,
@@ -41928,7 +41975,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
41928
41975
  onOnChange: (selected) => $options.onSelectDataChange(column, selected)
41929
41976
  }, {
41930
41977
  default: withCtx(() => [
41931
- (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($props.data, column), (item) => {
41978
+ (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($data.data, column), (item) => {
41932
41979
  return openBlock(), createBlock(_component_Option, {
41933
41980
  key: item.id,
41934
41981
  value: item.id
@@ -41954,20 +42001,20 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
41954
42001
  withDirectives(createVNode$1(_component_Input, {
41955
42002
  type: "text",
41956
42003
  size: "small",
41957
- "model-value": $options.parseFilterData($props.data, column),
41958
- "onUpdate:modelValue": ($event) => $options.setFilterData($props.data, column, $event),
42004
+ "model-value": $options.parseFilterData($data.data, column),
42005
+ "onUpdate:modelValue": ($event) => $options.setFilterData($data.data, column, $event),
41959
42006
  style: normalizeStyle$1([{ width: column.controlWidth == null ? "40%" : column.controlWidth + "px" }, { "margin-left": "4px" }]),
41960
42007
  maxlength: column.maxLength,
41961
42008
  placeholder: column.description,
41962
42009
  onOnChange: ($event) => $options.onDataChange(column)
41963
42010
  }, null, 8, ["model-value", "onUpdate:modelValue", "style", "maxlength", "placeholder", "onOnChange"]), [
41964
- [vShow, $options.parseFilterDataWithOther($props.data, column) == "__Other"]
42011
+ [vShow, $options.parseFilterDataWithOther($data.data, column) == "__Other"]
41965
42012
  ])
41966
42013
  ], 64)) : column.controlType === "ComboSelect" ? (openBlock(), createBlock(_component_Select, {
41967
42014
  key: 9,
41968
42015
  size: "small",
41969
- "model-value": $options.parseFilterData($props.data, column),
41970
- "onUpdate:modelValue": ($event) => $options.setFilterData($props.data, column, $event),
42016
+ "model-value": $options.parseFilterData($data.data, column),
42017
+ "onUpdate:modelValue": ($event) => $options.setFilterData($data.data, column, $event),
41971
42018
  clearable: "",
41972
42019
  filterable: "",
41973
42020
  style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
@@ -41976,7 +42023,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
41976
42023
  onOnChange: (selected) => $options.onSelectDataChange(column, selected)
41977
42024
  }, {
41978
42025
  default: withCtx(() => [
41979
- (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($props.data, column), (item) => {
42026
+ (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($data.data, column), (item) => {
41980
42027
  return openBlock(), createBlock(_component_Option, {
41981
42028
  key: item.id,
41982
42029
  value: item.id
@@ -41992,32 +42039,32 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
41992
42039
  }, 1032, ["model-value", "onUpdate:modelValue", "style", "placeholder", "onOnChange"])) : column.controlType === "DialogSelect" ? (openBlock(), createBlock(_component_dialog_select, {
41993
42040
  key: 10,
41994
42041
  size: "small",
41995
- "model-value": $options.parseFilterData($props.data, column),
41996
- "onUpdate:modelValue": ($event) => $options.setFilterData($props.data, column, $event),
42042
+ "model-value": $options.parseFilterData($data.data, column),
42043
+ "onUpdate:modelValue": ($event) => $options.setFilterData($data.data, column, $event),
41997
42044
  source: column.source,
41998
42045
  "source-data-code": column.sourceDataCode,
41999
42046
  "source-display-code": column.sourceDisplayCode,
42000
- param: _ctx.getParam($props.data, column),
42047
+ param: _ctx.getParam($data.data, column),
42001
42048
  controlWidth: column.controlWidth,
42002
42049
  onOnChange: (selected) => $options.onSelectDataChange(column, selected)
42003
42050
  }, null, 8, ["model-value", "onUpdate:modelValue", "source", "source-data-code", "source-display-code", "param", "controlWidth", "onOnChange"])) : column.controlType === "Date" || column.controlType === "DateTime" || column.controlType === "Year" || column.controlType === "Month" || column.controlType === "DateRange" ? (openBlock(), createBlock(_component_DatePicker, {
42004
42051
  key: 11,
42005
42052
  size: "small",
42006
42053
  type: column.controlType.toLowerCase(),
42007
- "model-value": $options.parseFilterData($props.data, column),
42054
+ "model-value": $options.parseFilterData($data.data, column),
42008
42055
  placeholder: column.description,
42009
42056
  transfer: true,
42010
42057
  style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
42011
42058
  onOnChange: (time2) => {
42012
- $options.setFilterData($props.data, column, time2);
42059
+ $options.setFilterData($data.data, column, time2);
42013
42060
  $options.onDataChange(column);
42014
42061
  }
42015
42062
  }, null, 8, ["type", "model-value", "placeholder", "style", "onOnChange"])) : column.controlType === "Time" ? (openBlock(), createBlock(_component_TimePicker, {
42016
42063
  key: 12,
42017
42064
  size: "small",
42018
42065
  type: "time",
42019
- "model-value": $options.parseFilterData($props.data, column),
42020
- "onUpdate:modelValue": ($event) => $options.setFilterData($props.data, column, $event),
42066
+ "model-value": $options.parseFilterData($data.data, column),
42067
+ "onUpdate:modelValue": ($event) => $options.setFilterData($data.data, column, $event),
42021
42068
  placeholder: column.description,
42022
42069
  transfer: true,
42023
42070
  style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
@@ -42026,26 +42073,26 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
42026
42073
  key: 13,
42027
42074
  size: "small",
42028
42075
  style: { "line-height": "26px" },
42029
- "model-value": !!$options.parseFilterData($props.data, column),
42030
- "onUpdate:modelValue": ($event) => $options.setFilterData($props.data, column, $event),
42076
+ "model-value": !!$options.parseFilterData($data.data, column),
42077
+ "onUpdate:modelValue": ($event) => $options.setFilterData($data.data, column, $event),
42031
42078
  onOnChange: ($event) => $options.onDataChange(column)
42032
42079
  }, null, 8, ["model-value", "onUpdate:modelValue", "onOnChange"])) : column.controlType === "Switch" ? (openBlock(), createElementBlock("div", _hoisted_3$d, [
42033
42080
  createVNode$1(_component_Switch, {
42034
42081
  size: "small",
42035
- "model-value": !!$options.parseFilterData($props.data, column),
42036
- "onUpdate:modelValue": ($event) => $options.setFilterData($props.data, column, $event),
42082
+ "model-value": !!$options.parseFilterData($data.data, column),
42083
+ "onUpdate:modelValue": ($event) => $options.setFilterData($data.data, column, $event),
42037
42084
  onOnChange: ($event) => $options.onDataChange(column)
42038
42085
  }, null, 8, ["model-value", "onUpdate:modelValue", "onOnChange"])
42039
42086
  ])) : column.controlType === "Radio" ? (openBlock(), createBlock(_component_RadioGroup, {
42040
42087
  key: 15,
42041
42088
  size: "small",
42042
42089
  style: { "line-height": "22px" },
42043
- "model-value": $options.parseFilterData($props.data, column),
42044
- "onUpdate:modelValue": ($event) => $options.setFilterData($props.data, column, $event),
42090
+ "model-value": $options.parseFilterData($data.data, column),
42091
+ "onUpdate:modelValue": ($event) => $options.setFilterData($data.data, column, $event),
42045
42092
  onOnChange: (selected) => $options.onSelectDataChange(column, selected)
42046
42093
  }, {
42047
42094
  default: withCtx(() => [
42048
- (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($props.data, column), (item) => {
42095
+ (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($data.data, column), (item) => {
42049
42096
  return openBlock(), createBlock(_component_Radio, {
42050
42097
  key: item.id,
42051
42098
  label: item.id
@@ -42076,8 +42123,8 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
42076
42123
  }, {
42077
42124
  default: withCtx(() => [
42078
42125
  withDirectives(createVNode$1(_component_Input, {
42079
- modelValue: $props.data.keyword,
42080
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $props.data.keyword = $event),
42126
+ modelValue: $data.data.keyword,
42127
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.data.keyword = $event),
42081
42128
  onOnKeyup: _cache[3] || (_cache[3] = ($event) => $options.onKeyup($event)),
42082
42129
  size: "small"
42083
42130
  }, null, 8, ["modelValue"]), [
@@ -42307,6 +42354,9 @@ const _sfc_main$q = {
42307
42354
  } else {
42308
42355
  return this.height;
42309
42356
  }
42357
+ },
42358
+ filterData() {
42359
+ return this.$refs.tableFilter ? this.$refs.tableFilter.data : null;
42310
42360
  }
42311
42361
  },
42312
42362
  watch: {},
@@ -42344,6 +42394,7 @@ const _sfc_main$q = {
42344
42394
  });
42345
42395
  this.columns.forEach((column) => {
42346
42396
  column.name = this.getNameI18n(column);
42397
+ column.fixed = column.isFixed ? "left" : null;
42347
42398
  });
42348
42399
  if (this.tableView.snEnable) {
42349
42400
  this.columns.unshift({
@@ -42422,7 +42473,7 @@ const _sfc_main$q = {
42422
42473
  if (this.tableView.size) {
42423
42474
  this.size = this.tableView.size;
42424
42475
  } else if (this.tableView.pageEnable && this.pageEnable) {
42425
- this.size = 10;
42476
+ this.size = Setting.layout.pageSize;
42426
42477
  } else {
42427
42478
  this.size = 1e3;
42428
42479
  }
@@ -42701,8 +42752,8 @@ const _sfc_main$q = {
42701
42752
  return data2;
42702
42753
  },
42703
42754
  resetFilter() {
42704
- for (let key in this.filter) {
42705
- delete this.filter[key];
42755
+ for (let key in this.filterData) {
42756
+ delete this.filterData[key];
42706
42757
  }
42707
42758
  },
42708
42759
  search() {
@@ -42843,7 +42894,7 @@ const _sfc_main$q = {
42843
42894
  }
42844
42895
  });
42845
42896
  } else {
42846
- if (!!(column.source || "").trim() && !column.dataType.startsWith("Enum:")) {
42897
+ if (!!(column.source || "").trim() && !(column.dataType && column.dataType.startsWith("Enum:"))) {
42847
42898
  this.data.forEach((row) => {
42848
42899
  if (row._dataSource && row._dataSource[column.code]) {
42849
42900
  return;
@@ -42863,7 +42914,7 @@ const _sfc_main$q = {
42863
42914
  column.triggers = [];
42864
42915
  });
42865
42916
  this.columns.filter((column) => {
42866
- return !column.isStaticItem && !!(column.source || "").trim() && !!(column.param || "").trim() && !column.dataType.startsWith("Enum:");
42917
+ return !column.isStaticItem && !!(column.source || "").trim() && !!(column.param || "").trim() && !(column.dataType && column.dataType.startsWith("Enum:"));
42867
42918
  }).forEach((column) => {
42868
42919
  let param = JSON.parse(column.param);
42869
42920
  for (let key in param) {
@@ -42997,7 +43048,7 @@ const _sfc_main$q = {
42997
43048
  this.$emit("on-change", data2, sender, selected);
42998
43049
  if (sender == null || sender.triggers !== []) {
42999
43050
  this.columns.forEach(function(column) {
43000
- if (!column.isStaticItem && !!(column.source || "").trim() && !column.dataType.startsWith("Enum:") && (sender == null || sender.triggers.some((item) => {
43051
+ if (!column.isStaticItem && !!(column.source || "").trim() && !(column.dataType && column.dataType.startsWith("Enum:")) && (sender == null || sender.triggers.some((item) => {
43001
43052
  return item.code == column.code;
43002
43053
  }))) {
43003
43054
  if (data2._needRefresh) {
@@ -43018,7 +43069,7 @@ const _sfc_main$q = {
43018
43069
  column.triggers.forEach((item) => {
43019
43070
  data2._needClear[item.code] = true;
43020
43071
  });
43021
- } else if (data2._needRefresh[column.code] && !!(column.source || "").trim() && !column.dataType.startsWith("Enum:")) {
43072
+ } else if (data2._needRefresh[column.code] && !!(column.source || "").trim() && !(column.dataType && column.dataType.startsWith("Enum:"))) {
43022
43073
  let param = this.getParam(data2, column, this.parentData);
43023
43074
  if (column.controlType === "Select" || column.controlType === "SelectWithOther" || column.controlType === "ComboSelect" || column.controlType === "MulitSelect" || column.controlType === "Radio" || column.controlType === "CheckGroup") {
43024
43075
  if (param != null) {
@@ -43104,9 +43155,10 @@ const _sfc_main$q = {
43104
43155
  this.search();
43105
43156
  },
43106
43157
  getAllFilter() {
43158
+ var _a2;
43107
43159
  let filter2 = {
43108
43160
  ...this.viewFilter,
43109
- ...this.filter
43161
+ ...(_a2 = this.filterData) != null ? _a2 : {}
43110
43162
  };
43111
43163
  for (let key in filter2) {
43112
43164
  if (typeof filter2[key] == "object" && !(filter2[key] instanceof Date)) {
@@ -43118,7 +43170,7 @@ const _sfc_main$q = {
43118
43170
  getFilterResult() {
43119
43171
  let data2 = this.staticData;
43120
43172
  if (!this.filterDisable) {
43121
- let filter2 = this.filter;
43173
+ let filter2 = this.filterData;
43122
43174
  for (let key in filter2) {
43123
43175
  let column = key;
43124
43176
  let value = filter2[key];
@@ -43490,7 +43542,7 @@ const _sfc_main$q = {
43490
43542
  };
43491
43543
  const _hoisted_1$g = { class: "title" };
43492
43544
  const _hoisted_2$e = { ref: "filterCommand" };
43493
- const _hoisted_3$c = ["innerHTML"];
43545
+ const _hoisted_3$c = ["title", "innerHTML"];
43494
43546
  const _hoisted_4$5 = ["href", "target"];
43495
43547
  const _hoisted_5$4 = ["innerHTML"];
43496
43548
  const _hoisted_6$3 = {
@@ -43572,29 +43624,25 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
43572
43624
  }, {
43573
43625
  default: withCtx(() => [
43574
43626
  createCommentVNode("\r\n @slot \u7B5B\u9009\u680F\r\n @binding {object} table \u8868\u683C\u5BF9\u8C61\r\n @binding {object} filter \u7B5B\u9009\u5BF9\u8C61\r\n "),
43575
- renderSlot(_ctx.$slots, "filter", {
43576
- table: this,
43577
- filter: $props.filter
43578
- }, () => [
43627
+ renderSlot(_ctx.$slots, "filter", { table: this }, () => [
43579
43628
  createCommentVNode("\r\n @slot \u81EA\u5B9A\u4E49\u7B5B\u9009\u680F\r\n "),
43580
43629
  renderSlot(_ctx.$slots, "customFilter", {}, void 0, true),
43581
43630
  createVNode$1(_component_table_filter, {
43582
43631
  ref: "tableFilter",
43583
- data: $props.filter,
43632
+ filter: $props.filter,
43584
43633
  columns: $data.filterColumns,
43585
43634
  "table-view": $data.tableView,
43586
43635
  onOnKeyup: $options.onKeyup
43587
43636
  }, {
43588
- column: withCtx(({ filter: filter2, column }) => [
43637
+ column: withCtx(({ column }) => [
43589
43638
  createCommentVNode("\r\n @slot \u7B5B\u9009\u680F\u81EA\u5B9A\u4E49\u5217\r\n @binding {object} filter \u7B5B\u9009\u6761\u4EF6\u5BF9\u8C61\r\n @binding {object} column \u5217\u5BF9\u8C61\r\n @binding {string} code \u5217\u4EE3\u7801\r\n "),
43590
43639
  renderSlot(_ctx.$slots, "filterColumn", {
43591
- filter: filter2,
43592
43640
  column,
43593
43641
  code: column.code
43594
43642
  }, void 0, true)
43595
43643
  ]),
43596
43644
  _: 3
43597
- }, 8, ["data", "columns", "table-view", "onOnKeyup"]),
43645
+ }, 8, ["filter", "columns", "table-view", "onOnKeyup"]),
43598
43646
  createVNode$1(_component_Col, mergeProps(_ctx.getGrid($data.tableView.filterWidth), {
43599
43647
  style: { "text-align": $data.tableView.filterAlign == null ? "left" : $data.tableView.filterAlign.toLowerCase() }
43600
43648
  }), {
@@ -43760,8 +43808,10 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
43760
43808
  }, void 0, true)
43761
43809
  ], 64)) : column.controlType === "Label" ? (openBlock(), createElementBlock("div", {
43762
43810
  key: 1,
43811
+ title: column.isSingleLine ? _ctx.showData($options.rowData(row, index2), column) : null,
43812
+ class: normalizeClass({ "single-line": column.isSingleLine }),
43763
43813
  innerHTML: _ctx.showData($options.rowData(row, index2), column)
43764
- }, null, 8, _hoisted_3$c)) : column.controlType === "Hyperlink" ? (openBlock(), createElementBlock("a", {
43814
+ }, null, 10, _hoisted_3$c)) : column.controlType === "Hyperlink" ? (openBlock(), createElementBlock("a", {
43765
43815
  key: 2,
43766
43816
  href: _ctx.getHyperlink($options.rowData(row, index2), column.hyperlink),
43767
43817
  target: column.isNewWindow ? "_blank" : ""
@@ -51134,7 +51184,7 @@ const _sfc_main$o = {
51134
51184
  column.triggers = [];
51135
51185
  });
51136
51186
  this.columns.filter((column) => {
51137
- return !!(column.source || "").trim() && !!(column.param || "").trim() && !column.dataType.startsWith("Enum:");
51187
+ return !!(column.source || "").trim() && !!(column.param || "").trim() && !(column.dataType && column.dataType.startsWith("Enum:"));
51138
51188
  }).forEach((column) => {
51139
51189
  let param = JSON.parse(column.param);
51140
51190
  for (let key in param) {
@@ -51223,7 +51273,7 @@ const _sfc_main$o = {
51223
51273
  async onDataChange(sender) {
51224
51274
  if (sender == null || sender.triggers !== []) {
51225
51275
  this.columns.forEach(function(column) {
51226
- if (!!(column.source || "").trim() && !column.dataType.startsWith("Enum:") && (sender == null || sender.triggers.some((item) => {
51276
+ if (!!(column.source || "").trim() && !(column.dataType && column.dataType.startsWith("Enum:")) && (sender == null || sender.triggers.some((item) => {
51227
51277
  return item.id === column.id;
51228
51278
  }))) {
51229
51279
  column.needRefresh = true;
@@ -51242,7 +51292,7 @@ const _sfc_main$o = {
51242
51292
  column.triggers.forEach((item) => {
51243
51293
  item.needClear = true;
51244
51294
  });
51245
- } else if (column.needRefresh && !!(column.source || "").trim() && !column.dataType.startsWith("Enum:")) {
51295
+ } else if (column.needRefresh && !!(column.source || "").trim() && !(column.dataType && column.dataType.startsWith("Enum:"))) {
51246
51296
  let param = this.getParam(this.data, column);
51247
51297
  if (column.controlType === "Select" || column.controlType === "MultiSelect" || column.controlType === "TreeSelect" || column.controlType === "MultiTreeSelect" || column.controlType === "SelectWithOther" || column.controlType === "ComboSelect" || column.controlType === "Radio" || column.controlType === "CheckGroup") {
51248
51298
  if (param != null) {
@@ -52781,8 +52831,7 @@ const _sfc_main$l = {
52781
52831
  return {
52782
52832
  opened: false,
52783
52833
  tableView: {},
52784
- param: {},
52785
- tableFilter: {}
52834
+ param: {}
52786
52835
  };
52787
52836
  },
52788
52837
  created() {
@@ -52899,6 +52948,9 @@ const _sfc_main$l = {
52899
52948
  table() {
52900
52949
  return this.$refs.table;
52901
52950
  },
52951
+ filterData() {
52952
+ return this.$refs.table.filterData;
52953
+ },
52902
52954
  screenWidth() {
52903
52955
  return document.body.clientWidth * 0.8;
52904
52956
  }
@@ -52908,12 +52960,16 @@ const _sfc_main$l = {
52908
52960
  await this.$refs.table.init(viewCode, callback, onFail);
52909
52961
  },
52910
52962
  open(param) {
52911
- for (let key in this.param) {
52912
- delete this.tableFilter[key];
52963
+ if (this.param) {
52964
+ for (let key in this.param) {
52965
+ delete this.filterData[key];
52966
+ }
52913
52967
  }
52914
52968
  this.param = param;
52915
- for (let key in this.param) {
52916
- this.tableFilter[key] = this.param[key];
52969
+ if (this.param) {
52970
+ for (let key in this.param) {
52971
+ this.filterData[key] = this.param[key];
52972
+ }
52917
52973
  }
52918
52974
  setTimeout(() => {
52919
52975
  this.$refs.table.loadData();
@@ -53051,7 +53107,6 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
53051
53107
  ref: "table",
53052
53108
  "view-code": $props.viewCode,
53053
53109
  static: this.static,
53054
- filter: $data.tableFilter,
53055
53110
  "setting-enable": $props.settingEnable,
53056
53111
  "auto-load": false,
53057
53112
  "select-enable": $props.selectEnable,
@@ -53132,7 +53187,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
53132
53187
  })
53133
53188
  ]),
53134
53189
  _: 3
53135
- }, 8, ["view-code", "static", "filter", "setting-enable", "select-enable", "check-cross-page", "tree-enable", "tree-load", "has-children", "create-enable", "edit-enable", "remove-enable", "draggable", "filter-enable", "page-enable", "embedded", "before-load-data", "on-search", "summary-method", "page-size-opts", "span-method", "load-data-enable", "row-class-name", "onCreate", "onEdit", "onOnReady", "onOnLoadData", "onAfterInit", "onOnDragDrop"])
53190
+ }, 8, ["view-code", "static", "setting-enable", "select-enable", "check-cross-page", "tree-enable", "tree-load", "has-children", "create-enable", "edit-enable", "remove-enable", "draggable", "filter-enable", "page-enable", "embedded", "before-load-data", "on-search", "summary-method", "page-size-opts", "span-method", "load-data-enable", "row-class-name", "onCreate", "onEdit", "onOnReady", "onOnLoadData", "onAfterInit", "onOnDragDrop"])
53136
53191
  ])
53137
53192
  ]),
53138
53193
  _: 3