mooho-base-admin-plus 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package/mooho-base-admin-plus.min.esm.js +307 -474
- package/package/mooho-base-admin-plus.min.js +5 -5
- package/package/style.css +1 -1
- package/package.json +1 -1
- package/src/components/view/column-edit.vue +5 -5
- package/src/components/view/view-form.vue +239 -278
- package/src/styles/css/default.css +2 -2
|
@@ -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
|
|
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
|
-
|
|
36262
|
-
|
|
36263
|
-
|
|
36264
|
-
|
|
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(
|
|
36274
|
+
], 8, _hoisted_7$6)) : column.controlType === "TextInput" ? (openBlock(), createBlock(_component_Input, {
|
|
36284
36275
|
key: 3,
|
|
36285
|
-
|
|
36286
|
-
|
|
36287
|
-
"
|
|
36288
|
-
|
|
36289
|
-
|
|
36290
|
-
|
|
36291
|
-
|
|
36292
|
-
|
|
36293
|
-
|
|
36294
|
-
|
|
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
|
-
|
|
36306
|
-
|
|
36307
|
-
"
|
|
36308
|
-
|
|
36309
|
-
|
|
36310
|
-
|
|
36311
|
-
|
|
36312
|
-
|
|
36313
|
-
|
|
36314
|
-
|
|
36315
|
-
|
|
36316
|
-
|
|
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
|
-
|
|
36328
|
-
|
|
36329
|
-
|
|
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
|
-
|
|
36333
|
-
|
|
36334
|
-
|
|
36335
|
-
|
|
36336
|
-
|
|
36337
|
-
|
|
36338
|
-
|
|
36339
|
-
|
|
36340
|
-
|
|
36341
|
-
|
|
36342
|
-
|
|
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", "
|
|
36326
|
+
}, 1032, ["model-value", "onUpdate:modelValue", "disabled", "style", "placeholder", "onOnChange"])) : column.controlType === "MultiSelect" ? (openBlock(), createBlock(_component_Select, {
|
|
36363
36327
|
key: 6,
|
|
36364
|
-
|
|
36365
|
-
|
|
36366
|
-
|
|
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
|
-
|
|
36370
|
-
|
|
36371
|
-
|
|
36372
|
-
|
|
36373
|
-
|
|
36374
|
-
|
|
36375
|
-
|
|
36376
|
-
|
|
36377
|
-
|
|
36378
|
-
|
|
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", "
|
|
36352
|
+
}, 1032, ["model-value", "onUpdate:modelValue", "disabled", "style", "placeholder", "onOnChange"])) : column.controlType === "TreeSelect" ? (openBlock(), createBlock(_component_TreeSelect, {
|
|
36398
36353
|
key: 7,
|
|
36399
|
-
|
|
36400
|
-
|
|
36401
|
-
|
|
36402
|
-
|
|
36403
|
-
|
|
36404
|
-
|
|
36405
|
-
|
|
36406
|
-
|
|
36407
|
-
|
|
36408
|
-
|
|
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
|
-
|
|
36420
|
-
|
|
36421
|
-
|
|
36422
|
-
|
|
36423
|
-
|
|
36424
|
-
|
|
36425
|
-
|
|
36426
|
-
|
|
36427
|
-
|
|
36428
|
-
|
|
36429
|
-
|
|
36430
|
-
|
|
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(
|
|
36457
|
-
|
|
36458
|
-
|
|
36459
|
-
|
|
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
|
-
|
|
36463
|
-
|
|
36464
|
-
|
|
36465
|
-
|
|
36466
|
-
|
|
36467
|
-
|
|
36468
|
-
|
|
36469
|
-
|
|
36470
|
-
|
|
36471
|
-
|
|
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", "
|
|
36491
|
-
], 64)) : column.controlType === "DialogSelect" ? (openBlock(), createBlock(
|
|
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
|
-
|
|
36494
|
-
|
|
36495
|
-
|
|
36496
|
-
|
|
36497
|
-
|
|
36498
|
-
|
|
36499
|
-
|
|
36500
|
-
|
|
36501
|
-
|
|
36502
|
-
|
|
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
|
-
|
|
36514
|
-
|
|
36515
|
-
|
|
36516
|
-
|
|
36517
|
-
|
|
36518
|
-
|
|
36519
|
-
|
|
36520
|
-
|
|
36521
|
-
|
|
36522
|
-
|
|
36523
|
-
|
|
36524
|
-
|
|
36525
|
-
|
|
36526
|
-
|
|
36527
|
-
|
|
36528
|
-
|
|
36529
|
-
|
|
36530
|
-
|
|
36531
|
-
|
|
36532
|
-
|
|
36533
|
-
|
|
36534
|
-
|
|
36535
|
-
|
|
36536
|
-
|
|
36537
|
-
|
|
36538
|
-
|
|
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(
|
|
36460
|
+
createTextVNode(toDisplayString$1(item.name), 1)
|
|
36567
36461
|
]),
|
|
36568
36462
|
_: 2
|
|
36569
|
-
},
|
|
36570
|
-
|
|
36571
|
-
|
|
36572
|
-
|
|
36573
|
-
|
|
36574
|
-
|
|
36575
|
-
|
|
36576
|
-
|
|
36577
|
-
|
|
36578
|
-
|
|
36579
|
-
|
|
36580
|
-
|
|
36581
|
-
|
|
36582
|
-
|
|
36583
|
-
|
|
36584
|
-
|
|
36585
|
-
|
|
36586
|
-
|
|
36587
|
-
|
|
36588
|
-
|
|
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
|
-
|
|
36591
|
-
|
|
36592
|
-
|
|
36593
|
-
|
|
36594
|
-
|
|
36595
|
-
|
|
36596
|
-
|
|
36597
|
-
|
|
36598
|
-
|
|
36599
|
-
|
|
36600
|
-
|
|
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
|
-
|
|
36612
|
-
|
|
36613
|
-
"
|
|
36614
|
-
|
|
36615
|
-
|
|
36616
|
-
|
|
36617
|
-
|
|
36618
|
-
|
|
36619
|
-
|
|
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
|
-
|
|
36631
|
-
|
|
36632
|
-
|
|
36633
|
-
|
|
36634
|
-
|
|
36635
|
-
|
|
36636
|
-
|
|
36637
|
-
|
|
36638
|
-
|
|
36639
|
-
|
|
36640
|
-
|
|
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
|
-
|
|
36652
|
-
|
|
36653
|
-
|
|
36654
|
-
|
|
36655
|
-
|
|
36656
|
-
|
|
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
|
-
|
|
36668
|
-
|
|
36669
|
-
|
|
36670
|
-
|
|
36671
|
-
|
|
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
|
-
|
|
36683
|
-
|
|
36684
|
-
|
|
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
|
-
|
|
36718
|
-
|
|
36719
|
-
|
|
36720
|
-
|
|
36721
|
-
|
|
36722
|
-
|
|
36723
|
-
|
|
36724
|
-
|
|
36725
|
-
|
|
36726
|
-
|
|
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, ["
|
|
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
|
-
|
|
36732
|
-
|
|
36733
|
-
"
|
|
36734
|
-
|
|
36735
|
-
|
|
36736
|
-
|
|
36737
|
-
|
|
36738
|
-
|
|
36739
|
-
|
|
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,35 @@ 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(),
|
|
36786
|
-
|
|
36787
|
-
|
|
36788
|
-
|
|
36789
|
-
|
|
36790
|
-
|
|
36791
|
-
|
|
36792
|
-
|
|
36793
|
-
|
|
36794
|
-
|
|
36795
|
-
|
|
36796
|
-
|
|
36797
|
-
|
|
36798
|
-
|
|
36799
|
-
|
|
36800
|
-
|
|
36801
|
-
$
|
|
36802
|
-
|
|
36803
|
-
|
|
36804
|
-
|
|
36805
|
-
|
|
36806
|
-
|
|
36807
|
-
|
|
36808
|
-
|
|
36809
|
-
|
|
36810
|
-
|
|
36811
|
-
|
|
36812
|
-
|
|
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
|
+
!!(column.tooltip || "").trim() ? (openBlock(), createBlock(_component_Button, {
|
|
36637
|
+
key: 25,
|
|
36638
|
+
type: "primary",
|
|
36639
|
+
style: { "margin-left": "4px" },
|
|
36640
|
+
size: "small",
|
|
36641
|
+
title: column.tooltip,
|
|
36642
|
+
shape: "circle",
|
|
36643
|
+
icon: "md-help"
|
|
36644
|
+
}, null, 8, ["title"])) : createCommentVNode("v-if", true)
|
|
36813
36645
|
]),
|
|
36814
36646
|
_: 2
|
|
36815
36647
|
}, 1032, ["label", "prop", "rules"])) : createCommentVNode("v-if", true)
|
|
@@ -38248,38 +38080,39 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38248
38080
|
]),
|
|
38249
38081
|
_: 1
|
|
38250
38082
|
}, 16)) : createCommentVNode("v-if", true),
|
|
38251
|
-
$
|
|
38083
|
+
createVNode$1(_component_Col, normalizeProps(guardReactiveProps(_ctx.grid24)), {
|
|
38252
38084
|
default: withCtx(() => [
|
|
38253
38085
|
createVNode$1(_component_FormItem, {
|
|
38254
|
-
label: "\
|
|
38255
|
-
key: "
|
|
38256
|
-
prop: "
|
|
38086
|
+
label: "\u8BA1\u7B97\u8868\u8FBE\u5F0F",
|
|
38087
|
+
key: "calculate",
|
|
38088
|
+
prop: "calculate"
|
|
38257
38089
|
}, {
|
|
38258
38090
|
default: withCtx(() => [
|
|
38259
38091
|
createVNode$1(_component_Input, {
|
|
38260
38092
|
type: "text",
|
|
38261
|
-
modelValue: $data.data.
|
|
38262
|
-
"onUpdate:modelValue": _cache[55] || (_cache[55] = ($event) => $data.data.
|
|
38263
|
-
maxlength: "
|
|
38093
|
+
modelValue: $data.data.calculate,
|
|
38094
|
+
"onUpdate:modelValue": _cache[55] || (_cache[55] = ($event) => $data.data.calculate = $event),
|
|
38095
|
+
maxlength: "500"
|
|
38264
38096
|
}, null, 8, ["modelValue"])
|
|
38265
38097
|
]),
|
|
38266
38098
|
_: 1
|
|
38267
38099
|
})
|
|
38268
38100
|
]),
|
|
38269
38101
|
_: 1
|
|
38270
|
-
}, 16)
|
|
38271
|
-
|
|
38102
|
+
}, 16),
|
|
38103
|
+
$props.viewType == "FormView" ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 32 }, _ctx.grid24)), {
|
|
38272
38104
|
default: withCtx(() => [
|
|
38273
38105
|
createVNode$1(_component_FormItem, {
|
|
38274
|
-
label: "\
|
|
38275
|
-
key: "
|
|
38276
|
-
prop: "
|
|
38106
|
+
label: "\u6587\u5B57\u63D0\u793A",
|
|
38107
|
+
key: "tooltip",
|
|
38108
|
+
prop: "tooltip"
|
|
38277
38109
|
}, {
|
|
38278
38110
|
default: withCtx(() => [
|
|
38279
38111
|
createVNode$1(_component_Input, {
|
|
38280
|
-
type: "
|
|
38281
|
-
|
|
38282
|
-
|
|
38112
|
+
type: "textarea",
|
|
38113
|
+
autosize: true,
|
|
38114
|
+
modelValue: $data.data.tooltip,
|
|
38115
|
+
"onUpdate:modelValue": _cache[56] || (_cache[56] = ($event) => $data.data.tooltip = $event),
|
|
38283
38116
|
maxlength: "500"
|
|
38284
38117
|
}, null, 8, ["modelValue"])
|
|
38285
38118
|
]),
|
|
@@ -38287,7 +38120,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38287
38120
|
})
|
|
38288
38121
|
]),
|
|
38289
38122
|
_: 1
|
|
38290
|
-
}, 16)
|
|
38123
|
+
}, 16)) : createCommentVNode("v-if", true)
|
|
38291
38124
|
]),
|
|
38292
38125
|
_: 1
|
|
38293
38126
|
})
|