@utogether/udp-core 2.0.0-beta.25 → 2.0.0-beta.26
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/{403-QwBKrRZE.js → 403-D6Wb3JJh.js} +1 -1
- package/dist/{404-Cr7MbzNV.js → 404-B_HNbPNV.js} +1 -1
- package/dist/{500-B7kCOeIA.js → 500-BMemTTy1.js} +1 -1
- package/dist/{AuthorityInfo-Dwml2K4S.js → AuthorityInfo-6wHxwiFM.js} +1 -1
- package/dist/{AuthorityPanel-DzPhsPpa.js → AuthorityPanel-OqF_DvXA.js} +1 -1
- package/dist/{Company-BhOlvl7Q.js → Company-BLXSfow0.js} +1 -1
- package/dist/{CompanyPanel-ByhY5-Sq.js → CompanyPanel-B4kRZ5Cg.js} +1 -1
- package/dist/{Department-QvngN63N.js → Department-oFhsa7cd.js} +1 -1
- package/dist/{DepartmentPanel-DntGycxr.js → DepartmentPanel-B1UGpu-r.js} +2 -2
- package/dist/DepartmentPanel-BL58AdoT.js +2 -0
- package/dist/{DesignPanel-BMN4DZ0R.js → DesignPanel-DmkFVw1N.js} +2 -2
- package/dist/{DictView-ERFqZ5VD.js → DictView-CC5yMzOq.js} +1 -1
- package/dist/{Preview-CVZdnHB1.js → Preview-CAzWxLmP.js} +1 -1
- package/dist/{ReportDesign-CjfTyyy_.js → ReportDesign-DwchGG2P.js} +1 -1
- package/dist/{ReportQuery-CP-E0Puv.js → ReportQuery-D5jaRJEn.js} +1 -1
- package/dist/{ReportQueryFrom-D7SPPAps.js → ReportQueryFrom-CNlmtYey.js} +1 -1
- package/dist/{ReportTemplate-DE25zc1f.js → ReportTemplate-CNcTmccs.js} +1 -1
- package/dist/{Role-K7v_ZhFE.js → Role-Be8WfdCA.js} +1 -1
- package/dist/{RoleAssign-C16fjLaX.js → RoleAssign-CtehGAUf.js} +1 -1
- package/dist/{RolePanel-DPCe9k8f.js → RolePanel-CAwITg_q.js} +1 -1
- package/dist/{RolePanel-CV-xPlYJ.js → RolePanel-SN0FGFZ7.js} +3 -3
- package/dist/{Staff-w2ly4qd0.js → Staff-V2YsNKcj.js} +1 -1
- package/dist/{StaffInfo-DPDRpz6F.js → StaffInfo-CKRPW0r4.js} +1 -1
- package/dist/{StaffPanel-DI1eTTp9.js → StaffPanel-BxcgMg7u.js} +2 -2
- package/dist/{SysUser-BMTX1cJM.js → SysUser-Dxyj5w5m.js} +1 -1
- package/dist/{SysUserPanel-xwZdVjdp.js → SysUserPanel-DI6CWcZo.js} +1 -1
- package/dist/{SystemMenu-TXhiQZVm.js → SystemMenu-BBHREM8T.js} +2 -2
- package/dist/{UserInfo-JQqw8FMT.js → UserInfo-BMVQ0xwE.js} +1 -1
- package/dist/{authority-Bi6BGB5B.js → authority-BJFEUdrh.js} +1 -1
- package/dist/{childView-CyrcwshT.js → childView-BBjPEraB.js} +1 -1
- package/dist/{childView-Bk8OD9bV.js → childView-DNqG2UVm.js} +1 -1
- package/dist/core.es.js +5 -5
- package/dist/{layoutView-DFUjrqAS.js → layoutView-B6Mx2ERA.js} +237 -237
- package/dist/{login-BdCDnuXL.js → login-D_Hjy3Jd.js} +82 -84
- package/dist/{lov-view-DkmG4K57.js → lov-view-DM5Nm5tW.js} +1 -1
- package/dist/{menuInfo-kp2wNYOp.js → menuInfo-BlOY1KZW.js} +1 -1
- package/dist/{su-welcome-JeiovGpe.js → su-welcome-DVD3S_du.js} +4 -4
- package/dist/{router-CeluSGiD.js → system-Cm3lyBas.js} +451 -454
- package/dist/{udp-core-Dhm-BlAs.js → udp-core-DaQd5CF1.js} +212 -216
- package/dist/udp-core.css +1 -1
- package/dist/{useDataThemeChange-BCy8JBG7.js → useDataThemeChange-DJ4K3VGp.js} +31 -31
- package/dist/{useNav-DY8FkltH.js → useNav-BhOJIdrJ.js} +8 -8
- package/package.json +1 -1
- package/src/App.vue +5 -0
- package/src/components/udp/grid/index.vue +9 -11
- package/src/components/udp/utils.ts +420 -414
- package/src/main.ts +109 -110
- package/src/router/utils.ts +2 -3
- package/src/views/login/login-view.vue +297 -301
- package/src/views/ulogin/login.vue +3 -32
- package/dist/DepartmentPanel-BCXqC39J.js +0 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as e,
|
|
2
|
-
import { a as S, c as C, i as w, l as T, n as
|
|
3
|
-
import { s as
|
|
4
|
-
import { t as
|
|
5
|
-
import { a as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { n as
|
|
9
|
-
import { t as
|
|
10
|
-
import * as
|
|
11
|
-
import { Fragment as
|
|
1
|
+
import { A as e, D as t, I as n, M as r, N as i, O as a, P as o, S as s, T as c, _ as l, a as u, b as d, f, g as p, h as m, j as h, k as g, m as _, n as v, t as y, u as b, w as x } from "./system-Cm3lyBas.js";
|
|
2
|
+
import { a as S, c as C, i as w, l as T, n as E, r as D, s as ee, t as O, u as te } from "./api-BFNxcxSN.js";
|
|
3
|
+
import { s as k } from "./contant-Q77dU_V3.js";
|
|
4
|
+
import { t as A } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
5
|
+
import { a as ne, i as re, t as ie } from "./useDataThemeChange-DJ4K3VGp.js";
|
|
6
|
+
import { t as ae } from "./authority-BJFEUdrh.js";
|
|
7
|
+
import { t as oe } from "./await-to-js.es5-DkWYmPXW.js";
|
|
8
|
+
import { n as se, t as ce } from "./ReIcon-DecitXmg.js";
|
|
9
|
+
import { t as j } from "./mitt-CQgI7DYU.js";
|
|
10
|
+
import * as le from "vue";
|
|
11
|
+
import { Fragment as ue, computed as de, createApp as fe, createBlock as M, createCommentVNode as N, createElementBlock as P, createElementVNode as F, createSlots as pe, createVNode as I, defineComponent as L, getCurrentInstance as me, mergeModels as he, mergeProps as R, nextTick as z, normalizeClass as B, normalizeStyle as ge, onBeforeMount as _e, onUnmounted as ve, openBlock as V, reactive as ye, ref as H, renderList as be, renderSlot as xe, resolveComponent as U, toDisplayString as W, toHandlers as Se, toRaw as Ce, unref as we, useAttrs as Te, useModel as Ee, vModelText as De, watch as Oe, withCtx as G, withDirectives as ke } from "vue";
|
|
12
12
|
import { ElConfigProvider as Ae } from "element-plus";
|
|
13
13
|
import { checkVersion as je } from "version-rocket";
|
|
14
14
|
import { cookies as K, dbstorage as Me, delay as Ne, errorMessage as Pe, formatRules as Fe, i18nColums as Ie, storageLocal as Le, useRender as Re, warnMessage as ze } from "@utogether/utils";
|
|
@@ -372,22 +372,25 @@ var Qe = {
|
|
|
372
372
|
indicator: "幻灯片切换至索引 {index}"
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
|
-
}, et =
|
|
375
|
+
}, et = L({
|
|
376
376
|
name: "app",
|
|
377
377
|
components: { [Ae.name]: Ae },
|
|
378
378
|
computed: { currentLocale() {
|
|
379
379
|
return this.$storage?.locale?.locale === "zh" ? $e : Qe;
|
|
380
380
|
} },
|
|
381
381
|
async beforeCreate() {
|
|
382
|
-
await
|
|
382
|
+
await D().get("/upfm/v1/sysConfig", {}).then((e) => {
|
|
383
383
|
let t = {};
|
|
384
384
|
e.list?.forEach((e) => {
|
|
385
|
-
t[e.configCode] = e.configValue, e.fileName && (t[e.configCode] =
|
|
386
|
-
}), t.title = e.list?.find((e) => e.configCode === "title")?.configValue || "U-DP", Le.setItem(
|
|
385
|
+
t[e.configCode] = e.configValue, e.fileName && (t[e.configCode] = O() + "/ufil" + e.configValue);
|
|
386
|
+
}), t.title = e.list?.find((e) => e.configCode === "title")?.configValue || "U-DP", Le.setItem(k, t), this.pollingVersion(t.title);
|
|
387
387
|
});
|
|
388
388
|
},
|
|
389
|
+
mounted() {
|
|
390
|
+
h().then((e) => y().setDict(e));
|
|
391
|
+
},
|
|
389
392
|
methods: { pollingVersion(e) {
|
|
390
|
-
let t =
|
|
393
|
+
let t = ee().VITE_ROUTER_HISTORY;
|
|
391
394
|
je({
|
|
392
395
|
pollingTime: 3e5,
|
|
393
396
|
checkOriginSpecifiedFilesUrl: [`${location.origin}${t ? `/${t}` : ""}/index.html`],
|
|
@@ -404,16 +407,16 @@ var Qe = {
|
|
|
404
407
|
//#region src/App.vue
|
|
405
408
|
function tt(e, t, n, r, i, a) {
|
|
406
409
|
let o = U("router-view"), s = U("el-config-provider");
|
|
407
|
-
return V(),
|
|
410
|
+
return V(), M(s, {
|
|
408
411
|
size: "small",
|
|
409
412
|
"z-index": 5555,
|
|
410
413
|
locale: e.currentLocale
|
|
411
414
|
}, {
|
|
412
|
-
default: G(() => [
|
|
415
|
+
default: G(() => [I(o)]),
|
|
413
416
|
_: 1
|
|
414
417
|
}, 8, ["locale"]);
|
|
415
418
|
}
|
|
416
|
-
var nt = /* @__PURE__ */
|
|
419
|
+
var nt = /* @__PURE__ */ A(et, [["render", tt]]), rt = Object.defineProperty, it = Object.getOwnPropertyDescriptor, at = Object.getOwnPropertyNames, ot = Object.prototype.hasOwnProperty, st = (e, t, n) => t in e ? rt(e, t, {
|
|
417
420
|
enumerable: !0,
|
|
418
421
|
configurable: !0,
|
|
419
422
|
writable: !0,
|
|
@@ -430,7 +433,7 @@ var nt = /* @__PURE__ */ k(et, [["render", tt]]), rt = Object.defineProperty, it
|
|
|
430
433
|
});
|
|
431
434
|
return e;
|
|
432
435
|
}, ut = (e, t, n) => (lt(e, t, "default"), n && lt(n, t, "default")), dt = (e, t, n) => (st(e, typeof t == "symbol" ? t : t + "", n), n), ft = {};
|
|
433
|
-
ct(ft, { Vue: () =>
|
|
436
|
+
ct(ft, { Vue: () => le }), ut(ft, le);
|
|
434
437
|
var pt = class {
|
|
435
438
|
static install(e, t) {
|
|
436
439
|
let { nameSpace: n = this._nameSpace, memory: r } = t;
|
|
@@ -469,9 +472,9 @@ dt(Q, "_nameSpace", "rs-"), dt(Q, "_getStaticKey", (e, t) => `${e ?? pt._nameSpa
|
|
|
469
472
|
//#endregion
|
|
470
473
|
//#region src/utils/storage/index.ts
|
|
471
474
|
var mt = (e, t) => {
|
|
472
|
-
let
|
|
473
|
-
locale: Q.getData("locale",
|
|
474
|
-
layout: Q.getData("layout",
|
|
475
|
+
let n = C(), r = Object.assign({
|
|
476
|
+
locale: Q.getData("locale", n) ?? { locale: t.Locale ?? "zh" },
|
|
477
|
+
layout: Q.getData("layout", n) ?? {
|
|
475
478
|
layout: t.Layout ?? "vertical",
|
|
476
479
|
theme: t.Theme ?? "default",
|
|
477
480
|
darkMode: t.DarkMode ?? !1,
|
|
@@ -480,7 +483,7 @@ var mt = (e, t) => {
|
|
|
480
483
|
themeColor: t.Theme ?? "light",
|
|
481
484
|
overallStyle: t.OverallStyle ?? "light"
|
|
482
485
|
},
|
|
483
|
-
configure: Q.getData("configure",
|
|
486
|
+
configure: Q.getData("configure", n) ?? {
|
|
484
487
|
grey: t.Grey ?? !1,
|
|
485
488
|
weak: t.Weak ?? !1,
|
|
486
489
|
hideTabs: t.HideTabs ?? !1,
|
|
@@ -488,11 +491,11 @@ var mt = (e, t) => {
|
|
|
488
491
|
showModel: t.ShowModel ?? "smart",
|
|
489
492
|
multiTagsCache: t.MultiTagsCache ?? !1
|
|
490
493
|
},
|
|
491
|
-
cnd: Q.getData("cnd",
|
|
492
|
-
}, t.MultiTagsCache ? { tags: Q.getData("tags",
|
|
494
|
+
cnd: Q.getData("cnd", n) ?? {}
|
|
495
|
+
}, t.MultiTagsCache ? { tags: Q.getData("tags", n) ?? a } : {});
|
|
493
496
|
e.use(Q, {
|
|
494
|
-
nameSpace:
|
|
495
|
-
memory:
|
|
497
|
+
nameSpace: n,
|
|
498
|
+
memory: r
|
|
496
499
|
});
|
|
497
500
|
}, ht = Re(), gt = {
|
|
498
501
|
span: 6,
|
|
@@ -599,7 +602,9 @@ var mt = (e, t) => {
|
|
|
599
602
|
let r = q(e, !0);
|
|
600
603
|
return n.forEach((e) => {
|
|
601
604
|
let t = r[e.field];
|
|
602
|
-
|
|
605
|
+
e.itemRender.name === "VxeDateRangePicker" && t && !Be(t) && (t = t.split(","));
|
|
606
|
+
let { startField: n, endField: i } = e.itemRender;
|
|
607
|
+
t && n ? (r[n] = X(r[n] || t[0], kt), r[i] = X(r[i] || t[1], At)) : t && (r[`${e.field}From`] = X(t[0], kt), r[`${e.field}To`] = X(t[1], At)), delete r[e.field];
|
|
603
608
|
}), r;
|
|
604
609
|
}, Mt = () => K.get(bt) ? JSON.parse(K.get(bt)) : {}, Nt = [
|
|
605
610
|
{
|
|
@@ -800,7 +805,7 @@ var mt = (e, t) => {
|
|
|
800
805
|
}, Ut = { style: {
|
|
801
806
|
width: "100%",
|
|
802
807
|
height: "100%"
|
|
803
|
-
} }, Wt = "U_TABLE_COLUMNN_SORT", Gt = /* @__PURE__ */
|
|
808
|
+
} }, Wt = "U_TABLE_COLUMNN_SORT", Gt = /* @__PURE__ */ L({
|
|
804
809
|
name: "UtGrid",
|
|
805
810
|
__name: "index",
|
|
806
811
|
props: {
|
|
@@ -831,28 +836,28 @@ var mt = (e, t) => {
|
|
|
831
836
|
"editEctivated"
|
|
832
837
|
],
|
|
833
838
|
setup(e, { expose: t, emit: n }) {
|
|
834
|
-
let r = Ht(Te()), i, a = {}, o =
|
|
839
|
+
let r = Ht(Te()), i, a = {}, o = me(), s = o.appContext.config.globalProperties.$hasAuthority, c = o.parent.type.name, l = o.appContext.config.globalProperties.$mode, u = e, { t: d } = Ge(), f = H(null), p = H(!1), m = o.appContext.config.globalProperties.$serviceApi, h = {
|
|
835
840
|
icon: "vxe-icon-setting",
|
|
836
841
|
name: "favorite",
|
|
837
842
|
events: { click: (e, t) => {
|
|
838
|
-
t.name === "favorite" && (
|
|
843
|
+
t.name === "favorite" && (p.value = !0);
|
|
839
844
|
} }
|
|
840
|
-
},
|
|
841
|
-
let e =
|
|
845
|
+
}, g = () => u.columns.length ? Fe(u.columns, d) : {}, _ = () => {
|
|
846
|
+
let e = u.columns;
|
|
842
847
|
if (r.gridId) {
|
|
843
848
|
let t = Ft.filter((t) => !e.some((e) => e.field === t.field)).map((e) => (r.format && ["lastUpdateDate", "creationDate"].includes(e.field) && (e.formatter = r.format, e.width = 90), e)), n = e.findIndex((e) => e.field === "operate");
|
|
844
849
|
n === -1 ? e.push(...t) : e.splice(n, 0, ...t);
|
|
845
850
|
}
|
|
846
|
-
return Ie(r.gridId ?
|
|
851
|
+
return Ie(r.gridId ? b(e) : e, r.sortable);
|
|
847
852
|
};
|
|
848
853
|
Me.getItem(Wt).then((e) => {
|
|
849
|
-
i = e,
|
|
854
|
+
i = e, v.columns = _();
|
|
850
855
|
});
|
|
851
|
-
let
|
|
856
|
+
let v = ye({
|
|
852
857
|
border: !0,
|
|
853
858
|
pagerConfig: { pageSize: r.pageSize || 20 },
|
|
854
859
|
editConfig: {},
|
|
855
|
-
editRules:
|
|
860
|
+
editRules: g(),
|
|
856
861
|
formConfig: {},
|
|
857
862
|
columnConfig: { useKey: !0 },
|
|
858
863
|
toolbarConfig: { enabled: !1 },
|
|
@@ -860,23 +865,23 @@ var mt = (e, t) => {
|
|
|
860
865
|
multiple: !0,
|
|
861
866
|
trigger: "cell"
|
|
862
867
|
},
|
|
863
|
-
height:
|
|
868
|
+
height: l ? void 0 : window.innerHeight - 92,
|
|
864
869
|
checkboxConfig: {
|
|
865
|
-
checkMethod: ({ row: e }) => zt(e,
|
|
866
|
-
checkRowKeys:
|
|
870
|
+
checkMethod: ({ row: e }) => zt(e, u),
|
|
871
|
+
checkRowKeys: u.checkRowKeys
|
|
867
872
|
},
|
|
868
873
|
loading: !1,
|
|
869
874
|
footerRowClassName: "ut-grid-footer",
|
|
870
875
|
proxyConfig: {
|
|
871
876
|
form: !0,
|
|
872
|
-
autoLoad:
|
|
877
|
+
autoLoad: u.autoLoad,
|
|
873
878
|
showResponseMsgvxe: !1,
|
|
874
879
|
showActionMsgvxe: !1,
|
|
875
880
|
ajax: {
|
|
876
|
-
queryAll: ({ form: e }) => wt(
|
|
877
|
-
query: ({ page: e, form: t, code: n }) => Tt(
|
|
878
|
-
delete: ({ body: { removeRecords: e } }) => Et(
|
|
879
|
-
save: ({ body: e }) => Promise.all(Dt(
|
|
881
|
+
queryAll: ({ form: e }) => wt(u, m, e),
|
|
882
|
+
query: ({ page: e, form: t, code: n }) => Tt(u, t, e, m, n, l),
|
|
883
|
+
delete: ({ body: { removeRecords: e } }) => Et(m, e, u),
|
|
884
|
+
save: ({ body: e }) => Promise.all(Dt(m, e, u)),
|
|
880
885
|
querySuccess: ({ response: e }) => O("querySuccess", e),
|
|
881
886
|
queryError: ({ response: e }) => O("queryError", e),
|
|
882
887
|
deleteSuccess: ({ response: e }) => O("deleteSuccess", e),
|
|
@@ -885,26 +890,26 @@ var mt = (e, t) => {
|
|
|
885
890
|
saveError: ({ response: e }) => O("saveError", e)
|
|
886
891
|
}
|
|
887
892
|
},
|
|
888
|
-
columns: r.gridId ? [] :
|
|
893
|
+
columns: r.gridId ? [] : _(),
|
|
889
894
|
...r
|
|
890
|
-
}),
|
|
891
|
-
function
|
|
895
|
+
}), y = () => u.items.length ? _t(q(u.items, !0), c && u.url ? h : c) : u.items;
|
|
896
|
+
function b(e) {
|
|
892
897
|
let t = i ? i[r.gridId] : {};
|
|
893
898
|
return t ? e.map((e, n) => {
|
|
894
899
|
let r = (n + 1) * 10;
|
|
895
900
|
return e._sort = t[e.field] || r, a[e.field] = e._sort, e;
|
|
896
901
|
}).sort((e, t) => e._sort - t._sort) : e;
|
|
897
902
|
}
|
|
898
|
-
let
|
|
899
|
-
|
|
903
|
+
let x = () => {
|
|
904
|
+
u.items.length && (v.formConfig = {
|
|
900
905
|
titleWidth: 100,
|
|
901
906
|
titleAlign: "right",
|
|
902
|
-
items:
|
|
903
|
-
rules: Fe(
|
|
907
|
+
items: y(),
|
|
908
|
+
rules: Fe(u.items, d),
|
|
904
909
|
validConfig: { showMessage: !1 }
|
|
905
910
|
});
|
|
906
|
-
let e = Lt(
|
|
907
|
-
Object.assign(
|
|
911
|
+
let e = Lt(v, u, r, s);
|
|
912
|
+
Object.assign(v, e), r.gridId && (v.id = r.gridId, v.customConfig = {
|
|
908
913
|
storage: !0,
|
|
909
914
|
mode: "popup",
|
|
910
915
|
checkMethod({ column: e }) {
|
|
@@ -914,30 +919,30 @@ var mt = (e, t) => {
|
|
|
914
919
|
width: 750,
|
|
915
920
|
height: "75%"
|
|
916
921
|
}
|
|
917
|
-
}), r.mergeFooter && (
|
|
922
|
+
}), r.mergeFooter && (v.showFooter = !0, v.footerMethod = ({ columns: e, data: t }) => Rt({
|
|
918
923
|
columns: e,
|
|
919
924
|
data: t
|
|
920
925
|
}, r.mergeFooter));
|
|
921
|
-
},
|
|
922
|
-
|
|
923
|
-
},
|
|
924
|
-
|
|
925
|
-
},
|
|
926
|
-
|
|
927
|
-
}, E = () => Ce(
|
|
928
|
-
let t =
|
|
929
|
-
return t === "checkbox" && !n.length ? (ze(
|
|
926
|
+
}, S = () => {
|
|
927
|
+
f.value.commitProxy("query");
|
|
928
|
+
}, C = () => (v.editRules = g(), f.value.refreshColumn()), w = () => {
|
|
929
|
+
v.loading = !0;
|
|
930
|
+
}, T = () => {
|
|
931
|
+
v.loading = !1;
|
|
932
|
+
}, E = () => Ce(f.value), D = () => f.value.getTableData().fullData, ee = (e = !1) => {
|
|
933
|
+
let t = u.columns[0].type, n = t === "radio" ? f.value.getRadioRecord(e) : f.value.getCheckboxRecords(e);
|
|
934
|
+
return t === "checkbox" && !n.length ? (ze(d("message.tip_selectedRecord")), []) : t === "radio" && !n ? (ze(d("message.tip_selectedRecord")), null) : n;
|
|
930
935
|
}, O = (e, t) => {
|
|
931
936
|
r?.callback && r?.callback[e] && r?.callback[e](t);
|
|
932
|
-
},
|
|
933
|
-
let t = e.data, n =
|
|
937
|
+
}, te = async (e) => {
|
|
938
|
+
let t = e.data, n = u.items.filter((e) => e.itemRender?.props?.multiple);
|
|
934
939
|
n.forEach((e) => {
|
|
935
940
|
e.itemRender.props.defaultValue ? (t[`_${e.field}`] = e.itemRender.props.defaultValue.split(","), t[`${e.field}`] = e.itemRender.props.defaultValue) : t[`_${e.field}`] = [];
|
|
936
941
|
}), n.length && setTimeout(() => {
|
|
937
|
-
|
|
942
|
+
S();
|
|
938
943
|
}, 200);
|
|
939
|
-
}, k,
|
|
940
|
-
let e =
|
|
944
|
+
}, k, A = () => {
|
|
945
|
+
let e = f.value;
|
|
941
946
|
k = Ke.create(e.$el.querySelector(".vxe-table--header .vxe-header--row"), {
|
|
942
947
|
disabled: !r.gridId,
|
|
943
948
|
handle: ".vxe-header--column",
|
|
@@ -959,64 +964,55 @@ var mt = (e, t) => {
|
|
|
959
964
|
});
|
|
960
965
|
};
|
|
961
966
|
t({
|
|
962
|
-
getTableData:
|
|
963
|
-
getSelectRecords:
|
|
964
|
-
refreshData:
|
|
965
|
-
refreshColumn:
|
|
967
|
+
getTableData: D,
|
|
968
|
+
getSelectRecords: ee,
|
|
969
|
+
refreshData: S,
|
|
970
|
+
refreshColumn: C,
|
|
966
971
|
getInstance: E,
|
|
967
|
-
showLoading:
|
|
968
|
-
hiddenLoading:
|
|
972
|
+
showLoading: w,
|
|
973
|
+
hiddenLoading: T,
|
|
969
974
|
reloadGrid: () => {
|
|
970
|
-
|
|
975
|
+
x();
|
|
971
976
|
}
|
|
972
977
|
});
|
|
973
|
-
let
|
|
974
|
-
|
|
978
|
+
let ne = ({ code: e }) => {
|
|
979
|
+
j("buttonClick", e);
|
|
980
|
+
}, re = (e) => {
|
|
981
|
+
j("cellClick", e);
|
|
982
|
+
}, ie = (e) => {
|
|
983
|
+
j("cellDbclick", e);
|
|
975
984
|
}, ae = (e) => {
|
|
976
|
-
|
|
977
|
-
}, oe = (
|
|
978
|
-
A("cellDbclick", e);
|
|
979
|
-
}, se = (e) => {
|
|
980
|
-
A("editEctivated", e);
|
|
981
|
-
}, ce = () => {
|
|
985
|
+
j("editEctivated", e);
|
|
986
|
+
}, oe = () => {
|
|
982
987
|
window.onresize = () => {
|
|
983
|
-
|
|
988
|
+
se();
|
|
984
989
|
};
|
|
985
|
-
},
|
|
990
|
+
}, se = () => {
|
|
986
991
|
let e = r?.height || window.innerHeight - 90;
|
|
987
|
-
r.mode !== "inline" && !r?.height && (e = window.innerHeight - 180), window.innerHeight < 800 && (
|
|
988
|
-
},
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
+
r.mode !== "inline" && !r?.height && (e = window.innerHeight - 180), window.innerHeight < 800 && (v.height = 520), v.height = r.fixedHeight === !1 && e < 600 ? 600 : e;
|
|
993
|
+
}, ce;
|
|
994
|
+
z(() => {
|
|
995
|
+
ce = setTimeout(() => {
|
|
996
|
+
A();
|
|
992
997
|
}, 500);
|
|
993
|
-
})
|
|
994
|
-
|
|
995
|
-
return c && d?.url && ![
|
|
996
|
-
"/uums/",
|
|
997
|
-
"/upfm/",
|
|
998
|
-
"/urpt/",
|
|
999
|
-
"/usch/"
|
|
1000
|
-
].some((e) => d.url.includes(e)) ? o.appContext.config.globalProperties.$debuggerApi : o.appContext.config.globalProperties.$serviceApi;
|
|
1001
|
-
}
|
|
1002
|
-
ve(() => {
|
|
1003
|
-
clearTimeout(ue), k && k.destroy();
|
|
998
|
+
}), ve(() => {
|
|
999
|
+
clearTimeout(ce), k && k.destroy();
|
|
1004
1000
|
}), _e(() => {
|
|
1005
|
-
|
|
1001
|
+
x(), He(r) && Ue(v, r || {}), r?.height && se(), oe();
|
|
1006
1002
|
});
|
|
1007
|
-
let
|
|
1003
|
+
let j = n;
|
|
1008
1004
|
return (e, t) => {
|
|
1009
1005
|
let n = U("vxe-grid");
|
|
1010
|
-
return V(),
|
|
1006
|
+
return V(), P("div", Ut, [I(n, R({
|
|
1011
1007
|
ref_key: "xgrid",
|
|
1012
|
-
ref:
|
|
1013
|
-
},
|
|
1014
|
-
onToolbarButtonClick:
|
|
1015
|
-
onToolbarToolClick:
|
|
1016
|
-
onCellClick:
|
|
1017
|
-
onCellDblclick:
|
|
1018
|
-
onEditActivated:
|
|
1019
|
-
onFormReset:
|
|
1008
|
+
ref: f
|
|
1009
|
+
}, v, { class: "ut-grid-wrapper" }, Se(we(r).events || {}), {
|
|
1010
|
+
onToolbarButtonClick: ne,
|
|
1011
|
+
onToolbarToolClick: ne,
|
|
1012
|
+
onCellClick: re,
|
|
1013
|
+
onCellDblclick: ie,
|
|
1014
|
+
onEditActivated: ae,
|
|
1015
|
+
onFormReset: te
|
|
1020
1016
|
}), null, 16)]);
|
|
1021
1017
|
};
|
|
1022
1018
|
}
|
|
@@ -1089,19 +1085,19 @@ var mt = (e, t) => {
|
|
|
1089
1085
|
} }
|
|
1090
1086
|
}, qt = { class: "" };
|
|
1091
1087
|
function Jt(e, t, n, r, i, a) {
|
|
1092
|
-
return V(),
|
|
1088
|
+
return V(), P("div", R({ class: "first-ring" }, a.getBindValue, {
|
|
1093
1089
|
class: a.getStampBadgeClass,
|
|
1094
1090
|
style: [{ position: "absolute" }, {
|
|
1095
1091
|
transform: `rotate(${n.rotate}deg)`,
|
|
1096
1092
|
top: `${n.top}px`,
|
|
1097
1093
|
right: `${n.right}px`
|
|
1098
1094
|
}]
|
|
1099
|
-
}), [
|
|
1095
|
+
}), [F("div", { class: B(["second-ring", a.getStampBadgeClass]) }, [F("div", { class: B(["third-ring", a.getStampBadgeClass]) }, [F("div", { class: B(["forth-ring", a.getStampBadgeClass]) }, [F("div", { class: B(["content-rectangle ellipsis", a.getStampBadgeClass]) }, [F("span", qt, W(a.getContent(n.content)), 1)], 2)], 2)], 2)], 2)], 16);
|
|
1100
1096
|
}
|
|
1101
|
-
var Yt = /* @__PURE__ */
|
|
1097
|
+
var Yt = /* @__PURE__ */ A(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]]), Xt = { class: "ut-content" }, Zt = {
|
|
1102
1098
|
key: 0,
|
|
1103
1099
|
class: "font-black"
|
|
1104
|
-
}, Qt = { class: "ut-right-panel" }, $t = { class: "ut-content-body" }, en = /* @__PURE__ */
|
|
1100
|
+
}, Qt = { class: "ut-right-panel" }, $t = { class: "ut-content-body" }, en = /* @__PURE__ */ A(/* @__PURE__ */ L({
|
|
1105
1101
|
name: "UtContent",
|
|
1106
1102
|
__name: "index",
|
|
1107
1103
|
props: {
|
|
@@ -1123,8 +1119,8 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1123
1119
|
};
|
|
1124
1120
|
return (t, r) => {
|
|
1125
1121
|
let a = U("ut-button");
|
|
1126
|
-
return V(),
|
|
1127
|
-
|
|
1122
|
+
return V(), P("div", Xt, [
|
|
1123
|
+
I(Yt, {
|
|
1128
1124
|
color: e.stampOptions.color || "success",
|
|
1129
1125
|
content: e.stampOptions.content,
|
|
1130
1126
|
size: e.stampOptions.size,
|
|
@@ -1135,17 +1131,17 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1135
1131
|
"size",
|
|
1136
1132
|
"code"
|
|
1137
1133
|
]),
|
|
1138
|
-
e.showTop && n.value ? (V(),
|
|
1134
|
+
e.showTop && n.value ? (V(), P("div", {
|
|
1139
1135
|
key: 0,
|
|
1140
|
-
class:
|
|
1141
|
-
}, [e.title ? (V(),
|
|
1136
|
+
class: B(["ut-content-top", e.title ? "justify-between" : "justify-end"])
|
|
1137
|
+
}, [e.title ? (V(), P("span", Zt, W(e.title), 1)) : N("", !0), F("div", Qt, [xe(t.$slots, "header", {}, void 0, !0), e.showClose ? (V(), M(a, {
|
|
1142
1138
|
key: 0,
|
|
1143
1139
|
status: "info",
|
|
1144
1140
|
icon: t.$attrs.icon || "ri-reply-line",
|
|
1145
1141
|
content: t.$attrs.content || "goback",
|
|
1146
1142
|
onTap: r[0] ||= (e) => i()
|
|
1147
|
-
}, null, 8, ["icon", "content"])) :
|
|
1148
|
-
|
|
1143
|
+
}, null, 8, ["icon", "content"])) : N("", !0)])], 2)) : N("", !0),
|
|
1144
|
+
F("div", $t, [xe(t.$slots, "body", {}, void 0, !0)])
|
|
1149
1145
|
]);
|
|
1150
1146
|
};
|
|
1151
1147
|
}
|
|
@@ -1173,7 +1169,7 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1173
1169
|
"font-size": "11px",
|
|
1174
1170
|
"text-align": "center"
|
|
1175
1171
|
}
|
|
1176
|
-
}, yn = /* @__PURE__ */
|
|
1172
|
+
}, yn = /* @__PURE__ */ L({
|
|
1177
1173
|
name: "FormUpload",
|
|
1178
1174
|
props: {
|
|
1179
1175
|
record: { default: () => ({}) },
|
|
@@ -1218,11 +1214,11 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1218
1214
|
Oe(() => n.record[n.field], (e) => {
|
|
1219
1215
|
C();
|
|
1220
1216
|
});
|
|
1221
|
-
let r =
|
|
1217
|
+
let r = me(), i = r.appContext.config.globalProperties.$url, a = r.appContext.config.globalProperties.$serviceApi, o = H(""), s = H(!1), c = [
|
|
1222
1218
|
"image/gif",
|
|
1223
1219
|
"image/jpeg",
|
|
1224
1220
|
"image/png"
|
|
1225
|
-
], l = H(null), u =
|
|
1221
|
+
], l = H(null), u = de(() => {
|
|
1226
1222
|
let e = K.get("authorized-token");
|
|
1227
1223
|
return { Authorization: "Bearer " + JSON.parse(e).accessToken };
|
|
1228
1224
|
}), d = H([]), f = H([]), p = (e) => c.includes(e.file.type) && e.file.size > 1024 * 1024 * n.compassorSize ? new Promise((t, r) => {
|
|
@@ -1344,61 +1340,61 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1344
1340
|
C();
|
|
1345
1341
|
}), (t, n) => {
|
|
1346
1342
|
let r = U("vxe-tooltip"), i = U("vxe-icon"), a = U("vxe-upload");
|
|
1347
|
-
return V(),
|
|
1343
|
+
return V(), P("div", tn, [F("div", nn, [(V(!0), P(ue, null, be(f.value, (t, n) => (V(), P("div", {
|
|
1348
1344
|
key: t,
|
|
1349
|
-
class:
|
|
1350
|
-
}, [
|
|
1345
|
+
class: B("ut-upload-item--" + e.size)
|
|
1346
|
+
}, [F("div", rn, [b(t) === "img" ? (V(), P("img", {
|
|
1351
1347
|
key: 0,
|
|
1352
1348
|
src: t.url,
|
|
1353
1349
|
class: "ut-image select-none",
|
|
1354
1350
|
onClick: (e) => y(t)
|
|
1355
|
-
}, null, 8, an)) : e.renderMode === "item" || e.dataStatus !== "detail" ? (V(),
|
|
1356
|
-
class:
|
|
1351
|
+
}, null, 8, an)) : e.renderMode === "item" || e.dataStatus !== "detail" ? (V(), P("div", on, [F("div", sn, [F("i", {
|
|
1352
|
+
class: B([b(t), "ut-image-file ut-image"]),
|
|
1357
1353
|
style: { "line-height": "1" }
|
|
1358
|
-
}, null, 2),
|
|
1354
|
+
}, null, 2), F("div", {
|
|
1359
1355
|
class: "px-1 ut-image",
|
|
1360
|
-
style:
|
|
1361
|
-
}, W(x(t)), 5)]),
|
|
1356
|
+
style: ge({ fontSize: e.size === "small" ? "11px" : "10px" })
|
|
1357
|
+
}, W(x(t)), 5)]), F("i", {
|
|
1362
1358
|
class: "vxe-icon-download ut-download-icon",
|
|
1363
|
-
style:
|
|
1359
|
+
style: ge({ fontSize: e.renderMode === "item" ? "60px" : "48px" }),
|
|
1364
1360
|
onClick: (e) => void 0
|
|
1365
|
-
}, null, 12, cn)])) : (V(),
|
|
1361
|
+
}, null, 12, cn)])) : (V(), M(r, {
|
|
1366
1362
|
key: 2,
|
|
1367
1363
|
content: t.name,
|
|
1368
1364
|
class: "cursor-pointer"
|
|
1369
1365
|
}, {
|
|
1370
|
-
default: G(() => [
|
|
1371
|
-
class:
|
|
1366
|
+
default: G(() => [F("div", ln, [F("div", un, [F("i", {
|
|
1367
|
+
class: B([b(t), "ut-image-file ut-image"]),
|
|
1372
1368
|
style: { "font-size": "32px" }
|
|
1373
|
-
}, null, 2),
|
|
1369
|
+
}, null, 2), F("div", {
|
|
1374
1370
|
class: "px-1 ut-image",
|
|
1375
|
-
style:
|
|
1376
|
-
}, W(x(t)), 5)]),
|
|
1371
|
+
style: ge({ fontSize: e.size === "small" ? "11px" : "10px" })
|
|
1372
|
+
}, W(x(t)), 5)]), F("i", {
|
|
1377
1373
|
class: "vxe-icon-download ut-download-icon",
|
|
1378
|
-
style:
|
|
1374
|
+
style: ge({ fontSize: e.renderMode === "item" ? "60px" : "48px" }),
|
|
1379
1375
|
onClick: (e) => void 0
|
|
1380
1376
|
}, null, 12, dn)])]),
|
|
1381
1377
|
_: 2
|
|
1382
|
-
}, 1032, ["content"]))]), e.dataStatus === "detail" ?
|
|
1378
|
+
}, 1032, ["content"]))]), e.dataStatus === "detail" ? N("", !0) : (V(), P("div", fn, [F("div", pn, [F("i", {
|
|
1383
1379
|
class: "vxe-icon-close",
|
|
1384
1380
|
onClick: (e) => v(t, n)
|
|
1385
|
-
}, null, 8, mn)])]))], 2))), 128)), e.dataStatus === "detail" ?
|
|
1381
|
+
}, null, 8, mn)])]))], 2))), 128)), e.dataStatus === "detail" ? N("", !0) : (V(), P("div", {
|
|
1386
1382
|
key: 0,
|
|
1387
|
-
class:
|
|
1383
|
+
class: B(["ut-upload-item--" + e.size, "ut-upload--btn"]),
|
|
1388
1384
|
style: { border: "1px dashed var(--vxe-ui-input-border-color)" },
|
|
1389
1385
|
onClick: h
|
|
1390
|
-
}, [
|
|
1391
|
-
s.value ?
|
|
1392
|
-
s.value ?
|
|
1393
|
-
s.value ? (V(),
|
|
1386
|
+
}, [F("div", hn, [
|
|
1387
|
+
s.value ? N("", !0) : (V(), P("span", gn)),
|
|
1388
|
+
s.value ? N("", !0) : (V(), P("div", _n, "点击上传")),
|
|
1389
|
+
s.value ? (V(), M(i, {
|
|
1394
1390
|
key: 2,
|
|
1395
1391
|
name: "spinner",
|
|
1396
1392
|
status: "primary",
|
|
1397
1393
|
roll: "",
|
|
1398
1394
|
style: { "font-size": "24px" }
|
|
1399
|
-
})) :
|
|
1400
|
-
s.value ? (V(),
|
|
1401
|
-
])], 2))]),
|
|
1395
|
+
})) : N("", !0),
|
|
1396
|
+
s.value ? (V(), P("div", vn, W(o.value), 1)) : N("", !0)
|
|
1397
|
+
])], 2))]), I(a, R({
|
|
1402
1398
|
ref_key: "xupload",
|
|
1403
1399
|
ref: l,
|
|
1404
1400
|
modelValue: d.value,
|
|
@@ -1435,9 +1431,9 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1435
1431
|
])]);
|
|
1436
1432
|
};
|
|
1437
1433
|
}
|
|
1438
|
-
}), bn = ["onUpdate:modelValue"], xn = { key: 3 }, Sn = { key: 4 }, Cn = /* @__PURE__ */
|
|
1434
|
+
}), bn = ["onUpdate:modelValue"], xn = { key: 3 }, Sn = { key: 4 }, Cn = /* @__PURE__ */ A(/* @__PURE__ */ L({
|
|
1439
1435
|
name: "UtUpload",
|
|
1440
|
-
props: /* @__PURE__ */
|
|
1436
|
+
props: /* @__PURE__ */ he({
|
|
1441
1437
|
defaultParams: { default: () => ({}) },
|
|
1442
1438
|
options: { default: () => ({
|
|
1443
1439
|
filename: "数据模板",
|
|
@@ -1453,9 +1449,9 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1453
1449
|
visible: { type: Boolean },
|
|
1454
1450
|
visibleModifiers: {}
|
|
1455
1451
|
}),
|
|
1456
|
-
emits: /* @__PURE__ */
|
|
1452
|
+
emits: /* @__PURE__ */ he(["close"], ["update:visible"]),
|
|
1457
1453
|
setup(e, { emit: t }) {
|
|
1458
|
-
let n = e, r =
|
|
1454
|
+
let n = e, r = me().appContext.config.globalProperties.$serviceApi, i = Ee(e, "visible"), { t: a } = Ge(), o = H(!1), s = Le.getItem("kLov");
|
|
1459
1455
|
Oe(() => i.value, (e) => {
|
|
1460
1456
|
e && (m.data = []);
|
|
1461
1457
|
});
|
|
@@ -1551,7 +1547,7 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1551
1547
|
toolbarToolClick({ code: e }) {
|
|
1552
1548
|
switch (e) {
|
|
1553
1549
|
case "replay":
|
|
1554
|
-
|
|
1550
|
+
D();
|
|
1555
1551
|
break;
|
|
1556
1552
|
case "question":
|
|
1557
1553
|
T();
|
|
@@ -1604,7 +1600,7 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1604
1600
|
})) : (Z.modal.message({
|
|
1605
1601
|
content: a("message.importSuccess"),
|
|
1606
1602
|
status: "success"
|
|
1607
|
-
}),
|
|
1603
|
+
}), D());
|
|
1608
1604
|
}).finally(() => {
|
|
1609
1605
|
o.value = !1, m.loading = !1;
|
|
1610
1606
|
});
|
|
@@ -1634,24 +1630,24 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1634
1630
|
});
|
|
1635
1631
|
}, T = () => {
|
|
1636
1632
|
Z.modal.alert(a("message.importTip"), a("message.udp.tip"));
|
|
1637
|
-
},
|
|
1638
|
-
i.value = !1,
|
|
1633
|
+
}, E = t, D = () => {
|
|
1634
|
+
i.value = !1, E("close");
|
|
1639
1635
|
};
|
|
1640
1636
|
return (t, n) => {
|
|
1641
1637
|
let r = U("el-option"), a = U("el-select"), c = U("el-date-picker"), d = U("vxe-pager"), p = U("vxe-grid"), g = U("vxe-modal");
|
|
1642
|
-
return V(),
|
|
1638
|
+
return V(), M(g, {
|
|
1643
1639
|
modelValue: i.value,
|
|
1644
1640
|
"onUpdate:modelValue": n[2] ||= (e) => i.value = e,
|
|
1645
1641
|
"show-header": !1,
|
|
1646
1642
|
fullscreen: "",
|
|
1647
1643
|
remember: "",
|
|
1648
|
-
onClose:
|
|
1644
|
+
onClose: D
|
|
1649
1645
|
}, {
|
|
1650
|
-
default: G(() => [
|
|
1646
|
+
default: G(() => [I(p, R({
|
|
1651
1647
|
ref_key: "xgrid",
|
|
1652
1648
|
ref: f
|
|
1653
|
-
}, m, Se(h)),
|
|
1654
|
-
pager: G(() => [
|
|
1649
|
+
}, m, Se(h)), pe({
|
|
1650
|
+
pager: G(() => [I(d, {
|
|
1655
1651
|
"current-page": l.value.currentPage,
|
|
1656
1652
|
"onUpdate:currentPage": n[0] ||= (e) => l.value.currentPage = e,
|
|
1657
1653
|
"page-size": l.value.pageSize,
|
|
@@ -1675,14 +1671,14 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1675
1671
|
_: 2
|
|
1676
1672
|
}, [be(e.columns, (e) => ({
|
|
1677
1673
|
name: e.field,
|
|
1678
|
-
fn: G(({ row: t }) => [e.dictCode && !e.disabled ? (V(),
|
|
1674
|
+
fn: G(({ row: t }) => [e.dictCode && !e.disabled ? (V(), M(a, {
|
|
1679
1675
|
key: 0,
|
|
1680
1676
|
modelValue: t[e.field],
|
|
1681
1677
|
"onUpdate:modelValue": (n) => t[e.field] = n,
|
|
1682
1678
|
modelModifiers: { trim: !0 },
|
|
1683
1679
|
clearable: ""
|
|
1684
1680
|
}, {
|
|
1685
|
-
default: G(() => [(V(!0),
|
|
1681
|
+
default: G(() => [(V(!0), P(ue, null, be(we(s)[e.dictCode]?.children, (e) => (V(), M(r, {
|
|
1686
1682
|
key: e.dictCode,
|
|
1687
1683
|
value: e.dictCode,
|
|
1688
1684
|
label: e.dictName
|
|
@@ -1692,7 +1688,7 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1692
1688
|
"date",
|
|
1693
1689
|
"month",
|
|
1694
1690
|
"datetime"
|
|
1695
|
-
].includes(e.dataType) && !e.disabled ? (V(),
|
|
1691
|
+
].includes(e.dataType) && !e.disabled ? (V(), M(c, {
|
|
1696
1692
|
key: 1,
|
|
1697
1693
|
modelValue: t[e.field],
|
|
1698
1694
|
"onUpdate:modelValue": (n) => t[e.field] = n,
|
|
@@ -1703,7 +1699,7 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1703
1699
|
"modelValue",
|
|
1704
1700
|
"onUpdate:modelValue",
|
|
1705
1701
|
"type"
|
|
1706
|
-
])) : !e.da && !e.disabled ? ke((V(),
|
|
1702
|
+
])) : !e.da && !e.disabled ? ke((V(), P("input", {
|
|
1707
1703
|
key: 2,
|
|
1708
1704
|
"onUpdate:modelValue": (n) => t[e.field] = n,
|
|
1709
1705
|
class: "ut-input"
|
|
@@ -1712,13 +1708,13 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1712
1708
|
t[e.field],
|
|
1713
1709
|
void 0,
|
|
1714
1710
|
{ trim: !0 }
|
|
1715
|
-
]]) : o.value ? (V(),
|
|
1711
|
+
]]) : o.value ? (V(), P("span", Sn, W(t[e.field]), 1)) : (V(), P("span", xn, W(t[e.field]), 1))])
|
|
1716
1712
|
}))]), 1040)]),
|
|
1717
1713
|
_: 1
|
|
1718
1714
|
}, 8, ["modelValue"]);
|
|
1719
1715
|
};
|
|
1720
1716
|
}
|
|
1721
|
-
}), [["__scopeId", "data-v-41bb3a03"]]), wn = { class: "ut-lov-wrapper" }, Tn = { style: { height: "360px" } }, En = /* @__PURE__ */
|
|
1717
|
+
}), [["__scopeId", "data-v-41bb3a03"]]), wn = { class: "ut-lov-wrapper" }, Tn = { style: { height: "360px" } }, En = /* @__PURE__ */ L({
|
|
1722
1718
|
name: "UtLov",
|
|
1723
1719
|
props: {
|
|
1724
1720
|
record: { default: () => ({}) },
|
|
@@ -1754,7 +1750,7 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1754
1750
|
},
|
|
1755
1751
|
emits: ["clear", "change"],
|
|
1756
1752
|
setup(e, { emit: t }) {
|
|
1757
|
-
let n = e, r =
|
|
1753
|
+
let n = e, r = me().appContext.config.globalProperties.$serviceApi, i = H(!1), a = H(600), o = H(""), s = H("vxe-table--ignore-clear"), c = ye({
|
|
1758
1754
|
loading: !1,
|
|
1759
1755
|
border: !0,
|
|
1760
1756
|
pagerConfig: {},
|
|
@@ -1855,26 +1851,26 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1855
1851
|
});
|
|
1856
1852
|
}, _ = H(null), v = async () => {
|
|
1857
1853
|
c.loading = !0;
|
|
1858
|
-
let [e, t] = await
|
|
1859
|
-
c.loading = !1, e && T(), c.loading = !0, o.value = t?.lovTitle || t?.lovName, u = t?.lineList || [], l = t, g(), f(), await Ne(30), await
|
|
1854
|
+
let [e, t] = await oe(r.get("/upfm/v1/lovViewHeader/detailByViewCode", { lovCode: n.code }));
|
|
1855
|
+
c.loading = !1, e && T(), c.loading = !0, o.value = t?.lovTitle || t?.lovName, u = t?.lineList || [], l = t, g(), f(), await Ne(30), await z(), n.autoLoad && _.value?.commitProxy("query"), c.loading = !1;
|
|
1860
1856
|
}, y = (e, t) => Ve(t.checkMethod) ? t.checkMethod(e) : !0, b = async () => {
|
|
1861
|
-
n.disabled || (v(), await
|
|
1857
|
+
n.disabled || (v(), await z(), i.value = !0);
|
|
1862
1858
|
}, x = () => {
|
|
1863
|
-
|
|
1859
|
+
D("clear", "");
|
|
1864
1860
|
}, S = ({ row: e }) => {
|
|
1865
1861
|
let t = n.multiple ? [e] : e;
|
|
1866
|
-
Ve(n.checkMethod) && !n.checkMethod(e) || (
|
|
1862
|
+
Ve(n.checkMethod) && !n.checkMethod(e) || (D("change", t, l.valueField), T());
|
|
1867
1863
|
}, C = async () => {
|
|
1868
|
-
await
|
|
1864
|
+
await z(), _.value?.commitProxy("query");
|
|
1869
1865
|
}, w = () => {
|
|
1870
1866
|
let e = _.value, t = n.multiple ? e.getCheckboxRecords() : e.getRadioRecord();
|
|
1871
|
-
!J(t) &&
|
|
1867
|
+
!J(t) && D("change", t, l.valueField), T();
|
|
1872
1868
|
}, T = () => {
|
|
1873
1869
|
u.length = 0, i.value = !1;
|
|
1874
|
-
},
|
|
1870
|
+
}, E = ({ type: e }) => {}, D = t;
|
|
1875
1871
|
return (t, n) => {
|
|
1876
1872
|
let r = U("vxe-grid"), l = U("vxe-button"), u = U("vxe-modal"), d = U("el-dialog"), f = U("vxe-input");
|
|
1877
|
-
return V(),
|
|
1873
|
+
return V(), P("div", wn, [e.mode === "vxe" ? (V(), M(u, {
|
|
1878
1874
|
key: 0,
|
|
1879
1875
|
modelValue: i.value,
|
|
1880
1876
|
"onUpdate:modelValue": n[0] ||= (e) => i.value = e,
|
|
@@ -1887,18 +1883,18 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1887
1883
|
"esc-closable": "",
|
|
1888
1884
|
"show-footer": "",
|
|
1889
1885
|
"class-name": s.value,
|
|
1890
|
-
"before-hide-method":
|
|
1886
|
+
"before-hide-method": E
|
|
1891
1887
|
}, {
|
|
1892
|
-
default: G(() => [
|
|
1888
|
+
default: G(() => [I(r, R({
|
|
1893
1889
|
ref_key: "xgrid",
|
|
1894
1890
|
ref: _
|
|
1895
1891
|
}, c, { onCellDblclick: S }), null, 16)]),
|
|
1896
|
-
footer: G(() => [
|
|
1892
|
+
footer: G(() => [I(l, {
|
|
1897
1893
|
content: t.$t("message.btn.cancel"),
|
|
1898
1894
|
icon: "ri-close-line",
|
|
1899
1895
|
status: "warning",
|
|
1900
1896
|
onClick: T
|
|
1901
|
-
}, null, 8, ["content"]),
|
|
1897
|
+
}, null, 8, ["content"]), I(l, {
|
|
1902
1898
|
content: t.$t("message.btn.confirm"),
|
|
1903
1899
|
icon: "ri-save-3-line",
|
|
1904
1900
|
status: "primary",
|
|
@@ -1911,7 +1907,7 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1911
1907
|
"title",
|
|
1912
1908
|
"transfer",
|
|
1913
1909
|
"class-name"
|
|
1914
|
-
])) : (V(),
|
|
1910
|
+
])) : (V(), M(d, {
|
|
1915
1911
|
key: 1,
|
|
1916
1912
|
modelValue: i.value,
|
|
1917
1913
|
"onUpdate:modelValue": n[1] ||= (e) => i.value = e,
|
|
@@ -1923,7 +1919,7 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1923
1919
|
"destroy-on-close": "",
|
|
1924
1920
|
"close-on-press-escape": ""
|
|
1925
1921
|
}, {
|
|
1926
|
-
default: G(() => [
|
|
1922
|
+
default: G(() => [F("div", Tn, [I(r, R({
|
|
1927
1923
|
ref_key: "xgrid",
|
|
1928
1924
|
ref: _
|
|
1929
1925
|
}, c, {
|
|
@@ -1931,12 +1927,12 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1931
1927
|
onCellDblclick: S,
|
|
1932
1928
|
onColumnsChange: C
|
|
1933
1929
|
}), null, 16)])]),
|
|
1934
|
-
footer: G(() => [
|
|
1930
|
+
footer: G(() => [I(l, {
|
|
1935
1931
|
content: t.$t("message.btn.cancel"),
|
|
1936
1932
|
icon: "ri-close-line",
|
|
1937
1933
|
status: "warning",
|
|
1938
1934
|
onClick: T
|
|
1939
|
-
}, null, 8, ["content"]),
|
|
1935
|
+
}, null, 8, ["content"]), I(l, {
|
|
1940
1936
|
content: t.$t("message.btn.confirm"),
|
|
1941
1937
|
icon: "ri-save-3-line",
|
|
1942
1938
|
status: "primary",
|
|
@@ -1948,7 +1944,7 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1948
1944
|
"width",
|
|
1949
1945
|
"title",
|
|
1950
1946
|
"append-to-body"
|
|
1951
|
-
])),
|
|
1947
|
+
])), I(f, {
|
|
1952
1948
|
modelValue: e.record[e.displayName || e.field],
|
|
1953
1949
|
"onUpdate:modelValue": n[2] ||= (t) => e.record[e.displayName || e.field] = t,
|
|
1954
1950
|
clearable: !e.disabled && e.clearable,
|
|
@@ -1971,14 +1967,14 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1971
1967
|
}), Dn = { mounted(e, t) {
|
|
1972
1968
|
let { value: n } = t;
|
|
1973
1969
|
if (n) {
|
|
1974
|
-
let t = `${
|
|
1970
|
+
let t = `${_.currentRoute.value.meta?.prefixAuth}.${n}`;
|
|
1975
1971
|
v().getButtonAuth.includes(t) || e.parentNode.removeChild(e);
|
|
1976
1972
|
} else throw Error("need roles! Like v-auth=\"['admin','test']\"");
|
|
1977
1973
|
} }, On = Ze({ strategy: "scroll" }), kn = {
|
|
1978
1974
|
mounted(e, t, n) {
|
|
1979
1975
|
On.listenTo(e, (e) => {
|
|
1980
1976
|
let r = e.offsetWidth, i = e.offsetHeight;
|
|
1981
|
-
t?.instance ?
|
|
1977
|
+
t?.instance ? j.emit("resize", { detail: {
|
|
1982
1978
|
width: r,
|
|
1983
1979
|
height: i
|
|
1984
1980
|
} }) : n.el.dispatchEvent(new CustomEvent("resize", { detail: {
|
|
@@ -1990,43 +1986,43 @@ var Yt = /* @__PURE__ */ k(Kt, [["render", Jt], ["__scopeId", "data-v-9afb688a"]
|
|
|
1990
1986
|
unmounted(e) {
|
|
1991
1987
|
On.uninstall(e);
|
|
1992
1988
|
}
|
|
1993
|
-
}, An = /* @__PURE__ */
|
|
1989
|
+
}, An = /* @__PURE__ */ n({
|
|
1994
1990
|
auth: () => Dn,
|
|
1995
1991
|
resize: () => kn
|
|
1996
|
-
}), $ =
|
|
1992
|
+
}), $ = fe(nt);
|
|
1997
1993
|
$.use(Xe, { defaultProps: { animation: "perspective" } });
|
|
1998
1994
|
var jn = (e) => {
|
|
1999
|
-
e.config.globalProperties.$hasAuthority =
|
|
1995
|
+
e.config.globalProperties.$hasAuthority = ae, e.config.globalProperties.$serviceApi = D(), e.config.globalProperties.$debuggerApi = E(), e.config.globalProperties.$url = O(), window.$i18n = x;
|
|
2000
1996
|
}, Mn = (e) => {
|
|
2001
1997
|
Object.keys(An).forEach((t) => {
|
|
2002
1998
|
e.directive(t, An[t]);
|
|
2003
1999
|
});
|
|
2004
|
-
}, Nn = ({ router: e, config: t, lang: n, views:
|
|
2005
|
-
|
|
2000
|
+
}, Nn = ({ router: e, config: t, lang: n, views: r, env: i, tableConfig: a }) => (p(r, e), $.use(e), S(e), T($, t), te(i), ne(a), new Promise((r) => {
|
|
2001
|
+
c($, n), $.component("IconifyIconOffline", se), $.component("FontIcon", ce), $.component("UtGrid2", Gt), $.component("UtUpload2", Cn), $.component("FormUpload2", yn).component("UtLov2", En), $.component("UtContent2", en), $.component("UtStampBadge2", Yt), jn($), w(O()), Mn($), g($), mt($, t), r({
|
|
2006
2002
|
app: $,
|
|
2007
2003
|
router: e
|
|
2008
2004
|
});
|
|
2009
|
-
})), Pn = /* @__PURE__ */
|
|
2010
|
-
constantRoutes: () =>
|
|
2005
|
+
})), Pn = /* @__PURE__ */ n({
|
|
2006
|
+
constantRoutes: () => b,
|
|
2011
2007
|
default: () => Fn,
|
|
2012
2008
|
delCurrentRoute: () => l,
|
|
2013
|
-
getBrower: () =>
|
|
2014
|
-
getPlatform: () =>
|
|
2015
|
-
getProcessMenu: () =>
|
|
2016
|
-
getServiceApi: () =>
|
|
2017
|
-
handleAliveRoute: () =>
|
|
2018
|
-
hasAuthority: () =>
|
|
2019
|
-
initDict: () =>
|
|
2020
|
-
lifeCycleEvent: () =>
|
|
2021
|
-
remainingRouters: () =>
|
|
2009
|
+
getBrower: () => i,
|
|
2010
|
+
getPlatform: () => o,
|
|
2011
|
+
getProcessMenu: () => d,
|
|
2012
|
+
getServiceApi: () => D,
|
|
2013
|
+
handleAliveRoute: () => s,
|
|
2014
|
+
hasAuthority: () => ae,
|
|
2015
|
+
initDict: () => h,
|
|
2016
|
+
lifeCycleEvent: () => u,
|
|
2017
|
+
remainingRouters: () => f,
|
|
2022
2018
|
routerBefore: () => m,
|
|
2023
|
-
store: () =>
|
|
2024
|
-
useDataThemeChange: () =>
|
|
2025
|
-
useLayout: () =>
|
|
2026
|
-
useMultiTagsStore: () =>
|
|
2019
|
+
store: () => e,
|
|
2020
|
+
useDataThemeChange: () => ie,
|
|
2021
|
+
useLayout: () => re,
|
|
2022
|
+
useMultiTagsStore: () => t,
|
|
2027
2023
|
usePermissionStore: () => v,
|
|
2028
|
-
useSystemStore: () =>
|
|
2029
|
-
userMonitor: () =>
|
|
2024
|
+
useSystemStore: () => y,
|
|
2025
|
+
userMonitor: () => r
|
|
2030
2026
|
}), Fn = Nn;
|
|
2031
2027
|
//#endregion
|
|
2032
2028
|
export { Pn as n, Fn as t };
|