@airpower/web 0.3.6 → 0.3.8
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/dist/main.js +289 -291
- package/dist/web.css +6 -6
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -1329,7 +1329,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1329
1329
|
key: 0,
|
|
1330
1330
|
disabled: isDisabled.value,
|
|
1331
1331
|
type: __props.danger ? "danger" : __props.warning ? "warning" : __props.primary ? "primary" : __props.success ? "success" : "default",
|
|
1332
|
-
underline:
|
|
1332
|
+
underline: "never"
|
|
1333
1333
|
}, _ctx.$attrs, toHandlers(_ctx.$attrs)), {
|
|
1334
1334
|
default: withCtx(() => [
|
|
1335
1335
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -2388,7 +2388,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
2388
2388
|
return (_ctx, _cache) => {
|
|
2389
2389
|
const _component_ElLink = resolveComponent("ElLink");
|
|
2390
2390
|
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
2391
|
-
createVNode(_component_ElLink, mergeProps({ underline:
|
|
2391
|
+
createVNode(_component_ElLink, mergeProps({ underline: "never" }, _ctx.$attrs, { onClick: copy }, toHandlers(_ctx.$attrs)), {
|
|
2392
2392
|
default: withCtx(() => [
|
|
2393
2393
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2394
2394
|
createTextVNode(toDisplayString(__props.content || "-"), 1)
|
|
@@ -2407,7 +2407,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
2407
2407
|
}
|
|
2408
2408
|
return target;
|
|
2409
2409
|
};
|
|
2410
|
-
const ACopy = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
2410
|
+
const ACopy = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-04d85a67"]]);
|
|
2411
2411
|
var cryptoJs$1 = { exports: {} };
|
|
2412
2412
|
function commonjsRequire(path) {
|
|
2413
2413
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -9775,7 +9775,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
9775
9775
|
return (_ctx, _cache) => {
|
|
9776
9776
|
const _component_ElLink = resolveComponent("ElLink");
|
|
9777
9777
|
return openBlock(), createBlock(_component_ElLink, {
|
|
9778
|
-
underline:
|
|
9778
|
+
underline: "never",
|
|
9779
9779
|
onClick: _cache[0] || (_cache[0] = ($event) => friendly.value = !friendly.value)
|
|
9780
9780
|
}, {
|
|
9781
9781
|
default: withCtx(() => [
|
|
@@ -9786,7 +9786,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
9786
9786
|
};
|
|
9787
9787
|
}
|
|
9788
9788
|
});
|
|
9789
|
-
const ADateTime = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-
|
|
9789
|
+
const ADateTime = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-b753fbea"]]);
|
|
9790
9790
|
const _hoisted_1$h = { class: "a-desensitize" };
|
|
9791
9791
|
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
9792
9792
|
__name: "Desensitize",
|
|
@@ -15528,8 +15528,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
15528
15528
|
});
|
|
15529
15529
|
return (_ctx, _cache) => {
|
|
15530
15530
|
return openBlock(), createBlock(unref(ElLink), {
|
|
15531
|
-
underline: false,
|
|
15532
15531
|
class: "a-payload",
|
|
15532
|
+
underline: "never",
|
|
15533
15533
|
onClick: _cache[0] || (_cache[0] = ($event) => show())
|
|
15534
15534
|
}, {
|
|
15535
15535
|
default: withCtx(() => [
|
|
@@ -15540,7 +15540,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
15540
15540
|
};
|
|
15541
15541
|
}
|
|
15542
15542
|
});
|
|
15543
|
-
const APayload = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
15543
|
+
const APayload = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-0c60ad91"]]);
|
|
15544
15544
|
const _hoisted_1$6 = { class: "a-phone-call__content" };
|
|
15545
15545
|
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
15546
15546
|
__name: "Call",
|
|
@@ -17142,7 +17142,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
17142
17142
|
fn: withCtx(({ data }) => [
|
|
17143
17143
|
createVNode(_component_ElLink, {
|
|
17144
17144
|
disabled: data.isDisabled,
|
|
17145
|
-
underline:
|
|
17145
|
+
underline: "never",
|
|
17146
17146
|
onClick: ($event) => props.props.onConfirm(data)
|
|
17147
17147
|
}, {
|
|
17148
17148
|
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
@@ -18267,317 +18267,315 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18267
18267
|
}
|
|
18268
18268
|
return (_ctx, _cache) => {
|
|
18269
18269
|
const _directive_loading = resolveDirective("loading");
|
|
18270
|
-
return openBlock(), createElementBlock(
|
|
18271
|
-
|
|
18272
|
-
|
|
18273
|
-
|
|
18274
|
-
|
|
18275
|
-
createElementVNode("div",
|
|
18276
|
-
|
|
18277
|
-
renderSlot(_ctx.$slots, "
|
|
18278
|
-
|
|
18279
|
-
|
|
18280
|
-
!__props.hideAdd ? (openBlock(), createBlock(unref(_sfc_main$v), {
|
|
18281
|
-
key: 0,
|
|
18282
|
-
permission: __props.addPermission || unref(PermissionUtil).get(unref(EntityClass), unref(PermissionAction).ADD),
|
|
18283
|
-
icon: "ADD",
|
|
18284
|
-
primary: "",
|
|
18285
|
-
onClick: _cache[0] || (_cache[0] = ($event) => handleAdd())
|
|
18286
|
-
}, {
|
|
18287
|
-
default: withCtx(() => [
|
|
18288
|
-
createTextVNode(toDisplayString(unref(modelConfig).addTitle || unref(WebI18n).get().Add), 1)
|
|
18289
|
-
]),
|
|
18290
|
-
_: 1
|
|
18291
|
-
}, 8, ["permission"])) : createCommentVNode("", true)
|
|
18292
|
-
]),
|
|
18293
|
-
__props.showImport ? (openBlock(), createBlock(unref(_sfc_main$v), {
|
|
18270
|
+
return openBlock(), createElementBlock("div", {
|
|
18271
|
+
style: normalizeStyle({ height: __props.autoHeight ? "auto" : "0px" }),
|
|
18272
|
+
class: "a-table-container"
|
|
18273
|
+
}, [
|
|
18274
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
18275
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
18276
|
+
renderSlot(_ctx.$slots, "left", {}, () => [
|
|
18277
|
+
renderSlot(_ctx.$slots, "beforeButton"),
|
|
18278
|
+
renderSlot(_ctx.$slots, "addButton", {}, () => [
|
|
18279
|
+
!__props.hideAdd ? (openBlock(), createBlock(unref(_sfc_main$v), {
|
|
18294
18280
|
key: 0,
|
|
18295
|
-
permission: __props.
|
|
18296
|
-
icon: "
|
|
18297
|
-
|
|
18281
|
+
permission: __props.addPermission || unref(PermissionUtil).get(unref(EntityClass), unref(PermissionAction).ADD),
|
|
18282
|
+
icon: "ADD",
|
|
18283
|
+
primary: "",
|
|
18284
|
+
onClick: _cache[0] || (_cache[0] = ($event) => handleAdd())
|
|
18298
18285
|
}, {
|
|
18299
18286
|
default: withCtx(() => [
|
|
18300
|
-
createTextVNode(toDisplayString(unref(WebI18n).get().
|
|
18287
|
+
createTextVNode(toDisplayString(unref(modelConfig).addTitle || unref(WebI18n).get().Add), 1)
|
|
18301
18288
|
]),
|
|
18302
18289
|
_: 1
|
|
18303
|
-
}, 8, ["permission"])) : createCommentVNode("", true)
|
|
18304
|
-
renderSlot(_ctx.$slots, "afterButton")
|
|
18305
|
-
])
|
|
18306
|
-
]),
|
|
18307
|
-
createElementVNode("div", _hoisted_3$2, [
|
|
18308
|
-
renderSlot(_ctx.$slots, "beforeSearch"),
|
|
18309
|
-
createElementVNode("div", _hoisted_4$1, [
|
|
18310
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(searchFieldList.value, (item) => {
|
|
18311
|
-
return openBlock(), createElementBlock(Fragment, {
|
|
18312
|
-
key: item.key
|
|
18313
|
-
}, [
|
|
18314
|
-
!item.hide ? (openBlock(), createElementBlock("div", {
|
|
18315
|
-
key: 0,
|
|
18316
|
-
style: normalizeStyle({ width: `${item.width || 150}px` }),
|
|
18317
|
-
class: "a-table-toolbar-search-item"
|
|
18318
|
-
}, [
|
|
18319
|
-
renderSlot(_ctx.$slots, item.key, { data: searchFilter.value }, () => [
|
|
18320
|
-
unref(getDictionary)(unref(EntityClass), item.key) ? (openBlock(), createBlock(unref(ElSelect), {
|
|
18321
|
-
key: 0,
|
|
18322
|
-
modelValue: searchFilter.value[item.key],
|
|
18323
|
-
"onUpdate:modelValue": ($event) => searchFilter.value[item.key] = $event,
|
|
18324
|
-
clearable: item.clearable !== false,
|
|
18325
|
-
filterable: item.filterable,
|
|
18326
|
-
placeholder: `${unref(getFieldLabel)(unref(EntityClass), item.key)}...`,
|
|
18327
|
-
onChange: _cache[2] || (_cache[2] = ($event) => onSearch()),
|
|
18328
|
-
onClear: ($event) => searchFilter.value[item.key] = void 0
|
|
18329
|
-
}, {
|
|
18330
|
-
default: withCtx(() => {
|
|
18331
|
-
var _a;
|
|
18332
|
-
return [
|
|
18333
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList((_a = unref(getDictionary)(unref(EntityClass), item.key)) == null ? void 0 : _a.toArray(), (enumItem) => {
|
|
18334
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
18335
|
-
!enumItem.disabled ? (openBlock(), createBlock(unref(ElOption), {
|
|
18336
|
-
key: enumItem.key.toString(),
|
|
18337
|
-
label: enumItem.label,
|
|
18338
|
-
value: enumItem.key
|
|
18339
|
-
}, null, 8, ["label", "value"])) : createCommentVNode("", true)
|
|
18340
|
-
], 64);
|
|
18341
|
-
}), 256))
|
|
18342
|
-
];
|
|
18343
|
-
}),
|
|
18344
|
-
_: 2
|
|
18345
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "clearable", "filterable", "placeholder", "onClear"])) : (openBlock(), createBlock(unref(ElInput), {
|
|
18346
|
-
key: 1,
|
|
18347
|
-
modelValue: searchFilter.value[item.key],
|
|
18348
|
-
"onUpdate:modelValue": ($event) => searchFilter.value[item.key] = $event,
|
|
18349
|
-
clearable: item.clearable !== false,
|
|
18350
|
-
placeholder: `${unref(getFieldLabel)(unref(EntityClass), item.key)}...`,
|
|
18351
|
-
onBlur: _cache[3] || (_cache[3] = ($event) => onSearch()),
|
|
18352
|
-
onClear: onSearch,
|
|
18353
|
-
onKeydown: withKeys(onSearch, ["enter"])
|
|
18354
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "clearable", "placeholder"]))
|
|
18355
|
-
])
|
|
18356
|
-
], 4)) : createCommentVNode("", true)
|
|
18357
|
-
], 64);
|
|
18358
|
-
}), 128))
|
|
18290
|
+
}, 8, ["permission"])) : createCommentVNode("", true)
|
|
18359
18291
|
]),
|
|
18360
|
-
__props.
|
|
18292
|
+
__props.showImport ? (openBlock(), createBlock(unref(_sfc_main$v), {
|
|
18361
18293
|
key: 0,
|
|
18362
|
-
permission: __props.
|
|
18363
|
-
icon: "
|
|
18364
|
-
onClick: _cache[
|
|
18294
|
+
permission: __props.importPermission || unref(PermissionUtil).get(unref(EntityClass), unref(PermissionAction).IMPORT),
|
|
18295
|
+
icon: "IMPORT",
|
|
18296
|
+
onClick: _cache[1] || (_cache[1] = ($event) => onImport())
|
|
18365
18297
|
}, {
|
|
18366
18298
|
default: withCtx(() => [
|
|
18367
|
-
createTextVNode(toDisplayString(unref(WebI18n).get().
|
|
18299
|
+
createTextVNode(toDisplayString(unref(WebI18n).get().Import), 1)
|
|
18368
18300
|
]),
|
|
18369
18301
|
_: 1
|
|
18370
18302
|
}, 8, ["permission"])) : createCommentVNode("", true),
|
|
18371
|
-
renderSlot(_ctx.$slots, "
|
|
18372
|
-
unref(isColumnSelectorEnabled) ? (openBlock(), createBlock(unref(ColumnSelector), {
|
|
18373
|
-
key: 1,
|
|
18374
|
-
"column-list": unref(allColumnList),
|
|
18375
|
-
"entity-class": unref(EntityClass),
|
|
18376
|
-
onChanged: _cache[5] || (_cache[5] = ($event) => unref(updateSelectKeys)($event))
|
|
18377
|
-
}, null, 8, ["column-list", "entity-class"])) : createCommentVNode("", true)
|
|
18303
|
+
renderSlot(_ctx.$slots, "afterButton")
|
|
18378
18304
|
])
|
|
18379
18305
|
]),
|
|
18380
|
-
|
|
18381
|
-
|
|
18382
|
-
|
|
18383
|
-
|
|
18384
|
-
|
|
18385
|
-
|
|
18386
|
-
|
|
18387
|
-
|
|
18388
|
-
|
|
18389
|
-
|
|
18390
|
-
|
|
18391
|
-
|
|
18392
|
-
|
|
18393
|
-
|
|
18394
|
-
|
|
18395
|
-
|
|
18396
|
-
|
|
18397
|
-
|
|
18398
|
-
|
|
18399
|
-
|
|
18400
|
-
|
|
18401
|
-
|
|
18402
|
-
|
|
18403
|
-
|
|
18404
|
-
|
|
18405
|
-
|
|
18406
|
-
|
|
18407
|
-
|
|
18408
|
-
|
|
18409
|
-
|
|
18410
|
-
|
|
18411
|
-
|
|
18412
|
-
|
|
18413
|
-
|
|
18414
|
-
|
|
18415
|
-
|
|
18416
|
-
|
|
18417
|
-
|
|
18418
|
-
|
|
18419
|
-
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
18420
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(showColumnList), (item) => {
|
|
18421
|
-
return openBlock(), createBlock(unref(ElTableColumn), {
|
|
18422
|
-
key: item.key,
|
|
18423
|
-
align: item.align,
|
|
18424
|
-
fixed: item.fixed,
|
|
18425
|
-
label: unref(getFieldLabel)(unref(EntityClass), item.key),
|
|
18426
|
-
"min-width": item.minWidth || "auto",
|
|
18427
|
-
prop: item.key,
|
|
18428
|
-
sortable: item.sortable,
|
|
18429
|
-
width: item.width || "auto"
|
|
18430
|
-
}, {
|
|
18431
|
-
default: withCtx((scope) => [
|
|
18432
|
-
scope.$index >= 0 ? renderSlot(_ctx.$slots, item.key, {
|
|
18433
|
-
key: 0,
|
|
18434
|
-
data: getRowEntity(scope),
|
|
18435
|
-
index: scope.$index
|
|
18436
|
-
}, () => [
|
|
18437
|
-
item.prefixText ? (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(item.prefixText), 1)) : createCommentVNode("", true),
|
|
18438
|
-
unref(getDictionary)(unref(EntityClass), item.key) ? (openBlock(), createBlock(unref(EnumColumn), {
|
|
18306
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
18307
|
+
renderSlot(_ctx.$slots, "beforeSearch"),
|
|
18308
|
+
createElementVNode("div", _hoisted_4$1, [
|
|
18309
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(searchFieldList.value, (item) => {
|
|
18310
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
18311
|
+
key: item.key
|
|
18312
|
+
}, [
|
|
18313
|
+
!item.hide ? (openBlock(), createElementBlock("div", {
|
|
18314
|
+
key: 0,
|
|
18315
|
+
style: normalizeStyle({ width: `${item.width || 150}px` }),
|
|
18316
|
+
class: "a-table-toolbar-search-item"
|
|
18317
|
+
}, [
|
|
18318
|
+
renderSlot(_ctx.$slots, item.key, { data: searchFilter.value }, () => [
|
|
18319
|
+
unref(getDictionary)(unref(EntityClass), item.key) ? (openBlock(), createBlock(unref(ElSelect), {
|
|
18320
|
+
key: 0,
|
|
18321
|
+
modelValue: searchFilter.value[item.key],
|
|
18322
|
+
"onUpdate:modelValue": ($event) => searchFilter.value[item.key] = $event,
|
|
18323
|
+
clearable: item.clearable !== false,
|
|
18324
|
+
filterable: item.filterable,
|
|
18325
|
+
placeholder: `${unref(getFieldLabel)(unref(EntityClass), item.key)}...`,
|
|
18326
|
+
onChange: _cache[2] || (_cache[2] = ($event) => onSearch()),
|
|
18327
|
+
onClear: ($event) => searchFilter.value[item.key] = void 0
|
|
18328
|
+
}, {
|
|
18329
|
+
default: withCtx(() => {
|
|
18330
|
+
var _a;
|
|
18331
|
+
return [
|
|
18332
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList((_a = unref(getDictionary)(unref(EntityClass), item.key)) == null ? void 0 : _a.toArray(), (enumItem) => {
|
|
18333
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
18334
|
+
!enumItem.disabled ? (openBlock(), createBlock(unref(ElOption), {
|
|
18335
|
+
key: enumItem.key.toString(),
|
|
18336
|
+
label: enumItem.label,
|
|
18337
|
+
value: enumItem.key
|
|
18338
|
+
}, null, 8, ["label", "value"])) : createCommentVNode("", true)
|
|
18339
|
+
], 64);
|
|
18340
|
+
}), 256))
|
|
18341
|
+
];
|
|
18342
|
+
}),
|
|
18343
|
+
_: 2
|
|
18344
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "clearable", "filterable", "placeholder", "onClear"])) : (openBlock(), createBlock(unref(ElInput), {
|
|
18439
18345
|
key: 1,
|
|
18440
|
-
|
|
18441
|
-
|
|
18442
|
-
|
|
18443
|
-
|
|
18444
|
-
|
|
18445
|
-
|
|
18446
|
-
|
|
18447
|
-
}, null, 8, ["
|
|
18448
|
-
|
|
18449
|
-
|
|
18450
|
-
|
|
18451
|
-
|
|
18452
|
-
|
|
18453
|
-
|
|
18454
|
-
|
|
18455
|
-
|
|
18456
|
-
|
|
18457
|
-
|
|
18458
|
-
|
|
18459
|
-
|
|
18460
|
-
|
|
18461
|
-
|
|
18462
|
-
|
|
18463
|
-
|
|
18464
|
-
|
|
18465
|
-
|
|
18466
|
-
|
|
18467
|
-
|
|
18468
|
-
|
|
18469
|
-
|
|
18470
|
-
|
|
18471
|
-
|
|
18472
|
-
|
|
18473
|
-
|
|
18474
|
-
|
|
18475
|
-
|
|
18476
|
-
|
|
18477
|
-
|
|
18478
|
-
|
|
18479
|
-
|
|
18480
|
-
|
|
18481
|
-
|
|
18482
|
-
|
|
18483
|
-
|
|
18346
|
+
modelValue: searchFilter.value[item.key],
|
|
18347
|
+
"onUpdate:modelValue": ($event) => searchFilter.value[item.key] = $event,
|
|
18348
|
+
clearable: item.clearable !== false,
|
|
18349
|
+
placeholder: `${unref(getFieldLabel)(unref(EntityClass), item.key)}...`,
|
|
18350
|
+
onBlur: _cache[3] || (_cache[3] = ($event) => onSearch()),
|
|
18351
|
+
onClear: onSearch,
|
|
18352
|
+
onKeydown: withKeys(onSearch, ["enter"])
|
|
18353
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "clearable", "placeholder"]))
|
|
18354
|
+
])
|
|
18355
|
+
], 4)) : createCommentVNode("", true)
|
|
18356
|
+
], 64);
|
|
18357
|
+
}), 128))
|
|
18358
|
+
]),
|
|
18359
|
+
__props.showExport ? (openBlock(), createBlock(unref(_sfc_main$v), {
|
|
18360
|
+
key: 0,
|
|
18361
|
+
permission: __props.exportPermission || unref(PermissionUtil).get(unref(EntityClass), unref(PermissionAction).EXPORT),
|
|
18362
|
+
icon: "EXPORT",
|
|
18363
|
+
onClick: _cache[4] || (_cache[4] = ($event) => onExport())
|
|
18364
|
+
}, {
|
|
18365
|
+
default: withCtx(() => [
|
|
18366
|
+
createTextVNode(toDisplayString(unref(WebI18n).get().Export) + ": ", 1)
|
|
18367
|
+
]),
|
|
18368
|
+
_: 1
|
|
18369
|
+
}, 8, ["permission"])) : createCommentVNode("", true),
|
|
18370
|
+
renderSlot(_ctx.$slots, "afterSearch"),
|
|
18371
|
+
unref(isColumnSelectorEnabled) ? (openBlock(), createBlock(unref(ColumnSelector), {
|
|
18372
|
+
key: 1,
|
|
18373
|
+
"column-list": unref(allColumnList),
|
|
18374
|
+
"entity-class": unref(EntityClass),
|
|
18375
|
+
onChanged: _cache[5] || (_cache[5] = ($event) => unref(updateSelectKeys)($event))
|
|
18376
|
+
}, null, 8, ["column-list", "entity-class"])) : createCommentVNode("", true)
|
|
18377
|
+
])
|
|
18378
|
+
]),
|
|
18379
|
+
unref(allColumnList) ? withDirectives((openBlock(), createBlock(unref(ElTable), {
|
|
18380
|
+
key: 0,
|
|
18381
|
+
id: tableId,
|
|
18382
|
+
ref_key: "airTableRef",
|
|
18383
|
+
ref: airTableRef,
|
|
18384
|
+
data: dataListRef.value,
|
|
18385
|
+
"row-class-name": tableRowClassName,
|
|
18386
|
+
"row-key": (row) => `${row.id}`,
|
|
18387
|
+
"tree-props": unref(WebConfig).treeProps,
|
|
18388
|
+
class: "a-table",
|
|
18389
|
+
flexible: "",
|
|
18390
|
+
height: "100%",
|
|
18391
|
+
onSelect: handleSelectChanged,
|
|
18392
|
+
onSelectAll: handleSelectChanged,
|
|
18393
|
+
onSortChange: handleSortChanged
|
|
18394
|
+
}, {
|
|
18395
|
+
empty: withCtx(() => [
|
|
18396
|
+
_cache[7] || (_cache[7] = createElementVNode("img", {
|
|
18397
|
+
alt: "",
|
|
18398
|
+
src: _imports_0,
|
|
18399
|
+
style: { "width": "80px" }
|
|
18400
|
+
}, null, -1)),
|
|
18401
|
+
createElementVNode("div", null, toDisplayString(__props.emptyText || unref(modelConfig).tableEmptyText || unref(WebI18n).get().NoData), 1)
|
|
18402
|
+
]),
|
|
18403
|
+
default: withCtx(() => [
|
|
18404
|
+
__props.showSelect ? (openBlock(), createBlock(unref(ElTableColumn), {
|
|
18405
|
+
key: 0,
|
|
18406
|
+
"reserve-selection": true,
|
|
18407
|
+
selectable: unref(isSelectable),
|
|
18408
|
+
fixed: "left",
|
|
18409
|
+
type: "selection",
|
|
18410
|
+
width: "40"
|
|
18411
|
+
}, null, 8, ["selectable"])) : createCommentVNode("", true),
|
|
18412
|
+
!__props.hideIndex ? (openBlock(), createBlock(unref(ElTableColumn), {
|
|
18413
|
+
key: 1,
|
|
18414
|
+
label: unref(WebI18n).get().ID || "序号",
|
|
18415
|
+
fixed: "left",
|
|
18416
|
+
type: "index",
|
|
18417
|
+
width: "60"
|
|
18418
|
+
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
18419
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(showColumnList), (item) => {
|
|
18420
|
+
return openBlock(), createBlock(unref(ElTableColumn), {
|
|
18421
|
+
key: item.key,
|
|
18422
|
+
align: item.align,
|
|
18423
|
+
fixed: item.fixed,
|
|
18424
|
+
label: unref(getFieldLabel)(unref(EntityClass), item.key),
|
|
18425
|
+
"min-width": item.minWidth || "auto",
|
|
18426
|
+
prop: item.key,
|
|
18427
|
+
sortable: item.sortable,
|
|
18428
|
+
width: item.width || "auto"
|
|
18484
18429
|
}, {
|
|
18485
|
-
header: withCtx(() => [
|
|
18486
|
-
createTextVNode(toDisplayString(unref(WebI18n).get().Operation), 1)
|
|
18487
|
-
]),
|
|
18488
18430
|
default: withCtx((scope) => [
|
|
18489
|
-
|
|
18490
|
-
|
|
18431
|
+
scope.$index >= 0 ? renderSlot(_ctx.$slots, item.key, {
|
|
18432
|
+
key: 0,
|
|
18433
|
+
data: getRowEntity(scope),
|
|
18434
|
+
index: scope.$index
|
|
18435
|
+
}, () => [
|
|
18436
|
+
item.prefixText ? (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(item.prefixText), 1)) : createCommentVNode("", true),
|
|
18437
|
+
unref(getDictionary)(unref(EntityClass), item.key) ? (openBlock(), createBlock(unref(EnumColumn), {
|
|
18438
|
+
key: 1,
|
|
18439
|
+
column: item,
|
|
18440
|
+
data: scope.row,
|
|
18441
|
+
dictionary: unref(getDictionary)(unref(EntityClass), item.key)
|
|
18442
|
+
}, null, 8, ["column", "data", "dictionary"])) : item.phone ? (openBlock(), createBlock(unref(APhone), {
|
|
18443
|
+
key: 2,
|
|
18444
|
+
desensitize: item.desensitize,
|
|
18445
|
+
phone: getValue(scope, item.key)
|
|
18446
|
+
}, null, 8, ["desensitize", "phone"])) : item.datetime ? (openBlock(), createBlock(unref(ADateTime), {
|
|
18447
|
+
key: 3,
|
|
18448
|
+
formatter: item.datetime === true ? unref(DateTimeFormatter).FULL_DATE_TIME : item.datetime,
|
|
18449
|
+
"milli-second": getValue(scope, item.key)
|
|
18450
|
+
}, null, 8, ["formatter", "milli-second"])) : item.money ? (openBlock(), createBlock(unref(AMoney), {
|
|
18451
|
+
key: 4,
|
|
18452
|
+
money: getValue(scope, item.key)
|
|
18453
|
+
}, null, 8, ["money"])) : item.payload ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
18454
|
+
item.array ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
18455
|
+
createTextVNode(toDisplayString(getPayloadArray(scope, item.key).map((payload) => payload.getPayloadLabel()).join(",")), 1)
|
|
18456
|
+
], 64)) : (openBlock(), createBlock(unref(APayload), {
|
|
18457
|
+
key: 1,
|
|
18458
|
+
payload: getValue(scope, item.key)
|
|
18459
|
+
}, null, 8, ["payload"]))
|
|
18460
|
+
], 64)) : item.desensitize ? (openBlock(), createBlock(unref(ADesensitize), {
|
|
18461
|
+
key: 6,
|
|
18462
|
+
content: getValue(scope, item.key),
|
|
18463
|
+
type: item.desensitize
|
|
18464
|
+
}, null, 8, ["content", "type"])) : item.copy ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
18465
|
+
key: 7,
|
|
18466
|
+
column: item,
|
|
18467
|
+
data: scope.row
|
|
18468
|
+
}, null, 8, ["column", "data"])) : (openBlock(), createElementBlock("div", {
|
|
18469
|
+
key: 8,
|
|
18470
|
+
class: normalizeClass([item.wrap ? "" : "nowrap", "a-table-column"])
|
|
18471
|
+
}, toDisplayString(getStringValue(getValue(scope, item.key)) ?? item.emptyValue), 3)),
|
|
18472
|
+
item.suffixText ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(item.suffixText), 1)) : createCommentVNode("", true)
|
|
18473
|
+
]) : createCommentVNode("", true)
|
|
18474
|
+
]),
|
|
18475
|
+
_: 2
|
|
18476
|
+
}, 1032, ["align", "fixed", "label", "min-width", "prop", "sortable", "width"]);
|
|
18477
|
+
}), 128)),
|
|
18478
|
+
!__props.hideCtrl ? (openBlock(), createBlock(unref(ElTableColumn), {
|
|
18479
|
+
key: 2,
|
|
18480
|
+
width: __props.ctrlWidth || "90px",
|
|
18481
|
+
align: "right",
|
|
18482
|
+
fixed: "right"
|
|
18483
|
+
}, {
|
|
18484
|
+
header: withCtx(() => [
|
|
18485
|
+
createTextVNode(toDisplayString(unref(WebI18n).get().Operation), 1)
|
|
18486
|
+
]),
|
|
18487
|
+
default: withCtx((scope) => [
|
|
18488
|
+
createElementVNode("div", _hoisted_7, [
|
|
18489
|
+
scope.$index >= 0 ? renderSlot(_ctx.$slots, "customRow", {
|
|
18490
|
+
key: 0,
|
|
18491
|
+
data: getRowEntity(scope),
|
|
18492
|
+
index: scope.$index
|
|
18493
|
+
}) : createCommentVNode("", true),
|
|
18494
|
+
!__props.hideCtrl ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
18495
|
+
__props.showAddRow ? (openBlock(), createBlock(unref(ElLink), {
|
|
18491
18496
|
key: 0,
|
|
18492
|
-
|
|
18493
|
-
|
|
18494
|
-
|
|
18495
|
-
|
|
18496
|
-
|
|
18497
|
+
disabled: unref(isAddRowDisabled)(getRowEntity(scope)),
|
|
18498
|
+
underline: "never",
|
|
18499
|
+
onClick: ($event) => handleAddRow(getRowEntity(scope))
|
|
18500
|
+
}, {
|
|
18501
|
+
default: withCtx(() => [
|
|
18502
|
+
createTextVNode(toDisplayString(unref(WebI18n).get().Add), 1)
|
|
18503
|
+
]),
|
|
18504
|
+
_: 2
|
|
18505
|
+
}, 1032, ["disabled", "onClick"])) : createCommentVNode("", true),
|
|
18506
|
+
!props.hideEdit ? (openBlock(), createBlock(unref(ElLink), {
|
|
18507
|
+
key: 1,
|
|
18508
|
+
disabled: unref(isEditDisabled)(getRowEntity(scope)),
|
|
18509
|
+
underline: "never",
|
|
18510
|
+
onClick: ($event) => handleEdit(getRowEntity(scope))
|
|
18511
|
+
}, {
|
|
18512
|
+
default: withCtx(() => [
|
|
18513
|
+
createTextVNode(toDisplayString(unref(WebI18n).get().Update), 1)
|
|
18514
|
+
]),
|
|
18515
|
+
_: 2
|
|
18516
|
+
}, 1032, ["disabled", "onClick"])) : createCommentVNode("", true),
|
|
18517
|
+
__props.showDetail ? (openBlock(), createBlock(unref(ElLink), {
|
|
18518
|
+
key: 2,
|
|
18519
|
+
disabled: unref(isDetailDisabled)(getRowEntity(scope)),
|
|
18520
|
+
underline: "never",
|
|
18521
|
+
onClick: ($event) => handleDetail(getRowEntity(scope))
|
|
18522
|
+
}, {
|
|
18523
|
+
default: withCtx(() => [
|
|
18524
|
+
createTextVNode(toDisplayString(unref(WebI18n).get().Detail), 1)
|
|
18525
|
+
]),
|
|
18526
|
+
_: 2
|
|
18527
|
+
}, 1032, ["disabled", "onClick"])) : createCommentVNode("", true),
|
|
18528
|
+
__props.showEnableAndDisable ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
18529
|
+
getRowEntity(scope).isDisabled ? (openBlock(), createBlock(unref(ElLink), {
|
|
18497
18530
|
key: 0,
|
|
18498
|
-
disabled: unref(
|
|
18499
|
-
underline:
|
|
18500
|
-
onClick: ($event) =>
|
|
18531
|
+
disabled: unref(isDisableChangeStatus)(getRowEntity(scope)),
|
|
18532
|
+
underline: "never",
|
|
18533
|
+
onClick: ($event) => handleEnable(getRowEntity(scope))
|
|
18501
18534
|
}, {
|
|
18502
18535
|
default: withCtx(() => [
|
|
18503
|
-
createTextVNode(toDisplayString(unref(WebI18n).get().
|
|
18536
|
+
createTextVNode(toDisplayString(unref(WebI18n).get().Enable), 1)
|
|
18504
18537
|
]),
|
|
18505
18538
|
_: 2
|
|
18506
|
-
}, 1032, ["disabled", "onClick"])) :
|
|
18507
|
-
!props.hideEdit ? (openBlock(), createBlock(unref(ElLink), {
|
|
18539
|
+
}, 1032, ["disabled", "onClick"])) : (openBlock(), createBlock(unref(ElLink), {
|
|
18508
18540
|
key: 1,
|
|
18509
|
-
disabled: unref(
|
|
18510
|
-
|
|
18511
|
-
|
|
18541
|
+
disabled: unref(isDisableChangeStatus)(getRowEntity(scope)),
|
|
18542
|
+
type: "warning",
|
|
18543
|
+
underline: "never",
|
|
18544
|
+
onClick: ($event) => handleDisable(getRowEntity(scope))
|
|
18512
18545
|
}, {
|
|
18513
18546
|
default: withCtx(() => [
|
|
18514
|
-
createTextVNode(toDisplayString(unref(WebI18n).get().
|
|
18547
|
+
createTextVNode(toDisplayString(unref(WebI18n).get().Disable), 1)
|
|
18515
18548
|
]),
|
|
18516
18549
|
_: 2
|
|
18517
|
-
}, 1032, ["disabled", "onClick"]))
|
|
18518
|
-
__props.showDetail ? (openBlock(), createBlock(unref(ElLink), {
|
|
18519
|
-
key: 2,
|
|
18520
|
-
disabled: unref(isDetailDisabled)(getRowEntity(scope)),
|
|
18521
|
-
underline: false,
|
|
18522
|
-
onClick: ($event) => handleDetail(getRowEntity(scope))
|
|
18523
|
-
}, {
|
|
18524
|
-
default: withCtx(() => [
|
|
18525
|
-
createTextVNode(toDisplayString(unref(WebI18n).get().Detail), 1)
|
|
18526
|
-
]),
|
|
18527
|
-
_: 2
|
|
18528
|
-
}, 1032, ["disabled", "onClick"])) : createCommentVNode("", true),
|
|
18529
|
-
__props.showEnableAndDisable ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
18530
|
-
getRowEntity(scope).isDisabled ? (openBlock(), createBlock(unref(ElLink), {
|
|
18531
|
-
key: 0,
|
|
18532
|
-
disabled: unref(isDisableChangeStatus)(getRowEntity(scope)),
|
|
18533
|
-
underline: false,
|
|
18534
|
-
onClick: ($event) => handleEnable(getRowEntity(scope))
|
|
18535
|
-
}, {
|
|
18536
|
-
default: withCtx(() => [
|
|
18537
|
-
createTextVNode(toDisplayString(unref(WebI18n).get().Enable), 1)
|
|
18538
|
-
]),
|
|
18539
|
-
_: 2
|
|
18540
|
-
}, 1032, ["disabled", "onClick"])) : (openBlock(), createBlock(unref(ElLink), {
|
|
18541
|
-
key: 1,
|
|
18542
|
-
disabled: unref(isDisableChangeStatus)(getRowEntity(scope)),
|
|
18543
|
-
underline: false,
|
|
18544
|
-
type: "warning",
|
|
18545
|
-
onClick: ($event) => handleDisable(getRowEntity(scope))
|
|
18546
|
-
}, {
|
|
18547
|
-
default: withCtx(() => [
|
|
18548
|
-
createTextVNode(toDisplayString(unref(WebI18n).get().Disable), 1)
|
|
18549
|
-
]),
|
|
18550
|
-
_: 2
|
|
18551
|
-
}, 1032, ["disabled", "onClick"]))
|
|
18552
|
-
], 64)) : createCommentVNode("", true),
|
|
18553
|
-
!__props.hideDelete ? (openBlock(), createBlock(unref(ElLink), {
|
|
18554
|
-
key: 4,
|
|
18555
|
-
disabled: unref(isDeleteDisabled)(getRowEntity(scope)),
|
|
18556
|
-
underline: false,
|
|
18557
|
-
type: "danger",
|
|
18558
|
-
onClick: ($event) => handleDelete(getRowEntity(scope))
|
|
18559
|
-
}, {
|
|
18560
|
-
default: withCtx(() => [
|
|
18561
|
-
createTextVNode(toDisplayString(unref(WebI18n).get().Delete), 1)
|
|
18562
|
-
]),
|
|
18563
|
-
_: 2
|
|
18564
|
-
}, 1032, ["disabled", "onClick"])) : createCommentVNode("", true)
|
|
18550
|
+
}, 1032, ["disabled", "onClick"]))
|
|
18565
18551
|
], 64)) : createCommentVNode("", true),
|
|
18566
|
-
|
|
18567
|
-
key:
|
|
18568
|
-
|
|
18569
|
-
|
|
18570
|
-
|
|
18571
|
-
|
|
18572
|
-
|
|
18573
|
-
|
|
18574
|
-
|
|
18575
|
-
|
|
18576
|
-
|
|
18577
|
-
|
|
18578
|
-
|
|
18579
|
-
|
|
18580
|
-
|
|
18552
|
+
!__props.hideDelete ? (openBlock(), createBlock(unref(ElLink), {
|
|
18553
|
+
key: 4,
|
|
18554
|
+
disabled: unref(isDeleteDisabled)(getRowEntity(scope)),
|
|
18555
|
+
type: "danger",
|
|
18556
|
+
underline: "never",
|
|
18557
|
+
onClick: ($event) => handleDelete(getRowEntity(scope))
|
|
18558
|
+
}, {
|
|
18559
|
+
default: withCtx(() => [
|
|
18560
|
+
createTextVNode(toDisplayString(unref(WebI18n).get().Delete), 1)
|
|
18561
|
+
]),
|
|
18562
|
+
_: 2
|
|
18563
|
+
}, 1032, ["disabled", "onClick"])) : createCommentVNode("", true)
|
|
18564
|
+
], 64)) : createCommentVNode("", true),
|
|
18565
|
+
scope.index >= 0 ? renderSlot(_ctx.$slots, "endRow", {
|
|
18566
|
+
key: 2,
|
|
18567
|
+
data: getRowEntity(scope),
|
|
18568
|
+
index: scope.$index
|
|
18569
|
+
}) : createCommentVNode("", true)
|
|
18570
|
+
])
|
|
18571
|
+
]),
|
|
18572
|
+
_: 3
|
|
18573
|
+
}, 8, ["width"])) : createCommentVNode("", true)
|
|
18574
|
+
]),
|
|
18575
|
+
_: 3
|
|
18576
|
+
}, 8, ["data", "row-key", "tree-props"])), [
|
|
18577
|
+
[_directive_loading, isLoadingRef.value]
|
|
18578
|
+
]) : createCommentVNode("", true),
|
|
18581
18579
|
createElementVNode("div", _hoisted_8, [
|
|
18582
18580
|
createElementVNode("div", _hoisted_9, [
|
|
18583
18581
|
renderSlot(_ctx.$slots, "beforePage"),
|
|
@@ -18593,7 +18591,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18593
18591
|
renderSlot(_ctx.$slots, "footerRight")
|
|
18594
18592
|
])
|
|
18595
18593
|
])
|
|
18596
|
-
],
|
|
18594
|
+
], 4);
|
|
18597
18595
|
};
|
|
18598
18596
|
}
|
|
18599
18597
|
});
|