@skyfox2000/webui 1.4.16 → 1.4.17
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/lib/assets/modules/{baseLayout-DQQ-vZCD.js → baseLayout-D3_NxEzk.js} +5 -5
- package/lib/assets/modules/{file-upload-Dc61Tbof.js → file-upload-CNBcbAAZ.js} +1 -1
- package/lib/assets/modules/{index-DrGkF0qX.js → index-CDr74akE.js} +2 -2
- package/lib/assets/modules/{index-CX7vtghj.js → index-D14BsF7C.js} +1 -1
- package/lib/assets/modules/{index-Dz624mC-.js → index-DOlO_4KL.js} +2 -2
- package/lib/assets/modules/{menuTabs-BwAVx2tx.js → menuTabs-CqAhoF--.js} +7 -7
- package/lib/assets/modules/{toolIcon-B2btIpdL.js → toolIcon-BnkqBipR.js} +1 -1
- package/lib/assets/modules/{upload-template-BqG06zPn.js → upload-template-KI-IFzyp.js} +217 -208
- package/lib/assets/modules/{uploadList-DlbvQOtR.js → uploadList-DnFXg_B3.js} +4 -4
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +6 -6
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +5 -5
- package/lib/es/MenuLayout/index.js +8 -8
- package/lib/es/TemplateFile/index.js +5 -5
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/utils/export-table.d.ts +6 -1
- package/lib/utils/form-validate.d.ts +2 -1
- package/lib/webui.es.js +846 -838
- package/package.json +1 -1
- package/src/components/content/form/formItem.vue +2 -16
- package/src/components/content/search/searchItem.vue +32 -8
- package/src/utils/export-table.ts +15 -5
- package/src/utils/form-validate.ts +20 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var mt = Object.defineProperty;
|
|
2
2
|
var vt = (e, a, t) => a in e ? mt(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
|
|
3
3
|
var k = (e, a, t) => vt(e, typeof a != "symbol" ? a + "" : a, t);
|
|
4
|
-
import { ref as c, h as H, nextTick as gt, inject as se, provide as $e, watch as g, toRaw as et, shallowRef as J, defineComponent as Z, reactive as yt, onMounted as Ie, onUnmounted as le, createBlock as Ae, createCommentVNode as z, openBlock as w, unref as
|
|
5
|
-
import { Switch as
|
|
4
|
+
import { ref as c, h as H, nextTick as gt, inject as se, provide as $e, watch as g, toRaw as et, shallowRef as J, defineComponent as Z, reactive as yt, onMounted as Ie, onUnmounted as le, createBlock as Ae, createCommentVNode as z, openBlock as w, unref as b, mergeProps as ue, useAttrs as Ee, onActivated as xe, createElementBlock as $, createVNode as C, withCtx as Q, createTextVNode as we, toDisplayString as Y, Fragment as oe, renderList as He, normalizeClass as tt, createElementVNode as St } from "vue";
|
|
5
|
+
import { Switch as bt, AutoComplete as It, Input as At, CheckboxGroup as Et, Checkbox as xt, RadioGroup as wt, Radio as Rt, Select as Ot, SelectOption as Tt } from "ant-design-vue";
|
|
6
6
|
import { createPinia as Pt, defineStore as ce } from "pinia";
|
|
7
7
|
import kt from "pinia-plugin-persistedstate";
|
|
8
|
-
import { EnvConfig as
|
|
9
|
-
import { httpPost as
|
|
8
|
+
import { EnvConfig as Se, AppAction as ze, AppSource as Ce, isMicroApp as V, isBaseMicroApp as Lt, combineParams as fe } from "@skyfox2000/microbase";
|
|
9
|
+
import { httpPost as j, ResStatus as T, setToken as ve, fieldMapping as Mt, parseFieldTemplate as be, API_HOST as Fe, SERVER_HOST as $t } from "@skyfox2000/fapi";
|
|
10
10
|
import E from "vue-m-message";
|
|
11
11
|
import { createRouter as Ft, createWebHashHistory as _t } from "vue-router";
|
|
12
12
|
import Ve from "async-validator";
|
|
@@ -191,9 +191,9 @@ const pe = {
|
|
|
191
191
|
return t.length === 0 && !s;
|
|
192
192
|
if (a) {
|
|
193
193
|
const r = _();
|
|
194
|
-
if (
|
|
194
|
+
if (Se.VITE_PERMISSION_MODE === "role")
|
|
195
195
|
return t.length === 0 ? !0 : r.hasRole(t);
|
|
196
|
-
if (
|
|
196
|
+
if (Se.VITE_PERMISSION_MODE === "permit") {
|
|
197
197
|
if (t.length === 0 && !s)
|
|
198
198
|
return !0;
|
|
199
199
|
let l = !1, u = !1;
|
|
@@ -419,9 +419,9 @@ const re = {
|
|
|
419
419
|
const a = _(), { roles: t, permission: s } = e.meta || {};
|
|
420
420
|
if (F(t) && F(s))
|
|
421
421
|
return !0;
|
|
422
|
-
if (
|
|
422
|
+
if (Se.VITE_PERMISSION_MODE === "role")
|
|
423
423
|
return F(t) ? !0 : a.hasRole(t);
|
|
424
|
-
if (
|
|
424
|
+
if (Se.VITE_PERMISSION_MODE === "permit") {
|
|
425
425
|
let n = !1, o = !1;
|
|
426
426
|
return F(t) || (n = a.hasRole(t)), a.isAdmin() ? n : (F(s) || (o = a.hasPermit(e.path, s)), n || o);
|
|
427
427
|
}
|
|
@@ -475,7 +475,7 @@ const re = {
|
|
|
475
475
|
});
|
|
476
476
|
},
|
|
477
477
|
async getRemoteAppList() {
|
|
478
|
-
return
|
|
478
|
+
return j(Qt.appList, {
|
|
479
479
|
Query: {
|
|
480
480
|
AppCode: this.appInfo.AppCode,
|
|
481
481
|
Enabled: 1
|
|
@@ -656,21 +656,21 @@ const re = {
|
|
|
656
656
|
url: "/api/LoginSrv/logout",
|
|
657
657
|
loadingText: "正在退出..."
|
|
658
658
|
}
|
|
659
|
-
},
|
|
659
|
+
}, Gt = (e) => {
|
|
660
660
|
let a = {
|
|
661
661
|
Option: {
|
|
662
662
|
Mode: "MicroApp"
|
|
663
663
|
},
|
|
664
664
|
Query: e
|
|
665
665
|
};
|
|
666
|
-
return
|
|
667
|
-
},
|
|
666
|
+
return j(Qe.login, a).then((t) => (t == null ? void 0 : t.status) === T.SUCCESS ? t : null);
|
|
667
|
+
}, jt = (e) => {
|
|
668
668
|
let a = {
|
|
669
669
|
Query: {
|
|
670
670
|
AppId: e
|
|
671
671
|
}
|
|
672
672
|
};
|
|
673
|
-
return
|
|
673
|
+
return j(Qe.auth, a).then((t) => {
|
|
674
674
|
if ((t == null ? void 0 : t.status) === T.SUCCESS)
|
|
675
675
|
return t.data;
|
|
676
676
|
if ((t == null ? void 0 : t.errno) == Oe) {
|
|
@@ -684,7 +684,7 @@ const re = {
|
|
|
684
684
|
Option: {},
|
|
685
685
|
Query: {}
|
|
686
686
|
};
|
|
687
|
-
return
|
|
687
|
+
return j(Qe.logout, e).then((a) => (a == null ? void 0 : a.status) === T.SUCCESS ? a.data : null);
|
|
688
688
|
}, Wt = (e) => {
|
|
689
689
|
try {
|
|
690
690
|
const a = JSON.parse(atob(e.token.split(".")[1]));
|
|
@@ -718,7 +718,7 @@ const re = {
|
|
|
718
718
|
* @returns
|
|
719
719
|
*/
|
|
720
720
|
async login(e, a) {
|
|
721
|
-
const t = await
|
|
721
|
+
const t = await Gt(e);
|
|
722
722
|
if (t) {
|
|
723
723
|
const s = t;
|
|
724
724
|
if (s.errno)
|
|
@@ -749,7 +749,7 @@ const re = {
|
|
|
749
749
|
if (te.value && te.value.appId === e)
|
|
750
750
|
return !0;
|
|
751
751
|
try {
|
|
752
|
-
const a = await
|
|
752
|
+
const a = await jt(e);
|
|
753
753
|
return a ? (te.value = {
|
|
754
754
|
appId: e,
|
|
755
755
|
permits: a.permits || [],
|
|
@@ -887,12 +887,12 @@ const re = {
|
|
|
887
887
|
JSON.parse(JSON.stringify(s.params ?? {})),
|
|
888
888
|
JSON.parse(JSON.stringify(a.params ?? {}))
|
|
889
889
|
);
|
|
890
|
-
return a.processParams && (n = a.processParams(n)), a.loadingState && (a.loadingState.value = !0), a.hideErrorToast && (s.hideErrorToast = !0),
|
|
890
|
+
return a.processParams && (n = a.processParams(n)), a.loadingState && (a.loadingState.value = !0), a.hideErrorToast && (s.hideErrorToast = !0), j(s, n).then((o) => (a.loadingState && (a.loadingState.value = !1), (o == null ? void 0 : o.errno) == Oe ? (_().logout(!1), null) : o)).catch((o) => (a.loadingState && (a.loadingState.value = !1), null));
|
|
891
891
|
}, Je = (e, a) => {
|
|
892
892
|
a.params || (a.params = {}), a.params.Query || (a.params.Query = {});
|
|
893
893
|
const t = Te(e, a);
|
|
894
894
|
return a.url = t, Pe(e, a);
|
|
895
|
-
},
|
|
895
|
+
}, _a = (e, a) => (a.params || (a.params = {}), a.params.Query || (a.params.Query = {}), a.loadingText = a.loadingText === !1 ? !1 : a.loadingText || "开始执行...", a.url = Te(e, a), Pe(e, a).then((t) => ((t == null ? void 0 : t.status) === T.SUCCESS && (a.hideErrorToast || E.success("执行成功!")), t))), rt = (e, a = {}) => {
|
|
896
896
|
const t = a.primaryKey || "Id";
|
|
897
897
|
if (a.params || (a.params = {}), a.params.Query || (a.params.Query = {}), !a.params.Data)
|
|
898
898
|
return E.error("错误!无保存数据!"), Promise.resolve(null);
|
|
@@ -933,7 +933,7 @@ const re = {
|
|
|
933
933
|
return null;
|
|
934
934
|
};
|
|
935
935
|
let ie;
|
|
936
|
-
const
|
|
936
|
+
const Na = (e) => {
|
|
937
937
|
ie = new Ve({}), ie.messages({
|
|
938
938
|
required: "${label}不能为空",
|
|
939
939
|
types: {
|
|
@@ -960,7 +960,7 @@ const _a = (e) => {
|
|
|
960
960
|
},
|
|
961
961
|
...e
|
|
962
962
|
});
|
|
963
|
-
},
|
|
963
|
+
}, Da = (e) => {
|
|
964
964
|
if (!e || F(e))
|
|
965
965
|
return [];
|
|
966
966
|
const a = [], t = ie.messages(), s = (o, r, l) => {
|
|
@@ -1018,7 +1018,7 @@ const _a = (e) => {
|
|
|
1018
1018
|
const a = e.formData.value, t = e.formRules.value;
|
|
1019
1019
|
F(t) || (qe(e), e.ruleValidator || (e.ruleValidator = new Ve({}), e.ruleValidator.messages(ie.messages()), e.ruleValidator.define(t)), e.ruleResults.value = await e.ruleValidator.validate(a).then(() => {
|
|
1020
1020
|
}).catch(({ fields: s }) => s));
|
|
1021
|
-
},
|
|
1021
|
+
}, Ua = async (e, a, t) => (t || (t = new Ve({}), t.messages(ie.messages()), t.define(a)), t.validate(e).then(() => {
|
|
1022
1022
|
}).catch(({ fields: s }) => s)), qe = (e) => {
|
|
1023
1023
|
e.ruleResults.value = void 0;
|
|
1024
1024
|
}, X = () => {
|
|
@@ -1081,17 +1081,25 @@ const _a = (e) => {
|
|
|
1081
1081
|
});
|
|
1082
1082
|
}
|
|
1083
1083
|
}), s.value.length > 0 && (o.value = "error"), { msg: n, ruleErrors: s, errClass: o };
|
|
1084
|
-
},
|
|
1084
|
+
}, Ha = (e, a) => {
|
|
1085
1085
|
$e(U.LabelText, e.label || ""), $e(U.RuleKey, e.rule || "");
|
|
1086
1086
|
const t = Xt(e, a);
|
|
1087
1087
|
return $e(U.ErrInfo, t), t;
|
|
1088
|
-
},
|
|
1089
|
-
|
|
1088
|
+
}, ea = (e, a) => {
|
|
1089
|
+
if (!a)
|
|
1090
|
+
return;
|
|
1091
|
+
const [t, ...s] = e;
|
|
1092
|
+
if (e.length === 1)
|
|
1093
|
+
return a[t];
|
|
1094
|
+
if (a[t])
|
|
1095
|
+
return ea(s, a[t].fields);
|
|
1090
1096
|
}, Va = (e) => {
|
|
1097
|
+
ot(e);
|
|
1098
|
+
}, Ka = (e) => {
|
|
1091
1099
|
const a = e.page, t = e.formData.value;
|
|
1092
1100
|
t[e.primaryKey ?? a.primaryKey] = null, ot(e);
|
|
1093
|
-
},
|
|
1094
|
-
|
|
1101
|
+
}, Qa = (e) => {
|
|
1102
|
+
Ge(e), e.visible.value = !1;
|
|
1095
1103
|
}, ot = async (e) => {
|
|
1096
1104
|
var s;
|
|
1097
1105
|
const a = e.page;
|
|
@@ -1143,25 +1151,25 @@ const _a = (e) => {
|
|
|
1143
1151
|
} else
|
|
1144
1152
|
E.error((n == null ? void 0 : n.msg) ?? "保存失败!"), e.afterSave && e.afterSave(n);
|
|
1145
1153
|
});
|
|
1146
|
-
},
|
|
1154
|
+
}, Ja = async (e) => {
|
|
1147
1155
|
const a = e.page, t = e.grid;
|
|
1148
1156
|
e.isFormLoading.value = !0;
|
|
1149
1157
|
const s = e.formData.value, n = e.primaryKey ?? a.primaryKey;
|
|
1150
1158
|
return ut(t, { [n]: s[n] }, e.detailUrl).then((o) => {
|
|
1151
1159
|
e.isFormLoading.value = !1, o && it(e, o);
|
|
1152
1160
|
});
|
|
1153
|
-
},
|
|
1161
|
+
}, qa = (e) => {
|
|
1154
1162
|
const a = e.grid;
|
|
1155
|
-
a && (a.rowData.value = void 0), e && (
|
|
1163
|
+
a && (a.rowData.value = void 0), e && (Ge(e), e.visible && (e.visible.value = !1), setTimeout(() => {
|
|
1156
1164
|
e.visible.value = !0;
|
|
1157
1165
|
}, 1));
|
|
1158
1166
|
}, it = (e, a) => {
|
|
1159
|
-
|
|
1167
|
+
Ge(e);
|
|
1160
1168
|
const t = { ...e.formData.value, ...a };
|
|
1161
1169
|
e.formData.value = JSON.parse(JSON.stringify(t));
|
|
1162
|
-
},
|
|
1170
|
+
}, Ge = (e) => {
|
|
1163
1171
|
e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, qe(e);
|
|
1164
|
-
},
|
|
1172
|
+
}, Ga = (e, a) => {
|
|
1165
1173
|
const t = _();
|
|
1166
1174
|
return e.filter((n) => n.role && !t.hasRole(n.role) || n.permit && !t.hasPermit(Re.currentRoute.value.path, n.permit) || n.enabled === !1 ? !1 : typeof n.enabled == "function" ? n.enabled() : !0).filter((n) => {
|
|
1167
1175
|
if (!a) {
|
|
@@ -1180,7 +1188,7 @@ const _a = (e) => {
|
|
|
1180
1188
|
return n ? { ...s, ...n } : !1;
|
|
1181
1189
|
});
|
|
1182
1190
|
return [...t || [], ...e.filter((s) => !(t != null && t.includes(s)))];
|
|
1183
|
-
},
|
|
1191
|
+
}, ta = (e) => lt(e).then((a) => a.rows), lt = (e) => {
|
|
1184
1192
|
e.gridQuery || (e.gridQuery = {});
|
|
1185
1193
|
const a = e.remotePage ? "find" : "list";
|
|
1186
1194
|
return Je(e, {
|
|
@@ -1208,7 +1216,7 @@ const _a = (e) => {
|
|
|
1208
1216
|
rows: []
|
|
1209
1217
|
};
|
|
1210
1218
|
});
|
|
1211
|
-
},
|
|
1219
|
+
}, aa = (e, a, t = {}) => rt(e, {
|
|
1212
1220
|
urlKey: "update",
|
|
1213
1221
|
url: e.updateUrl,
|
|
1214
1222
|
params: {
|
|
@@ -1219,9 +1227,9 @@ const _a = (e) => {
|
|
|
1219
1227
|
...t
|
|
1220
1228
|
}).then((s) => ((s == null ? void 0 : s.status) === T.SUCCESS && setTimeout(() => {
|
|
1221
1229
|
e.reload.value = !0, e.afterUpdate && e.afterUpdate(a);
|
|
1222
|
-
}, 50), s)),
|
|
1230
|
+
}, 50), s)), Ba = (e, a) => {
|
|
1223
1231
|
const t = {};
|
|
1224
|
-
return t[e.primaryKey] = a[e.primaryKey], t[e.statusKey] = a[e.statusKey],
|
|
1232
|
+
return t[e.primaryKey] = a[e.primaryKey], t[e.statusKey] = a[e.statusKey], aa(e, t, {
|
|
1225
1233
|
loadingText: !1,
|
|
1226
1234
|
hideErrorToast: !0
|
|
1227
1235
|
});
|
|
@@ -1230,20 +1238,20 @@ const _a = (e) => {
|
|
|
1230
1238
|
url: t,
|
|
1231
1239
|
params: a,
|
|
1232
1240
|
loadingState: e.isGridLoading
|
|
1233
|
-
}),
|
|
1241
|
+
}), Wa = (e, a) => {
|
|
1234
1242
|
const t = a;
|
|
1235
1243
|
return ut(e, { [e.primaryKey]: t[e.primaryKey] }).then((s) => ((s == null ? void 0 : s.status) === T.SUCCESS && s.data && (e.expandRows.value[t[e.primaryKey]] = s), s));
|
|
1236
|
-
},
|
|
1244
|
+
}, za = (e, a) => {
|
|
1237
1245
|
let t = e.editor;
|
|
1238
1246
|
e.rowData.value = a, t && (it(t, a), t.visible.value = !0);
|
|
1239
|
-
},
|
|
1247
|
+
}, Ca = (e, a) => zt(e, a, {
|
|
1240
1248
|
url: e.deleteUrl,
|
|
1241
1249
|
primaryKey: e.primaryKey
|
|
1242
1250
|
}).then((t) => ((t == null ? void 0 : t.status) === T.SUCCESS && setTimeout(() => {
|
|
1243
1251
|
e.reload.value = !0, e.afterDelete && !Array.isArray(a) && e.afterDelete(a);
|
|
1244
1252
|
}, 50), t));
|
|
1245
1253
|
var De = /* @__PURE__ */ ((e) => (e.SelectReload = "Select.Reload", e.RadioReload = "Radio.Reload", e.CheckboxReload = "Checkbox.Reload", e.TreeSelectReload = "TreeSelect.Reload", e.TreeCheckReload = "TreeCheck.Reload", e))(De || {});
|
|
1246
|
-
class
|
|
1254
|
+
class sa {
|
|
1247
1255
|
constructor() {
|
|
1248
1256
|
k(this, "listeners", {});
|
|
1249
1257
|
}
|
|
@@ -1289,18 +1297,18 @@ class aa {
|
|
|
1289
1297
|
this.listeners[a] && this.listeners[a].forEach((s) => s(a, ...t));
|
|
1290
1298
|
}
|
|
1291
1299
|
}
|
|
1292
|
-
const W = new
|
|
1300
|
+
const W = new sa(), ee = (e, a, t) => {
|
|
1293
1301
|
if (a.inputFactory && (t != null && t.reloadEvent)) {
|
|
1294
1302
|
const s = a.inputFactory.value;
|
|
1295
1303
|
s.reloadHandler = (n, o) => {
|
|
1296
|
-
|
|
1304
|
+
na(a.url, a, o);
|
|
1297
1305
|
}, W.on(t.reloadEvent, s.reloadHandler);
|
|
1298
1306
|
}
|
|
1299
1307
|
if (t != null && t.data)
|
|
1300
1308
|
g(
|
|
1301
1309
|
() => t.data,
|
|
1302
1310
|
() => {
|
|
1303
|
-
|
|
1311
|
+
je(a, t.data, !0);
|
|
1304
1312
|
},
|
|
1305
1313
|
{ deep: !0, immediate: !0 }
|
|
1306
1314
|
);
|
|
@@ -1312,7 +1320,7 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1312
1320
|
duration: 5e3
|
|
1313
1321
|
});
|
|
1314
1322
|
}
|
|
1315
|
-
},
|
|
1323
|
+
}, je = (e, a, t) => {
|
|
1316
1324
|
if (t) {
|
|
1317
1325
|
const s = {
|
|
1318
1326
|
...e.fieldMap
|
|
@@ -1323,17 +1331,17 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1323
1331
|
label: "全部",
|
|
1324
1332
|
value: e.allValue ?? void 0
|
|
1325
1333
|
}), e.options.value = a;
|
|
1326
|
-
},
|
|
1327
|
-
Array.isArray(t) ?
|
|
1334
|
+
}, na = (e, a, t) => {
|
|
1335
|
+
Array.isArray(t) ? je(a, t, !0) : ct(e, a, t);
|
|
1328
1336
|
}, he = (e, a) => {
|
|
1329
1337
|
var t;
|
|
1330
1338
|
(t = e.inputFactory) != null && t.value && a.reloadEvent && e.inputFactory.value.reloadHandler && W.off(a.reloadEvent, e.inputFactory.value.reloadHandler);
|
|
1331
1339
|
}, ct = (e, a, t) => {
|
|
1332
1340
|
const s = JSON.parse(JSON.stringify(e.params ?? {})), n = JSON.parse(JSON.stringify(a.params ?? {})), o = fe(s, n, t);
|
|
1333
|
-
|
|
1334
|
-
|
|
1341
|
+
ra(e, a, a.fieldMap, o).then((r) => {
|
|
1342
|
+
je(a, r, !1);
|
|
1335
1343
|
});
|
|
1336
|
-
},
|
|
1344
|
+
}, ra = (e, a, t, s) => {
|
|
1337
1345
|
const { fieldMap: n, ...o } = e, l = {
|
|
1338
1346
|
...{
|
|
1339
1347
|
url: "",
|
|
@@ -1345,7 +1353,7 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1345
1353
|
},
|
|
1346
1354
|
...o
|
|
1347
1355
|
};
|
|
1348
|
-
return l.loadingText = !1, s || (s = {}), s.Query || (s.Query = {}), a.optionQuery = s, a.isOptionLoading.value = !0,
|
|
1356
|
+
return l.loadingText = !1, s || (s = {}), s.Query || (s.Query = {}), a.optionQuery = s, a.isOptionLoading.value = !0, j(l, s).then((u) => {
|
|
1349
1357
|
if ((u == null ? void 0 : u.status) === T.SUCCESS) {
|
|
1350
1358
|
if (u.data)
|
|
1351
1359
|
return u.data;
|
|
@@ -1357,7 +1365,7 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1357
1365
|
}).finally(() => {
|
|
1358
1366
|
a.isOptionLoading.value = !1;
|
|
1359
1367
|
});
|
|
1360
|
-
},
|
|
1368
|
+
}, oa = (e, a, t) => {
|
|
1361
1369
|
if (e === void 0) return;
|
|
1362
1370
|
const s = (o) => {
|
|
1363
1371
|
const r = { ...o };
|
|
@@ -1398,7 +1406,7 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1398
1406
|
try {
|
|
1399
1407
|
const l = parseInt(((r = n.match(/\$\{(\d+)\}/)) == null ? void 0 : r[1]) ?? "0"), u = t[l], i = n.replace(/\$\{\d+\}\./, "");
|
|
1400
1408
|
if (i && u) {
|
|
1401
|
-
const f =
|
|
1409
|
+
const f = be(i, u);
|
|
1402
1410
|
ae(e, s, f);
|
|
1403
1411
|
} else
|
|
1404
1412
|
ae(e, s, u);
|
|
@@ -1409,7 +1417,7 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1409
1417
|
console.error("outFields 格式错误:" + n, "必须是 ${index} 或者 ${index}.${key}");
|
|
1410
1418
|
}) : Object.entries(a).forEach(([s, n]) => {
|
|
1411
1419
|
if (n.includes("${")) {
|
|
1412
|
-
const o =
|
|
1420
|
+
const o = be(n, t);
|
|
1413
1421
|
ae(e, s, o);
|
|
1414
1422
|
} else
|
|
1415
1423
|
ae(e, s, t[n]);
|
|
@@ -1418,13 +1426,13 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1418
1426
|
var o, r;
|
|
1419
1427
|
const s = (o = e.inputFactory) == null ? void 0 : o.value;
|
|
1420
1428
|
s != null && s.editorCtrl && ((r = s.errInfo) != null && r.value.errClass) && de(s.editorCtrl), e.selected.value = t;
|
|
1421
|
-
const n =
|
|
1429
|
+
const n = oa(t, e.options.value);
|
|
1422
1430
|
if (e.selectedOptions.value = n, a.formData && a.outFields && ft(a.formData, a.outFields, n), a.changeEvent) {
|
|
1423
1431
|
const [l, u] = a.changeEvent;
|
|
1424
1432
|
if (u)
|
|
1425
1433
|
if (Array.isArray(l))
|
|
1426
1434
|
l.every((i) => {
|
|
1427
|
-
const f =
|
|
1435
|
+
const f = be(u, { selectedValues: t });
|
|
1428
1436
|
try {
|
|
1429
1437
|
const p = JSON.parse(f);
|
|
1430
1438
|
W.emit(i, p, t, n);
|
|
@@ -1433,7 +1441,7 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1433
1441
|
}
|
|
1434
1442
|
});
|
|
1435
1443
|
else {
|
|
1436
|
-
const i =
|
|
1444
|
+
const i = be(u, { selectedValues: t });
|
|
1437
1445
|
try {
|
|
1438
1446
|
const f = JSON.parse(i);
|
|
1439
1447
|
W.emit(l, f, t, n);
|
|
@@ -1447,7 +1455,7 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1447
1455
|
}) : W.emit(l, n, t);
|
|
1448
1456
|
}
|
|
1449
1457
|
return s != null && s.inputEmit && s.inputEmit("change", t, n), n;
|
|
1450
|
-
},
|
|
1458
|
+
}, S = {
|
|
1451
1459
|
PageOption: {
|
|
1452
1460
|
primaryKey: "Id",
|
|
1453
1461
|
statusKey: "Enabled"
|
|
@@ -1485,26 +1493,26 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1485
1493
|
value: "Id"
|
|
1486
1494
|
}
|
|
1487
1495
|
}
|
|
1488
|
-
},
|
|
1489
|
-
|
|
1490
|
-
...
|
|
1496
|
+
}, Ya = (e) => {
|
|
1497
|
+
S.PageOption = {
|
|
1498
|
+
...S.PageOption,
|
|
1491
1499
|
...e.pageOption
|
|
1492
|
-
},
|
|
1493
|
-
...
|
|
1500
|
+
}, S.GridOption = {
|
|
1501
|
+
...S.GridOption,
|
|
1494
1502
|
...e.gridOption
|
|
1495
|
-
},
|
|
1496
|
-
...
|
|
1503
|
+
}, S.EditorOption = {
|
|
1504
|
+
...S.EditorOption,
|
|
1497
1505
|
...e.editorOptions
|
|
1498
|
-
},
|
|
1499
|
-
...
|
|
1506
|
+
}, S.TreeOption = {
|
|
1507
|
+
...S.TreeOption,
|
|
1500
1508
|
...e.treeOption
|
|
1501
1509
|
};
|
|
1502
1510
|
}, Me = (e) => {
|
|
1503
1511
|
for (let a in e.urls)
|
|
1504
1512
|
e.urls[a].api || (e.urls[a].api = e.api), e.urls[a].authorize === void 0 && (e.urls[a].authorize = e.authorize);
|
|
1505
|
-
},
|
|
1513
|
+
}, ia = (e, a, t, s) => (Me(e), {
|
|
1506
1514
|
editorCtrl: {
|
|
1507
|
-
...
|
|
1515
|
+
...S.EditorOption,
|
|
1508
1516
|
name: "",
|
|
1509
1517
|
default: t ? JSON.parse(JSON.stringify(t)) : void 0,
|
|
1510
1518
|
visible: c(!1),
|
|
@@ -1518,18 +1526,18 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1518
1526
|
isFormSaving: c(!1),
|
|
1519
1527
|
isFormLoading: c(!1)
|
|
1520
1528
|
}
|
|
1521
|
-
}),
|
|
1529
|
+
}), la = (e, a, t) => {
|
|
1522
1530
|
Me(e);
|
|
1523
1531
|
const s = {
|
|
1524
|
-
...
|
|
1525
|
-
tableSize: c(
|
|
1526
|
-
selectable: c(
|
|
1527
|
-
searchBar: c(
|
|
1528
|
-
pageSize: c(
|
|
1529
|
-
rowExpand: c(
|
|
1530
|
-
buttons: c([...
|
|
1531
|
-
tools: [...
|
|
1532
|
-
operates: [...
|
|
1532
|
+
...S.GridOption,
|
|
1533
|
+
tableSize: c(S.GridOption.tableSize.value),
|
|
1534
|
+
selectable: c(S.GridOption.selectable.value),
|
|
1535
|
+
searchBar: c(S.GridOption.searchBar.value),
|
|
1536
|
+
pageSize: c(S.GridOption.pageSize.value),
|
|
1537
|
+
rowExpand: c(S.GridOption.rowExpand.value),
|
|
1538
|
+
buttons: c([...S.GridOption.buttons.value]),
|
|
1539
|
+
tools: [...S.GridOption.tools],
|
|
1540
|
+
operates: [...S.GridOption.operates],
|
|
1533
1541
|
columns: c(t || []),
|
|
1534
1542
|
reload: c(!1),
|
|
1535
1543
|
pageNo: c(1),
|
|
@@ -1552,15 +1560,15 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1552
1560
|
(n) => {
|
|
1553
1561
|
n && (setTimeout(() => {
|
|
1554
1562
|
s.reload.value = !1;
|
|
1555
|
-
}, 1), s.remotePage ? lt(s) :
|
|
1563
|
+
}, 1), s.remotePage ? lt(s) : ta(s));
|
|
1556
1564
|
}
|
|
1557
1565
|
), {
|
|
1558
1566
|
gridCtrl: s
|
|
1559
1567
|
};
|
|
1560
|
-
},
|
|
1568
|
+
}, Xa = (e, a) => {
|
|
1561
1569
|
Me(e);
|
|
1562
1570
|
const t = {
|
|
1563
|
-
...
|
|
1571
|
+
...S.TreeOption,
|
|
1564
1572
|
reload: c(!1),
|
|
1565
1573
|
page: a,
|
|
1566
1574
|
node: c(void 0),
|
|
@@ -1580,7 +1588,7 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1580
1588
|
};
|
|
1581
1589
|
}, me = (e, a) => {
|
|
1582
1590
|
const t = {
|
|
1583
|
-
...
|
|
1591
|
+
...S.OptionOption,
|
|
1584
1592
|
url: e,
|
|
1585
1593
|
reload: c(!1),
|
|
1586
1594
|
optionQuery: {},
|
|
@@ -1600,24 +1608,24 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1600
1608
|
), {
|
|
1601
1609
|
optionCtrl: t
|
|
1602
1610
|
};
|
|
1603
|
-
},
|
|
1611
|
+
}, Za = (e, a, t) => {
|
|
1604
1612
|
Me(e);
|
|
1605
1613
|
const s = {
|
|
1606
|
-
...
|
|
1614
|
+
...S.PageOption,
|
|
1607
1615
|
...e
|
|
1608
|
-
}, { editorCtrl: n } =
|
|
1616
|
+
}, { editorCtrl: n } = ia(e, s, a, t), { gridCtrl: o } = la(e, s);
|
|
1609
1617
|
return s.editor = n, s.grid = o, o.editor = n, o.tools = ["Reload", "RowHeight", "TableHeadset", "Fullscreen"], n.grid = o, {
|
|
1610
1618
|
pageCtrl: s,
|
|
1611
1619
|
editorCtrl: n,
|
|
1612
1620
|
gridCtrl: o
|
|
1613
1621
|
};
|
|
1614
|
-
},
|
|
1622
|
+
}, ua = 7 * 24 * 60 * 60 * 1e3, Ne = /* @__PURE__ */ new Map(), Xe = /* @__PURE__ */ new Set(), G = c({}), es = G, ts = (e) => {
|
|
1615
1623
|
var n;
|
|
1616
1624
|
if (!e.iconUrl) return Ue;
|
|
1617
1625
|
const a = c(!0), t = c("");
|
|
1618
1626
|
let s = !0;
|
|
1619
|
-
return (n = e.icons) != null && n.length && (s = e.icons.every((o) =>
|
|
1620
|
-
|
|
1627
|
+
return (n = e.icons) != null && n.length && (s = e.icons.every((o) => G.value[o] !== void 0)), (e.icon && !G.value[e.icon] || !s) && ca(e, a).then(() => {
|
|
1628
|
+
da(e.iconUrl, e.monoColor || !1), a.value = !0;
|
|
1621
1629
|
}), Z({
|
|
1622
1630
|
props: {
|
|
1623
1631
|
icon: {
|
|
@@ -1661,7 +1669,7 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1661
1669
|
},
|
|
1662
1670
|
{ immediate: !0 }
|
|
1663
1671
|
), g(
|
|
1664
|
-
() =>
|
|
1672
|
+
() => G.value,
|
|
1665
1673
|
() => {
|
|
1666
1674
|
ge(t, l, l.value);
|
|
1667
1675
|
},
|
|
@@ -1685,12 +1693,12 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1685
1693
|
style: {
|
|
1686
1694
|
fill: "currentColor",
|
|
1687
1695
|
cursor: this.$props.clickable ? "pointer" : "default",
|
|
1688
|
-
transform:
|
|
1696
|
+
transform: ma(this.angle, this.flip)
|
|
1689
1697
|
}
|
|
1690
1698
|
}) : H("div", { class: "w-[14px] h-[14px]" });
|
|
1691
1699
|
}
|
|
1692
1700
|
});
|
|
1693
|
-
},
|
|
1701
|
+
}, ca = (e, a) => {
|
|
1694
1702
|
let t = e.iconUrl;
|
|
1695
1703
|
if (!t)
|
|
1696
1704
|
return console.error("图标库地址不能为空"), Promise.resolve();
|
|
@@ -1701,10 +1709,10 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1701
1709
|
return new Promise(async (o) => (pt(s.scriptContent), o()));
|
|
1702
1710
|
a.value = !1;
|
|
1703
1711
|
const n = new Promise(async (o) => {
|
|
1704
|
-
await
|
|
1712
|
+
await fa(t, e.monoColor || !1), o(), Ne.delete(t);
|
|
1705
1713
|
});
|
|
1706
1714
|
return Ne.set(t, n), n;
|
|
1707
|
-
},
|
|
1715
|
+
}, fa = async (e, a) => {
|
|
1708
1716
|
try {
|
|
1709
1717
|
const t = await fetch(e);
|
|
1710
1718
|
if (!t.ok) {
|
|
@@ -1717,7 +1725,7 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1717
1725
|
const o = s.match(n);
|
|
1718
1726
|
if (o && o.length > 1) {
|
|
1719
1727
|
let r = o[1];
|
|
1720
|
-
|
|
1728
|
+
pa(e, r, a, s);
|
|
1721
1729
|
}
|
|
1722
1730
|
pt(s);
|
|
1723
1731
|
return;
|
|
@@ -1727,13 +1735,13 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1727
1735
|
}, pt = (e) => {
|
|
1728
1736
|
const a = document.createElement("script");
|
|
1729
1737
|
a.textContent = e, document.head.appendChild(a);
|
|
1730
|
-
},
|
|
1738
|
+
}, pa = (e, a, t, s) => {
|
|
1731
1739
|
let n = `icon_cache:${e}`;
|
|
1732
1740
|
const o = {
|
|
1733
1741
|
windowKey: a,
|
|
1734
1742
|
monoColor: t,
|
|
1735
1743
|
scriptContent: s,
|
|
1736
|
-
expireTime: Date.now() +
|
|
1744
|
+
expireTime: Date.now() + ua
|
|
1737
1745
|
// 缓存时间:7天
|
|
1738
1746
|
};
|
|
1739
1747
|
localStorage.setItem(n, JSON.stringify(o));
|
|
@@ -1748,7 +1756,7 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1748
1756
|
return console.error("解析缓存失败:", n), null;
|
|
1749
1757
|
}
|
|
1750
1758
|
return s.expireTime < Date.now() ? (localStorage.removeItem(e), null) : s;
|
|
1751
|
-
},
|
|
1759
|
+
}, as = () => {
|
|
1752
1760
|
const e = Date.now();
|
|
1753
1761
|
for (const a in localStorage)
|
|
1754
1762
|
if (a.startsWith("icon_cache:")) {
|
|
@@ -1757,7 +1765,7 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1757
1765
|
}
|
|
1758
1766
|
}, ge = (e, a, t) => {
|
|
1759
1767
|
setTimeout(() => {
|
|
1760
|
-
a.value = t, a.value && (e.value =
|
|
1768
|
+
a.value = t, a.value && (e.value = G.value[a.value]);
|
|
1761
1769
|
}, 1);
|
|
1762
1770
|
}, Ue = H(
|
|
1763
1771
|
"svg",
|
|
@@ -1779,23 +1787,23 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1779
1787
|
fill: "currentColor"
|
|
1780
1788
|
})
|
|
1781
1789
|
]
|
|
1782
|
-
),
|
|
1790
|
+
), da = (e, a) => {
|
|
1783
1791
|
const t = dt(e);
|
|
1784
1792
|
Object.keys(window).forEach((s) => {
|
|
1785
|
-
s.startsWith("_iconfont_svg_string_") && (t == null ? void 0 : t.windowKey) === s && !Xe.has(s) && (Xe.add(s),
|
|
1793
|
+
s.startsWith("_iconfont_svg_string_") && (t == null ? void 0 : t.windowKey) === s && !Xe.has(s) && (Xe.add(s), ha(s, a));
|
|
1786
1794
|
});
|
|
1787
|
-
},
|
|
1795
|
+
}, ha = (e, a) => {
|
|
1788
1796
|
const t = window[e], o = new DOMParser().parseFromString(t, "image/svg+xml").getElementsByTagName("symbol"), r = document.querySelectorAll("symbol");
|
|
1789
1797
|
for (const l of o) {
|
|
1790
1798
|
const u = l.id, i = Array.from(r).find((f) => f.id === u);
|
|
1791
1799
|
i && a && (i.innerHTML = l.innerHTML, i.querySelectorAll("*").forEach((f) => {
|
|
1792
1800
|
f.hasAttribute("fill") && f.removeAttribute("fill");
|
|
1793
|
-
})),
|
|
1801
|
+
})), G.value[u] || (G.value[u] = H("svg", { fill: "currentColor" }, [H("use", { "xlink:href": `#${u}` })]));
|
|
1794
1802
|
}
|
|
1795
|
-
},
|
|
1803
|
+
}, ma = (e, a) => {
|
|
1796
1804
|
let t = "";
|
|
1797
1805
|
return e && (t += `rotate(${e}deg)`), a && (t += " scaleX(-1)"), t;
|
|
1798
|
-
},
|
|
1806
|
+
}, ss = (e, a, t, s) => {
|
|
1799
1807
|
ht(e, [], t, s).forEach((o) => a.push(o));
|
|
1800
1808
|
}, ht = (e, a, t, s) => {
|
|
1801
1809
|
var r, l, u, i, f;
|
|
@@ -1815,7 +1823,7 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1815
1823
|
(d.length > 0 || !p.children) && n.push(R);
|
|
1816
1824
|
}
|
|
1817
1825
|
return n;
|
|
1818
|
-
}, Ze = yt([]),
|
|
1826
|
+
}, Ze = yt([]), ns = () => {
|
|
1819
1827
|
Ze.length = 0;
|
|
1820
1828
|
const e = K();
|
|
1821
1829
|
let t = Ke().TabActive;
|
|
@@ -1828,7 +1836,7 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1828
1836
|
};
|
|
1829
1837
|
Ze.push(r);
|
|
1830
1838
|
});
|
|
1831
|
-
},
|
|
1839
|
+
}, va = {
|
|
1832
1840
|
host: {
|
|
1833
1841
|
api: "SITEHOST_API",
|
|
1834
1842
|
url: "/openapi/RCSiteHostSrv/get",
|
|
@@ -1840,7 +1848,7 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1840
1848
|
// 不显示错误
|
|
1841
1849
|
hideErrorToast: !0
|
|
1842
1850
|
}
|
|
1843
|
-
},
|
|
1851
|
+
}, rs = ce("hostInfo", {
|
|
1844
1852
|
state: () => ({
|
|
1845
1853
|
hostInfo: {
|
|
1846
1854
|
Host: "",
|
|
@@ -1873,7 +1881,7 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1873
1881
|
return (!t || t === "/") && (t = window.location.origin), t.endsWith("/") && (t = t.slice(0, -1)), new Promise((s) => {
|
|
1874
1882
|
Fe.SITEHOST_API || (Fe.SITEHOST_API = t);
|
|
1875
1883
|
const n = a || window.location.origin;
|
|
1876
|
-
|
|
1884
|
+
j(va.host, {
|
|
1877
1885
|
Query: {
|
|
1878
1886
|
Host: n
|
|
1879
1887
|
}
|
|
@@ -1930,7 +1938,7 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1930
1938
|
// storage: localStorage,
|
|
1931
1939
|
// pick: ['hostInfo'],
|
|
1932
1940
|
// },
|
|
1933
|
-
}),
|
|
1941
|
+
}), os = ce("settingInfo", {
|
|
1934
1942
|
state: () => ({
|
|
1935
1943
|
fullscreen: !1,
|
|
1936
1944
|
menuCollapse: !1,
|
|
@@ -1972,7 +1980,7 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
1972
1980
|
}
|
|
1973
1981
|
},
|
|
1974
1982
|
persist: !1
|
|
1975
|
-
}),
|
|
1983
|
+
}), is = /* @__PURE__ */ Z({
|
|
1976
1984
|
__name: "index",
|
|
1977
1985
|
props: {
|
|
1978
1986
|
...pe,
|
|
@@ -2009,10 +2017,10 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
2009
2017
|
o && he(o, t);
|
|
2010
2018
|
}), (p, v) => {
|
|
2011
2019
|
var d;
|
|
2012
|
-
return r.value.length === 2 ? (w(), Ae(
|
|
2020
|
+
return r.value.length === 2 ? (w(), Ae(b(bt), ue({
|
|
2013
2021
|
key: 0,
|
|
2014
2022
|
class: [
|
|
2015
|
-
((d =
|
|
2023
|
+
((d = b(i)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : "",
|
|
2016
2024
|
"bg-blue-300",
|
|
2017
2025
|
"w-[58px]"
|
|
2018
2026
|
],
|
|
@@ -2024,7 +2032,7 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
2024
2032
|
}, p.$attrs), null, 16, ["class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : z("", !0);
|
|
2025
2033
|
};
|
|
2026
2034
|
}
|
|
2027
|
-
}),
|
|
2035
|
+
}), ls = /* @__PURE__ */ Z({
|
|
2028
2036
|
inheritAttrs: !1,
|
|
2029
2037
|
__name: "index",
|
|
2030
2038
|
props: {
|
|
@@ -2095,21 +2103,21 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
2095
2103
|
}), (y, x) => {
|
|
2096
2104
|
var h;
|
|
2097
2105
|
return w(), $("div", null, [
|
|
2098
|
-
C(
|
|
2106
|
+
C(b(It), ue({
|
|
2099
2107
|
value: l.value,
|
|
2100
2108
|
"onUpdate:value": x[0] || (x[0] = (I) => l.value = I),
|
|
2101
|
-
class: ["w-full", (h =
|
|
2109
|
+
class: ["w-full", (h = b(i)) == null ? void 0 : h.errClass],
|
|
2102
2110
|
options: v.value,
|
|
2103
2111
|
onSearch: d,
|
|
2104
2112
|
onSelect: R
|
|
2105
|
-
},
|
|
2113
|
+
}, b(s), { "allow-clear": !1 }), {
|
|
2106
2114
|
option: Q(({ label: I }) => [
|
|
2107
2115
|
we(Y(I), 1)
|
|
2108
2116
|
]),
|
|
2109
2117
|
default: Q(() => [
|
|
2110
|
-
C(
|
|
2118
|
+
C(b(At), {
|
|
2111
2119
|
"allow-clear": "",
|
|
2112
|
-
placeholder: "请输入并选择" +
|
|
2120
|
+
placeholder: "请输入并选择" + b(f)
|
|
2113
2121
|
}, null, 8, ["placeholder"])
|
|
2114
2122
|
]),
|
|
2115
2123
|
_: 1
|
|
@@ -2117,10 +2125,10 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
2117
2125
|
]);
|
|
2118
2126
|
};
|
|
2119
2127
|
}
|
|
2120
|
-
}),
|
|
2128
|
+
}), ga = { class: "min-h-[32px] pt-[5px]" }, ya = {
|
|
2121
2129
|
key: 1,
|
|
2122
2130
|
class: "text-center text-gray-500"
|
|
2123
|
-
},
|
|
2131
|
+
}, us = /* @__PURE__ */ Z({
|
|
2124
2132
|
inheritAttrs: !1,
|
|
2125
2133
|
__name: "index",
|
|
2126
2134
|
props: {
|
|
@@ -2175,20 +2183,20 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
2175
2183
|
}), r && ee(r.autoload, r, t);
|
|
2176
2184
|
}), le(() => {
|
|
2177
2185
|
r && he(r, t);
|
|
2178
|
-
}), (y, x) => (w(), $("div",
|
|
2179
|
-
C(
|
|
2186
|
+
}), (y, x) => (w(), $("div", ga, [
|
|
2187
|
+
C(b(Et), ue({
|
|
2180
2188
|
onChange: p,
|
|
2181
2189
|
class: "w-full mb-[-3px]"
|
|
2182
|
-
},
|
|
2190
|
+
}, b(s)), {
|
|
2183
2191
|
default: Q(() => [
|
|
2184
2192
|
f.value.length > 0 ? (w(!0), $(oe, { key: 0 }, He(f.value, (h) => {
|
|
2185
2193
|
var I;
|
|
2186
|
-
return w(), Ae(
|
|
2194
|
+
return w(), Ae(b(xt), {
|
|
2187
2195
|
key: h.value,
|
|
2188
2196
|
value: h.value,
|
|
2189
2197
|
disabled: h.disabled || h.value && e.disabledItems && e.disabledItems.indexOf(h.value.toString()) > -1,
|
|
2190
2198
|
class: tt([
|
|
2191
|
-
((I =
|
|
2199
|
+
((I = b(u)) == null ? void 0 : I.errClass) === "error" ? "error !text-red-400" : "",
|
|
2192
2200
|
"text-nowrap",
|
|
2193
2201
|
"pb-1",
|
|
2194
2202
|
e.wrap ? `w-1/${t.wrap}` : ""
|
|
@@ -2199,16 +2207,16 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
2199
2207
|
]),
|
|
2200
2208
|
_: 2
|
|
2201
2209
|
}, 1032, ["value", "disabled", "class"]);
|
|
2202
|
-
}), 128)) : e.nodata ? (w(), $("div",
|
|
2210
|
+
}), 128)) : e.nodata ? (w(), $("div", ya, Y(e.nodata), 1)) : z("", !0)
|
|
2203
2211
|
]),
|
|
2204
2212
|
_: 1
|
|
2205
2213
|
}, 16)
|
|
2206
2214
|
]));
|
|
2207
2215
|
}
|
|
2208
|
-
}),
|
|
2216
|
+
}), Sa = { class: "min-h-[32px] pt-1" }, ba = {
|
|
2209
2217
|
key: 1,
|
|
2210
2218
|
class: "text-center text-gray-500"
|
|
2211
|
-
},
|
|
2219
|
+
}, cs = /* @__PURE__ */ Z({
|
|
2212
2220
|
inheritAttrs: !1,
|
|
2213
2221
|
__name: "index",
|
|
2214
2222
|
props: {
|
|
@@ -2277,26 +2285,26 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
2277
2285
|
}), r && ee(r.autoload, r, t);
|
|
2278
2286
|
}), le(() => {
|
|
2279
2287
|
r && he(r, t);
|
|
2280
|
-
}), (h, I) => (w(), $("div",
|
|
2281
|
-
C(
|
|
2288
|
+
}), (h, I) => (w(), $("div", Sa, [
|
|
2289
|
+
C(b(wt), ue({
|
|
2282
2290
|
value: u.value,
|
|
2283
2291
|
"onUpdate:value": I[0] || (I[0] = (O) => u.value = O),
|
|
2284
2292
|
autocheck: !1,
|
|
2285
2293
|
onChange: d,
|
|
2286
2294
|
class: "w-full flex align-items flex-wrap mb-[-3px]"
|
|
2287
|
-
},
|
|
2295
|
+
}, b(s)), {
|
|
2288
2296
|
default: Q(() => [
|
|
2289
2297
|
f.value.length > 0 ? (w(!0), $(oe, { key: 0 }, He(f.value, (O) => {
|
|
2290
2298
|
var q;
|
|
2291
2299
|
return w(), $(oe, {
|
|
2292
2300
|
key: O.value
|
|
2293
2301
|
}, [
|
|
2294
|
-
O.visible !== !1 ? (w(), Ae(
|
|
2302
|
+
O.visible !== !1 ? (w(), Ae(b(Rt), {
|
|
2295
2303
|
key: 0,
|
|
2296
2304
|
checked: v(O.value, t.value),
|
|
2297
2305
|
value: O.value,
|
|
2298
2306
|
class: tt([
|
|
2299
|
-
((q =
|
|
2307
|
+
((q = b(i)) == null ? void 0 : q.errClass) === "error" ? "error !text-red-400" : "",
|
|
2300
2308
|
"text-nowrap",
|
|
2301
2309
|
"pb-1",
|
|
2302
2310
|
e.wrap ? `w-1/${t.wrap}` : ""
|
|
@@ -2314,10 +2322,10 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
2314
2322
|
}, 16, ["value"])
|
|
2315
2323
|
]));
|
|
2316
2324
|
}
|
|
2317
|
-
}),
|
|
2325
|
+
}), Ia = {
|
|
2318
2326
|
key: 0,
|
|
2319
2327
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
2320
|
-
},
|
|
2328
|
+
}, fs = /* @__PURE__ */ Z({
|
|
2321
2329
|
inheritAttrs: !1,
|
|
2322
2330
|
__name: "index",
|
|
2323
2331
|
props: {
|
|
@@ -2431,24 +2439,24 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
2431
2439
|
}), (m, P) => {
|
|
2432
2440
|
var D, Be, We;
|
|
2433
2441
|
return w(), $("div", null, [
|
|
2434
|
-
(Be = (D =
|
|
2435
|
-
C(
|
|
2436
|
-
P[1] || (P[1] =
|
|
2442
|
+
(Be = (D = b(i)) == null ? void 0 : D.url) != null && Be.loading ? (w(), $("div", Ia, [
|
|
2443
|
+
C(b(Ue), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
2444
|
+
P[1] || (P[1] = St("span", null, "数据加载中...", -1))
|
|
2437
2445
|
])) : z("", !0),
|
|
2438
|
-
C(
|
|
2439
|
-
class: [(We =
|
|
2446
|
+
C(b(Ot), ue({
|
|
2447
|
+
class: [(We = b(r)) == null ? void 0 : We.errClass, "w-full"],
|
|
2440
2448
|
value: d.value,
|
|
2441
2449
|
"onUpdate:value": P[0] || (P[0] = (B) => d.value = B),
|
|
2442
2450
|
"allow-clear": !0,
|
|
2443
2451
|
onChange: y,
|
|
2444
2452
|
placeholder: v.value,
|
|
2445
2453
|
"label-in-value": !1
|
|
2446
|
-
},
|
|
2454
|
+
}, b(f)), {
|
|
2447
2455
|
default: Q(() => [
|
|
2448
2456
|
(w(!0), $(oe, null, He(x.value, (B) => (w(), $(oe, {
|
|
2449
2457
|
key: B.value
|
|
2450
2458
|
}, [
|
|
2451
|
-
B.visible !== !1 ? (w(), Ae(
|
|
2459
|
+
B.visible !== !1 ? (w(), Ae(b(Tt), {
|
|
2452
2460
|
key: 0,
|
|
2453
2461
|
value: B.value
|
|
2454
2462
|
}, {
|
|
@@ -2464,90 +2472,91 @@ const W = new aa(), ee = (e, a, t) => {
|
|
|
2464
2472
|
]);
|
|
2465
2473
|
};
|
|
2466
2474
|
}
|
|
2467
|
-
}),
|
|
2475
|
+
}), Aa = c(!1), ps = {
|
|
2468
2476
|
label: "模板管理",
|
|
2469
2477
|
key: "uploadTemp",
|
|
2470
2478
|
type: "primary",
|
|
2471
2479
|
icon: "icon-download",
|
|
2472
2480
|
click: () => {
|
|
2473
|
-
|
|
2481
|
+
Aa.value = !0;
|
|
2474
2482
|
}
|
|
2475
2483
|
};
|
|
2476
2484
|
export {
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2485
|
+
Ja as $,
|
|
2486
|
+
Le as A,
|
|
2487
|
+
ke as B,
|
|
2488
|
+
de as C,
|
|
2481
2489
|
us as D,
|
|
2482
2490
|
cs as E,
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2491
|
+
fs as F,
|
|
2492
|
+
Je as G,
|
|
2493
|
+
Nt as H,
|
|
2494
|
+
Ya as I,
|
|
2487
2495
|
ia as J,
|
|
2488
|
-
|
|
2496
|
+
la as K,
|
|
2489
2497
|
Oe as L,
|
|
2490
2498
|
Xa as M,
|
|
2491
|
-
|
|
2499
|
+
Za as N,
|
|
2492
2500
|
N as O,
|
|
2493
2501
|
U as P,
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2502
|
+
oa as Q,
|
|
2503
|
+
ft as R,
|
|
2504
|
+
es as S,
|
|
2505
|
+
as as T,
|
|
2498
2506
|
ha as U,
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
za as
|
|
2534
|
-
|
|
2507
|
+
ma as V,
|
|
2508
|
+
ss as W,
|
|
2509
|
+
Ze as X,
|
|
2510
|
+
ns as Y,
|
|
2511
|
+
ot as Z,
|
|
2512
|
+
is as _,
|
|
2513
|
+
os as a,
|
|
2514
|
+
it as a0,
|
|
2515
|
+
Na as a1,
|
|
2516
|
+
Ua as a2,
|
|
2517
|
+
qe as a3,
|
|
2518
|
+
Da as a4,
|
|
2519
|
+
ja as a5,
|
|
2520
|
+
aa as a6,
|
|
2521
|
+
ut as a7,
|
|
2522
|
+
Wa as a8,
|
|
2523
|
+
_a as a9,
|
|
2524
|
+
rt as aa,
|
|
2525
|
+
zt as ab,
|
|
2526
|
+
De as ac,
|
|
2527
|
+
W as ad,
|
|
2528
|
+
re as ae,
|
|
2529
|
+
ne as af,
|
|
2530
|
+
ye as ag,
|
|
2531
|
+
K as ah,
|
|
2532
|
+
rs as ai,
|
|
2533
|
+
Ke as aj,
|
|
2534
|
+
Aa as ak,
|
|
2535
|
+
ps as al,
|
|
2536
|
+
ie as am,
|
|
2537
|
+
Ka as b,
|
|
2538
|
+
ts as c,
|
|
2539
|
+
Qa as d,
|
|
2540
|
+
Ha as e,
|
|
2541
|
+
za as f,
|
|
2542
|
+
ea as g,
|
|
2543
|
+
Ca as h,
|
|
2535
2544
|
F as i,
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2545
|
+
Ga as j,
|
|
2546
|
+
qa as k,
|
|
2547
|
+
lt as l,
|
|
2548
|
+
ta as m,
|
|
2549
|
+
Ba as n,
|
|
2550
|
+
Va as o,
|
|
2551
|
+
Yt as p,
|
|
2543
2552
|
Ct as q,
|
|
2544
2553
|
Re as r,
|
|
2545
|
-
|
|
2546
|
-
|
|
2554
|
+
ls as s,
|
|
2555
|
+
pe as t,
|
|
2547
2556
|
_ as u,
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2557
|
+
X as v,
|
|
2558
|
+
me as w,
|
|
2559
|
+
ee as x,
|
|
2560
|
+
he as y,
|
|
2561
|
+
Ue as z
|
|
2553
2562
|
};
|