hflvloader 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hflvloader.es.js +1131 -901
- package/package.json +1 -1
package/dist/hflvloader.es.js
CHANGED
|
@@ -1,261 +1,261 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var
|
|
2
|
-
import { withDirectives as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { defineStore as
|
|
6
|
-
import
|
|
7
|
-
import { ElMessage as
|
|
8
|
-
import { useRouter as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";.component[data-v-3fc3a63c]{position:absolute}.canvas-container[data-v-ed658753]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;margin:auto;overflow:hidden}.canvas-container .canvas[data-v-ed658753]{position:relative;margin:auto;background-color:transparent!important}.ve-comp-svg-icon{width:100%;height:100%;position:relative;fill:currentColor;vertical-align:-2px}.full-screen-dialog-wrapper[data-v-f70ef416] .no-header-dialog{padding:0!important}.full-screen-dialog-wrapper[data-v-f70ef416] .no-header-dialog .el-dialog__header{display:none!important;padding-bottom:0!important}.custom-omit-input[data-v-956a5a3a]{width:100%}.custom-omit-input[data-v-956a5a3a] .el-input-group__append{padding:0}.group>div[data-v-20de9881]{position:relative;width:100%;height:100%}.group>div .component[data-v-20de9881]{position:absolute}.panel-area[data-v-f00c8b88]{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}.panel-area .panel-condition[data-v-f00c8b88]{height:50px;flex-shrink:0;min-height:50px}.panel-area .panel-table[data-v-f00c8b88]{flex:1;overflow:hidden;min-height:100px}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
+
import { withDirectives as xe, createElementBlock as H, openBlock as T, createBlock as K, resolveDynamicComponent as ye, normalizeStyle as _e, vShow as Ge, computed as P, reactive as ae, onMounted as ve, watch as Ie, ref as E, createElementVNode as ee, Fragment as Ee, renderList as Te, provide as le, defineComponent as Bt, normalizeClass as Qe, resolveComponent as A, withCtx as D, createVNode as I, mergeProps as Ht, createSlots as Lt, createCommentVNode as je, toDisplayString as qt, createTextVNode as R, renderSlot as Kt, inject as ge, onBeforeMount as Ne, onBeforeUnmount as Be, onUnmounted as He, resolveDirective as zt, withKeys as Ut } from "vue";
|
|
3
|
+
import Jt from "json5";
|
|
4
|
+
import Wt from "js-md5";
|
|
5
|
+
import { defineStore as Gt } from "pinia";
|
|
6
|
+
import we from "js-cookie";
|
|
7
|
+
import { ElMessage as Qt, ElNotification as Yt, ElLoading as Xt, ElMessageBox as Ye } from "element-plus";
|
|
8
|
+
import { useRouter as Le, useRoute as qe } from "vue-router";
|
|
9
9
|
(function() {
|
|
10
|
-
const
|
|
11
|
-
console.log("%c 可视化加载器 hflvloader", "color: #3498db; font-size: 16px; font-weight: bold;"), console.log("%c版本号: 0.0.
|
|
10
|
+
const n = () => {
|
|
11
|
+
console.log("%c 可视化加载器 hflvloader", "color: #3498db; font-size: 16px; font-weight: bold;"), console.log("%c版本号: 0.0.5", "color: #2ecc71;"), console.log("%c编译日期: 2025/12/22 15:49:08", "color: #3498db;"), console.log("%c版权声明:", "color: #e74c3c; font-weight: bold;"), console.log("%c 1. 版权完全归qbansanguo享有。", "color: #34495e;"), console.log("%c 2. 程序包完整引用,不得以任何形式破解、裁剪,不得隐藏或删除版权信息。", "color: #34495e;"), console.log("%c 3. 保留此版权信息在控制台输出。", "color: #34495e;"), console.log("%c 版权所有 ©2024-2025 qbansanguo 保留对此版权信息的最终解释权.", "color: #f39c12;"), console.log("%c Copyright ©2024-2025 qbansanguo All rights reserved.", "color: #f39c12;");
|
|
12
12
|
};
|
|
13
13
|
if (typeof window < "u") {
|
|
14
|
-
window._copyright_hflvloader =
|
|
14
|
+
window._copyright_hflvloader = n;
|
|
15
15
|
try {
|
|
16
16
|
Object.defineProperty(window, _copyright_hflvloader, {
|
|
17
|
-
value:
|
|
17
|
+
value: n,
|
|
18
18
|
writable: !1,
|
|
19
19
|
configurable: !1,
|
|
20
20
|
enumerable: !1
|
|
21
21
|
});
|
|
22
22
|
} catch {
|
|
23
|
-
window._copyright_hflvloader =
|
|
23
|
+
window._copyright_hflvloader = n;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
n();
|
|
27
27
|
})();
|
|
28
|
-
function _(
|
|
29
|
-
return !!(
|
|
28
|
+
function _(n) {
|
|
29
|
+
return !!(n && n != "");
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
return !isNaN(parseFloat(
|
|
31
|
+
function ce(n) {
|
|
32
|
+
return !isNaN(parseFloat(n)) && isFinite(n);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
return
|
|
34
|
+
function Xe(n) {
|
|
35
|
+
return n && Object.prototype.toString.call(n) === "[object Date]" && !isNaN(n);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
return typeof Array.isArray > "u" ? Object.prototype.toString.call(
|
|
37
|
+
function B(n) {
|
|
38
|
+
return typeof Array.isArray > "u" ? Object.prototype.toString.call(n) === "[object Array]" : Array.isArray(n);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
return
|
|
40
|
+
function Se(n) {
|
|
41
|
+
return n == null;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
return !!(
|
|
43
|
+
function Zt(n) {
|
|
44
|
+
return !!(n || n === 0);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
46
|
+
function ue(n) {
|
|
47
|
+
return n instanceof Object && n !== null;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
return Object.keys(
|
|
49
|
+
function $t(n) {
|
|
50
|
+
return Object.keys(n).length === 0;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return !!(
|
|
52
|
+
function q(n) {
|
|
53
|
+
return !!(n && typeof n == "function");
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
return
|
|
55
|
+
function Ze(n) {
|
|
56
|
+
return n && n.__v_isRef && !!n.effect;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
return typeof
|
|
58
|
+
function De(n) {
|
|
59
|
+
return typeof n == "string" || n instanceof String;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
if (
|
|
61
|
+
function $e(n, o = {}) {
|
|
62
|
+
if (De(n) && _(n))
|
|
63
63
|
try {
|
|
64
|
-
return
|
|
65
|
-
} catch (
|
|
66
|
-
return console.warn("JSON 解析错误:",
|
|
64
|
+
return Jt.parse(n);
|
|
65
|
+
} catch (l) {
|
|
66
|
+
return console.warn("JSON 解析错误:", l), o;
|
|
67
67
|
}
|
|
68
68
|
else
|
|
69
|
-
return
|
|
69
|
+
return ue(n) ? n : o;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
return
|
|
71
|
+
function he(n) {
|
|
72
|
+
return De(n) ? n : ue(n) ? JSON.stringify(n, null, 2) : "";
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
if (typeof
|
|
76
|
-
const o = Array.isArray(
|
|
77
|
-
for (const
|
|
78
|
-
typeof
|
|
74
|
+
function ie(n) {
|
|
75
|
+
if (typeof n == "object") {
|
|
76
|
+
const o = Array.isArray(n) ? [] : {};
|
|
77
|
+
for (const l in n)
|
|
78
|
+
typeof n[l] == "object" ? o[l] = ie(n[l]) : o[l] = n[l];
|
|
79
79
|
return o;
|
|
80
80
|
}
|
|
81
|
-
return
|
|
81
|
+
return n;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
for (const
|
|
85
|
-
o[
|
|
86
|
-
return { ...
|
|
83
|
+
function et(n, o) {
|
|
84
|
+
for (const l in o)
|
|
85
|
+
o[l] instanceof Object && n[l] && Object.assign(o[l], et(n[l], o[l]));
|
|
86
|
+
return { ...n, ...o };
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
if (
|
|
90
|
-
let
|
|
91
|
-
return i = i.replace("yyyy",
|
|
88
|
+
function tt(n, o) {
|
|
89
|
+
if (n) {
|
|
90
|
+
let l = n.getFullYear(), t = n.getMonth() + 1, d = n.getDate(), a = n.getHours(), c = n.getMinutes(), f = n.getSeconds(), i = o;
|
|
91
|
+
return i = i.replace("yyyy", l), i.indexOf("MM") >= 0 ? t >= 10 ? i = i.replace("MM", t) : i = i.replace("MM", "0" + t) : i = i.replace("M", t), i.indexOf("dd") >= 0 ? d >= 10 ? i = i.replace("dd", d) : i = i.replace("dd", "0" + d) : i = i.replace("d", d), i.indexOf("HH") >= 0 ? a >= 10 ? i = i.replace("HH", a) : i = i.replace("HH", "0" + a) : i = i.replace("H", a), i.indexOf("mm") >= 0 ? c >= 10 ? i = i.replace("mm", c) : i = i.replace("mm", "0" + c) : i = i.replace("m", c), i.indexOf("ss") >= 0 ? f >= 10 ? i = i.replace("ss", f) : i = i.replace("ss", "0" + f) : i = i.replace("s", f), i;
|
|
92
92
|
}
|
|
93
93
|
return "";
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
if (
|
|
97
|
-
if (
|
|
98
|
-
return
|
|
99
|
-
if (
|
|
100
|
-
let o = /* @__PURE__ */ new Date(),
|
|
101
|
-
return
|
|
95
|
+
function nt(n) {
|
|
96
|
+
if (n) {
|
|
97
|
+
if (Xe(n))
|
|
98
|
+
return n;
|
|
99
|
+
if (ce(n)) {
|
|
100
|
+
let o = /* @__PURE__ */ new Date(), l = parseInt(n);
|
|
101
|
+
return l < 9999999999 && (l = l * 1e3), o.setTime(l), o;
|
|
102
102
|
} else
|
|
103
103
|
try {
|
|
104
|
-
return new Date(
|
|
104
|
+
return new Date(n);
|
|
105
105
|
} catch {
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
return null;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
if (
|
|
112
|
-
let
|
|
113
|
-
return o == 1 ?
|
|
110
|
+
function en(n, o = 0) {
|
|
111
|
+
if (n) {
|
|
112
|
+
let l = n.getDay(), t = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], d = ["周末", "周一", "周二", "周三", "周四", "周五", "周六"];
|
|
113
|
+
return o == 1 ? t[l] : o == 2 ? d[l] : l;
|
|
114
114
|
}
|
|
115
115
|
return null;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function tn(n) {
|
|
118
118
|
const o = document.createElement("textarea");
|
|
119
|
-
o.value =
|
|
120
|
-
const
|
|
121
|
-
return document.body.removeChild(o),
|
|
119
|
+
o.value = n, document.body.appendChild(o), o.select();
|
|
120
|
+
const l = document.execCommand("copy");
|
|
121
|
+
return document.body.removeChild(o), l;
|
|
122
122
|
}
|
|
123
|
-
async function
|
|
123
|
+
async function Ce(n) {
|
|
124
124
|
try {
|
|
125
|
-
return navigator.clipboard ? (await navigator.clipboard.writeText(
|
|
125
|
+
return navigator.clipboard ? (await navigator.clipboard.writeText(n), !0) : !!tn(n);
|
|
126
126
|
} catch (o) {
|
|
127
127
|
return console.error("无法复制内容", o), !1;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
async function
|
|
130
|
+
async function nn() {
|
|
131
131
|
try {
|
|
132
132
|
return navigator.clipboard ? await navigator.clipboard.readText() : null;
|
|
133
|
-
} catch (
|
|
134
|
-
return console.error("无法读取黏贴版内容",
|
|
133
|
+
} catch (n) {
|
|
134
|
+
return console.error("无法读取黏贴版内容", n), null;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
return
|
|
137
|
+
function on(n, o) {
|
|
138
|
+
return ce(n) ? n : o;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
return o.split(".").reduce((
|
|
140
|
+
function Pe(n, o) {
|
|
141
|
+
return o.split(".").reduce((l, t) => l && l[t], n);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
if (!
|
|
143
|
+
function Ve(n, o) {
|
|
144
|
+
if (!n || typeof n != "object" || typeof o != "string" || !o)
|
|
145
145
|
return !1;
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
for (const
|
|
149
|
-
if (
|
|
150
|
-
|
|
146
|
+
const l = o.split(".");
|
|
147
|
+
let t = n;
|
|
148
|
+
for (const d of l)
|
|
149
|
+
if (t && typeof t == "object" && t.hasOwnProperty(d))
|
|
150
|
+
t = t[d];
|
|
151
151
|
else
|
|
152
152
|
return !1;
|
|
153
153
|
return !0;
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function ot() {
|
|
156
156
|
if (typeof crypto < "u" && crypto.randomUUID)
|
|
157
157
|
return crypto.randomUUID();
|
|
158
158
|
if (typeof crypto < "u" && crypto.getRandomValues) {
|
|
159
|
-
const
|
|
160
|
-
return crypto.getRandomValues(
|
|
159
|
+
const n = new Uint8Array(16);
|
|
160
|
+
return crypto.getRandomValues(n), n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Array.from(n).map((o, l) => [4, 6, 8, 10].includes(l) ? "-" + o.toString(16).padStart(2, "0") : o.toString(16).padStart(2, "0")).join("");
|
|
161
161
|
}
|
|
162
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(
|
|
162
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(n) {
|
|
163
163
|
const o = Math.random() * 16 | 0;
|
|
164
|
-
return (
|
|
164
|
+
return (n === "x" ? o : o & 3 | 8).toString(16);
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function rn(n, o = {}, l) {
|
|
168
168
|
try {
|
|
169
|
-
let
|
|
170
|
-
return
|
|
171
|
-
} catch (
|
|
172
|
-
return console.error("执行自定义数时出错:",
|
|
169
|
+
let t = n.toString().trim();
|
|
170
|
+
return t.indexOf("function") < 0 && (t = "function(param){" + t + "}"), new Function(`{return ${t}}`)()(o);
|
|
171
|
+
} catch (t) {
|
|
172
|
+
return console.error("执行自定义数时出错:", t), l;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
return _(
|
|
175
|
+
function rt(n) {
|
|
176
|
+
return _(n) ? Wt(n) : "";
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function $(n, ...o) {
|
|
179
179
|
if (!window.hflvloader_debug) return;
|
|
180
|
-
const
|
|
180
|
+
const l = {
|
|
181
181
|
debug: ["%c[DEBUG]", "color: #4CAF50; font-weight: bold"],
|
|
182
182
|
info: ["%c[INFO]", "color: #2196F3; font-weight: bold"],
|
|
183
183
|
warn: ["%c[WARN]", "color: #FF9800; font-weight: bold"],
|
|
184
184
|
error: ["%c[ERROR]", "color: #F44336; font-weight: bold"]
|
|
185
|
-
},
|
|
186
|
-
switch (
|
|
185
|
+
}, t = l[n] || l.debug;
|
|
186
|
+
switch (n) {
|
|
187
187
|
case "debug":
|
|
188
|
-
console.debug(
|
|
188
|
+
console.debug(t[0], t[1], ...o);
|
|
189
189
|
break;
|
|
190
190
|
case "info":
|
|
191
|
-
console.info(
|
|
191
|
+
console.info(t[0], t[1], ...o);
|
|
192
192
|
break;
|
|
193
193
|
case "warn":
|
|
194
|
-
console.warn(
|
|
194
|
+
console.warn(t[0], t[1], ...o);
|
|
195
195
|
break;
|
|
196
196
|
case "error":
|
|
197
|
-
console.error(
|
|
197
|
+
console.error(t[0], t[1], ...o);
|
|
198
198
|
break;
|
|
199
199
|
default:
|
|
200
|
-
console.log(
|
|
200
|
+
console.log(t[0], t[1], ...o);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
function
|
|
204
|
-
if (typeof
|
|
203
|
+
function ln(n, o = 0) {
|
|
204
|
+
if (typeof n != "number" || isNaN(n))
|
|
205
205
|
return NaN;
|
|
206
|
-
const
|
|
207
|
-
return Math.round(
|
|
206
|
+
const t = 10 * Math.max(0, Math.floor(Number(o) || 0));
|
|
207
|
+
return Math.round(n * t) / t;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
return (Math.floor(
|
|
209
|
+
function sn(n) {
|
|
210
|
+
return (Math.floor(n) & 1) === 0;
|
|
211
211
|
}
|
|
212
|
-
const
|
|
212
|
+
const Qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
213
213
|
__proto__: null,
|
|
214
|
-
consolePrint:
|
|
215
|
-
copyToClipboard:
|
|
216
|
-
deepCopy:
|
|
217
|
-
deepMerge:
|
|
218
|
-
doMD5:
|
|
219
|
-
execCustomFunction:
|
|
220
|
-
formatDate:
|
|
221
|
-
generateSecureUUID:
|
|
222
|
-
getDate:
|
|
223
|
-
getJsonObject:
|
|
224
|
-
getValByDefault:
|
|
225
|
-
getValueByPath:
|
|
226
|
-
getWeek:
|
|
227
|
-
hasOwnPathInObject:
|
|
228
|
-
isArray:
|
|
229
|
-
isComputed:
|
|
230
|
-
isDate:
|
|
231
|
-
isEmptyObject:
|
|
232
|
-
isEven:
|
|
233
|
-
isFunction:
|
|
214
|
+
consolePrint: $,
|
|
215
|
+
copyToClipboard: Ce,
|
|
216
|
+
deepCopy: ie,
|
|
217
|
+
deepMerge: et,
|
|
218
|
+
doMD5: rt,
|
|
219
|
+
execCustomFunction: rn,
|
|
220
|
+
formatDate: tt,
|
|
221
|
+
generateSecureUUID: ot,
|
|
222
|
+
getDate: nt,
|
|
223
|
+
getJsonObject: $e,
|
|
224
|
+
getValByDefault: on,
|
|
225
|
+
getValueByPath: Pe,
|
|
226
|
+
getWeek: en,
|
|
227
|
+
hasOwnPathInObject: Ve,
|
|
228
|
+
isArray: B,
|
|
229
|
+
isComputed: Ze,
|
|
230
|
+
isDate: Xe,
|
|
231
|
+
isEmptyObject: $t,
|
|
232
|
+
isEven: sn,
|
|
233
|
+
isFunction: q,
|
|
234
234
|
isNotEmpty: _,
|
|
235
|
-
isNullOrUndefined:
|
|
236
|
-
isNumber:
|
|
237
|
-
isObject:
|
|
238
|
-
isString:
|
|
239
|
-
isValid:
|
|
240
|
-
keepDecimalCalc:
|
|
241
|
-
pasteFromClipboard:
|
|
242
|
-
toJsonStr:
|
|
243
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
244
|
-
function
|
|
235
|
+
isNullOrUndefined: Se,
|
|
236
|
+
isNumber: ce,
|
|
237
|
+
isObject: ue,
|
|
238
|
+
isString: De,
|
|
239
|
+
isValid: Zt,
|
|
240
|
+
keepDecimalCalc: ln,
|
|
241
|
+
pasteFromClipboard: nn,
|
|
242
|
+
toJsonStr: he
|
|
243
|
+
}, Symbol.toStringTag, { value: "Module" })), an = ["width", "height", "scale"];
|
|
244
|
+
function cn(n) {
|
|
245
245
|
const o = {};
|
|
246
|
-
return Object.keys(
|
|
247
|
-
|
|
246
|
+
return Object.keys(n).filter((l) => !an.includes(l)).forEach((l) => {
|
|
247
|
+
l === "fontSize" ? o[l] += "px" : l === "backgroundImage" && _(n[l]) ? o["background-image"] = "url(" + n[l] + ")" : l === "backgroundRepeat" ? o["background-repeat"] = n[l] : l === "backgroundSize" ? o["background-size"] = n[l] : l === "backgroundPosition" ? o["background-position"] = n[l] : o[l] = n[l];
|
|
248
248
|
}), o;
|
|
249
249
|
}
|
|
250
|
-
const
|
|
251
|
-
function
|
|
252
|
-
const
|
|
253
|
-
return Object.keys(
|
|
254
|
-
o.includes(
|
|
255
|
-
}),
|
|
250
|
+
const lt = ["fontSize", "width", "height", "top", "left", "borderWidth", "letterSpacing", "borderRadius"];
|
|
251
|
+
function st(n, o = []) {
|
|
252
|
+
const l = {};
|
|
253
|
+
return Object.keys(n).forEach((t) => {
|
|
254
|
+
o.includes(t) || (t != "rotate" ? n[t] !== "" && (l[t] = n[t], lt.includes(t) && (l[t] += "px")) : l.transform = `${t}(${n[t]}deg)`);
|
|
255
|
+
}), l;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
const
|
|
257
|
+
function un(n, o = []) {
|
|
258
|
+
const l = {};
|
|
259
259
|
return [
|
|
260
260
|
"opacity",
|
|
261
261
|
"width",
|
|
@@ -269,18 +269,18 @@ function an(t, o = []) {
|
|
|
269
269
|
"letterSpacing",
|
|
270
270
|
"textAlign",
|
|
271
271
|
"color"
|
|
272
|
-
].forEach((
|
|
273
|
-
o.includes(
|
|
274
|
-
}),
|
|
272
|
+
].forEach((t) => {
|
|
273
|
+
o.includes(t) || (t != "rotate" ? n[t] !== "" && (l[t] = n[t], lt.includes(t) && (l[t] += "px")) : l.transform = `${t}(${n[t]}deg)`);
|
|
274
|
+
}), l;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
277
|
-
let f = JSON.parse(JSON.stringify(
|
|
276
|
+
function ne(n, o, l, t, d, a, c) {
|
|
277
|
+
let f = JSON.parse(JSON.stringify(n));
|
|
278
278
|
return f && f.length > 0 && f.forEach((i) => {
|
|
279
279
|
if (i && i.style) {
|
|
280
|
-
if (
|
|
280
|
+
if (t != 1) {
|
|
281
281
|
let g = i.style.width;
|
|
282
282
|
if (i.style.wdSet == "calc")
|
|
283
|
-
g = Math.floor(i.style.width *
|
|
283
|
+
g = Math.floor(i.style.width * t);
|
|
284
284
|
else if (i.style.wdSet == "overspread") {
|
|
285
285
|
let h = i.style.wdReserve < 0 ? 0 : i.style.wdReserve;
|
|
286
286
|
g = Math.floor(o - h);
|
|
@@ -288,74 +288,74 @@ function Z(t, o, s, n, p, a, c) {
|
|
|
288
288
|
if (i.style.hAffix != "left") if (i.style.hAffix == "right") {
|
|
289
289
|
let h = a - (i.style.left + i.style.width);
|
|
290
290
|
i.style.left = o - h - g;
|
|
291
|
-
} else i.style.hAffix == "center" ? i.style.left = Math.floor(o * 0.5 - g * 0.5) : i.style.left = Math.floor(i.style.left *
|
|
291
|
+
} else i.style.hAffix == "center" ? i.style.left = Math.floor(o * 0.5 - g * 0.5) : i.style.left = Math.floor(i.style.left * t);
|
|
292
292
|
i.style.width = g;
|
|
293
293
|
}
|
|
294
|
-
if (
|
|
294
|
+
if (d != 1) {
|
|
295
295
|
let g = i.style.height;
|
|
296
296
|
if (i.style.htSet == "calc")
|
|
297
|
-
g = Math.floor(i.style.height *
|
|
297
|
+
g = Math.floor(i.style.height * d);
|
|
298
298
|
else if (i.style.htSet == "overspread") {
|
|
299
299
|
let h = i.style.htReserve < 0 ? 0 : i.style.htReserve;
|
|
300
|
-
g = Math.floor(
|
|
300
|
+
g = Math.floor(l - h);
|
|
301
301
|
}
|
|
302
302
|
if (i.style.vAffix != "top") if (i.style.vAffix == "bottom") {
|
|
303
303
|
let h = c - (i.style.top + i.style.height);
|
|
304
|
-
i.style.top =
|
|
305
|
-
} else i.style.vAffix == "center" ? i.style.top = Math.floor(
|
|
304
|
+
i.style.top = l - h - g;
|
|
305
|
+
} else i.style.vAffix == "center" ? i.style.top = Math.floor(l * 0.5 - g * 0.5) : i.style.top = Math.floor(i.style.top * d);
|
|
306
306
|
i.style.height = g;
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
}), f;
|
|
310
310
|
}
|
|
311
|
-
function
|
|
312
|
-
let
|
|
313
|
-
if (!(
|
|
314
|
-
|
|
311
|
+
function Yn(n, o, l, t) {
|
|
312
|
+
let d = {}, a = [];
|
|
313
|
+
if (!(l && l.screenAdapter && l.screenAdapter != "no-adapter"))
|
|
314
|
+
d = l, a = t;
|
|
315
315
|
else {
|
|
316
|
-
let c = Math.floor(
|
|
317
|
-
if (
|
|
318
|
-
|
|
319
|
-
else if (
|
|
320
|
-
|
|
316
|
+
let c = Math.floor(n), f = Math.floor(o), i = Number(l.width), g = Number(l.height), h = 1, y = 1;
|
|
317
|
+
if (l.screenAdapter == "all-screen")
|
|
318
|
+
d = JSON.parse(JSON.stringify(l)), c > i + 10 && (d.width = c, h = Math.floor(1e4 * c / i) / 1e4), f > g + 10 && (d.height = f, y = Math.floor(1e4 * f / g) / 1e4), a = ne(t, c, f, h, y, i, g);
|
|
319
|
+
else if (l.screenAdapter == "original-ratio") {
|
|
320
|
+
d = JSON.parse(JSON.stringify(l));
|
|
321
321
|
let v = Math.floor(1e4 * i / g) / 1e4;
|
|
322
|
-
Math.floor(f * v) > c ? (
|
|
323
|
-
} else if (
|
|
324
|
-
|
|
322
|
+
Math.floor(f * v) > c ? (d.width = c, h = Math.floor(1e4 * c / i) / 1e4, f = Math.floor(c / v), d.height = f, y = Math.floor(1e4 * f / g) / 1e4) : (d.height = f, y = Math.floor(1e4 * f / g) / 1e4, c = Math.floor(f * v), d.width = c, h = Math.floor(1e4 * c / i) / 1e4), a = ne(t, c, f, h, y, i, g);
|
|
323
|
+
} else if (l.screenAdapter == "h-adapter-wh") {
|
|
324
|
+
d = JSON.parse(JSON.stringify(l));
|
|
325
325
|
let v = Math.floor(1e4 * i / g) / 1e4;
|
|
326
|
-
c > i + 10 && (
|
|
327
|
-
} else if (
|
|
328
|
-
|
|
326
|
+
c > i + 10 && (d.width = c, h = Math.floor(1e4 * c / i) / 1e4, f = Math.floor(c / v), d.height = f, y = Math.floor(1e4 * f / g) / 1e4), a = ne(t, c, f, h, y, i, g);
|
|
327
|
+
} else if (l.screenAdapter == "v-adapter-wh") {
|
|
328
|
+
d = JSON.parse(JSON.stringify(l));
|
|
329
329
|
let v = Math.floor(1e4 * i / g) / 1e4;
|
|
330
|
-
f > g + 10 && (
|
|
331
|
-
} else
|
|
330
|
+
f > g + 10 && (d.height = f, y = Math.floor(1e4 * f / g) / 1e4, c = Math.floor(f * v), d.width = c, h = Math.floor(1e4 * c / i) / 1e4), a = ne(t, c, f, h, y, i, g);
|
|
331
|
+
} else l.screenAdapter == "h-adapter" ? (d = JSON.parse(JSON.stringify(l)), c > i + 10 && (d.width = c, h = Math.floor(1e4 * c / i) / 1e4), a = ne(t, c, f, h, y, i, g)) : l.screenAdapter == "v-adapter" ? (d = JSON.parse(JSON.stringify(l)), f > g + 10 && (d.height = f, y = Math.floor(1e4 * f / g) / 1e4), a = ne(t, c, f, h, y, i, g)) : (d = l, a = t);
|
|
332
332
|
}
|
|
333
333
|
return {
|
|
334
|
-
canvasStyleData:
|
|
334
|
+
canvasStyleData: d,
|
|
335
335
|
componentData: a
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
|
-
async function
|
|
339
|
-
const
|
|
340
|
-
const { animationTime: a, value: c = "", isLoop: f } =
|
|
341
|
-
|
|
338
|
+
async function Ke(n, o = []) {
|
|
339
|
+
const l = (t) => new Promise((d) => {
|
|
340
|
+
const { animationTime: a, value: c = "", isLoop: f } = t;
|
|
341
|
+
n.style.setProperty("--time", `${a}s`), n.classList.add(c, "animated", ze(f));
|
|
342
342
|
const i = () => {
|
|
343
|
-
|
|
343
|
+
n.removeEventListener("animationend", i), n.removeEventListener("animationcancel", i), n.classList.remove(c, "animated", ze(f)), n.style.removeProperty("--time"), d();
|
|
344
344
|
};
|
|
345
|
-
|
|
345
|
+
n.addEventListener("animationend", i), n.addEventListener("animationcancel", i);
|
|
346
346
|
});
|
|
347
|
-
for (let
|
|
348
|
-
await
|
|
347
|
+
for (let t = 0, d = o.length; t < d; t++)
|
|
348
|
+
await l(o[t]);
|
|
349
349
|
}
|
|
350
|
-
function
|
|
351
|
-
return
|
|
350
|
+
function ze(n) {
|
|
351
|
+
return n ? "infinite" : "no-infinite";
|
|
352
352
|
}
|
|
353
|
-
const
|
|
354
|
-
const
|
|
355
|
-
for (const [
|
|
356
|
-
|
|
357
|
-
return
|
|
358
|
-
},
|
|
353
|
+
const J = (n, o) => {
|
|
354
|
+
const l = n.__vccOpts || n;
|
|
355
|
+
for (const [t, d] of o)
|
|
356
|
+
l[t] = d;
|
|
357
|
+
return l;
|
|
358
|
+
}, fn = {
|
|
359
359
|
__name: "ComponentWrapper",
|
|
360
360
|
props: {
|
|
361
361
|
config: {
|
|
@@ -365,65 +365,65 @@ const z = (t, o) => {
|
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
},
|
|
368
|
-
setup(
|
|
369
|
-
const
|
|
370
|
-
get: () => !
|
|
368
|
+
setup(n, { expose: o }) {
|
|
369
|
+
const l = n, t = P(() => l.config || {}), d = P({
|
|
370
|
+
get: () => !t.value.style?.isHide,
|
|
371
371
|
set: (v) => {
|
|
372
|
-
|
|
372
|
+
t.value.style && (t.value.style.isHide = !v);
|
|
373
373
|
}
|
|
374
|
-
}), a =
|
|
375
|
-
v ? a[`Ve${
|
|
374
|
+
}), a = ae({}), c = (v, O) => {
|
|
375
|
+
v ? a[`Ve${O}`] = v : delete a[`Ve${O}`];
|
|
376
376
|
}, f = (v) => a[`Ve${v}`], i = () => {
|
|
377
|
-
if (
|
|
378
|
-
let v = a[`Ve${
|
|
379
|
-
v.$el &&
|
|
377
|
+
if (t.value.animations && t.value.animations.length > 0) {
|
|
378
|
+
let v = a[`Ve${t.value.id}`];
|
|
379
|
+
v.$el && Ke(v.$el, t.value.animations);
|
|
380
380
|
}
|
|
381
381
|
}, g = () => {
|
|
382
|
-
|
|
382
|
+
d.value = !1;
|
|
383
383
|
}, h = () => {
|
|
384
|
-
|
|
384
|
+
d.value = !0;
|
|
385
385
|
};
|
|
386
|
-
|
|
386
|
+
ve(() => {
|
|
387
387
|
i();
|
|
388
388
|
}), o({
|
|
389
389
|
getComponentRef: f,
|
|
390
390
|
hide: g,
|
|
391
391
|
show: h
|
|
392
392
|
});
|
|
393
|
-
const y = { props:
|
|
394
|
-
return
|
|
393
|
+
const y = { props: l, config: t, isShow: d, componentRefs: a, setComponentRef: c, getComponentRef: f, execAnimation: i, hide: g, show: h, ref: E, computed: P, onMounted: ve, reactive: ae, watch: Ie, get getSVGStyle() {
|
|
394
|
+
return un;
|
|
395
395
|
}, get getStyle() {
|
|
396
|
-
return
|
|
396
|
+
return st;
|
|
397
397
|
}, get runAnimation() {
|
|
398
|
-
return
|
|
398
|
+
return Ke;
|
|
399
399
|
} };
|
|
400
400
|
return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
|
|
401
401
|
}
|
|
402
402
|
};
|
|
403
|
-
function
|
|
404
|
-
return
|
|
405
|
-
|
|
403
|
+
function dn(n, o, l, t, d, a) {
|
|
404
|
+
return xe((T(), H("div", { class: "component-wrapper" }, [
|
|
405
|
+
t.config.component.startsWith("SVG") ? (T(), K(ye(t.config.component), {
|
|
406
406
|
key: 0,
|
|
407
|
-
ref: (c) =>
|
|
407
|
+
ref: (c) => t.setComponentRef(c, t.config.id),
|
|
408
408
|
class: "component",
|
|
409
|
-
style:
|
|
410
|
-
"prop-value":
|
|
411
|
-
element:
|
|
409
|
+
style: _e(t.getSVGStyle(t.config.style)),
|
|
410
|
+
"prop-value": t.config.propValue,
|
|
411
|
+
element: t.config,
|
|
412
412
|
designStatus: !1
|
|
413
|
-
}, null, 8, ["style", "prop-value", "element"])) : (
|
|
413
|
+
}, null, 8, ["style", "prop-value", "element"])) : (T(), K(ye(t.config.component), {
|
|
414
414
|
key: 1,
|
|
415
|
-
ref: (c) =>
|
|
415
|
+
ref: (c) => t.setComponentRef(c, t.config.id),
|
|
416
416
|
class: "component",
|
|
417
|
-
style:
|
|
418
|
-
"prop-value":
|
|
419
|
-
element:
|
|
417
|
+
style: _e(t.getStyle(t.config.style)),
|
|
418
|
+
"prop-value": t.config.propValue,
|
|
419
|
+
element: t.config,
|
|
420
420
|
designStatus: !1
|
|
421
421
|
}, null, 8, ["style", "prop-value", "element"]))
|
|
422
422
|
], 512)), [
|
|
423
|
-
[
|
|
423
|
+
[Ge, t.isShow]
|
|
424
424
|
]);
|
|
425
425
|
}
|
|
426
|
-
const
|
|
426
|
+
const pn = /* @__PURE__ */ J(fn, [["render", dn], ["__scopeId", "data-v-3fc3a63c"], ["__file", "ComponentWrapper.vue"]]), mn = /* @__PURE__ */ Object.assign({
|
|
427
427
|
name: "VEPage"
|
|
428
428
|
}, {
|
|
429
429
|
__name: "index",
|
|
@@ -440,63 +440,63 @@ const fn = /* @__PURE__ */ z(cn, [["render", un], ["__scopeId", "data-v-3fc3a63c
|
|
|
440
440
|
default: []
|
|
441
441
|
}
|
|
442
442
|
},
|
|
443
|
-
setup(
|
|
444
|
-
const
|
|
445
|
-
h && (
|
|
443
|
+
setup(n, { expose: o }) {
|
|
444
|
+
const l = n, t = E({}), d = P(() => l.canvasStyle || {}), a = P(() => l.componentData || []), c = (h, y) => {
|
|
445
|
+
h && (t.value[y] = h);
|
|
446
446
|
}, f = (h, y, v) => {
|
|
447
447
|
if (_(h) && _(y)) {
|
|
448
|
-
const
|
|
449
|
-
if (
|
|
450
|
-
let
|
|
451
|
-
|
|
452
|
-
const
|
|
453
|
-
|
|
448
|
+
const O = "VeP" + h, b = t.value[O];
|
|
449
|
+
if (b) {
|
|
450
|
+
let w;
|
|
451
|
+
B(b) ? w = b[0] : w = b;
|
|
452
|
+
const M = w.getComponentRef(h);
|
|
453
|
+
M ? M?.$options.name === "Group" && v && v.compId ? M.callGroupCompMethod(v.compId, y, v.data) : M[y] && (v ? M[y](v) : M[y]()) : $("warning", "The component is not exist.id:", h);
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
456
|
}, i = (h, y, v = {}) => {
|
|
457
457
|
if (_(h)) {
|
|
458
|
-
const
|
|
459
|
-
if (
|
|
460
|
-
let
|
|
461
|
-
|
|
458
|
+
const O = "VeP" + h, b = t.value[O];
|
|
459
|
+
if (b) {
|
|
460
|
+
let w;
|
|
461
|
+
B(b) ? w = b[0] : w = b, y ? w.show() : w.hide();
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
|
-
|
|
465
|
+
le("VE-CompMethod", f), le("VE-CompHideAndShow", i), o({
|
|
466
466
|
callCompMethod: f
|
|
467
467
|
});
|
|
468
|
-
const g = { props:
|
|
469
|
-
return
|
|
470
|
-
}, ComponentWrapper:
|
|
468
|
+
const g = { props: l, componentRefs: t, canvasStyle: d, componentData: a, setComponentRef: c, callCompMethod: f, callCompHideAndShow: i, ref: E, computed: P, provide: le, watch: Ie, get getCanvasStyle() {
|
|
469
|
+
return cn;
|
|
470
|
+
}, ComponentWrapper: pn, get isNotEmpty() {
|
|
471
471
|
return _;
|
|
472
472
|
}, get isArray() {
|
|
473
|
-
return
|
|
473
|
+
return B;
|
|
474
474
|
}, get consolePrint() {
|
|
475
|
-
return
|
|
475
|
+
return $;
|
|
476
476
|
} };
|
|
477
477
|
return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
|
|
478
478
|
}
|
|
479
479
|
});
|
|
480
|
-
function
|
|
481
|
-
return
|
|
482
|
-
|
|
480
|
+
function gn(n, o, l, t, d, a) {
|
|
481
|
+
return T(), H("div", { class: "canvas-container" }, [
|
|
482
|
+
ee("div", {
|
|
483
483
|
class: "canvas",
|
|
484
|
-
style:
|
|
485
|
-
...
|
|
486
|
-
width:
|
|
487
|
-
height:
|
|
484
|
+
style: _e({
|
|
485
|
+
...t.getCanvasStyle(t.canvasStyle || {}),
|
|
486
|
+
width: t.canvasStyle.width + "px",
|
|
487
|
+
height: t.canvasStyle.height + "px"
|
|
488
488
|
})
|
|
489
489
|
}, [
|
|
490
|
-
(
|
|
490
|
+
(T(!0), H(Ee, null, Te(t.componentData, (c, f) => (T(), K(t.ComponentWrapper, {
|
|
491
491
|
key: f,
|
|
492
492
|
config: c,
|
|
493
493
|
ref_for: !0,
|
|
494
|
-
ref: (i) =>
|
|
494
|
+
ref: (i) => t.setComponentRef(i, "VeP" + c.id)
|
|
495
495
|
}, null, 8, ["config"]))), 128))
|
|
496
496
|
], 4)
|
|
497
497
|
]);
|
|
498
498
|
}
|
|
499
|
-
const
|
|
499
|
+
const hn = /* @__PURE__ */ J(mn, [["render", gn], ["__scopeId", "data-v-ed658753"], ["__file", "index.vue"]]), yn = Bt({
|
|
500
500
|
name: "ve-comp-svg-icon",
|
|
501
501
|
props: {
|
|
502
502
|
iconClass: {
|
|
@@ -512,25 +512,25 @@ const mn = /* @__PURE__ */ z(pn, [["render", dn], ["__scopeId", "data-v-ed658753
|
|
|
512
512
|
default: ""
|
|
513
513
|
}
|
|
514
514
|
},
|
|
515
|
-
setup(
|
|
515
|
+
setup(n) {
|
|
516
516
|
return {
|
|
517
|
-
iconName:
|
|
518
|
-
svgClass:
|
|
517
|
+
iconName: P(() => `#icon-${n.iconClass}`),
|
|
518
|
+
svgClass: P(() => n.className ? `ve-comp-svg-icon ${n.className}` : "ve-comp-svg-icon")
|
|
519
519
|
};
|
|
520
520
|
}
|
|
521
521
|
});
|
|
522
|
-
function
|
|
523
|
-
return
|
|
524
|
-
class:
|
|
522
|
+
function _n(n, o, l, t, d, a) {
|
|
523
|
+
return T(), H("svg", {
|
|
524
|
+
class: Qe(n.svgClass),
|
|
525
525
|
"aria-hidden": "true"
|
|
526
526
|
}, [
|
|
527
|
-
|
|
528
|
-
"xlink:href":
|
|
529
|
-
fill:
|
|
527
|
+
ee("use", {
|
|
528
|
+
"xlink:href": n.iconName,
|
|
529
|
+
fill: n.color
|
|
530
530
|
}, null, 8, ["xlink:href", "fill"])
|
|
531
531
|
], 2);
|
|
532
532
|
}
|
|
533
|
-
const
|
|
533
|
+
const it = /* @__PURE__ */ J(yn, [["render", _n], ["__file", "index.vue"]]), vn = /* @__PURE__ */ Object.assign({
|
|
534
534
|
name: "CompositeIcon"
|
|
535
535
|
}, {
|
|
536
536
|
__name: "index",
|
|
@@ -549,48 +549,48 @@ const ot = /* @__PURE__ */ z(gn, [["render", hn], ["__file", "index.vue"]]), yn
|
|
|
549
549
|
default: ""
|
|
550
550
|
}
|
|
551
551
|
},
|
|
552
|
-
setup(
|
|
552
|
+
setup(n, { expose: o }) {
|
|
553
553
|
o();
|
|
554
|
-
const f = { props:
|
|
554
|
+
const f = { props: n, isImage: (i) => i && i.toString().toLowerCase().startsWith("img#"), getImageSrc: (i) => i.toString().substring(4), isSvgIcon: (i) => i && i.toString().toLowerCase().indexOf("svg#") == 0, getSvgIconClass: (i) => i.toString().substring(4), VeCompSvgIcon: it };
|
|
555
555
|
return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
|
|
556
556
|
}
|
|
557
557
|
});
|
|
558
|
-
function
|
|
559
|
-
const c =
|
|
560
|
-
return
|
|
561
|
-
size:
|
|
562
|
-
color:
|
|
558
|
+
function Sn(n, o, l, t, d, a) {
|
|
559
|
+
const c = A("el-icon");
|
|
560
|
+
return T(), K(c, {
|
|
561
|
+
size: t.props.iconSize,
|
|
562
|
+
color: t.props.color
|
|
563
563
|
}, {
|
|
564
|
-
default:
|
|
565
|
-
|
|
564
|
+
default: D(() => [
|
|
565
|
+
t.isImage(t.props.icon) ? (T(), H("img", {
|
|
566
566
|
key: 0,
|
|
567
|
-
src:
|
|
568
|
-
}, null, 8, ["src"])) :
|
|
567
|
+
src: t.getImageSrc(t.props.icon)
|
|
568
|
+
}, null, 8, ["src"])) : t.isSvgIcon(t.props.icon) ? (T(), K(t.VeCompSvgIcon, {
|
|
569
569
|
key: 1,
|
|
570
|
-
"icon-class":
|
|
571
|
-
color:
|
|
572
|
-
}, null, 8, ["icon-class", "color"])) : (
|
|
570
|
+
"icon-class": t.getSvgIconClass(t.props.icon),
|
|
571
|
+
color: t.props.color
|
|
572
|
+
}, null, 8, ["icon-class", "color"])) : (T(), K(ye(t.props.icon), { key: 2 }))
|
|
573
573
|
]),
|
|
574
574
|
_: 1
|
|
575
575
|
}, 8, ["size", "color"]);
|
|
576
576
|
}
|
|
577
|
-
const
|
|
578
|
-
let
|
|
579
|
-
const
|
|
580
|
-
if (!
|
|
581
|
-
const
|
|
582
|
-
|
|
583
|
-
dialogs:
|
|
577
|
+
const wn = /* @__PURE__ */ J(vn, [["render", Sn], ["__file", "index.vue"]]);
|
|
578
|
+
let be = null;
|
|
579
|
+
const Oe = () => {
|
|
580
|
+
if (!be) {
|
|
581
|
+
const n = ae({}), o = E([]);
|
|
582
|
+
be = {
|
|
583
|
+
dialogs: n,
|
|
584
584
|
dialogStack: o,
|
|
585
585
|
openDialog: (c = {}) => {
|
|
586
|
-
const f = c.dialogId || "dialog-" +
|
|
586
|
+
const f = c.dialogId || "dialog-" + ot(), i = o.value.length;
|
|
587
587
|
i >= 1 && (c.appendToBody = !0);
|
|
588
588
|
const g = {
|
|
589
589
|
id: f,
|
|
590
590
|
level: i,
|
|
591
591
|
config: c
|
|
592
592
|
};
|
|
593
|
-
if (
|
|
593
|
+
if (n[f] = g, o.value.length >= 1) {
|
|
594
594
|
let h = !1;
|
|
595
595
|
for (let y = 0; y < o.value.length; y++)
|
|
596
596
|
if (f == o.value[y]) {
|
|
@@ -603,18 +603,18 @@ const Se = () => {
|
|
|
603
603
|
return f;
|
|
604
604
|
},
|
|
605
605
|
closeDialog: (c) => {
|
|
606
|
-
delete
|
|
606
|
+
delete n[c], o.value = o.value.filter((f) => f !== c);
|
|
607
607
|
},
|
|
608
608
|
closeAllDialogs: () => {
|
|
609
|
-
Object.keys(
|
|
610
|
-
delete
|
|
609
|
+
Object.keys(n).forEach((c) => {
|
|
610
|
+
delete n[c];
|
|
611
611
|
}), o.value = [];
|
|
612
612
|
},
|
|
613
613
|
getDialogCount: () => o.value.length
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
|
-
return
|
|
617
|
-
},
|
|
616
|
+
return be;
|
|
617
|
+
}, bn = /* @__PURE__ */ Object.assign({
|
|
618
618
|
name: "FullScreenDialog"
|
|
619
619
|
}, {
|
|
620
620
|
__name: "FullscreenDialog",
|
|
@@ -625,90 +625,96 @@ const Se = () => {
|
|
|
625
625
|
}
|
|
626
626
|
},
|
|
627
627
|
emits: ["confirm", "cancel"],
|
|
628
|
-
setup(
|
|
629
|
-
const
|
|
628
|
+
setup(n, { expose: o, emit: l }) {
|
|
629
|
+
const t = n, d = l, a = P(() => t.config), c = P(() => a.value.title || "对话框"), f = P(() => !!t.config.showHeader), i = E(a.value.fullscreen), g = E(a.value.width), h = E(!0), y = P(() => {
|
|
630
630
|
let C = a.value.width ?? 800;
|
|
631
631
|
return f.value ? C + 32 : C;
|
|
632
|
-
}), v =
|
|
632
|
+
}), v = P(() => {
|
|
633
633
|
let C = {};
|
|
634
634
|
return C.style = {}, C.style.width = a.value.width ?? 800, C.style.height = a.value.height ?? 600, C.prop = {}, C.prop.subpageId = a.value.pageId, C.containerParam = a.value.pageParam || {}, C;
|
|
635
|
-
}),
|
|
635
|
+
}), O = P(() => {
|
|
636
636
|
let C = {};
|
|
637
637
|
return C.modal = a.value.modal, C["show-close"] = a.value.showClose, C.draggable = a.value.draggable, a.value.appendToBody && (C["append-to-body"] = a.value.appendToBody), f.value || (C.class = " no-header-dialog"), C;
|
|
638
|
-
}),
|
|
638
|
+
}), b = P(() => {
|
|
639
639
|
let C = {};
|
|
640
640
|
if (a.value.customPosition) {
|
|
641
|
-
let
|
|
641
|
+
let W = a.value.absLeft ?? 100, k = a.value.absTop ?? 100;
|
|
642
642
|
Object.assign(C, {
|
|
643
643
|
position: "fixed",
|
|
644
|
-
left: `${
|
|
645
|
-
top: `${
|
|
644
|
+
left: `${W}px`,
|
|
645
|
+
top: `${k}px`,
|
|
646
646
|
transform: "none",
|
|
647
|
-
margin: "0"
|
|
647
|
+
margin: "0 !important"
|
|
648
648
|
});
|
|
649
649
|
}
|
|
650
650
|
return a.value.noBackgroundColor && Object.assign(C, {
|
|
651
651
|
backgroundColor: "transparent"
|
|
652
652
|
}), C;
|
|
653
|
-
}),
|
|
654
|
-
|
|
655
|
-
},
|
|
656
|
-
|
|
657
|
-
},
|
|
653
|
+
}), w = () => {
|
|
654
|
+
d("confirm");
|
|
655
|
+
}, M = () => {
|
|
656
|
+
d("cancel"), F();
|
|
657
|
+
}, F = () => {
|
|
658
658
|
h.value = !1;
|
|
659
|
-
},
|
|
660
|
-
|
|
659
|
+
}, Y = (C) => {
|
|
660
|
+
d("cancel");
|
|
661
661
|
};
|
|
662
|
-
|
|
663
|
-
|
|
662
|
+
le("VE-CompMethod", function() {
|
|
663
|
+
$("warning", "对话框模式,不提供compMethod函数实现");
|
|
664
|
+
}), le("VE-CompHideAndShow", function() {
|
|
665
|
+
$("warning", "对话框模式,不提供compHideAndShow函数实现");
|
|
666
|
+
}), o({
|
|
667
|
+
close: F
|
|
664
668
|
});
|
|
665
|
-
const
|
|
669
|
+
const N = { props: t, emit: d, config: a, title: c, showTitle: f, isFullscreen: i, previousWidth: g, openDialog: h, dialogWidth: y, element: v, bindAttr: O, customStyle: b, confirmInner: w, cancel: M, close: F, handleClose: Y, ref: E, computed: P, provide: le, get consolePrint() {
|
|
670
|
+
return $;
|
|
671
|
+
}, get isNotEmpty() {
|
|
666
672
|
return _;
|
|
667
673
|
} };
|
|
668
|
-
return Object.defineProperty(
|
|
674
|
+
return Object.defineProperty(N, "__isScriptSetup", { enumerable: !1, value: !0 }), N;
|
|
669
675
|
}
|
|
670
676
|
});
|
|
671
|
-
function xn(
|
|
672
|
-
const c =
|
|
673
|
-
return
|
|
674
|
-
|
|
675
|
-
modelValue:
|
|
676
|
-
"onUpdate:modelValue": o[0] || (o[0] = (g) =>
|
|
677
|
-
width:
|
|
678
|
-
fullscreen:
|
|
679
|
-
},
|
|
680
|
-
style:
|
|
681
|
-
onClose:
|
|
682
|
-
}),
|
|
683
|
-
header:
|
|
684
|
-
|
|
677
|
+
function xn(n, o, l, t, d, a) {
|
|
678
|
+
const c = A("Subpage"), f = A("el-button"), i = A("el-dialog");
|
|
679
|
+
return T(), H("div", { class: "full-screen-dialog-wrapper" }, [
|
|
680
|
+
I(i, Ht({
|
|
681
|
+
modelValue: t.openDialog,
|
|
682
|
+
"onUpdate:modelValue": o[0] || (o[0] = (g) => t.openDialog = g),
|
|
683
|
+
width: t.dialogWidth,
|
|
684
|
+
fullscreen: t.isFullscreen
|
|
685
|
+
}, t.bindAttr, {
|
|
686
|
+
style: t.customStyle,
|
|
687
|
+
onClose: t.handleClose
|
|
688
|
+
}), Lt({
|
|
689
|
+
header: D(() => [
|
|
690
|
+
t.showTitle ? (T(), H("span", { key: 0 }, qt(t.title), 1)) : je("", !0)
|
|
685
691
|
]),
|
|
686
|
-
default:
|
|
687
|
-
|
|
692
|
+
default: D(() => [
|
|
693
|
+
t.isNotEmpty(t.config.pageId) ? (T(), K(c, {
|
|
688
694
|
key: 0,
|
|
689
|
-
"prop-value":
|
|
690
|
-
element:
|
|
691
|
-
}, null, 8, ["prop-value", "element"])) :
|
|
695
|
+
"prop-value": t.element.prop,
|
|
696
|
+
element: t.element
|
|
697
|
+
}, null, 8, ["prop-value", "element"])) : je("", !0)
|
|
692
698
|
]),
|
|
693
699
|
_: 2
|
|
694
700
|
}, [
|
|
695
|
-
|
|
701
|
+
t.config.showFooter ? {
|
|
696
702
|
name: "footer",
|
|
697
|
-
fn:
|
|
698
|
-
|
|
699
|
-
|
|
703
|
+
fn: D(() => [
|
|
704
|
+
ee("div", { class: "dialog-footer" }, [
|
|
705
|
+
I(f, {
|
|
700
706
|
type: "primary",
|
|
701
|
-
onClick:
|
|
707
|
+
onClick: t.confirmInner
|
|
702
708
|
}, {
|
|
703
|
-
default:
|
|
704
|
-
|
|
709
|
+
default: D(() => [
|
|
710
|
+
R("确定")
|
|
705
711
|
]),
|
|
706
712
|
_: 1
|
|
707
713
|
}),
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
default:
|
|
711
|
-
|
|
714
|
+
R(),
|
|
715
|
+
I(f, { onClick: t.cancel }, {
|
|
716
|
+
default: D(() => [
|
|
717
|
+
R("关 闭")
|
|
712
718
|
]),
|
|
713
719
|
_: 1
|
|
714
720
|
})
|
|
@@ -719,28 +725,28 @@ function xn(t, o, s, n, p, a) {
|
|
|
719
725
|
]), 1040, ["modelValue", "width", "fullscreen", "style"])
|
|
720
726
|
]);
|
|
721
727
|
}
|
|
722
|
-
const
|
|
728
|
+
const Cn = /* @__PURE__ */ J(bn, [["render", xn], ["__scopeId", "data-v-f70ef416"], ["__file", "FullscreenDialog.vue"]]), Pn = /* @__PURE__ */ Object.assign({
|
|
723
729
|
name: "DialogContainer"
|
|
724
730
|
}, {
|
|
725
731
|
__name: "DialogContainer",
|
|
726
|
-
setup(
|
|
732
|
+
setup(n, { expose: o }) {
|
|
727
733
|
o();
|
|
728
|
-
const { dialogs:
|
|
729
|
-
|
|
734
|
+
const { dialogs: l, closeDialog: t } = Oe(), d = P(() => Object.values(l)), c = { dialogs: l, closeDialog: t, dialogList: d, cancelHandler: (f) => {
|
|
735
|
+
t(f);
|
|
730
736
|
}, get useDialogManager() {
|
|
731
|
-
return
|
|
732
|
-
}, computed:
|
|
737
|
+
return Oe;
|
|
738
|
+
}, computed: P, FullScreenDialog: Cn };
|
|
733
739
|
return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
|
|
734
740
|
}
|
|
735
741
|
});
|
|
736
|
-
function
|
|
737
|
-
return
|
|
742
|
+
function Vn(n, o, l, t, d, a) {
|
|
743
|
+
return T(!0), H(Ee, null, Te(t.dialogList, (c) => (T(), K(t.FullScreenDialog, {
|
|
738
744
|
key: c.id,
|
|
739
745
|
config: c.config,
|
|
740
|
-
onCancel: (f) =>
|
|
746
|
+
onCancel: (f) => t.cancelHandler(c.id)
|
|
741
747
|
}, null, 8, ["config", "onCancel"]))), 128);
|
|
742
748
|
}
|
|
743
|
-
const
|
|
749
|
+
const On = /* @__PURE__ */ J(Pn, [["render", Vn], ["__file", "DialogContainer.vue"]]), Mn = /* @__PURE__ */ Object.assign({
|
|
744
750
|
name: "CommonDialog"
|
|
745
751
|
}, {
|
|
746
752
|
__name: "index",
|
|
@@ -759,62 +765,62 @@ const Pn = /* @__PURE__ */ z(bn, [["render", Cn], ["__file", "DialogContainer.vu
|
|
|
759
765
|
}
|
|
760
766
|
},
|
|
761
767
|
emits: ["confirm"],
|
|
762
|
-
setup(
|
|
763
|
-
const
|
|
768
|
+
setup(n, { expose: o, emit: l }) {
|
|
769
|
+
const t = E("弹框"), d = E(!1), a = n, c = l;
|
|
764
770
|
let f = null;
|
|
765
|
-
const i =
|
|
771
|
+
const i = P(() => t.value && _(t.value) ? t.value : a.title), g = () => {
|
|
766
772
|
c("confirm", { callBack: f });
|
|
767
773
|
}, h = () => {
|
|
768
|
-
|
|
769
|
-
}, y = (
|
|
770
|
-
|
|
774
|
+
d.value = !1;
|
|
775
|
+
}, y = (O = {}) => {
|
|
776
|
+
d.value = !0, f = O.callBack, t.value = O.title || "";
|
|
771
777
|
};
|
|
772
778
|
o({
|
|
773
779
|
show: y,
|
|
774
780
|
cancel: h
|
|
775
781
|
});
|
|
776
|
-
const v = { showTitle:
|
|
782
|
+
const v = { showTitle: t, openDialog: d, props: a, emit: c, get callBack() {
|
|
777
783
|
return f;
|
|
778
|
-
}, set callBack(
|
|
779
|
-
f =
|
|
780
|
-
}, title: i, confirmInner: g, cancel: h, show: y, ref:
|
|
784
|
+
}, set callBack(O) {
|
|
785
|
+
f = O;
|
|
786
|
+
}, title: i, confirmInner: g, cancel: h, show: y, ref: E, computed: P, get isNotEmpty() {
|
|
781
787
|
return _;
|
|
782
788
|
} };
|
|
783
789
|
return Object.defineProperty(v, "__isScriptSetup", { enumerable: !1, value: !0 }), v;
|
|
784
790
|
}
|
|
785
791
|
});
|
|
786
|
-
function
|
|
787
|
-
const c =
|
|
788
|
-
return
|
|
789
|
-
title:
|
|
790
|
-
modelValue:
|
|
791
|
-
"onUpdate:modelValue": o[0] || (o[0] = (i) =>
|
|
792
|
-
width:
|
|
793
|
-
"before-close":
|
|
792
|
+
function kn(n, o, l, t, d, a) {
|
|
793
|
+
const c = A("el-button"), f = A("el-dialog");
|
|
794
|
+
return T(), K(f, {
|
|
795
|
+
title: t.title,
|
|
796
|
+
modelValue: t.openDialog,
|
|
797
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => t.openDialog = i),
|
|
798
|
+
width: t.props.width,
|
|
799
|
+
"before-close": t.cancel,
|
|
794
800
|
"destroy-on-close": !0,
|
|
795
|
-
modal:
|
|
801
|
+
modal: t.props.modal,
|
|
796
802
|
"show-close": !1,
|
|
797
803
|
"align-center": !0,
|
|
798
804
|
draggable: ""
|
|
799
805
|
}, {
|
|
800
|
-
default:
|
|
801
|
-
|
|
806
|
+
default: D(() => [
|
|
807
|
+
Kt(n.$slots, "dialog-content")
|
|
802
808
|
]),
|
|
803
|
-
footer:
|
|
804
|
-
|
|
805
|
-
|
|
809
|
+
footer: D(() => [
|
|
810
|
+
ee("div", { class: "dialog-footer" }, [
|
|
811
|
+
I(c, {
|
|
806
812
|
type: "primary",
|
|
807
|
-
onClick:
|
|
813
|
+
onClick: t.confirmInner
|
|
808
814
|
}, {
|
|
809
|
-
default:
|
|
810
|
-
|
|
815
|
+
default: D(() => [
|
|
816
|
+
R("确定")
|
|
811
817
|
]),
|
|
812
818
|
_: 1
|
|
813
819
|
}),
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
default:
|
|
817
|
-
|
|
820
|
+
R(),
|
|
821
|
+
I(c, { onClick: t.cancel }, {
|
|
822
|
+
default: D(() => [
|
|
823
|
+
R("关 闭")
|
|
818
824
|
]),
|
|
819
825
|
_: 1
|
|
820
826
|
})
|
|
@@ -823,7 +829,7 @@ function Vn(t, o, s, n, p, a) {
|
|
|
823
829
|
_: 3
|
|
824
830
|
}, 8, ["title", "modelValue", "width", "modal"]);
|
|
825
831
|
}
|
|
826
|
-
const
|
|
832
|
+
const In = /* @__PURE__ */ J(Mn, [["render", kn], ["__file", "index.vue"]]), En = /* @__PURE__ */ Object.assign({
|
|
827
833
|
name: "OmitInput"
|
|
828
834
|
}, {
|
|
829
835
|
__name: "index",
|
|
@@ -842,59 +848,59 @@ const Mn = /* @__PURE__ */ z(On, [["render", Vn], ["__file", "index.vue"]]), In
|
|
|
842
848
|
}
|
|
843
849
|
},
|
|
844
850
|
emits: ["update:modelValue"],
|
|
845
|
-
setup(
|
|
851
|
+
setup(n, { expose: o, emit: l }) {
|
|
846
852
|
o();
|
|
847
|
-
const
|
|
848
|
-
get: () =>
|
|
849
|
-
set: (y) =>
|
|
850
|
-
}), h = { props:
|
|
851
|
-
c.value =
|
|
853
|
+
const t = n, d = l, a = E(null), c = E(""), f = P({
|
|
854
|
+
get: () => t.modelValue,
|
|
855
|
+
set: (y) => d("update:modelValue", y)
|
|
856
|
+
}), h = { props: t, emits: d, inputDialogRef: a, inputTextArea: c, internalValue: f, openInputDialog: () => {
|
|
857
|
+
c.value = ie(f.value), a.value?.show();
|
|
852
858
|
}, confirmEdit: (y) => {
|
|
853
|
-
f.value =
|
|
854
|
-
}, ref:
|
|
855
|
-
return
|
|
859
|
+
f.value = ie(c.value), a.value?.cancel();
|
|
860
|
+
}, ref: E, computed: P, get deepCopy() {
|
|
861
|
+
return ie;
|
|
856
862
|
} };
|
|
857
863
|
return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
|
|
858
864
|
}
|
|
859
865
|
});
|
|
860
|
-
function
|
|
861
|
-
const c =
|
|
862
|
-
return
|
|
863
|
-
class:
|
|
866
|
+
function Tn(n, o, l, t, d, a) {
|
|
867
|
+
const c = A("el-text"), f = A("el-input"), i = A("CommonDialog");
|
|
868
|
+
return T(), H("div", {
|
|
869
|
+
class: Qe(["custom-omit-input-wrapper", n.$attrs.class])
|
|
864
870
|
}, [
|
|
865
|
-
|
|
866
|
-
modelValue:
|
|
867
|
-
"onUpdate:modelValue": o[0] || (o[0] = (g) =>
|
|
868
|
-
placeholder:
|
|
871
|
+
I(f, {
|
|
872
|
+
modelValue: t.internalValue,
|
|
873
|
+
"onUpdate:modelValue": o[0] || (o[0] = (g) => t.internalValue = g),
|
|
874
|
+
placeholder: t.props.placeholder,
|
|
869
875
|
clearable: "",
|
|
870
876
|
type: "text",
|
|
871
877
|
class: "custom-omit-input"
|
|
872
878
|
}, {
|
|
873
|
-
append:
|
|
874
|
-
|
|
879
|
+
append: D(() => [
|
|
880
|
+
I(c, {
|
|
875
881
|
style: { width: "32px", "text-align": "center" },
|
|
876
|
-
onClick:
|
|
882
|
+
onClick: t.openInputDialog
|
|
877
883
|
}, {
|
|
878
|
-
default:
|
|
879
|
-
|
|
884
|
+
default: D(() => [
|
|
885
|
+
R("...")
|
|
880
886
|
]),
|
|
881
887
|
_: 1
|
|
882
888
|
})
|
|
883
889
|
]),
|
|
884
890
|
_: 1
|
|
885
891
|
}, 8, ["modelValue", "placeholder"]),
|
|
886
|
-
|
|
887
|
-
|
|
892
|
+
R(),
|
|
893
|
+
I(i, {
|
|
888
894
|
ref: "inputDialogRef",
|
|
889
|
-
title:
|
|
895
|
+
title: t.props.dialogTitle,
|
|
890
896
|
width: 700,
|
|
891
|
-
onConfirm:
|
|
897
|
+
onConfirm: t.confirmEdit
|
|
892
898
|
}, {
|
|
893
|
-
"dialog-content":
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
modelValue:
|
|
897
|
-
"onUpdate:modelValue": o[1] || (o[1] = (g) =>
|
|
899
|
+
"dialog-content": D(() => [
|
|
900
|
+
ee("div", { style: { width: "100%", height: "500px", "overflow-y": "auto", "overflow-x": "hidden" } }, [
|
|
901
|
+
I(f, {
|
|
902
|
+
modelValue: t.inputTextArea,
|
|
903
|
+
"onUpdate:modelValue": o[1] || (o[1] = (g) => t.inputTextArea = g),
|
|
898
904
|
type: "textarea",
|
|
899
905
|
rows: 22
|
|
900
906
|
}, null, 8, ["modelValue"])
|
|
@@ -904,7 +910,7 @@ function kn(t, o, s, n, p, a) {
|
|
|
904
910
|
}, 8, ["title"])
|
|
905
911
|
], 2);
|
|
906
912
|
}
|
|
907
|
-
const
|
|
913
|
+
const Dn = /* @__PURE__ */ J(En, [["render", Tn], ["__scopeId", "data-v-956a5a3a"], ["__file", "index.vue"]]), fe = Gt(
|
|
908
914
|
"ve/dataCache",
|
|
909
915
|
{
|
|
910
916
|
state: () => ({
|
|
@@ -921,533 +927,533 @@ const En = /* @__PURE__ */ z(In, [["render", kn], ["__scopeId", "data-v-956a5a3a
|
|
|
921
927
|
// 暂时只考虑扁平结构
|
|
922
928
|
}),
|
|
923
929
|
actions: {
|
|
924
|
-
setData(
|
|
925
|
-
this.data[
|
|
930
|
+
setData(n, o) {
|
|
931
|
+
this.data[n] = o;
|
|
926
932
|
},
|
|
927
|
-
setPageSource(
|
|
928
|
-
this.pageSource =
|
|
933
|
+
setPageSource(n = "DB") {
|
|
934
|
+
this.pageSource = n;
|
|
929
935
|
},
|
|
930
|
-
setContainerSymbol(
|
|
931
|
-
this.containerSymbol =
|
|
936
|
+
setContainerSymbol(n) {
|
|
937
|
+
this.containerSymbol = n;
|
|
932
938
|
},
|
|
933
|
-
setTdtApiKey(
|
|
934
|
-
this.tdtApiKey =
|
|
939
|
+
setTdtApiKey(n = "") {
|
|
940
|
+
this.tdtApiKey = n;
|
|
935
941
|
},
|
|
936
|
-
setRuleData(
|
|
937
|
-
|
|
942
|
+
setRuleData(n, o, l = !1) {
|
|
943
|
+
l ? this.rules[n] = o : this.rules[n] || (this.rules[n] = o);
|
|
938
944
|
}
|
|
939
945
|
}
|
|
940
946
|
}
|
|
941
|
-
),
|
|
947
|
+
), Ue = (n) => {
|
|
942
948
|
const o = /* @__PURE__ */ new Map();
|
|
943
949
|
return new Proxy({}, {
|
|
944
|
-
get(
|
|
945
|
-
return o.has(
|
|
950
|
+
get(l, t = "undefinedKey") {
|
|
951
|
+
return o.has(t) || o.set(t, P(() => n.data[t] || {})), o.get(t);
|
|
946
952
|
},
|
|
947
|
-
set(
|
|
948
|
-
return
|
|
953
|
+
set(l, t, d) {
|
|
954
|
+
return n.setData(t, d), !0;
|
|
949
955
|
}
|
|
950
956
|
});
|
|
951
957
|
};
|
|
952
|
-
function
|
|
953
|
-
const
|
|
954
|
-
if (!
|
|
958
|
+
function Rn() {
|
|
959
|
+
const n = ge("hflvloader-api");
|
|
960
|
+
if (!n)
|
|
955
961
|
throw new Error("组件注册时未提供API,请检查!");
|
|
956
|
-
return
|
|
962
|
+
return n;
|
|
957
963
|
}
|
|
958
|
-
function
|
|
959
|
-
let
|
|
960
|
-
...
|
|
964
|
+
function de(n, o, l = {}) {
|
|
965
|
+
let t = {
|
|
966
|
+
...l,
|
|
961
967
|
message: o || "message",
|
|
962
|
-
type:
|
|
968
|
+
type: n || "info"
|
|
963
969
|
};
|
|
964
|
-
|
|
970
|
+
Qt(t);
|
|
965
971
|
}
|
|
966
|
-
function
|
|
967
|
-
let
|
|
968
|
-
...
|
|
972
|
+
function Me(n, o, l = {}) {
|
|
973
|
+
let t = {
|
|
974
|
+
...l,
|
|
969
975
|
message: o || "message",
|
|
970
|
-
type:
|
|
976
|
+
type: n || "info"
|
|
971
977
|
};
|
|
972
|
-
|
|
978
|
+
Yt(t);
|
|
973
979
|
}
|
|
974
|
-
function
|
|
975
|
-
const o =
|
|
976
|
-
let
|
|
980
|
+
function at(n = {}) {
|
|
981
|
+
const o = Xt.service(n);
|
|
982
|
+
let l = n.timeout || 3e4;
|
|
977
983
|
return setTimeout(() => {
|
|
978
984
|
o && o.close();
|
|
979
|
-
},
|
|
985
|
+
}, l), o;
|
|
980
986
|
}
|
|
981
|
-
async function
|
|
982
|
-
let
|
|
987
|
+
async function ct(n, o, l = {}) {
|
|
988
|
+
let t = [], d = {};
|
|
983
989
|
try {
|
|
984
|
-
(await Promise.allSettled([
|
|
990
|
+
(await Promise.allSettled([Ye.confirm(o, n, l)])).forEach((c, f) => {
|
|
985
991
|
if (c.status === "fulfilled")
|
|
986
|
-
f === 0 && (
|
|
992
|
+
f === 0 && (d = c.value);
|
|
987
993
|
else {
|
|
988
994
|
const i = c.reason;
|
|
989
|
-
|
|
995
|
+
t.push(i);
|
|
990
996
|
}
|
|
991
997
|
});
|
|
992
998
|
} catch (a) {
|
|
993
|
-
console.error("showMessageBoxConfirmAsync 异常:", a),
|
|
999
|
+
console.error("showMessageBoxConfirmAsync 异常:", a), t.push(a);
|
|
994
1000
|
}
|
|
995
|
-
return { errors:
|
|
1001
|
+
return { errors: t, resultInfo: d };
|
|
996
1002
|
}
|
|
997
|
-
async function
|
|
998
|
-
let
|
|
1003
|
+
async function ut(n, o, l = {}) {
|
|
1004
|
+
let t = [], d = {};
|
|
999
1005
|
try {
|
|
1000
|
-
(await Promise.allSettled([
|
|
1006
|
+
(await Promise.allSettled([Ye.prompt(o, n, l)])).forEach((c, f) => {
|
|
1001
1007
|
if (c.status === "fulfilled")
|
|
1002
|
-
f === 0 && (
|
|
1008
|
+
f === 0 && (d = c.value);
|
|
1003
1009
|
else {
|
|
1004
1010
|
const i = c.reason;
|
|
1005
|
-
|
|
1011
|
+
t.push(i);
|
|
1006
1012
|
}
|
|
1007
1013
|
});
|
|
1008
1014
|
} catch (a) {
|
|
1009
|
-
console.error("showMessageBoxPromptAsync 异常:", a),
|
|
1015
|
+
console.error("showMessageBoxPromptAsync 异常:", a), t.push(a);
|
|
1010
1016
|
}
|
|
1011
|
-
return { errors:
|
|
1017
|
+
return { errors: t, resultInfo: d };
|
|
1012
1018
|
}
|
|
1013
|
-
const
|
|
1019
|
+
const Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1014
1020
|
__proto__: null,
|
|
1015
|
-
showLoading:
|
|
1016
|
-
showMessage:
|
|
1017
|
-
showMessageBoxConfirmAsync:
|
|
1018
|
-
showMessageBoxPromptAsync:
|
|
1019
|
-
showNotification:
|
|
1020
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1021
|
-
"==": (
|
|
1022
|
-
"!=": (
|
|
1023
|
-
">": (
|
|
1024
|
-
">=": (
|
|
1025
|
-
"<": (
|
|
1026
|
-
"<=": (
|
|
1027
|
-
contain: (
|
|
1028
|
-
unContain: (
|
|
1029
|
-
equals: (
|
|
1030
|
-
notEquals: (
|
|
1031
|
-
equalsIgnoreCase: (
|
|
1032
|
-
},
|
|
1033
|
-
function
|
|
1034
|
-
const
|
|
1035
|
-
let
|
|
1036
|
-
const
|
|
1021
|
+
showLoading: at,
|
|
1022
|
+
showMessage: de,
|
|
1023
|
+
showMessageBoxConfirmAsync: ct,
|
|
1024
|
+
showMessageBoxPromptAsync: ut,
|
|
1025
|
+
showNotification: Me
|
|
1026
|
+
}, Symbol.toStringTag, { value: "Module" })), oe = {
|
|
1027
|
+
"==": (n, o) => n == o,
|
|
1028
|
+
"!=": (n, o) => n != o,
|
|
1029
|
+
">": (n, o) => +n > +o,
|
|
1030
|
+
">=": (n, o) => +n >= +o,
|
|
1031
|
+
"<": (n, o) => +n < +o,
|
|
1032
|
+
"<=": (n, o) => +n <= +o,
|
|
1033
|
+
contain: (n, o) => n != null && String(n).includes(String(o)),
|
|
1034
|
+
unContain: (n, o) => n == null || !String(n).includes(String(o)),
|
|
1035
|
+
equals: (n, o) => n != null && String(n) == String(o),
|
|
1036
|
+
notEquals: (n, o) => n == null || !String(n) == String(o),
|
|
1037
|
+
equalsIgnoreCase: (n, o) => n != null && String(n).toLowerCase() == String(o).toLowerCase()
|
|
1038
|
+
}, re = (n) => typeof n == "string" && n.trim() !== "" && !isNaN(n) ? +n : n;
|
|
1039
|
+
function Je(n = {}, o = !0, l = {}) {
|
|
1040
|
+
const t = n, d = o, a = l, c = /* @__PURE__ */ new Map(), f = Rn(), i = fe(), g = ge("VE-ContainerParam"), h = ge("VE-CompMethod"), y = [], { openDialog: v, closeDialog: O } = Oe();
|
|
1041
|
+
let b = null;
|
|
1042
|
+
const w = 250, M = ge("VE-CompHideAndShow"), F = [], Y = (e) => {
|
|
1037
1043
|
if (g) {
|
|
1038
|
-
if (
|
|
1044
|
+
if (Ze(g))
|
|
1039
1045
|
return g.value[e];
|
|
1040
|
-
if (
|
|
1046
|
+
if (ue(g))
|
|
1041
1047
|
return g[e];
|
|
1042
1048
|
}
|
|
1043
|
-
},
|
|
1049
|
+
}, N = (e) => {
|
|
1044
1050
|
if (e && e.path) {
|
|
1045
|
-
let
|
|
1046
|
-
|
|
1047
|
-
if (
|
|
1048
|
-
let m =
|
|
1051
|
+
let s = e.params || [], r = {};
|
|
1052
|
+
s.forEach((u, p) => {
|
|
1053
|
+
if (te(u)) {
|
|
1054
|
+
let m = z(u);
|
|
1049
1055
|
r[u.tarKey] = m;
|
|
1050
1056
|
}
|
|
1051
|
-
}), e.namedRouter ?
|
|
1057
|
+
}), e.namedRouter ? q(a.routerPush) && a.routerPush(e.path, r) : q(a.routerPush2) && a.routerPush2(e.path, r);
|
|
1052
1058
|
}
|
|
1053
1059
|
}, C = (e = []) => {
|
|
1054
|
-
let
|
|
1060
|
+
let s = [];
|
|
1055
1061
|
return e.forEach((r) => {
|
|
1056
|
-
if (
|
|
1057
|
-
let u =
|
|
1058
|
-
|
|
1062
|
+
if (te(r)) {
|
|
1063
|
+
let u = z(r);
|
|
1064
|
+
s.push([
|
|
1059
1065
|
r.tarKey,
|
|
1060
1066
|
u
|
|
1061
1067
|
]);
|
|
1062
1068
|
}
|
|
1063
|
-
}),
|
|
1064
|
-
},
|
|
1069
|
+
}), s;
|
|
1070
|
+
}, W = (e, s) => {
|
|
1065
1071
|
if (e.customFunc && _(e.successFunc)) {
|
|
1066
1072
|
const r = {
|
|
1067
|
-
helper: { ...a, ...
|
|
1073
|
+
helper: { ...a, ...V }
|
|
1068
1074
|
};
|
|
1069
1075
|
try {
|
|
1070
1076
|
let u = e.successFunc.toString().trim();
|
|
1071
|
-
u.indexOf("function") < 0 && (u = `function(res) { ${u} }`), new Function("context", `with(context) {return ${u}}`)(r)(
|
|
1077
|
+
u.indexOf("function") < 0 && (u = `function(res) { ${u} }`), new Function("context", `with(context) {return ${u}}`)(r)(s);
|
|
1072
1078
|
} catch (u) {
|
|
1073
1079
|
console.error("[_dataRequestHandler4CustomSuccessFunc]处理自定义成功函数时出错:", u);
|
|
1074
1080
|
}
|
|
1075
1081
|
}
|
|
1076
|
-
},
|
|
1082
|
+
}, k = (e, s, r) => {
|
|
1077
1083
|
if (e.customFunc && _(e.errorFunc)) {
|
|
1078
1084
|
const u = {
|
|
1079
|
-
helper: { ...a, ...
|
|
1085
|
+
helper: { ...a, ...V }
|
|
1080
1086
|
};
|
|
1081
1087
|
try {
|
|
1082
|
-
let
|
|
1083
|
-
|
|
1084
|
-
} catch (
|
|
1085
|
-
console.error("[_dataRequestHandler4CustomErrorFunc]处理自定义失败函数时出错:",
|
|
1088
|
+
let p = e.errorFunc.toString().trim();
|
|
1089
|
+
p.indexOf("function") < 0 && (p = "function (res,err){" + p + "}"), new Function("context", `with(context) {return ${p}}`)(u)(s, r);
|
|
1090
|
+
} catch (p) {
|
|
1091
|
+
console.error("[_dataRequestHandler4CustomErrorFunc]处理自定义失败函数时出错:", p);
|
|
1086
1092
|
}
|
|
1087
1093
|
}
|
|
1088
|
-
}, x = (e,
|
|
1089
|
-
if (
|
|
1090
|
-
let r, u,
|
|
1091
|
-
for (let m = 0; m <
|
|
1092
|
-
r =
|
|
1094
|
+
}, x = (e, s) => {
|
|
1095
|
+
if (B(s) && s.length > 0) {
|
|
1096
|
+
let r, u, p;
|
|
1097
|
+
for (let m = 0; m < s.length; m++)
|
|
1098
|
+
r = s[m], p = r.dataKey || "data", _(p) && Ve(e, p) && (u = Pe(e, p), _(r.ds) && _(r.tarKey) && yt(r, u));
|
|
1093
1099
|
}
|
|
1094
|
-
},
|
|
1095
|
-
let
|
|
1100
|
+
}, G = async (e) => {
|
|
1101
|
+
let s = [], r = {};
|
|
1096
1102
|
try {
|
|
1097
|
-
(await Promise.allSettled([f.rawRequest(e)])).forEach((
|
|
1098
|
-
if (
|
|
1099
|
-
m === 0 && (r =
|
|
1103
|
+
(await Promise.allSettled([f.rawRequest(e)])).forEach((p, m) => {
|
|
1104
|
+
if (p.status === "fulfilled")
|
|
1105
|
+
m === 0 && (r = p.value);
|
|
1100
1106
|
else {
|
|
1101
|
-
const S =
|
|
1102
|
-
|
|
1107
|
+
const S = p.reason;
|
|
1108
|
+
s.push(S);
|
|
1103
1109
|
}
|
|
1104
1110
|
});
|
|
1105
1111
|
} catch (u) {
|
|
1106
|
-
console.error("_dataRequestHandler4Async 异常:", u),
|
|
1112
|
+
console.error("_dataRequestHandler4Async 异常:", u), s.push(u);
|
|
1107
1113
|
}
|
|
1108
|
-
return { errors:
|
|
1109
|
-
},
|
|
1114
|
+
return { errors: s, resultInfo: r };
|
|
1115
|
+
}, Q = (e) => {
|
|
1110
1116
|
if (e.method == "GET" || e.method == "get") {
|
|
1111
|
-
let
|
|
1112
|
-
if (/\{#.*?#\}/g.test(
|
|
1113
|
-
let u = e.data || [],
|
|
1114
|
-
if (
|
|
1117
|
+
let s = e.url;
|
|
1118
|
+
if (/\{#.*?#\}/g.test(s)) {
|
|
1119
|
+
let u = e.data || [], p = /* @__PURE__ */ new Set(), m = !1, S = null;
|
|
1120
|
+
if (s = s.replace(/\{#(.*?)#\}/g, (j, Z) => {
|
|
1115
1121
|
m = !1, S = null;
|
|
1116
|
-
for (let
|
|
1117
|
-
if (
|
|
1118
|
-
m = !0, S = u[
|
|
1122
|
+
for (let se = 0; se < u.length; se++)
|
|
1123
|
+
if (Z == u[se][0]) {
|
|
1124
|
+
m = !0, S = u[se][1];
|
|
1119
1125
|
break;
|
|
1120
1126
|
}
|
|
1121
|
-
return m ? (
|
|
1122
|
-
}),
|
|
1123
|
-
let
|
|
1124
|
-
e.url =
|
|
1127
|
+
return m ? (p.add(Z), S) : j;
|
|
1128
|
+
}), p.size > 0) {
|
|
1129
|
+
let j = u.filter((Z, se) => !p.has(Z[0]));
|
|
1130
|
+
e.url = s, e.data = j || [];
|
|
1125
1131
|
}
|
|
1126
1132
|
}
|
|
1127
1133
|
}
|
|
1128
|
-
},
|
|
1134
|
+
}, ft = async (e) => {
|
|
1129
1135
|
if (e && _(e.url)) {
|
|
1130
|
-
let
|
|
1131
|
-
r.url = e.url, r.externalRequest = e.external || !1, r.method = e.method || "GET", r.paramType = "object", r.data = C(e.params), r.headers = e.headers, e.series && (r.series = e.series, r.requestCount = e.requestCount || 0, r.time = e.time || 1e3),
|
|
1136
|
+
let s = e.respParams || [], r = {};
|
|
1137
|
+
r.url = e.url, r.externalRequest = e.external || !1, r.method = e.method || "GET", r.paramType = "object", r.data = C(e.params), r.headers = e.headers, e.series && (r.series = e.series, r.requestCount = e.requestCount || 0, r.time = e.time || 1e3), Q(r);
|
|
1132
1138
|
let u = null;
|
|
1133
1139
|
if (e.loading) {
|
|
1134
|
-
let
|
|
1135
|
-
...
|
|
1136
|
-
lock:
|
|
1137
|
-
background:
|
|
1138
|
-
text:
|
|
1140
|
+
let p = e.load || {}, m = {
|
|
1141
|
+
...p.extParam,
|
|
1142
|
+
lock: p.lock,
|
|
1143
|
+
background: p.background,
|
|
1144
|
+
text: p.text
|
|
1139
1145
|
};
|
|
1140
|
-
u =
|
|
1146
|
+
u = at(m);
|
|
1141
1147
|
}
|
|
1142
1148
|
if (e.sync) {
|
|
1143
1149
|
r.series = !1;
|
|
1144
|
-
const { errors:
|
|
1145
|
-
if (u && u.close(),
|
|
1150
|
+
const { errors: p, resultInfo: m } = await G(r);
|
|
1151
|
+
if (u && u.close(), p && p.length > 0) {
|
|
1146
1152
|
if (e.enabledRespErrTip) {
|
|
1147
1153
|
let S = e.respErrTip || {};
|
|
1148
|
-
|
|
1154
|
+
X(S);
|
|
1149
1155
|
}
|
|
1150
|
-
|
|
1156
|
+
k(e, m, p[0]);
|
|
1151
1157
|
} else if (m)
|
|
1152
1158
|
if (r.externalRequest)
|
|
1153
1159
|
if (m && m.status == 200) {
|
|
1154
1160
|
if (e.enabledRespTip) {
|
|
1155
1161
|
let S = e.respTip || {};
|
|
1156
|
-
|
|
1162
|
+
X(S);
|
|
1157
1163
|
}
|
|
1158
|
-
x(m,
|
|
1164
|
+
x(m, s), W(e, m);
|
|
1159
1165
|
} else {
|
|
1160
1166
|
if (e.enabledRespErrTip) {
|
|
1161
1167
|
let S = e.respErrTip || {};
|
|
1162
|
-
|
|
1168
|
+
X(S);
|
|
1163
1169
|
}
|
|
1164
|
-
|
|
1170
|
+
k(e, m, null);
|
|
1165
1171
|
}
|
|
1166
1172
|
else {
|
|
1167
1173
|
if (m) {
|
|
1168
1174
|
if (e.enabledRespTip) {
|
|
1169
1175
|
let S = e.respTip || {};
|
|
1170
|
-
|
|
1176
|
+
X(S);
|
|
1171
1177
|
}
|
|
1172
|
-
x(m,
|
|
1178
|
+
x(m, s);
|
|
1173
1179
|
}
|
|
1174
|
-
|
|
1180
|
+
W(e, m);
|
|
1175
1181
|
}
|
|
1176
1182
|
} else {
|
|
1177
|
-
let
|
|
1183
|
+
let p = f.request(r, function(m) {
|
|
1178
1184
|
if (u && u.close(), r.externalRequest)
|
|
1179
1185
|
if (m && m.status == 200) {
|
|
1180
1186
|
if (e.enabledRespTip) {
|
|
1181
1187
|
let S = e.respTip || {};
|
|
1182
|
-
|
|
1188
|
+
X(S);
|
|
1183
1189
|
}
|
|
1184
|
-
x(m,
|
|
1190
|
+
x(m, s), W(e, m);
|
|
1185
1191
|
} else {
|
|
1186
1192
|
if (e.enabledRespErrTip) {
|
|
1187
1193
|
let S = e.respErrTip || {};
|
|
1188
|
-
|
|
1194
|
+
X(S);
|
|
1189
1195
|
}
|
|
1190
|
-
|
|
1196
|
+
k(e, m, null);
|
|
1191
1197
|
}
|
|
1192
1198
|
else {
|
|
1193
1199
|
if (m) {
|
|
1194
1200
|
if (e.enabledRespTip) {
|
|
1195
1201
|
let S = e.respTip || {};
|
|
1196
|
-
|
|
1202
|
+
X(S);
|
|
1197
1203
|
}
|
|
1198
|
-
x(m,
|
|
1204
|
+
x(m, s);
|
|
1199
1205
|
}
|
|
1200
|
-
|
|
1206
|
+
W(e, m);
|
|
1201
1207
|
}
|
|
1202
1208
|
}, function(m) {
|
|
1203
1209
|
if (u && u.close(), e.enabledRespErrTip) {
|
|
1204
1210
|
let S = e.respErrTip || {};
|
|
1205
|
-
|
|
1211
|
+
X(S);
|
|
1206
1212
|
}
|
|
1207
|
-
|
|
1213
|
+
k(e, null, m);
|
|
1208
1214
|
});
|
|
1209
|
-
|
|
1215
|
+
p && y.push(p);
|
|
1210
1216
|
}
|
|
1211
1217
|
}
|
|
1212
|
-
},
|
|
1213
|
-
e.tipType == "msg" ?
|
|
1214
|
-
},
|
|
1215
|
-
if (e &&
|
|
1216
|
-
let
|
|
1217
|
-
for (let u = 0; u <
|
|
1218
|
-
if (r =
|
|
1219
|
-
let
|
|
1220
|
-
|
|
1218
|
+
}, X = (e = {}) => {
|
|
1219
|
+
e.tipType == "msg" ? de(e.type, e.msg, e.extParam) : e.tipType == "notify" && Me(e.type, e.msg, e.extParam);
|
|
1220
|
+
}, dt = (e) => {
|
|
1221
|
+
if (e && B(e.params)) {
|
|
1222
|
+
let s = e.params || [], r = null;
|
|
1223
|
+
for (let u = 0; u < s.length; u++)
|
|
1224
|
+
if (r = s[u], te(r)) {
|
|
1225
|
+
let p = z(r);
|
|
1226
|
+
V.setDataCache(r.tarKey, p);
|
|
1221
1227
|
}
|
|
1222
1228
|
}
|
|
1223
|
-
},
|
|
1224
|
-
if (e &&
|
|
1225
|
-
let
|
|
1226
|
-
for (let u = 0; u <
|
|
1227
|
-
if (r =
|
|
1228
|
-
let
|
|
1229
|
+
}, pt = (e) => {
|
|
1230
|
+
if (e && B(e.params)) {
|
|
1231
|
+
let s = e.params || [], r = null;
|
|
1232
|
+
for (let u = 0; u < s.length; u++)
|
|
1233
|
+
if (r = s[u], _(r.ipn) && _(r.opn) && c.has(r.ipn)) {
|
|
1234
|
+
let p = c.get(r.ipn), m = oe.equals(p, r.ipv);
|
|
1229
1235
|
if (m)
|
|
1230
1236
|
c.set(r.opn, r.opv);
|
|
1231
1237
|
else {
|
|
1232
|
-
let S =
|
|
1233
|
-
m =
|
|
1238
|
+
let S = re(p), j = re(r.ipv);
|
|
1239
|
+
m = oe["=="](S, j), m && c.set(r.opn, r.opv);
|
|
1234
1240
|
}
|
|
1235
1241
|
}
|
|
1236
1242
|
}
|
|
1237
|
-
},
|
|
1238
|
-
if (e &&
|
|
1239
|
-
let
|
|
1240
|
-
for (let u = 0; u <
|
|
1241
|
-
if (r =
|
|
1242
|
-
let
|
|
1243
|
-
|
|
1243
|
+
}, mt = (e) => {
|
|
1244
|
+
if (e && B(e.params)) {
|
|
1245
|
+
let s = e.params || [], r = null;
|
|
1246
|
+
for (let u = 0; u < s.length; u++)
|
|
1247
|
+
if (r = s[u], te(r)) {
|
|
1248
|
+
let p = z(r);
|
|
1249
|
+
V.setParam(r.tarKey, p);
|
|
1244
1250
|
}
|
|
1245
1251
|
}
|
|
1246
|
-
},
|
|
1252
|
+
}, V = {
|
|
1247
1253
|
hasParam: function(e) {
|
|
1248
1254
|
return c.has(e);
|
|
1249
1255
|
},
|
|
1250
1256
|
getParam: function(e) {
|
|
1251
1257
|
return c.get(e);
|
|
1252
1258
|
},
|
|
1253
|
-
setParam: function(e,
|
|
1254
|
-
c.set(e,
|
|
1259
|
+
setParam: function(e, s) {
|
|
1260
|
+
c.set(e, s);
|
|
1255
1261
|
},
|
|
1256
1262
|
getDataCache: function(e) {
|
|
1257
1263
|
return i.data[e];
|
|
1258
1264
|
},
|
|
1259
|
-
setDataCache: function(e,
|
|
1260
|
-
i.data[e] =
|
|
1265
|
+
setDataCache: function(e, s) {
|
|
1266
|
+
i.data[e] = s;
|
|
1261
1267
|
},
|
|
1262
1268
|
getContainerParam: function(e) {
|
|
1263
|
-
return
|
|
1269
|
+
return Y(e);
|
|
1264
1270
|
},
|
|
1265
|
-
setSessionParam: function(e,
|
|
1266
|
-
sessionStorage.setItem(e,
|
|
1271
|
+
setSessionParam: function(e, s) {
|
|
1272
|
+
sessionStorage.setItem(e, s);
|
|
1267
1273
|
},
|
|
1268
1274
|
getSessionParam: function(e) {
|
|
1269
1275
|
return sessionStorage.getItem(e);
|
|
1270
1276
|
},
|
|
1271
|
-
setLocalParam: function(e,
|
|
1272
|
-
localStorage.setItem(e,
|
|
1277
|
+
setLocalParam: function(e, s) {
|
|
1278
|
+
localStorage.setItem(e, s);
|
|
1273
1279
|
},
|
|
1274
1280
|
getLocalParam: function(e) {
|
|
1275
1281
|
return localStorage.getItem(e);
|
|
1276
1282
|
},
|
|
1277
|
-
callCompMethod: function(e,
|
|
1278
|
-
|
|
1283
|
+
callCompMethod: function(e, s, r = {}) {
|
|
1284
|
+
q(h) ? h(e, s, r) : console.error("compMethod is not function.");
|
|
1279
1285
|
},
|
|
1280
|
-
setJsCookie: function(e,
|
|
1281
|
-
|
|
1286
|
+
setJsCookie: function(e, s, r = 30) {
|
|
1287
|
+
we.set(e, s, { expires: r });
|
|
1282
1288
|
},
|
|
1283
1289
|
getJsCookie: function(e) {
|
|
1284
|
-
return
|
|
1290
|
+
return we.get(e);
|
|
1285
1291
|
},
|
|
1286
1292
|
removeJsCookie: function(e) {
|
|
1287
|
-
|
|
1293
|
+
we.remove(e);
|
|
1288
1294
|
},
|
|
1289
|
-
log: function(e = "log",
|
|
1290
|
-
e == "error" ? console.error(
|
|
1295
|
+
log: function(e = "log", s) {
|
|
1296
|
+
e == "error" ? console.error(s) : e == "info" ? console.info(s) : e == "warn" ? console.warn(s) : console.log(s);
|
|
1291
1297
|
},
|
|
1292
1298
|
isNotEmptyStr: function(e) {
|
|
1293
1299
|
return _(e);
|
|
1294
1300
|
},
|
|
1295
1301
|
md5: function(e) {
|
|
1296
|
-
return
|
|
1302
|
+
return rt(e);
|
|
1297
1303
|
},
|
|
1298
1304
|
getDate: function(e) {
|
|
1299
|
-
return
|
|
1305
|
+
return nt(e);
|
|
1300
1306
|
},
|
|
1301
|
-
formatDate: function(e,
|
|
1302
|
-
return
|
|
1307
|
+
formatDate: function(e, s = "yyyy-MM-dd") {
|
|
1308
|
+
return tt(e, s);
|
|
1303
1309
|
},
|
|
1304
1310
|
closeDialog: function(e) {
|
|
1305
|
-
|
|
1311
|
+
O(e);
|
|
1306
1312
|
},
|
|
1307
|
-
hideAndShowComp: function(e,
|
|
1308
|
-
|
|
1313
|
+
hideAndShowComp: function(e, s, r = {}) {
|
|
1314
|
+
q(M) ? M(e, s, r) : console.error("hideAndShowComp is not function.");
|
|
1309
1315
|
}
|
|
1310
|
-
},
|
|
1316
|
+
}, gt = (e) => {
|
|
1311
1317
|
if (e && _(e.funcBody)) {
|
|
1312
|
-
const
|
|
1313
|
-
helper: { ...a, ...
|
|
1318
|
+
const s = {
|
|
1319
|
+
helper: { ...a, ...V }
|
|
1314
1320
|
};
|
|
1315
1321
|
try {
|
|
1316
1322
|
let r = e.funcBody.toString().trim();
|
|
1317
|
-
r.indexOf("function") < 0 && (r = "function(){" + r + "}"), new Function("context", `with(context) {return ${r}}`)(
|
|
1323
|
+
r.indexOf("function") < 0 && (r = "function(){" + r + "}"), new Function("context", `with(context) {return ${r}}`)(s)();
|
|
1318
1324
|
} catch (r) {
|
|
1319
1325
|
console.error("处理自定义函数时出错:", r);
|
|
1320
1326
|
}
|
|
1321
1327
|
}
|
|
1322
|
-
},
|
|
1328
|
+
}, ht = (e) => {
|
|
1323
1329
|
if (e && _(e.type)) {
|
|
1324
1330
|
if (e.opType == "clear") {
|
|
1325
|
-
let
|
|
1326
|
-
|
|
1327
|
-
} else if (
|
|
1328
|
-
let
|
|
1329
|
-
for (let
|
|
1330
|
-
if (u = r[
|
|
1331
|
-
_(u.tarKey) && (
|
|
1332
|
-
else if (
|
|
1333
|
-
let m =
|
|
1334
|
-
|
|
1331
|
+
let s = e.type;
|
|
1332
|
+
s == "session" ? sessionStorage.clear() : s == "local" && localStorage.clear();
|
|
1333
|
+
} else if (B(e.params) && e.params.length > 0) {
|
|
1334
|
+
let s = e.type, r = e.params || [], u = null;
|
|
1335
|
+
for (let p = 0; p < r.length; p++)
|
|
1336
|
+
if (u = r[p], u.delete)
|
|
1337
|
+
_(u.tarKey) && (s == "session" ? sessionStorage.removeItem(u.tarKey) : s == "local" ? localStorage.removeItem(u.tarKey) : s == "jsCookie" && V.removeJsCookie(u.tarKey));
|
|
1338
|
+
else if (te(u)) {
|
|
1339
|
+
let m = z(u);
|
|
1340
|
+
s == "session" ? sessionStorage.setItem(u.tarKey, m) : s == "local" ? localStorage.setItem(u.tarKey, m) : s == "jsCookie" && V.setJsCookie(u.tarKey, m);
|
|
1335
1341
|
}
|
|
1336
1342
|
}
|
|
1337
1343
|
}
|
|
1338
|
-
},
|
|
1344
|
+
}, te = (e) => _(e.ds) && _(e.tarKey) ? e.ds != "inputV" ? _(e.key) : !0 : !1, z = (e) => {
|
|
1339
1345
|
if (e.ds == "inputP")
|
|
1340
|
-
return
|
|
1346
|
+
return V.getParam(e.key);
|
|
1341
1347
|
if (e.ds == "cacheP")
|
|
1342
|
-
return
|
|
1348
|
+
return V.getDataCache(e.key);
|
|
1343
1349
|
if (e.ds == "containerP")
|
|
1344
|
-
return
|
|
1350
|
+
return V.getContainerParam(e.key);
|
|
1345
1351
|
if (e.ds == "sessionP")
|
|
1346
|
-
return
|
|
1352
|
+
return V.getSessionParam(e.key);
|
|
1347
1353
|
if (e.ds == "localP")
|
|
1348
|
-
return
|
|
1354
|
+
return V.getLocalParam(e.key);
|
|
1349
1355
|
if (e.ds == "jsCookieP")
|
|
1350
|
-
return
|
|
1356
|
+
return V.getJsCookie(e.key);
|
|
1351
1357
|
if (e.ds == "compProp")
|
|
1352
|
-
return
|
|
1358
|
+
return q(a.getPropValue) ? a.getPropValue(e.key) : null;
|
|
1353
1359
|
if (e.ds == "compStyle")
|
|
1354
|
-
return
|
|
1360
|
+
return q(a.getStyleValue) ? a.getStyleValue(e.key) : null;
|
|
1355
1361
|
if (e.ds == "_selectMenuValue" || e.ds == "_selectItemValue" || e.ds == "_changeItemValue") {
|
|
1356
|
-
let
|
|
1357
|
-
return
|
|
1362
|
+
let s = V.getParam(e.ds);
|
|
1363
|
+
return Se(s) ? null : ue(s) ? _(e.key) && Ve(s, e.key) ? Pe(s, e.key) : null : s;
|
|
1358
1364
|
} else {
|
|
1359
|
-
let
|
|
1360
|
-
return
|
|
1365
|
+
let s = e.key;
|
|
1366
|
+
return s.toString().trim().indexOf("#json#") == 0 ? (s = s.toString().trim().replace("#json#", ""), $e(s, {})) : e.key;
|
|
1361
1367
|
}
|
|
1362
|
-
},
|
|
1368
|
+
}, yt = (e, s) => {
|
|
1363
1369
|
if (e.ds == "cacheP")
|
|
1364
|
-
return
|
|
1370
|
+
return V.setDataCache(e.tarKey, s);
|
|
1365
1371
|
if (e.ds == "inputP")
|
|
1366
|
-
return
|
|
1372
|
+
return V.setParam(e.tarKey, s);
|
|
1367
1373
|
if (e.ds == "sessionP")
|
|
1368
|
-
return
|
|
1374
|
+
return V.setSessionParam(e.tarKey, s);
|
|
1369
1375
|
if (e.ds == "localP")
|
|
1370
|
-
return
|
|
1371
|
-
e.ds == "jsCookieP" ?
|
|
1372
|
-
},
|
|
1376
|
+
return V.setLocalParam(e.tarKey, s);
|
|
1377
|
+
e.ds == "jsCookieP" ? V.setJsCookie(e.tarKey, s) : e.ds == "compProp" ? q(a.setPropValue) && a.setPropValue(e.tarKey, s) : e.ds == "compStyle" && q(a.setStyleValue) && a.setStyleValue(e.tarKey, s);
|
|
1378
|
+
}, _t = (e) => {
|
|
1373
1379
|
if (e) {
|
|
1374
|
-
let
|
|
1375
|
-
|
|
1376
|
-
if (
|
|
1377
|
-
let m =
|
|
1380
|
+
let s = e.styleSets || [], r = e.propSets || [];
|
|
1381
|
+
B(r) && r.length > 0 && q(a.setPropValue) && r.forEach((u, p) => {
|
|
1382
|
+
if (te(u)) {
|
|
1383
|
+
let m = z(u);
|
|
1378
1384
|
a.setPropValue(u.tarKey, m);
|
|
1379
1385
|
}
|
|
1380
|
-
}),
|
|
1381
|
-
if (
|
|
1382
|
-
let m =
|
|
1386
|
+
}), B(s) && s.length > 0 && q(a.setStyleValue) && s.forEach((u, p) => {
|
|
1387
|
+
if (te(u)) {
|
|
1388
|
+
let m = z(u);
|
|
1383
1389
|
a.setStyleValue(u.tarKey, m);
|
|
1384
1390
|
}
|
|
1385
1391
|
});
|
|
1386
1392
|
}
|
|
1387
|
-
},
|
|
1388
|
-
let
|
|
1389
|
-
if (e &&
|
|
1390
|
-
let r = e.params || [], u = null,
|
|
1393
|
+
}, vt = (e) => {
|
|
1394
|
+
let s = !1;
|
|
1395
|
+
if (e && B(e.params)) {
|
|
1396
|
+
let r = e.params || [], u = null, p = !1;
|
|
1391
1397
|
for (let m = 0; m < r.length; m++) {
|
|
1392
1398
|
u = r[m];
|
|
1393
|
-
let S =
|
|
1394
|
-
const
|
|
1395
|
-
if ([">", ">=", "<", "<=", "=="].includes(
|
|
1396
|
-
|
|
1399
|
+
let S = z(u), j = u.value;
|
|
1400
|
+
const Z = u.opType;
|
|
1401
|
+
if ([">", ">=", "<", "<=", "=="].includes(Z) && (S = re(S), j = re(j)), oe[Z] ? p = oe[Z](S, j) : p = !1, p) {
|
|
1402
|
+
s = !0;
|
|
1397
1403
|
break;
|
|
1398
1404
|
}
|
|
1399
1405
|
}
|
|
1400
|
-
if (e.enabledTip &&
|
|
1406
|
+
if (e.enabledTip && s) {
|
|
1401
1407
|
let m = e.tip || {};
|
|
1402
|
-
m.tipType == "msg" ?
|
|
1408
|
+
m.tipType == "msg" ? de(m.type, m.msg, m.extParam) : m.tipType == "notify" && Me(m.type, m.msg, m.extParam);
|
|
1403
1409
|
}
|
|
1404
1410
|
}
|
|
1405
|
-
return
|
|
1406
|
-
},
|
|
1411
|
+
return s;
|
|
1412
|
+
}, Re = (e, s) => {
|
|
1407
1413
|
if (e.customFunc && _(e.confirmFunc)) {
|
|
1408
1414
|
const r = {
|
|
1409
|
-
helper: { ...a, ...
|
|
1415
|
+
helper: { ...a, ...V }
|
|
1410
1416
|
};
|
|
1411
1417
|
try {
|
|
1412
1418
|
let u = e.confirmFunc.toString().trim();
|
|
1413
|
-
u.indexOf("function") < 0 && (u = "function (promptValue){" + u + "}"), new Function("context", `with(context) {return ${u}}`)(r)(
|
|
1419
|
+
u.indexOf("function") < 0 && (u = "function (promptValue){" + u + "}"), new Function("context", `with(context) {return ${u}}`)(r)(s);
|
|
1414
1420
|
} catch (u) {
|
|
1415
1421
|
console.error("[__messageBoxHandler4CustomSuccessFunc]处理自定义失败函数时出错:", u);
|
|
1416
1422
|
}
|
|
1417
1423
|
}
|
|
1418
|
-
},
|
|
1424
|
+
}, St = (e, s) => {
|
|
1419
1425
|
if (e.customFunc && _(e.errorFunc)) {
|
|
1420
1426
|
const r = {
|
|
1421
|
-
helper: { ...a, ...
|
|
1427
|
+
helper: { ...a, ...V }
|
|
1422
1428
|
};
|
|
1423
1429
|
try {
|
|
1424
1430
|
let u = e.errorFunc.toString().trim();
|
|
1425
|
-
u.indexOf("function") < 0 && (u = "function (err){" + u + "}"), new Function("context", `with(context) {return ${u}}`)(r)(
|
|
1431
|
+
u.indexOf("function") < 0 && (u = "function (err){" + u + "}"), new Function("context", `with(context) {return ${u}}`)(r)(s);
|
|
1426
1432
|
} catch (u) {
|
|
1427
1433
|
console.error("[__messageBoxHandler4CustomErrorFunc]处理自定义失败函数时出错:", u);
|
|
1428
1434
|
}
|
|
1429
1435
|
}
|
|
1430
|
-
},
|
|
1436
|
+
}, pe = (e, s) => {
|
|
1431
1437
|
if (e.customFunc) {
|
|
1432
1438
|
let r = "";
|
|
1433
|
-
if (
|
|
1439
|
+
if (s == "cancel" && _(e.cancelFunc))
|
|
1434
1440
|
r = e.cancelFunc;
|
|
1435
|
-
else if (
|
|
1441
|
+
else if (s == "close" && _(e.closeFunc))
|
|
1436
1442
|
r = e.closeFunc;
|
|
1437
1443
|
else
|
|
1438
1444
|
return;
|
|
1439
1445
|
const u = {
|
|
1440
|
-
helper: { ...a, ...
|
|
1446
|
+
helper: { ...a, ...V }
|
|
1441
1447
|
};
|
|
1442
1448
|
try {
|
|
1443
|
-
let
|
|
1444
|
-
|
|
1445
|
-
} catch (
|
|
1446
|
-
console.error("[__messageBoxHandler4CustomCancelOrCloseFunc]处理自定义失败函数时出错:",
|
|
1449
|
+
let p = r.toString().trim();
|
|
1450
|
+
p.indexOf("function") < 0 && (p = "function (err){" + p + "}"), new Function("context", `with(context) {return ${p}}`)(u)();
|
|
1451
|
+
} catch (p) {
|
|
1452
|
+
console.error("[__messageBoxHandler4CustomCancelOrCloseFunc]处理自定义失败函数时出错:", p);
|
|
1447
1453
|
}
|
|
1448
1454
|
}
|
|
1449
|
-
},
|
|
1450
|
-
let
|
|
1455
|
+
}, wt = async (e) => {
|
|
1456
|
+
let s = !1;
|
|
1451
1457
|
if (e && _(e.type)) {
|
|
1452
1458
|
let r = {
|
|
1453
1459
|
...e.params,
|
|
@@ -1456,249 +1462,249 @@ function qe(t = {}, o = !0, s = {}) {
|
|
|
1456
1462
|
cancelButtonText: e.cancelText
|
|
1457
1463
|
};
|
|
1458
1464
|
if (e.type == "confirm") {
|
|
1459
|
-
const { errors: u, resultInfo:
|
|
1460
|
-
u && u.length > 0 ? u[0] == "cancel" ?
|
|
1465
|
+
const { errors: u, resultInfo: p } = await ct(e.title, e.message, r);
|
|
1466
|
+
u && u.length > 0 ? u[0] == "cancel" ? pe(e, "cancel") : u[0] == "close" && pe(e, "close") : p == "confirm" && (s = !0, Re(e, null));
|
|
1461
1467
|
} else if (e.type == "prompt") {
|
|
1462
1468
|
if (_(r.inputPattern)) {
|
|
1463
1469
|
const m = r.inputPattern.replace(/\\\\/g, "\\");
|
|
1464
1470
|
r.inputPattern = new RegExp(m);
|
|
1465
1471
|
}
|
|
1466
|
-
const { errors: u, resultInfo:
|
|
1467
|
-
u && u.length > 0 ? u[0] == "cancel" ?
|
|
1472
|
+
const { errors: u, resultInfo: p } = await ut(e.title, e.message, r);
|
|
1473
|
+
u && u.length > 0 ? u[0] == "cancel" ? pe(e, "cancel") : u[0] == "close" ? pe(e, "close") : St(e, u[0]) : p.action == "confirm" && (s = !0, V.setParam("promptValue", p.value), Re(e, p.value));
|
|
1468
1474
|
}
|
|
1469
|
-
e.autoBlock || (
|
|
1475
|
+
e.autoBlock || (s = !0);
|
|
1470
1476
|
} else
|
|
1471
|
-
|
|
1472
|
-
return
|
|
1473
|
-
},
|
|
1477
|
+
s = !0;
|
|
1478
|
+
return s;
|
|
1479
|
+
}, bt = (e) => {
|
|
1474
1480
|
if (e && _(e.pageId)) {
|
|
1475
|
-
let
|
|
1481
|
+
let s = { ...e };
|
|
1476
1482
|
if (e.customPosition) {
|
|
1477
|
-
let r = (
|
|
1478
|
-
|
|
1483
|
+
let r = (V.getParam("elementRectLeft") ?? 0) + (ce(e.leftOffset) ? e.leftOffset : 0), u = (V.getParam("elementRectTop") ?? 0) + (ce(e.topOffset) ? e.topOffset : 0);
|
|
1484
|
+
s.absLeft = r, s.absTop = u;
|
|
1479
1485
|
}
|
|
1480
|
-
v(
|
|
1486
|
+
v(s);
|
|
1481
1487
|
}
|
|
1482
|
-
},
|
|
1483
|
-
if (e &&
|
|
1484
|
-
let
|
|
1485
|
-
for (let u = 0; u <
|
|
1486
|
-
if (r =
|
|
1487
|
-
let
|
|
1488
|
-
r.type == "s" ?
|
|
1488
|
+
}, xt = (e) => {
|
|
1489
|
+
if (e && B(e.params)) {
|
|
1490
|
+
let s = e.params || [], r = null;
|
|
1491
|
+
for (let u = 0; u < s.length; u++)
|
|
1492
|
+
if (r = s[u], _(r.compId)) {
|
|
1493
|
+
let p = r.options || {};
|
|
1494
|
+
r.type == "s" ? V.hideAndShowComp(r.compId, !0, p) : V.hideAndShowComp(r.compId, !1, p);
|
|
1489
1495
|
}
|
|
1490
1496
|
}
|
|
1491
|
-
},
|
|
1497
|
+
}, Ct = (e) => {
|
|
1492
1498
|
if (e) {
|
|
1493
|
-
let
|
|
1499
|
+
let s = e.interval ?? 1e3, r = setInterval(
|
|
1494
1500
|
() => {
|
|
1495
|
-
|
|
1501
|
+
$("debug", "定时器触发..."), Nt();
|
|
1496
1502
|
},
|
|
1497
|
-
|
|
1503
|
+
s
|
|
1498
1504
|
);
|
|
1499
|
-
|
|
1505
|
+
F.push(r);
|
|
1500
1506
|
}
|
|
1501
|
-
},
|
|
1507
|
+
}, Pt = (e, s = {}) => {
|
|
1502
1508
|
if (e && _(e.eventId)) {
|
|
1503
|
-
let r =
|
|
1504
|
-
if (r.findIndex((
|
|
1505
|
-
let
|
|
1506
|
-
for (let m = 0; m <
|
|
1507
|
-
let S =
|
|
1508
|
-
for (const
|
|
1509
|
-
if (
|
|
1510
|
-
if (r.push(
|
|
1511
|
-
|
|
1509
|
+
let r = s.eventIds || [];
|
|
1510
|
+
if (r.findIndex((p) => p == e.eventId) < 0) {
|
|
1511
|
+
let p = Object.keys(t);
|
|
1512
|
+
for (let m = 0; m < p.length; m++) {
|
|
1513
|
+
let S = t[p[m]] || [];
|
|
1514
|
+
for (const j of S)
|
|
1515
|
+
if (j.id == e.eventId) {
|
|
1516
|
+
if (r.push(j.id), s.eventIds = [...r], j.default) {
|
|
1517
|
+
me(j.actionList, s);
|
|
1512
1518
|
break;
|
|
1513
|
-
} else
|
|
1519
|
+
} else Fe(j) && me(j.actionList, s);
|
|
1514
1520
|
break;
|
|
1515
1521
|
}
|
|
1516
1522
|
}
|
|
1517
1523
|
} else
|
|
1518
|
-
|
|
1524
|
+
$("error", "存在循环调用,不执行事件配置", e.eventId);
|
|
1519
1525
|
}
|
|
1520
|
-
},
|
|
1526
|
+
}, me = async (e = [], s = {}) => {
|
|
1521
1527
|
let r = null;
|
|
1522
1528
|
for (let u = 0; u < e.length; u++)
|
|
1523
1529
|
if (r = e[u], r.action == "router")
|
|
1524
|
-
|
|
1530
|
+
N(r.config);
|
|
1525
1531
|
else if (r.action == "dataRequest")
|
|
1526
|
-
await
|
|
1532
|
+
await ft(r.config);
|
|
1527
1533
|
else if (r.action == "cacheSet")
|
|
1528
|
-
|
|
1534
|
+
dt(r.config);
|
|
1529
1535
|
else if (r.action == "paramMap")
|
|
1530
|
-
|
|
1536
|
+
pt(r.config);
|
|
1531
1537
|
else if (r.action == "paramSet")
|
|
1532
|
-
|
|
1538
|
+
mt(r.config);
|
|
1533
1539
|
else if (r.action == "customFunction")
|
|
1534
|
-
|
|
1540
|
+
gt(r.config);
|
|
1535
1541
|
else if (r.action == "webStorage")
|
|
1536
|
-
|
|
1542
|
+
ht(r.config);
|
|
1537
1543
|
else if (r.action == "componentSet")
|
|
1538
|
-
|
|
1544
|
+
_t(r.config);
|
|
1539
1545
|
else if (r.action == "actionEnd") {
|
|
1540
|
-
if (
|
|
1546
|
+
if (vt(r.config)) {
|
|
1541
1547
|
console.log("actionEnd is true. break");
|
|
1542
1548
|
break;
|
|
1543
1549
|
}
|
|
1544
1550
|
} else if (r.action == "messageBox") {
|
|
1545
|
-
if (!await
|
|
1551
|
+
if (!await wt(r.config)) {
|
|
1546
1552
|
console.log("messageBox is false. break");
|
|
1547
1553
|
break;
|
|
1548
1554
|
}
|
|
1549
1555
|
} else if (r.action == "openDialog") {
|
|
1550
|
-
|
|
1556
|
+
bt(r.config);
|
|
1551
1557
|
break;
|
|
1552
|
-
} else r.action == "showAndHideSet" ?
|
|
1553
|
-
},
|
|
1554
|
-
let
|
|
1555
|
-
_(e.lType) && (
|
|
1558
|
+
} else r.action == "showAndHideSet" ? xt(r.config) : r.action == "timerSet" ? Ct(r.config) : r.action == "performEvent" && Pt(r.config, s);
|
|
1559
|
+
}, Ae = (e) => e == "inputV" || e == "_selectMenuValue" || e == "_selectItemValue" || e == "_changeItemValue", Vt = (e) => {
|
|
1560
|
+
let s = !1, r, u, p = !1;
|
|
1561
|
+
_(e.lType) && (Ae(e.lType) ? p = !0 : p = _(e.lValue));
|
|
1556
1562
|
let m = !1;
|
|
1557
|
-
if (_(e.rType) && (
|
|
1558
|
-
r =
|
|
1563
|
+
if (_(e.rType) && (Ae(e.rType) ? m = !0 : m = _(e.rValue)), p && m) {
|
|
1564
|
+
r = z({
|
|
1559
1565
|
ds: e.lType,
|
|
1560
1566
|
key: e.lValue
|
|
1561
|
-
}), u =
|
|
1567
|
+
}), u = z({
|
|
1562
1568
|
ds: e.rType,
|
|
1563
1569
|
key: e.rValue
|
|
1564
1570
|
});
|
|
1565
1571
|
const S = e.opType;
|
|
1566
|
-
[">", ">=", "<", "<=", "=="].includes(S) && (r =
|
|
1572
|
+
[">", ">=", "<", "<=", "=="].includes(S) && (r = re(r), u = re(u)), oe[S] ? s = oe[S](r, u) : (s = !1, console.warn("useEventHandler Invalid operator: " + S));
|
|
1567
1573
|
} else
|
|
1568
1574
|
console.warn("_judgeCondition warn: the condition config is error.");
|
|
1569
|
-
return
|
|
1570
|
-
},
|
|
1571
|
-
let
|
|
1575
|
+
return s;
|
|
1576
|
+
}, Fe = (e) => {
|
|
1577
|
+
let s = !1;
|
|
1572
1578
|
if (e.default)
|
|
1573
|
-
|
|
1579
|
+
s = !0;
|
|
1574
1580
|
else {
|
|
1575
1581
|
let r = e.condition || [];
|
|
1576
1582
|
if (r.length > 0) {
|
|
1577
1583
|
let u = !0;
|
|
1578
|
-
for (let
|
|
1579
|
-
if (!
|
|
1584
|
+
for (let p = 0; p < r.length; p++)
|
|
1585
|
+
if (!Vt(r[p])) {
|
|
1580
1586
|
u = !1;
|
|
1581
1587
|
break;
|
|
1582
1588
|
}
|
|
1583
|
-
u && (
|
|
1589
|
+
u && (s = !0);
|
|
1584
1590
|
} else
|
|
1585
|
-
|
|
1591
|
+
s = !0;
|
|
1586
1592
|
}
|
|
1587
|
-
return
|
|
1588
|
-
},
|
|
1589
|
-
for (const
|
|
1593
|
+
return s;
|
|
1594
|
+
}, L = (e = []) => {
|
|
1595
|
+
for (const s of e) {
|
|
1590
1596
|
let r = {};
|
|
1591
|
-
if (r.eventIds = [
|
|
1592
|
-
|
|
1597
|
+
if (r.eventIds = [s.id], s.default) {
|
|
1598
|
+
me(s.actionList, r);
|
|
1593
1599
|
break;
|
|
1594
|
-
} else
|
|
1600
|
+
} else Fe(s) && me(s.actionList, r);
|
|
1595
1601
|
}
|
|
1596
|
-
},
|
|
1597
|
-
|
|
1598
|
-
if (
|
|
1602
|
+
}, Ot = (e) => {
|
|
1603
|
+
d || (b && clearTimeout(b), b = setTimeout(() => {
|
|
1604
|
+
if (t && t.hasOwnProperty("onMouseClick")) {
|
|
1599
1605
|
if (e && e.target) {
|
|
1600
1606
|
const r = e.target.getBoundingClientRect();
|
|
1601
|
-
|
|
1607
|
+
U("elementRect", r), U("elementRectLeft", r.left), U("elementRectTop", r.top);
|
|
1602
1608
|
}
|
|
1603
|
-
let
|
|
1604
|
-
|
|
1609
|
+
let s = t.onMouseClick;
|
|
1610
|
+
L(s);
|
|
1605
1611
|
}
|
|
1606
|
-
},
|
|
1607
|
-
},
|
|
1608
|
-
if (!
|
|
1612
|
+
}, w));
|
|
1613
|
+
}, Mt = (e) => {
|
|
1614
|
+
if (!d && (b && clearTimeout(b), t && t.hasOwnProperty("onMouseDblClick"))) {
|
|
1609
1615
|
if (e && e.target) {
|
|
1610
1616
|
const r = e.target.getBoundingClientRect();
|
|
1611
|
-
|
|
1617
|
+
U("elementRect", r), U("elementRectLeft", r.left), U("elementRectTop", r.top);
|
|
1612
1618
|
}
|
|
1613
|
-
let
|
|
1614
|
-
|
|
1619
|
+
let s = t.onMouseDblClick;
|
|
1620
|
+
L(s);
|
|
1615
1621
|
}
|
|
1616
|
-
},
|
|
1617
|
-
if (!
|
|
1618
|
-
let r =
|
|
1619
|
-
|
|
1622
|
+
}, kt = (e, s) => {
|
|
1623
|
+
if (!d && (U("_selectMenuValue", s), t && t.hasOwnProperty("onContextMenu"))) {
|
|
1624
|
+
let r = t.onContextMenu;
|
|
1625
|
+
L(r);
|
|
1620
1626
|
}
|
|
1621
|
-
},
|
|
1622
|
-
if (!
|
|
1623
|
-
let
|
|
1624
|
-
|
|
1627
|
+
}, It = (e) => {
|
|
1628
|
+
if (!d && (U("_selectItemValue", e), t && t.hasOwnProperty("selectItem"))) {
|
|
1629
|
+
let s = t.selectItem;
|
|
1630
|
+
L(s);
|
|
1625
1631
|
}
|
|
1626
|
-
},
|
|
1627
|
-
if (!
|
|
1628
|
-
let
|
|
1629
|
-
|
|
1632
|
+
}, Et = (e) => {
|
|
1633
|
+
if (!d && (U("_changeItemValue", e), t && t.hasOwnProperty("changeValue"))) {
|
|
1634
|
+
let s = t.changeValue;
|
|
1635
|
+
L(s);
|
|
1630
1636
|
}
|
|
1631
|
-
},
|
|
1632
|
-
if (!
|
|
1633
|
-
let e =
|
|
1634
|
-
|
|
1637
|
+
}, Tt = () => {
|
|
1638
|
+
if (!d && t && t.hasOwnProperty("keyEnter")) {
|
|
1639
|
+
let e = t.keyEnter;
|
|
1640
|
+
L(e);
|
|
1635
1641
|
}
|
|
1636
|
-
},
|
|
1637
|
-
if (!
|
|
1638
|
-
let e =
|
|
1639
|
-
|
|
1642
|
+
}, Dt = () => {
|
|
1643
|
+
if (!d && t && t.hasOwnProperty("onBeforeMount")) {
|
|
1644
|
+
let e = t.onBeforeMount;
|
|
1645
|
+
L(e);
|
|
1640
1646
|
}
|
|
1641
|
-
},
|
|
1642
|
-
if (!
|
|
1643
|
-
let e =
|
|
1644
|
-
|
|
1647
|
+
}, Rt = () => {
|
|
1648
|
+
if (!d && t && t.hasOwnProperty("onMounted")) {
|
|
1649
|
+
let e = t.onMounted;
|
|
1650
|
+
L(e);
|
|
1645
1651
|
}
|
|
1646
|
-
},
|
|
1647
|
-
if (
|
|
1648
|
-
for (let e = 0; e <
|
|
1652
|
+
}, At = () => {
|
|
1653
|
+
if (F && F.length > 0)
|
|
1654
|
+
for (let e = 0; e < F.length; e++)
|
|
1649
1655
|
try {
|
|
1650
|
-
clearInterval(
|
|
1651
|
-
} catch (
|
|
1652
|
-
console.error("cancel request error",
|
|
1656
|
+
clearInterval(F[e]);
|
|
1657
|
+
} catch (s) {
|
|
1658
|
+
console.error("cancel request error", s);
|
|
1653
1659
|
}
|
|
1654
|
-
},
|
|
1655
|
-
if (
|
|
1660
|
+
}, Ft = () => {
|
|
1661
|
+
if (At(), !d) {
|
|
1656
1662
|
if (y && y.length > 0)
|
|
1657
1663
|
for (let e = 0; e < y.length; e++)
|
|
1658
1664
|
try {
|
|
1659
1665
|
y[e] && y[e]();
|
|
1660
|
-
} catch (
|
|
1661
|
-
console.error("cancel request error",
|
|
1666
|
+
} catch (s) {
|
|
1667
|
+
console.error("cancel request error", s);
|
|
1662
1668
|
}
|
|
1663
|
-
if (
|
|
1664
|
-
let e =
|
|
1665
|
-
|
|
1669
|
+
if (t && t.hasOwnProperty("onBeforeUnmount")) {
|
|
1670
|
+
let e = t.onBeforeUnmount;
|
|
1671
|
+
L(e);
|
|
1666
1672
|
}
|
|
1667
1673
|
}
|
|
1668
|
-
},
|
|
1669
|
-
if (!
|
|
1670
|
-
let e =
|
|
1671
|
-
|
|
1674
|
+
}, jt = () => {
|
|
1675
|
+
if (!d && t && t.hasOwnProperty("onUnmounted")) {
|
|
1676
|
+
let e = t.onUnmounted;
|
|
1677
|
+
L(e);
|
|
1672
1678
|
}
|
|
1673
|
-
},
|
|
1674
|
-
if (!
|
|
1675
|
-
let e =
|
|
1676
|
-
|
|
1679
|
+
}, Nt = () => {
|
|
1680
|
+
if (!d && t && t.hasOwnProperty("timerTrigger")) {
|
|
1681
|
+
let e = t.timerTrigger;
|
|
1682
|
+
L(e);
|
|
1677
1683
|
}
|
|
1678
|
-
},
|
|
1679
|
-
|
|
1684
|
+
}, U = (e, s) => {
|
|
1685
|
+
V.setParam(e, s);
|
|
1680
1686
|
};
|
|
1681
1687
|
return {
|
|
1682
|
-
handleClick:
|
|
1683
|
-
handleDblClick:
|
|
1684
|
-
handleContextMenu:
|
|
1685
|
-
selectItem:
|
|
1686
|
-
changeValue:
|
|
1687
|
-
beforeMount:
|
|
1688
|
-
mounted:
|
|
1689
|
-
beforeUnmount:
|
|
1690
|
-
unmounted:
|
|
1691
|
-
setParam:
|
|
1692
|
-
keyEnter:
|
|
1688
|
+
handleClick: Ot,
|
|
1689
|
+
handleDblClick: Mt,
|
|
1690
|
+
handleContextMenu: kt,
|
|
1691
|
+
selectItem: It,
|
|
1692
|
+
changeValue: Et,
|
|
1693
|
+
beforeMount: Dt,
|
|
1694
|
+
mounted: Rt,
|
|
1695
|
+
beforeUnmount: Ft,
|
|
1696
|
+
unmounted: jt,
|
|
1697
|
+
setParam: U,
|
|
1698
|
+
keyEnter: Tt
|
|
1693
1699
|
};
|
|
1694
1700
|
}
|
|
1695
|
-
function
|
|
1701
|
+
function We(n, o, l, t) {
|
|
1696
1702
|
return {
|
|
1697
1703
|
setPropValue: function(a, c) {
|
|
1698
|
-
|
|
1704
|
+
n.value[a] = c;
|
|
1699
1705
|
},
|
|
1700
1706
|
getPropValue: function(a) {
|
|
1701
|
-
return
|
|
1707
|
+
return n.value[a];
|
|
1702
1708
|
},
|
|
1703
1709
|
setStyleValue: function(a, c) {
|
|
1704
1710
|
o.value.style[a] = c;
|
|
@@ -1707,25 +1713,25 @@ function Ke(t, o, s, n) {
|
|
|
1707
1713
|
return o.value.style[a];
|
|
1708
1714
|
},
|
|
1709
1715
|
routerPush: function(a, c) {
|
|
1710
|
-
|
|
1716
|
+
l && l.push({
|
|
1711
1717
|
name: a,
|
|
1712
1718
|
params: c
|
|
1713
1719
|
});
|
|
1714
1720
|
},
|
|
1715
1721
|
routerPush2: function(a, c) {
|
|
1716
|
-
|
|
1722
|
+
l && l.push({
|
|
1717
1723
|
path: a,
|
|
1718
1724
|
query: c
|
|
1719
1725
|
});
|
|
1720
1726
|
},
|
|
1721
1727
|
routerReplace: function(a) {
|
|
1722
|
-
|
|
1728
|
+
l && l.replace({
|
|
1723
1729
|
path: a
|
|
1724
1730
|
});
|
|
1725
1731
|
}
|
|
1726
1732
|
};
|
|
1727
1733
|
}
|
|
1728
|
-
const
|
|
1734
|
+
const An = /* @__PURE__ */ Object.assign({
|
|
1729
1735
|
name: "Group"
|
|
1730
1736
|
}, {
|
|
1731
1737
|
__name: "Component",
|
|
@@ -1746,97 +1752,321 @@ const Rn = /* @__PURE__ */ Object.assign({
|
|
|
1746
1752
|
default: !1
|
|
1747
1753
|
}
|
|
1748
1754
|
},
|
|
1749
|
-
setup(
|
|
1750
|
-
const
|
|
1751
|
-
let x = { ...
|
|
1752
|
-
return x.computedStyle =
|
|
1753
|
-
})), h =
|
|
1754
|
-
|
|
1755
|
-
a.value =
|
|
1756
|
-
}),
|
|
1755
|
+
setup(n, { expose: o }) {
|
|
1756
|
+
const l = n, t = fe(), d = Ue(t), a = E(null), c = P(() => l.propValue || {}), f = P(() => l.element || {}), i = P(() => c.value.components || []), g = P(() => i.value.map((k) => {
|
|
1757
|
+
let x = { ...k }, G = M(k.groupStyle);
|
|
1758
|
+
return x.computedStyle = G, x.style && (x.style.width = x.computedStyle.width, x.style.height = x.computedStyle.height), x;
|
|
1759
|
+
})), h = P(() => f.value.events || []), y = Le(), v = qe(), O = We(c, f, y);
|
|
1760
|
+
Ne(() => {
|
|
1761
|
+
a.value = Je(h.value, l.designStatus, O), a.value?.beforeMount();
|
|
1762
|
+
}), ve(() => {
|
|
1757
1763
|
a.value?.mounted();
|
|
1758
|
-
}),
|
|
1764
|
+
}), Be(() => {
|
|
1759
1765
|
a.value?.beforeUnmount();
|
|
1760
|
-
}),
|
|
1766
|
+
}), He(() => {
|
|
1761
1767
|
a.value?.unmounted();
|
|
1762
1768
|
});
|
|
1763
|
-
const
|
|
1764
|
-
a.value?.setParam(
|
|
1765
|
-
},
|
|
1766
|
-
a.value?.handleDblClick(
|
|
1767
|
-
},
|
|
1768
|
-
if (!
|
|
1769
|
-
let x = { ...
|
|
1770
|
-
return x.width = Math.floor(parseFloat(x.width) / 100 *
|
|
1771
|
-
},
|
|
1772
|
-
|
|
1773
|
-
},
|
|
1774
|
-
if (_(
|
|
1775
|
-
const
|
|
1776
|
-
|
|
1769
|
+
const b = (k) => {
|
|
1770
|
+
a.value?.setParam(k);
|
|
1771
|
+
}, w = (k) => {
|
|
1772
|
+
a.value?.handleDblClick(k);
|
|
1773
|
+
}, M = (k) => {
|
|
1774
|
+
if (!k || !f.value?.style) return {};
|
|
1775
|
+
let x = { ...k }, G = f.value.style.width, Q = f.value.style.height;
|
|
1776
|
+
return x.width = Math.floor(parseFloat(x.width) / 100 * G), x.height = Math.floor(parseFloat(x.height) / 100 * Q), x.top = Math.floor(parseFloat(x.top) / 100 * Q), x.left = Math.floor(parseFloat(x.left) / 100 * G), x;
|
|
1777
|
+
}, F = ae({}), Y = (k, x) => {
|
|
1778
|
+
k ? F[`Ve${x}`] = k : delete F[`Ve${x}`];
|
|
1779
|
+
}, N = (k) => F[`Ve${k}`], C = (k, x, G) => {
|
|
1780
|
+
if (_(k) && _(x)) {
|
|
1781
|
+
const Q = N(k);
|
|
1782
|
+
Q && Q[x] && (G ? Q[x](G) : Q[x]());
|
|
1777
1783
|
}
|
|
1778
1784
|
};
|
|
1779
1785
|
o({
|
|
1780
1786
|
callGroupCompMethod: C
|
|
1781
1787
|
});
|
|
1782
|
-
const
|
|
1783
|
-
return
|
|
1788
|
+
const W = { props: l, dataCache: t, smartData: d, eventHandler: a, propValue: c, element: f, components: i, computedComponents: g, events: h, router: y, route: v, compContext: O, handleClick: b, handleDblClick: w, calcCompStyle: M, componentRefs: F, setComponentRef: Y, getComponentRef: N, callGroupCompMethod: C, get useDataCacheStore() {
|
|
1789
|
+
return fe;
|
|
1784
1790
|
}, get createSmartAccessor() {
|
|
1785
|
-
return
|
|
1786
|
-
}, ref:
|
|
1787
|
-
return
|
|
1791
|
+
return Ue;
|
|
1792
|
+
}, ref: E, computed: P, onMounted: ve, onBeforeMount: Ne, onBeforeUnmount: Be, onUnmounted: He, watch: Ie, reactive: ae, get useEventHandler() {
|
|
1793
|
+
return Je;
|
|
1788
1794
|
}, get useRoute() {
|
|
1789
|
-
return
|
|
1795
|
+
return qe;
|
|
1790
1796
|
}, get useRouter() {
|
|
1791
|
-
return
|
|
1797
|
+
return Le;
|
|
1792
1798
|
}, get CreateCompContext() {
|
|
1793
|
-
return
|
|
1799
|
+
return We;
|
|
1794
1800
|
}, get getStyle() {
|
|
1795
|
-
return
|
|
1801
|
+
return st;
|
|
1796
1802
|
}, get isNotEmpty() {
|
|
1797
1803
|
return _;
|
|
1798
1804
|
} };
|
|
1799
|
-
return Object.defineProperty(
|
|
1805
|
+
return Object.defineProperty(W, "__isScriptSetup", { enumerable: !1, value: !0 }), W;
|
|
1800
1806
|
}
|
|
1801
1807
|
});
|
|
1802
|
-
function
|
|
1803
|
-
return
|
|
1804
|
-
|
|
1805
|
-
(
|
|
1808
|
+
function Fn(n, o, l, t, d, a) {
|
|
1809
|
+
return T(), H("div", { class: "group" }, [
|
|
1810
|
+
ee("div", null, [
|
|
1811
|
+
(T(!0), H(Ee, null, Te(t.computedComponents, (c) => (T(), K(ye(c.component), {
|
|
1806
1812
|
id: "component" + c.id,
|
|
1807
1813
|
ref_for: !0,
|
|
1808
|
-
ref: (f) =>
|
|
1814
|
+
ref: (f) => t.setComponentRef(f, c.id),
|
|
1809
1815
|
key: c.id,
|
|
1810
1816
|
class: "component",
|
|
1811
|
-
style:
|
|
1817
|
+
style: _e(t.getStyle(c.computedStyle)),
|
|
1812
1818
|
"prop-value": c.propValue,
|
|
1813
1819
|
element: c
|
|
1814
1820
|
}, null, 8, ["id", "style", "prop-value", "element"]))), 128))
|
|
1815
1821
|
])
|
|
1816
1822
|
]);
|
|
1817
1823
|
}
|
|
1818
|
-
const
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1824
|
+
const jn = /* @__PURE__ */ J(An, [["render", Fn], ["__scopeId", "data-v-20de9881"], ["__file", "Component.vue"]]), Nn = /* @__PURE__ */ Object.assign({
|
|
1825
|
+
name: "VEDataCache"
|
|
1826
|
+
}, {
|
|
1827
|
+
__name: "index",
|
|
1828
|
+
setup(n, { expose: o }) {
|
|
1829
|
+
o();
|
|
1830
|
+
const l = E(null), t = E(null), d = E([]), a = E(0), c = fe(), f = E(!1), i = E({
|
|
1831
|
+
id: "",
|
|
1832
|
+
fuzzyQry: !1,
|
|
1833
|
+
pageNum: 1,
|
|
1834
|
+
pageSize: 15
|
|
1835
|
+
}), g = () => {
|
|
1836
|
+
i.value.pageNum = 1, y();
|
|
1837
|
+
}, h = () => {
|
|
1838
|
+
l.value?.resetFields(), g();
|
|
1839
|
+
}, y = () => {
|
|
1840
|
+
if (!_(i.value.id)) {
|
|
1841
|
+
a.value = 0, d.value = [];
|
|
1842
|
+
return;
|
|
1843
|
+
}
|
|
1844
|
+
if (f.value = !0, c.data)
|
|
1845
|
+
if (i.value.fuzzyQry) {
|
|
1846
|
+
let b = Object.keys(c.data), w = [];
|
|
1847
|
+
for (let M = 0; M < b.length; M++)
|
|
1848
|
+
b[M].startsWith(i.value.id) && w.push(b[M]);
|
|
1849
|
+
if (a.value = w.length, a.value > 0) {
|
|
1850
|
+
let M = (i.value.pageNum - 1) * i.value.pageSize, F = M + i.value.pageSize;
|
|
1851
|
+
if (M <= a.value) {
|
|
1852
|
+
let Y = [];
|
|
1853
|
+
for (let N = M; N < F; N++)
|
|
1854
|
+
if (N < a.value) {
|
|
1855
|
+
let C = he(c.data[w[N]]);
|
|
1856
|
+
Y.push({
|
|
1857
|
+
key: w[N],
|
|
1858
|
+
value: C
|
|
1859
|
+
});
|
|
1860
|
+
}
|
|
1861
|
+
d.value = Y;
|
|
1862
|
+
} else
|
|
1863
|
+
d.value = [];
|
|
1864
|
+
} else
|
|
1865
|
+
d.value = [];
|
|
1866
|
+
} else {
|
|
1867
|
+
let b = c.data[i.value.id];
|
|
1868
|
+
if (Se(b))
|
|
1869
|
+
a.value = 0, d.value = [];
|
|
1870
|
+
else {
|
|
1871
|
+
a.value = 1;
|
|
1872
|
+
let w = he(b);
|
|
1873
|
+
d.value = [{
|
|
1874
|
+
key: i.value.id,
|
|
1875
|
+
value: w
|
|
1876
|
+
}];
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
f.value = !1;
|
|
1880
|
+
}, O = { queryForm: l, resultTableRef: t, dataList: d, total: a, dataCache: c, loading: f, queryParams: i, handleQuery: g, resetQuery: h, getList: y, handleCopyData: (b) => {
|
|
1881
|
+
b && Ce(b.value) && de("success", "复制成功");
|
|
1882
|
+
}, ref: E, get useDataCacheStore() {
|
|
1883
|
+
return fe;
|
|
1884
|
+
}, get copyToClipboard() {
|
|
1885
|
+
return Ce;
|
|
1886
|
+
}, get isNotEmpty() {
|
|
1887
|
+
return _;
|
|
1888
|
+
}, get isNullOrUndefined() {
|
|
1889
|
+
return Se;
|
|
1890
|
+
}, get toJsonStr() {
|
|
1891
|
+
return he;
|
|
1892
|
+
}, get showMessage() {
|
|
1893
|
+
return de;
|
|
1894
|
+
} };
|
|
1895
|
+
return Object.defineProperty(O, "__isScriptSetup", { enumerable: !1, value: !0 }), O;
|
|
1896
|
+
}
|
|
1897
|
+
});
|
|
1898
|
+
function Bn(n, o, l, t, d, a) {
|
|
1899
|
+
const c = A("el-input"), f = A("el-form-item"), i = A("el-switch"), g = A("el-button"), h = A("el-form"), y = A("el-table-column"), v = A("el-table"), O = A("pagination"), b = zt("loading");
|
|
1900
|
+
return T(), H("div", { class: "panel-area" }, [
|
|
1901
|
+
ee("div", { class: "panel-condition" }, [
|
|
1902
|
+
I(h, {
|
|
1903
|
+
model: t.queryParams,
|
|
1904
|
+
ref: "queryForm",
|
|
1905
|
+
inline: !0
|
|
1906
|
+
}, {
|
|
1907
|
+
default: D(() => [
|
|
1908
|
+
I(f, {
|
|
1909
|
+
label: "缓存key",
|
|
1910
|
+
prop: "id"
|
|
1911
|
+
}, {
|
|
1912
|
+
default: D(() => [
|
|
1913
|
+
I(c, {
|
|
1914
|
+
modelValue: t.queryParams.id,
|
|
1915
|
+
"onUpdate:modelValue": o[0] || (o[0] = (w) => t.queryParams.id = w),
|
|
1916
|
+
placeholder: "请输入缓存key",
|
|
1917
|
+
clearable: "",
|
|
1918
|
+
style: { width: "240px" },
|
|
1919
|
+
onKeyup: Ut(t.handleQuery, ["enter", "native"])
|
|
1920
|
+
}, null, 8, ["modelValue"])
|
|
1921
|
+
]),
|
|
1922
|
+
_: 1
|
|
1923
|
+
}),
|
|
1924
|
+
R(),
|
|
1925
|
+
I(f, {
|
|
1926
|
+
label: "查询模式",
|
|
1927
|
+
prop: "name"
|
|
1928
|
+
}, {
|
|
1929
|
+
default: D(() => [
|
|
1930
|
+
I(i, {
|
|
1931
|
+
modelValue: t.queryParams.fuzzyQry,
|
|
1932
|
+
"onUpdate:modelValue": o[1] || (o[1] = (w) => t.queryParams.fuzzyQry = w),
|
|
1933
|
+
"active-text": "模糊",
|
|
1934
|
+
"inactive-text": "精确"
|
|
1935
|
+
}, null, 8, ["modelValue"])
|
|
1936
|
+
]),
|
|
1937
|
+
_: 1
|
|
1938
|
+
}),
|
|
1939
|
+
R(),
|
|
1940
|
+
I(f, null, {
|
|
1941
|
+
default: D(() => [
|
|
1942
|
+
I(g, {
|
|
1943
|
+
type: "primary",
|
|
1944
|
+
icon: "search",
|
|
1945
|
+
size: "small",
|
|
1946
|
+
onClick: t.handleQuery
|
|
1947
|
+
}, {
|
|
1948
|
+
default: D(() => [
|
|
1949
|
+
R("搜索")
|
|
1950
|
+
]),
|
|
1951
|
+
_: 1
|
|
1952
|
+
}),
|
|
1953
|
+
R(),
|
|
1954
|
+
I(g, {
|
|
1955
|
+
icon: "refresh",
|
|
1956
|
+
size: "small",
|
|
1957
|
+
onClick: t.resetQuery
|
|
1958
|
+
}, {
|
|
1959
|
+
default: D(() => [
|
|
1960
|
+
R("重置")
|
|
1961
|
+
]),
|
|
1962
|
+
_: 1
|
|
1963
|
+
})
|
|
1964
|
+
]),
|
|
1965
|
+
_: 1
|
|
1966
|
+
})
|
|
1967
|
+
]),
|
|
1968
|
+
_: 1
|
|
1969
|
+
}, 8, ["model"])
|
|
1970
|
+
]),
|
|
1971
|
+
R(),
|
|
1972
|
+
ee("div", { class: "panel-table" }, [
|
|
1973
|
+
R(`\r
|
|
1974
|
+
\r
|
|
1975
|
+
`),
|
|
1976
|
+
xe((T(), K(v, {
|
|
1977
|
+
ref: "resultTableRef",
|
|
1978
|
+
data: t.dataList,
|
|
1979
|
+
stripe: "",
|
|
1980
|
+
border: "",
|
|
1981
|
+
"highlight-current-row": ""
|
|
1982
|
+
}, {
|
|
1983
|
+
default: D(() => [
|
|
1984
|
+
I(y, {
|
|
1985
|
+
type: "index",
|
|
1986
|
+
align: "center",
|
|
1987
|
+
width: "60"
|
|
1988
|
+
}),
|
|
1989
|
+
R(),
|
|
1990
|
+
I(y, {
|
|
1991
|
+
label: "缓存Key",
|
|
1992
|
+
align: "center",
|
|
1993
|
+
property: "key",
|
|
1994
|
+
"show-overflow-tooltip": !0,
|
|
1995
|
+
"min-width": "200"
|
|
1996
|
+
}),
|
|
1997
|
+
R(),
|
|
1998
|
+
I(y, {
|
|
1999
|
+
label: "缓存值",
|
|
2000
|
+
align: "left",
|
|
2001
|
+
property: "value",
|
|
2002
|
+
"show-overflow-tooltip": !0,
|
|
2003
|
+
"min-width": "400"
|
|
2004
|
+
}),
|
|
2005
|
+
R(),
|
|
2006
|
+
I(y, {
|
|
2007
|
+
label: "操作",
|
|
2008
|
+
align: "center",
|
|
2009
|
+
"show-overflow-tooltip": !0,
|
|
2010
|
+
"min-width": "80"
|
|
2011
|
+
}, {
|
|
2012
|
+
default: D((w) => [
|
|
2013
|
+
I(g, {
|
|
2014
|
+
link: "",
|
|
2015
|
+
icon: "document",
|
|
2016
|
+
onClick: (M) => t.handleCopyData(w.row)
|
|
2017
|
+
}, {
|
|
2018
|
+
default: D(() => [
|
|
2019
|
+
R(`复制数据\r
|
|
2020
|
+
`)
|
|
2021
|
+
]),
|
|
2022
|
+
_: 1
|
|
2023
|
+
}, 8, ["onClick"])
|
|
2024
|
+
]),
|
|
2025
|
+
_: 1
|
|
2026
|
+
})
|
|
2027
|
+
]),
|
|
2028
|
+
_: 1
|
|
2029
|
+
}, 8, ["data"])), [
|
|
2030
|
+
[b, t.loading]
|
|
2031
|
+
]),
|
|
2032
|
+
R(),
|
|
2033
|
+
xe(I(O, {
|
|
2034
|
+
total: t.total,
|
|
2035
|
+
page: t.queryParams.pageNum,
|
|
2036
|
+
"onUpdate:page": o[2] || (o[2] = (w) => t.queryParams.pageNum = w),
|
|
2037
|
+
limit: t.queryParams.pageSize,
|
|
2038
|
+
"onUpdate:limit": o[3] || (o[3] = (w) => t.queryParams.pageSize = w),
|
|
2039
|
+
pageSizes: [15, 20, 30, 50],
|
|
2040
|
+
onPagination: t.getList
|
|
2041
|
+
}, null, 8, ["total", "page", "limit"]), [
|
|
2042
|
+
[Ge, t.total > 0]
|
|
2043
|
+
])
|
|
2044
|
+
])
|
|
2045
|
+
]);
|
|
2046
|
+
}
|
|
2047
|
+
const Hn = /* @__PURE__ */ J(Nn, [["render", Bn], ["__scopeId", "data-v-f00c8b88"], ["__file", "index.vue"]]), Ln = [
|
|
2048
|
+
hn,
|
|
2049
|
+
wn,
|
|
2050
|
+
On,
|
|
2051
|
+
Hn,
|
|
2052
|
+
In,
|
|
2053
|
+
it,
|
|
2054
|
+
Dn,
|
|
2055
|
+
jn
|
|
2056
|
+
], ke = (n, o) => {
|
|
2057
|
+
ke.installed || (ke.installed = !0, n.provide("hflvloader-api", o), Ln.forEach((l) => {
|
|
2058
|
+
n.component(l.name, l);
|
|
1829
2059
|
}));
|
|
1830
|
-
},
|
|
1831
|
-
install:
|
|
2060
|
+
}, Zn = {
|
|
2061
|
+
install: ke
|
|
1832
2062
|
};
|
|
1833
2063
|
export {
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
2064
|
+
Qn as CommonUtils,
|
|
2065
|
+
We as CreateCompContext,
|
|
2066
|
+
Xn as MessageUtils,
|
|
2067
|
+
Ue as createSmartAccessor,
|
|
2068
|
+
Zn as default,
|
|
2069
|
+
Yn as reCalcCanvasSize,
|
|
2070
|
+
fe as useDataCacheStore,
|
|
2071
|
+
Je as useEventHandler
|
|
1842
2072
|
};
|