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