mooho-base-admin-plus 2.0.2 → 2.0.4

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.
@@ -35521,7 +35521,7 @@ const _sfc_main$w = {
35521
35521
  ...mapActions("admin/dataView", { loadDataView: "load" }),
35522
35522
  async init(viewCode, callback, onFail) {
35523
35523
  let view = await this.loadDataView(viewCode);
35524
- if (view == null && viewCode.indexOf("_") >= 0) {
35524
+ if (view && !view.isExist && viewCode.indexOf("_") >= 0) {
35525
35525
  view = await this.loadDataView(viewCode.split("_")[0]);
35526
35526
  }
35527
35527
  if (view == null) {
@@ -36108,7 +36108,6 @@ const _hoisted_9$4 = ["href"];
36108
36108
  function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
36109
36109
  const _component_Divider = resolveComponent("Divider");
36110
36110
  const _component_view_table = resolveComponent("view-table");
36111
- const _component_Tooltip = resolveComponent("Tooltip");
36112
36111
  const _component_Input = resolveComponent("Input");
36113
36112
  const _component_Option = resolveComponent("Option");
36114
36113
  const _component_Select = resolveComponent("Select");
@@ -36126,6 +36125,7 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
36126
36125
  const _component_Icon = resolveComponent("Icon");
36127
36126
  const _component_upload_image = resolveComponent("upload-image");
36128
36127
  const _component_Slider = resolveComponent("Slider");
36128
+ const _component_Button = resolveComponent("Button");
36129
36129
  const _component_FormItem = resolveComponent("FormItem");
36130
36130
  const _component_Col = resolveComponent("Col");
36131
36131
  const _component_Row = resolveComponent("Row");
@@ -36258,19 +36258,10 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
36258
36258
  class: "label",
36259
36259
  title: $data.compareData == null ? null : _ctx.showData($data.compareData, column)
36260
36260
  }, [
36261
- createVNode$1(_component_Tooltip, {
36262
- disabled: !column.tooltip,
36263
- content: column.tooltip,
36264
- "max-width": "200"
36265
- }, {
36266
- default: withCtx(() => [
36267
- createElementVNode("div", {
36268
- class: normalizeClass({ error: $data.compareData != null && _ctx.parseData($data.data, column.code) != _ctx.parseData($data.compareData, column.code) }),
36269
- innerHTML: _ctx.showData($data.data, column)
36270
- }, null, 10, _hoisted_6$6)
36271
- ]),
36272
- _: 2
36273
- }, 1032, ["disabled", "content"])
36261
+ createElementVNode("div", {
36262
+ class: normalizeClass({ error: $data.compareData != null && _ctx.parseData($data.data, column.code) != _ctx.parseData($data.compareData, column.code) }),
36263
+ innerHTML: _ctx.showData($data.data, column)
36264
+ }, null, 10, _hoisted_6$6)
36274
36265
  ], 8, _hoisted_5$9)) : createCommentVNode("v-if", true),
36275
36266
  column.controlType === "Hyperlink" ? (openBlock(), createElementBlock("a", {
36276
36267
  key: 2,
@@ -36280,163 +36271,109 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
36280
36271
  createElementVNode("span", {
36281
36272
  innerHTML: _ctx.showData($data.data, column)
36282
36273
  }, null, 8, _hoisted_8$6)
36283
- ], 8, _hoisted_7$6)) : column.controlType === "TextInput" ? (openBlock(), createBlock(_component_Tooltip, {
36274
+ ], 8, _hoisted_7$6)) : column.controlType === "TextInput" ? (openBlock(), createBlock(_component_Input, {
36284
36275
  key: 3,
36285
- disabled: !column.tooltip,
36286
- content: column.tooltip,
36287
- "max-width": "200"
36288
- }, {
36289
- default: withCtx(() => [
36290
- createVNode$1(_component_Input, {
36291
- type: "text",
36292
- "model-value": _ctx.parseData($data.data, column.code),
36293
- "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36294
- readonly: $props.readonly || column.isReadonly,
36295
- style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
36296
- maxlength: column.maxLength,
36297
- placeholder: column.description,
36298
- onOnChange: ($event) => $options.onDataChange(column),
36299
- onOnBlur: ($event) => $options.onBlur(column)
36300
- }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "style", "maxlength", "placeholder", "onOnChange", "onOnBlur"])
36301
- ]),
36302
- _: 2
36303
- }, 1032, ["disabled", "content"])) : column.controlType === "NumberInput" ? (openBlock(), createBlock(_component_Tooltip, {
36276
+ type: "text",
36277
+ "model-value": _ctx.parseData($data.data, column.code),
36278
+ "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36279
+ readonly: $props.readonly || column.isReadonly,
36280
+ style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
36281
+ maxlength: column.maxLength,
36282
+ placeholder: column.description,
36283
+ onOnChange: ($event) => $options.onDataChange(column),
36284
+ onOnBlur: ($event) => $options.onBlur(column)
36285
+ }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "style", "maxlength", "placeholder", "onOnChange", "onOnBlur"])) : column.controlType === "NumberInput" ? (openBlock(), createBlock(_component_Input, {
36304
36286
  key: 4,
36305
- disabled: !column.tooltip,
36306
- content: column.tooltip,
36307
- "max-width": "200"
36308
- }, {
36309
- default: withCtx(() => [
36310
- createVNode$1(_component_Input, {
36311
- type: "number",
36312
- number: "",
36313
- "model-value": _ctx.parseData($data.data, column.code),
36314
- "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36315
- readonly: $props.readonly || column.isReadonly,
36316
- style: normalizeStyle$1({ width: column.controlWidth == null ? "100px" : column.controlWidth + "px" }),
36317
- placeholder: column.description,
36318
- max: column.maxValue,
36319
- min: column.minValue,
36320
- onOnChange: ($event) => $options.onDataChange(column),
36321
- onOnBlur: ($event) => $options.onBlur(column)
36322
- }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "style", "placeholder", "max", "min", "onOnChange", "onOnBlur"])
36323
- ]),
36324
- _: 2
36325
- }, 1032, ["disabled", "content"])) : column.controlType === "Select" ? (openBlock(), createBlock(_component_Tooltip, {
36287
+ type: "number",
36288
+ number: "",
36289
+ "model-value": _ctx.parseData($data.data, column.code),
36290
+ "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36291
+ readonly: $props.readonly || column.isReadonly,
36292
+ style: normalizeStyle$1({ width: column.controlWidth == null ? "100px" : column.controlWidth + "px" }),
36293
+ placeholder: column.description,
36294
+ max: column.maxValue,
36295
+ min: column.minValue,
36296
+ onOnChange: ($event) => $options.onDataChange(column),
36297
+ onOnBlur: ($event) => $options.onBlur(column)
36298
+ }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "style", "placeholder", "max", "min", "onOnChange", "onOnBlur"])) : column.controlType === "Select" ? (openBlock(), createBlock(_component_Select, {
36326
36299
  key: 5,
36327
- disabled: !column.tooltip,
36328
- content: column.tooltip,
36329
- "max-width": "200"
36300
+ "model-value": _ctx.parseData($data.data, column.code),
36301
+ "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36302
+ disabled: $props.readonly || column.isReadonly,
36303
+ clearable: true,
36304
+ style: normalizeStyle$1({
36305
+ width: column.controlWidth == null ? null : column.controlWidth + "px",
36306
+ "min-width": column.controlWidth == null ? null : column.controlWidth + "px"
36307
+ }),
36308
+ placeholder: column.description,
36309
+ transfer: true,
36310
+ onOnChange: (selected) => $options.onSelectDataChange(column, selected)
36330
36311
  }, {
36331
36312
  default: withCtx(() => [
36332
- createVNode$1(_component_Select, {
36333
- "model-value": _ctx.parseData($data.data, column.code),
36334
- "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36335
- disabled: $props.readonly || column.isReadonly,
36336
- clearable: true,
36337
- style: normalizeStyle$1({
36338
- width: column.controlWidth == null ? null : column.controlWidth + "px",
36339
- "min-width": column.controlWidth == null ? null : column.controlWidth + "px"
36340
- }),
36341
- placeholder: column.description,
36342
- transfer: true,
36343
- onOnChange: (selected) => $options.onSelectDataChange(column, selected)
36344
- }, {
36345
- default: withCtx(() => [
36346
- (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($data.data, column), (item) => {
36347
- return openBlock(), createBlock(_component_Option, {
36348
- key: item.id,
36349
- value: item.id
36350
- }, {
36351
- default: withCtx(() => [
36352
- createTextVNode(toDisplayString$1(item.name), 1)
36353
- ]),
36354
- _: 2
36355
- }, 1032, ["value"]);
36356
- }), 128))
36357
- ]),
36358
- _: 2
36359
- }, 1032, ["model-value", "onUpdate:modelValue", "disabled", "style", "placeholder", "onOnChange"])
36313
+ (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($data.data, column), (item) => {
36314
+ return openBlock(), createBlock(_component_Option, {
36315
+ key: item.id,
36316
+ value: item.id
36317
+ }, {
36318
+ default: withCtx(() => [
36319
+ createTextVNode(toDisplayString$1(item.name), 1)
36320
+ ]),
36321
+ _: 2
36322
+ }, 1032, ["value"]);
36323
+ }), 128))
36360
36324
  ]),
36361
36325
  _: 2
36362
- }, 1032, ["disabled", "content"])) : column.controlType === "MultiSelect" ? (openBlock(), createBlock(_component_Tooltip, {
36326
+ }, 1032, ["model-value", "onUpdate:modelValue", "disabled", "style", "placeholder", "onOnChange"])) : column.controlType === "MultiSelect" ? (openBlock(), createBlock(_component_Select, {
36363
36327
  key: 6,
36364
- disabled: !column.tooltip,
36365
- content: column.tooltip,
36366
- "max-width": "200"
36328
+ "model-value": _ctx.parseArrayData($data.data, column.code),
36329
+ "onUpdate:modelValue": ($event) => _ctx.setArrayData($data.data, column.code, $event),
36330
+ disabled: $props.readonly || column.isReadonly,
36331
+ multiple: true,
36332
+ clearable: true,
36333
+ style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
36334
+ placeholder: column.description,
36335
+ transfer: true,
36336
+ onOnChange: (selected) => $options.onSelectDataChange(column, selected)
36367
36337
  }, {
36368
36338
  default: withCtx(() => [
36369
- createVNode$1(_component_Select, {
36370
- "model-value": _ctx.parseArrayData($data.data, column.code),
36371
- "onUpdate:modelValue": ($event) => _ctx.setArrayData($data.data, column.code, $event),
36372
- disabled: $props.readonly || column.isReadonly,
36373
- multiple: true,
36374
- clearable: true,
36375
- style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
36376
- placeholder: column.description,
36377
- transfer: true,
36378
- onOnChange: (selected) => $options.onSelectDataChange(column, selected)
36379
- }, {
36380
- default: withCtx(() => [
36381
- (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($data.data, column), (item) => {
36382
- return openBlock(), createBlock(_component_Option, {
36383
- key: item.id,
36384
- value: item.id
36385
- }, {
36386
- default: withCtx(() => [
36387
- createTextVNode(toDisplayString$1(item.name), 1)
36388
- ]),
36389
- _: 2
36390
- }, 1032, ["value"]);
36391
- }), 128))
36392
- ]),
36393
- _: 2
36394
- }, 1032, ["model-value", "onUpdate:modelValue", "disabled", "style", "placeholder", "onOnChange"])
36339
+ (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($data.data, column), (item) => {
36340
+ return openBlock(), createBlock(_component_Option, {
36341
+ key: item.id,
36342
+ value: item.id
36343
+ }, {
36344
+ default: withCtx(() => [
36345
+ createTextVNode(toDisplayString$1(item.name), 1)
36346
+ ]),
36347
+ _: 2
36348
+ }, 1032, ["value"]);
36349
+ }), 128))
36395
36350
  ]),
36396
36351
  _: 2
36397
- }, 1032, ["disabled", "content"])) : column.controlType === "TreeSelect" ? (openBlock(), createBlock(_component_Tooltip, {
36352
+ }, 1032, ["model-value", "onUpdate:modelValue", "disabled", "style", "placeholder", "onOnChange"])) : column.controlType === "TreeSelect" ? (openBlock(), createBlock(_component_TreeSelect, {
36398
36353
  key: 7,
36399
- disabled: !column.tooltip,
36400
- content: column.tooltip,
36401
- "max-width": "200"
36402
- }, {
36403
- default: withCtx(() => [
36404
- createVNode$1(_component_TreeSelect, {
36405
- "model-value": $options.parseTreeData($data.data, column.code),
36406
- "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36407
- data: $options.getDataSource($data.data, column),
36408
- disabled: $props.readonly || column.isReadonly,
36409
- clearable: true,
36410
- style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
36411
- placeholder: column.description,
36412
- transfer: true,
36413
- onOnChange: (selected) => $options.onSelectDataChange(column, selected)
36414
- }, null, 8, ["model-value", "onUpdate:modelValue", "data", "disabled", "style", "placeholder", "onOnChange"])
36415
- ]),
36416
- _: 2
36417
- }, 1032, ["disabled", "content"])) : column.controlType === "MultiTreeSelect" ? (openBlock(), createBlock(_component_Tooltip, {
36354
+ "model-value": $options.parseTreeData($data.data, column.code),
36355
+ "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36356
+ data: $options.getDataSource($data.data, column),
36357
+ disabled: $props.readonly || column.isReadonly,
36358
+ clearable: true,
36359
+ style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
36360
+ placeholder: column.description,
36361
+ transfer: true,
36362
+ onOnChange: (selected) => $options.onSelectDataChange(column, selected)
36363
+ }, null, 8, ["model-value", "onUpdate:modelValue", "data", "disabled", "style", "placeholder", "onOnChange"])) : column.controlType === "MultiTreeSelect" ? (openBlock(), createBlock(_component_TreeSelect, {
36418
36364
  key: 8,
36419
- disabled: !column.tooltip,
36420
- content: column.tooltip,
36421
- "max-width": "200"
36422
- }, {
36423
- default: withCtx(() => [
36424
- createVNode$1(_component_TreeSelect, {
36425
- "model-value": _ctx.parseArrayData($data.data, column.code),
36426
- "onUpdate:modelValue": ($event) => _ctx.setArrayData($data.data, column.code, $event),
36427
- data: $options.getDataSource($data.data, column),
36428
- disabled: $props.readonly || column.isReadonly,
36429
- multiple: true,
36430
- "show-checkbox": true,
36431
- clearable: true,
36432
- style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
36433
- placeholder: column.description,
36434
- transfer: true,
36435
- onOnChange: (selected) => $options.onSelectDataChange(column, selected)
36436
- }, null, 8, ["model-value", "onUpdate:modelValue", "data", "disabled", "style", "placeholder", "onOnChange"])
36437
- ]),
36438
- _: 2
36439
- }, 1032, ["disabled", "content"])) : column.controlType === "ComboSelect" ? (openBlock(), createElementBlock(Fragment, { key: 9 }, [
36365
+ "model-value": _ctx.parseArrayData($data.data, column.code),
36366
+ "onUpdate:modelValue": ($event) => _ctx.setArrayData($data.data, column.code, $event),
36367
+ data: $options.getDataSource($data.data, column),
36368
+ disabled: $props.readonly || column.isReadonly,
36369
+ multiple: true,
36370
+ "show-checkbox": true,
36371
+ clearable: true,
36372
+ style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
36373
+ placeholder: column.description,
36374
+ transfer: true,
36375
+ onOnChange: (selected) => $options.onSelectDataChange(column, selected)
36376
+ }, null, 8, ["model-value", "onUpdate:modelValue", "data", "disabled", "style", "placeholder", "onOnChange"])) : column.controlType === "ComboSelect" ? (openBlock(), createElementBlock(Fragment, { key: 9 }, [
36440
36377
  createCommentVNode(` <template v-else-if="column.controlType === 'AutoComplete'">\r
36441
36378
  <AutoComplete :value="parseData(data, column.code) ? parseData(data, column.code) : ''"\r
36442
36379
  @update:model-value="$event => setData(data, column.code, $event)"\r
@@ -36453,299 +36390,193 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
36453
36390
  :value="item.name">{{ item.name }}</Option>\r
36454
36391
  </AutoComplete>\r
36455
36392
  </template> `),
36456
- createVNode$1(_component_Tooltip, {
36457
- disabled: !column.tooltip,
36458
- content: column.tooltip,
36459
- "max-width": "200"
36393
+ createVNode$1(_component_Select, {
36394
+ "model-value": _ctx.parseData($data.data, column.code),
36395
+ "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36396
+ disabled: $props.readonly || column.isReadonly,
36397
+ clearable: true,
36398
+ filterable: "",
36399
+ style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
36400
+ placeholder: column.description,
36401
+ transfer: true,
36402
+ onOnChange: (selected) => $options.onSelectDataChange(column, selected)
36460
36403
  }, {
36461
36404
  default: withCtx(() => [
36462
- createVNode$1(_component_Select, {
36463
- "model-value": _ctx.parseData($data.data, column.code),
36464
- "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36465
- disabled: $props.readonly || column.isReadonly,
36466
- clearable: true,
36467
- filterable: "",
36468
- style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
36469
- placeholder: column.description,
36470
- transfer: true,
36471
- onOnChange: (selected) => $options.onSelectDataChange(column, selected)
36472
- }, {
36473
- default: withCtx(() => [
36474
- (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($data.data, column), (item) => {
36475
- return openBlock(), createBlock(_component_Option, {
36476
- key: item.id,
36477
- value: item.id
36478
- }, {
36479
- default: withCtx(() => [
36480
- createTextVNode(toDisplayString$1(item.name), 1)
36481
- ]),
36482
- _: 2
36483
- }, 1032, ["value"]);
36484
- }), 128))
36485
- ]),
36486
- _: 2
36487
- }, 1032, ["model-value", "onUpdate:modelValue", "disabled", "style", "placeholder", "onOnChange"])
36405
+ (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($data.data, column), (item) => {
36406
+ return openBlock(), createBlock(_component_Option, {
36407
+ key: item.id,
36408
+ value: item.id
36409
+ }, {
36410
+ default: withCtx(() => [
36411
+ createTextVNode(toDisplayString$1(item.name), 1)
36412
+ ]),
36413
+ _: 2
36414
+ }, 1032, ["value"]);
36415
+ }), 128))
36488
36416
  ]),
36489
36417
  _: 2
36490
- }, 1032, ["disabled", "content"])
36491
- ], 64)) : column.controlType === "DialogSelect" ? (openBlock(), createBlock(_component_Tooltip, {
36418
+ }, 1032, ["model-value", "onUpdate:modelValue", "disabled", "style", "placeholder", "onOnChange"])
36419
+ ], 64)) : column.controlType === "DialogSelect" ? (openBlock(), createBlock(_component_dialog_select, {
36492
36420
  key: 10,
36493
- disabled: !column.tooltip,
36494
- content: column.tooltip,
36495
- "max-width": "200"
36496
- }, {
36497
- default: withCtx(() => [
36498
- createVNode$1(_component_dialog_select, {
36499
- "model-value": _ctx.parseData($data.data, column.code),
36500
- "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36501
- readonly: $props.readonly || column.isReadonly,
36502
- source: column.source,
36503
- "source-data-code": column.sourceDataCode,
36504
- "source-display-code": column.sourceDisplayCode,
36505
- param: _ctx.getParam($data.data, column),
36506
- controlWidth: column.controlWidth,
36507
- onOnChange: (selected) => $options.onSelectDataChange(column, selected)
36508
- }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "source", "source-data-code", "source-display-code", "param", "controlWidth", "onOnChange"])
36509
- ]),
36510
- _: 2
36511
- }, 1032, ["disabled", "content"])) : column.controlType === "MultiDialogSelect" ? (openBlock(), createBlock(_component_Tooltip, {
36421
+ "model-value": _ctx.parseData($data.data, column.code),
36422
+ "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36423
+ readonly: $props.readonly || column.isReadonly,
36424
+ source: column.source,
36425
+ "source-data-code": column.sourceDataCode,
36426
+ "source-display-code": column.sourceDisplayCode,
36427
+ param: _ctx.getParam($data.data, column),
36428
+ controlWidth: column.controlWidth,
36429
+ onOnChange: (selected) => $options.onSelectDataChange(column, selected)
36430
+ }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "source", "source-data-code", "source-display-code", "param", "controlWidth", "onOnChange"])) : column.controlType === "MultiDialogSelect" ? (openBlock(), createBlock(_component_dialog_select, {
36512
36431
  key: 11,
36513
- disabled: !column.tooltip,
36514
- content: column.tooltip,
36515
- "max-width": "200"
36516
- }, {
36517
- default: withCtx(() => [
36518
- createVNode$1(_component_dialog_select, {
36519
- "model-value": _ctx.parseData($data.data, column.code),
36520
- "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36521
- multi: true,
36522
- readonly: $props.readonly || column.isReadonly,
36523
- source: column.source,
36524
- "source-data-code": column.sourceDataCode,
36525
- "source-display-code": column.sourceDisplayCode,
36526
- param: _ctx.getParam($data.data, column),
36527
- controlWidth: column.controlWidth,
36528
- onOnChange: (selected) => $options.onSelectDataChange(column, selected)
36529
- }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "source", "source-data-code", "source-display-code", "param", "controlWidth", "onOnChange"])
36530
- ]),
36531
- _: 2
36532
- }, 1032, ["disabled", "content"])) : column.controlType === "SelectWithOther" ? (openBlock(), createBlock(_component_Tooltip, {
36533
- key: 12,
36534
- disabled: !column.tooltip,
36535
- content: column.tooltip,
36536
- "max-width": "200"
36537
- }, {
36538
- default: withCtx(() => [
36539
- createVNode$1(_component_Select, {
36540
- "model-value": $options.parseDataWithOther($data.data, column),
36541
- "onUpdate:modelValue": ($event) => $options.setDataWithOther($data.data, column.code, $event),
36542
- disabled: $props.readonly || column.isReadonly,
36543
- clearable: true,
36544
- style: normalizeStyle$1({ width: column.controlWidth == null ? "40%" : column.controlWidth + "px" }),
36545
- placeholder: column.description,
36546
- transfer: true,
36547
- onOnChange: (selected) => $options.onSelectDataChange(column, selected)
36548
- }, {
36549
- default: withCtx(() => [
36550
- (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($data.data, column), (item) => {
36551
- return openBlock(), createBlock(_component_Option, {
36552
- key: item.id,
36553
- value: item.id
36554
- }, {
36555
- default: withCtx(() => [
36556
- createTextVNode(toDisplayString$1(item.name), 1)
36557
- ]),
36558
- _: 2
36559
- }, 1032, ["value"]);
36560
- }), 128)),
36561
- createVNode$1(_component_Option, {
36562
- key: "__Other",
36563
- value: "__Other"
36432
+ "model-value": _ctx.parseData($data.data, column.code),
36433
+ "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36434
+ multi: true,
36435
+ readonly: $props.readonly || column.isReadonly,
36436
+ source: column.source,
36437
+ "source-data-code": column.sourceDataCode,
36438
+ "source-display-code": column.sourceDisplayCode,
36439
+ param: _ctx.getParam($data.data, column),
36440
+ controlWidth: column.controlWidth,
36441
+ onOnChange: (selected) => $options.onSelectDataChange(column, selected)
36442
+ }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "source", "source-data-code", "source-display-code", "param", "controlWidth", "onOnChange"])) : column.controlType === "SelectWithOther" ? (openBlock(), createElementBlock(Fragment, { key: 12 }, [
36443
+ createVNode$1(_component_Select, {
36444
+ "model-value": $options.parseDataWithOther($data.data, column),
36445
+ "onUpdate:modelValue": ($event) => $options.setDataWithOther($data.data, column.code, $event),
36446
+ disabled: $props.readonly || column.isReadonly,
36447
+ clearable: true,
36448
+ style: normalizeStyle$1({ width: column.controlWidth == null ? "40%" : column.controlWidth + "px" }),
36449
+ placeholder: column.description,
36450
+ transfer: true,
36451
+ onOnChange: (selected) => $options.onSelectDataChange(column, selected)
36452
+ }, {
36453
+ default: withCtx(() => [
36454
+ (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($data.data, column), (item) => {
36455
+ return openBlock(), createBlock(_component_Option, {
36456
+ key: item.id,
36457
+ value: item.id
36564
36458
  }, {
36565
36459
  default: withCtx(() => [
36566
- createTextVNode(toDisplayString$1(!!(column.pattern || "").trim() ? column.pattern : _ctx.$t("Front_Label_Others")), 1)
36460
+ createTextVNode(toDisplayString$1(item.name), 1)
36567
36461
  ]),
36568
36462
  _: 2
36569
- }, 1024)
36570
- ]),
36571
- _: 2
36572
- }, 1032, ["model-value", "onUpdate:modelValue", "disabled", "style", "placeholder", "onOnChange"]),
36573
- withDirectives(createVNode$1(_component_Input, {
36574
- type: "text",
36575
- "model-value": _ctx.parseData($data.data, column.code),
36576
- "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36577
- readonly: $props.readonly || column.isReadonly,
36578
- style: normalizeStyle$1([{ width: column.controlWidth == null ? "40%" : column.controlWidth + "px" }, { "margin-left": "4px" }]),
36579
- maxlength: column.maxLength,
36580
- placeholder: column.description,
36581
- onOnChange: (selected) => $options.onDataChange(column, selected),
36582
- onOnBlur: ($event) => $options.onBlur(column)
36583
- }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "style", "maxlength", "placeholder", "onOnChange", "onOnBlur"]), [
36584
- [vShow, $options.parseDataWithOther($data.data, column) == "__Other"]
36585
- ])
36586
- ]),
36587
- _: 2
36588
- }, 1032, ["disabled", "content"])) : column.controlType === "Date" || column.controlType === "DateTime" || column.controlType === "Year" || column.controlType === "Month" ? (openBlock(), createBlock(_component_Tooltip, {
36463
+ }, 1032, ["value"]);
36464
+ }), 128)),
36465
+ createVNode$1(_component_Option, {
36466
+ key: "__Other",
36467
+ value: "__Other"
36468
+ }, {
36469
+ default: withCtx(() => [
36470
+ createTextVNode(toDisplayString$1(!!(column.pattern || "").trim() ? column.pattern : _ctx.$t("Front_Label_Others")), 1)
36471
+ ]),
36472
+ _: 2
36473
+ }, 1024)
36474
+ ]),
36475
+ _: 2
36476
+ }, 1032, ["model-value", "onUpdate:modelValue", "disabled", "style", "placeholder", "onOnChange"]),
36477
+ withDirectives(createVNode$1(_component_Input, {
36478
+ type: "text",
36479
+ "model-value": _ctx.parseData($data.data, column.code),
36480
+ "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36481
+ readonly: $props.readonly || column.isReadonly,
36482
+ style: normalizeStyle$1([{ width: column.controlWidth == null ? "40%" : column.controlWidth + "px" }, { "margin-left": "4px" }]),
36483
+ maxlength: column.maxLength,
36484
+ placeholder: column.description,
36485
+ onOnChange: (selected) => $options.onDataChange(column, selected),
36486
+ onOnBlur: ($event) => $options.onBlur(column)
36487
+ }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "style", "maxlength", "placeholder", "onOnChange", "onOnBlur"]), [
36488
+ [vShow, $options.parseDataWithOther($data.data, column) == "__Other"]
36489
+ ])
36490
+ ], 64)) : column.controlType === "Date" || column.controlType === "DateTime" || column.controlType === "Year" || column.controlType === "Month" ? (openBlock(), createBlock(_component_DatePicker, {
36589
36491
  key: 13,
36590
- disabled: !column.tooltip,
36591
- content: column.tooltip,
36592
- "max-width": "200"
36593
- }, {
36594
- default: withCtx(() => [
36595
- createVNode$1(_component_DatePicker, {
36596
- type: column.controlType.toLowerCase(),
36597
- "model-value": _ctx.parseDateTimeData($data.data, column.code),
36598
- readonly: $props.readonly || column.isReadonly,
36599
- placeholder: column.description,
36600
- transfer: true,
36601
- style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
36602
- onOnChange: (time2) => {
36603
- _ctx.setData($data.data, column.code, time2);
36604
- $options.onDataChange(column);
36605
- }
36606
- }, null, 8, ["type", "model-value", "readonly", "placeholder", "style", "onOnChange"])
36607
- ]),
36608
- _: 2
36609
- }, 1032, ["disabled", "content"])) : column.controlType === "DateRange" ? (openBlock(), createBlock(_component_Tooltip, {
36492
+ type: column.controlType.toLowerCase(),
36493
+ "model-value": _ctx.parseDateTimeData($data.data, column.code),
36494
+ readonly: $props.readonly || column.isReadonly,
36495
+ placeholder: column.description,
36496
+ transfer: true,
36497
+ style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
36498
+ onOnChange: (time2) => {
36499
+ _ctx.setData($data.data, column.code, time2);
36500
+ $options.onDataChange(column);
36501
+ }
36502
+ }, null, 8, ["type", "model-value", "readonly", "placeholder", "style", "onOnChange"])) : column.controlType === "DateRange" ? (openBlock(), createBlock(_component_DatePicker, {
36610
36503
  key: 14,
36611
- disabled: !column.tooltip,
36612
- content: column.tooltip,
36613
- "max-width": "200"
36614
- }, {
36615
- default: withCtx(() => [
36616
- createVNode$1(_component_DatePicker, {
36617
- type: column.controlType.toLowerCase(),
36618
- "model-value": _ctx.parseDateRangeData($data.data, column.code),
36619
- "onUpdate:modelValue": ($event) => _ctx.setArrayData($data.data, column.code, $event),
36620
- readonly: $props.readonly || column.isReadonly,
36621
- placeholder: column.description,
36622
- transfer: true,
36623
- style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
36624
- onOnChange: ($event) => $options.onDataChange(column)
36625
- }, null, 8, ["type", "model-value", "onUpdate:modelValue", "readonly", "placeholder", "style", "onOnChange"])
36626
- ]),
36627
- _: 2
36628
- }, 1032, ["disabled", "content"])) : column.controlType === "Time" ? (openBlock(), createBlock(_component_Tooltip, {
36504
+ type: column.controlType.toLowerCase(),
36505
+ "model-value": _ctx.parseDateRangeData($data.data, column.code),
36506
+ "onUpdate:modelValue": ($event) => _ctx.setArrayData($data.data, column.code, $event),
36507
+ readonly: $props.readonly || column.isReadonly,
36508
+ placeholder: column.description,
36509
+ transfer: true,
36510
+ style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
36511
+ onOnChange: ($event) => $options.onDataChange(column)
36512
+ }, null, 8, ["type", "model-value", "onUpdate:modelValue", "readonly", "placeholder", "style", "onOnChange"])) : column.controlType === "Time" ? (openBlock(), createBlock(_component_TimePicker, {
36629
36513
  key: 15,
36630
- disabled: !column.tooltip,
36631
- content: column.tooltip,
36632
- "max-width": "200"
36633
- }, {
36634
- default: withCtx(() => [
36635
- createVNode$1(_component_TimePicker, {
36636
- type: "time",
36637
- "model-value": _ctx.parseData($data.data, column.code),
36638
- readonly: $props.readonly || column.isReadonly,
36639
- placeholder: column.description,
36640
- transfer: true,
36641
- style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
36642
- onOnChange: (time2) => {
36643
- _ctx.setData($data.data, column.code, time2);
36644
- $options.onDataChange(column);
36645
- }
36646
- }, null, 8, ["model-value", "readonly", "placeholder", "style", "onOnChange"])
36647
- ]),
36648
- _: 2
36649
- }, 1032, ["disabled", "content"])) : column.controlType === "Check" ? (openBlock(), createBlock(_component_Tooltip, {
36514
+ type: "time",
36515
+ "model-value": _ctx.parseData($data.data, column.code),
36516
+ readonly: $props.readonly || column.isReadonly,
36517
+ placeholder: column.description,
36518
+ transfer: true,
36519
+ style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
36520
+ onOnChange: (time2) => {
36521
+ _ctx.setData($data.data, column.code, time2);
36522
+ $options.onDataChange(column);
36523
+ }
36524
+ }, null, 8, ["model-value", "readonly", "placeholder", "style", "onOnChange"])) : column.controlType === "Check" ? (openBlock(), createBlock(_component_Checkbox, {
36650
36525
  key: 16,
36651
- disabled: !column.tooltip,
36652
- content: column.tooltip,
36653
- "max-width": "200"
36654
- }, {
36655
- default: withCtx(() => [
36656
- createVNode$1(_component_Checkbox, {
36657
- "model-value": !!_ctx.parseData($data.data, column.code),
36658
- "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36659
- disabled: $props.readonly || column.isReadonly,
36660
- size: "large",
36661
- onOnChange: ($event) => $options.onDataChange(column)
36662
- }, null, 8, ["model-value", "onUpdate:modelValue", "disabled", "onOnChange"])
36663
- ]),
36664
- _: 2
36665
- }, 1032, ["disabled", "content"])) : column.controlType === "Switch" ? (openBlock(), createBlock(_component_Tooltip, {
36526
+ "model-value": !!_ctx.parseData($data.data, column.code),
36527
+ "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36528
+ disabled: $props.readonly || column.isReadonly,
36529
+ size: "large",
36530
+ onOnChange: ($event) => $options.onDataChange(column)
36531
+ }, null, 8, ["model-value", "onUpdate:modelValue", "disabled", "onOnChange"])) : column.controlType === "Switch" ? (openBlock(), createBlock(_component_Switch, {
36666
36532
  key: 17,
36667
- disabled: !column.tooltip,
36668
- content: column.tooltip,
36669
- "max-width": "200"
36670
- }, {
36671
- default: withCtx(() => [
36672
- createVNode$1(_component_Switch, {
36673
- "model-value": !!_ctx.parseData($data.data, column.code),
36674
- "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36675
- disabled: $props.readonly || column.isReadonly,
36676
- onOnChange: ($event) => $options.onDataChange(column)
36677
- }, null, 8, ["model-value", "onUpdate:modelValue", "disabled", "onOnChange"])
36678
- ]),
36679
- _: 2
36680
- }, 1032, ["disabled", "content"])) : column.controlType === "Radio" ? (openBlock(), createBlock(_component_Tooltip, {
36533
+ "model-value": !!_ctx.parseData($data.data, column.code),
36534
+ "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36535
+ disabled: $props.readonly || column.isReadonly,
36536
+ onOnChange: ($event) => $options.onDataChange(column)
36537
+ }, null, 8, ["model-value", "onUpdate:modelValue", "disabled", "onOnChange"])) : column.controlType === "Radio" ? (openBlock(), createBlock(_component_RadioGroup, {
36681
36538
  key: 18,
36682
- disabled: !column.tooltip,
36683
- content: column.tooltip,
36684
- "max-width": "200"
36685
- }, {
36686
- default: withCtx(() => [
36687
- createVNode$1(_component_RadioGroup, {
36688
- "model-value": _ctx.parseData($data.data, column.code),
36689
- "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36690
- onOnChange: (selected) => $options.onSelectDataChange(column, selected)
36691
- }, {
36692
- default: withCtx(() => [
36693
- (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($data.data, column), (item) => {
36694
- return openBlock(), createBlock(_component_Radio, {
36695
- key: item.id,
36696
- label: item.id,
36697
- disabled: $props.readonly || column.isReadonly
36698
- }, {
36699
- default: withCtx(() => [
36700
- createElementVNode("span", null, toDisplayString$1(item.name), 1)
36701
- ]),
36702
- _: 2
36703
- }, 1032, ["label", "disabled"]);
36704
- }), 128))
36705
- ]),
36706
- _: 2
36707
- }, 1032, ["model-value", "onUpdate:modelValue", "onOnChange"])
36708
- ]),
36709
- _: 2
36710
- }, 1032, ["disabled", "content"])) : column.controlType === "CheckGroup" ? (openBlock(), createBlock(_component_Tooltip, {
36711
- key: 19,
36712
- disabled: !column.tooltip,
36713
- content: column.tooltip,
36714
- "max-width": "200"
36539
+ "model-value": _ctx.parseData($data.data, column.code),
36540
+ "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36541
+ onOnChange: (selected) => $options.onSelectDataChange(column, selected)
36715
36542
  }, {
36716
36543
  default: withCtx(() => [
36717
- createCommentVNode(' <CheckboxGroup\r\n :model-value="parseArrayData(data, column.code)"\r\n @update:model-value="$event => setArrayData(data, column.code, $event)"\r\n @on-change="selected => onSelectDataChange(column, selected)"\r\n >\r\n <Checkbox v-for="item in getDataSource(data, column)" :key="item.id" :label="item.name" :disabled="readonly || column.isReadonly">\r\n <span>{{ item.name }}</span>\r\n </Checkbox>\r\n </CheckboxGroup> '),
36718
- createVNode$1(_component_check_group, {
36719
- "model-value": _ctx.parseData($data.data, column.code),
36720
- "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36721
- dataSource: $options.getDataSource($data.data, column),
36722
- "value-key": "id",
36723
- "label-key": "name",
36724
- readonly: $props.readonly || column.isReadonly,
36725
- onOnChange: () => $options.onSelectDataChange(column)
36726
- }, null, 8, ["model-value", "onUpdate:modelValue", "dataSource", "readonly", "onOnChange"])
36544
+ (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($data.data, column), (item) => {
36545
+ return openBlock(), createBlock(_component_Radio, {
36546
+ key: item.id,
36547
+ label: item.id,
36548
+ disabled: $props.readonly || column.isReadonly
36549
+ }, {
36550
+ default: withCtx(() => [
36551
+ createElementVNode("span", null, toDisplayString$1(item.name), 1)
36552
+ ]),
36553
+ _: 2
36554
+ }, 1032, ["label", "disabled"]);
36555
+ }), 128))
36727
36556
  ]),
36728
36557
  _: 2
36729
- }, 1032, ["disabled", "content"])) : column.controlType === "TextArea" ? (openBlock(), createBlock(_component_Tooltip, {
36558
+ }, 1032, ["model-value", "onUpdate:modelValue", "onOnChange"])) : column.controlType === "CheckGroup" ? (openBlock(), createElementBlock(Fragment, { key: 19 }, [
36559
+ createCommentVNode(' <CheckboxGroup\r\n :model-value="parseArrayData(data, column.code)"\r\n @update:model-value="$event => setArrayData(data, column.code, $event)"\r\n @on-change="selected => onSelectDataChange(column, selected)"\r\n >\r\n <Checkbox v-for="item in getDataSource(data, column)" :key="item.id" :label="item.name" :disabled="readonly || column.isReadonly">\r\n <span>{{ item.name }}</span>\r\n </Checkbox>\r\n </CheckboxGroup> '),
36560
+ createVNode$1(_component_check_group, {
36561
+ "model-value": _ctx.parseData($data.data, column.code),
36562
+ "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36563
+ dataSource: $options.getDataSource($data.data, column),
36564
+ "value-key": "id",
36565
+ "label-key": "name",
36566
+ readonly: $props.readonly || column.isReadonly,
36567
+ onOnChange: () => $options.onSelectDataChange(column)
36568
+ }, null, 8, ["model-value", "onUpdate:modelValue", "dataSource", "readonly", "onOnChange"])
36569
+ ], 64)) : column.controlType === "TextArea" ? (openBlock(), createBlock(_component_Input, {
36730
36570
  key: 20,
36731
- disabled: !column.tooltip,
36732
- content: column.tooltip,
36733
- "max-width": "200"
36734
- }, {
36735
- default: withCtx(() => [
36736
- createVNode$1(_component_Input, {
36737
- type: "textarea",
36738
- "model-value": _ctx.parseData($data.data, column.code),
36739
- "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36740
- readonly: $props.readonly || column.isReadonly,
36741
- style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
36742
- rows: column.controlHeight / 20,
36743
- maxlength: column.maxLength,
36744
- placeholder: column.description
36745
- }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "style", "rows", "maxlength", "placeholder"])
36746
- ]),
36747
- _: 2
36748
- }, 1032, ["disabled", "content"])) : column.controlType === "RichEditor" ? (openBlock(), createBlock(_component_rich_editor, {
36571
+ type: "textarea",
36572
+ "model-value": _ctx.parseData($data.data, column.code),
36573
+ "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36574
+ readonly: $props.readonly || column.isReadonly,
36575
+ style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
36576
+ rows: column.controlHeight / 20,
36577
+ maxlength: column.maxLength,
36578
+ placeholder: column.description
36579
+ }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "style", "rows", "maxlength", "placeholder"])) : column.controlType === "RichEditor" ? (openBlock(), createBlock(_component_rich_editor, {
36749
36580
  key: 21,
36750
36581
  "model-value": _ctx.parseData($data.data, column.code),
36751
36582
  "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
@@ -36782,34 +36613,34 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
36782
36613
  maxCount: column.maxLength,
36783
36614
  height: column.controlHeight,
36784
36615
  width: column.controlWidth
36785
- }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "maxCount", "height", "width"])) : column.controlType === "Slider" ? (openBlock(), createBlock(_component_Tooltip, {
36786
- key: 24,
36787
- disabled: !column.tooltip,
36788
- content: column.tooltip,
36789
- "max-width": "200"
36790
- }, {
36791
- default: withCtx(() => [
36792
- !$props.readonly && !column.isReadonly ? (openBlock(), createBlock(_component_Slider, {
36793
- key: 0,
36794
- "model-value": _ctx.parseData($data.data, column.code),
36795
- "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36796
- "show-input": "",
36797
- style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
36798
- max: column.maxValue,
36799
- min: column.minValue
36800
- }, null, 8, ["model-value", "onUpdate:modelValue", "style", "max", "min"])) : createCommentVNode("v-if", true),
36801
- $props.readonly || column.isReadonly ? (openBlock(), createBlock(_component_Input, {
36802
- key: 1,
36803
- type: "number",
36804
- number: "",
36805
- readonly: "",
36806
- "model-value": _ctx.parseData($data.data, column.code),
36807
- style: normalizeStyle$1({ width: column.controlWidth == null ? "100px" : column.controlWidth + "px" }),
36808
- placeholder: column.description
36809
- }, null, 8, ["model-value", "style", "placeholder"])) : createCommentVNode("v-if", true)
36810
- ]),
36811
- _: 2
36812
- }, 1032, ["disabled", "content"])) : createCommentVNode("v-if", true)
36616
+ }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "maxCount", "height", "width"])) : column.controlType === "Slider" ? (openBlock(), createElementBlock(Fragment, { key: 24 }, [
36617
+ !$props.readonly && !column.isReadonly ? (openBlock(), createBlock(_component_Slider, {
36618
+ key: 0,
36619
+ "model-value": _ctx.parseData($data.data, column.code),
36620
+ "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
36621
+ "show-input": "",
36622
+ style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
36623
+ max: column.maxValue,
36624
+ min: column.minValue
36625
+ }, null, 8, ["model-value", "onUpdate:modelValue", "style", "max", "min"])) : createCommentVNode("v-if", true),
36626
+ $props.readonly || column.isReadonly ? (openBlock(), createBlock(_component_Input, {
36627
+ key: 1,
36628
+ type: "number",
36629
+ number: "",
36630
+ readonly: "",
36631
+ "model-value": _ctx.parseData($data.data, column.code),
36632
+ style: normalizeStyle$1({ width: column.controlWidth == null ? "100px" : column.controlWidth + "px" }),
36633
+ placeholder: column.description
36634
+ }, null, 8, ["model-value", "style", "placeholder"])) : createCommentVNode("v-if", true)
36635
+ ], 64)) : createCommentVNode("v-if", true),
36636
+ createVNode$1(_component_Button, {
36637
+ type: "primary",
36638
+ style: { "margin-left": "4px" },
36639
+ size: "small",
36640
+ title: column.tooltip,
36641
+ shape: "circle",
36642
+ icon: "md-help"
36643
+ }, null, 8, ["title"])
36813
36644
  ]),
36814
36645
  _: 2
36815
36646
  }, 1032, ["label", "prop", "rules"])) : createCommentVNode("v-if", true)
@@ -38248,38 +38079,39 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
38248
38079
  ]),
38249
38080
  _: 1
38250
38081
  }, 16)) : createCommentVNode("v-if", true),
38251
- $props.viewType == "FormView" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 32 }, _ctx.grid24)), {
38082
+ createVNode$1(_component_Col, normalizeProps(guardReactiveProps(_ctx.grid24)), {
38252
38083
  default: withCtx(() => [
38253
38084
  createVNode$1(_component_FormItem, {
38254
- label: "\u6587\u5B57\u63D0\u793A",
38255
- key: "tooltip",
38256
- prop: "tooltip"
38085
+ label: "\u8BA1\u7B97\u8868\u8FBE\u5F0F",
38086
+ key: "calculate",
38087
+ prop: "calculate"
38257
38088
  }, {
38258
38089
  default: withCtx(() => [
38259
38090
  createVNode$1(_component_Input, {
38260
38091
  type: "text",
38261
- modelValue: $data.data.tooltip,
38262
- "onUpdate:modelValue": _cache[55] || (_cache[55] = ($event) => $data.data.tooltip = $event),
38263
- maxlength: "100"
38092
+ modelValue: $data.data.calculate,
38093
+ "onUpdate:modelValue": _cache[55] || (_cache[55] = ($event) => $data.data.calculate = $event),
38094
+ maxlength: "500"
38264
38095
  }, null, 8, ["modelValue"])
38265
38096
  ]),
38266
38097
  _: 1
38267
38098
  })
38268
38099
  ]),
38269
38100
  _: 1
38270
- }, 16)) : createCommentVNode("v-if", true),
38271
- createVNode$1(_component_Col, normalizeProps(guardReactiveProps(_ctx.grid24)), {
38101
+ }, 16),
38102
+ $props.viewType == "FormView" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 32 }, _ctx.grid24)), {
38272
38103
  default: withCtx(() => [
38273
38104
  createVNode$1(_component_FormItem, {
38274
- label: "\u8BA1\u7B97\u8868\u8FBE\u5F0F",
38275
- key: "calculate",
38276
- prop: "calculate"
38105
+ label: "\u6587\u5B57\u63D0\u793A",
38106
+ key: "tooltip",
38107
+ prop: "tooltip"
38277
38108
  }, {
38278
38109
  default: withCtx(() => [
38279
38110
  createVNode$1(_component_Input, {
38280
- type: "text",
38281
- modelValue: $data.data.calculate,
38282
- "onUpdate:modelValue": _cache[56] || (_cache[56] = ($event) => $data.data.calculate = $event),
38111
+ type: "textarea",
38112
+ autosize: true,
38113
+ modelValue: $data.data.tooltip,
38114
+ "onUpdate:modelValue": _cache[56] || (_cache[56] = ($event) => $data.data.tooltip = $event),
38283
38115
  maxlength: "500"
38284
38116
  }, null, 8, ["modelValue"])
38285
38117
  ]),
@@ -38287,7 +38119,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
38287
38119
  })
38288
38120
  ]),
38289
38121
  _: 1
38290
- }, 16)
38122
+ }, 16)) : createCommentVNode("v-if", true)
38291
38123
  ]),
38292
38124
  _: 1
38293
38125
  })
@@ -40951,7 +40783,7 @@ const _sfc_main$q = {
40951
40783
  ...mapActions("admin/dataView", { loadDataView: "load" }),
40952
40784
  async init(viewCode, callback, onFail) {
40953
40785
  let view = await this.loadDataView(viewCode);
40954
- if (view == null && viewCode.indexOf("_") >= 0) {
40786
+ if (view && !view.isExist && viewCode.indexOf("_") >= 0) {
40955
40787
  view = await this.loadDataView(viewCode.split("_")[0]);
40956
40788
  }
40957
40789
  if (view == null) {