@airpower/web 1.5.9 → 1.5.10
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/components/form/FormField.vue.d.ts +2 -2
- package/dist/components/image/Image.vue.d.ts +4 -4
- package/dist/components/input/Input.vue.d.ts +2 -2
- package/dist/components/select/Select.vue.d.ts +5 -5
- package/dist/components/tree/TreeBox.vue.d.ts +3 -3
- package/dist/main.js +700 -797
- package/dist/web.css +17 -17
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1
4
|
import { defineComponent, createElementBlock, openBlock, createElementVNode, computed, createBlock, unref, mergeProps, toHandlers, withCtx, renderSlot, resolveComponent, createVNode, createTextVNode, toDisplayString, ref, withModifiers, normalizeClass, onMounted, watch, resolveDirective, Transition, normalizeStyle, withDirectives, createCommentVNode, nextTick, inject, shallowRef, shallowReactive, reactive, h, provide, getCurrentInstance, watchEffect, Fragment, renderList, vShow, useSlots, createSlots, createApp, onUpdated, mergeModels, useModel, withKeys } from "vue";
|
|
2
5
|
import ElementPlus, { ElLink, ElButton, ElMessage, ElMessageBox, ElIcon, ElEmpty, ElFormItem, ElSubMenu, ElMenuItem, ElMenu, ElImage, ElUpload, ElPagination, ElPopover, ElRadioGroup, ElRadioButton, ElInput, ElProgress, ElTabPane, ElTabs, ElCheckTag, ElSelect, ElOption, ElTable, ElTableColumn, ElTree } from "element-plus";
|
|
3
6
|
import axios from "axios";
|
|
@@ -603,137 +606,6 @@ var HttpStatus = /* @__PURE__ */ ((HttpStatus2) => {
|
|
|
603
606
|
return HttpStatus2;
|
|
604
607
|
})(HttpStatus || {});
|
|
605
608
|
class WebConfig {
|
|
606
|
-
/**
|
|
607
|
-
* ### 应用标识
|
|
608
|
-
*/
|
|
609
|
-
static appKey = "AirPower";
|
|
610
|
-
/**
|
|
611
|
-
* ### 是否自动处理权限前缀
|
|
612
|
-
*/
|
|
613
|
-
static autoPermissionPrefix = true;
|
|
614
|
-
/**
|
|
615
|
-
* ### 最大文本域长度
|
|
616
|
-
*/
|
|
617
|
-
static maxTextAreaLength = 200;
|
|
618
|
-
/**
|
|
619
|
-
* ### 最大文本长度
|
|
620
|
-
*/
|
|
621
|
-
static maxTextLength = 50;
|
|
622
|
-
/**
|
|
623
|
-
* ### 文本域的最小行数
|
|
624
|
-
*/
|
|
625
|
-
static textareaMinRows = 3;
|
|
626
|
-
/**
|
|
627
|
-
* ### 文本域的最大行数
|
|
628
|
-
*/
|
|
629
|
-
static textareaMaxRows = 6;
|
|
630
|
-
/**
|
|
631
|
-
* ### 上传地址
|
|
632
|
-
*/
|
|
633
|
-
static uploadUrl = "/upload";
|
|
634
|
-
/**
|
|
635
|
-
* ### 是否禁用权限
|
|
636
|
-
*
|
|
637
|
-
* - 如此项配置为 `true`, 则所有自动处理权限的功能都将失效。
|
|
638
|
-
*/
|
|
639
|
-
static disablePermission = false;
|
|
640
|
-
/**
|
|
641
|
-
* ### 金额方向 (向上取、向下取、四舍五入)
|
|
642
|
-
*/
|
|
643
|
-
static moneyDirection = "down";
|
|
644
|
-
/**
|
|
645
|
-
* ### 金额精度
|
|
646
|
-
*/
|
|
647
|
-
static moneyPrecision = 2;
|
|
648
|
-
/**
|
|
649
|
-
* ### 每页显示条数可选项
|
|
650
|
-
*/
|
|
651
|
-
static pageSizes = [10, 20, 50, 100];
|
|
652
|
-
/**
|
|
653
|
-
* ### 默认的上传文件名称
|
|
654
|
-
*/
|
|
655
|
-
static uploadFileName = "file";
|
|
656
|
-
/**
|
|
657
|
-
* ### element-plus 语言包
|
|
658
|
-
*/
|
|
659
|
-
static elementPlusLocale = zhCn;
|
|
660
|
-
/**
|
|
661
|
-
* ### 权限缓存 `Key`
|
|
662
|
-
*/
|
|
663
|
-
static permissionCacheKey = "permissions";
|
|
664
|
-
/**
|
|
665
|
-
* ### 接口根地址
|
|
666
|
-
* 以 `/` 结尾
|
|
667
|
-
*/
|
|
668
|
-
static apiUrl = "/api/";
|
|
669
|
-
/**
|
|
670
|
-
* ### 最大数字
|
|
671
|
-
*/
|
|
672
|
-
static maxNumber = 999999999;
|
|
673
|
-
/**
|
|
674
|
-
* ### 最小数字
|
|
675
|
-
*/
|
|
676
|
-
static minNumber = 0;
|
|
677
|
-
/**
|
|
678
|
-
* ### `AccessToken` 对应的 `Key`
|
|
679
|
-
*/
|
|
680
|
-
static authorizationHeaderKey = HttpHeader.AUTHORIZATION;
|
|
681
|
-
/**
|
|
682
|
-
* ### 全局 `http` 请求返回 成功状态码
|
|
683
|
-
*/
|
|
684
|
-
static successCode = HttpStatus.OK;
|
|
685
|
-
/**
|
|
686
|
-
* ### 全局 `http` 请求返回 登录状态码
|
|
687
|
-
*/
|
|
688
|
-
static unAuthorizeCode = HttpStatus.UNAUTHORIZED;
|
|
689
|
-
/**
|
|
690
|
-
* ### 超时时间 毫秒
|
|
691
|
-
* 超时后请求会自动断开并抛出异常
|
|
692
|
-
*/
|
|
693
|
-
static timeout = 5e3;
|
|
694
|
-
/**
|
|
695
|
-
* ### 导出模板地址
|
|
696
|
-
*/
|
|
697
|
-
static importTemplateUrl = "/export/template";
|
|
698
|
-
/**
|
|
699
|
-
* ### 导入API地址
|
|
700
|
-
*/
|
|
701
|
-
static importUrl = "/import";
|
|
702
|
-
/**
|
|
703
|
-
* ### 导出API地址
|
|
704
|
-
*/
|
|
705
|
-
static exportUrl = "/export";
|
|
706
|
-
/**
|
|
707
|
-
* ### 导出查询API地址
|
|
708
|
-
*/
|
|
709
|
-
static exportQueryUrl = "/queryExport";
|
|
710
|
-
/**
|
|
711
|
-
* ### 静态资源地址
|
|
712
|
-
*/
|
|
713
|
-
static staticUrl = "/static";
|
|
714
|
-
/**
|
|
715
|
-
* ### 登录地址
|
|
716
|
-
*/
|
|
717
|
-
static loginUrl = "/login";
|
|
718
|
-
/**
|
|
719
|
-
* ### 小数精度位数
|
|
720
|
-
*/
|
|
721
|
-
static numberPrecision = 2;
|
|
722
|
-
/**
|
|
723
|
-
* ### 是否超时
|
|
724
|
-
*/
|
|
725
|
-
static isTimeout = false;
|
|
726
|
-
/**
|
|
727
|
-
* ### 产品名称
|
|
728
|
-
*/
|
|
729
|
-
static product = "AirPower";
|
|
730
|
-
/**
|
|
731
|
-
* ### 树形控件属性
|
|
732
|
-
*/
|
|
733
|
-
static treeProps = {
|
|
734
|
-
children: "children",
|
|
735
|
-
label: "name"
|
|
736
|
-
};
|
|
737
609
|
/**
|
|
738
610
|
* ### 获取身份令牌
|
|
739
611
|
*/
|
|
@@ -754,6 +626,137 @@ class WebConfig {
|
|
|
754
626
|
localStorage.setItem(this.authorizationHeaderKey, accessToken);
|
|
755
627
|
}
|
|
756
628
|
}
|
|
629
|
+
/**
|
|
630
|
+
* ### 应用标识
|
|
631
|
+
*/
|
|
632
|
+
__publicField(WebConfig, "appKey", "AirPower");
|
|
633
|
+
/**
|
|
634
|
+
* ### 是否自动处理权限前缀
|
|
635
|
+
*/
|
|
636
|
+
__publicField(WebConfig, "autoPermissionPrefix", true);
|
|
637
|
+
/**
|
|
638
|
+
* ### 最大文本域长度
|
|
639
|
+
*/
|
|
640
|
+
__publicField(WebConfig, "maxTextAreaLength", 200);
|
|
641
|
+
/**
|
|
642
|
+
* ### 最大文本长度
|
|
643
|
+
*/
|
|
644
|
+
__publicField(WebConfig, "maxTextLength", 50);
|
|
645
|
+
/**
|
|
646
|
+
* ### 文本域的最小行数
|
|
647
|
+
*/
|
|
648
|
+
__publicField(WebConfig, "textareaMinRows", 3);
|
|
649
|
+
/**
|
|
650
|
+
* ### 文本域的最大行数
|
|
651
|
+
*/
|
|
652
|
+
__publicField(WebConfig, "textareaMaxRows", 6);
|
|
653
|
+
/**
|
|
654
|
+
* ### 上传地址
|
|
655
|
+
*/
|
|
656
|
+
__publicField(WebConfig, "uploadUrl", "/upload");
|
|
657
|
+
/**
|
|
658
|
+
* ### 是否禁用权限
|
|
659
|
+
*
|
|
660
|
+
* - 如此项配置为 `true`, 则所有自动处理权限的功能都将失效。
|
|
661
|
+
*/
|
|
662
|
+
__publicField(WebConfig, "disablePermission", false);
|
|
663
|
+
/**
|
|
664
|
+
* ### 金额方向 (向上取、向下取、四舍五入)
|
|
665
|
+
*/
|
|
666
|
+
__publicField(WebConfig, "moneyDirection", "down");
|
|
667
|
+
/**
|
|
668
|
+
* ### 金额精度
|
|
669
|
+
*/
|
|
670
|
+
__publicField(WebConfig, "moneyPrecision", 2);
|
|
671
|
+
/**
|
|
672
|
+
* ### 每页显示条数可选项
|
|
673
|
+
*/
|
|
674
|
+
__publicField(WebConfig, "pageSizes", [10, 20, 50, 100]);
|
|
675
|
+
/**
|
|
676
|
+
* ### 默认的上传文件名称
|
|
677
|
+
*/
|
|
678
|
+
__publicField(WebConfig, "uploadFileName", "file");
|
|
679
|
+
/**
|
|
680
|
+
* ### element-plus 语言包
|
|
681
|
+
*/
|
|
682
|
+
__publicField(WebConfig, "elementPlusLocale", zhCn);
|
|
683
|
+
/**
|
|
684
|
+
* ### 权限缓存 `Key`
|
|
685
|
+
*/
|
|
686
|
+
__publicField(WebConfig, "permissionCacheKey", "permissions");
|
|
687
|
+
/**
|
|
688
|
+
* ### 接口根地址
|
|
689
|
+
* 以 `/` 结尾
|
|
690
|
+
*/
|
|
691
|
+
__publicField(WebConfig, "apiUrl", "/api/");
|
|
692
|
+
/**
|
|
693
|
+
* ### 最大数字
|
|
694
|
+
*/
|
|
695
|
+
__publicField(WebConfig, "maxNumber", 999999999);
|
|
696
|
+
/**
|
|
697
|
+
* ### 最小数字
|
|
698
|
+
*/
|
|
699
|
+
__publicField(WebConfig, "minNumber", 0);
|
|
700
|
+
/**
|
|
701
|
+
* ### `AccessToken` 对应的 `Key`
|
|
702
|
+
*/
|
|
703
|
+
__publicField(WebConfig, "authorizationHeaderKey", HttpHeader.AUTHORIZATION);
|
|
704
|
+
/**
|
|
705
|
+
* ### 全局 `http` 请求返回 成功状态码
|
|
706
|
+
*/
|
|
707
|
+
__publicField(WebConfig, "successCode", HttpStatus.OK);
|
|
708
|
+
/**
|
|
709
|
+
* ### 全局 `http` 请求返回 登录状态码
|
|
710
|
+
*/
|
|
711
|
+
__publicField(WebConfig, "unAuthorizeCode", HttpStatus.UNAUTHORIZED);
|
|
712
|
+
/**
|
|
713
|
+
* ### 超时时间 毫秒
|
|
714
|
+
* 超时后请求会自动断开并抛出异常
|
|
715
|
+
*/
|
|
716
|
+
__publicField(WebConfig, "timeout", 5e3);
|
|
717
|
+
/**
|
|
718
|
+
* ### 导出模板地址
|
|
719
|
+
*/
|
|
720
|
+
__publicField(WebConfig, "importTemplateUrl", "/export/template");
|
|
721
|
+
/**
|
|
722
|
+
* ### 导入API地址
|
|
723
|
+
*/
|
|
724
|
+
__publicField(WebConfig, "importUrl", "/import");
|
|
725
|
+
/**
|
|
726
|
+
* ### 导出API地址
|
|
727
|
+
*/
|
|
728
|
+
__publicField(WebConfig, "exportUrl", "/export");
|
|
729
|
+
/**
|
|
730
|
+
* ### 导出查询API地址
|
|
731
|
+
*/
|
|
732
|
+
__publicField(WebConfig, "exportQueryUrl", "/queryExport");
|
|
733
|
+
/**
|
|
734
|
+
* ### 静态资源地址
|
|
735
|
+
*/
|
|
736
|
+
__publicField(WebConfig, "staticUrl", "/static");
|
|
737
|
+
/**
|
|
738
|
+
* ### 登录地址
|
|
739
|
+
*/
|
|
740
|
+
__publicField(WebConfig, "loginUrl", "/login");
|
|
741
|
+
/**
|
|
742
|
+
* ### 小数精度位数
|
|
743
|
+
*/
|
|
744
|
+
__publicField(WebConfig, "numberPrecision", 2);
|
|
745
|
+
/**
|
|
746
|
+
* ### 是否超时
|
|
747
|
+
*/
|
|
748
|
+
__publicField(WebConfig, "isTimeout", false);
|
|
749
|
+
/**
|
|
750
|
+
* ### 产品名称
|
|
751
|
+
*/
|
|
752
|
+
__publicField(WebConfig, "product", "AirPower");
|
|
753
|
+
/**
|
|
754
|
+
* ### 树形控件属性
|
|
755
|
+
*/
|
|
756
|
+
__publicField(WebConfig, "treeProps", {
|
|
757
|
+
children: "children",
|
|
758
|
+
label: "name"
|
|
759
|
+
});
|
|
757
760
|
class Transformer {
|
|
758
761
|
/**
|
|
759
762
|
* ### 从 `JSON` 转换到当前类的对象
|
|
@@ -889,28 +892,26 @@ class Transformer {
|
|
|
889
892
|
* @param fields 属性列表
|
|
890
893
|
*/
|
|
891
894
|
expose(...fields) {
|
|
892
|
-
const
|
|
893
|
-
const fieldList = Object.keys(copy);
|
|
895
|
+
const fieldList = Object.keys(this);
|
|
894
896
|
for (const field of fieldList) {
|
|
895
897
|
if (!fields.includes(field)) {
|
|
896
|
-
|
|
898
|
+
this[field] = void 0;
|
|
897
899
|
}
|
|
898
900
|
}
|
|
899
|
-
return
|
|
901
|
+
return this;
|
|
900
902
|
}
|
|
901
903
|
/**
|
|
902
904
|
* ### 排除部分类的属性
|
|
903
905
|
* @param fields 属性列表
|
|
904
906
|
*/
|
|
905
907
|
exclude(...fields) {
|
|
906
|
-
const
|
|
907
|
-
const fieldList = Object.keys(copy);
|
|
908
|
+
const fieldList = Object.keys(this);
|
|
908
909
|
for (const field of fieldList) {
|
|
909
910
|
if (fields.includes(field)) {
|
|
910
|
-
|
|
911
|
+
this[field] = void 0;
|
|
911
912
|
}
|
|
912
913
|
}
|
|
913
|
-
return
|
|
914
|
+
return this;
|
|
914
915
|
}
|
|
915
916
|
/**
|
|
916
917
|
* ### 用指定的数据对当前实例进行覆盖
|
|
@@ -1129,10 +1130,6 @@ var PermissionAction = /* @__PURE__ */ ((PermissionAction2) => {
|
|
|
1129
1130
|
return PermissionAction2;
|
|
1130
1131
|
})(PermissionAction || {});
|
|
1131
1132
|
class PermissionUtil {
|
|
1132
|
-
/**
|
|
1133
|
-
* ### 权限列表
|
|
1134
|
-
*/
|
|
1135
|
-
static permissionList = [];
|
|
1136
1133
|
/**
|
|
1137
1134
|
* ### 获取权限标识
|
|
1138
1135
|
* - 如 `action` 对应装饰的 `xxxPermission` 是空字符串,则表示无需权限,否则:
|
|
@@ -1155,15 +1152,15 @@ class PermissionUtil {
|
|
|
1155
1152
|
let permission;
|
|
1156
1153
|
const modelConfig = getModelConfig(EntityClass);
|
|
1157
1154
|
const actionRecord = {
|
|
1158
|
-
[PermissionAction.ADD]: modelConfig
|
|
1159
|
-
[PermissionAction.DELETE]: modelConfig
|
|
1160
|
-
[PermissionAction.EDIT]: modelConfig
|
|
1161
|
-
[PermissionAction.DETAIL]: modelConfig
|
|
1162
|
-
[PermissionAction.ADD_CHILD]: modelConfig
|
|
1163
|
-
[PermissionAction.EXPORT]: modelConfig
|
|
1164
|
-
[PermissionAction.IMPORT]: modelConfig
|
|
1165
|
-
[PermissionAction.DISABLE]: modelConfig
|
|
1166
|
-
[PermissionAction.ENABLE]: modelConfig
|
|
1155
|
+
[PermissionAction.ADD]: modelConfig == null ? void 0 : modelConfig.addPermission,
|
|
1156
|
+
[PermissionAction.DELETE]: modelConfig == null ? void 0 : modelConfig.deletePermission,
|
|
1157
|
+
[PermissionAction.EDIT]: modelConfig == null ? void 0 : modelConfig.editPermission,
|
|
1158
|
+
[PermissionAction.DETAIL]: modelConfig == null ? void 0 : modelConfig.detailPermission,
|
|
1159
|
+
[PermissionAction.ADD_CHILD]: modelConfig == null ? void 0 : modelConfig.addChildPermission,
|
|
1160
|
+
[PermissionAction.EXPORT]: modelConfig == null ? void 0 : modelConfig.exportPermission,
|
|
1161
|
+
[PermissionAction.IMPORT]: modelConfig == null ? void 0 : modelConfig.importPermission,
|
|
1162
|
+
[PermissionAction.DISABLE]: modelConfig == null ? void 0 : modelConfig.disablePermission,
|
|
1163
|
+
[PermissionAction.ENABLE]: modelConfig == null ? void 0 : modelConfig.enablePermission
|
|
1167
1164
|
};
|
|
1168
1165
|
const keys = Object.keys(actionRecord);
|
|
1169
1166
|
if (keys.includes(action)) {
|
|
@@ -1177,7 +1174,7 @@ class PermissionUtil {
|
|
|
1177
1174
|
if (permission === void 0) {
|
|
1178
1175
|
permission = action;
|
|
1179
1176
|
}
|
|
1180
|
-
let prefix = modelConfig
|
|
1177
|
+
let prefix = modelConfig == null ? void 0 : modelConfig.permissionPrefix;
|
|
1181
1178
|
if (prefix === "") {
|
|
1182
1179
|
return permission;
|
|
1183
1180
|
}
|
|
@@ -1218,6 +1215,10 @@ class PermissionUtil {
|
|
|
1218
1215
|
return this.permissionList.includes(permission);
|
|
1219
1216
|
}
|
|
1220
1217
|
}
|
|
1218
|
+
/**
|
|
1219
|
+
* ### 权限列表
|
|
1220
|
+
*/
|
|
1221
|
+
__publicField(PermissionUtil, "permissionList", []);
|
|
1221
1222
|
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
1222
1223
|
__name: "Button",
|
|
1223
1224
|
props: {
|
|
@@ -1356,12 +1357,7 @@ function getAugmentedNamespace(n) {
|
|
|
1356
1357
|
var f = n.default;
|
|
1357
1358
|
if (typeof f == "function") {
|
|
1358
1359
|
var a = function a2() {
|
|
1359
|
-
|
|
1360
|
-
try {
|
|
1361
|
-
isInstance = this instanceof a2;
|
|
1362
|
-
} catch {
|
|
1363
|
-
}
|
|
1364
|
-
if (isInstance) {
|
|
1360
|
+
if (this instanceof a2) {
|
|
1365
1361
|
return Reflect.construct(f, arguments, this.constructor);
|
|
1366
1362
|
}
|
|
1367
1363
|
return f.apply(this, arguments);
|
|
@@ -2055,6 +2051,9 @@ const useClipboard = (opts) => {
|
|
|
2055
2051
|
}
|
|
2056
2052
|
};
|
|
2057
2053
|
};
|
|
2054
|
+
var __defProp$6 = Object.defineProperty;
|
|
2055
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2056
|
+
var __publicField$2 = (obj, key, value) => __defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2058
2057
|
var Language = /* @__PURE__ */ ((Language2) => {
|
|
2059
2058
|
Language2["English"] = "English";
|
|
2060
2059
|
Language2["ChineseSimplified"] = "简体中文";
|
|
@@ -2073,40 +2072,31 @@ var Language = /* @__PURE__ */ ((Language2) => {
|
|
|
2073
2072
|
Language2["Italian"] = "Italiano";
|
|
2074
2073
|
return Language2;
|
|
2075
2074
|
})(Language || {});
|
|
2076
|
-
class
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
static currentLanguage;
|
|
2081
|
-
/**
|
|
2082
|
-
* ### 语言列表
|
|
2083
|
-
*/
|
|
2084
|
-
static languages = [];
|
|
2085
|
-
/**
|
|
2086
|
-
* ### 语言名称
|
|
2087
|
-
*/
|
|
2088
|
-
language = Language.ChineseSimplified;
|
|
2075
|
+
const _I18n = class _I18n2 {
|
|
2076
|
+
constructor() {
|
|
2077
|
+
__publicField$2(this, "language", Language.ChineseSimplified);
|
|
2078
|
+
}
|
|
2089
2079
|
/**
|
|
2090
2080
|
* ### 获取当前使用的语言
|
|
2091
2081
|
* @returns 当前使用的语言
|
|
2092
2082
|
*/
|
|
2093
2083
|
static getCurrentLanguage() {
|
|
2094
|
-
return
|
|
2084
|
+
return this.currentLanguage;
|
|
2095
2085
|
}
|
|
2096
2086
|
/**
|
|
2097
2087
|
* ### 获取支持的语言列表
|
|
2098
2088
|
* @returns 语言列表
|
|
2099
2089
|
*/
|
|
2100
2090
|
static getLanguages() {
|
|
2101
|
-
return
|
|
2091
|
+
return this.languages.map((item) => item.language);
|
|
2102
2092
|
}
|
|
2103
2093
|
/**
|
|
2104
2094
|
* ### 获取翻译后的字符串
|
|
2105
2095
|
* @returns 翻译后的字符串
|
|
2106
2096
|
*/
|
|
2107
2097
|
static get() {
|
|
2108
|
-
|
|
2109
|
-
return
|
|
2098
|
+
this.initDefaultLanguage();
|
|
2099
|
+
return this.package || new _I18n2();
|
|
2110
2100
|
}
|
|
2111
2101
|
/**
|
|
2112
2102
|
* ### 添加国际化语言
|
|
@@ -2114,115 +2104,108 @@ class I18n {
|
|
|
2114
2104
|
*/
|
|
2115
2105
|
static addLanguage(...languages) {
|
|
2116
2106
|
if (languages.length === 0) {
|
|
2117
|
-
|
|
2118
|
-
return;
|
|
2107
|
+
throw new Error("languages is empty");
|
|
2119
2108
|
}
|
|
2120
|
-
|
|
2109
|
+
this.initDefaultLanguage();
|
|
2121
2110
|
languages.forEach((item) => {
|
|
2122
|
-
|
|
2111
|
+
_I18n2.languages.push(item);
|
|
2123
2112
|
});
|
|
2113
|
+
_I18n2.package = _I18n2.languages.find((item) => item.language === _I18n2.currentLanguage) || _I18n2.languages[0];
|
|
2124
2114
|
}
|
|
2125
2115
|
/**
|
|
2126
2116
|
* ### 设置当前使用的语言
|
|
2127
2117
|
* @param language 语言
|
|
2128
2118
|
*/
|
|
2129
2119
|
static setCurrentLanguage(language) {
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
}
|
|
2133
|
-
I18n.currentLanguage = I18n.languages.find((item) => item.language === language) || I18n.languages[0];
|
|
2120
|
+
this.currentLanguage = language;
|
|
2121
|
+
this.package = this.languages.find((item) => item.language === this.currentLanguage) || this.languages[0];
|
|
2134
2122
|
}
|
|
2135
2123
|
/**
|
|
2136
|
-
* ###
|
|
2137
|
-
* @param language 语言
|
|
2124
|
+
* ### 初始化默认语言
|
|
2138
2125
|
*/
|
|
2139
|
-
static
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
I18n.languages[i] = language;
|
|
2144
|
-
isExist = true;
|
|
2145
|
-
break;
|
|
2146
|
-
}
|
|
2147
|
-
}
|
|
2148
|
-
if (!isExist) {
|
|
2149
|
-
I18n.languages.push(language);
|
|
2150
|
-
}
|
|
2151
|
-
if (!I18n.currentLanguage) {
|
|
2152
|
-
I18n.currentLanguage = language;
|
|
2126
|
+
static initDefaultLanguage() {
|
|
2127
|
+
if (this.languages.length === 0) {
|
|
2128
|
+
this.languages.push(JSON.parse(JSON.stringify(new this())));
|
|
2129
|
+
this.setCurrentLanguage(this.languages[0].language);
|
|
2153
2130
|
}
|
|
2154
2131
|
}
|
|
2155
|
-
}
|
|
2132
|
+
};
|
|
2133
|
+
__publicField$2(_I18n, "currentLanguage", Language.ChineseSimplified);
|
|
2134
|
+
__publicField$2(_I18n, "package");
|
|
2135
|
+
__publicField$2(_I18n, "languages", []);
|
|
2136
|
+
let I18n = _I18n;
|
|
2156
2137
|
class WebI18n extends I18n {
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2138
|
+
constructor() {
|
|
2139
|
+
super(...arguments);
|
|
2140
|
+
__publicField(this, "ID", "ID");
|
|
2141
|
+
__publicField(this, "Detail", "详情");
|
|
2142
|
+
__publicField(this, "Update", "修改");
|
|
2143
|
+
__publicField(this, "Disable", "禁用");
|
|
2144
|
+
__publicField(this, "Enable", "启用");
|
|
2145
|
+
__publicField(this, "Delete", "删除");
|
|
2146
|
+
__publicField(this, "Add", "添加");
|
|
2147
|
+
__publicField(this, "UpdateSuccess", "修改成功");
|
|
2148
|
+
__publicField(this, "AddSuccess", "添加成功");
|
|
2149
|
+
__publicField(this, "DeleteSuccess", "删除成功");
|
|
2150
|
+
__publicField(this, "SelectPlease", "请选择");
|
|
2151
|
+
__publicField(this, "InputPlease", "请输入");
|
|
2152
|
+
__publicField(this, "DisableSuccess", "禁用成功");
|
|
2153
|
+
__publicField(this, "EnableSuccess", "启用成功");
|
|
2154
|
+
__publicField(this, "Confirm", "确定");
|
|
2155
|
+
__publicField(this, "Cancel", "取消");
|
|
2156
|
+
__publicField(this, "ConfirmPlease", "请确认");
|
|
2157
|
+
__publicField(this, "ConfirmToDisable", "是否确认禁用当前选择的数据?");
|
|
2158
|
+
__publicField(this, "ConfirmToEnable", "是否确认启用当前选择的数据?");
|
|
2159
|
+
__publicField(this, "ConfirmToDelete", "是否确认删除当前选择的数据?");
|
|
2160
|
+
__publicField(this, "CopySuccess", "成功复制到剪切板!");
|
|
2161
|
+
__publicField(this, "PageSize", "每页");
|
|
2162
|
+
__publicField(this, "InputPageNumber", "请输入页码");
|
|
2163
|
+
__publicField(this, "Jump", "跳转");
|
|
2164
|
+
__publicField(this, "TotalRow", "总条数");
|
|
2165
|
+
__publicField(this, "UploadError", "上传失败");
|
|
2166
|
+
__publicField(this, "UploadSuccess", "上传成功");
|
|
2167
|
+
__publicField(this, "Alert", "温馨提示");
|
|
2168
|
+
__publicField(this, "FileSizeLimited", "上传的文件过大");
|
|
2169
|
+
__publicField(this, "FileTypeNotSupported", "上传的文件暂不支持");
|
|
2170
|
+
__publicField(this, "FileUploadErrorAndRetryPlease", "上传文件失败,请稍后重试");
|
|
2171
|
+
__publicField(this, "ClickHereToUpload", "点击或拖到此处上传");
|
|
2172
|
+
__publicField(this, "FileSize", "文件大小: ");
|
|
2173
|
+
__publicField(this, "FileExtension", "文件类型: ");
|
|
2174
|
+
__publicField(this, "TestError", "正则表达式校验失败");
|
|
2175
|
+
__publicField(this, "InvalidEmail", "请输入正确的邮箱地址");
|
|
2176
|
+
__publicField(this, "InvalidTelPhone", "请输入有效的座机号");
|
|
2177
|
+
__publicField(this, "InvalidPhone", "请输入正确的手机号");
|
|
2178
|
+
__publicField(this, "InvalidLetter", "只能输入字母");
|
|
2179
|
+
__publicField(this, "InvalidNaturalIntegerNumber", "只允许输入非负整数");
|
|
2180
|
+
__publicField(this, "InvalidNumberAndLetter", "只能输入数字和字母");
|
|
2181
|
+
__publicField(this, "IfNotChinese", "只允许输入中文汉字");
|
|
2182
|
+
__publicField(this, "InvalidChineseIdCard", "请输入正确的身份证号码");
|
|
2183
|
+
__publicField(this, "InvalidNumber", "请输入正确的数字");
|
|
2184
|
+
__publicField(this, "InvalidIntegerNumber", "请输入正确的整数");
|
|
2185
|
+
__publicField(this, "InvalidNaturalNumber", "只允许输入非负数字");
|
|
2186
|
+
__publicField(this, "InvalidMobilePhone", "请输入正确的手机号");
|
|
2187
|
+
__publicField(this, "ConfirmToComplete", "请确认填写完整");
|
|
2188
|
+
__publicField(this, "InvalidContain", "不允许输入中包含");
|
|
2189
|
+
__publicField(this, "Import", "导入");
|
|
2190
|
+
__publicField(this, "ImportSuccess", "数据导入成功");
|
|
2191
|
+
__publicField(this, "DownloadTemplate", "下载模板");
|
|
2192
|
+
__publicField(this, "Export", "导出");
|
|
2193
|
+
__publicField(this, "DownloadExportFile", "下载导出文件");
|
|
2194
|
+
__publicField(this, "ExportSuccess", "数据导出成功");
|
|
2195
|
+
__publicField(this, "ExportLoadingAndWaitPlease", "正在导出数据,请稍后等待...");
|
|
2196
|
+
__publicField(this, "NoData", "暂无数据");
|
|
2197
|
+
__publicField(this, "SelectTableColumnsToShow", "选择要显示的列");
|
|
2198
|
+
__publicField(this, "ConfirmToLogout", "是否确认退出登录?");
|
|
2199
|
+
__publicField(this, "Logout", "退出登录");
|
|
2200
|
+
__publicField(this, "Column", "列");
|
|
2201
|
+
__publicField(this, "ImageSupportExtensions", "支持的图片格式:");
|
|
2202
|
+
__publicField(this, "FileMaxSizeAllowed", "最大允许上传文件大小:");
|
|
2203
|
+
__publicField(this, "UploadImage", "上传图片");
|
|
2204
|
+
__publicField(this, "NoPicture", "无图");
|
|
2205
|
+
__publicField(this, "Operation", "操作");
|
|
2206
|
+
}
|
|
2223
2207
|
}
|
|
2224
2208
|
class FeedbackUtil {
|
|
2225
|
-
static defaultToastDuration = 3e3;
|
|
2226
2209
|
/**
|
|
2227
2210
|
* ### 警告吐司
|
|
2228
2211
|
* @param message 消息
|
|
@@ -2374,6 +2357,7 @@ class FeedbackUtil {
|
|
|
2374
2357
|
return this.showAlert(message, title, "info");
|
|
2375
2358
|
}
|
|
2376
2359
|
}
|
|
2360
|
+
__publicField(FeedbackUtil, "defaultToastDuration", 3e3);
|
|
2377
2361
|
const _hoisted_1$i = { class: "a-copy" };
|
|
2378
2362
|
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
2379
2363
|
__name: "Copy",
|
|
@@ -9003,21 +8987,18 @@ function requireCryptoJs() {
|
|
|
9003
8987
|
}
|
|
9004
8988
|
var cryptoJsExports = requireCryptoJs();
|
|
9005
8989
|
const CryptoJS = /* @__PURE__ */ getDefaultExportFromCjs(cryptoJsExports);
|
|
8990
|
+
var __defProp$5 = Object.defineProperty;
|
|
8991
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8992
|
+
var __publicField$1 = (obj, key, value) => __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
9006
8993
|
class Enum {
|
|
9007
|
-
/**
|
|
9008
|
-
* ### 枚举的值
|
|
9009
|
-
*/
|
|
9010
|
-
key;
|
|
9011
|
-
/**
|
|
9012
|
-
* ### 枚举的描述
|
|
9013
|
-
*/
|
|
9014
|
-
label;
|
|
9015
8994
|
/**
|
|
9016
8995
|
* ### 实例化创建一个枚举项目
|
|
9017
8996
|
* @param key 枚举值
|
|
9018
8997
|
* @param label 枚举描述
|
|
9019
8998
|
*/
|
|
9020
8999
|
constructor(key, label) {
|
|
9000
|
+
__publicField$1(this, "key");
|
|
9001
|
+
__publicField$1(this, "label");
|
|
9021
9002
|
this.key = key;
|
|
9022
9003
|
if (label) {
|
|
9023
9004
|
this.label = label;
|
|
@@ -9037,7 +9018,7 @@ class Enum {
|
|
|
9037
9018
|
*/
|
|
9038
9019
|
static getLabel(key, defaultLabel = "-") {
|
|
9039
9020
|
const item = this.get(key);
|
|
9040
|
-
return item
|
|
9021
|
+
return (item == null ? void 0 : item.label) || defaultLabel;
|
|
9041
9022
|
}
|
|
9042
9023
|
/**
|
|
9043
9024
|
* ### 将枚举转为数组
|
|
@@ -9054,11 +9035,10 @@ class Enum {
|
|
|
9054
9035
|
return this.key === key;
|
|
9055
9036
|
}
|
|
9056
9037
|
}
|
|
9038
|
+
var __defProp$4 = Object.defineProperty;
|
|
9039
|
+
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9040
|
+
var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
9057
9041
|
class CryptoUtil {
|
|
9058
|
-
/**
|
|
9059
|
-
* ### AES加解密使用默认向量
|
|
9060
|
-
*/
|
|
9061
|
-
static aesCbcIvString = "0000000000000000";
|
|
9062
9042
|
/**
|
|
9063
9043
|
* ### `AES` 加密方法
|
|
9064
9044
|
* @param data 加密数据
|
|
@@ -9104,69 +9084,22 @@ class CryptoUtil {
|
|
|
9104
9084
|
return CryptoJS.MD5(data).toString();
|
|
9105
9085
|
}
|
|
9106
9086
|
/**
|
|
9107
|
-
*
|
|
9087
|
+
* # Base64编码
|
|
9108
9088
|
* @param data
|
|
9109
9089
|
*/
|
|
9110
9090
|
static base64Encode(data) {
|
|
9111
9091
|
return CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(data));
|
|
9112
9092
|
}
|
|
9113
9093
|
/**
|
|
9114
|
-
*
|
|
9094
|
+
* # Base64解码
|
|
9115
9095
|
* @param data
|
|
9116
9096
|
*/
|
|
9117
9097
|
static base64Decode(data) {
|
|
9118
9098
|
return CryptoJS.enc.Base64.parse(data).toString(CryptoJS.enc.Utf8);
|
|
9119
9099
|
}
|
|
9120
9100
|
}
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
* ### 时间进制
|
|
9124
|
-
*/
|
|
9125
|
-
static SECOND_PER_MINUTE = 60;
|
|
9126
|
-
/**
|
|
9127
|
-
* ### 每小时的秒数
|
|
9128
|
-
*/
|
|
9129
|
-
static SECOND_PER_HOUR = this.SECOND_PER_MINUTE ** 2;
|
|
9130
|
-
/**
|
|
9131
|
-
* ### 每秒的毫秒数
|
|
9132
|
-
*/
|
|
9133
|
-
static MILLISECONDS_PER_SECOND = 1e3;
|
|
9134
|
-
/**
|
|
9135
|
-
* ### 每天小时
|
|
9136
|
-
*/
|
|
9137
|
-
static HOUR_PER_DAY = 24;
|
|
9138
|
-
/**
|
|
9139
|
-
* ### 每月天数
|
|
9140
|
-
*/
|
|
9141
|
-
static DAY_PER_MONTH = 30;
|
|
9142
|
-
/**
|
|
9143
|
-
* ### 每年月份
|
|
9144
|
-
*/
|
|
9145
|
-
static MONTH_PER_YEAR = 12;
|
|
9146
|
-
/**
|
|
9147
|
-
* ### 每年天数
|
|
9148
|
-
*/
|
|
9149
|
-
static DAY_PER_YEAR = 365;
|
|
9150
|
-
/**
|
|
9151
|
-
* ### 每天秒数
|
|
9152
|
-
*/
|
|
9153
|
-
static SECOND_PER_DAY = this.SECOND_PER_HOUR * this.HOUR_PER_DAY;
|
|
9154
|
-
/**
|
|
9155
|
-
* ### 每周天数
|
|
9156
|
-
*/
|
|
9157
|
-
static DAY_PER_WEEK = 7;
|
|
9158
|
-
/**
|
|
9159
|
-
* ### 每年平均周
|
|
9160
|
-
*/
|
|
9161
|
-
static WEEK_PER_YEAR = 52;
|
|
9162
|
-
/**
|
|
9163
|
-
* ### 每月平均周
|
|
9164
|
-
*/
|
|
9165
|
-
static WEEK_PER_MONTH = 4;
|
|
9166
|
-
/**
|
|
9167
|
-
* ### 每天秒数
|
|
9168
|
-
*/
|
|
9169
|
-
static SECONDS_PER_DAY = this.HOUR_PER_DAY * this.SECOND_PER_HOUR;
|
|
9101
|
+
__publicField2(CryptoUtil, "aesCbcIvString", "0000000000000000");
|
|
9102
|
+
const _DateTimeUtil = class _DateTimeUtil2 {
|
|
9170
9103
|
/**
|
|
9171
9104
|
* ### 睡会再起来干活
|
|
9172
9105
|
* 不要忘了`await`,否则没睡醒就起来干活了 :)
|
|
@@ -9300,53 +9233,21 @@ class DateTimeUtil {
|
|
|
9300
9233
|
}
|
|
9301
9234
|
return "Unknown";
|
|
9302
9235
|
}
|
|
9303
|
-
}
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
|
|
9309
|
-
|
|
9310
|
-
|
|
9311
|
-
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
|
|
9315
|
-
|
|
9316
|
-
|
|
9317
|
-
|
|
9318
|
-
/**
|
|
9319
|
-
* ### e.g. `2022-02-02`
|
|
9320
|
-
*/
|
|
9321
|
-
static FULL_DATE = new DateTimeFormatter("YYYY-MM-DD");
|
|
9322
|
-
/**
|
|
9323
|
-
* ### e.g. `22:22:22`
|
|
9324
|
-
*/
|
|
9325
|
-
static FULL_TIME = new DateTimeFormatter("HH:mm:ss");
|
|
9326
|
-
/**
|
|
9327
|
-
* ### e.g. `2022`
|
|
9328
|
-
*/
|
|
9329
|
-
static YEAR = new DateTimeFormatter("YYYY");
|
|
9330
|
-
/**
|
|
9331
|
-
* ### e.g. `02`
|
|
9332
|
-
*/
|
|
9333
|
-
static MONTH = new DateTimeFormatter("MM");
|
|
9334
|
-
/**
|
|
9335
|
-
* ### e.g. `02`
|
|
9336
|
-
*/
|
|
9337
|
-
static DAY = new DateTimeFormatter("DD");
|
|
9338
|
-
/**
|
|
9339
|
-
* ### e.g. `22`
|
|
9340
|
-
*/
|
|
9341
|
-
static HOUR = new DateTimeFormatter("HH");
|
|
9342
|
-
/**
|
|
9343
|
-
* ### e.g. `22`
|
|
9344
|
-
*/
|
|
9345
|
-
static MINUTE = new DateTimeFormatter("mm");
|
|
9346
|
-
/**
|
|
9347
|
-
* ### e.g. `59`
|
|
9348
|
-
*/
|
|
9349
|
-
static SECOND = new DateTimeFormatter("ss");
|
|
9236
|
+
};
|
|
9237
|
+
__publicField2(_DateTimeUtil, "SECOND_PER_MINUTE", 60);
|
|
9238
|
+
__publicField2(_DateTimeUtil, "SECOND_PER_HOUR", _DateTimeUtil.SECOND_PER_MINUTE ** 2);
|
|
9239
|
+
__publicField2(_DateTimeUtil, "MILLISECONDS_PER_SECOND", 1e3);
|
|
9240
|
+
__publicField2(_DateTimeUtil, "HOUR_PER_DAY", 24);
|
|
9241
|
+
__publicField2(_DateTimeUtil, "DAY_PER_MONTH", 30);
|
|
9242
|
+
__publicField2(_DateTimeUtil, "MONTH_PER_YEAR", 12);
|
|
9243
|
+
__publicField2(_DateTimeUtil, "DAY_PER_YEAR", 365);
|
|
9244
|
+
__publicField2(_DateTimeUtil, "SECOND_PER_DAY", _DateTimeUtil.SECOND_PER_HOUR * _DateTimeUtil.HOUR_PER_DAY);
|
|
9245
|
+
__publicField2(_DateTimeUtil, "DAY_PER_WEEK", 7);
|
|
9246
|
+
__publicField2(_DateTimeUtil, "WEEK_PER_YEAR", 52);
|
|
9247
|
+
__publicField2(_DateTimeUtil, "WEEK_PER_MONTH", 4);
|
|
9248
|
+
__publicField2(_DateTimeUtil, "SECONDS_PER_DAY", _DateTimeUtil.HOUR_PER_DAY * _DateTimeUtil.SECOND_PER_HOUR);
|
|
9249
|
+
let DateTimeUtil = _DateTimeUtil;
|
|
9250
|
+
const _DateTimeFormatter = class _DateTimeFormatter2 extends Enum {
|
|
9350
9251
|
/**
|
|
9351
9252
|
* ### 使用这个模板格式化毫秒时间戳
|
|
9352
9253
|
* @param milliSecond 毫秒时间戳
|
|
@@ -9378,20 +9279,20 @@ class DateTimeFormatter extends Enum {
|
|
|
9378
9279
|
format() {
|
|
9379
9280
|
return this.formatDate(/* @__PURE__ */ new Date());
|
|
9380
9281
|
}
|
|
9381
|
-
}
|
|
9382
|
-
|
|
9383
|
-
|
|
9384
|
-
|
|
9385
|
-
|
|
9386
|
-
|
|
9387
|
-
|
|
9388
|
-
|
|
9389
|
-
|
|
9390
|
-
|
|
9391
|
-
|
|
9392
|
-
|
|
9393
|
-
|
|
9394
|
-
|
|
9282
|
+
};
|
|
9283
|
+
__publicField2(_DateTimeFormatter, "FULL_DATE_TIME", new _DateTimeFormatter("YYYY-MM-DD HH:mm:ss"));
|
|
9284
|
+
__publicField2(_DateTimeFormatter, "TIMESTAMP", new _DateTimeFormatter("x"));
|
|
9285
|
+
__publicField2(_DateTimeFormatter, "SHORT_DATE_TIME", new _DateTimeFormatter("MM-DD HH:mm"));
|
|
9286
|
+
__publicField2(_DateTimeFormatter, "FULL_DATE", new _DateTimeFormatter("YYYY-MM-DD"));
|
|
9287
|
+
__publicField2(_DateTimeFormatter, "FULL_TIME", new _DateTimeFormatter("HH:mm:ss"));
|
|
9288
|
+
__publicField2(_DateTimeFormatter, "YEAR", new _DateTimeFormatter("YYYY"));
|
|
9289
|
+
__publicField2(_DateTimeFormatter, "MONTH", new _DateTimeFormatter("MM"));
|
|
9290
|
+
__publicField2(_DateTimeFormatter, "DAY", new _DateTimeFormatter("DD"));
|
|
9291
|
+
__publicField2(_DateTimeFormatter, "HOUR", new _DateTimeFormatter("HH"));
|
|
9292
|
+
__publicField2(_DateTimeFormatter, "MINUTE", new _DateTimeFormatter("mm"));
|
|
9293
|
+
__publicField2(_DateTimeFormatter, "SECOND", new _DateTimeFormatter("ss"));
|
|
9294
|
+
let DateTimeFormatter = _DateTimeFormatter;
|
|
9295
|
+
const _DesensitizeUtil = class _DesensitizeUtil2 {
|
|
9395
9296
|
/**
|
|
9396
9297
|
* ### 字符串替换
|
|
9397
9298
|
*
|
|
@@ -9424,7 +9325,7 @@ class DesensitizeUtil {
|
|
|
9424
9325
|
*/
|
|
9425
9326
|
static desensitizeIpv4Address(ipv4, symbol = this.DEFAULT_MASK) {
|
|
9426
9327
|
const strings = ipv4.split(this.IP_V4_SEPARATOR);
|
|
9427
|
-
if (strings.length !==
|
|
9328
|
+
if (strings.length !== _DesensitizeUtil2.IP_V4_PART_COUNT) {
|
|
9428
9329
|
return ipv4;
|
|
9429
9330
|
}
|
|
9430
9331
|
const temp = symbol + symbol + symbol;
|
|
@@ -9450,7 +9351,7 @@ class DesensitizeUtil {
|
|
|
9450
9351
|
tail = tail <= 0 ? type.tail : tail;
|
|
9451
9352
|
switch (type.key) {
|
|
9452
9353
|
case DesensitizeType.IP_V4.key:
|
|
9453
|
-
return
|
|
9354
|
+
return _DesensitizeUtil2.desensitizeIpv4Address(source, symbol);
|
|
9454
9355
|
case DesensitizeType.CHINESE_NAME.key:
|
|
9455
9356
|
if (source.length <= head + tail) {
|
|
9456
9357
|
tail = 0;
|
|
@@ -9464,56 +9365,12 @@ class DesensitizeUtil {
|
|
|
9464
9365
|
}
|
|
9465
9366
|
return this.replace(source, head, tail, symbol);
|
|
9466
9367
|
}
|
|
9467
|
-
}
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
|
|
9473
|
-
/**
|
|
9474
|
-
* ### 手机号码
|
|
9475
|
-
*/
|
|
9476
|
-
static MOBILE = new DesensitizeType("手机号码", 3, 4);
|
|
9477
|
-
/**
|
|
9478
|
-
* ### 身份证号
|
|
9479
|
-
*/
|
|
9480
|
-
static ID_CARD = new DesensitizeType("身份证号", 6, 4);
|
|
9481
|
-
/**
|
|
9482
|
-
* ### 银行卡号
|
|
9483
|
-
*/
|
|
9484
|
-
static BANK_CARD = new DesensitizeType("银行卡号", 4, 4);
|
|
9485
|
-
/**
|
|
9486
|
-
* ### 车牌号
|
|
9487
|
-
*/
|
|
9488
|
-
static CAR_NUMBER = new DesensitizeType("车牌号", 2, 1);
|
|
9489
|
-
/**
|
|
9490
|
-
* ### 邮箱
|
|
9491
|
-
*/
|
|
9492
|
-
static EMAIL = new DesensitizeType("邮箱", 2, 2);
|
|
9493
|
-
/**
|
|
9494
|
-
* ### 中文姓名
|
|
9495
|
-
*/
|
|
9496
|
-
static CHINESE_NAME = new DesensitizeType("中文名", 1, 1);
|
|
9497
|
-
/**
|
|
9498
|
-
* ### 地址
|
|
9499
|
-
*/
|
|
9500
|
-
static ADDRESS = new DesensitizeType("地址", 3, 0);
|
|
9501
|
-
/**
|
|
9502
|
-
* ### IPv4地址
|
|
9503
|
-
*/
|
|
9504
|
-
static IP_V4 = new DesensitizeType("IPv4地址", 0, 0);
|
|
9505
|
-
/**
|
|
9506
|
-
* ### 自定义
|
|
9507
|
-
*/
|
|
9508
|
-
static CUSTOM = new DesensitizeType("自定义", 0, 0);
|
|
9509
|
-
/**
|
|
9510
|
-
* ### 脱敏头部保留
|
|
9511
|
-
*/
|
|
9512
|
-
head;
|
|
9513
|
-
/**
|
|
9514
|
-
* ### 脱敏尾部保留
|
|
9515
|
-
*/
|
|
9516
|
-
tail;
|
|
9368
|
+
};
|
|
9369
|
+
__publicField2(_DesensitizeUtil, "DEFAULT_MASK", "*");
|
|
9370
|
+
__publicField2(_DesensitizeUtil, "IP_V4_SEPARATOR", ".");
|
|
9371
|
+
__publicField2(_DesensitizeUtil, "IP_V4_PART_COUNT", 4);
|
|
9372
|
+
let DesensitizeUtil = _DesensitizeUtil;
|
|
9373
|
+
const _DesensitizeType = class _DesensitizeType2 extends Enum {
|
|
9517
9374
|
/**
|
|
9518
9375
|
* ### 创建一个脱敏类型
|
|
9519
9376
|
* @param label 脱敏类型
|
|
@@ -9522,6 +9379,8 @@ class DesensitizeType extends Enum {
|
|
|
9522
9379
|
*/
|
|
9523
9380
|
constructor(label, head, tail) {
|
|
9524
9381
|
super(label, label);
|
|
9382
|
+
__publicField2(this, "head");
|
|
9383
|
+
__publicField2(this, "tail");
|
|
9525
9384
|
this.head = head;
|
|
9526
9385
|
this.tail = tail;
|
|
9527
9386
|
}
|
|
@@ -9534,16 +9393,19 @@ class DesensitizeType extends Enum {
|
|
|
9534
9393
|
desensitize(str, symbol) {
|
|
9535
9394
|
return DesensitizeUtil.desensitize(str, this, this.head, this.tail, symbol);
|
|
9536
9395
|
}
|
|
9537
|
-
}
|
|
9396
|
+
};
|
|
9397
|
+
__publicField2(_DesensitizeType, "TELEPHONE", new _DesensitizeType("座机号码", 3, 4));
|
|
9398
|
+
__publicField2(_DesensitizeType, "MOBILE", new _DesensitizeType("手机号码", 3, 4));
|
|
9399
|
+
__publicField2(_DesensitizeType, "ID_CARD", new _DesensitizeType("身份证号", 6, 4));
|
|
9400
|
+
__publicField2(_DesensitizeType, "BANK_CARD", new _DesensitizeType("银行卡号", 4, 4));
|
|
9401
|
+
__publicField2(_DesensitizeType, "CAR_NUMBER", new _DesensitizeType("车牌号", 2, 1));
|
|
9402
|
+
__publicField2(_DesensitizeType, "EMAIL", new _DesensitizeType("邮箱", 2, 2));
|
|
9403
|
+
__publicField2(_DesensitizeType, "CHINESE_NAME", new _DesensitizeType("中文名", 1, 1));
|
|
9404
|
+
__publicField2(_DesensitizeType, "ADDRESS", new _DesensitizeType("地址", 3, 0));
|
|
9405
|
+
__publicField2(_DesensitizeType, "IP_V4", new _DesensitizeType("IPv4地址", 0, 0));
|
|
9406
|
+
__publicField2(_DesensitizeType, "CUSTOM", new _DesensitizeType("自定义", 0, 0));
|
|
9407
|
+
let DesensitizeType = _DesensitizeType;
|
|
9538
9408
|
class FileUtil {
|
|
9539
|
-
/**
|
|
9540
|
-
* ### 文件大小进制
|
|
9541
|
-
*/
|
|
9542
|
-
static RADIX_FILE_SIZE = 1024;
|
|
9543
|
-
/**
|
|
9544
|
-
* ### 文件单位列表
|
|
9545
|
-
*/
|
|
9546
|
-
static FILE_UNIT_LIST = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
|
9547
9409
|
/**
|
|
9548
9410
|
* ### 字节数转可读文件大小
|
|
9549
9411
|
* @param size 字节数
|
|
@@ -9561,27 +9423,9 @@ class FileUtil {
|
|
|
9561
9423
|
return "INFINITY";
|
|
9562
9424
|
}
|
|
9563
9425
|
}
|
|
9564
|
-
|
|
9565
|
-
|
|
9566
|
-
|
|
9567
|
-
*/
|
|
9568
|
-
static STRING_OF_NUMBER = "0123456789";
|
|
9569
|
-
/**
|
|
9570
|
-
* ### 小写字母集合
|
|
9571
|
-
*/
|
|
9572
|
-
static STRING_OF_LOWER_CHAR = "abcdefghijklmnopqrstuvwxyz";
|
|
9573
|
-
/**
|
|
9574
|
-
* ### 大写字母集合
|
|
9575
|
-
*/
|
|
9576
|
-
static STRING_OF_UPPER_CHAR = this.STRING_OF_LOWER_CHAR.toUpperCase();
|
|
9577
|
-
/**
|
|
9578
|
-
* ### 默认长度
|
|
9579
|
-
*/
|
|
9580
|
-
static DEFAULT_LENGTH = 32;
|
|
9581
|
-
/**
|
|
9582
|
-
* ### 十进制
|
|
9583
|
-
*/
|
|
9584
|
-
static DECIMALISM = 10;
|
|
9426
|
+
__publicField2(FileUtil, "RADIX_FILE_SIZE", 1024);
|
|
9427
|
+
__publicField2(FileUtil, "FILE_UNIT_LIST", ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]);
|
|
9428
|
+
const _RandomUtil = class _RandomUtil2 {
|
|
9585
9429
|
/**
|
|
9586
9430
|
* ### 指定范围内获取随机整数
|
|
9587
9431
|
* @param min 最小
|
|
@@ -9657,12 +9501,14 @@ class RandomUtil {
|
|
|
9657
9501
|
static getRandColor() {
|
|
9658
9502
|
return `#${Math.random().toString(16).padEnd(6, "0").slice(2, 8)}`;
|
|
9659
9503
|
}
|
|
9660
|
-
}
|
|
9504
|
+
};
|
|
9505
|
+
__publicField2(_RandomUtil, "STRING_OF_NUMBER", "0123456789");
|
|
9506
|
+
__publicField2(_RandomUtil, "STRING_OF_LOWER_CHAR", "abcdefghijklmnopqrstuvwxyz");
|
|
9507
|
+
__publicField2(_RandomUtil, "STRING_OF_UPPER_CHAR", _RandomUtil.STRING_OF_LOWER_CHAR.toUpperCase());
|
|
9508
|
+
__publicField2(_RandomUtil, "DEFAULT_LENGTH", 32);
|
|
9509
|
+
__publicField2(_RandomUtil, "DECIMALISM", 10);
|
|
9510
|
+
let RandomUtil = _RandomUtil;
|
|
9661
9511
|
class StringUtil {
|
|
9662
|
-
/**
|
|
9663
|
-
* ### 单码元长度
|
|
9664
|
-
*/
|
|
9665
|
-
static SINGLE_POINT_LENGTH = 65535;
|
|
9666
9512
|
/**
|
|
9667
9513
|
* ### 获取字符串可视化长度
|
|
9668
9514
|
*/
|
|
@@ -9722,11 +9568,8 @@ class StringUtil {
|
|
|
9722
9568
|
return s;
|
|
9723
9569
|
}
|
|
9724
9570
|
}
|
|
9571
|
+
__publicField2(StringUtil, "SINGLE_POINT_LENGTH", 65535);
|
|
9725
9572
|
class ValidateUtil {
|
|
9726
|
-
/**
|
|
9727
|
-
* ### 十进制
|
|
9728
|
-
*/
|
|
9729
|
-
static DECIMALISM = 10;
|
|
9730
9573
|
/**
|
|
9731
9574
|
* ### 验证是否手机号或座机号
|
|
9732
9575
|
* @param phoneNumber 号码
|
|
@@ -9844,15 +9687,8 @@ class ValidateUtil {
|
|
|
9844
9687
|
return validArray[1][sum % 11].toString() === str[17].toString();
|
|
9845
9688
|
}
|
|
9846
9689
|
}
|
|
9690
|
+
__publicField2(ValidateUtil, "DECIMALISM", 10);
|
|
9847
9691
|
class VersionUtil {
|
|
9848
|
-
/**
|
|
9849
|
-
* ### 版本号长度
|
|
9850
|
-
*/
|
|
9851
|
-
static VERSION_LENGTH = 2;
|
|
9852
|
-
/**
|
|
9853
|
-
* ### 版本号分隔符
|
|
9854
|
-
*/
|
|
9855
|
-
static VERSION_SEPARATOR = ".";
|
|
9856
9692
|
/**
|
|
9857
9693
|
* ### 获取版本号数字
|
|
9858
9694
|
* @param version 版本号字符串
|
|
@@ -9879,6 +9715,8 @@ class VersionUtil {
|
|
|
9879
9715
|
return [major, minor].join(separator);
|
|
9880
9716
|
}
|
|
9881
9717
|
}
|
|
9718
|
+
__publicField2(VersionUtil, "VERSION_LENGTH", 2);
|
|
9719
|
+
__publicField2(VersionUtil, "VERSION_SEPARATOR", ".");
|
|
9882
9720
|
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
9883
9721
|
__name: "DateTime",
|
|
9884
9722
|
props: {
|
|
@@ -10205,7 +10043,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
10205
10043
|
let trueHeight = 0;
|
|
10206
10044
|
const isFullScreen = ref(!props.hideFullscreen && props.fullScreen);
|
|
10207
10045
|
onMounted(() => {
|
|
10208
|
-
|
|
10046
|
+
var _a;
|
|
10047
|
+
(_a = document.getElementById(`hidden-button-${domId.value}`)) == null ? void 0 : _a.focus();
|
|
10209
10048
|
});
|
|
10210
10049
|
watch(isFullScreen, () => {
|
|
10211
10050
|
emits("fullscreenChange", isFullScreen.value);
|
|
@@ -10439,10 +10278,12 @@ function getFieldConfig(Class, field) {
|
|
|
10439
10278
|
return DecoratorUtil.getFieldConfig(Class, field.toString(), KEY$3, true) || {};
|
|
10440
10279
|
}
|
|
10441
10280
|
function getDictionary(Class, field) {
|
|
10442
|
-
|
|
10281
|
+
var _a;
|
|
10282
|
+
return (_a = getFieldConfig(Class, field)) == null ? void 0 : _a.dictionary;
|
|
10443
10283
|
}
|
|
10444
10284
|
function getFieldLabel(Class, field) {
|
|
10445
|
-
|
|
10285
|
+
var _a;
|
|
10286
|
+
return ((_a = getFieldConfig(Class, field)) == null ? void 0 : _a.label) || field.toString();
|
|
10446
10287
|
}
|
|
10447
10288
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
10448
10289
|
__name: "FormField",
|
|
@@ -10711,8 +10552,8 @@ function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
|
|
|
10711
10552
|
}
|
|
10712
10553
|
}
|
|
10713
10554
|
/*!
|
|
10714
|
-
* vue-router v4.5.
|
|
10715
|
-
* (c)
|
|
10555
|
+
* vue-router v4.5.0
|
|
10556
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
10716
10557
|
* @license MIT
|
|
10717
10558
|
*/
|
|
10718
10559
|
const isBrowser = typeof document !== "undefined";
|
|
@@ -12154,8 +11995,7 @@ const RouterLinkImpl = /* @__PURE__ */ defineComponent({
|
|
|
12154
11995
|
ariaCurrentValue: {
|
|
12155
11996
|
type: String,
|
|
12156
11997
|
default: "page"
|
|
12157
|
-
}
|
|
12158
|
-
viewTransition: Boolean
|
|
11998
|
+
}
|
|
12159
11999
|
},
|
|
12160
12000
|
useLink,
|
|
12161
12001
|
setup(props, { slots }) {
|
|
@@ -13611,15 +13451,15 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
13611
13451
|
}
|
|
13612
13452
|
});
|
|
13613
13453
|
class WebConstant {
|
|
13614
|
-
/**
|
|
13615
|
-
* ### HTTP 请求前缀
|
|
13616
|
-
*/
|
|
13617
|
-
static PREFIX_HTTP = "http://";
|
|
13618
|
-
/**
|
|
13619
|
-
* ### HTTPS 请求前缀
|
|
13620
|
-
*/
|
|
13621
|
-
static PREFIX_HTTPS = "https://";
|
|
13622
13454
|
}
|
|
13455
|
+
/**
|
|
13456
|
+
* ### HTTP 请求前缀
|
|
13457
|
+
*/
|
|
13458
|
+
__publicField(WebConstant, "PREFIX_HTTP", "http://");
|
|
13459
|
+
/**
|
|
13460
|
+
* ### HTTPS 请求前缀
|
|
13461
|
+
*/
|
|
13462
|
+
__publicField(WebConstant, "PREFIX_HTTPS", "https://");
|
|
13623
13463
|
class WebFileUtil {
|
|
13624
13464
|
/**
|
|
13625
13465
|
* ### 获取静态文件的绝对地址
|
|
@@ -14051,8 +13891,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14051
13891
|
}
|
|
14052
13892
|
}
|
|
14053
13893
|
const getShowFormatter = computed(() => {
|
|
13894
|
+
var _a;
|
|
14054
13895
|
if (formConfig.value) {
|
|
14055
|
-
switch (formConfig.value
|
|
13896
|
+
switch ((_a = formConfig.value) == null ? void 0 : _a.dateType) {
|
|
14056
13897
|
case DateTimeType.DATE:
|
|
14057
13898
|
return DateTimeFormatter.FULL_DATE.key;
|
|
14058
13899
|
case DateTimeType.WEEK:
|
|
@@ -14067,34 +13908,42 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14067
13908
|
}
|
|
14068
13909
|
return DateTimeFormatter.FULL_DATE_TIME;
|
|
14069
13910
|
});
|
|
14070
|
-
const dictionary = computed(() =>
|
|
13911
|
+
const dictionary = computed(() => {
|
|
13912
|
+
var _a;
|
|
13913
|
+
return props.list ? props.list : formConfig.value && ((_a = fieldConfig.value) == null ? void 0 : _a.dictionary) ? fieldConfig.value.dictionary.toArray() : void 0;
|
|
13914
|
+
});
|
|
14071
13915
|
const placeholderRef = computed(() => {
|
|
13916
|
+
var _a, _b, _c;
|
|
14072
13917
|
if (props.placeholder) {
|
|
14073
13918
|
return props.placeholder;
|
|
14074
13919
|
}
|
|
14075
13920
|
if (formConfig.value && formConfig.value.placeholder) {
|
|
14076
13921
|
return formConfig.value.placeholder;
|
|
14077
13922
|
}
|
|
14078
|
-
|
|
14079
|
-
|
|
13923
|
+
console.warn("field config", fieldConfig.value);
|
|
13924
|
+
const fieldLabel = ((_a = fieldConfig.value) == null ? void 0 : _a.label) || "";
|
|
13925
|
+
if (dictionary.value || ((_b = fieldConfig.value) == null ? void 0 : _b.dictionary) || props.list || props.tree || ((_c = formConfig.value) == null ? void 0 : _c.dateType) !== void 0) {
|
|
14080
13926
|
return `${WebI18n.get().SelectPlease + fieldLabel}...`;
|
|
14081
13927
|
}
|
|
14082
13928
|
return `${WebI18n.get().InputPlease + fieldLabel}...`;
|
|
14083
13929
|
});
|
|
14084
13930
|
function getSwitchColor(status) {
|
|
14085
|
-
|
|
13931
|
+
var _a, _b;
|
|
13932
|
+
return ((_b = (_a = dictionary.value) == null ? void 0 : _a.find((item) => !!item.key === status)) == null ? void 0 : _b.color) || "";
|
|
14086
13933
|
}
|
|
14087
13934
|
function getSwitchLabel(status) {
|
|
14088
|
-
|
|
13935
|
+
var _a, _b;
|
|
13936
|
+
return ((_b = (_a = dictionary.value) == null ? void 0 : _a.find((item) => !!item.key === status)) == null ? void 0 : _b.label) || "";
|
|
14089
13937
|
}
|
|
14090
13938
|
const getInputType = computed(() => {
|
|
14091
|
-
|
|
13939
|
+
var _a, _b, _c;
|
|
13940
|
+
if ((_a = formConfig.value) == null ? void 0 : _a.textarea) {
|
|
14092
13941
|
return "textarea";
|
|
14093
13942
|
}
|
|
14094
|
-
if (formConfig.value
|
|
13943
|
+
if ((_b = formConfig.value) == null ? void 0 : _b.password) {
|
|
14095
13944
|
return "password";
|
|
14096
13945
|
}
|
|
14097
|
-
if (formConfig.value
|
|
13946
|
+
if ((_c = formConfig.value) == null ? void 0 : _c.number) {
|
|
14098
13947
|
return "number";
|
|
14099
13948
|
}
|
|
14100
13949
|
return "text";
|
|
@@ -14107,7 +13956,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14107
13956
|
deep: true
|
|
14108
13957
|
});
|
|
14109
13958
|
function checkNumberValue() {
|
|
14110
|
-
|
|
13959
|
+
var _a, _b, _c;
|
|
13960
|
+
if ((_a = formConfig.value) == null ? void 0 : _a.number) {
|
|
14111
13961
|
let tempValue = value.value;
|
|
14112
13962
|
const max = Math.min(formConfig.value.max ?? WebConfig.maxNumber, Number.MAX_SAFE_INTEGER);
|
|
14113
13963
|
const min = Math.max(formConfig.value.min ?? WebConfig.minNumber, Number.MIN_SAFE_INTEGER);
|
|
@@ -14117,9 +13967,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14117
13967
|
tempValue = Math.min(tempValue, max);
|
|
14118
13968
|
tempValue = Number.parseFloat(tempValue.toFixed(formConfig.value.precision ?? WebConfig.numberPrecision));
|
|
14119
13969
|
value.value = tempValue;
|
|
14120
|
-
value.value = Number.parseFloat(value.value
|
|
13970
|
+
value.value = Number.parseFloat(((_b = value.value) == null ? void 0 : _b.toString()) || "0");
|
|
14121
13971
|
}
|
|
14122
|
-
value.value = Number.parseFloat(value.value
|
|
13972
|
+
value.value = Number.parseFloat(((_c = value.value) == null ? void 0 : _c.toString()) || "0");
|
|
14123
13973
|
}
|
|
14124
13974
|
}
|
|
14125
13975
|
function onClear() {
|
|
@@ -14144,14 +13994,15 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14144
13994
|
emitChange();
|
|
14145
13995
|
}
|
|
14146
13996
|
function onKeyDown(event) {
|
|
13997
|
+
var _a, _b;
|
|
14147
13998
|
switch (event.code) {
|
|
14148
13999
|
case "KeyE":
|
|
14149
|
-
if (formConfig.value
|
|
14000
|
+
if ((_a = formConfig.value) == null ? void 0 : _a.number) {
|
|
14150
14001
|
event.preventDefault();
|
|
14151
14002
|
}
|
|
14152
14003
|
break;
|
|
14153
14004
|
case "Escape":
|
|
14154
|
-
if (formConfig.value
|
|
14005
|
+
if (((_b = formConfig.value) == null ? void 0 : _b.clearable) !== false) {
|
|
14155
14006
|
value.value = void 0;
|
|
14156
14007
|
emitValue();
|
|
14157
14008
|
}
|
|
@@ -14176,12 +14027,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14176
14027
|
}
|
|
14177
14028
|
}
|
|
14178
14029
|
function init() {
|
|
14030
|
+
var _a;
|
|
14179
14031
|
initFieldName();
|
|
14180
14032
|
if (props.entity && fieldName.value) {
|
|
14181
14033
|
formConfig.value = getFormConfig(props.entity, fieldName.value);
|
|
14182
14034
|
fieldConfig.value = getFieldConfig(props.entity, fieldName.value);
|
|
14183
14035
|
}
|
|
14184
|
-
if (props.modelValue === void 0 && formConfig.value
|
|
14036
|
+
if (props.modelValue === void 0 && ((_a = formConfig.value) == null ? void 0 : _a.defaultValue) !== void 0) {
|
|
14185
14037
|
value.value = formConfig.value.defaultValue;
|
|
14186
14038
|
emitValue();
|
|
14187
14039
|
}
|
|
@@ -14190,6 +14042,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14190
14042
|
const slots = useSlots();
|
|
14191
14043
|
init();
|
|
14192
14044
|
return (_ctx, _cache) => {
|
|
14045
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I;
|
|
14193
14046
|
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
14194
14047
|
const _component_el_time_picker = resolveComponent("el-time-picker");
|
|
14195
14048
|
const _component_el_switch = resolveComponent("el-switch");
|
|
@@ -14207,13 +14060,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14207
14060
|
key: 0,
|
|
14208
14061
|
modelValue: value.value,
|
|
14209
14062
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
14210
|
-
clearable: formConfig.value
|
|
14063
|
+
clearable: ((_a = formConfig.value) == null ? void 0 : _a.clearable) !== false,
|
|
14211
14064
|
disabled: __props.disabled,
|
|
14212
|
-
format: formConfig.value.dateShowFormatter
|
|
14065
|
+
format: ((_b = formConfig.value.dateShowFormatter) == null ? void 0 : _b.key) || getShowFormatter.value,
|
|
14213
14066
|
placeholder: placeholderRef.value,
|
|
14214
|
-
"prefix-icon": formConfig.value
|
|
14067
|
+
"prefix-icon": (_c = formConfig.value) == null ? void 0 : _c.prefixIcon,
|
|
14215
14068
|
readonly: __props.readonly,
|
|
14216
|
-
"suffix-icon": formConfig.value
|
|
14069
|
+
"suffix-icon": (_d = formConfig.value) == null ? void 0 : _d.suffixIcon,
|
|
14217
14070
|
type: formConfig.value.dateType,
|
|
14218
14071
|
"value-format": formConfig.value.dateFormatter ? formConfig.value.dateFormatter.key : unref(DateTimeFormatter).TIMESTAMP.key,
|
|
14219
14072
|
style: { "width": "100%" },
|
|
@@ -14224,21 +14077,21 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14224
14077
|
key: 1,
|
|
14225
14078
|
modelValue: value.value,
|
|
14226
14079
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event),
|
|
14227
|
-
clearable: formConfig.value
|
|
14080
|
+
clearable: ((_e = formConfig.value) == null ? void 0 : _e.clearable) !== false,
|
|
14228
14081
|
disabled: __props.disabled,
|
|
14229
|
-
format: formConfig.value.dateShowFormatter
|
|
14082
|
+
format: ((_f = formConfig.value.dateShowFormatter) == null ? void 0 : _f.key) || unref(DateTimeFormatter).FULL_TIME.key,
|
|
14230
14083
|
placeholder: placeholderRef.value,
|
|
14231
|
-
"prefix-icon": formConfig.value
|
|
14084
|
+
"prefix-icon": (_g = formConfig.value) == null ? void 0 : _g.prefixIcon,
|
|
14232
14085
|
readonly: __props.readonly,
|
|
14233
|
-
"suffix-icon": formConfig.value
|
|
14086
|
+
"suffix-icon": (_h = formConfig.value) == null ? void 0 : _h.suffixIcon,
|
|
14234
14087
|
"value-format": formConfig.value.dateFormatter ? formConfig.value.dateFormatter.key : unref(DateTimeFormatter).TIMESTAMP.key,
|
|
14235
14088
|
style: { "width": "100%" },
|
|
14236
14089
|
onClear,
|
|
14237
14090
|
onFocus: emitFocus,
|
|
14238
14091
|
onKeydown: onKeyDown
|
|
14239
14092
|
}, null, 8, ["modelValue", "clearable", "disabled", "format", "placeholder", "prefix-icon", "readonly", "suffix-icon", "value-format"]))
|
|
14240
|
-
], 64)) :
|
|
14241
|
-
formConfig.value
|
|
14093
|
+
], 64)) : dictionary.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
14094
|
+
((_i = formConfig.value) == null ? void 0 : _i.switch) ? (openBlock(), createBlock(_component_el_switch, {
|
|
14242
14095
|
key: 0,
|
|
14243
14096
|
modelValue: value.value,
|
|
14244
14097
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => value.value = $event),
|
|
@@ -14249,7 +14102,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14249
14102
|
"--el-switch-on-color": getSwitchColor(true),
|
|
14250
14103
|
"--el-switch-off-color": getSwitchColor(false)
|
|
14251
14104
|
})
|
|
14252
|
-
}, null, 8, ["modelValue", "active-text", "inactive-text", "readonly", "style"])) : formConfig.value
|
|
14105
|
+
}, null, 8, ["modelValue", "active-text", "inactive-text", "readonly", "style"])) : ((_j = formConfig.value) == null ? void 0 : _j.radioButton) ? (openBlock(), createBlock(_component_el_radio_group, {
|
|
14253
14106
|
key: 1,
|
|
14254
14107
|
modelValue: value.value,
|
|
14255
14108
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => value.value = $event),
|
|
@@ -14269,7 +14122,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14269
14122
|
}), 128))
|
|
14270
14123
|
]),
|
|
14271
14124
|
_: 1
|
|
14272
|
-
}, 8, ["modelValue", "readonly"])) : formConfig.value
|
|
14125
|
+
}, 8, ["modelValue", "readonly"])) : ((_k = formConfig.value) == null ? void 0 : _k.radio) ? (openBlock(), createBlock(_component_el_radio_group, {
|
|
14273
14126
|
key: 2,
|
|
14274
14127
|
modelValue: value.value,
|
|
14275
14128
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => value.value = $event),
|
|
@@ -14293,18 +14146,18 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14293
14146
|
key: 3,
|
|
14294
14147
|
modelValue: value.value,
|
|
14295
14148
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => value.value = $event),
|
|
14296
|
-
clearable: formConfig.value
|
|
14297
|
-
"collapse-tags": formConfig.value
|
|
14149
|
+
clearable: ((_l = formConfig.value) == null ? void 0 : _l.clearable) !== false,
|
|
14150
|
+
"collapse-tags": (_m = formConfig.value) == null ? void 0 : _m.collapseTags,
|
|
14298
14151
|
disabled: __props.disabled,
|
|
14299
|
-
filterable: formConfig.value
|
|
14300
|
-
multiple: formConfig.value
|
|
14301
|
-
"multiple-limit": formConfig.value
|
|
14152
|
+
filterable: (_n = formConfig.value) == null ? void 0 : _n.filterable,
|
|
14153
|
+
multiple: (_o = formConfig.value) == null ? void 0 : _o.multiple,
|
|
14154
|
+
"multiple-limit": (_p = formConfig.value) == null ? void 0 : _p.multipleLimit,
|
|
14302
14155
|
placeholder: placeholderRef.value,
|
|
14303
|
-
"prefix-icon": formConfig.value
|
|
14156
|
+
"prefix-icon": (_q = formConfig.value) == null ? void 0 : _q.prefixIcon,
|
|
14304
14157
|
readonly: __props.readonly,
|
|
14305
14158
|
remote: !!__props.onSearch,
|
|
14306
14159
|
"remote-method": __props.onSearch,
|
|
14307
|
-
"suffix-icon": formConfig.value
|
|
14160
|
+
"suffix-icon": (_r = formConfig.value) == null ? void 0 : _r.suffixIcon,
|
|
14308
14161
|
"collapse-tags-tooltip": "",
|
|
14309
14162
|
"fit-input-width": "",
|
|
14310
14163
|
onClear,
|
|
@@ -14319,15 +14172,18 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14319
14172
|
label: item.label,
|
|
14320
14173
|
value: item.key
|
|
14321
14174
|
}, {
|
|
14322
|
-
default: withCtx(() =>
|
|
14323
|
-
|
|
14324
|
-
|
|
14325
|
-
|
|
14326
|
-
|
|
14327
|
-
|
|
14328
|
-
|
|
14329
|
-
|
|
14330
|
-
|
|
14175
|
+
default: withCtx(() => {
|
|
14176
|
+
var _a2;
|
|
14177
|
+
return [
|
|
14178
|
+
((_a2 = formConfig.value) == null ? void 0 : _a2.color) ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
|
|
14179
|
+
createElementVNode("span", _hoisted_3$7, toDisplayString(item.label), 1),
|
|
14180
|
+
createElementVNode("span", {
|
|
14181
|
+
style: normalizeStyle({ backgroundColor: item.color || unref(WebColor).NORMAL }),
|
|
14182
|
+
class: "light"
|
|
14183
|
+
}, null, 4)
|
|
14184
|
+
])) : createCommentVNode("", true)
|
|
14185
|
+
];
|
|
14186
|
+
}),
|
|
14331
14187
|
_: 2
|
|
14332
14188
|
}, 1032, ["disabled", "label", "value"]);
|
|
14333
14189
|
}), 128))
|
|
@@ -14338,20 +14194,20 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14338
14194
|
key: 2,
|
|
14339
14195
|
modelValue: value.value,
|
|
14340
14196
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => value.value = $event),
|
|
14341
|
-
clearable: formConfig.value
|
|
14342
|
-
"collapse-tags": formConfig.value
|
|
14197
|
+
clearable: ((_s = formConfig.value) == null ? void 0 : _s.clearable) !== false,
|
|
14198
|
+
"collapse-tags": (_t = formConfig.value) == null ? void 0 : _t.collapseTags,
|
|
14343
14199
|
disabled: __props.disabled,
|
|
14344
14200
|
options: __props.tree,
|
|
14345
14201
|
placeholder: placeholderRef.value,
|
|
14346
14202
|
props: {
|
|
14347
14203
|
value: "id",
|
|
14348
14204
|
label: "name",
|
|
14349
|
-
multiple: formConfig.value
|
|
14350
|
-
emitPath: formConfig.value
|
|
14351
|
-
checkStrictly: formConfig.value
|
|
14205
|
+
multiple: (_u = formConfig.value) == null ? void 0 : _u.multiple,
|
|
14206
|
+
emitPath: (_v = formConfig.value) == null ? void 0 : _v.emitPath,
|
|
14207
|
+
checkStrictly: (_w = formConfig.value) == null ? void 0 : _w.checkStrictly
|
|
14352
14208
|
},
|
|
14353
14209
|
readonly: __props.readonly,
|
|
14354
|
-
"show-all-levels": formConfig.value
|
|
14210
|
+
"show-all-levels": (_x = formConfig.value) == null ? void 0 : _x.showAllLevels,
|
|
14355
14211
|
class: "a-input-cascader",
|
|
14356
14212
|
"collapse-tags-tooltip": "",
|
|
14357
14213
|
"popper-class": "a-input-cascader-popper",
|
|
@@ -14362,18 +14218,18 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14362
14218
|
key: 3,
|
|
14363
14219
|
modelValue: value.value,
|
|
14364
14220
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => value.value = $event),
|
|
14365
|
-
autosize: formConfig.value
|
|
14366
|
-
clearable: formConfig.value
|
|
14221
|
+
autosize: ((_y = formConfig.value) == null ? void 0 : _y.autoSize) ? { minRows: formConfig.value.minRows, maxRows: formConfig.value.maxRows } : false,
|
|
14222
|
+
clearable: ((_z = formConfig.value) == null ? void 0 : _z.clearable) !== false,
|
|
14367
14223
|
disabled: __props.disabled,
|
|
14368
|
-
max: formConfig.value
|
|
14369
|
-
maxlength: formConfig.value
|
|
14370
|
-
min: formConfig.value
|
|
14224
|
+
max: (_A = formConfig.value) == null ? void 0 : _A.max,
|
|
14225
|
+
maxlength: ((_B = formConfig.value) == null ? void 0 : _B.maxLength) || (((_C = formConfig.value) == null ? void 0 : _C.textarea) ? unref(WebConfig).maxTextAreaLength : unref(WebConfig).maxTextLength),
|
|
14226
|
+
min: ((_D = formConfig.value) == null ? void 0 : _D.min) ?? 0,
|
|
14371
14227
|
placeholder: placeholderRef.value,
|
|
14372
|
-
"prefix-icon": formConfig.value
|
|
14228
|
+
"prefix-icon": (_E = formConfig.value) == null ? void 0 : _E.prefixIcon,
|
|
14373
14229
|
readonly: __props.readonly,
|
|
14374
|
-
rows: formConfig.value
|
|
14375
|
-
"show-word-limit": formConfig.value
|
|
14376
|
-
"suffix-icon": formConfig.value
|
|
14230
|
+
rows: ((_F = formConfig.value) == null ? void 0 : _F.textarea) ? unref(WebConfig).textareaMinRows : 0,
|
|
14231
|
+
"show-word-limit": ((_G = formConfig.value) == null ? void 0 : _G.showLimit) !== false,
|
|
14232
|
+
"suffix-icon": (_H = formConfig.value) == null ? void 0 : _H.suffixIcon,
|
|
14377
14233
|
type: getInputType.value,
|
|
14378
14234
|
onBlur,
|
|
14379
14235
|
onChange: checkNumberValue,
|
|
@@ -14385,26 +14241,29 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14385
14241
|
return {
|
|
14386
14242
|
name,
|
|
14387
14243
|
fn: withCtx(() => [
|
|
14388
|
-
renderSlot(_ctx.$slots, name, {}, () =>
|
|
14389
|
-
|
|
14390
|
-
|
|
14391
|
-
|
|
14392
|
-
|
|
14393
|
-
|
|
14394
|
-
|
|
14395
|
-
|
|
14396
|
-
|
|
14397
|
-
|
|
14398
|
-
|
|
14399
|
-
|
|
14400
|
-
|
|
14401
|
-
|
|
14402
|
-
|
|
14403
|
-
|
|
14244
|
+
renderSlot(_ctx.$slots, name, {}, () => {
|
|
14245
|
+
var _a2;
|
|
14246
|
+
return [
|
|
14247
|
+
name === "append" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
14248
|
+
createTextVNode(toDisplayString((_a2 = formConfig.value) == null ? void 0 : _a2.suffixText), 1)
|
|
14249
|
+
], 64)) : createCommentVNode("", true),
|
|
14250
|
+
name === "suffix" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
14251
|
+
isClearButtonShow.value ? (openBlock(), createBlock(_component_el_icon, {
|
|
14252
|
+
key: 0,
|
|
14253
|
+
onClick: _cache[7] || (_cache[7] = ($event) => onClear())
|
|
14254
|
+
}, {
|
|
14255
|
+
default: withCtx(() => [
|
|
14256
|
+
createVNode(unref(circle_close_default))
|
|
14257
|
+
]),
|
|
14258
|
+
_: 1
|
|
14259
|
+
})) : createCommentVNode("", true)
|
|
14260
|
+
], 64)) : createCommentVNode("", true)
|
|
14261
|
+
];
|
|
14262
|
+
})
|
|
14404
14263
|
])
|
|
14405
14264
|
};
|
|
14406
14265
|
}),
|
|
14407
|
-
!_ctx.$slots.append && formConfig.value
|
|
14266
|
+
!_ctx.$slots.append && ((_I = formConfig.value) == null ? void 0 : _I.suffixText) ? {
|
|
14408
14267
|
name: "append",
|
|
14409
14268
|
fn: withCtx(() => [
|
|
14410
14269
|
createTextVNode(toDisplayString(formConfig.value.suffixText), 1)
|
|
@@ -14482,24 +14341,30 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
14482
14341
|
});
|
|
14483
14342
|
const AMoney = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-f221d0de"]]);
|
|
14484
14343
|
class QueryPage extends Transformer {
|
|
14485
|
-
|
|
14486
|
-
|
|
14487
|
-
|
|
14488
|
-
|
|
14489
|
-
|
|
14490
|
-
|
|
14491
|
-
|
|
14492
|
-
|
|
14344
|
+
constructor() {
|
|
14345
|
+
super(...arguments);
|
|
14346
|
+
/**
|
|
14347
|
+
* ### 分页页数
|
|
14348
|
+
*/
|
|
14349
|
+
__publicField(this, "pageNum", 1);
|
|
14350
|
+
/**
|
|
14351
|
+
* ### 每页数量
|
|
14352
|
+
*/
|
|
14353
|
+
__publicField(this, "pageSize", 20);
|
|
14354
|
+
}
|
|
14493
14355
|
}
|
|
14494
14356
|
class QuerySort extends Transformer {
|
|
14495
|
-
|
|
14496
|
-
|
|
14497
|
-
|
|
14498
|
-
|
|
14499
|
-
|
|
14500
|
-
|
|
14501
|
-
|
|
14502
|
-
|
|
14357
|
+
constructor() {
|
|
14358
|
+
super(...arguments);
|
|
14359
|
+
/**
|
|
14360
|
+
* ### 排序字段 默认 `id`
|
|
14361
|
+
*/
|
|
14362
|
+
__publicField(this, "field", "id");
|
|
14363
|
+
/**
|
|
14364
|
+
* ### 排序方式 默认 `desc`
|
|
14365
|
+
*/
|
|
14366
|
+
__publicField(this, "direction", "desc");
|
|
14367
|
+
}
|
|
14503
14368
|
/**
|
|
14504
14369
|
* ### 设置排序字段名
|
|
14505
14370
|
* @param field 字段名
|
|
@@ -14527,20 +14392,23 @@ var __decorateClass$3 = (decorators, target, key, kind) => {
|
|
|
14527
14392
|
return result;
|
|
14528
14393
|
};
|
|
14529
14394
|
class QueryResponsePage extends Transformer {
|
|
14530
|
-
|
|
14531
|
-
|
|
14532
|
-
|
|
14533
|
-
|
|
14534
|
-
|
|
14535
|
-
|
|
14536
|
-
|
|
14537
|
-
|
|
14538
|
-
|
|
14539
|
-
|
|
14540
|
-
|
|
14541
|
-
|
|
14542
|
-
|
|
14543
|
-
|
|
14395
|
+
constructor() {
|
|
14396
|
+
super(...arguments);
|
|
14397
|
+
/**
|
|
14398
|
+
* ### 返回的当前页数据列表
|
|
14399
|
+
*/
|
|
14400
|
+
__publicField(this, "list", []);
|
|
14401
|
+
__publicField(this, "page", new QueryPage());
|
|
14402
|
+
__publicField(this, "sort", new QuerySort());
|
|
14403
|
+
/**
|
|
14404
|
+
* ### 返回总条数
|
|
14405
|
+
*/
|
|
14406
|
+
__publicField(this, "total", 0);
|
|
14407
|
+
/**
|
|
14408
|
+
* ### 返回总页数
|
|
14409
|
+
*/
|
|
14410
|
+
__publicField(this, "pageCount", 0);
|
|
14411
|
+
}
|
|
14544
14412
|
}
|
|
14545
14413
|
__decorateClass$3([
|
|
14546
14414
|
Type(QueryPage)
|
|
@@ -14807,7 +14675,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
14807
14675
|
setup(__props) {
|
|
14808
14676
|
const props = __props;
|
|
14809
14677
|
const isFullScreen = ref(false);
|
|
14810
|
-
const realTitle = computed(() =>
|
|
14678
|
+
const realTitle = computed(() => {
|
|
14679
|
+
var _a;
|
|
14680
|
+
return props.title || ((_a = useRouter().currentRoute.value.meta) == null ? void 0 : _a.name) || "";
|
|
14681
|
+
});
|
|
14811
14682
|
return (_ctx, _cache) => {
|
|
14812
14683
|
return openBlock(), createElementBlock("div", {
|
|
14813
14684
|
class: normalizeClass([isFullScreen.value ? "fullscreen" : "", "web-panel"])
|
|
@@ -14957,52 +14828,56 @@ var HttpMethod = /* @__PURE__ */ ((HttpMethod2) => {
|
|
|
14957
14828
|
return HttpMethod2;
|
|
14958
14829
|
})(HttpMethod || {});
|
|
14959
14830
|
class HttpResponse {
|
|
14960
|
-
|
|
14961
|
-
|
|
14962
|
-
|
|
14963
|
-
|
|
14964
|
-
|
|
14965
|
-
|
|
14966
|
-
|
|
14967
|
-
|
|
14968
|
-
|
|
14969
|
-
|
|
14970
|
-
|
|
14971
|
-
|
|
14831
|
+
constructor() {
|
|
14832
|
+
/**
|
|
14833
|
+
* ### 业务状态码
|
|
14834
|
+
*/
|
|
14835
|
+
__publicField(this, "code");
|
|
14836
|
+
/**
|
|
14837
|
+
* ### 返回的数据
|
|
14838
|
+
*/
|
|
14839
|
+
__publicField(this, "data");
|
|
14840
|
+
/**
|
|
14841
|
+
* ### 错误信息
|
|
14842
|
+
*/
|
|
14843
|
+
__publicField(this, "message");
|
|
14844
|
+
}
|
|
14972
14845
|
}
|
|
14973
14846
|
class Http {
|
|
14974
|
-
|
|
14975
|
-
|
|
14976
|
-
|
|
14977
|
-
|
|
14978
|
-
|
|
14979
|
-
|
|
14980
|
-
|
|
14981
|
-
|
|
14982
|
-
|
|
14983
|
-
|
|
14984
|
-
|
|
14985
|
-
|
|
14986
|
-
|
|
14987
|
-
|
|
14988
|
-
|
|
14989
|
-
|
|
14990
|
-
|
|
14991
|
-
|
|
14992
|
-
|
|
14993
|
-
|
|
14994
|
-
|
|
14995
|
-
|
|
14996
|
-
|
|
14997
|
-
|
|
14998
|
-
|
|
14999
|
-
|
|
15000
|
-
|
|
15001
|
-
|
|
15002
|
-
|
|
15003
|
-
|
|
15004
|
-
|
|
15005
|
-
|
|
14847
|
+
constructor() {
|
|
14848
|
+
/**
|
|
14849
|
+
* ### 请求方法
|
|
14850
|
+
*/
|
|
14851
|
+
__publicField(this, "method", HttpMethod.POST);
|
|
14852
|
+
/**
|
|
14853
|
+
* ### URL
|
|
14854
|
+
*/
|
|
14855
|
+
__publicField(this, "url", "");
|
|
14856
|
+
/**
|
|
14857
|
+
* ### 请求超时时间
|
|
14858
|
+
*/
|
|
14859
|
+
__publicField(this, "timeout", WebConfig.timeout);
|
|
14860
|
+
/**
|
|
14861
|
+
* ### 是否携带 `Cookies`
|
|
14862
|
+
*/
|
|
14863
|
+
__publicField(this, "withCookie", false);
|
|
14864
|
+
/**
|
|
14865
|
+
* ### 请求头
|
|
14866
|
+
*/
|
|
14867
|
+
__publicField(this, "headers", {});
|
|
14868
|
+
/**
|
|
14869
|
+
* ### 错误回调
|
|
14870
|
+
*/
|
|
14871
|
+
__publicField(this, "errorHandler");
|
|
14872
|
+
/**
|
|
14873
|
+
* ### 加载回调
|
|
14874
|
+
*/
|
|
14875
|
+
__publicField(this, "loadingHandler");
|
|
14876
|
+
/**
|
|
14877
|
+
* ### 是否直接抛出错误
|
|
14878
|
+
*/
|
|
14879
|
+
__publicField(this, "isThrowError", false);
|
|
14880
|
+
}
|
|
15006
14881
|
/**
|
|
15007
14882
|
* ### 创建一个客户端
|
|
15008
14883
|
* @param url 请求的 `URL`
|
|
@@ -15209,22 +15084,25 @@ class Http {
|
|
|
15209
15084
|
}
|
|
15210
15085
|
}
|
|
15211
15086
|
class ExportModel extends Transformer {
|
|
15212
|
-
|
|
15213
|
-
|
|
15214
|
-
|
|
15215
|
-
|
|
15216
|
-
|
|
15217
|
-
|
|
15218
|
-
|
|
15219
|
-
|
|
15220
|
-
|
|
15221
|
-
|
|
15222
|
-
|
|
15223
|
-
|
|
15224
|
-
|
|
15225
|
-
|
|
15226
|
-
|
|
15227
|
-
|
|
15087
|
+
constructor() {
|
|
15088
|
+
super(...arguments);
|
|
15089
|
+
/**
|
|
15090
|
+
* ### 创建导出任务的API地址
|
|
15091
|
+
*/
|
|
15092
|
+
__publicField(this, "createExportTaskUrl");
|
|
15093
|
+
/**
|
|
15094
|
+
* ### 查询导出结果的 `API` 地址
|
|
15095
|
+
*/
|
|
15096
|
+
__publicField(this, "queryExportUrl");
|
|
15097
|
+
/**
|
|
15098
|
+
* ### 请求的参数
|
|
15099
|
+
*/
|
|
15100
|
+
__publicField(this, "param");
|
|
15101
|
+
/**
|
|
15102
|
+
* ### 下载导出文件的临时令牌
|
|
15103
|
+
*/
|
|
15104
|
+
__publicField(this, "fileCode");
|
|
15105
|
+
}
|
|
15228
15106
|
}
|
|
15229
15107
|
const _hoisted_1$8 = { class: "tips" };
|
|
15230
15108
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
@@ -15665,8 +15543,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
15665
15543
|
}
|
|
15666
15544
|
}
|
|
15667
15545
|
const payloadLabel = computed(() => {
|
|
15546
|
+
var _a;
|
|
15668
15547
|
try {
|
|
15669
|
-
return props.payload
|
|
15548
|
+
return ((_a = props.payload) == null ? void 0 : _a.getPayloadLabel()) || "-";
|
|
15670
15549
|
} catch (e) {
|
|
15671
15550
|
console.error("[IPayload] 请实现 IPayload 接口", props.payload);
|
|
15672
15551
|
}
|
|
@@ -16913,7 +16792,10 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
16913
16792
|
const props = __props;
|
|
16914
16793
|
const emits = __emit;
|
|
16915
16794
|
const result = useModel(__props, "modelValue");
|
|
16916
|
-
const label = computed(() =>
|
|
16795
|
+
const label = computed(() => {
|
|
16796
|
+
var _a;
|
|
16797
|
+
return ((_a = result.value) == null ? void 0 : _a.getPayloadLabel()) || props.default;
|
|
16798
|
+
});
|
|
16917
16799
|
async function onSelect() {
|
|
16918
16800
|
result.value = await DialogUtil.show(props.selector, props.param);
|
|
16919
16801
|
emits("changed", result.value);
|
|
@@ -17000,17 +16882,17 @@ var __decorateClass$2 = (decorators, target, key, kind) => {
|
|
|
17000
16882
|
return result;
|
|
17001
16883
|
};
|
|
17002
16884
|
class QueryRequest extends Transformer {
|
|
17003
|
-
/**
|
|
17004
|
-
* ### 查询信息
|
|
17005
|
-
*/
|
|
17006
|
-
filter;
|
|
17007
|
-
sort;
|
|
17008
16885
|
/**
|
|
17009
16886
|
* ### 初始化一个请求类
|
|
17010
16887
|
* @param FilterClass 如传入 `filter` 的类 将自动初始化一个空 `filter`
|
|
17011
16888
|
*/
|
|
17012
16889
|
constructor(FilterClass) {
|
|
17013
16890
|
super();
|
|
16891
|
+
/**
|
|
16892
|
+
* ### 查询信息
|
|
16893
|
+
*/
|
|
16894
|
+
__publicField(this, "filter");
|
|
16895
|
+
__publicField(this, "sort");
|
|
17014
16896
|
try {
|
|
17015
16897
|
this.filter = new FilterClass();
|
|
17016
16898
|
} catch (e) {
|
|
@@ -17038,7 +16920,10 @@ var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
|
17038
16920
|
return result;
|
|
17039
16921
|
};
|
|
17040
16922
|
class QueryRequestPage extends QueryRequest {
|
|
17041
|
-
|
|
16923
|
+
constructor() {
|
|
16924
|
+
super(...arguments);
|
|
16925
|
+
__publicField(this, "page", new QueryPage());
|
|
16926
|
+
}
|
|
17042
16927
|
}
|
|
17043
16928
|
__decorateClass$1([
|
|
17044
16929
|
Type(QueryPage)
|
|
@@ -17281,10 +17166,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
17281
17166
|
onClick: ($event) => props.props.onConfirm(data)
|
|
17282
17167
|
}, {
|
|
17283
17168
|
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
17284
|
-
createTextVNode(" 选择 "
|
|
17169
|
+
createTextVNode(" 选择 ")
|
|
17285
17170
|
])),
|
|
17286
|
-
_: 2
|
|
17287
|
-
__: [2]
|
|
17171
|
+
_: 2
|
|
17288
17172
|
}, 1032, ["disabled", "onClick"])
|
|
17289
17173
|
]),
|
|
17290
17174
|
key: "0"
|
|
@@ -17453,11 +17337,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
17453
17337
|
const key = props.column.key;
|
|
17454
17338
|
const value = computed(() => props.data[key]);
|
|
17455
17339
|
return (_ctx, _cache) => {
|
|
17340
|
+
var _a;
|
|
17456
17341
|
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
17457
17342
|
_ctx.column.color ? (openBlock(), createElementBlock("span", {
|
|
17458
17343
|
key: 0,
|
|
17459
17344
|
style: normalizeStyle({
|
|
17460
|
-
backgroundColor: _ctx.dictionary.get(value.value)
|
|
17345
|
+
backgroundColor: ((_a = _ctx.dictionary.get(value.value)) == null ? void 0 : _a.color) || unref(WebColor).NORMAL
|
|
17461
17346
|
}),
|
|
17462
17347
|
class: "light"
|
|
17463
17348
|
}, null, 4)) : createCommentVNode("", true),
|
|
@@ -18053,7 +17938,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18053
17938
|
const airTableRef = ref();
|
|
18054
17939
|
const tableId = `table_${Math.random()}`;
|
|
18055
17940
|
const hook = props.useHook;
|
|
18056
|
-
const ServiceClass = props.service || hook
|
|
17941
|
+
const ServiceClass = props.service || (hook == null ? void 0 : hook.serviceClass);
|
|
18057
17942
|
let EntityClass;
|
|
18058
17943
|
if (ServiceClass) {
|
|
18059
17944
|
EntityClass = Transformer.newInstance(ServiceClass).entityClass;
|
|
@@ -18095,11 +17980,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18095
17980
|
modelConfig
|
|
18096
17981
|
});
|
|
18097
17982
|
function selectRow(list) {
|
|
17983
|
+
var _a, _b;
|
|
18098
17984
|
for (const row of list) {
|
|
18099
|
-
airTableRef.value
|
|
17985
|
+
(_a = airTableRef.value) == null ? void 0 : _a.toggleRowSelection(row, false);
|
|
18100
17986
|
for (const selectedRow of selectListRef.value) {
|
|
18101
17987
|
if (selectedRow.id === row.id) {
|
|
18102
|
-
airTableRef.value
|
|
17988
|
+
(_b = airTableRef.value) == null ? void 0 : _b.toggleRowSelection(row, true);
|
|
18103
17989
|
}
|
|
18104
17990
|
}
|
|
18105
17991
|
if (row.children && row.children.length > 0) {
|
|
@@ -18250,7 +18136,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18250
18136
|
nextTick(() => {
|
|
18251
18137
|
toggleSelection();
|
|
18252
18138
|
const table = document.getElementById(tableId);
|
|
18253
|
-
const bodyWrap = table
|
|
18139
|
+
const bodyWrap = table == null ? void 0 : table.querySelector(".el-scrollbar__wrap");
|
|
18254
18140
|
bodyWrap.scrollTop = 0;
|
|
18255
18141
|
});
|
|
18256
18142
|
}
|
|
@@ -18283,7 +18169,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18283
18169
|
if (props.onAddRow) {
|
|
18284
18170
|
props.onAddRow(row);
|
|
18285
18171
|
} else if (props.isTree) {
|
|
18286
|
-
hook
|
|
18172
|
+
hook == null ? void 0 : hook.onAddRow(row);
|
|
18287
18173
|
}
|
|
18288
18174
|
}
|
|
18289
18175
|
function handleEdit(row) {
|
|
@@ -18463,17 +18349,20 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18463
18349
|
onChange: _cache[2] || (_cache[2] = ($event) => onSearch()),
|
|
18464
18350
|
onClear: ($event) => searchFilter.value[item.key] = void 0
|
|
18465
18351
|
}, {
|
|
18466
|
-
default: withCtx(() =>
|
|
18467
|
-
|
|
18468
|
-
|
|
18469
|
-
|
|
18470
|
-
|
|
18471
|
-
|
|
18472
|
-
|
|
18473
|
-
|
|
18474
|
-
|
|
18475
|
-
|
|
18476
|
-
|
|
18352
|
+
default: withCtx(() => {
|
|
18353
|
+
var _a;
|
|
18354
|
+
return [
|
|
18355
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList((_a = unref(getDictionary)(unref(EntityClass), item.key)) == null ? void 0 : _a.toArray(), (enumItem) => {
|
|
18356
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
18357
|
+
!enumItem.disabled ? (openBlock(), createBlock(unref(ElOption), {
|
|
18358
|
+
key: enumItem.key.toString(),
|
|
18359
|
+
label: enumItem.label,
|
|
18360
|
+
value: enumItem.key
|
|
18361
|
+
}, null, 8, ["label", "value"])) : createCommentVNode("", true)
|
|
18362
|
+
], 64);
|
|
18363
|
+
}), 256))
|
|
18364
|
+
];
|
|
18365
|
+
}),
|
|
18477
18366
|
_: 2
|
|
18478
18367
|
}, 1032, ["modelValue", "onUpdate:modelValue", "clearable", "filterable", "placeholder", "onClear"])) : (openBlock(), createBlock(unref(ElInput), {
|
|
18479
18368
|
key: 1,
|
|
@@ -18854,9 +18743,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18854
18743
|
emits("changed", currentData.value);
|
|
18855
18744
|
}
|
|
18856
18745
|
function filterNode(value, node) {
|
|
18746
|
+
var _a;
|
|
18857
18747
|
if (!value)
|
|
18858
18748
|
return true;
|
|
18859
|
-
return node.name
|
|
18749
|
+
return ((_a = node.name) == null ? void 0 : _a.indexOf(value)) !== -1;
|
|
18860
18750
|
}
|
|
18861
18751
|
return (_ctx, _cache) => {
|
|
18862
18752
|
const _directive_loading = resolveDirective("loading");
|
|
@@ -19030,8 +18920,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19030
18920
|
});
|
|
19031
18921
|
const User = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5925b035"]]);
|
|
19032
18922
|
class WebEnum extends Enum {
|
|
19033
|
-
|
|
19034
|
-
|
|
18923
|
+
constructor() {
|
|
18924
|
+
super(...arguments);
|
|
18925
|
+
__publicField(this, "color");
|
|
18926
|
+
__publicField(this, "disabled");
|
|
18927
|
+
}
|
|
19035
18928
|
/**
|
|
19036
18929
|
* ### 设置颜色
|
|
19037
18930
|
*/
|
|
@@ -19047,16 +18940,17 @@ class WebEnum extends Enum {
|
|
|
19047
18940
|
return this;
|
|
19048
18941
|
}
|
|
19049
18942
|
}
|
|
19050
|
-
class
|
|
19051
|
-
|
|
19052
|
-
|
|
19053
|
-
|
|
19054
|
-
|
|
19055
|
-
|
|
19056
|
-
|
|
19057
|
-
|
|
19058
|
-
|
|
19059
|
-
|
|
18943
|
+
const _DisableEnum = class _DisableEnum extends WebEnum {
|
|
18944
|
+
};
|
|
18945
|
+
/**
|
|
18946
|
+
* ### 禁用
|
|
18947
|
+
*/
|
|
18948
|
+
__publicField(_DisableEnum, "DISABLED", new _DisableEnum(true, "禁用").setColor(WebColor.DANGER));
|
|
18949
|
+
/**
|
|
18950
|
+
* ### 启用
|
|
18951
|
+
*/
|
|
18952
|
+
__publicField(_DisableEnum, "ENABLE", new _DisableEnum(false, "启用").setColor(WebColor.SUCCESS));
|
|
18953
|
+
let DisableEnum = _DisableEnum;
|
|
19060
18954
|
function useDetail(props, ServiceClass, option = {}) {
|
|
19061
18955
|
const isLoading = ref(false);
|
|
19062
18956
|
const service = Transformer.newInstance(ServiceClass);
|
|
@@ -19086,31 +18980,33 @@ function useDetail(props, ServiceClass, option = {}) {
|
|
|
19086
18980
|
};
|
|
19087
18981
|
}
|
|
19088
18982
|
class WebValidator {
|
|
19089
|
-
|
|
19090
|
-
|
|
19091
|
-
|
|
19092
|
-
|
|
19093
|
-
|
|
19094
|
-
|
|
19095
|
-
|
|
19096
|
-
|
|
19097
|
-
|
|
19098
|
-
|
|
19099
|
-
|
|
19100
|
-
|
|
19101
|
-
|
|
19102
|
-
|
|
19103
|
-
|
|
19104
|
-
|
|
19105
|
-
|
|
19106
|
-
|
|
19107
|
-
|
|
19108
|
-
|
|
19109
|
-
|
|
19110
|
-
|
|
19111
|
-
|
|
19112
|
-
|
|
19113
|
-
|
|
18983
|
+
constructor() {
|
|
18984
|
+
/**
|
|
18985
|
+
* ### 错误提醒
|
|
18986
|
+
* 请通过 `.show()` 传入
|
|
18987
|
+
*/
|
|
18988
|
+
__publicField(this, "message");
|
|
18989
|
+
/**
|
|
18990
|
+
* ### 触发方式
|
|
18991
|
+
* 不建议直接设置哦~ (默认blur)
|
|
18992
|
+
*/
|
|
18993
|
+
__publicField(this, "trigger", "change");
|
|
18994
|
+
/**
|
|
18995
|
+
* ### 类型
|
|
18996
|
+
* 可通过 `toString` `toNumber` `toArray` 设置 (默认`string`)
|
|
18997
|
+
*/
|
|
18998
|
+
__publicField(this, "type");
|
|
18999
|
+
/**
|
|
19000
|
+
* ### 是否必填
|
|
19001
|
+
* 可以调用 `.ifEmpty()`
|
|
19002
|
+
*/
|
|
19003
|
+
__publicField(this, "required", false);
|
|
19004
|
+
/**
|
|
19005
|
+
* ### 自定义验证器
|
|
19006
|
+
* 请调用 `.setCustomValidator()`
|
|
19007
|
+
*/
|
|
19008
|
+
__publicField(this, "validator");
|
|
19009
|
+
}
|
|
19114
19010
|
/**
|
|
19115
19011
|
* ### 通过指定错误信息来创建一个验证器
|
|
19116
19012
|
* @param message `可选` 验证失败的提示
|
|
@@ -19638,7 +19534,8 @@ function useEditor(props, ServiceClass, option = {}) {
|
|
|
19638
19534
|
watch(
|
|
19639
19535
|
result.formData,
|
|
19640
19536
|
() => {
|
|
19641
|
-
|
|
19537
|
+
var _a;
|
|
19538
|
+
(_a = formRef.value) == null ? void 0 : _a.validate();
|
|
19642
19539
|
},
|
|
19643
19540
|
{
|
|
19644
19541
|
deep: true,
|
|
@@ -19716,24 +19613,24 @@ function useTableTree(serviceClass, option = {}) {
|
|
|
19716
19613
|
}
|
|
19717
19614
|
class RootModel extends Transformer {
|
|
19718
19615
|
}
|
|
19719
|
-
var
|
|
19616
|
+
var __defProp2 = Object.defineProperty;
|
|
19720
19617
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
19721
19618
|
var result = void 0;
|
|
19722
19619
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
19723
19620
|
if (decorator = decorators[i])
|
|
19724
19621
|
result = decorator(target, key, result) || result;
|
|
19725
|
-
if (result)
|
|
19622
|
+
if (result) __defProp2(target, key, result);
|
|
19726
19623
|
return result;
|
|
19727
19624
|
};
|
|
19728
19625
|
class RootEntity extends RootModel {
|
|
19729
|
-
id;
|
|
19730
|
-
isDisabled;
|
|
19731
19626
|
/**
|
|
19732
19627
|
* ### 实例化一个实体
|
|
19733
19628
|
* @param id `可选` 主键 `ID`
|
|
19734
19629
|
*/
|
|
19735
19630
|
constructor(id) {
|
|
19736
19631
|
super();
|
|
19632
|
+
__publicField(this, "id");
|
|
19633
|
+
__publicField(this, "isDisabled");
|
|
19737
19634
|
if (id) {
|
|
19738
19635
|
this.id = id;
|
|
19739
19636
|
}
|
|
@@ -19771,18 +19668,6 @@ __decorateClass([
|
|
|
19771
19668
|
})
|
|
19772
19669
|
], RootEntity.prototype, "isDisabled");
|
|
19773
19670
|
class RouterUtil {
|
|
19774
|
-
/**
|
|
19775
|
-
* ### 当前路由
|
|
19776
|
-
*/
|
|
19777
|
-
static router;
|
|
19778
|
-
/**
|
|
19779
|
-
* ### 私有构造器
|
|
19780
|
-
*/
|
|
19781
|
-
static components = {};
|
|
19782
|
-
/**
|
|
19783
|
-
* ### 组件目录
|
|
19784
|
-
*/
|
|
19785
|
-
static componentsDirectory = "";
|
|
19786
19671
|
/**
|
|
19787
19672
|
* ### 将 `IMenu` 菜单列表初始化到 `Vue` 路由中
|
|
19788
19673
|
* @param menuList 菜单列表
|
|
@@ -19885,12 +19770,27 @@ class RouterUtil {
|
|
|
19885
19770
|
}
|
|
19886
19771
|
}
|
|
19887
19772
|
}
|
|
19773
|
+
/**
|
|
19774
|
+
* ### 当前路由
|
|
19775
|
+
*/
|
|
19776
|
+
__publicField(RouterUtil, "router");
|
|
19777
|
+
/**
|
|
19778
|
+
* ### 私有构造器
|
|
19779
|
+
*/
|
|
19780
|
+
__publicField(RouterUtil, "components", {});
|
|
19781
|
+
/**
|
|
19782
|
+
* ### 组件目录
|
|
19783
|
+
*/
|
|
19784
|
+
__publicField(RouterUtil, "componentsDirectory", "");
|
|
19888
19785
|
class AbstractService extends Transformer {
|
|
19889
|
-
|
|
19890
|
-
|
|
19891
|
-
|
|
19892
|
-
|
|
19893
|
-
|
|
19786
|
+
constructor() {
|
|
19787
|
+
super(...arguments);
|
|
19788
|
+
/**
|
|
19789
|
+
* ### `Loading`
|
|
19790
|
+
* 你可以将这个传入的对象绑定到你需要 `Loading` 的 `DOM` 上
|
|
19791
|
+
*/
|
|
19792
|
+
__publicField(this, "loading");
|
|
19793
|
+
}
|
|
19894
19794
|
/**
|
|
19895
19795
|
* ### 静态创建一个 `API` 服务实例
|
|
19896
19796
|
* @param loading `可选` Loading
|
|
@@ -19925,42 +19825,45 @@ class AbstractService extends Transformer {
|
|
|
19925
19825
|
}
|
|
19926
19826
|
}
|
|
19927
19827
|
class AbstractCurdService extends AbstractService {
|
|
19928
|
-
|
|
19929
|
-
|
|
19930
|
-
|
|
19931
|
-
|
|
19932
|
-
|
|
19933
|
-
|
|
19934
|
-
|
|
19935
|
-
|
|
19936
|
-
|
|
19937
|
-
|
|
19938
|
-
|
|
19939
|
-
|
|
19940
|
-
|
|
19941
|
-
|
|
19942
|
-
|
|
19943
|
-
|
|
19944
|
-
|
|
19945
|
-
|
|
19946
|
-
|
|
19947
|
-
|
|
19948
|
-
|
|
19949
|
-
|
|
19950
|
-
|
|
19951
|
-
|
|
19952
|
-
|
|
19953
|
-
|
|
19954
|
-
|
|
19955
|
-
|
|
19956
|
-
|
|
19957
|
-
|
|
19958
|
-
|
|
19959
|
-
|
|
19960
|
-
|
|
19961
|
-
|
|
19962
|
-
|
|
19963
|
-
|
|
19828
|
+
constructor() {
|
|
19829
|
+
super(...arguments);
|
|
19830
|
+
/**
|
|
19831
|
+
* ### 分页查询默认 `URL`
|
|
19832
|
+
*/
|
|
19833
|
+
__publicField(this, "urlGetPage", "getPage");
|
|
19834
|
+
/**
|
|
19835
|
+
* ### 不分页查询默认 `URL`
|
|
19836
|
+
*/
|
|
19837
|
+
__publicField(this, "urlGetList", "getList");
|
|
19838
|
+
/**
|
|
19839
|
+
* ### 不分页树查询默认 `URL`
|
|
19840
|
+
*/
|
|
19841
|
+
__publicField(this, "urlGetTreeList", "getTreeList");
|
|
19842
|
+
/**
|
|
19843
|
+
* ### 查询详情默认 `URL`
|
|
19844
|
+
*/
|
|
19845
|
+
__publicField(this, "urlGetDetail", "getDetail");
|
|
19846
|
+
/**
|
|
19847
|
+
* ### 添加默认 `URL`
|
|
19848
|
+
*/
|
|
19849
|
+
__publicField(this, "urlAdd", "add");
|
|
19850
|
+
/**
|
|
19851
|
+
* ### 启用默认 `URL`
|
|
19852
|
+
*/
|
|
19853
|
+
__publicField(this, "urlEnable", "enable");
|
|
19854
|
+
/**
|
|
19855
|
+
* ### 禁用默认 `URL`
|
|
19856
|
+
*/
|
|
19857
|
+
__publicField(this, "urlDisable", "disable");
|
|
19858
|
+
/**
|
|
19859
|
+
* ### 修改默认 `URL`
|
|
19860
|
+
*/
|
|
19861
|
+
__publicField(this, "urlUpdate", "update");
|
|
19862
|
+
/**
|
|
19863
|
+
* ### 删除默认 `URL`
|
|
19864
|
+
*/
|
|
19865
|
+
__publicField(this, "urlDelete", "delete");
|
|
19866
|
+
}
|
|
19964
19867
|
/**
|
|
19965
19868
|
* ### 创建验证器
|
|
19966
19869
|
* @param moreRule `可选` 更多的验证规则
|