wlwy-package 3.1.61 → 3.1.63
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/style.css +1 -1
- package/dist/types/packages/components/common/type.d.ts +4 -0
- package/dist/types/packages/components/form/default/type.d.ts +8 -0
- package/dist/types/packages/components/list/src/header.vue.d.ts +1 -2
- package/dist/types/packages/components/list/type.d.ts +3 -3
- package/dist/types/packages/directive/auth.d.ts +1 -1
- package/dist/types/packages/hooks/private/src/useRenderCell.d.ts +1 -1
- package/dist/types/packages/hooks/web/src/useExport.d.ts +1 -0
- package/dist/types/packages/hooks/web/src/useListConfig.d.ts +4 -4
- package/dist/wlwy-package.es.js +217 -151
- package/package.json +1 -1
package/dist/wlwy-package.es.js
CHANGED
|
@@ -6,7 +6,7 @@ import { message, App, theme, Tooltip, Switch, ConfigProvider, Spin, Modal, Spac
|
|
|
6
6
|
import zhCn from "ant-design-vue/es/locale/zh_CN.js";
|
|
7
7
|
import enUs from "ant-design-vue/es/locale/en_US.js";
|
|
8
8
|
import { defineStore, createPinia, storeToRefs } from "pinia";
|
|
9
|
-
import XEUtils, { cookie, merge as merge$1, omit, pick, clone, debounce, toTreeArray, findTree, objectEach, isEmpty, get } from "xe-utils";
|
|
9
|
+
import XEUtils, { cookie, merge as merge$1, omit, pick, clone, debounce, toTreeArray, findTree, objectEach, isEmpty, get, set } from "xe-utils";
|
|
10
10
|
import { RouterLink, useRouter } from "vue-router";
|
|
11
11
|
import * as Icons from "@ant-design/icons-vue";
|
|
12
12
|
import * as VxeUITable from "vxe-table";
|
|
@@ -1753,13 +1753,13 @@ function mergeConfig$1(config1, config2) {
|
|
|
1753
1753
|
}
|
|
1754
1754
|
const resolveConfig = (config2) => {
|
|
1755
1755
|
const newConfig = mergeConfig$1({}, config2);
|
|
1756
|
-
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth
|
|
1756
|
+
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
1757
1757
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
1758
1758
|
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config2.params, config2.paramsSerializer);
|
|
1759
|
-
if (
|
|
1759
|
+
if (auth) {
|
|
1760
1760
|
headers.set(
|
|
1761
1761
|
"Authorization",
|
|
1762
|
-
"Basic " + btoa((
|
|
1762
|
+
"Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
|
|
1763
1763
|
);
|
|
1764
1764
|
}
|
|
1765
1765
|
if (utils$1.isFormData(data)) {
|
|
@@ -3029,26 +3029,30 @@ function useExport() {
|
|
|
3029
3029
|
const downloadNo = headers["async-download-no"];
|
|
3030
3030
|
if (downloadNo) {
|
|
3031
3031
|
store2.addDownloadFlag();
|
|
3032
|
-
messageApp
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3032
|
+
if (messageApp) {
|
|
3033
|
+
messageApp.open({
|
|
3034
|
+
type: "success",
|
|
3035
|
+
content: () => h("sapn", null, [
|
|
3036
|
+
t2("com_msg_3234"),
|
|
3037
|
+
config.exportPagePath ? h(
|
|
3038
|
+
RouterLink,
|
|
3039
|
+
{
|
|
3040
|
+
to: {
|
|
3041
|
+
path: config.exportPagePath,
|
|
3042
|
+
query: {
|
|
3043
|
+
recordNo: downloadNo
|
|
3044
|
+
}
|
|
3043
3045
|
}
|
|
3046
|
+
},
|
|
3047
|
+
{
|
|
3048
|
+
default: () => downloadNo
|
|
3044
3049
|
}
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
});
|
|
3050
|
+
) : downloadNo
|
|
3051
|
+
])
|
|
3052
|
+
});
|
|
3053
|
+
} else {
|
|
3054
|
+
console.warn("需在App.vue中<RouterView />外部包裹App组件,详见:https://www.antdv.com/components/app-cn");
|
|
3055
|
+
}
|
|
3052
3056
|
} else {
|
|
3053
3057
|
if (window.FileReader) {
|
|
3054
3058
|
const file = new FileReader();
|
|
@@ -3070,8 +3074,18 @@ function useExport() {
|
|
|
3070
3074
|
console.error(error);
|
|
3071
3075
|
}
|
|
3072
3076
|
}
|
|
3077
|
+
function downloadFile(url, fileName = "download_file") {
|
|
3078
|
+
const link = document.createElement("a");
|
|
3079
|
+
link.href = url;
|
|
3080
|
+
link.setAttribute("download", fileName);
|
|
3081
|
+
link.setAttribute("target", "_blank");
|
|
3082
|
+
document.body.appendChild(link);
|
|
3083
|
+
link.click();
|
|
3084
|
+
document.body.removeChild(link);
|
|
3085
|
+
}
|
|
3073
3086
|
return {
|
|
3074
|
-
exportXls
|
|
3087
|
+
exportXls,
|
|
3088
|
+
downloadFile
|
|
3075
3089
|
};
|
|
3076
3090
|
}
|
|
3077
3091
|
/*!
|
|
@@ -8492,13 +8506,15 @@ const loadLocaleMessages = (fn) => {
|
|
|
8492
8506
|
return new Promise((resolve, reject) => {
|
|
8493
8507
|
const { locale } = i18n.global;
|
|
8494
8508
|
const { src = "", messages: extraMessages = {} } = fn(unref(locale));
|
|
8509
|
+
const message2 = extraMessages;
|
|
8510
|
+
i18n.global.setLocaleMessage(unref(locale), message2);
|
|
8495
8511
|
const script = document.createElement("script");
|
|
8496
8512
|
script.type = "text/javascript";
|
|
8497
8513
|
script.src = src;
|
|
8498
8514
|
document.head.appendChild(script);
|
|
8499
8515
|
script.onload = () => {
|
|
8500
|
-
const
|
|
8501
|
-
i18n.global.setLocaleMessage(unref(locale),
|
|
8516
|
+
const message22 = merge$1(extraMessages, window.language);
|
|
8517
|
+
i18n.global.setLocaleMessage(unref(locale), message22);
|
|
8502
8518
|
resolve(i18n);
|
|
8503
8519
|
};
|
|
8504
8520
|
script.onerror = () => {
|
|
@@ -9567,8 +9583,8 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
9567
9583
|
emits: ["click"],
|
|
9568
9584
|
setup(__props, { emit: __emit }) {
|
|
9569
9585
|
useCssVars((_ctx) => ({
|
|
9570
|
-
"
|
|
9571
|
-
"
|
|
9586
|
+
"v6f1ae822": unref(token).colorTextDisabled,
|
|
9587
|
+
"v34145909": unref(token).colorPrimary
|
|
9572
9588
|
}));
|
|
9573
9589
|
const { t: t2 } = useI18n();
|
|
9574
9590
|
const { token } = theme.useToken();
|
|
@@ -9611,13 +9627,16 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
9611
9627
|
createTextVNode(toDisplayString$1(title.value), 1)
|
|
9612
9628
|
]),
|
|
9613
9629
|
default: withCtx(() => [
|
|
9614
|
-
|
|
9630
|
+
type.value ? (openBlock(), createBlock(unref(_sfc_main$16), {
|
|
9631
|
+
key: 0,
|
|
9632
|
+
type: type.value
|
|
9633
|
+
}, null, 8, ["type"])) : createCommentVNode("", true)
|
|
9615
9634
|
]),
|
|
9616
9635
|
_: 1
|
|
9617
|
-
})) : (openBlock(), createBlock(unref(_sfc_main$16), {
|
|
9636
|
+
})) : type.value ? (openBlock(), createBlock(unref(_sfc_main$16), {
|
|
9618
9637
|
key: 1,
|
|
9619
9638
|
type: type.value
|
|
9620
|
-
}, null, 8, ["type"]))
|
|
9639
|
+
}, null, 8, ["type"])) : createCommentVNode("", true)
|
|
9621
9640
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
9622
9641
|
createTextVNode(toDisplayString$1(title.value), 1)
|
|
9623
9642
|
], 64))
|
|
@@ -9633,7 +9652,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
9633
9652
|
}
|
|
9634
9653
|
return target;
|
|
9635
9654
|
};
|
|
9636
|
-
const WIcon = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-
|
|
9655
|
+
const WIcon = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-0ef826b6"]]);
|
|
9637
9656
|
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
9638
9657
|
...{
|
|
9639
9658
|
name: "Icon"
|
|
@@ -12159,6 +12178,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
12159
12178
|
suffixIcon: {},
|
|
12160
12179
|
prefixIcon: {},
|
|
12161
12180
|
tipsContent: {},
|
|
12181
|
+
defaultValue: {},
|
|
12162
12182
|
dateFormat: { default: "YYYY-MM-DD HH:mm:ss" },
|
|
12163
12183
|
enum: {},
|
|
12164
12184
|
options: {},
|
|
@@ -12570,8 +12590,8 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
12570
12590
|
};
|
|
12571
12591
|
}
|
|
12572
12592
|
});
|
|
12573
|
-
const WFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-
|
|
12574
|
-
const inputNames = ["AInput", "AInputNumber", "ATextarea", "ASelect", "ARadio", "ACheckbox", "ADatePicker", "ATimePicker", "ARangePicker", "ASwitch"];
|
|
12593
|
+
const WFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-df803442"]]);
|
|
12594
|
+
const inputNames = ["AInput", "AInputNumber", "ATextarea", "ASelect", "ARadio", "ACheckbox", "ADatePicker", "ATimePicker", "ARangePicker", "ASwitch", "AWeekPicker", "AWeekPicker"];
|
|
12575
12595
|
function processChildren(formItemContext, children) {
|
|
12576
12596
|
var _a;
|
|
12577
12597
|
return ((_a = children == null ? void 0 : children.map) == null ? void 0 : _a.call(children, (child) => {
|
|
@@ -13430,6 +13450,40 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
13430
13450
|
var _a, _b;
|
|
13431
13451
|
return ((_a = attrMap.value.default) == null ? void 0 : _a.placeholder) ?? `${t2("com_msg_062")}${isChinese2 ? "" : " "}${((_b = itemValue.value) == null ? void 0 : _b.label) || label.value || ""}`;
|
|
13432
13452
|
});
|
|
13453
|
+
const dropdownValue = computed({
|
|
13454
|
+
set: (value) => {
|
|
13455
|
+
var _a;
|
|
13456
|
+
if ((_a = props.selectType) == null ? void 0 : _a.includes(".")) {
|
|
13457
|
+
set(form.value, props.selectType, value);
|
|
13458
|
+
} else if (props.selectType) {
|
|
13459
|
+
form.value[props.selectType] = value;
|
|
13460
|
+
}
|
|
13461
|
+
},
|
|
13462
|
+
get: () => {
|
|
13463
|
+
var _a;
|
|
13464
|
+
if ((_a = props.selectType) == null ? void 0 : _a.includes(".")) {
|
|
13465
|
+
return get(form.value, props.selectType);
|
|
13466
|
+
}
|
|
13467
|
+
return props.selectType && form.value[props.selectType];
|
|
13468
|
+
}
|
|
13469
|
+
});
|
|
13470
|
+
const inputValue = computed({
|
|
13471
|
+
set: (value) => {
|
|
13472
|
+
var _a;
|
|
13473
|
+
if ((_a = props.model) == null ? void 0 : _a.includes(".")) {
|
|
13474
|
+
set(form.value, props.model, value);
|
|
13475
|
+
} else {
|
|
13476
|
+
form.value[props.model] = value;
|
|
13477
|
+
}
|
|
13478
|
+
},
|
|
13479
|
+
get: () => {
|
|
13480
|
+
var _a;
|
|
13481
|
+
if ((_a = props.model) == null ? void 0 : _a.includes(".")) {
|
|
13482
|
+
return get(form.value, props.model);
|
|
13483
|
+
}
|
|
13484
|
+
return form.value[props.model];
|
|
13485
|
+
}
|
|
13486
|
+
});
|
|
13433
13487
|
const emit = __emit;
|
|
13434
13488
|
const handleChange = (value, option) => {
|
|
13435
13489
|
let _value = value;
|
|
@@ -13443,7 +13497,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
13443
13497
|
}
|
|
13444
13498
|
_value = _value.slice(0, props.maxTagLength);
|
|
13445
13499
|
}
|
|
13446
|
-
|
|
13500
|
+
inputValue.value = _value;
|
|
13447
13501
|
emit("selectChange", _value, option);
|
|
13448
13502
|
};
|
|
13449
13503
|
return (_ctx, _cache) => {
|
|
@@ -13451,27 +13505,27 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
13451
13505
|
name: props.name || props.model
|
|
13452
13506
|
}), {
|
|
13453
13507
|
label: withCtx(() => [
|
|
13454
|
-
unref(label) ? (openBlock(), createElementBlock("span", _hoisted_1$q, toDisplayString$1(unref(label)), 1)) :
|
|
13455
|
-
|
|
13456
|
-
value:
|
|
13457
|
-
"onUpdate:value": _cache[0] || (_cache[0] = ($event) =>
|
|
13508
|
+
unref(label) ? (openBlock(), createElementBlock("span", _hoisted_1$q, toDisplayString$1(unref(label)), 1)) : createCommentVNode("", true),
|
|
13509
|
+
createVNode(unref(dropdown), {
|
|
13510
|
+
value: dropdownValue.value,
|
|
13511
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => dropdownValue.value = $event),
|
|
13458
13512
|
item: itemValue.value,
|
|
13459
13513
|
"onUpdate:item": _cache[1] || (_cache[1] = ($event) => itemValue.value = $event),
|
|
13460
13514
|
items: props.option
|
|
13461
|
-
}, null, 8, ["value", "item", "items"])
|
|
13515
|
+
}, null, 8, ["value", "item", "items"])
|
|
13462
13516
|
]),
|
|
13463
13517
|
default: withCtx(() => [
|
|
13464
13518
|
!props.mode ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
13465
13519
|
props.isNumber ? (openBlock(), createBlock(unref(InputNumber), mergeProps({ key: 0 }, unref(attrMap).default, {
|
|
13466
|
-
value:
|
|
13467
|
-
"onUpdate:value": _cache[2] || (_cache[2] = ($event) =>
|
|
13520
|
+
value: inputValue.value,
|
|
13521
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => inputValue.value = $event),
|
|
13468
13522
|
disabled: unref(disabled),
|
|
13469
13523
|
placeholder: placeholder.value,
|
|
13470
13524
|
allowClear: props.allowClear,
|
|
13471
13525
|
precision: props.precision
|
|
13472
13526
|
}), null, 16, ["value", "disabled", "placeholder", "allowClear", "precision"])) : (openBlock(), createBlock(unref(Input), mergeProps({ key: 1 }, unref(attrMap).default, {
|
|
13473
|
-
value:
|
|
13474
|
-
"onUpdate:value": _cache[3] || (_cache[3] = ($event) =>
|
|
13527
|
+
value: inputValue.value,
|
|
13528
|
+
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => inputValue.value = $event),
|
|
13475
13529
|
disabled: unref(disabled),
|
|
13476
13530
|
placeholder: placeholder.value,
|
|
13477
13531
|
allowClear: props.allowClear
|
|
@@ -13481,7 +13535,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
13481
13535
|
ref: "selectRef",
|
|
13482
13536
|
maxTagCount: "responsive"
|
|
13483
13537
|
}, { ...unref(attrMap).default }, {
|
|
13484
|
-
value:
|
|
13538
|
+
value: inputValue.value,
|
|
13485
13539
|
disabled: unref(disabled),
|
|
13486
13540
|
placeholder: placeholder.value,
|
|
13487
13541
|
allowClear: props.allowClear,
|
|
@@ -13497,7 +13551,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
13497
13551
|
};
|
|
13498
13552
|
}
|
|
13499
13553
|
});
|
|
13500
|
-
const selectInput = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-
|
|
13554
|
+
const selectInput = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-74633020"]]);
|
|
13501
13555
|
const _hoisted_1$p = { key: 1 };
|
|
13502
13556
|
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
13503
13557
|
...{
|
|
@@ -14059,6 +14113,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
14059
14113
|
afterOption: { default: () => [] },
|
|
14060
14114
|
numberfs: { default: () => [] },
|
|
14061
14115
|
inputfs: { default: () => [] },
|
|
14116
|
+
maxTagLength: {},
|
|
14117
|
+
maxTagLengthMessage: {},
|
|
14062
14118
|
form: {},
|
|
14063
14119
|
model: { default: "values" },
|
|
14064
14120
|
label: {},
|
|
@@ -14210,7 +14266,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
14210
14266
|
};
|
|
14211
14267
|
}
|
|
14212
14268
|
});
|
|
14213
|
-
const inputMatch = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-
|
|
14269
|
+
const inputMatch = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-9b3603b7"]]);
|
|
14214
14270
|
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
14215
14271
|
...{
|
|
14216
14272
|
name: "WFormI18n",
|
|
@@ -17368,7 +17424,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
17368
17424
|
gutter: { default: 20 },
|
|
17369
17425
|
loading: { type: Boolean, default: false },
|
|
17370
17426
|
resetWhitelist: {},
|
|
17371
|
-
option: {
|
|
17427
|
+
option: {},
|
|
17372
17428
|
hide: { type: Boolean },
|
|
17373
17429
|
expand: { type: Boolean, default: false },
|
|
17374
17430
|
hForm: {},
|
|
@@ -17394,7 +17450,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
17394
17450
|
return Math.ceil(24 / props.column);
|
|
17395
17451
|
});
|
|
17396
17452
|
const offsetButtons = computed(() => {
|
|
17397
|
-
|
|
17453
|
+
var _a;
|
|
17454
|
+
return ((_a = props.option) == null ? void 0 : _a.length) ? (props.column - 1 - (flod.value ? option.value.length : showOption.value.length) % props.column) * colSpan.value : 0;
|
|
17398
17455
|
});
|
|
17399
17456
|
const option = computed(() => {
|
|
17400
17457
|
var _a, _b;
|
|
@@ -17435,7 +17492,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
17435
17492
|
const { defaultForm, option: option2 } = props;
|
|
17436
17493
|
const whiteBox = [...new Set(["size", "current"].concat(props.resetWhitelist ?? []).concat(Object.keys(defaultForm ?? {})))];
|
|
17437
17494
|
const initForm = pick(clone(form.value, true), whiteBox);
|
|
17438
|
-
option2.forEach((item) => {
|
|
17495
|
+
option2 == null ? void 0 : option2.forEach((item) => {
|
|
17439
17496
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
17440
17497
|
if (["selectInput", "dateRange"].includes(item.type)) {
|
|
17441
17498
|
if (item.selectType && ((_b = (_a = item.option) == null ? void 0 : _a[0]) == null ? void 0 : _b.value)) {
|
|
@@ -17496,27 +17553,30 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
17496
17553
|
default: withCtx(() => [
|
|
17497
17554
|
createVNode(unref(Space), null, {
|
|
17498
17555
|
default: withCtx(() => [
|
|
17499
|
-
renderSlot(_ctx.$slots, "buttons", { loading: __props.loading }, () =>
|
|
17500
|
-
|
|
17501
|
-
|
|
17502
|
-
|
|
17503
|
-
|
|
17504
|
-
|
|
17505
|
-
|
|
17506
|
-
|
|
17507
|
-
|
|
17508
|
-
|
|
17509
|
-
|
|
17510
|
-
|
|
17511
|
-
|
|
17512
|
-
|
|
17513
|
-
|
|
17514
|
-
|
|
17515
|
-
|
|
17516
|
-
|
|
17517
|
-
|
|
17518
|
-
|
|
17519
|
-
|
|
17556
|
+
renderSlot(_ctx.$slots, "buttons", { loading: __props.loading }, () => {
|
|
17557
|
+
var _a;
|
|
17558
|
+
return [
|
|
17559
|
+
createVNode(unref(_sfc_main$n), {
|
|
17560
|
+
type: "primary",
|
|
17561
|
+
icon: "SearchOutlined",
|
|
17562
|
+
onClick: handleSearch,
|
|
17563
|
+
loading: __props.loading,
|
|
17564
|
+
text: "com_btn_011"
|
|
17565
|
+
}, null, 8, ["loading"]),
|
|
17566
|
+
createVNode(unref(_sfc_main$n), {
|
|
17567
|
+
icon: "RedoOutlined",
|
|
17568
|
+
onClick: handleReset,
|
|
17569
|
+
text: "com_btn_012"
|
|
17570
|
+
}),
|
|
17571
|
+
props.expand && props.option && ((_a = props.option) == null ? void 0 : _a.length) > props.column * props.minRows - 1 ? (openBlock(), createBlock(unref(_sfc_main$n), {
|
|
17572
|
+
key: 0,
|
|
17573
|
+
type: "link",
|
|
17574
|
+
icon: flod.value ? "UpOutlined" : "DownOutlined",
|
|
17575
|
+
onClick: _cache[1] || (_cache[1] = ($event) => (flod.value = !flod.value, flodClickCount.value++)),
|
|
17576
|
+
text: flod.value ? unref(t2)("com_lab_014") : unref(t2)("com_lab_017")
|
|
17577
|
+
}, null, 8, ["icon", "text"])) : createCommentVNode("", true)
|
|
17578
|
+
];
|
|
17579
|
+
}, true)
|
|
17520
17580
|
]),
|
|
17521
17581
|
_: 3
|
|
17522
17582
|
})
|
|
@@ -17533,7 +17593,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
17533
17593
|
};
|
|
17534
17594
|
}
|
|
17535
17595
|
});
|
|
17536
|
-
const ListHeader = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
17596
|
+
const ListHeader = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-71c5345a"]]);
|
|
17537
17597
|
const _hoisted_1$c = { key: 0 };
|
|
17538
17598
|
const _hoisted_2$7 = { class: "table-toolbar-count" };
|
|
17539
17599
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
@@ -17644,7 +17704,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
17644
17704
|
emits: ["selectAction"],
|
|
17645
17705
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
17646
17706
|
useCssVars((_ctx) => ({
|
|
17647
|
-
"
|
|
17707
|
+
"c7347c10": unref(token).colorError
|
|
17648
17708
|
}));
|
|
17649
17709
|
const { token } = theme.useToken();
|
|
17650
17710
|
const userPermissionStore = useUserPermissionStoreWithOut();
|
|
@@ -17682,7 +17742,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
17682
17742
|
});
|
|
17683
17743
|
return _props2;
|
|
17684
17744
|
});
|
|
17685
|
-
watch(() =>
|
|
17745
|
+
watch(() => {
|
|
17746
|
+
var _a;
|
|
17747
|
+
return (_a = props.tableData) == null ? void 0 : _a.records;
|
|
17748
|
+
}, () => {
|
|
17686
17749
|
clearCheckbox();
|
|
17687
17750
|
}, { deep: true });
|
|
17688
17751
|
const expose = {
|
|
@@ -17718,13 +17781,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
17718
17781
|
checkedData.value = [];
|
|
17719
17782
|
}
|
|
17720
17783
|
return (_ctx, _cache) => {
|
|
17784
|
+
var _a, _b, _c, _d;
|
|
17721
17785
|
return openBlock(), createBlock(unref(WTable), mergeProps({
|
|
17722
17786
|
ref_key: "wTableRef",
|
|
17723
17787
|
ref: wTableRef
|
|
17724
17788
|
}, { ..._ctx.$attrs, ..._props.value }, {
|
|
17725
|
-
loading: props.tableData.loading,
|
|
17726
|
-
data: props.tableData.records,
|
|
17727
|
-
seqConfig: { startIndex: (props.tableData.current - 1) * props.tableData.size },
|
|
17789
|
+
loading: (_a = props.tableData) == null ? void 0 : _a.loading,
|
|
17790
|
+
data: (_b = props.tableData) == null ? void 0 : _b.records,
|
|
17791
|
+
seqConfig: { startIndex: ((((_c = props.tableData) == null ? void 0 : _c.current) ?? 1) - 1) * (((_d = props.tableData) == null ? void 0 : _d.size) ?? 1) },
|
|
17728
17792
|
onCheckboxChange: handleCheckboxChange,
|
|
17729
17793
|
onCheckboxAll: handleCheckboxAll,
|
|
17730
17794
|
onCheckboxRangeEnd: handleCheckboxRangeEnd
|
|
@@ -17741,62 +17805,65 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
17741
17805
|
}, [
|
|
17742
17806
|
!props.hideToolbar ? {
|
|
17743
17807
|
name: "buttons",
|
|
17744
|
-
fn: withCtx(() =>
|
|
17745
|
-
|
|
17746
|
-
|
|
17747
|
-
|
|
17748
|
-
|
|
17749
|
-
|
|
17750
|
-
|
|
17751
|
-
|
|
17752
|
-
|
|
17753
|
-
|
|
17754
|
-
|
|
17755
|
-
|
|
17756
|
-
|
|
17757
|
-
|
|
17758
|
-
size: "toolbaricon",
|
|
17759
|
-
authCode: button.authCode
|
|
17760
|
-
}, null, 8, ["authCode"]),
|
|
17761
|
-
createTextVNode(" " + toDisplayString$1(button.label ? unref(t2)(button.label) : button.label), 1)
|
|
17762
|
-
]),
|
|
17763
|
-
_: 2
|
|
17764
|
-
}, 1032, ["type", "onClick"]);
|
|
17765
|
-
}), 128)),
|
|
17766
|
-
tBtns.value.more.length ? (openBlock(), createBlock(unref(Dropdown), { key: 1 }, {
|
|
17767
|
-
overlay: withCtx(() => [
|
|
17768
|
-
createVNode(unref(Menu), { onClick: handleClickMoreButton }, {
|
|
17769
|
-
default: withCtx(() => [
|
|
17770
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(tBtns.value.more, (button) => {
|
|
17771
|
-
return openBlock(), createBlock(unref(MenuItem), {
|
|
17772
|
-
key: button.key ?? button.authCode
|
|
17773
|
-
}, {
|
|
17774
|
-
default: withCtx(() => [
|
|
17775
|
-
createVNode(unref(WIcon), {
|
|
17776
|
-
size: "toolbaricon",
|
|
17777
|
-
authCode: button.authCode
|
|
17778
|
-
}, null, 8, ["authCode"]),
|
|
17779
|
-
createTextVNode(" " + toDisplayString$1(button.label ? unref(t2)(button.label) : button.label), 1)
|
|
17780
|
-
]),
|
|
17781
|
-
_: 2
|
|
17782
|
-
}, 1024);
|
|
17783
|
-
}), 128))
|
|
17784
|
-
]),
|
|
17785
|
-
_: 1
|
|
17786
|
-
})
|
|
17787
|
-
]),
|
|
17788
|
-
default: withCtx(() => [
|
|
17789
|
-
createVNode(unref(Button), null, {
|
|
17808
|
+
fn: withCtx(() => {
|
|
17809
|
+
var _a2;
|
|
17810
|
+
return [
|
|
17811
|
+
props.checkbox ? (openBlock(), createElementBlock("span", _hoisted_1$c, [
|
|
17812
|
+
createTextVNode(toDisplayString$1(unref(t2)("com_msg_078")) + " ", 1),
|
|
17813
|
+
createElementVNode("span", _hoisted_2$7, " " + toDisplayString$1(checkedData.value.length) + " ", 1),
|
|
17814
|
+
createTextVNode(" " + toDisplayString$1(unref(t2)("com_lab_1109")) + " " + toDisplayString$1(((_a2 = props.tableData) == null ? void 0 : _a2.total) ?? 0) + " " + toDisplayString$1(unref(t2)("com_lab_1110")) + " ", 1)
|
|
17815
|
+
])) : createCommentVNode("", true),
|
|
17816
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(tBtns.value.displayed, (button) => {
|
|
17817
|
+
return openBlock(), createBlock(unref(Button), {
|
|
17818
|
+
key: button.key ?? button.authCode,
|
|
17819
|
+
type: button.type,
|
|
17820
|
+
onClick: button.click
|
|
17821
|
+
}, {
|
|
17790
17822
|
default: withCtx(() => [
|
|
17791
|
-
|
|
17792
|
-
|
|
17823
|
+
createVNode(unref(WIcon), {
|
|
17824
|
+
size: "toolbaricon",
|
|
17825
|
+
authCode: button.authCode
|
|
17826
|
+
}, null, 8, ["authCode"]),
|
|
17827
|
+
createTextVNode(" " + toDisplayString$1(button.label ? unref(t2)(button.label) : button.label), 1)
|
|
17793
17828
|
]),
|
|
17794
|
-
_:
|
|
17795
|
-
})
|
|
17796
|
-
|
|
17797
|
-
|
|
17798
|
-
|
|
17799
|
-
|
|
17829
|
+
_: 2
|
|
17830
|
+
}, 1032, ["type", "onClick"]);
|
|
17831
|
+
}), 128)),
|
|
17832
|
+
tBtns.value.more.length ? (openBlock(), createBlock(unref(Dropdown), { key: 1 }, {
|
|
17833
|
+
overlay: withCtx(() => [
|
|
17834
|
+
createVNode(unref(Menu), { onClick: handleClickMoreButton }, {
|
|
17835
|
+
default: withCtx(() => [
|
|
17836
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(tBtns.value.more, (button) => {
|
|
17837
|
+
return openBlock(), createBlock(unref(MenuItem), {
|
|
17838
|
+
key: button.key ?? button.authCode
|
|
17839
|
+
}, {
|
|
17840
|
+
default: withCtx(() => [
|
|
17841
|
+
createVNode(unref(WIcon), {
|
|
17842
|
+
size: "toolbaricon",
|
|
17843
|
+
authCode: button.authCode
|
|
17844
|
+
}, null, 8, ["authCode"]),
|
|
17845
|
+
createTextVNode(" " + toDisplayString$1(button.label ? unref(t2)(button.label) : button.label), 1)
|
|
17846
|
+
]),
|
|
17847
|
+
_: 2
|
|
17848
|
+
}, 1024);
|
|
17849
|
+
}), 128))
|
|
17850
|
+
]),
|
|
17851
|
+
_: 1
|
|
17852
|
+
})
|
|
17853
|
+
]),
|
|
17854
|
+
default: withCtx(() => [
|
|
17855
|
+
createVNode(unref(Button), null, {
|
|
17856
|
+
default: withCtx(() => [
|
|
17857
|
+
createTextVNode(toDisplayString$1(unref(t2)("com_lab_2941")) + " ", 1),
|
|
17858
|
+
createVNode(unref(_sfc_main$16), { type: "DownOutlined" })
|
|
17859
|
+
]),
|
|
17860
|
+
_: 1
|
|
17861
|
+
})
|
|
17862
|
+
]),
|
|
17863
|
+
_: 1
|
|
17864
|
+
})) : createCommentVNode("", true)
|
|
17865
|
+
];
|
|
17866
|
+
}),
|
|
17800
17867
|
key: "0"
|
|
17801
17868
|
} : void 0,
|
|
17802
17869
|
renderList(_ctx.$slots, (_item, name) => {
|
|
@@ -17833,7 +17900,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
17833
17900
|
};
|
|
17834
17901
|
}
|
|
17835
17902
|
});
|
|
17836
|
-
const ListTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
17903
|
+
const ListTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-9fb9be78"]]);
|
|
17837
17904
|
const _hoisted_1$b = { class: "list-pager-wrapper" };
|
|
17838
17905
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
17839
17906
|
...{
|
|
@@ -17898,8 +17965,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
17898
17965
|
emits: /* @__PURE__ */ mergeModels(["selectAction", "reset", "changeTab", "listLoaded"], ["update:activeTabKey"]),
|
|
17899
17966
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
17900
17967
|
useCssVars((_ctx) => ({
|
|
17901
|
-
"
|
|
17902
|
-
"
|
|
17968
|
+
"af28a0de": unref(token).boxShadow,
|
|
17969
|
+
"v1cf8fec0": `${unref(token).borderRadius}px`
|
|
17903
17970
|
}));
|
|
17904
17971
|
const WListHeaderPropsKeyMirror = {
|
|
17905
17972
|
column: true,
|
|
@@ -18114,7 +18181,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
18114
18181
|
!(headerProps == null ? void 0 : headerProps.stopGetList) && getList().catch((err) => err);
|
|
18115
18182
|
});
|
|
18116
18183
|
async function getList(params) {
|
|
18117
|
-
var _a, _b, _c;
|
|
18184
|
+
var _a, _b, _c, _d;
|
|
18118
18185
|
try {
|
|
18119
18186
|
await ((_b = (_a = headerRef.value) == null ? void 0 : _a.getFormInstance()) == null ? void 0 : _b.validate());
|
|
18120
18187
|
form.value = { ...form.value, ...params };
|
|
@@ -18130,7 +18197,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
18130
18197
|
if (typeof (headerProps == null ? void 0 : headerProps.translateForm) === "function") {
|
|
18131
18198
|
data = await (headerProps == null ? void 0 : headerProps.translateForm(data));
|
|
18132
18199
|
}
|
|
18133
|
-
headerProps == null ? void 0 : headerProps.option.forEach((item) => {
|
|
18200
|
+
(_d = headerProps == null ? void 0 : headerProps.option) == null ? void 0 : _d.forEach((item) => {
|
|
18134
18201
|
if (["dateRange", "timeRange"].includes(item.type) && item.delModel !== false) {
|
|
18135
18202
|
delete data[item.model];
|
|
18136
18203
|
}
|
|
@@ -18289,7 +18356,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
18289
18356
|
};
|
|
18290
18357
|
}
|
|
18291
18358
|
});
|
|
18292
|
-
const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
18359
|
+
const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-a5247253"]]);
|
|
18293
18360
|
const _hoisted_1$a = ["onClick"];
|
|
18294
18361
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
18295
18362
|
...{
|
|
@@ -19634,26 +19701,25 @@ const hasAuth$1 = (value) => {
|
|
|
19634
19701
|
}
|
|
19635
19702
|
return false;
|
|
19636
19703
|
};
|
|
19637
|
-
function
|
|
19638
|
-
var _a;
|
|
19704
|
+
function updateElement(el, binding) {
|
|
19639
19705
|
const {
|
|
19640
|
-
|
|
19641
|
-
|
|
19706
|
+
value,
|
|
19707
|
+
oldValue,
|
|
19708
|
+
modifiers: { page: page2 }
|
|
19642
19709
|
} = binding;
|
|
19643
|
-
|
|
19644
|
-
|
|
19645
|
-
|
|
19646
|
-
|
|
19647
|
-
|
|
19648
|
-
|
|
19649
|
-
|
|
19710
|
+
if (!value || value !== oldValue) {
|
|
19711
|
+
nextTick(() => {
|
|
19712
|
+
if (page2) {
|
|
19713
|
+
!hasAuth$1(value) && (el.innerHTML = `<div class="page-no-auth">${t("com_msg_4527")}</div>`);
|
|
19714
|
+
} else if (el.style) {
|
|
19715
|
+
el.style.display = hasAuth$1(value) ? "" : "none";
|
|
19716
|
+
}
|
|
19717
|
+
});
|
|
19650
19718
|
}
|
|
19651
19719
|
}
|
|
19652
|
-
const mounted$1 = (el, binding) => {
|
|
19653
|
-
auth(el, binding);
|
|
19654
|
-
};
|
|
19655
19720
|
const authDirective = {
|
|
19656
|
-
mounted:
|
|
19721
|
+
mounted: updateElement,
|
|
19722
|
+
updated: updateElement
|
|
19657
19723
|
};
|
|
19658
19724
|
const setupAuthDirective = (app) => {
|
|
19659
19725
|
app.directive("auth", authDirective);
|