@fmdevui/fm-dev 1.0.70 → 1.0.72
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/es/core/stores/ainputdropdow.d.ts +17 -0
- package/es/core/utils/comm/formatTime.d.ts +10 -0
- package/es/index.mjs +1 -1
- package/es/packages/core/index.mjs +1 -1
- package/es/packages/core/stores/ainputdropdow.mjs +24 -0
- package/es/packages/core/ui/components/inputdropdown/index.vue2.mjs +4 -5
- package/es/packages/core/utils/comm/formatTime.mjs +12 -1
- package/es/packages/core/utils/comm/index.mjs +1 -1
- package/es/packages/core/utils/index.mjs +1 -1
- package/index.js +1443 -1412
- package/index.min.js +31 -31
- package/index.min.mjs +31 -31
- package/index.mjs +1443 -1414
- package/lib/core/stores/ainputdropdow.d.ts +17 -0
- package/lib/core/utils/comm/formatTime.d.ts +10 -0
- package/lib/index.js +2 -0
- package/lib/packages/core/index.js +2 -0
- package/lib/packages/core/stores/ainputdropdow.js +26 -0
- package/lib/packages/core/ui/components/inputdropdown/index.vue2.js +4 -5
- package/lib/packages/core/utils/comm/formatTime.js +13 -0
- package/lib/packages/core/utils/comm/index.js +2 -0
- package/lib/packages/core/utils/index.js +2 -0
- package/package.json +1 -1
- /package/es/{component.css → defaults.css} +0 -0
package/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! fm-dev v1.0.
|
|
2
|
-
import { defineComponent, reactive, computed, watch, resolveComponent, createBlock, openBlock, withCtx, createVNode, createElementVNode, createTextVNode, toDisplayString as toDisplayString$1, withDirectives, createElementBlock, Fragment, renderList, vShow, ref, onMounted, nextTick, normalizeStyle, createCommentVNode, normalizeClass, withModifiers, mergeModels, useModel, effectScope, getCurrentInstance, shallowRef, isRef as isRef$1, inject, onUnmounted, h, Text,
|
|
1
|
+
/*! fm-dev v1.0.72 */
|
|
2
|
+
import { defineComponent, reactive, computed, watch, resolveComponent, createBlock, openBlock, withCtx, createVNode, createElementVNode, createTextVNode, toDisplayString as toDisplayString$1, withDirectives, createElementBlock, Fragment, renderList, vShow, ref, onMounted, nextTick, normalizeStyle, createCommentVNode, normalizeClass, withModifiers, mergeModels, useModel, effectScope, getCurrentInstance, shallowRef, isRef as isRef$1, inject, onUnmounted, h, Text, markRaw, hasInjectionContext, toRaw as toRaw$1, isReactive as isReactive$1, toRef, unref, getCurrentScope, onScopeDispose, toRefs, resolveDirective, resolveDynamicComponent } from 'vue';
|
|
3
3
|
import crypto from 'crypto';
|
|
4
4
|
import require$$0 from 'url';
|
|
5
5
|
import require$$1 from 'http';
|
|
@@ -8427,6 +8427,17 @@ function formatAxis(param, t) {
|
|
|
8427
8427
|
else if (hour < 22) return getMessage("eveningGreeting");
|
|
8428
8428
|
else return getMessage("nightGreeting");
|
|
8429
8429
|
}
|
|
8430
|
+
function getBdate(num = 1) {
|
|
8431
|
+
const firstDay = /* @__PURE__ */ new Date();
|
|
8432
|
+
firstDay.setDate(num);
|
|
8433
|
+
return formatDate(firstDay, "YYYY-mm-dd");
|
|
8434
|
+
}
|
|
8435
|
+
function getEdate(num = 0) {
|
|
8436
|
+
const lastDay = /* @__PURE__ */ new Date();
|
|
8437
|
+
lastDay.setMonth(lastDay.getMonth() + 1, 0);
|
|
8438
|
+
if (num > 0) lastDay.setDate(num);
|
|
8439
|
+
return formatDate(lastDay, "YYYY-mm-dd");
|
|
8440
|
+
}
|
|
8430
8441
|
|
|
8431
8442
|
function useChangeColor() {
|
|
8432
8443
|
const hexToRgb = (str) => {
|
|
@@ -29923,1462 +29934,561 @@ var svg = /*#__PURE__*/Object.freeze({
|
|
|
29923
29934
|
ZoomOut: zoom_out_default
|
|
29924
29935
|
});
|
|
29925
29936
|
|
|
29926
|
-
var
|
|
29927
|
-
|
|
29928
|
-
|
|
29929
|
-
|
|
29930
|
-
|
|
29931
|
-
|
|
29932
|
-
|
|
29933
|
-
|
|
29934
|
-
|
|
29935
|
-
|
|
29936
|
-
|
|
29937
|
-
|
|
29938
|
-
|
|
29939
|
-
|
|
29940
|
-
|
|
29941
|
-
|
|
29942
|
-
|
|
29943
|
-
|
|
29944
|
-
|
|
29945
|
-
|
|
29946
|
-
|
|
29947
|
-
|
|
29948
|
-
|
|
29949
|
-
|
|
29950
|
-
|
|
29951
|
-
|
|
29952
|
-
|
|
29953
|
-
|
|
29954
|
-
|
|
29955
|
-
|
|
29956
|
-
|
|
29957
|
-
|
|
29958
|
-
},
|
|
29959
|
-
dropWidth: {
|
|
29960
|
-
type: String,
|
|
29961
|
-
default: "90px"
|
|
29962
|
-
},
|
|
29963
|
-
/**
|
|
29964
|
-
* api service name
|
|
29965
|
-
*/
|
|
29966
|
-
apiService: {
|
|
29967
|
-
type: String,
|
|
29968
|
-
default: "baseData"
|
|
29969
|
-
},
|
|
29970
|
-
/**
|
|
29971
|
-
* api service 下的方法
|
|
29972
|
-
*/
|
|
29973
|
-
apiAction: {
|
|
29974
|
-
type: String,
|
|
29975
|
-
default: "baseDataList"
|
|
29976
|
-
},
|
|
29977
|
-
/**
|
|
29978
|
-
* 基础编码 自动获取数据
|
|
29979
|
-
*/
|
|
29980
|
-
basecode: {
|
|
29981
|
-
type: String,
|
|
29982
|
-
default: ""
|
|
29983
|
-
}
|
|
29984
|
-
}, {
|
|
29985
|
-
"id": {
|
|
29986
|
-
type: Number,
|
|
29987
|
-
default: 0
|
|
29988
|
-
},
|
|
29989
|
-
"idModifiers": {},
|
|
29990
|
-
"name": {
|
|
29991
|
-
type: String,
|
|
29992
|
-
default: ""
|
|
29993
|
-
},
|
|
29994
|
-
"nameModifiers": {}
|
|
29995
|
-
}),
|
|
29996
|
-
emits: /* @__PURE__ */ mergeModels(["change"], ["update:id", "update:name"]),
|
|
29997
|
-
setup(__props, { emit: __emit }) {
|
|
29998
|
-
const modeValueId = useModel(__props, "id");
|
|
29999
|
-
const modeValueName = useModel(__props, "name");
|
|
30000
|
-
const props = __props;
|
|
30001
|
-
const state = reactive({
|
|
30002
|
-
optionData: props.optionData
|
|
30003
|
-
});
|
|
30004
|
-
const emit = __emit;
|
|
30005
|
-
const handCommand = (command) => {
|
|
30006
|
-
const fitem = state.optionData.find((item) => item[props.bvalue] === command);
|
|
30007
|
-
modeValueId.value = fitem != null ? [props.bvalue] : 0;
|
|
30008
|
-
modeValueName.value = fitem != null ? fitem[props.blabel] : "";
|
|
30009
|
-
emit("change", fitem);
|
|
30010
|
-
};
|
|
30011
|
-
onMounted(async () => {
|
|
30012
|
-
state.optionData = props.optionData;
|
|
30013
|
-
if (props.basecode && props.basecode != "") {
|
|
30014
|
-
const res = await useBaseApi(props.apiService).get(null, props.apiAction + "/?codetype=" + props.basecode);
|
|
30015
|
-
state.optionData = res.data.result ?? [];
|
|
30016
|
-
}
|
|
30017
|
-
});
|
|
30018
|
-
const handRestdata = async () => {
|
|
30019
|
-
if (props.basecode && props.basecode != "") {
|
|
30020
|
-
const res = await useBaseApi(props.apiService).get(null, props.apiAction + "/?codetype=" + props.basecode);
|
|
30021
|
-
state.optionData = res.data.result ?? [];
|
|
30022
|
-
}
|
|
30023
|
-
};
|
|
30024
|
-
return (_ctx, _cache) => {
|
|
30025
|
-
const _component_el_icon = resolveComponent("el-icon");
|
|
30026
|
-
const _component_el_input = resolveComponent("el-input");
|
|
30027
|
-
const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
|
|
30028
|
-
const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
|
|
30029
|
-
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
30030
|
-
return openBlock(), createBlock(_component_el_dropdown, {
|
|
30031
|
-
class: "fminputdropdown",
|
|
30032
|
-
placement: "bottom",
|
|
30033
|
-
trigger: "click",
|
|
30034
|
-
style: { "width": "100%" },
|
|
30035
|
-
onCommand: handCommand
|
|
30036
|
-
}, {
|
|
30037
|
-
dropdown: withCtx(() => [
|
|
30038
|
-
createVNode(_component_el_dropdown_menu, {
|
|
30039
|
-
style: normalizeStyle({ width: __props.dropWidth })
|
|
30040
|
-
}, {
|
|
30041
|
-
default: withCtx(() => [
|
|
30042
|
-
(openBlock(true), createElementBlock(
|
|
30043
|
-
Fragment,
|
|
30044
|
-
null,
|
|
30045
|
-
renderList(state.optionData, (item, index) => {
|
|
30046
|
-
return openBlock(), createBlock(_component_el_dropdown_item, {
|
|
30047
|
-
key: index,
|
|
30048
|
-
command: item[__props.bvalue],
|
|
30049
|
-
divided: ""
|
|
30050
|
-
}, {
|
|
30051
|
-
default: withCtx(() => [
|
|
30052
|
-
createTextVNode(
|
|
30053
|
-
toDisplayString$1(item[__props.blabel]),
|
|
30054
|
-
1
|
|
30055
|
-
/* TEXT */
|
|
30056
|
-
)
|
|
30057
|
-
]),
|
|
30058
|
-
_: 2
|
|
30059
|
-
/* DYNAMIC */
|
|
30060
|
-
}, 1032, ["command"]);
|
|
30061
|
-
}),
|
|
30062
|
-
128
|
|
30063
|
-
/* KEYED_FRAGMENT */
|
|
30064
|
-
))
|
|
30065
|
-
]),
|
|
30066
|
-
_: 1
|
|
30067
|
-
/* STABLE */
|
|
30068
|
-
}, 8, ["style"])
|
|
30069
|
-
]),
|
|
30070
|
-
default: withCtx(() => [
|
|
30071
|
-
createVNode(_component_el_input, {
|
|
30072
|
-
modelValue: modeValueName.value,
|
|
30073
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValueName.value = $event),
|
|
30074
|
-
placeholder: props.placeholder,
|
|
30075
|
-
style: normalizeStyle({ width: __props.inputWidth })
|
|
30076
|
-
}, {
|
|
30077
|
-
append: withCtx(() => [
|
|
30078
|
-
createVNode(_component_el_icon, {
|
|
30079
|
-
color: "#13c2c2",
|
|
30080
|
-
onClick: handRestdata
|
|
30081
|
-
}, {
|
|
30082
|
-
default: withCtx(() => [
|
|
30083
|
-
createVNode(unref(refresh_left_default))
|
|
30084
|
-
]),
|
|
30085
|
-
_: 1
|
|
30086
|
-
/* STABLE */
|
|
30087
|
-
})
|
|
30088
|
-
]),
|
|
30089
|
-
_: 1
|
|
30090
|
-
/* STABLE */
|
|
30091
|
-
}, 8, ["modelValue", "placeholder", "style"])
|
|
30092
|
-
]),
|
|
30093
|
-
_: 1
|
|
30094
|
-
/* STABLE */
|
|
30095
|
-
});
|
|
30096
|
-
};
|
|
29937
|
+
var __create$1 = Object.create;
|
|
29938
|
+
var __defProp$1 = Object.defineProperty;
|
|
29939
|
+
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
29940
|
+
var __getOwnPropNames$1 = Object.getOwnPropertyNames;
|
|
29941
|
+
var __getProtoOf$1 = Object.getPrototypeOf;
|
|
29942
|
+
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
29943
|
+
var __esm$1 = (fn, res) => function __init() {
|
|
29944
|
+
return fn && (res = (0, fn[__getOwnPropNames$1(fn)[0]])(fn = 0)), res;
|
|
29945
|
+
};
|
|
29946
|
+
var __commonJS$1 = (cb, mod) => function __require() {
|
|
29947
|
+
return mod || (0, cb[__getOwnPropNames$1(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
29948
|
+
};
|
|
29949
|
+
var __copyProps$1 = (to, from, except, desc) => {
|
|
29950
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
29951
|
+
for (let key of __getOwnPropNames$1(from))
|
|
29952
|
+
if (!__hasOwnProp$1.call(to, key) && key !== except)
|
|
29953
|
+
__defProp$1(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc$1(from, key)) || desc.enumerable });
|
|
29954
|
+
}
|
|
29955
|
+
return to;
|
|
29956
|
+
};
|
|
29957
|
+
var __toESM$1 = (mod, isNodeMode, target2) => (target2 = mod != null ? __create$1(__getProtoOf$1(mod)) : {}, __copyProps$1(
|
|
29958
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
29959
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
29960
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
29961
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29962
|
+
__defProp$1(target2, "default", { value: mod, enumerable: true }) ,
|
|
29963
|
+
mod
|
|
29964
|
+
));
|
|
29965
|
+
|
|
29966
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js
|
|
29967
|
+
var init_esm_shims$1 = __esm$1({
|
|
29968
|
+
"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
|
|
30097
29969
|
}
|
|
30098
29970
|
});
|
|
30099
29971
|
|
|
30100
|
-
|
|
30101
|
-
|
|
30102
|
-
|
|
30103
|
-
|
|
30104
|
-
|
|
30105
|
-
|
|
30106
|
-
|
|
30107
|
-
|
|
30108
|
-
|
|
30109
|
-
|
|
30110
|
-
props: {
|
|
30111
|
-
checkStrictly: { type: Boolean, default: true },
|
|
30112
|
-
/**
|
|
30113
|
-
* api service name
|
|
30114
|
-
*/
|
|
30115
|
-
apiService: {
|
|
30116
|
-
type: String,
|
|
30117
|
-
default: "planOrder"
|
|
30118
|
-
},
|
|
30119
|
-
/**
|
|
30120
|
-
* api service 下的方法
|
|
30121
|
-
*/
|
|
30122
|
-
apiAction: {
|
|
30123
|
-
type: String,
|
|
30124
|
-
default: "autoQuerySearch"
|
|
30125
|
-
},
|
|
30126
|
-
paras: {
|
|
30127
|
-
type: Object,
|
|
30128
|
-
default: null
|
|
30129
|
-
},
|
|
30130
|
-
nodeKey: {
|
|
30131
|
-
type: String,
|
|
30132
|
-
default: "id"
|
|
30133
|
-
},
|
|
30134
|
-
defaultProps: {
|
|
30135
|
-
type: Object,
|
|
30136
|
-
default: { children: "children", label: "name" }
|
|
29972
|
+
// ../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js
|
|
29973
|
+
var require_rfdc = __commonJS$1({
|
|
29974
|
+
"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(exports, module) {
|
|
29975
|
+
init_esm_shims$1();
|
|
29976
|
+
module.exports = rfdc2;
|
|
29977
|
+
function copyBuffer(cur) {
|
|
29978
|
+
if (cur instanceof Buffer) {
|
|
29979
|
+
return Buffer.from(cur);
|
|
29980
|
+
}
|
|
29981
|
+
return new cur.constructor(cur.buffer.slice(), cur.byteOffset, cur.length);
|
|
30137
29982
|
}
|
|
30138
|
-
|
|
30139
|
-
|
|
30140
|
-
|
|
30141
|
-
|
|
30142
|
-
|
|
30143
|
-
|
|
30144
|
-
|
|
30145
|
-
|
|
30146
|
-
|
|
30147
|
-
|
|
30148
|
-
strictly: false
|
|
30149
|
-
});
|
|
30150
|
-
onMounted(async () => {
|
|
30151
|
-
await fetchTreeData();
|
|
30152
|
-
});
|
|
30153
|
-
watch(filterText, (val) => {
|
|
30154
|
-
treeRef.value.filter(val);
|
|
30155
|
-
});
|
|
30156
|
-
const fetchTreeData = async (showLoading = true) => {
|
|
30157
|
-
if (showLoading) state.loading = true;
|
|
30158
|
-
var res = await useBaseApi(props.apiService).get(props.paras, props.apiAction);
|
|
30159
|
-
state.folderData = res.data.result ?? [];
|
|
30160
|
-
if (showLoading) state.loading = false;
|
|
30161
|
-
return res.data.result ?? [];
|
|
30162
|
-
};
|
|
30163
|
-
const getCheckedKeys = () => {
|
|
30164
|
-
return treeRef.value.getCheckedKeys();
|
|
30165
|
-
};
|
|
30166
|
-
const filterNode = (value, data) => {
|
|
30167
|
-
if (!value) return true;
|
|
30168
|
-
return data.name.includes(value);
|
|
30169
|
-
};
|
|
30170
|
-
const handleCommand = async (command) => {
|
|
30171
|
-
if ("expandAll" == command) {
|
|
30172
|
-
for (let i = 0; i < treeRef.value.store._getAllNodes().length; i++) {
|
|
30173
|
-
treeRef.value.store._getAllNodes()[i].expanded = true;
|
|
29983
|
+
function rfdc2(opts) {
|
|
29984
|
+
opts = opts || {};
|
|
29985
|
+
if (opts.circles) return rfdcCircles(opts);
|
|
29986
|
+
const constructorHandlers = /* @__PURE__ */ new Map();
|
|
29987
|
+
constructorHandlers.set(Date, (o) => new Date(o));
|
|
29988
|
+
constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)));
|
|
29989
|
+
constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)));
|
|
29990
|
+
if (opts.constructorHandlers) {
|
|
29991
|
+
for (const handler2 of opts.constructorHandlers) {
|
|
29992
|
+
constructorHandlers.set(handler2[0], handler2[1]);
|
|
30174
29993
|
}
|
|
30175
|
-
}
|
|
30176
|
-
|
|
30177
|
-
|
|
29994
|
+
}
|
|
29995
|
+
let handler = null;
|
|
29996
|
+
return opts.proto ? cloneProto : clone;
|
|
29997
|
+
function cloneArray(a, fn) {
|
|
29998
|
+
const keys = Object.keys(a);
|
|
29999
|
+
const a2 = new Array(keys.length);
|
|
30000
|
+
for (let i = 0; i < keys.length; i++) {
|
|
30001
|
+
const k = keys[i];
|
|
30002
|
+
const cur = a[k];
|
|
30003
|
+
if (typeof cur !== "object" || cur === null) {
|
|
30004
|
+
a2[k] = cur;
|
|
30005
|
+
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
|
|
30006
|
+
a2[k] = handler(cur, fn);
|
|
30007
|
+
} else if (ArrayBuffer.isView(cur)) {
|
|
30008
|
+
a2[k] = copyBuffer(cur);
|
|
30009
|
+
} else {
|
|
30010
|
+
a2[k] = fn(cur);
|
|
30011
|
+
}
|
|
30178
30012
|
}
|
|
30179
|
-
|
|
30180
|
-
fetchTreeData();
|
|
30181
|
-
} else if ("rootNode" == command) {
|
|
30182
|
-
treeRef.value?.setCurrentKey();
|
|
30183
|
-
emit("node-click", { id: 0, name: "" });
|
|
30013
|
+
return a2;
|
|
30184
30014
|
}
|
|
30185
|
-
|
|
30186
|
-
|
|
30187
|
-
|
|
30188
|
-
|
|
30189
|
-
|
|
30190
|
-
|
|
30191
|
-
|
|
30192
|
-
|
|
30193
|
-
|
|
30194
|
-
|
|
30195
|
-
|
|
30196
|
-
|
|
30197
|
-
|
|
30198
|
-
|
|
30199
|
-
|
|
30200
|
-
|
|
30201
|
-
|
|
30202
|
-
|
|
30203
|
-
|
|
30204
|
-
|
|
30205
|
-
|
|
30206
|
-
|
|
30207
|
-
|
|
30208
|
-
"
|
|
30209
|
-
|
|
30210
|
-
|
|
30211
|
-
|
|
30212
|
-
|
|
30213
|
-
|
|
30214
|
-
|
|
30215
|
-
|
|
30216
|
-
|
|
30217
|
-
|
|
30218
|
-
|
|
30219
|
-
|
|
30220
|
-
|
|
30221
|
-
|
|
30222
|
-
|
|
30223
|
-
|
|
30224
|
-
|
|
30225
|
-
|
|
30226
|
-
|
|
30227
|
-
|
|
30228
|
-
|
|
30229
|
-
|
|
30230
|
-
|
|
30231
|
-
|
|
30232
|
-
|
|
30233
|
-
|
|
30234
|
-
|
|
30235
|
-
|
|
30236
|
-
|
|
30237
|
-
|
|
30238
|
-
|
|
30239
|
-
|
|
30240
|
-
|
|
30241
|
-
|
|
30242
|
-
|
|
30243
|
-
|
|
30244
|
-
|
|
30245
|
-
|
|
30246
|
-
|
|
30247
|
-
|
|
30248
|
-
|
|
30249
|
-
|
|
30250
|
-
|
|
30251
|
-
|
|
30252
|
-
|
|
30253
|
-
|
|
30254
|
-
|
|
30255
|
-
|
|
30256
|
-
|
|
30257
|
-
|
|
30258
|
-
|
|
30259
|
-
|
|
30260
|
-
|
|
30261
|
-
|
|
30262
|
-
|
|
30263
|
-
|
|
30264
|
-
|
|
30265
|
-
|
|
30266
|
-
|
|
30267
|
-
|
|
30268
|
-
|
|
30269
|
-
|
|
30270
|
-
|
|
30271
|
-
|
|
30272
|
-
|
|
30273
|
-
|
|
30274
|
-
|
|
30275
|
-
|
|
30276
|
-
|
|
30277
|
-
|
|
30278
|
-
|
|
30279
|
-
|
|
30280
|
-
|
|
30281
|
-
|
|
30282
|
-
|
|
30283
|
-
|
|
30284
|
-
|
|
30285
|
-
|
|
30286
|
-
|
|
30287
|
-
|
|
30288
|
-
|
|
30289
|
-
|
|
30290
|
-
|
|
30291
|
-
|
|
30292
|
-
|
|
30293
|
-
|
|
30294
|
-
|
|
30295
|
-
|
|
30296
|
-
|
|
30297
|
-
|
|
30298
|
-
|
|
30299
|
-
|
|
30300
|
-
|
|
30301
|
-
|
|
30302
|
-
|
|
30303
|
-
|
|
30304
|
-
|
|
30305
|
-
|
|
30306
|
-
|
|
30307
|
-
|
|
30308
|
-
|
|
30309
|
-
|
|
30310
|
-
|
|
30311
|
-
|
|
30312
|
-
|
|
30313
|
-
|
|
30314
|
-
|
|
30315
|
-
|
|
30316
|
-
|
|
30317
|
-
|
|
30318
|
-
|
|
30319
|
-
|
|
30320
|
-
|
|
30321
|
-
|
|
30322
|
-
|
|
30323
|
-
|
|
30324
|
-
|
|
30325
|
-
|
|
30326
|
-
|
|
30327
|
-
|
|
30328
|
-
]),
|
|
30329
|
-
_: 1
|
|
30330
|
-
/* STABLE */
|
|
30331
|
-
});
|
|
30332
|
-
};
|
|
30333
|
-
}
|
|
30334
|
-
});
|
|
30335
|
-
|
|
30336
|
-
const _hoisted_1 = ["src"];
|
|
30337
|
-
var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
30338
|
-
...{
|
|
30339
|
-
name: "svgIcon"
|
|
30340
|
-
},
|
|
30341
|
-
__name: "svgicon",
|
|
30342
|
-
props: {
|
|
30343
|
-
// svg 图标组件名字
|
|
30344
|
-
name: {
|
|
30345
|
-
type: String
|
|
30346
|
-
},
|
|
30347
|
-
// svg 大小
|
|
30348
|
-
size: {
|
|
30349
|
-
type: Number,
|
|
30350
|
-
default: () => 14
|
|
30351
|
-
},
|
|
30352
|
-
// svg 颜色
|
|
30353
|
-
color: {
|
|
30354
|
-
type: String
|
|
30355
|
-
}
|
|
30356
|
-
},
|
|
30357
|
-
setup(__props) {
|
|
30358
|
-
const props = __props;
|
|
30359
|
-
const linesString = ["https", "http", "/src", "/assets", "data:image", window.__env__.VITE_PUBLIC_PATH];
|
|
30360
|
-
const getIconName = computed(() => {
|
|
30361
|
-
return props?.name;
|
|
30362
|
-
});
|
|
30363
|
-
const isShowIconSvg = computed(() => {
|
|
30364
|
-
return props?.name?.startsWith("ele-");
|
|
30365
|
-
});
|
|
30366
|
-
const isShowIconImg = computed(() => {
|
|
30367
|
-
return linesString.find((str) => props.name?.startsWith(str));
|
|
30368
|
-
});
|
|
30369
|
-
const setIconSvgStyle = computed(() => {
|
|
30370
|
-
return `font-size: ${props.size}px;color: ${props.color};`;
|
|
30371
|
-
});
|
|
30372
|
-
const setIconImgOutStyle = computed(() => {
|
|
30373
|
-
return `width: ${props.size}px;height: ${props.size}px;display: inline-block;overflow: hidden;`;
|
|
30374
|
-
});
|
|
30375
|
-
const setIconSvgInsStyle = computed(() => {
|
|
30376
|
-
const filterStyle = [];
|
|
30377
|
-
const compatibles = ["-webkit", "-ms", "-o", "-moz"];
|
|
30378
|
-
compatibles.forEach((j) => filterStyle.push(`${j}-filter: drop-shadow(${props.color} ${props.size}px 0);`));
|
|
30379
|
-
return `width: ${props.size}px;height: ${props.size}px;position: relative;left: -${props.size}px;${filterStyle.join("")}`;
|
|
30380
|
-
});
|
|
30381
|
-
return (_ctx, _cache) => {
|
|
30382
|
-
return isShowIconSvg.value ? (openBlock(), createElementBlock(
|
|
30383
|
-
"i",
|
|
30384
|
-
{
|
|
30385
|
-
key: 0,
|
|
30386
|
-
class: "el-icon",
|
|
30387
|
-
style: normalizeStyle(setIconSvgStyle.value)
|
|
30388
|
-
},
|
|
30389
|
-
[
|
|
30390
|
-
(openBlock(), createBlock(resolveDynamicComponent(getIconName.value)))
|
|
30391
|
-
],
|
|
30392
|
-
4
|
|
30393
|
-
/* STYLE */
|
|
30394
|
-
)) : isShowIconImg.value ? (openBlock(), createElementBlock(
|
|
30395
|
-
"div",
|
|
30396
|
-
{
|
|
30397
|
-
key: 1,
|
|
30398
|
-
style: normalizeStyle(setIconImgOutStyle.value)
|
|
30399
|
-
},
|
|
30400
|
-
[
|
|
30401
|
-
createElementVNode("img", {
|
|
30402
|
-
src: getIconName.value,
|
|
30403
|
-
style: normalizeStyle(setIconSvgInsStyle.value)
|
|
30404
|
-
}, null, 12, _hoisted_1)
|
|
30405
|
-
],
|
|
30406
|
-
4
|
|
30407
|
-
/* STYLE */
|
|
30408
|
-
)) : (openBlock(), createElementBlock(
|
|
30409
|
-
"i",
|
|
30410
|
-
{
|
|
30411
|
-
key: 2,
|
|
30412
|
-
class: normalizeClass(getIconName.value),
|
|
30413
|
-
style: normalizeStyle(setIconSvgStyle.value)
|
|
30414
|
-
},
|
|
30415
|
-
null,
|
|
30416
|
-
6
|
|
30417
|
-
/* CLASS, STYLE */
|
|
30418
|
-
));
|
|
30419
|
-
};
|
|
30015
|
+
function clone(o) {
|
|
30016
|
+
if (typeof o !== "object" || o === null) return o;
|
|
30017
|
+
if (Array.isArray(o)) return cloneArray(o, clone);
|
|
30018
|
+
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
|
|
30019
|
+
return handler(o, clone);
|
|
30020
|
+
}
|
|
30021
|
+
const o2 = {};
|
|
30022
|
+
for (const k in o) {
|
|
30023
|
+
if (Object.hasOwnProperty.call(o, k) === false) continue;
|
|
30024
|
+
const cur = o[k];
|
|
30025
|
+
if (typeof cur !== "object" || cur === null) {
|
|
30026
|
+
o2[k] = cur;
|
|
30027
|
+
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
|
|
30028
|
+
o2[k] = handler(cur, clone);
|
|
30029
|
+
} else if (ArrayBuffer.isView(cur)) {
|
|
30030
|
+
o2[k] = copyBuffer(cur);
|
|
30031
|
+
} else {
|
|
30032
|
+
o2[k] = clone(cur);
|
|
30033
|
+
}
|
|
30034
|
+
}
|
|
30035
|
+
return o2;
|
|
30036
|
+
}
|
|
30037
|
+
function cloneProto(o) {
|
|
30038
|
+
if (typeof o !== "object" || o === null) return o;
|
|
30039
|
+
if (Array.isArray(o)) return cloneArray(o, cloneProto);
|
|
30040
|
+
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
|
|
30041
|
+
return handler(o, cloneProto);
|
|
30042
|
+
}
|
|
30043
|
+
const o2 = {};
|
|
30044
|
+
for (const k in o) {
|
|
30045
|
+
const cur = o[k];
|
|
30046
|
+
if (typeof cur !== "object" || cur === null) {
|
|
30047
|
+
o2[k] = cur;
|
|
30048
|
+
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
|
|
30049
|
+
o2[k] = handler(cur, cloneProto);
|
|
30050
|
+
} else if (ArrayBuffer.isView(cur)) {
|
|
30051
|
+
o2[k] = copyBuffer(cur);
|
|
30052
|
+
} else {
|
|
30053
|
+
o2[k] = cloneProto(cur);
|
|
30054
|
+
}
|
|
30055
|
+
}
|
|
30056
|
+
return o2;
|
|
30057
|
+
}
|
|
30058
|
+
}
|
|
30059
|
+
function rfdcCircles(opts) {
|
|
30060
|
+
const refs = [];
|
|
30061
|
+
const refsNew = [];
|
|
30062
|
+
const constructorHandlers = /* @__PURE__ */ new Map();
|
|
30063
|
+
constructorHandlers.set(Date, (o) => new Date(o));
|
|
30064
|
+
constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)));
|
|
30065
|
+
constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)));
|
|
30066
|
+
if (opts.constructorHandlers) {
|
|
30067
|
+
for (const handler2 of opts.constructorHandlers) {
|
|
30068
|
+
constructorHandlers.set(handler2[0], handler2[1]);
|
|
30069
|
+
}
|
|
30070
|
+
}
|
|
30071
|
+
let handler = null;
|
|
30072
|
+
return opts.proto ? cloneProto : clone;
|
|
30073
|
+
function cloneArray(a, fn) {
|
|
30074
|
+
const keys = Object.keys(a);
|
|
30075
|
+
const a2 = new Array(keys.length);
|
|
30076
|
+
for (let i = 0; i < keys.length; i++) {
|
|
30077
|
+
const k = keys[i];
|
|
30078
|
+
const cur = a[k];
|
|
30079
|
+
if (typeof cur !== "object" || cur === null) {
|
|
30080
|
+
a2[k] = cur;
|
|
30081
|
+
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
|
|
30082
|
+
a2[k] = handler(cur, fn);
|
|
30083
|
+
} else if (ArrayBuffer.isView(cur)) {
|
|
30084
|
+
a2[k] = copyBuffer(cur);
|
|
30085
|
+
} else {
|
|
30086
|
+
const index = refs.indexOf(cur);
|
|
30087
|
+
if (index !== -1) {
|
|
30088
|
+
a2[k] = refsNew[index];
|
|
30089
|
+
} else {
|
|
30090
|
+
a2[k] = fn(cur);
|
|
30091
|
+
}
|
|
30092
|
+
}
|
|
30093
|
+
}
|
|
30094
|
+
return a2;
|
|
30095
|
+
}
|
|
30096
|
+
function clone(o) {
|
|
30097
|
+
if (typeof o !== "object" || o === null) return o;
|
|
30098
|
+
if (Array.isArray(o)) return cloneArray(o, clone);
|
|
30099
|
+
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
|
|
30100
|
+
return handler(o, clone);
|
|
30101
|
+
}
|
|
30102
|
+
const o2 = {};
|
|
30103
|
+
refs.push(o);
|
|
30104
|
+
refsNew.push(o2);
|
|
30105
|
+
for (const k in o) {
|
|
30106
|
+
if (Object.hasOwnProperty.call(o, k) === false) continue;
|
|
30107
|
+
const cur = o[k];
|
|
30108
|
+
if (typeof cur !== "object" || cur === null) {
|
|
30109
|
+
o2[k] = cur;
|
|
30110
|
+
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
|
|
30111
|
+
o2[k] = handler(cur, clone);
|
|
30112
|
+
} else if (ArrayBuffer.isView(cur)) {
|
|
30113
|
+
o2[k] = copyBuffer(cur);
|
|
30114
|
+
} else {
|
|
30115
|
+
const i = refs.indexOf(cur);
|
|
30116
|
+
if (i !== -1) {
|
|
30117
|
+
o2[k] = refsNew[i];
|
|
30118
|
+
} else {
|
|
30119
|
+
o2[k] = clone(cur);
|
|
30120
|
+
}
|
|
30121
|
+
}
|
|
30122
|
+
}
|
|
30123
|
+
refs.pop();
|
|
30124
|
+
refsNew.pop();
|
|
30125
|
+
return o2;
|
|
30126
|
+
}
|
|
30127
|
+
function cloneProto(o) {
|
|
30128
|
+
if (typeof o !== "object" || o === null) return o;
|
|
30129
|
+
if (Array.isArray(o)) return cloneArray(o, cloneProto);
|
|
30130
|
+
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
|
|
30131
|
+
return handler(o, cloneProto);
|
|
30132
|
+
}
|
|
30133
|
+
const o2 = {};
|
|
30134
|
+
refs.push(o);
|
|
30135
|
+
refsNew.push(o2);
|
|
30136
|
+
for (const k in o) {
|
|
30137
|
+
const cur = o[k];
|
|
30138
|
+
if (typeof cur !== "object" || cur === null) {
|
|
30139
|
+
o2[k] = cur;
|
|
30140
|
+
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
|
|
30141
|
+
o2[k] = handler(cur, cloneProto);
|
|
30142
|
+
} else if (ArrayBuffer.isView(cur)) {
|
|
30143
|
+
o2[k] = copyBuffer(cur);
|
|
30144
|
+
} else {
|
|
30145
|
+
const i = refs.indexOf(cur);
|
|
30146
|
+
if (i !== -1) {
|
|
30147
|
+
o2[k] = refsNew[i];
|
|
30148
|
+
} else {
|
|
30149
|
+
o2[k] = cloneProto(cur);
|
|
30150
|
+
}
|
|
30151
|
+
}
|
|
30152
|
+
}
|
|
30153
|
+
refs.pop();
|
|
30154
|
+
refsNew.pop();
|
|
30155
|
+
return o2;
|
|
30156
|
+
}
|
|
30157
|
+
}
|
|
30420
30158
|
}
|
|
30421
30159
|
});
|
|
30422
30160
|
|
|
30423
|
-
|
|
30424
|
-
|
|
30425
|
-
|
|
30426
|
-
|
|
30427
|
-
|
|
30428
|
-
|
|
30161
|
+
// src/index.ts
|
|
30162
|
+
init_esm_shims$1();
|
|
30163
|
+
|
|
30164
|
+
// src/constants.ts
|
|
30165
|
+
init_esm_shims$1();
|
|
30166
|
+
|
|
30167
|
+
// src/env.ts
|
|
30168
|
+
init_esm_shims$1();
|
|
30169
|
+
var isBrowser = typeof navigator !== "undefined";
|
|
30170
|
+
var target = typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : {};
|
|
30171
|
+
typeof target.chrome !== "undefined" && !!target.chrome.devtools;
|
|
30172
|
+
isBrowser && target.self !== target.top;
|
|
30173
|
+
var _a$1;
|
|
30174
|
+
typeof navigator !== "undefined" && ((_a$1 = navigator.userAgent) == null ? void 0 : _a$1.toLowerCase().includes("electron"));
|
|
30175
|
+
|
|
30176
|
+
// src/general.ts
|
|
30177
|
+
init_esm_shims$1();
|
|
30178
|
+
var import_rfdc = __toESM$1(require_rfdc());
|
|
30179
|
+
var classifyRE = /(?:^|[-_/])(\w)/g;
|
|
30180
|
+
function toUpper(_, c) {
|
|
30181
|
+
return c ? c.toUpperCase() : "";
|
|
30182
|
+
}
|
|
30183
|
+
function classify(str) {
|
|
30184
|
+
return str && `${str}`.replace(classifyRE, toUpper);
|
|
30185
|
+
}
|
|
30186
|
+
function basename(filename, ext) {
|
|
30187
|
+
let normalizedFilename = filename.replace(/^[a-z]:/i, "").replace(/\\/g, "/");
|
|
30188
|
+
if (normalizedFilename.endsWith(`index${ext}`)) {
|
|
30189
|
+
normalizedFilename = normalizedFilename.replace(`/index${ext}`, ext);
|
|
30429
30190
|
}
|
|
30430
|
-
|
|
30431
|
-
|
|
30191
|
+
const lastSlashIndex = normalizedFilename.lastIndexOf("/");
|
|
30192
|
+
const baseNameWithExt = normalizedFilename.substring(lastSlashIndex + 1);
|
|
30193
|
+
{
|
|
30194
|
+
const extIndex = baseNameWithExt.lastIndexOf(ext);
|
|
30195
|
+
return baseNameWithExt.substring(0, extIndex);
|
|
30432
30196
|
}
|
|
30433
30197
|
}
|
|
30198
|
+
var deepClone = (0, import_rfdc.default)({ circles: true });
|
|
30434
30199
|
|
|
30435
|
-
const
|
|
30436
|
-
|
|
30437
|
-
|
|
30438
|
-
|
|
30439
|
-
|
|
30440
|
-
|
|
30441
|
-
|
|
30442
|
-
|
|
30443
|
-
|
|
30444
|
-
|
|
30445
|
-
|
|
30446
|
-
|
|
30447
|
-
|
|
30448
|
-
|
|
30449
|
-
|
|
30200
|
+
const DEBOUNCE_DEFAULTS = {
|
|
30201
|
+
trailing: true
|
|
30202
|
+
};
|
|
30203
|
+
function debounce(fn, wait = 25, options = {}) {
|
|
30204
|
+
options = { ...DEBOUNCE_DEFAULTS, ...options };
|
|
30205
|
+
if (!Number.isFinite(wait)) {
|
|
30206
|
+
throw new TypeError("Expected `wait` to be a finite number");
|
|
30207
|
+
}
|
|
30208
|
+
let leadingValue;
|
|
30209
|
+
let timeout;
|
|
30210
|
+
let resolveList = [];
|
|
30211
|
+
let currentPromise;
|
|
30212
|
+
let trailingArgs;
|
|
30213
|
+
const applyFn = (_this, args) => {
|
|
30214
|
+
currentPromise = _applyPromised(fn, _this, args);
|
|
30215
|
+
currentPromise.finally(() => {
|
|
30216
|
+
currentPromise = null;
|
|
30217
|
+
if (options.trailing && trailingArgs && !timeout) {
|
|
30218
|
+
const promise = applyFn(_this, trailingArgs);
|
|
30219
|
+
trailingArgs = null;
|
|
30220
|
+
return promise;
|
|
30450
30221
|
}
|
|
30451
|
-
);
|
|
30452
|
-
|
|
30453
|
-
elSvg(app);
|
|
30222
|
+
});
|
|
30223
|
+
return currentPromise;
|
|
30454
30224
|
};
|
|
30455
|
-
return {
|
|
30456
|
-
|
|
30225
|
+
return function(...args) {
|
|
30226
|
+
if (currentPromise) {
|
|
30227
|
+
if (options.trailing) {
|
|
30228
|
+
trailingArgs = args;
|
|
30229
|
+
}
|
|
30230
|
+
return currentPromise;
|
|
30231
|
+
}
|
|
30232
|
+
return new Promise((resolve) => {
|
|
30233
|
+
const shouldCallNow = !timeout && options.leading;
|
|
30234
|
+
clearTimeout(timeout);
|
|
30235
|
+
timeout = setTimeout(() => {
|
|
30236
|
+
timeout = null;
|
|
30237
|
+
const promise = options.leading ? leadingValue : applyFn(this, args);
|
|
30238
|
+
for (const _resolve of resolveList) {
|
|
30239
|
+
_resolve(promise);
|
|
30240
|
+
}
|
|
30241
|
+
resolveList = [];
|
|
30242
|
+
}, wait);
|
|
30243
|
+
if (shouldCallNow) {
|
|
30244
|
+
leadingValue = applyFn(this, args);
|
|
30245
|
+
resolve(leadingValue);
|
|
30246
|
+
} else {
|
|
30247
|
+
resolveList.push(resolve);
|
|
30248
|
+
}
|
|
30249
|
+
});
|
|
30457
30250
|
};
|
|
30458
|
-
}
|
|
30251
|
+
}
|
|
30252
|
+
async function _applyPromised(fn, _this, args) {
|
|
30253
|
+
return await fn.apply(_this, args);
|
|
30254
|
+
}
|
|
30459
30255
|
|
|
30460
|
-
|
|
30461
|
-
|
|
30462
|
-
|
|
30463
|
-
|
|
30464
|
-
|
|
30465
|
-
|
|
30466
|
-
|
|
30467
|
-
|
|
30468
|
-
login.value = true;
|
|
30256
|
+
function flatHooks(configHooks, hooks = {}, parentName) {
|
|
30257
|
+
for (const key in configHooks) {
|
|
30258
|
+
const subHook = configHooks[key];
|
|
30259
|
+
const name = parentName ? `${parentName}:${key}` : key;
|
|
30260
|
+
if (typeof subHook === "object" && subHook !== null) {
|
|
30261
|
+
flatHooks(subHook, hooks, name);
|
|
30262
|
+
} else if (typeof subHook === "function") {
|
|
30263
|
+
hooks[name] = subHook;
|
|
30469
30264
|
}
|
|
30470
|
-
return (_ctx, _cache) => {
|
|
30471
|
-
return openBlock(), createElementBlock("div", { onClick: handleLogin }, _cache[0] || (_cache[0] = [
|
|
30472
|
-
createElementVNode(
|
|
30473
|
-
"h1",
|
|
30474
|
-
null,
|
|
30475
|
-
"login xxxxx ",
|
|
30476
|
-
-1
|
|
30477
|
-
/* CACHED */
|
|
30478
|
-
)
|
|
30479
|
-
]));
|
|
30480
|
-
};
|
|
30481
30265
|
}
|
|
30482
|
-
|
|
30483
|
-
|
|
30484
|
-
const FmLogin = _sfc_main;
|
|
30485
|
-
|
|
30486
|
-
const plugins = [
|
|
30487
|
-
FmLogin,
|
|
30488
|
-
FmTransfer,
|
|
30489
|
-
FmNoticeBar,
|
|
30490
|
-
Fmselect,
|
|
30491
|
-
FmAutocomplete,
|
|
30492
|
-
Fminputdropdown,
|
|
30493
|
-
FmTree
|
|
30494
|
-
];
|
|
30495
|
-
|
|
30496
|
-
var installer = makeInstaller([...plugins]);
|
|
30497
|
-
|
|
30498
|
-
const cssCdnUrlList = [
|
|
30499
|
-
// 调整为从本地引入,注释下面的 url
|
|
30500
|
-
// '//at.alicdn.com/t/c/font_2298093_rnp72ifj3ba.css',
|
|
30501
|
-
// '//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css',
|
|
30502
|
-
];
|
|
30503
|
-
const jsCdnUrlList = [];
|
|
30504
|
-
function setCssCdn() {
|
|
30505
|
-
if (cssCdnUrlList.length <= 0) return false;
|
|
30506
|
-
cssCdnUrlList.map((v) => {
|
|
30507
|
-
let link = document.createElement("link");
|
|
30508
|
-
link.rel = "stylesheet";
|
|
30509
|
-
link.href = v;
|
|
30510
|
-
link.crossOrigin = "anonymous";
|
|
30511
|
-
document.getElementsByTagName("head")[0].appendChild(link);
|
|
30512
|
-
});
|
|
30266
|
+
return hooks;
|
|
30513
30267
|
}
|
|
30514
|
-
|
|
30515
|
-
|
|
30516
|
-
|
|
30517
|
-
|
|
30518
|
-
|
|
30519
|
-
|
|
30520
|
-
|
|
30268
|
+
const defaultTask = { run: (function_) => function_() };
|
|
30269
|
+
const _createTask = () => defaultTask;
|
|
30270
|
+
const createTask = typeof console.createTask !== "undefined" ? console.createTask : _createTask;
|
|
30271
|
+
function serialTaskCaller(hooks, args) {
|
|
30272
|
+
const name = args.shift();
|
|
30273
|
+
const task = createTask(name);
|
|
30274
|
+
return hooks.reduce(
|
|
30275
|
+
(promise, hookFunction) => promise.then(() => task.run(() => hookFunction(...args))),
|
|
30276
|
+
Promise.resolve()
|
|
30277
|
+
);
|
|
30521
30278
|
}
|
|
30522
|
-
|
|
30523
|
-
|
|
30524
|
-
|
|
30525
|
-
|
|
30526
|
-
|
|
30527
|
-
|
|
30528
|
-
|
|
30529
|
-
|
|
30279
|
+
function parallelTaskCaller(hooks, args) {
|
|
30280
|
+
const name = args.shift();
|
|
30281
|
+
const task = createTask(name);
|
|
30282
|
+
return Promise.all(hooks.map((hook) => task.run(() => hook(...args))));
|
|
30283
|
+
}
|
|
30284
|
+
function callEachWith(callbacks, arg0) {
|
|
30285
|
+
for (const callback of [...callbacks]) {
|
|
30286
|
+
callback(arg0);
|
|
30530
30287
|
}
|
|
30531
|
-
}
|
|
30288
|
+
}
|
|
30532
30289
|
|
|
30533
|
-
|
|
30534
|
-
|
|
30535
|
-
|
|
30536
|
-
|
|
30537
|
-
|
|
30538
|
-
|
|
30539
|
-
|
|
30540
|
-
|
|
30541
|
-
|
|
30542
|
-
|
|
30543
|
-
<div class="loading-next-box-item"></div>
|
|
30544
|
-
<div class="loading-next-box-item"></div>
|
|
30545
|
-
<div class="loading-next-box-item"></div>
|
|
30546
|
-
<div class="loading-next-box-item"></div>
|
|
30547
|
-
<div class="loading-next-box-item"></div>
|
|
30548
|
-
<div class="loading-next-box-item"></div>
|
|
30549
|
-
<div class="loading-next-box-item"></div>
|
|
30550
|
-
<div class="loading-next-box-item"></div>
|
|
30551
|
-
</div>
|
|
30552
|
-
</div>
|
|
30553
|
-
`;
|
|
30554
|
-
div.innerHTML = htmls;
|
|
30555
|
-
bodys.insertBefore(div, bodys.childNodes[0]);
|
|
30556
|
-
window.nextLoading = true;
|
|
30557
|
-
},
|
|
30558
|
-
// 移除 loading
|
|
30559
|
-
done: (time = 0) => {
|
|
30560
|
-
nextTick(() => {
|
|
30561
|
-
setTimeout(() => {
|
|
30562
|
-
window.nextLoading = false;
|
|
30563
|
-
const el = document.querySelector(".loading-next");
|
|
30564
|
-
el?.parentNode?.removeChild(el);
|
|
30565
|
-
}, time);
|
|
30566
|
-
});
|
|
30290
|
+
class Hookable {
|
|
30291
|
+
constructor() {
|
|
30292
|
+
this._hooks = {};
|
|
30293
|
+
this._before = void 0;
|
|
30294
|
+
this._after = void 0;
|
|
30295
|
+
this._deprecatedMessages = void 0;
|
|
30296
|
+
this._deprecatedHooks = {};
|
|
30297
|
+
this.hook = this.hook.bind(this);
|
|
30298
|
+
this.callHook = this.callHook.bind(this);
|
|
30299
|
+
this.callHookWith = this.callHookWith.bind(this);
|
|
30567
30300
|
}
|
|
30568
|
-
}
|
|
30569
|
-
|
|
30570
|
-
|
|
30571
|
-
|
|
30572
|
-
getSysInfo: (id) => {
|
|
30573
|
-
return service({
|
|
30574
|
-
url: `/api/sysTenant/sysInfo/${id}`,
|
|
30575
|
-
method: "GET"
|
|
30576
|
-
});
|
|
30577
|
-
},
|
|
30578
|
-
getSmPublicKey: () => {
|
|
30579
|
-
return service({
|
|
30580
|
-
url: `/api/sysConfig/smPublicKey`,
|
|
30581
|
-
method: "GET"
|
|
30582
|
-
});
|
|
30583
|
-
},
|
|
30584
|
-
getMenuTree: () => {
|
|
30585
|
-
return service({
|
|
30586
|
-
url: `/api/sysMenu/loginMenuTree`,
|
|
30587
|
-
method: "GET"
|
|
30588
|
-
});
|
|
30589
|
-
},
|
|
30590
|
-
getMenuUserMenuList: () => {
|
|
30591
|
-
return service({
|
|
30592
|
-
url: `/api/sysUserMenu/userMenuList`,
|
|
30593
|
-
method: "GET"
|
|
30594
|
-
});
|
|
30595
|
-
},
|
|
30596
|
-
addUserMenu: (data) => {
|
|
30597
|
-
return service({
|
|
30598
|
-
url: `/api/sysUserMenu/add`,
|
|
30599
|
-
method: "POST",
|
|
30600
|
-
data
|
|
30601
|
-
});
|
|
30602
|
-
},
|
|
30603
|
-
setNoticeRead: (data) => {
|
|
30604
|
-
return service({
|
|
30605
|
-
url: `/api/sysNotice/setRead`,
|
|
30606
|
-
method: "POST",
|
|
30607
|
-
data
|
|
30608
|
-
});
|
|
30609
|
-
},
|
|
30610
|
-
getNoticeTitle: () => {
|
|
30611
|
-
return service({
|
|
30612
|
-
url: `/api/sysNotice/noticeTitle`,
|
|
30613
|
-
method: "GET"
|
|
30614
|
-
});
|
|
30615
|
-
},
|
|
30616
|
-
getNoticeUnReadList: () => {
|
|
30617
|
-
return service({
|
|
30618
|
-
url: `/api/sysNotice/unReadList`,
|
|
30619
|
-
method: "GET"
|
|
30620
|
-
});
|
|
30621
|
-
},
|
|
30622
|
-
NoticePageReceived: (data) => {
|
|
30623
|
-
return service({
|
|
30624
|
-
url: `/api/sysNotice/pageReceived`,
|
|
30625
|
-
method: "POST",
|
|
30626
|
-
data
|
|
30627
|
-
});
|
|
30628
|
-
},
|
|
30629
|
-
getUpgradeLastUnRead: () => {
|
|
30630
|
-
return service({
|
|
30631
|
-
url: `/api/sysUpgrade/lastUnRead`,
|
|
30632
|
-
method: "GET"
|
|
30633
|
-
});
|
|
30634
|
-
},
|
|
30635
|
-
// 获取用户信息
|
|
30636
|
-
getUserInfo: () => {
|
|
30637
|
-
return service({
|
|
30638
|
-
url: `/api/sysAuth/userInfo`,
|
|
30639
|
-
method: "GET"
|
|
30640
|
-
});
|
|
30641
|
-
},
|
|
30642
|
-
getUserRoleTableList: () => {
|
|
30643
|
-
return service({
|
|
30644
|
-
url: `/api/sysRole/userRoleTableList`,
|
|
30645
|
-
method: "GET"
|
|
30646
|
-
});
|
|
30647
|
-
},
|
|
30648
|
-
getConstList: () => {
|
|
30649
|
-
return service({
|
|
30650
|
-
url: `/api/sysConst/list`,
|
|
30651
|
-
method: "GET"
|
|
30652
|
-
});
|
|
30653
|
-
},
|
|
30654
|
-
getPosList: () => {
|
|
30655
|
-
return service({
|
|
30656
|
-
url: `/api/sysPos/list`,
|
|
30657
|
-
method: "GET"
|
|
30658
|
-
});
|
|
30659
|
-
},
|
|
30660
|
-
getOwnRoleListById: (userid) => {
|
|
30661
|
-
return service({
|
|
30662
|
-
url: `/api/sysUser/ownRoleList/${userid}`,
|
|
30663
|
-
method: "GET"
|
|
30664
|
-
});
|
|
30665
|
-
},
|
|
30666
|
-
getRoleList: () => {
|
|
30667
|
-
return service({
|
|
30668
|
-
url: `/api/sysRole/list`,
|
|
30669
|
-
method: "GET"
|
|
30670
|
-
});
|
|
30671
|
-
},
|
|
30672
|
-
getSysOrgChildTreePidLevel: (pid, level) => {
|
|
30673
|
-
return service({
|
|
30674
|
-
url: `/api/sysOrg/childTree/${pid}/${level}`,
|
|
30675
|
-
method: "GET"
|
|
30676
|
-
});
|
|
30677
|
-
},
|
|
30678
|
-
getOrgList: (params) => {
|
|
30679
|
-
return service({
|
|
30680
|
-
url: `/api/sysOrg/list`,
|
|
30681
|
-
method: "GET",
|
|
30682
|
-
params
|
|
30683
|
-
});
|
|
30684
|
-
},
|
|
30685
|
-
getUserBaseInfo: () => {
|
|
30686
|
-
return service({
|
|
30687
|
-
url: `/api/sysUser/baseInfo`,
|
|
30688
|
-
method: "GET"
|
|
30689
|
-
});
|
|
30690
|
-
},
|
|
30691
|
-
getOwnExtOrgListByid: (userid) => {
|
|
30692
|
-
return service({
|
|
30693
|
-
url: `/api/sysUser/ownExtOrgList/${userid}`,
|
|
30694
|
-
method: "GET"
|
|
30695
|
-
});
|
|
30696
|
-
},
|
|
30697
|
-
getAllDictList: () => {
|
|
30698
|
-
return service({
|
|
30699
|
-
url: `/api/sysDictType/allDictList`,
|
|
30700
|
-
method: "GET"
|
|
30701
|
-
});
|
|
30702
|
-
},
|
|
30703
|
-
verifyPwdExpirationTime: () => {
|
|
30704
|
-
return service({
|
|
30705
|
-
url: `/api/sysUser/verifyPwdExpirationTime`,
|
|
30706
|
-
method: "POST"
|
|
30707
|
-
});
|
|
30708
|
-
},
|
|
30709
|
-
changePwd: (data) => {
|
|
30710
|
-
return service({
|
|
30711
|
-
url: `/fmauth/sysauth/changePwd`,
|
|
30712
|
-
method: "POST",
|
|
30713
|
-
data
|
|
30714
|
-
});
|
|
30715
|
-
},
|
|
30716
|
-
resetPwd: (data) => {
|
|
30717
|
-
return service({
|
|
30718
|
-
url: `/fmauth/sysauth/resetPwd`,
|
|
30719
|
-
method: "POST",
|
|
30720
|
-
data
|
|
30721
|
-
});
|
|
30722
|
-
},
|
|
30723
|
-
unlockLogin: (data) => {
|
|
30724
|
-
return service({
|
|
30725
|
-
url: `/fmauth/sysauth/unlockLogin`,
|
|
30726
|
-
method: "POST",
|
|
30727
|
-
data
|
|
30728
|
-
});
|
|
30729
|
-
},
|
|
30730
|
-
changeToken: (data) => {
|
|
30731
|
-
return service({
|
|
30732
|
-
url: `/fmauth/sysauth/changeToken`,
|
|
30733
|
-
method: "POST",
|
|
30734
|
-
data
|
|
30735
|
-
});
|
|
30736
|
-
},
|
|
30737
|
-
Logout: () => {
|
|
30738
|
-
return service({
|
|
30739
|
-
url: `/fmauth/sysauth/logout`,
|
|
30740
|
-
method: "POST"
|
|
30741
|
-
});
|
|
30742
|
-
},
|
|
30743
|
-
unLockScreen: (password) => {
|
|
30744
|
-
return service({
|
|
30745
|
-
url: `/fmauth/sysauth/unlockScreen/?password=${password}`,
|
|
30746
|
-
method: "POST"
|
|
30747
|
-
});
|
|
30748
|
-
},
|
|
30749
|
-
getOnlineUserList: (data) => {
|
|
30750
|
-
return service({
|
|
30751
|
-
url: `/fmauth/sysOnlineUser/page`,
|
|
30752
|
-
method: "POST",
|
|
30753
|
-
data
|
|
30754
|
-
});
|
|
30301
|
+
hook(name, function_, options = {}) {
|
|
30302
|
+
if (!name || typeof function_ !== "function") {
|
|
30303
|
+
return () => {
|
|
30304
|
+
};
|
|
30755
30305
|
}
|
|
30756
|
-
|
|
30757
|
-
|
|
30758
|
-
|
|
30759
|
-
|
|
30760
|
-
|
|
30761
|
-
const parsedError = Object.assign({}, err, errorExt);
|
|
30762
|
-
return [parsedError, void 0];
|
|
30306
|
+
const originalName = name;
|
|
30307
|
+
let dep;
|
|
30308
|
+
while (this._deprecatedHooks[name]) {
|
|
30309
|
+
dep = this._deprecatedHooks[name];
|
|
30310
|
+
name = dep.to;
|
|
30763
30311
|
}
|
|
30764
|
-
|
|
30765
|
-
|
|
30766
|
-
|
|
30767
|
-
|
|
30768
|
-
|
|
30769
|
-
|
|
30770
|
-
|
|
30771
|
-
|
|
30772
|
-
|
|
30773
|
-
|
|
30774
|
-
|
|
30775
|
-
}
|
|
30776
|
-
}
|
|
30777
|
-
|
|
30778
|
-
|
|
30779
|
-
|
|
30780
|
-
|
|
30781
|
-
|
|
30782
|
-
|
|
30783
|
-
|
|
30784
|
-
|
|
30785
|
-
|
|
30786
|
-
|
|
30787
|
-
|
|
30788
|
-
|
|
30789
|
-
|
|
30790
|
-
|
|
30791
|
-
|
|
30792
|
-
|
|
30793
|
-
|
|
30794
|
-
|
|
30312
|
+
if (dep && !options.allowDeprecated) {
|
|
30313
|
+
let message = dep.message;
|
|
30314
|
+
if (!message) {
|
|
30315
|
+
message = `${originalName} hook has been deprecated` + (dep.to ? `, please use ${dep.to}` : "");
|
|
30316
|
+
}
|
|
30317
|
+
if (!this._deprecatedMessages) {
|
|
30318
|
+
this._deprecatedMessages = /* @__PURE__ */ new Set();
|
|
30319
|
+
}
|
|
30320
|
+
if (!this._deprecatedMessages.has(message)) {
|
|
30321
|
+
console.warn(message);
|
|
30322
|
+
this._deprecatedMessages.add(message);
|
|
30323
|
+
}
|
|
30324
|
+
}
|
|
30325
|
+
if (!function_.name) {
|
|
30326
|
+
try {
|
|
30327
|
+
Object.defineProperty(function_, "name", {
|
|
30328
|
+
get: () => "_" + name.replace(/\W+/g, "_") + "_hook_cb",
|
|
30329
|
+
configurable: true
|
|
30330
|
+
});
|
|
30331
|
+
} catch {
|
|
30332
|
+
}
|
|
30333
|
+
}
|
|
30334
|
+
this._hooks[name] = this._hooks[name] || [];
|
|
30335
|
+
this._hooks[name].push(function_);
|
|
30336
|
+
return () => {
|
|
30337
|
+
if (function_) {
|
|
30338
|
+
this.removeHook(name, function_);
|
|
30339
|
+
function_ = void 0;
|
|
30340
|
+
}
|
|
30341
|
+
};
|
|
30342
|
+
}
|
|
30343
|
+
hookOnce(name, function_) {
|
|
30344
|
+
let _unreg;
|
|
30345
|
+
let _function = (...arguments_) => {
|
|
30346
|
+
if (typeof _unreg === "function") {
|
|
30347
|
+
_unreg();
|
|
30348
|
+
}
|
|
30349
|
+
_unreg = void 0;
|
|
30350
|
+
_function = void 0;
|
|
30351
|
+
return function_(...arguments_);
|
|
30352
|
+
};
|
|
30353
|
+
_unreg = this.hook(name, _function);
|
|
30354
|
+
return _unreg;
|
|
30355
|
+
}
|
|
30356
|
+
removeHook(name, function_) {
|
|
30357
|
+
if (this._hooks[name]) {
|
|
30358
|
+
const index = this._hooks[name].indexOf(function_);
|
|
30359
|
+
if (index !== -1) {
|
|
30360
|
+
this._hooks[name].splice(index, 1);
|
|
30361
|
+
}
|
|
30362
|
+
if (this._hooks[name].length === 0) {
|
|
30363
|
+
delete this._hooks[name];
|
|
30364
|
+
}
|
|
30365
|
+
}
|
|
30366
|
+
}
|
|
30367
|
+
deprecateHook(name, deprecated) {
|
|
30368
|
+
this._deprecatedHooks[name] = typeof deprecated === "string" ? { to: deprecated } : deprecated;
|
|
30369
|
+
const _hooks = this._hooks[name] || [];
|
|
30370
|
+
delete this._hooks[name];
|
|
30371
|
+
for (const hook of _hooks) {
|
|
30372
|
+
this.hook(name, hook);
|
|
30373
|
+
}
|
|
30374
|
+
}
|
|
30375
|
+
deprecateHooks(deprecatedHooks) {
|
|
30376
|
+
Object.assign(this._deprecatedHooks, deprecatedHooks);
|
|
30377
|
+
for (const name in deprecatedHooks) {
|
|
30378
|
+
this.deprecateHook(name, deprecatedHooks[name]);
|
|
30379
|
+
}
|
|
30380
|
+
}
|
|
30381
|
+
addHooks(configHooks) {
|
|
30382
|
+
const hooks = flatHooks(configHooks);
|
|
30383
|
+
const removeFns = Object.keys(hooks).map(
|
|
30384
|
+
(key) => this.hook(key, hooks[key])
|
|
30385
|
+
);
|
|
30386
|
+
return () => {
|
|
30387
|
+
for (const unreg of removeFns.splice(0, removeFns.length)) {
|
|
30388
|
+
unreg();
|
|
30389
|
+
}
|
|
30390
|
+
};
|
|
30391
|
+
}
|
|
30392
|
+
removeHooks(configHooks) {
|
|
30393
|
+
const hooks = flatHooks(configHooks);
|
|
30394
|
+
for (const key in hooks) {
|
|
30395
|
+
this.removeHook(key, hooks[key]);
|
|
30396
|
+
}
|
|
30397
|
+
}
|
|
30398
|
+
removeAllHooks() {
|
|
30399
|
+
for (const key in this._hooks) {
|
|
30400
|
+
delete this._hooks[key];
|
|
30401
|
+
}
|
|
30402
|
+
}
|
|
30403
|
+
callHook(name, ...arguments_) {
|
|
30404
|
+
arguments_.unshift(name);
|
|
30405
|
+
return this.callHookWith(serialTaskCaller, name, ...arguments_);
|
|
30406
|
+
}
|
|
30407
|
+
callHookParallel(name, ...arguments_) {
|
|
30408
|
+
arguments_.unshift(name);
|
|
30409
|
+
return this.callHookWith(parallelTaskCaller, name, ...arguments_);
|
|
30410
|
+
}
|
|
30411
|
+
callHookWith(caller, name, ...arguments_) {
|
|
30412
|
+
const event = this._before || this._after ? { name, args: arguments_, context: {} } : void 0;
|
|
30413
|
+
if (this._before) {
|
|
30414
|
+
callEachWith(this._before, event);
|
|
30415
|
+
}
|
|
30416
|
+
const result = caller(
|
|
30417
|
+
name in this._hooks ? [...this._hooks[name]] : [],
|
|
30418
|
+
arguments_
|
|
30419
|
+
);
|
|
30420
|
+
if (result instanceof Promise) {
|
|
30421
|
+
return result.finally(() => {
|
|
30422
|
+
if (this._after && event) {
|
|
30423
|
+
callEachWith(this._after, event);
|
|
30424
|
+
}
|
|
30795
30425
|
});
|
|
30796
30426
|
}
|
|
30797
|
-
|
|
30427
|
+
if (this._after && event) {
|
|
30428
|
+
callEachWith(this._after, event);
|
|
30429
|
+
}
|
|
30430
|
+
return result;
|
|
30431
|
+
}
|
|
30432
|
+
beforeEach(function_) {
|
|
30433
|
+
this._before = this._before || [];
|
|
30434
|
+
this._before.push(function_);
|
|
30435
|
+
return () => {
|
|
30436
|
+
if (this._before !== void 0) {
|
|
30437
|
+
const index = this._before.indexOf(function_);
|
|
30438
|
+
if (index !== -1) {
|
|
30439
|
+
this._before.splice(index, 1);
|
|
30440
|
+
}
|
|
30441
|
+
}
|
|
30442
|
+
};
|
|
30443
|
+
}
|
|
30444
|
+
afterEach(function_) {
|
|
30445
|
+
this._after = this._after || [];
|
|
30446
|
+
this._after.push(function_);
|
|
30447
|
+
return () => {
|
|
30448
|
+
if (this._after !== void 0) {
|
|
30449
|
+
const index = this._after.indexOf(function_);
|
|
30450
|
+
if (index !== -1) {
|
|
30451
|
+
this._after.splice(index, 1);
|
|
30452
|
+
}
|
|
30453
|
+
}
|
|
30454
|
+
};
|
|
30455
|
+
}
|
|
30456
|
+
}
|
|
30457
|
+
function createHooks() {
|
|
30458
|
+
return new Hookable();
|
|
30798
30459
|
}
|
|
30799
30460
|
|
|
30800
|
-
var
|
|
30801
|
-
|
|
30802
|
-
|
|
30803
|
-
|
|
30804
|
-
|
|
30805
|
-
|
|
30806
|
-
|
|
30807
|
-
|
|
30808
|
-
var JobCreateTypeEnum = /* @__PURE__ */ ((JobCreateTypeEnum2) => {
|
|
30809
|
-
JobCreateTypeEnum2[JobCreateTypeEnum2["NUMBER_0"] = 0] = "NUMBER_0";
|
|
30810
|
-
JobCreateTypeEnum2[JobCreateTypeEnum2["NUMBER_1"] = 1] = "NUMBER_1";
|
|
30811
|
-
JobCreateTypeEnum2[JobCreateTypeEnum2["NUMBER_2"] = 2] = "NUMBER_2";
|
|
30812
|
-
return JobCreateTypeEnum2;
|
|
30813
|
-
})(JobCreateTypeEnum || {});
|
|
30814
|
-
var HttpMethodEnum = /* @__PURE__ */ ((HttpMethodEnum2) => {
|
|
30815
|
-
HttpMethodEnum2[HttpMethodEnum2["NUMBER_0"] = 0] = "NUMBER_0";
|
|
30816
|
-
HttpMethodEnum2[HttpMethodEnum2["NUMBER_1"] = 1] = "NUMBER_1";
|
|
30817
|
-
HttpMethodEnum2[HttpMethodEnum2["NUMBER_2"] = 2] = "NUMBER_2";
|
|
30818
|
-
HttpMethodEnum2[HttpMethodEnum2["NUMBER_3"] = 3] = "NUMBER_3";
|
|
30819
|
-
HttpMethodEnum2[HttpMethodEnum2["NUMBER_4"] = 4] = "NUMBER_4";
|
|
30820
|
-
HttpMethodEnum2[HttpMethodEnum2["NUMBER_5"] = 5] = "NUMBER_5";
|
|
30821
|
-
HttpMethodEnum2[HttpMethodEnum2["NUMBER_6"] = 6] = "NUMBER_6";
|
|
30822
|
-
HttpMethodEnum2[HttpMethodEnum2["NUMBER_7"] = 7] = "NUMBER_7";
|
|
30823
|
-
HttpMethodEnum2[HttpMethodEnum2["NUMBER_8"] = 8] = "NUMBER_8";
|
|
30824
|
-
return HttpMethodEnum2;
|
|
30825
|
-
})(HttpMethodEnum || {});
|
|
30826
|
-
|
|
30827
|
-
var __create$1 = Object.create;
|
|
30828
|
-
var __defProp$1 = Object.defineProperty;
|
|
30829
|
-
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
30830
|
-
var __getOwnPropNames$1 = Object.getOwnPropertyNames;
|
|
30831
|
-
var __getProtoOf$1 = Object.getPrototypeOf;
|
|
30832
|
-
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
30833
|
-
var __esm$1 = (fn, res) => function __init() {
|
|
30834
|
-
return fn && (res = (0, fn[__getOwnPropNames$1(fn)[0]])(fn = 0)), res;
|
|
30461
|
+
var __create = Object.create;
|
|
30462
|
+
var __defProp = Object.defineProperty;
|
|
30463
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
30464
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
30465
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
30466
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
30467
|
+
var __esm = (fn, res) => function __init() {
|
|
30468
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
30835
30469
|
};
|
|
30836
|
-
var __commonJS
|
|
30837
|
-
return mod || (0, cb[__getOwnPropNames
|
|
30470
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
30471
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
30838
30472
|
};
|
|
30839
|
-
var __copyProps
|
|
30473
|
+
var __copyProps = (to, from, except, desc) => {
|
|
30840
30474
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
30841
|
-
for (let key of __getOwnPropNames
|
|
30842
|
-
if (!__hasOwnProp
|
|
30843
|
-
__defProp
|
|
30475
|
+
for (let key of __getOwnPropNames(from))
|
|
30476
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
30477
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
30844
30478
|
}
|
|
30845
30479
|
return to;
|
|
30846
30480
|
};
|
|
30847
|
-
var __toESM
|
|
30481
|
+
var __toESM = (mod, isNodeMode, target22) => (target22 = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
30848
30482
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
30849
30483
|
// file that has been converted to a CommonJS file using a Babel-
|
|
30850
30484
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
30851
30485
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
30852
|
-
__defProp
|
|
30486
|
+
__defProp(target22, "default", { value: mod, enumerable: true }) ,
|
|
30853
30487
|
mod
|
|
30854
30488
|
));
|
|
30855
30489
|
|
|
30856
30490
|
// ../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js
|
|
30857
|
-
var init_esm_shims
|
|
30858
|
-
"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
|
|
30859
|
-
}
|
|
30860
|
-
});
|
|
30861
|
-
|
|
30862
|
-
// ../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js
|
|
30863
|
-
var require_rfdc = __commonJS$1({
|
|
30864
|
-
"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(exports, module) {
|
|
30865
|
-
init_esm_shims$1();
|
|
30866
|
-
module.exports = rfdc2;
|
|
30867
|
-
function copyBuffer(cur) {
|
|
30868
|
-
if (cur instanceof Buffer) {
|
|
30869
|
-
return Buffer.from(cur);
|
|
30870
|
-
}
|
|
30871
|
-
return new cur.constructor(cur.buffer.slice(), cur.byteOffset, cur.length);
|
|
30872
|
-
}
|
|
30873
|
-
function rfdc2(opts) {
|
|
30874
|
-
opts = opts || {};
|
|
30875
|
-
if (opts.circles) return rfdcCircles(opts);
|
|
30876
|
-
const constructorHandlers = /* @__PURE__ */ new Map();
|
|
30877
|
-
constructorHandlers.set(Date, (o) => new Date(o));
|
|
30878
|
-
constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)));
|
|
30879
|
-
constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)));
|
|
30880
|
-
if (opts.constructorHandlers) {
|
|
30881
|
-
for (const handler2 of opts.constructorHandlers) {
|
|
30882
|
-
constructorHandlers.set(handler2[0], handler2[1]);
|
|
30883
|
-
}
|
|
30884
|
-
}
|
|
30885
|
-
let handler = null;
|
|
30886
|
-
return opts.proto ? cloneProto : clone;
|
|
30887
|
-
function cloneArray(a, fn) {
|
|
30888
|
-
const keys = Object.keys(a);
|
|
30889
|
-
const a2 = new Array(keys.length);
|
|
30890
|
-
for (let i = 0; i < keys.length; i++) {
|
|
30891
|
-
const k = keys[i];
|
|
30892
|
-
const cur = a[k];
|
|
30893
|
-
if (typeof cur !== "object" || cur === null) {
|
|
30894
|
-
a2[k] = cur;
|
|
30895
|
-
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
|
|
30896
|
-
a2[k] = handler(cur, fn);
|
|
30897
|
-
} else if (ArrayBuffer.isView(cur)) {
|
|
30898
|
-
a2[k] = copyBuffer(cur);
|
|
30899
|
-
} else {
|
|
30900
|
-
a2[k] = fn(cur);
|
|
30901
|
-
}
|
|
30902
|
-
}
|
|
30903
|
-
return a2;
|
|
30904
|
-
}
|
|
30905
|
-
function clone(o) {
|
|
30906
|
-
if (typeof o !== "object" || o === null) return o;
|
|
30907
|
-
if (Array.isArray(o)) return cloneArray(o, clone);
|
|
30908
|
-
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
|
|
30909
|
-
return handler(o, clone);
|
|
30910
|
-
}
|
|
30911
|
-
const o2 = {};
|
|
30912
|
-
for (const k in o) {
|
|
30913
|
-
if (Object.hasOwnProperty.call(o, k) === false) continue;
|
|
30914
|
-
const cur = o[k];
|
|
30915
|
-
if (typeof cur !== "object" || cur === null) {
|
|
30916
|
-
o2[k] = cur;
|
|
30917
|
-
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
|
|
30918
|
-
o2[k] = handler(cur, clone);
|
|
30919
|
-
} else if (ArrayBuffer.isView(cur)) {
|
|
30920
|
-
o2[k] = copyBuffer(cur);
|
|
30921
|
-
} else {
|
|
30922
|
-
o2[k] = clone(cur);
|
|
30923
|
-
}
|
|
30924
|
-
}
|
|
30925
|
-
return o2;
|
|
30926
|
-
}
|
|
30927
|
-
function cloneProto(o) {
|
|
30928
|
-
if (typeof o !== "object" || o === null) return o;
|
|
30929
|
-
if (Array.isArray(o)) return cloneArray(o, cloneProto);
|
|
30930
|
-
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
|
|
30931
|
-
return handler(o, cloneProto);
|
|
30932
|
-
}
|
|
30933
|
-
const o2 = {};
|
|
30934
|
-
for (const k in o) {
|
|
30935
|
-
const cur = o[k];
|
|
30936
|
-
if (typeof cur !== "object" || cur === null) {
|
|
30937
|
-
o2[k] = cur;
|
|
30938
|
-
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
|
|
30939
|
-
o2[k] = handler(cur, cloneProto);
|
|
30940
|
-
} else if (ArrayBuffer.isView(cur)) {
|
|
30941
|
-
o2[k] = copyBuffer(cur);
|
|
30942
|
-
} else {
|
|
30943
|
-
o2[k] = cloneProto(cur);
|
|
30944
|
-
}
|
|
30945
|
-
}
|
|
30946
|
-
return o2;
|
|
30947
|
-
}
|
|
30948
|
-
}
|
|
30949
|
-
function rfdcCircles(opts) {
|
|
30950
|
-
const refs = [];
|
|
30951
|
-
const refsNew = [];
|
|
30952
|
-
const constructorHandlers = /* @__PURE__ */ new Map();
|
|
30953
|
-
constructorHandlers.set(Date, (o) => new Date(o));
|
|
30954
|
-
constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)));
|
|
30955
|
-
constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)));
|
|
30956
|
-
if (opts.constructorHandlers) {
|
|
30957
|
-
for (const handler2 of opts.constructorHandlers) {
|
|
30958
|
-
constructorHandlers.set(handler2[0], handler2[1]);
|
|
30959
|
-
}
|
|
30960
|
-
}
|
|
30961
|
-
let handler = null;
|
|
30962
|
-
return opts.proto ? cloneProto : clone;
|
|
30963
|
-
function cloneArray(a, fn) {
|
|
30964
|
-
const keys = Object.keys(a);
|
|
30965
|
-
const a2 = new Array(keys.length);
|
|
30966
|
-
for (let i = 0; i < keys.length; i++) {
|
|
30967
|
-
const k = keys[i];
|
|
30968
|
-
const cur = a[k];
|
|
30969
|
-
if (typeof cur !== "object" || cur === null) {
|
|
30970
|
-
a2[k] = cur;
|
|
30971
|
-
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
|
|
30972
|
-
a2[k] = handler(cur, fn);
|
|
30973
|
-
} else if (ArrayBuffer.isView(cur)) {
|
|
30974
|
-
a2[k] = copyBuffer(cur);
|
|
30975
|
-
} else {
|
|
30976
|
-
const index = refs.indexOf(cur);
|
|
30977
|
-
if (index !== -1) {
|
|
30978
|
-
a2[k] = refsNew[index];
|
|
30979
|
-
} else {
|
|
30980
|
-
a2[k] = fn(cur);
|
|
30981
|
-
}
|
|
30982
|
-
}
|
|
30983
|
-
}
|
|
30984
|
-
return a2;
|
|
30985
|
-
}
|
|
30986
|
-
function clone(o) {
|
|
30987
|
-
if (typeof o !== "object" || o === null) return o;
|
|
30988
|
-
if (Array.isArray(o)) return cloneArray(o, clone);
|
|
30989
|
-
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
|
|
30990
|
-
return handler(o, clone);
|
|
30991
|
-
}
|
|
30992
|
-
const o2 = {};
|
|
30993
|
-
refs.push(o);
|
|
30994
|
-
refsNew.push(o2);
|
|
30995
|
-
for (const k in o) {
|
|
30996
|
-
if (Object.hasOwnProperty.call(o, k) === false) continue;
|
|
30997
|
-
const cur = o[k];
|
|
30998
|
-
if (typeof cur !== "object" || cur === null) {
|
|
30999
|
-
o2[k] = cur;
|
|
31000
|
-
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
|
|
31001
|
-
o2[k] = handler(cur, clone);
|
|
31002
|
-
} else if (ArrayBuffer.isView(cur)) {
|
|
31003
|
-
o2[k] = copyBuffer(cur);
|
|
31004
|
-
} else {
|
|
31005
|
-
const i = refs.indexOf(cur);
|
|
31006
|
-
if (i !== -1) {
|
|
31007
|
-
o2[k] = refsNew[i];
|
|
31008
|
-
} else {
|
|
31009
|
-
o2[k] = clone(cur);
|
|
31010
|
-
}
|
|
31011
|
-
}
|
|
31012
|
-
}
|
|
31013
|
-
refs.pop();
|
|
31014
|
-
refsNew.pop();
|
|
31015
|
-
return o2;
|
|
31016
|
-
}
|
|
31017
|
-
function cloneProto(o) {
|
|
31018
|
-
if (typeof o !== "object" || o === null) return o;
|
|
31019
|
-
if (Array.isArray(o)) return cloneArray(o, cloneProto);
|
|
31020
|
-
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
|
|
31021
|
-
return handler(o, cloneProto);
|
|
31022
|
-
}
|
|
31023
|
-
const o2 = {};
|
|
31024
|
-
refs.push(o);
|
|
31025
|
-
refsNew.push(o2);
|
|
31026
|
-
for (const k in o) {
|
|
31027
|
-
const cur = o[k];
|
|
31028
|
-
if (typeof cur !== "object" || cur === null) {
|
|
31029
|
-
o2[k] = cur;
|
|
31030
|
-
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
|
|
31031
|
-
o2[k] = handler(cur, cloneProto);
|
|
31032
|
-
} else if (ArrayBuffer.isView(cur)) {
|
|
31033
|
-
o2[k] = copyBuffer(cur);
|
|
31034
|
-
} else {
|
|
31035
|
-
const i = refs.indexOf(cur);
|
|
31036
|
-
if (i !== -1) {
|
|
31037
|
-
o2[k] = refsNew[i];
|
|
31038
|
-
} else {
|
|
31039
|
-
o2[k] = cloneProto(cur);
|
|
31040
|
-
}
|
|
31041
|
-
}
|
|
31042
|
-
}
|
|
31043
|
-
refs.pop();
|
|
31044
|
-
refsNew.pop();
|
|
31045
|
-
return o2;
|
|
31046
|
-
}
|
|
31047
|
-
}
|
|
31048
|
-
}
|
|
31049
|
-
});
|
|
31050
|
-
|
|
31051
|
-
// src/index.ts
|
|
31052
|
-
init_esm_shims$1();
|
|
31053
|
-
|
|
31054
|
-
// src/constants.ts
|
|
31055
|
-
init_esm_shims$1();
|
|
31056
|
-
|
|
31057
|
-
// src/env.ts
|
|
31058
|
-
init_esm_shims$1();
|
|
31059
|
-
var isBrowser = typeof navigator !== "undefined";
|
|
31060
|
-
var target = typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : {};
|
|
31061
|
-
typeof target.chrome !== "undefined" && !!target.chrome.devtools;
|
|
31062
|
-
isBrowser && target.self !== target.top;
|
|
31063
|
-
var _a$1;
|
|
31064
|
-
typeof navigator !== "undefined" && ((_a$1 = navigator.userAgent) == null ? void 0 : _a$1.toLowerCase().includes("electron"));
|
|
31065
|
-
|
|
31066
|
-
// src/general.ts
|
|
31067
|
-
init_esm_shims$1();
|
|
31068
|
-
var import_rfdc = __toESM$1(require_rfdc());
|
|
31069
|
-
var classifyRE = /(?:^|[-_/])(\w)/g;
|
|
31070
|
-
function toUpper(_, c) {
|
|
31071
|
-
return c ? c.toUpperCase() : "";
|
|
31072
|
-
}
|
|
31073
|
-
function classify(str) {
|
|
31074
|
-
return str && `${str}`.replace(classifyRE, toUpper);
|
|
31075
|
-
}
|
|
31076
|
-
function basename(filename, ext) {
|
|
31077
|
-
let normalizedFilename = filename.replace(/^[a-z]:/i, "").replace(/\\/g, "/");
|
|
31078
|
-
if (normalizedFilename.endsWith(`index${ext}`)) {
|
|
31079
|
-
normalizedFilename = normalizedFilename.replace(`/index${ext}`, ext);
|
|
31080
|
-
}
|
|
31081
|
-
const lastSlashIndex = normalizedFilename.lastIndexOf("/");
|
|
31082
|
-
const baseNameWithExt = normalizedFilename.substring(lastSlashIndex + 1);
|
|
31083
|
-
{
|
|
31084
|
-
const extIndex = baseNameWithExt.lastIndexOf(ext);
|
|
31085
|
-
return baseNameWithExt.substring(0, extIndex);
|
|
31086
|
-
}
|
|
31087
|
-
}
|
|
31088
|
-
var deepClone = (0, import_rfdc.default)({ circles: true });
|
|
31089
|
-
|
|
31090
|
-
const DEBOUNCE_DEFAULTS = {
|
|
31091
|
-
trailing: true
|
|
31092
|
-
};
|
|
31093
|
-
function debounce(fn, wait = 25, options = {}) {
|
|
31094
|
-
options = { ...DEBOUNCE_DEFAULTS, ...options };
|
|
31095
|
-
if (!Number.isFinite(wait)) {
|
|
31096
|
-
throw new TypeError("Expected `wait` to be a finite number");
|
|
31097
|
-
}
|
|
31098
|
-
let leadingValue;
|
|
31099
|
-
let timeout;
|
|
31100
|
-
let resolveList = [];
|
|
31101
|
-
let currentPromise;
|
|
31102
|
-
let trailingArgs;
|
|
31103
|
-
const applyFn = (_this, args) => {
|
|
31104
|
-
currentPromise = _applyPromised(fn, _this, args);
|
|
31105
|
-
currentPromise.finally(() => {
|
|
31106
|
-
currentPromise = null;
|
|
31107
|
-
if (options.trailing && trailingArgs && !timeout) {
|
|
31108
|
-
const promise = applyFn(_this, trailingArgs);
|
|
31109
|
-
trailingArgs = null;
|
|
31110
|
-
return promise;
|
|
31111
|
-
}
|
|
31112
|
-
});
|
|
31113
|
-
return currentPromise;
|
|
31114
|
-
};
|
|
31115
|
-
return function(...args) {
|
|
31116
|
-
if (currentPromise) {
|
|
31117
|
-
if (options.trailing) {
|
|
31118
|
-
trailingArgs = args;
|
|
31119
|
-
}
|
|
31120
|
-
return currentPromise;
|
|
31121
|
-
}
|
|
31122
|
-
return new Promise((resolve) => {
|
|
31123
|
-
const shouldCallNow = !timeout && options.leading;
|
|
31124
|
-
clearTimeout(timeout);
|
|
31125
|
-
timeout = setTimeout(() => {
|
|
31126
|
-
timeout = null;
|
|
31127
|
-
const promise = options.leading ? leadingValue : applyFn(this, args);
|
|
31128
|
-
for (const _resolve of resolveList) {
|
|
31129
|
-
_resolve(promise);
|
|
31130
|
-
}
|
|
31131
|
-
resolveList = [];
|
|
31132
|
-
}, wait);
|
|
31133
|
-
if (shouldCallNow) {
|
|
31134
|
-
leadingValue = applyFn(this, args);
|
|
31135
|
-
resolve(leadingValue);
|
|
31136
|
-
} else {
|
|
31137
|
-
resolveList.push(resolve);
|
|
31138
|
-
}
|
|
31139
|
-
});
|
|
31140
|
-
};
|
|
31141
|
-
}
|
|
31142
|
-
async function _applyPromised(fn, _this, args) {
|
|
31143
|
-
return await fn.apply(_this, args);
|
|
31144
|
-
}
|
|
31145
|
-
|
|
31146
|
-
function flatHooks(configHooks, hooks = {}, parentName) {
|
|
31147
|
-
for (const key in configHooks) {
|
|
31148
|
-
const subHook = configHooks[key];
|
|
31149
|
-
const name = parentName ? `${parentName}:${key}` : key;
|
|
31150
|
-
if (typeof subHook === "object" && subHook !== null) {
|
|
31151
|
-
flatHooks(subHook, hooks, name);
|
|
31152
|
-
} else if (typeof subHook === "function") {
|
|
31153
|
-
hooks[name] = subHook;
|
|
31154
|
-
}
|
|
31155
|
-
}
|
|
31156
|
-
return hooks;
|
|
31157
|
-
}
|
|
31158
|
-
const defaultTask = { run: (function_) => function_() };
|
|
31159
|
-
const _createTask = () => defaultTask;
|
|
31160
|
-
const createTask = typeof console.createTask !== "undefined" ? console.createTask : _createTask;
|
|
31161
|
-
function serialTaskCaller(hooks, args) {
|
|
31162
|
-
const name = args.shift();
|
|
31163
|
-
const task = createTask(name);
|
|
31164
|
-
return hooks.reduce(
|
|
31165
|
-
(promise, hookFunction) => promise.then(() => task.run(() => hookFunction(...args))),
|
|
31166
|
-
Promise.resolve()
|
|
31167
|
-
);
|
|
31168
|
-
}
|
|
31169
|
-
function parallelTaskCaller(hooks, args) {
|
|
31170
|
-
const name = args.shift();
|
|
31171
|
-
const task = createTask(name);
|
|
31172
|
-
return Promise.all(hooks.map((hook) => task.run(() => hook(...args))));
|
|
31173
|
-
}
|
|
31174
|
-
function callEachWith(callbacks, arg0) {
|
|
31175
|
-
for (const callback of [...callbacks]) {
|
|
31176
|
-
callback(arg0);
|
|
31177
|
-
}
|
|
31178
|
-
}
|
|
31179
|
-
|
|
31180
|
-
class Hookable {
|
|
31181
|
-
constructor() {
|
|
31182
|
-
this._hooks = {};
|
|
31183
|
-
this._before = void 0;
|
|
31184
|
-
this._after = void 0;
|
|
31185
|
-
this._deprecatedMessages = void 0;
|
|
31186
|
-
this._deprecatedHooks = {};
|
|
31187
|
-
this.hook = this.hook.bind(this);
|
|
31188
|
-
this.callHook = this.callHook.bind(this);
|
|
31189
|
-
this.callHookWith = this.callHookWith.bind(this);
|
|
31190
|
-
}
|
|
31191
|
-
hook(name, function_, options = {}) {
|
|
31192
|
-
if (!name || typeof function_ !== "function") {
|
|
31193
|
-
return () => {
|
|
31194
|
-
};
|
|
31195
|
-
}
|
|
31196
|
-
const originalName = name;
|
|
31197
|
-
let dep;
|
|
31198
|
-
while (this._deprecatedHooks[name]) {
|
|
31199
|
-
dep = this._deprecatedHooks[name];
|
|
31200
|
-
name = dep.to;
|
|
31201
|
-
}
|
|
31202
|
-
if (dep && !options.allowDeprecated) {
|
|
31203
|
-
let message = dep.message;
|
|
31204
|
-
if (!message) {
|
|
31205
|
-
message = `${originalName} hook has been deprecated` + (dep.to ? `, please use ${dep.to}` : "");
|
|
31206
|
-
}
|
|
31207
|
-
if (!this._deprecatedMessages) {
|
|
31208
|
-
this._deprecatedMessages = /* @__PURE__ */ new Set();
|
|
31209
|
-
}
|
|
31210
|
-
if (!this._deprecatedMessages.has(message)) {
|
|
31211
|
-
console.warn(message);
|
|
31212
|
-
this._deprecatedMessages.add(message);
|
|
31213
|
-
}
|
|
31214
|
-
}
|
|
31215
|
-
if (!function_.name) {
|
|
31216
|
-
try {
|
|
31217
|
-
Object.defineProperty(function_, "name", {
|
|
31218
|
-
get: () => "_" + name.replace(/\W+/g, "_") + "_hook_cb",
|
|
31219
|
-
configurable: true
|
|
31220
|
-
});
|
|
31221
|
-
} catch {
|
|
31222
|
-
}
|
|
31223
|
-
}
|
|
31224
|
-
this._hooks[name] = this._hooks[name] || [];
|
|
31225
|
-
this._hooks[name].push(function_);
|
|
31226
|
-
return () => {
|
|
31227
|
-
if (function_) {
|
|
31228
|
-
this.removeHook(name, function_);
|
|
31229
|
-
function_ = void 0;
|
|
31230
|
-
}
|
|
31231
|
-
};
|
|
31232
|
-
}
|
|
31233
|
-
hookOnce(name, function_) {
|
|
31234
|
-
let _unreg;
|
|
31235
|
-
let _function = (...arguments_) => {
|
|
31236
|
-
if (typeof _unreg === "function") {
|
|
31237
|
-
_unreg();
|
|
31238
|
-
}
|
|
31239
|
-
_unreg = void 0;
|
|
31240
|
-
_function = void 0;
|
|
31241
|
-
return function_(...arguments_);
|
|
31242
|
-
};
|
|
31243
|
-
_unreg = this.hook(name, _function);
|
|
31244
|
-
return _unreg;
|
|
31245
|
-
}
|
|
31246
|
-
removeHook(name, function_) {
|
|
31247
|
-
if (this._hooks[name]) {
|
|
31248
|
-
const index = this._hooks[name].indexOf(function_);
|
|
31249
|
-
if (index !== -1) {
|
|
31250
|
-
this._hooks[name].splice(index, 1);
|
|
31251
|
-
}
|
|
31252
|
-
if (this._hooks[name].length === 0) {
|
|
31253
|
-
delete this._hooks[name];
|
|
31254
|
-
}
|
|
31255
|
-
}
|
|
31256
|
-
}
|
|
31257
|
-
deprecateHook(name, deprecated) {
|
|
31258
|
-
this._deprecatedHooks[name] = typeof deprecated === "string" ? { to: deprecated } : deprecated;
|
|
31259
|
-
const _hooks = this._hooks[name] || [];
|
|
31260
|
-
delete this._hooks[name];
|
|
31261
|
-
for (const hook of _hooks) {
|
|
31262
|
-
this.hook(name, hook);
|
|
31263
|
-
}
|
|
31264
|
-
}
|
|
31265
|
-
deprecateHooks(deprecatedHooks) {
|
|
31266
|
-
Object.assign(this._deprecatedHooks, deprecatedHooks);
|
|
31267
|
-
for (const name in deprecatedHooks) {
|
|
31268
|
-
this.deprecateHook(name, deprecatedHooks[name]);
|
|
31269
|
-
}
|
|
31270
|
-
}
|
|
31271
|
-
addHooks(configHooks) {
|
|
31272
|
-
const hooks = flatHooks(configHooks);
|
|
31273
|
-
const removeFns = Object.keys(hooks).map(
|
|
31274
|
-
(key) => this.hook(key, hooks[key])
|
|
31275
|
-
);
|
|
31276
|
-
return () => {
|
|
31277
|
-
for (const unreg of removeFns.splice(0, removeFns.length)) {
|
|
31278
|
-
unreg();
|
|
31279
|
-
}
|
|
31280
|
-
};
|
|
31281
|
-
}
|
|
31282
|
-
removeHooks(configHooks) {
|
|
31283
|
-
const hooks = flatHooks(configHooks);
|
|
31284
|
-
for (const key in hooks) {
|
|
31285
|
-
this.removeHook(key, hooks[key]);
|
|
31286
|
-
}
|
|
31287
|
-
}
|
|
31288
|
-
removeAllHooks() {
|
|
31289
|
-
for (const key in this._hooks) {
|
|
31290
|
-
delete this._hooks[key];
|
|
31291
|
-
}
|
|
31292
|
-
}
|
|
31293
|
-
callHook(name, ...arguments_) {
|
|
31294
|
-
arguments_.unshift(name);
|
|
31295
|
-
return this.callHookWith(serialTaskCaller, name, ...arguments_);
|
|
31296
|
-
}
|
|
31297
|
-
callHookParallel(name, ...arguments_) {
|
|
31298
|
-
arguments_.unshift(name);
|
|
31299
|
-
return this.callHookWith(parallelTaskCaller, name, ...arguments_);
|
|
31300
|
-
}
|
|
31301
|
-
callHookWith(caller, name, ...arguments_) {
|
|
31302
|
-
const event = this._before || this._after ? { name, args: arguments_, context: {} } : void 0;
|
|
31303
|
-
if (this._before) {
|
|
31304
|
-
callEachWith(this._before, event);
|
|
31305
|
-
}
|
|
31306
|
-
const result = caller(
|
|
31307
|
-
name in this._hooks ? [...this._hooks[name]] : [],
|
|
31308
|
-
arguments_
|
|
31309
|
-
);
|
|
31310
|
-
if (result instanceof Promise) {
|
|
31311
|
-
return result.finally(() => {
|
|
31312
|
-
if (this._after && event) {
|
|
31313
|
-
callEachWith(this._after, event);
|
|
31314
|
-
}
|
|
31315
|
-
});
|
|
31316
|
-
}
|
|
31317
|
-
if (this._after && event) {
|
|
31318
|
-
callEachWith(this._after, event);
|
|
31319
|
-
}
|
|
31320
|
-
return result;
|
|
31321
|
-
}
|
|
31322
|
-
beforeEach(function_) {
|
|
31323
|
-
this._before = this._before || [];
|
|
31324
|
-
this._before.push(function_);
|
|
31325
|
-
return () => {
|
|
31326
|
-
if (this._before !== void 0) {
|
|
31327
|
-
const index = this._before.indexOf(function_);
|
|
31328
|
-
if (index !== -1) {
|
|
31329
|
-
this._before.splice(index, 1);
|
|
31330
|
-
}
|
|
31331
|
-
}
|
|
31332
|
-
};
|
|
31333
|
-
}
|
|
31334
|
-
afterEach(function_) {
|
|
31335
|
-
this._after = this._after || [];
|
|
31336
|
-
this._after.push(function_);
|
|
31337
|
-
return () => {
|
|
31338
|
-
if (this._after !== void 0) {
|
|
31339
|
-
const index = this._after.indexOf(function_);
|
|
31340
|
-
if (index !== -1) {
|
|
31341
|
-
this._after.splice(index, 1);
|
|
31342
|
-
}
|
|
31343
|
-
}
|
|
31344
|
-
};
|
|
31345
|
-
}
|
|
31346
|
-
}
|
|
31347
|
-
function createHooks() {
|
|
31348
|
-
return new Hookable();
|
|
31349
|
-
}
|
|
31350
|
-
|
|
31351
|
-
var __create = Object.create;
|
|
31352
|
-
var __defProp = Object.defineProperty;
|
|
31353
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
31354
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
31355
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
31356
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
31357
|
-
var __esm = (fn, res) => function __init() {
|
|
31358
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
31359
|
-
};
|
|
31360
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
31361
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
31362
|
-
};
|
|
31363
|
-
var __copyProps = (to, from, except, desc) => {
|
|
31364
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
31365
|
-
for (let key of __getOwnPropNames(from))
|
|
31366
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
31367
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
31368
|
-
}
|
|
31369
|
-
return to;
|
|
31370
|
-
};
|
|
31371
|
-
var __toESM = (mod, isNodeMode, target22) => (target22 = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
31372
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
31373
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
31374
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
31375
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
31376
|
-
__defProp(target22, "default", { value: mod, enumerable: true }) ,
|
|
31377
|
-
mod
|
|
31378
|
-
));
|
|
31379
|
-
|
|
31380
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js
|
|
31381
|
-
var init_esm_shims = __esm({
|
|
30491
|
+
var init_esm_shims = __esm({
|
|
31382
30492
|
"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
|
|
31383
30493
|
}
|
|
31384
30494
|
});
|
|
@@ -37003,6 +36113,925 @@ id, setup, setupOptions) {
|
|
|
37003
36113
|
return useStore;
|
|
37004
36114
|
}
|
|
37005
36115
|
|
|
36116
|
+
const usefminputdropdownstore = defineStore("fminputdropdownstore", () => {
|
|
36117
|
+
const state = reactive({
|
|
36118
|
+
optionsData: {}
|
|
36119
|
+
});
|
|
36120
|
+
const getOptionsData = async (apiService, apiAction, basecode, reload = false) => {
|
|
36121
|
+
if (!reload) {
|
|
36122
|
+
if (state.optionsData[basecode] && state.optionsData[basecode].length > 0) {
|
|
36123
|
+
return state.optionsData[basecode];
|
|
36124
|
+
}
|
|
36125
|
+
}
|
|
36126
|
+
const res = await useBaseApi(apiService).get(null, apiAction + "/?codetype=" + basecode);
|
|
36127
|
+
return state.optionsData[basecode] = res.data.result ?? [];
|
|
36128
|
+
};
|
|
36129
|
+
return {
|
|
36130
|
+
state,
|
|
36131
|
+
getOptionsData
|
|
36132
|
+
};
|
|
36133
|
+
});
|
|
36134
|
+
|
|
36135
|
+
var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
36136
|
+
...{
|
|
36137
|
+
name: "Fminputdropdown"
|
|
36138
|
+
},
|
|
36139
|
+
__name: "index",
|
|
36140
|
+
props: /* @__PURE__ */ mergeModels({
|
|
36141
|
+
//数据
|
|
36142
|
+
optionData: {
|
|
36143
|
+
type: Array,
|
|
36144
|
+
default: []
|
|
36145
|
+
},
|
|
36146
|
+
/**
|
|
36147
|
+
* 值的属性值
|
|
36148
|
+
*/
|
|
36149
|
+
bvalue: {
|
|
36150
|
+
type: String,
|
|
36151
|
+
default: "id"
|
|
36152
|
+
},
|
|
36153
|
+
/**
|
|
36154
|
+
* 值的属性标签
|
|
36155
|
+
*/
|
|
36156
|
+
blabel: {
|
|
36157
|
+
type: String,
|
|
36158
|
+
default: "name"
|
|
36159
|
+
},
|
|
36160
|
+
placeholder: {
|
|
36161
|
+
type: String,
|
|
36162
|
+
default: "\u8BF7\u9009\u62E9"
|
|
36163
|
+
},
|
|
36164
|
+
inputWidth: {
|
|
36165
|
+
type: String,
|
|
36166
|
+
default: "40%"
|
|
36167
|
+
},
|
|
36168
|
+
dropWidth: {
|
|
36169
|
+
type: String,
|
|
36170
|
+
default: "90px"
|
|
36171
|
+
},
|
|
36172
|
+
/**
|
|
36173
|
+
* api service name
|
|
36174
|
+
*/
|
|
36175
|
+
apiService: {
|
|
36176
|
+
type: String,
|
|
36177
|
+
default: "baseData"
|
|
36178
|
+
},
|
|
36179
|
+
/**
|
|
36180
|
+
* api service 下的方法
|
|
36181
|
+
*/
|
|
36182
|
+
apiAction: {
|
|
36183
|
+
type: String,
|
|
36184
|
+
default: "baseDataList"
|
|
36185
|
+
},
|
|
36186
|
+
/**
|
|
36187
|
+
* 基础编码 自动获取数据
|
|
36188
|
+
*/
|
|
36189
|
+
basecode: {
|
|
36190
|
+
type: String,
|
|
36191
|
+
default: ""
|
|
36192
|
+
}
|
|
36193
|
+
}, {
|
|
36194
|
+
"id": {
|
|
36195
|
+
type: Number,
|
|
36196
|
+
default: 0
|
|
36197
|
+
},
|
|
36198
|
+
"idModifiers": {},
|
|
36199
|
+
"name": {
|
|
36200
|
+
type: String,
|
|
36201
|
+
default: ""
|
|
36202
|
+
},
|
|
36203
|
+
"nameModifiers": {}
|
|
36204
|
+
}),
|
|
36205
|
+
emits: /* @__PURE__ */ mergeModels(["change"], ["update:id", "update:name"]),
|
|
36206
|
+
setup(__props, { emit: __emit }) {
|
|
36207
|
+
const modeValueId = useModel(__props, "id");
|
|
36208
|
+
const modeValueName = useModel(__props, "name");
|
|
36209
|
+
const props = __props;
|
|
36210
|
+
const useBaseApi = usefminputdropdownstore();
|
|
36211
|
+
const state = reactive({
|
|
36212
|
+
optionData: props.optionData
|
|
36213
|
+
});
|
|
36214
|
+
const emit = __emit;
|
|
36215
|
+
const handCommand = (command) => {
|
|
36216
|
+
const fitem = state.optionData.find((item) => item[props.bvalue] === command);
|
|
36217
|
+
modeValueId.value = fitem != null ? [props.bvalue] : 0;
|
|
36218
|
+
modeValueName.value = fitem != null ? fitem[props.blabel] : "";
|
|
36219
|
+
emit("change", fitem);
|
|
36220
|
+
};
|
|
36221
|
+
onMounted(async () => {
|
|
36222
|
+
state.optionData = props.optionData;
|
|
36223
|
+
if (props.basecode && props.basecode != "") {
|
|
36224
|
+
state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode);
|
|
36225
|
+
}
|
|
36226
|
+
});
|
|
36227
|
+
const handRestdata = async () => {
|
|
36228
|
+
if (props.basecode && props.basecode != "") {
|
|
36229
|
+
state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, true);
|
|
36230
|
+
}
|
|
36231
|
+
};
|
|
36232
|
+
return (_ctx, _cache) => {
|
|
36233
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
36234
|
+
const _component_el_input = resolveComponent("el-input");
|
|
36235
|
+
const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
|
|
36236
|
+
const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
|
|
36237
|
+
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
36238
|
+
return openBlock(), createBlock(_component_el_dropdown, {
|
|
36239
|
+
class: "fminputdropdown",
|
|
36240
|
+
placement: "bottom",
|
|
36241
|
+
trigger: "click",
|
|
36242
|
+
style: { "width": "100%" },
|
|
36243
|
+
onCommand: handCommand
|
|
36244
|
+
}, {
|
|
36245
|
+
dropdown: withCtx(() => [
|
|
36246
|
+
createVNode(_component_el_dropdown_menu, {
|
|
36247
|
+
style: normalizeStyle({ width: __props.dropWidth })
|
|
36248
|
+
}, {
|
|
36249
|
+
default: withCtx(() => [
|
|
36250
|
+
(openBlock(true), createElementBlock(
|
|
36251
|
+
Fragment,
|
|
36252
|
+
null,
|
|
36253
|
+
renderList(state.optionData, (item, index) => {
|
|
36254
|
+
return openBlock(), createBlock(_component_el_dropdown_item, {
|
|
36255
|
+
key: index,
|
|
36256
|
+
command: item[__props.bvalue],
|
|
36257
|
+
divided: ""
|
|
36258
|
+
}, {
|
|
36259
|
+
default: withCtx(() => [
|
|
36260
|
+
createTextVNode(
|
|
36261
|
+
toDisplayString$1(item[__props.blabel]),
|
|
36262
|
+
1
|
|
36263
|
+
/* TEXT */
|
|
36264
|
+
)
|
|
36265
|
+
]),
|
|
36266
|
+
_: 2
|
|
36267
|
+
/* DYNAMIC */
|
|
36268
|
+
}, 1032, ["command"]);
|
|
36269
|
+
}),
|
|
36270
|
+
128
|
|
36271
|
+
/* KEYED_FRAGMENT */
|
|
36272
|
+
))
|
|
36273
|
+
]),
|
|
36274
|
+
_: 1
|
|
36275
|
+
/* STABLE */
|
|
36276
|
+
}, 8, ["style"])
|
|
36277
|
+
]),
|
|
36278
|
+
default: withCtx(() => [
|
|
36279
|
+
createVNode(_component_el_input, {
|
|
36280
|
+
modelValue: modeValueName.value,
|
|
36281
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValueName.value = $event),
|
|
36282
|
+
placeholder: props.placeholder,
|
|
36283
|
+
style: normalizeStyle({ width: __props.inputWidth })
|
|
36284
|
+
}, {
|
|
36285
|
+
append: withCtx(() => [
|
|
36286
|
+
createVNode(_component_el_icon, {
|
|
36287
|
+
color: "#13c2c2",
|
|
36288
|
+
onClick: handRestdata
|
|
36289
|
+
}, {
|
|
36290
|
+
default: withCtx(() => [
|
|
36291
|
+
createVNode(unref(refresh_left_default))
|
|
36292
|
+
]),
|
|
36293
|
+
_: 1
|
|
36294
|
+
/* STABLE */
|
|
36295
|
+
})
|
|
36296
|
+
]),
|
|
36297
|
+
_: 1
|
|
36298
|
+
/* STABLE */
|
|
36299
|
+
}, 8, ["modelValue", "placeholder", "style"])
|
|
36300
|
+
]),
|
|
36301
|
+
_: 1
|
|
36302
|
+
/* STABLE */
|
|
36303
|
+
});
|
|
36304
|
+
};
|
|
36305
|
+
}
|
|
36306
|
+
});
|
|
36307
|
+
|
|
36308
|
+
const _hoisted_1$1 = { style: { "padding": "5px" } };
|
|
36309
|
+
const _hoisted_2 = { style: { "display": "flex", "align-items": "center", "gap": "8px", "flex-wrap": "nowrap", "overflow": "hidden" } };
|
|
36310
|
+
const _hoisted_3 = { style: { "flex": "1 1 200px", "min-width": "0", "overflow": "hidden" } };
|
|
36311
|
+
const _hoisted_4 = { style: { "display": "flex", "align-items": "center", "flex-shrink": "0", "white-space": "nowrap" } };
|
|
36312
|
+
const _hoisted_5 = { style: { "margin-bottom": "45px" } };
|
|
36313
|
+
var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
36314
|
+
...{
|
|
36315
|
+
name: "FmTree"
|
|
36316
|
+
},
|
|
36317
|
+
__name: "index",
|
|
36318
|
+
props: {
|
|
36319
|
+
checkStrictly: { type: Boolean, default: true },
|
|
36320
|
+
/**
|
|
36321
|
+
* api service name
|
|
36322
|
+
*/
|
|
36323
|
+
apiService: {
|
|
36324
|
+
type: String,
|
|
36325
|
+
default: "planOrder"
|
|
36326
|
+
},
|
|
36327
|
+
/**
|
|
36328
|
+
* api service 下的方法
|
|
36329
|
+
*/
|
|
36330
|
+
apiAction: {
|
|
36331
|
+
type: String,
|
|
36332
|
+
default: "autoQuerySearch"
|
|
36333
|
+
},
|
|
36334
|
+
paras: {
|
|
36335
|
+
type: Object,
|
|
36336
|
+
default: null
|
|
36337
|
+
},
|
|
36338
|
+
nodeKey: {
|
|
36339
|
+
type: String,
|
|
36340
|
+
default: "id"
|
|
36341
|
+
},
|
|
36342
|
+
defaultProps: {
|
|
36343
|
+
type: Object,
|
|
36344
|
+
default: { children: "children", label: "name" }
|
|
36345
|
+
}
|
|
36346
|
+
},
|
|
36347
|
+
emits: ["node-click"],
|
|
36348
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
36349
|
+
const props = __props;
|
|
36350
|
+
const filterText = ref("");
|
|
36351
|
+
const treeRef = ref();
|
|
36352
|
+
const state = reactive({
|
|
36353
|
+
loading: false,
|
|
36354
|
+
folderData: [],
|
|
36355
|
+
isShowCheckbox: false,
|
|
36356
|
+
strictly: false
|
|
36357
|
+
});
|
|
36358
|
+
onMounted(async () => {
|
|
36359
|
+
await fetchTreeData();
|
|
36360
|
+
});
|
|
36361
|
+
watch(filterText, (val) => {
|
|
36362
|
+
treeRef.value.filter(val);
|
|
36363
|
+
});
|
|
36364
|
+
const fetchTreeData = async (showLoading = true) => {
|
|
36365
|
+
if (showLoading) state.loading = true;
|
|
36366
|
+
var res = await useBaseApi(props.apiService).get(props.paras, props.apiAction);
|
|
36367
|
+
state.folderData = res.data.result ?? [];
|
|
36368
|
+
if (showLoading) state.loading = false;
|
|
36369
|
+
return res.data.result ?? [];
|
|
36370
|
+
};
|
|
36371
|
+
const getCheckedKeys = () => {
|
|
36372
|
+
return treeRef.value.getCheckedKeys();
|
|
36373
|
+
};
|
|
36374
|
+
const filterNode = (value, data) => {
|
|
36375
|
+
if (!value) return true;
|
|
36376
|
+
return data.name.includes(value);
|
|
36377
|
+
};
|
|
36378
|
+
const handleCommand = async (command) => {
|
|
36379
|
+
if ("expandAll" == command) {
|
|
36380
|
+
for (let i = 0; i < treeRef.value.store._getAllNodes().length; i++) {
|
|
36381
|
+
treeRef.value.store._getAllNodes()[i].expanded = true;
|
|
36382
|
+
}
|
|
36383
|
+
} else if ("collapseAll" == command) {
|
|
36384
|
+
for (let i = 0; i < treeRef.value.store._getAllNodes().length; i++) {
|
|
36385
|
+
treeRef.value.store._getAllNodes()[i].expanded = false;
|
|
36386
|
+
}
|
|
36387
|
+
} else if ("refresh" == command) {
|
|
36388
|
+
fetchTreeData();
|
|
36389
|
+
} else if ("rootNode" == command) {
|
|
36390
|
+
treeRef.value?.setCurrentKey();
|
|
36391
|
+
emit("node-click", { id: 0, name: "" });
|
|
36392
|
+
}
|
|
36393
|
+
};
|
|
36394
|
+
const emit = __emit;
|
|
36395
|
+
const nodeClick = (node) => {
|
|
36396
|
+
emit("node-click", { id: node.id, name: node.name });
|
|
36397
|
+
};
|
|
36398
|
+
const setCurrentKey = (key, shouldAutoExpandParent) => {
|
|
36399
|
+
treeRef.value?.setCurrentKey(key, shouldAutoExpandParent);
|
|
36400
|
+
};
|
|
36401
|
+
__expose({ fetchTreeData, getCheckedKeys, setCurrentKey });
|
|
36402
|
+
return (_ctx, _cache) => {
|
|
36403
|
+
const _component_el_input = resolveComponent("el-input");
|
|
36404
|
+
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
36405
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
36406
|
+
const _component_el_button = resolveComponent("el-button");
|
|
36407
|
+
const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
|
|
36408
|
+
const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
|
|
36409
|
+
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
36410
|
+
const _component_el_tree = resolveComponent("el-tree");
|
|
36411
|
+
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
36412
|
+
const _component_el_card = resolveComponent("el-card");
|
|
36413
|
+
const _directive_loading = resolveDirective("loading");
|
|
36414
|
+
return openBlock(), createBlock(_component_el_card, {
|
|
36415
|
+
shadow: "hover",
|
|
36416
|
+
"body-style": "height:100%;overflow:auto;padding:5px;width:100%;",
|
|
36417
|
+
style: { "height": "100%" }
|
|
36418
|
+
}, {
|
|
36419
|
+
header: withCtx(() => [
|
|
36420
|
+
createElementVNode("div", _hoisted_1$1, [
|
|
36421
|
+
createElementVNode("div", _hoisted_2, [
|
|
36422
|
+
createElementVNode("div", _hoisted_3, [
|
|
36423
|
+
createVNode(_component_el_input, {
|
|
36424
|
+
"prefix-icon": unref(search_default),
|
|
36425
|
+
modelValue: filterText.value,
|
|
36426
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filterText.value = $event),
|
|
36427
|
+
modelModifiers: { lazy: true },
|
|
36428
|
+
clearable: "",
|
|
36429
|
+
placeholder: "\u7C7B\u578B\u540D\u79F0"
|
|
36430
|
+
}, null, 8, ["prefix-icon", "modelValue"])
|
|
36431
|
+
]),
|
|
36432
|
+
createElementVNode("div", _hoisted_4, [
|
|
36433
|
+
!props.checkStrictly && state.isShowCheckbox ? (openBlock(), createBlock(_component_el_checkbox, {
|
|
36434
|
+
key: 0,
|
|
36435
|
+
modelValue: state.strictly,
|
|
36436
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => state.strictly = $event),
|
|
36437
|
+
label: "\u8054\u52A8",
|
|
36438
|
+
style: { "margin-left": "8px" },
|
|
36439
|
+
border: ""
|
|
36440
|
+
}, null, 8, ["modelValue"])) : createCommentVNode("v-if", true),
|
|
36441
|
+
createVNode(_component_el_dropdown, { onCommand: handleCommand }, {
|
|
36442
|
+
dropdown: withCtx(() => [
|
|
36443
|
+
createVNode(_component_el_dropdown_menu, null, {
|
|
36444
|
+
default: withCtx(() => [
|
|
36445
|
+
createVNode(_component_el_dropdown_item, { command: "expandAll" }, {
|
|
36446
|
+
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
36447
|
+
createTextVNode("\u5168\u90E8\u5C55\u5F00")
|
|
36448
|
+
])),
|
|
36449
|
+
_: 1,
|
|
36450
|
+
__: [2]
|
|
36451
|
+
}),
|
|
36452
|
+
createVNode(_component_el_dropdown_item, { command: "collapseAll" }, {
|
|
36453
|
+
default: withCtx(() => _cache[3] || (_cache[3] = [
|
|
36454
|
+
createTextVNode("\u5168\u90E8\u6298\u53E0")
|
|
36455
|
+
])),
|
|
36456
|
+
_: 1,
|
|
36457
|
+
__: [3]
|
|
36458
|
+
}),
|
|
36459
|
+
createVNode(_component_el_dropdown_item, { command: "rootNode" }, {
|
|
36460
|
+
default: withCtx(() => _cache[4] || (_cache[4] = [
|
|
36461
|
+
createTextVNode("\u6839\u8282\u70B9")
|
|
36462
|
+
])),
|
|
36463
|
+
_: 1,
|
|
36464
|
+
__: [4]
|
|
36465
|
+
}),
|
|
36466
|
+
createVNode(_component_el_dropdown_item, { command: "refresh" }, {
|
|
36467
|
+
default: withCtx(() => _cache[5] || (_cache[5] = [
|
|
36468
|
+
createTextVNode("\u5237\u65B0")
|
|
36469
|
+
])),
|
|
36470
|
+
_: 1,
|
|
36471
|
+
__: [5]
|
|
36472
|
+
})
|
|
36473
|
+
]),
|
|
36474
|
+
_: 1
|
|
36475
|
+
/* STABLE */
|
|
36476
|
+
})
|
|
36477
|
+
]),
|
|
36478
|
+
default: withCtx(() => [
|
|
36479
|
+
createVNode(_component_el_button, { style: { "margin-left": "8px", "width": "34px" } }, {
|
|
36480
|
+
default: withCtx(() => [
|
|
36481
|
+
createVNode(_component_el_icon, { class: "el-icon--center" }, {
|
|
36482
|
+
default: withCtx(() => [
|
|
36483
|
+
createVNode(unref(more_filled_default))
|
|
36484
|
+
]),
|
|
36485
|
+
_: 1
|
|
36486
|
+
/* STABLE */
|
|
36487
|
+
})
|
|
36488
|
+
]),
|
|
36489
|
+
_: 1
|
|
36490
|
+
/* STABLE */
|
|
36491
|
+
})
|
|
36492
|
+
]),
|
|
36493
|
+
_: 1
|
|
36494
|
+
/* STABLE */
|
|
36495
|
+
})
|
|
36496
|
+
])
|
|
36497
|
+
])
|
|
36498
|
+
])
|
|
36499
|
+
]),
|
|
36500
|
+
default: withCtx(() => [
|
|
36501
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_5, [
|
|
36502
|
+
createVNode(_component_el_scrollbar, null, {
|
|
36503
|
+
default: withCtx(() => [
|
|
36504
|
+
createVNode(_component_el_tree, {
|
|
36505
|
+
ref_key: "treeRef",
|
|
36506
|
+
ref: treeRef,
|
|
36507
|
+
class: "filter-tree",
|
|
36508
|
+
data: state.folderData,
|
|
36509
|
+
"node-key": __props.nodeKey,
|
|
36510
|
+
props: __props.defaultProps,
|
|
36511
|
+
"filter-node-method": filterNode,
|
|
36512
|
+
onNodeClick: nodeClick,
|
|
36513
|
+
"show-checkbox": state.isShowCheckbox,
|
|
36514
|
+
"default-expand-all": "",
|
|
36515
|
+
"highlight-current": "",
|
|
36516
|
+
"check-strictly": !state.strictly
|
|
36517
|
+
}, {
|
|
36518
|
+
default: withCtx(({ node }) => [
|
|
36519
|
+
createCommentVNode(' <el-icon v-if="node.level < 4" size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-FolderOpened /></el-icon>\r\n <el-icon v-else size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-Folder /></el-icon> '),
|
|
36520
|
+
createTextVNode(
|
|
36521
|
+
" " + toDisplayString$1(node.label),
|
|
36522
|
+
1
|
|
36523
|
+
/* TEXT */
|
|
36524
|
+
)
|
|
36525
|
+
]),
|
|
36526
|
+
_: 1
|
|
36527
|
+
/* STABLE */
|
|
36528
|
+
}, 8, ["data", "node-key", "props", "show-checkbox", "check-strictly"])
|
|
36529
|
+
]),
|
|
36530
|
+
_: 1
|
|
36531
|
+
/* STABLE */
|
|
36532
|
+
})
|
|
36533
|
+
])), [
|
|
36534
|
+
[_directive_loading, state.loading]
|
|
36535
|
+
])
|
|
36536
|
+
]),
|
|
36537
|
+
_: 1
|
|
36538
|
+
/* STABLE */
|
|
36539
|
+
});
|
|
36540
|
+
};
|
|
36541
|
+
}
|
|
36542
|
+
});
|
|
36543
|
+
|
|
36544
|
+
const _hoisted_1 = ["src"];
|
|
36545
|
+
var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
36546
|
+
...{
|
|
36547
|
+
name: "svgIcon"
|
|
36548
|
+
},
|
|
36549
|
+
__name: "svgicon",
|
|
36550
|
+
props: {
|
|
36551
|
+
// svg 图标组件名字
|
|
36552
|
+
name: {
|
|
36553
|
+
type: String
|
|
36554
|
+
},
|
|
36555
|
+
// svg 大小
|
|
36556
|
+
size: {
|
|
36557
|
+
type: Number,
|
|
36558
|
+
default: () => 14
|
|
36559
|
+
},
|
|
36560
|
+
// svg 颜色
|
|
36561
|
+
color: {
|
|
36562
|
+
type: String
|
|
36563
|
+
}
|
|
36564
|
+
},
|
|
36565
|
+
setup(__props) {
|
|
36566
|
+
const props = __props;
|
|
36567
|
+
const linesString = ["https", "http", "/src", "/assets", "data:image", window.__env__.VITE_PUBLIC_PATH];
|
|
36568
|
+
const getIconName = computed(() => {
|
|
36569
|
+
return props?.name;
|
|
36570
|
+
});
|
|
36571
|
+
const isShowIconSvg = computed(() => {
|
|
36572
|
+
return props?.name?.startsWith("ele-");
|
|
36573
|
+
});
|
|
36574
|
+
const isShowIconImg = computed(() => {
|
|
36575
|
+
return linesString.find((str) => props.name?.startsWith(str));
|
|
36576
|
+
});
|
|
36577
|
+
const setIconSvgStyle = computed(() => {
|
|
36578
|
+
return `font-size: ${props.size}px;color: ${props.color};`;
|
|
36579
|
+
});
|
|
36580
|
+
const setIconImgOutStyle = computed(() => {
|
|
36581
|
+
return `width: ${props.size}px;height: ${props.size}px;display: inline-block;overflow: hidden;`;
|
|
36582
|
+
});
|
|
36583
|
+
const setIconSvgInsStyle = computed(() => {
|
|
36584
|
+
const filterStyle = [];
|
|
36585
|
+
const compatibles = ["-webkit", "-ms", "-o", "-moz"];
|
|
36586
|
+
compatibles.forEach((j) => filterStyle.push(`${j}-filter: drop-shadow(${props.color} ${props.size}px 0);`));
|
|
36587
|
+
return `width: ${props.size}px;height: ${props.size}px;position: relative;left: -${props.size}px;${filterStyle.join("")}`;
|
|
36588
|
+
});
|
|
36589
|
+
return (_ctx, _cache) => {
|
|
36590
|
+
return isShowIconSvg.value ? (openBlock(), createElementBlock(
|
|
36591
|
+
"i",
|
|
36592
|
+
{
|
|
36593
|
+
key: 0,
|
|
36594
|
+
class: "el-icon",
|
|
36595
|
+
style: normalizeStyle(setIconSvgStyle.value)
|
|
36596
|
+
},
|
|
36597
|
+
[
|
|
36598
|
+
(openBlock(), createBlock(resolveDynamicComponent(getIconName.value)))
|
|
36599
|
+
],
|
|
36600
|
+
4
|
|
36601
|
+
/* STYLE */
|
|
36602
|
+
)) : isShowIconImg.value ? (openBlock(), createElementBlock(
|
|
36603
|
+
"div",
|
|
36604
|
+
{
|
|
36605
|
+
key: 1,
|
|
36606
|
+
style: normalizeStyle(setIconImgOutStyle.value)
|
|
36607
|
+
},
|
|
36608
|
+
[
|
|
36609
|
+
createElementVNode("img", {
|
|
36610
|
+
src: getIconName.value,
|
|
36611
|
+
style: normalizeStyle(setIconSvgInsStyle.value)
|
|
36612
|
+
}, null, 12, _hoisted_1)
|
|
36613
|
+
],
|
|
36614
|
+
4
|
|
36615
|
+
/* STYLE */
|
|
36616
|
+
)) : (openBlock(), createElementBlock(
|
|
36617
|
+
"i",
|
|
36618
|
+
{
|
|
36619
|
+
key: 2,
|
|
36620
|
+
class: normalizeClass(getIconName.value),
|
|
36621
|
+
style: normalizeStyle(setIconSvgStyle.value)
|
|
36622
|
+
},
|
|
36623
|
+
null,
|
|
36624
|
+
6
|
|
36625
|
+
/* CLASS, STYLE */
|
|
36626
|
+
));
|
|
36627
|
+
};
|
|
36628
|
+
}
|
|
36629
|
+
});
|
|
36630
|
+
|
|
36631
|
+
function elSvg(app) {
|
|
36632
|
+
const icons = svg;
|
|
36633
|
+
for (const i in icons) {
|
|
36634
|
+
if (!app._context.components[`ele-${icons[i].name}`]) {
|
|
36635
|
+
app.component(`ele-${icons[i].name}`, icons[i]);
|
|
36636
|
+
}
|
|
36637
|
+
}
|
|
36638
|
+
if (!app._context.components[`SvgIcon`]) {
|
|
36639
|
+
app.component("SvgIcon", _sfc_main$1);
|
|
36640
|
+
}
|
|
36641
|
+
}
|
|
36642
|
+
|
|
36643
|
+
const FmTransfer = _sfc_main$8;
|
|
36644
|
+
const FmNoticeBar = _sfc_main$7;
|
|
36645
|
+
const FmDragImg = dragimg;
|
|
36646
|
+
const Fmselect = _sfc_main$5;
|
|
36647
|
+
const FmAutocomplete = _sfc_main$4;
|
|
36648
|
+
const Fminputdropdown = _sfc_main$3;
|
|
36649
|
+
const FmTree = _sfc_main$2;
|
|
36650
|
+
|
|
36651
|
+
const makeInstaller = (components = []) => {
|
|
36652
|
+
const install = (app) => {
|
|
36653
|
+
components.forEach(
|
|
36654
|
+
(component) => {
|
|
36655
|
+
if (!app._context.components[component.name]) {
|
|
36656
|
+
app.component(component.name, component);
|
|
36657
|
+
}
|
|
36658
|
+
}
|
|
36659
|
+
);
|
|
36660
|
+
if (app)
|
|
36661
|
+
elSvg(app);
|
|
36662
|
+
};
|
|
36663
|
+
return {
|
|
36664
|
+
install
|
|
36665
|
+
};
|
|
36666
|
+
};
|
|
36667
|
+
|
|
36668
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
36669
|
+
...{
|
|
36670
|
+
name: "FmLogin"
|
|
36671
|
+
},
|
|
36672
|
+
__name: "index",
|
|
36673
|
+
setup(__props) {
|
|
36674
|
+
const login = ref(false);
|
|
36675
|
+
function handleLogin() {
|
|
36676
|
+
login.value = true;
|
|
36677
|
+
}
|
|
36678
|
+
return (_ctx, _cache) => {
|
|
36679
|
+
return openBlock(), createElementBlock("div", { onClick: handleLogin }, _cache[0] || (_cache[0] = [
|
|
36680
|
+
createElementVNode(
|
|
36681
|
+
"h1",
|
|
36682
|
+
null,
|
|
36683
|
+
"login xxxxx ",
|
|
36684
|
+
-1
|
|
36685
|
+
/* CACHED */
|
|
36686
|
+
)
|
|
36687
|
+
]));
|
|
36688
|
+
};
|
|
36689
|
+
}
|
|
36690
|
+
});
|
|
36691
|
+
|
|
36692
|
+
const FmLogin = _sfc_main;
|
|
36693
|
+
|
|
36694
|
+
const plugins = [
|
|
36695
|
+
FmLogin,
|
|
36696
|
+
FmTransfer,
|
|
36697
|
+
FmNoticeBar,
|
|
36698
|
+
Fmselect,
|
|
36699
|
+
FmAutocomplete,
|
|
36700
|
+
Fminputdropdown,
|
|
36701
|
+
FmTree
|
|
36702
|
+
];
|
|
36703
|
+
|
|
36704
|
+
var installer = makeInstaller([...plugins]);
|
|
36705
|
+
|
|
36706
|
+
const cssCdnUrlList = [
|
|
36707
|
+
// 调整为从本地引入,注释下面的 url
|
|
36708
|
+
// '//at.alicdn.com/t/c/font_2298093_rnp72ifj3ba.css',
|
|
36709
|
+
// '//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css',
|
|
36710
|
+
];
|
|
36711
|
+
const jsCdnUrlList = [];
|
|
36712
|
+
function setCssCdn() {
|
|
36713
|
+
if (cssCdnUrlList.length <= 0) return false;
|
|
36714
|
+
cssCdnUrlList.map((v) => {
|
|
36715
|
+
let link = document.createElement("link");
|
|
36716
|
+
link.rel = "stylesheet";
|
|
36717
|
+
link.href = v;
|
|
36718
|
+
link.crossOrigin = "anonymous";
|
|
36719
|
+
document.getElementsByTagName("head")[0].appendChild(link);
|
|
36720
|
+
});
|
|
36721
|
+
}
|
|
36722
|
+
function setJsCdn() {
|
|
36723
|
+
if (jsCdnUrlList.length <= 0) return false;
|
|
36724
|
+
jsCdnUrlList.map((v) => {
|
|
36725
|
+
let link = document.createElement("script");
|
|
36726
|
+
link.src = v;
|
|
36727
|
+
document.body.appendChild(link);
|
|
36728
|
+
});
|
|
36729
|
+
}
|
|
36730
|
+
const setIntroduction = {
|
|
36731
|
+
// 设置css
|
|
36732
|
+
cssCdn: () => {
|
|
36733
|
+
setCssCdn();
|
|
36734
|
+
},
|
|
36735
|
+
// 设置js
|
|
36736
|
+
jsCdn: () => {
|
|
36737
|
+
setJsCdn();
|
|
36738
|
+
}
|
|
36739
|
+
};
|
|
36740
|
+
|
|
36741
|
+
const NextLoading = {
|
|
36742
|
+
// 创建 loading
|
|
36743
|
+
start: () => {
|
|
36744
|
+
const bodys = document.body;
|
|
36745
|
+
const div = document.createElement("div");
|
|
36746
|
+
div.setAttribute("class", "loading-next");
|
|
36747
|
+
const htmls = `
|
|
36748
|
+
<div class="loading-next-box">
|
|
36749
|
+
<div class="loading-next-box-warp">
|
|
36750
|
+
<div class="loading-next-box-item"></div>
|
|
36751
|
+
<div class="loading-next-box-item"></div>
|
|
36752
|
+
<div class="loading-next-box-item"></div>
|
|
36753
|
+
<div class="loading-next-box-item"></div>
|
|
36754
|
+
<div class="loading-next-box-item"></div>
|
|
36755
|
+
<div class="loading-next-box-item"></div>
|
|
36756
|
+
<div class="loading-next-box-item"></div>
|
|
36757
|
+
<div class="loading-next-box-item"></div>
|
|
36758
|
+
<div class="loading-next-box-item"></div>
|
|
36759
|
+
</div>
|
|
36760
|
+
</div>
|
|
36761
|
+
`;
|
|
36762
|
+
div.innerHTML = htmls;
|
|
36763
|
+
bodys.insertBefore(div, bodys.childNodes[0]);
|
|
36764
|
+
window.nextLoading = true;
|
|
36765
|
+
},
|
|
36766
|
+
// 移除 loading
|
|
36767
|
+
done: (time = 0) => {
|
|
36768
|
+
nextTick(() => {
|
|
36769
|
+
setTimeout(() => {
|
|
36770
|
+
window.nextLoading = false;
|
|
36771
|
+
const el = document.querySelector(".loading-next");
|
|
36772
|
+
el?.parentNode?.removeChild(el);
|
|
36773
|
+
}, time);
|
|
36774
|
+
});
|
|
36775
|
+
}
|
|
36776
|
+
};
|
|
36777
|
+
|
|
36778
|
+
function useSysApi() {
|
|
36779
|
+
return {
|
|
36780
|
+
getSysInfo: (id) => {
|
|
36781
|
+
return service({
|
|
36782
|
+
url: `/api/sysTenant/sysInfo/${id}`,
|
|
36783
|
+
method: "GET"
|
|
36784
|
+
});
|
|
36785
|
+
},
|
|
36786
|
+
getSmPublicKey: () => {
|
|
36787
|
+
return service({
|
|
36788
|
+
url: `/api/sysConfig/smPublicKey`,
|
|
36789
|
+
method: "GET"
|
|
36790
|
+
});
|
|
36791
|
+
},
|
|
36792
|
+
getMenuTree: () => {
|
|
36793
|
+
return service({
|
|
36794
|
+
url: `/api/sysMenu/loginMenuTree`,
|
|
36795
|
+
method: "GET"
|
|
36796
|
+
});
|
|
36797
|
+
},
|
|
36798
|
+
getMenuUserMenuList: () => {
|
|
36799
|
+
return service({
|
|
36800
|
+
url: `/api/sysUserMenu/userMenuList`,
|
|
36801
|
+
method: "GET"
|
|
36802
|
+
});
|
|
36803
|
+
},
|
|
36804
|
+
addUserMenu: (data) => {
|
|
36805
|
+
return service({
|
|
36806
|
+
url: `/api/sysUserMenu/add`,
|
|
36807
|
+
method: "POST",
|
|
36808
|
+
data
|
|
36809
|
+
});
|
|
36810
|
+
},
|
|
36811
|
+
setNoticeRead: (data) => {
|
|
36812
|
+
return service({
|
|
36813
|
+
url: `/api/sysNotice/setRead`,
|
|
36814
|
+
method: "POST",
|
|
36815
|
+
data
|
|
36816
|
+
});
|
|
36817
|
+
},
|
|
36818
|
+
getNoticeTitle: () => {
|
|
36819
|
+
return service({
|
|
36820
|
+
url: `/api/sysNotice/noticeTitle`,
|
|
36821
|
+
method: "GET"
|
|
36822
|
+
});
|
|
36823
|
+
},
|
|
36824
|
+
getNoticeUnReadList: () => {
|
|
36825
|
+
return service({
|
|
36826
|
+
url: `/api/sysNotice/unReadList`,
|
|
36827
|
+
method: "GET"
|
|
36828
|
+
});
|
|
36829
|
+
},
|
|
36830
|
+
NoticePageReceived: (data) => {
|
|
36831
|
+
return service({
|
|
36832
|
+
url: `/api/sysNotice/pageReceived`,
|
|
36833
|
+
method: "POST",
|
|
36834
|
+
data
|
|
36835
|
+
});
|
|
36836
|
+
},
|
|
36837
|
+
getUpgradeLastUnRead: () => {
|
|
36838
|
+
return service({
|
|
36839
|
+
url: `/api/sysUpgrade/lastUnRead`,
|
|
36840
|
+
method: "GET"
|
|
36841
|
+
});
|
|
36842
|
+
},
|
|
36843
|
+
// 获取用户信息
|
|
36844
|
+
getUserInfo: () => {
|
|
36845
|
+
return service({
|
|
36846
|
+
url: `/api/sysAuth/userInfo`,
|
|
36847
|
+
method: "GET"
|
|
36848
|
+
});
|
|
36849
|
+
},
|
|
36850
|
+
getUserRoleTableList: () => {
|
|
36851
|
+
return service({
|
|
36852
|
+
url: `/api/sysRole/userRoleTableList`,
|
|
36853
|
+
method: "GET"
|
|
36854
|
+
});
|
|
36855
|
+
},
|
|
36856
|
+
getConstList: () => {
|
|
36857
|
+
return service({
|
|
36858
|
+
url: `/api/sysConst/list`,
|
|
36859
|
+
method: "GET"
|
|
36860
|
+
});
|
|
36861
|
+
},
|
|
36862
|
+
getPosList: () => {
|
|
36863
|
+
return service({
|
|
36864
|
+
url: `/api/sysPos/list`,
|
|
36865
|
+
method: "GET"
|
|
36866
|
+
});
|
|
36867
|
+
},
|
|
36868
|
+
getOwnRoleListById: (userid) => {
|
|
36869
|
+
return service({
|
|
36870
|
+
url: `/api/sysUser/ownRoleList/${userid}`,
|
|
36871
|
+
method: "GET"
|
|
36872
|
+
});
|
|
36873
|
+
},
|
|
36874
|
+
getRoleList: () => {
|
|
36875
|
+
return service({
|
|
36876
|
+
url: `/api/sysRole/list`,
|
|
36877
|
+
method: "GET"
|
|
36878
|
+
});
|
|
36879
|
+
},
|
|
36880
|
+
getSysOrgChildTreePidLevel: (pid, level) => {
|
|
36881
|
+
return service({
|
|
36882
|
+
url: `/api/sysOrg/childTree/${pid}/${level}`,
|
|
36883
|
+
method: "GET"
|
|
36884
|
+
});
|
|
36885
|
+
},
|
|
36886
|
+
getOrgList: (params) => {
|
|
36887
|
+
return service({
|
|
36888
|
+
url: `/api/sysOrg/list`,
|
|
36889
|
+
method: "GET",
|
|
36890
|
+
params
|
|
36891
|
+
});
|
|
36892
|
+
},
|
|
36893
|
+
getUserBaseInfo: () => {
|
|
36894
|
+
return service({
|
|
36895
|
+
url: `/api/sysUser/baseInfo`,
|
|
36896
|
+
method: "GET"
|
|
36897
|
+
});
|
|
36898
|
+
},
|
|
36899
|
+
getOwnExtOrgListByid: (userid) => {
|
|
36900
|
+
return service({
|
|
36901
|
+
url: `/api/sysUser/ownExtOrgList/${userid}`,
|
|
36902
|
+
method: "GET"
|
|
36903
|
+
});
|
|
36904
|
+
},
|
|
36905
|
+
getAllDictList: () => {
|
|
36906
|
+
return service({
|
|
36907
|
+
url: `/api/sysDictType/allDictList`,
|
|
36908
|
+
method: "GET"
|
|
36909
|
+
});
|
|
36910
|
+
},
|
|
36911
|
+
verifyPwdExpirationTime: () => {
|
|
36912
|
+
return service({
|
|
36913
|
+
url: `/api/sysUser/verifyPwdExpirationTime`,
|
|
36914
|
+
method: "POST"
|
|
36915
|
+
});
|
|
36916
|
+
},
|
|
36917
|
+
changePwd: (data) => {
|
|
36918
|
+
return service({
|
|
36919
|
+
url: `/fmauth/sysauth/changePwd`,
|
|
36920
|
+
method: "POST",
|
|
36921
|
+
data
|
|
36922
|
+
});
|
|
36923
|
+
},
|
|
36924
|
+
resetPwd: (data) => {
|
|
36925
|
+
return service({
|
|
36926
|
+
url: `/fmauth/sysauth/resetPwd`,
|
|
36927
|
+
method: "POST",
|
|
36928
|
+
data
|
|
36929
|
+
});
|
|
36930
|
+
},
|
|
36931
|
+
unlockLogin: (data) => {
|
|
36932
|
+
return service({
|
|
36933
|
+
url: `/fmauth/sysauth/unlockLogin`,
|
|
36934
|
+
method: "POST",
|
|
36935
|
+
data
|
|
36936
|
+
});
|
|
36937
|
+
},
|
|
36938
|
+
changeToken: (data) => {
|
|
36939
|
+
return service({
|
|
36940
|
+
url: `/fmauth/sysauth/changeToken`,
|
|
36941
|
+
method: "POST",
|
|
36942
|
+
data
|
|
36943
|
+
});
|
|
36944
|
+
},
|
|
36945
|
+
Logout: () => {
|
|
36946
|
+
return service({
|
|
36947
|
+
url: `/fmauth/sysauth/logout`,
|
|
36948
|
+
method: "POST"
|
|
36949
|
+
});
|
|
36950
|
+
},
|
|
36951
|
+
unLockScreen: (password) => {
|
|
36952
|
+
return service({
|
|
36953
|
+
url: `/fmauth/sysauth/unlockScreen/?password=${password}`,
|
|
36954
|
+
method: "POST"
|
|
36955
|
+
});
|
|
36956
|
+
},
|
|
36957
|
+
getOnlineUserList: (data) => {
|
|
36958
|
+
return service({
|
|
36959
|
+
url: `/fmauth/sysOnlineUser/page`,
|
|
36960
|
+
method: "POST",
|
|
36961
|
+
data
|
|
36962
|
+
});
|
|
36963
|
+
}
|
|
36964
|
+
};
|
|
36965
|
+
}
|
|
36966
|
+
function feature(promise, errorExt) {
|
|
36967
|
+
return promise.then((data) => [null, data]).catch((err) => {
|
|
36968
|
+
if (errorExt) {
|
|
36969
|
+
const parsedError = Object.assign({}, err, errorExt);
|
|
36970
|
+
return [parsedError, void 0];
|
|
36971
|
+
}
|
|
36972
|
+
return [err, void 0];
|
|
36973
|
+
});
|
|
36974
|
+
}
|
|
36975
|
+
|
|
36976
|
+
function useLoginApi() {
|
|
36977
|
+
return {
|
|
36978
|
+
signIn: (data) => {
|
|
36979
|
+
return service({
|
|
36980
|
+
url: "/fmauth/sysauth/login",
|
|
36981
|
+
method: "post",
|
|
36982
|
+
data
|
|
36983
|
+
});
|
|
36984
|
+
},
|
|
36985
|
+
loginPhonenumber: (data) => {
|
|
36986
|
+
return service({
|
|
36987
|
+
url: "/fmauth/sysauth/loginPhone",
|
|
36988
|
+
method: "post",
|
|
36989
|
+
data
|
|
36990
|
+
});
|
|
36991
|
+
},
|
|
36992
|
+
getCaptcha: () => {
|
|
36993
|
+
return service({
|
|
36994
|
+
url: "/fmauth/sysauth/captcha",
|
|
36995
|
+
method: "get"
|
|
36996
|
+
});
|
|
36997
|
+
},
|
|
36998
|
+
signOut: (data) => {
|
|
36999
|
+
return service({
|
|
37000
|
+
url: "/fmauth/sysauth/signOut",
|
|
37001
|
+
method: "post",
|
|
37002
|
+
data
|
|
37003
|
+
});
|
|
37004
|
+
}
|
|
37005
|
+
};
|
|
37006
|
+
}
|
|
37007
|
+
|
|
37008
|
+
var AccountTypeEnum = /* @__PURE__ */ ((AccountTypeEnum2) => {
|
|
37009
|
+
AccountTypeEnum2[AccountTypeEnum2["NUMBER_666"] = 666] = "NUMBER_666";
|
|
37010
|
+
AccountTypeEnum2[AccountTypeEnum2["NUMBER_777"] = 777] = "NUMBER_777";
|
|
37011
|
+
AccountTypeEnum2[AccountTypeEnum2["NUMBER_888"] = 888] = "NUMBER_888";
|
|
37012
|
+
AccountTypeEnum2[AccountTypeEnum2["NUMBER_987"] = 987] = "NUMBER_987";
|
|
37013
|
+
AccountTypeEnum2[AccountTypeEnum2["NUMBER_999"] = 999] = "NUMBER_999";
|
|
37014
|
+
return AccountTypeEnum2;
|
|
37015
|
+
})(AccountTypeEnum || {});
|
|
37016
|
+
var JobCreateTypeEnum = /* @__PURE__ */ ((JobCreateTypeEnum2) => {
|
|
37017
|
+
JobCreateTypeEnum2[JobCreateTypeEnum2["NUMBER_0"] = 0] = "NUMBER_0";
|
|
37018
|
+
JobCreateTypeEnum2[JobCreateTypeEnum2["NUMBER_1"] = 1] = "NUMBER_1";
|
|
37019
|
+
JobCreateTypeEnum2[JobCreateTypeEnum2["NUMBER_2"] = 2] = "NUMBER_2";
|
|
37020
|
+
return JobCreateTypeEnum2;
|
|
37021
|
+
})(JobCreateTypeEnum || {});
|
|
37022
|
+
var HttpMethodEnum = /* @__PURE__ */ ((HttpMethodEnum2) => {
|
|
37023
|
+
HttpMethodEnum2[HttpMethodEnum2["NUMBER_0"] = 0] = "NUMBER_0";
|
|
37024
|
+
HttpMethodEnum2[HttpMethodEnum2["NUMBER_1"] = 1] = "NUMBER_1";
|
|
37025
|
+
HttpMethodEnum2[HttpMethodEnum2["NUMBER_2"] = 2] = "NUMBER_2";
|
|
37026
|
+
HttpMethodEnum2[HttpMethodEnum2["NUMBER_3"] = 3] = "NUMBER_3";
|
|
37027
|
+
HttpMethodEnum2[HttpMethodEnum2["NUMBER_4"] = 4] = "NUMBER_4";
|
|
37028
|
+
HttpMethodEnum2[HttpMethodEnum2["NUMBER_5"] = 5] = "NUMBER_5";
|
|
37029
|
+
HttpMethodEnum2[HttpMethodEnum2["NUMBER_6"] = 6] = "NUMBER_6";
|
|
37030
|
+
HttpMethodEnum2[HttpMethodEnum2["NUMBER_7"] = 7] = "NUMBER_7";
|
|
37031
|
+
HttpMethodEnum2[HttpMethodEnum2["NUMBER_8"] = 8] = "NUMBER_8";
|
|
37032
|
+
return HttpMethodEnum2;
|
|
37033
|
+
})(HttpMethodEnum || {});
|
|
37034
|
+
|
|
37006
37035
|
const pinia = createPinia();
|
|
37007
37036
|
|
|
37008
37037
|
const useKeepALiveNames = defineStore("keepALiveNames", {
|
|
@@ -53243,4 +53272,4 @@ const version = "1.0.0";
|
|
|
53243
53272
|
|
|
53244
53273
|
const install = installer.install;
|
|
53245
53274
|
|
|
53246
|
-
export { AccountTypeEnum, FmAutocomplete, FmDragImg, FmLogin, FmNoticeBar, FmTransfer, FmTree, Fminputdropdown, Fmselect, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, PUB, Session, Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, commonFunction, commonFunctionObj, dataURLtoBlob, decryptJWT, installer as default, directive, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, elSvg, emitter, feature, fileToBase64, formatAxis, formatDate, formatPast, getCountryCode, getFileName, getFileUrl, getJWTDate, getToken, getWeek, hAuth, hAuthAll, hAuths, i18n, install, isObjectValueEqual, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, mergMessage, openWindow, pinia, refreshAccessTokenKey, removeDuplicate, request2, service, setIntroduction, setupI18n, showFileUrl, signatureByKSort, tansParams, urlToBase64, useApi, useBaseApi, useChangeColor, useDateTimeShortCust, useKeepALiveNames, useLoginApi, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version };
|
|
53275
|
+
export { AccountTypeEnum, FmAutocomplete, FmDragImg, FmLogin, FmNoticeBar, FmTransfer, FmTree, Fminputdropdown, Fmselect, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, PUB, Session, Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, commonFunction, commonFunctionObj, dataURLtoBlob, decryptJWT, installer as default, directive, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, elSvg, emitter, feature, fileToBase64, formatAxis, formatDate, formatPast, getBdate, getCountryCode, getEdate, getFileName, getFileUrl, getJWTDate, getToken, getWeek, hAuth, hAuthAll, hAuths, i18n, install, isObjectValueEqual, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, mergMessage, openWindow, pinia, refreshAccessTokenKey, removeDuplicate, request2, service, setIntroduction, setupI18n, showFileUrl, signatureByKSort, tansParams, urlToBase64, useApi, useBaseApi, useChangeColor, useDateTimeShortCust, useKeepALiveNames, useLoginApi, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version };
|