kouxiangtang 0.0.74 → 0.0.76
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/{AttachmentUploader-DEqVy0BV.js → AttachmentUploader-CUXQfDLM.js} +2 -2
- package/dist/{AttachmentUploader-DEqVy0BV.js.map → AttachmentUploader-CUXQfDLM.js.map} +1 -1
- package/dist/{ImageUploader-DDKdZvMz.js → ImageUploader-DKSGJOYE.js} +2 -2
- package/dist/{ImageUploader-DDKdZvMz.js.map → ImageUploader-DKSGJOYE.js.map} +1 -1
- package/dist/{ImagesUploader-DdKVZz-O.js → ImagesUploader-BHQbg94w.js} +2 -2
- package/dist/{ImagesUploader-DdKVZz-O.js.map → ImagesUploader-BHQbg94w.js.map} +1 -1
- package/dist/{RichTextEditor-BLcDFDAF.js → RichTextEditor-xLwdwwwK.js} +2 -2
- package/dist/{RichTextEditor-BLcDFDAF.js.map → RichTextEditor-xLwdwwwK.js.map} +1 -1
- package/dist/{config-J6Vc0kpm.js → config-1q6Up84b.js} +2 -2
- package/dist/{config-J6Vc0kpm.js.map → config-1q6Up84b.js.map} +1 -1
- package/dist/{config-BljoYPoP.js → config-6hJFmYbl.js} +2 -2
- package/dist/{config-BljoYPoP.js.map → config-6hJFmYbl.js.map} +1 -1
- package/dist/{config-JeHx3pnY.js → config-BCqBtq8J.js} +3 -3
- package/dist/{config-JeHx3pnY.js.map → config-BCqBtq8J.js.map} +1 -1
- package/dist/{config-wR0cpENE.js → config-BGZaGgC1.js} +3 -3
- package/dist/{config-wR0cpENE.js.map → config-BGZaGgC1.js.map} +1 -1
- package/dist/{config-TvA1qG2B.js → config-BMZTAp9-.js} +2 -2
- package/dist/{config-TvA1qG2B.js.map → config-BMZTAp9-.js.map} +1 -1
- package/dist/{config-Bba3xS49.js → config-BXPcamHo.js} +2 -2
- package/dist/{config-Bba3xS49.js.map → config-BXPcamHo.js.map} +1 -1
- package/dist/{config-CIVHkCUa.js → config-BpioUn1S.js} +2 -2
- package/dist/{config-CIVHkCUa.js.map → config-BpioUn1S.js.map} +1 -1
- package/dist/{config-DG4klmx8.js → config-CD-6WyoX.js} +2 -2
- package/dist/{config-DG4klmx8.js.map → config-CD-6WyoX.js.map} +1 -1
- package/dist/{config-BZUYXt6Z.js → config-CEfmA-KW.js} +2 -2
- package/dist/{config-BZUYXt6Z.js.map → config-CEfmA-KW.js.map} +1 -1
- package/dist/{config-BYWEwL00.js → config-CWJFFv-8.js} +2 -2
- package/dist/{config-BYWEwL00.js.map → config-CWJFFv-8.js.map} +1 -1
- package/dist/{config-Bp_kyviv.js → config-Cb3VsDk0.js} +2 -2
- package/dist/{config-Bp_kyviv.js.map → config-Cb3VsDk0.js.map} +1 -1
- package/dist/{config-BGSdcdzT.js → config-CsGwfVkk.js} +2 -2
- package/dist/{config-BGSdcdzT.js.map → config-CsGwfVkk.js.map} +1 -1
- package/dist/{config-LLq5Cp6k.js → config-D-9jiY2C.js} +2 -2
- package/dist/{config-LLq5Cp6k.js.map → config-D-9jiY2C.js.map} +1 -1
- package/dist/{config-B_wZjj-h.js → config-D2DgQhOX.js} +2 -2
- package/dist/{config-B_wZjj-h.js.map → config-D2DgQhOX.js.map} +1 -1
- package/dist/{config-4ds6yglo.js → config-D2sfKwWm.js} +2 -2
- package/dist/{config-4ds6yglo.js.map → config-D2sfKwWm.js.map} +1 -1
- package/dist/{config-DX19pwaM.js → config-D69Ti8fx.js} +2 -2
- package/dist/{config-DX19pwaM.js.map → config-D69Ti8fx.js.map} +1 -1
- package/dist/{config-CnDy4teA.js → config-DFL2aj4y.js} +2 -2
- package/dist/{config-CnDy4teA.js.map → config-DFL2aj4y.js.map} +1 -1
- package/dist/{config-Krtl9QFi.js → config-Dok-OQeK.js} +3 -3
- package/dist/{config-Krtl9QFi.js.map → config-Dok-OQeK.js.map} +1 -1
- package/dist/{config-CF-_NU64.js → config-DpEYJWdG.js} +2 -2
- package/dist/{config-CF-_NU64.js.map → config-DpEYJWdG.js.map} +1 -1
- package/dist/{index-DWntuszc.js → index-CHQzeeWp.js} +454 -452
- package/dist/index-CHQzeeWp.js.map +1 -0
- package/dist/kouxiangtang.js +1 -1
- package/dist/kouxiangtang.umd.cjs +4 -4
- package/dist/kouxiangtang.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index-DWntuszc.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { openBlock as u, createBlock as $, unref as m, createSlots as De, withCtx as w, renderSlot as J, createElementVNode as
|
|
2
|
-
import { ElCard as mn, ElLink as as, vLoading as ve, ElRow as xe, ElCol as $e, ElForm as hn, ElFormItem as st, ElAlert as rs, ElButton as ee, ElMessageBox as is, ElMessage as ke, ElDialog as ls, ElLoading as Be, ElInputNumber as Lt, ElSelect as Pt, ElOption as Ye, ElSelectV2 as us, ElDatePicker as jt, ElInput as cs, ElButtonGroup as pe, ElDropdown as ot, ElDropdownMenu as at, ElDropdownItem as
|
|
3
|
-
import { useRoute as
|
|
1
|
+
import { openBlock as u, createBlock as $, unref as m, createSlots as De, withCtx as w, renderSlot as J, createElementVNode as C, toDisplayString as B, resolveComponent as qe, withDirectives as _e, createElementBlock as S, normalizeStyle as Ke, createVNode as O, createTextVNode as I, computed as V, Fragment as L, renderList as q, ref as D, reactive as Oe, watch as P, resolveDynamicComponent as K, createCommentVNode as F, shallowRef as Z, defineAsyncComponent as Zn, normalizeClass as he, withModifiers as Rt, defineComponent as W, useSlots as Re, onMounted as dn, watchEffect as ht, pushScopeId as pn, popScopeId as fn, normalizeProps as Tt, guardReactiveProps as Ft, getCurrentScope as es, onScopeDispose as ts, getCurrentInstance as ns, nextTick as ss, useCssVars as os } from "vue";
|
|
2
|
+
import { ElCard as mn, ElLink as as, vLoading as ve, ElRow as xe, ElCol as $e, ElForm as hn, ElFormItem as st, ElAlert as rs, ElButton as ee, ElMessageBox as is, ElMessage as ke, ElDialog as ls, ElLoading as Be, ElInputNumber as Lt, ElSelect as Pt, ElOption as Ye, ElSelectV2 as us, ElDatePicker as jt, ElInput as cs, ElButtonGroup as pe, ElDropdown as ot, ElDropdownMenu as at, ElDropdownItem as le, ElIcon as G, ElEmpty as ds, ElImage as gn, ElTable as ps, ElTableColumn as je, ElTooltip as yn, ElPagination as fs, ElText as Bt, ElTabs as _n, ElTabPane as vn, ElSubMenu as ms, ElMenuItem as hs, ElScrollbar as gs, ElMenu as ys, ElConfigProvider as _s, ElContainer as Nt, ElHeader as vs, ElAside as bs, ElMain as ws, ElCollapse as Es, ElCollapseItem as $s } from "element-plus";
|
|
3
|
+
import { useRoute as M, useRouter as fe } from "vue-router";
|
|
4
4
|
import { defineStore as gt, storeToRefs as ge } from "pinia";
|
|
5
5
|
function bn(t, e) {
|
|
6
6
|
return function() {
|
|
@@ -323,10 +323,10 @@ function Ge(t, e, n) {
|
|
|
323
323
|
if (b.endsWith(f, "{}"))
|
|
324
324
|
f = s ? f : f.slice(0, -2), _ = JSON.stringify(_);
|
|
325
325
|
else if (b.isArray(_) && ao(_) || (b.isFileList(_) || b.endsWith(f, "[]")) && (p = b.toArray(_)))
|
|
326
|
-
return f = Dn(f), p.forEach(function(y,
|
|
326
|
+
return f = Dn(f), p.forEach(function(y, x) {
|
|
327
327
|
!(b.isUndefined(y) || y === null) && e.append(
|
|
328
328
|
// eslint-disable-next-line no-nested-ternary
|
|
329
|
-
r === !0 ? Mt([f],
|
|
329
|
+
r === !0 ? Mt([f], x, a) : r === null ? f : f + "[]",
|
|
330
330
|
g(y)
|
|
331
331
|
);
|
|
332
332
|
}), !1;
|
|
@@ -1156,7 +1156,7 @@ function jo(t, e, n) {
|
|
|
1156
1156
|
const ut = {
|
|
1157
1157
|
assertOptions: jo,
|
|
1158
1158
|
validators: vt
|
|
1159
|
-
},
|
|
1159
|
+
}, ie = ut.validators;
|
|
1160
1160
|
class de {
|
|
1161
1161
|
constructor(e) {
|
|
1162
1162
|
this.defaults = e, this.interceptors = {
|
|
@@ -1190,14 +1190,14 @@ class de {
|
|
|
1190
1190
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = ye(this.defaults, n);
|
|
1191
1191
|
const { transitional: s, paramsSerializer: o, headers: a } = n;
|
|
1192
1192
|
s !== void 0 && ut.assertOptions(s, {
|
|
1193
|
-
silentJSONParsing:
|
|
1194
|
-
forcedJSONParsing:
|
|
1195
|
-
clarifyTimeoutError:
|
|
1193
|
+
silentJSONParsing: ie.transitional(ie.boolean),
|
|
1194
|
+
forcedJSONParsing: ie.transitional(ie.boolean),
|
|
1195
|
+
clarifyTimeoutError: ie.transitional(ie.boolean)
|
|
1196
1196
|
}, !1), o != null && (b.isFunction(o) ? n.paramsSerializer = {
|
|
1197
1197
|
serialize: o
|
|
1198
1198
|
} : ut.assertOptions(o, {
|
|
1199
|
-
encode:
|
|
1200
|
-
serialize:
|
|
1199
|
+
encode: ie.function,
|
|
1200
|
+
serialize: ie.function
|
|
1201
1201
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1202
1202
|
let r = a && b.merge(
|
|
1203
1203
|
a.common,
|
|
@@ -1425,29 +1425,29 @@ function Vn(t) {
|
|
|
1425
1425
|
return Vn(ye(t, o));
|
|
1426
1426
|
}, n;
|
|
1427
1427
|
}
|
|
1428
|
-
const
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1428
|
+
const H = Vn(Fe);
|
|
1429
|
+
H.Axios = de;
|
|
1430
|
+
H.CanceledError = Le;
|
|
1431
|
+
H.CancelToken = bt;
|
|
1432
|
+
H.isCancel = jn;
|
|
1433
|
+
H.VERSION = In;
|
|
1434
|
+
H.toFormData = Ge;
|
|
1435
|
+
H.AxiosError = R;
|
|
1436
|
+
H.Cancel = H.CanceledError;
|
|
1437
|
+
H.all = function(e) {
|
|
1438
1438
|
return Promise.all(e);
|
|
1439
1439
|
};
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1440
|
+
H.spread = Bo;
|
|
1441
|
+
H.isAxiosError = No;
|
|
1442
|
+
H.mergeConfig = ye;
|
|
1443
|
+
H.AxiosHeaders = X;
|
|
1444
|
+
H.formToJSON = (t) => Pn(b.isHTMLForm(t) ? new FormData(t) : t);
|
|
1445
|
+
H.getAdapter = Nn.getAdapter;
|
|
1446
|
+
H.HttpStatusCode = ct;
|
|
1447
|
+
H.default = H;
|
|
1448
1448
|
let we = null;
|
|
1449
1449
|
function Io(t) {
|
|
1450
|
-
we =
|
|
1450
|
+
we = H.create(t);
|
|
1451
1451
|
}
|
|
1452
1452
|
function Vo() {
|
|
1453
1453
|
return we;
|
|
@@ -1498,7 +1498,7 @@ async function Ho(t, e, n = {}) {
|
|
|
1498
1498
|
});
|
|
1499
1499
|
});
|
|
1500
1500
|
}
|
|
1501
|
-
const
|
|
1501
|
+
const ne = {
|
|
1502
1502
|
get: Mo,
|
|
1503
1503
|
post: Uo,
|
|
1504
1504
|
put: Ho,
|
|
@@ -1554,8 +1554,8 @@ var Mn = { exports: {} };
|
|
|
1554
1554
|
}
|
|
1555
1555
|
function k(f, v, p, h) {
|
|
1556
1556
|
return function(y) {
|
|
1557
|
-
var
|
|
1558
|
-
return v.hasOwnProperty(
|
|
1557
|
+
var x = y.toLowerCase();
|
|
1558
|
+
return v.hasOwnProperty(x) ? !0 : f.hasOwnProperty(x) ? !1 : i(x, x, p) === x;
|
|
1559
1559
|
};
|
|
1560
1560
|
}
|
|
1561
1561
|
function _(f, v, p) {
|
|
@@ -1826,49 +1826,49 @@ class Ko {
|
|
|
1826
1826
|
console.log(`${this.side}/${this.domain} 不支持 ${Ve} 操作`);
|
|
1827
1827
|
return;
|
|
1828
1828
|
}
|
|
1829
|
-
return
|
|
1829
|
+
return ne.get(`${this.side}/${this.resources}`, e);
|
|
1830
1830
|
}
|
|
1831
1831
|
_getOne(e) {
|
|
1832
1832
|
if (!this.operations.includes(Me)) {
|
|
1833
1833
|
console.log(`${this.side}/${this.domain} 不支持 ${Me} 操作`);
|
|
1834
1834
|
return;
|
|
1835
1835
|
}
|
|
1836
|
-
return
|
|
1836
|
+
return ne.get(`${this.side}/${this.resources}/${e.id}`);
|
|
1837
1837
|
}
|
|
1838
1838
|
_create(e) {
|
|
1839
1839
|
if (!this.operations.includes(Ue)) {
|
|
1840
1840
|
console.log(`${this.side}/${this.domain} 不支持 ${Ue} 操作`);
|
|
1841
1841
|
return;
|
|
1842
1842
|
}
|
|
1843
|
-
return
|
|
1843
|
+
return ne.post(`${this.side}/${this.resources}`, e);
|
|
1844
1844
|
}
|
|
1845
1845
|
_update(e) {
|
|
1846
1846
|
if (!this.operations.includes(ze)) {
|
|
1847
1847
|
console.log(`${this.side}/${this.domain} 不支持 ${ze} 操作`);
|
|
1848
1848
|
return;
|
|
1849
1849
|
}
|
|
1850
|
-
return
|
|
1850
|
+
return ne.put(`${this.side}/${this.resources}/${e.id}`, e);
|
|
1851
1851
|
}
|
|
1852
1852
|
_remove(e) {
|
|
1853
1853
|
if (!this.operations.includes(me)) {
|
|
1854
1854
|
console.log(`${this.side}/${this.domain} 不支持 ${me} 操作`);
|
|
1855
1855
|
return;
|
|
1856
1856
|
}
|
|
1857
|
-
return
|
|
1857
|
+
return ne.remove(`${this.side}/${this.resources}/${e.id}`, e);
|
|
1858
1858
|
}
|
|
1859
1859
|
_restore(e) {
|
|
1860
1860
|
if (!this.operations.includes(dt)) {
|
|
1861
1861
|
console.log(`${this.side}/${this.domain} 不支持 ${dt} 操作`);
|
|
1862
1862
|
return;
|
|
1863
1863
|
}
|
|
1864
|
-
return
|
|
1864
|
+
return ne.put(`${this.side}/${this.resources}/${e.id}/restore`, e);
|
|
1865
1865
|
}
|
|
1866
1866
|
_enable(e) {
|
|
1867
1867
|
if (!this.operations.includes(me)) {
|
|
1868
1868
|
console.log(`${this.side}/${this.domain} 不支持 ${me} 操作`);
|
|
1869
1869
|
return;
|
|
1870
1870
|
}
|
|
1871
|
-
return
|
|
1871
|
+
return ne.put(`${this.side}/${this.resources}/${e.id}/switch`, e);
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
1874
|
class Yo {
|
|
@@ -1877,10 +1877,10 @@ class Yo {
|
|
|
1877
1877
|
}
|
|
1878
1878
|
getList(e) {
|
|
1879
1879
|
let n = e;
|
|
1880
|
-
return this.listQuerys && (n = { ...this.listQuerys, ...e }),
|
|
1880
|
+
return this.listQuerys && (n = { ...this.listQuerys, ...e }), ne.get(`${this.side}/${this.resources}`, n);
|
|
1881
1881
|
}
|
|
1882
1882
|
getOne(e) {
|
|
1883
|
-
return
|
|
1883
|
+
return ne.get(`${this.side}/${this.resources}/${e.id}`);
|
|
1884
1884
|
}
|
|
1885
1885
|
}
|
|
1886
1886
|
const ol = {
|
|
@@ -2008,7 +2008,7 @@ const nt = {
|
|
|
2008
2008
|
component: { config: "component" }
|
|
2009
2009
|
};
|
|
2010
2010
|
async function Kt(t, e, n) {
|
|
2011
|
-
const s = await Xo(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-
|
|
2011
|
+
const s = await Xo(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-BCqBtq8J.js"), "./field/belongs-to/config.js": () => import("./config-CEfmA-KW.js"), "./field/boolean/config.js": () => import("./config-DpEYJWdG.js"), "./field/cascader/config.js": () => import("./config-D69Ti8fx.js"), "./field/component/config.js": () => import("./config-D2DgQhOX.js"), "./field/date/config.js": () => import("./config-6hJFmYbl.js"), "./field/datetime/config.js": () => import("./config-CsGwfVkk.js"), "./field/image/config.js": () => import("./config-Dok-OQeK.js"), "./field/images/config.js": () => import("./config-BMZTAp9-.js"), "./field/json/config.js": () => import("./config-1q6Up84b.js"), "./field/radio-group/config.js": () => import("./config-BXPcamHo.js"), "./field/rich-text/config.js": () => import("./config-BGZaGgC1.js"), "./field/row-id/config.js": () => import("./config-DFL2aj4y.js"), "./field/select/config.js": () => import("./config-BpioUn1S.js"), "./field/string/config.js": () => import("./config-CD-6WyoX.js"), "./field/switch/config.js": () => import("./config-D2sfKwWm.js"), "./field/text/config.js": () => import("./config-CWJFFv-8.js"), "./field/time/config.js": () => import("./config-Cb3VsDk0.js"), "./field/tree-select/config.js": () => import("./config-D-9jiY2C.js") }), `./field/${t}/config.js`, 4);
|
|
2012
2012
|
return new s.default(e, n);
|
|
2013
2013
|
}
|
|
2014
2014
|
function Yt(t, e = "unknown") {
|
|
@@ -2158,7 +2158,7 @@ class na {
|
|
|
2158
2158
|
function sa(t, e) {
|
|
2159
2159
|
return new na(t, e);
|
|
2160
2160
|
}
|
|
2161
|
-
const
|
|
2161
|
+
const N = (t, e) => {
|
|
2162
2162
|
const n = t.__vccOpts || t;
|
|
2163
2163
|
for (const [s, o] of e)
|
|
2164
2164
|
n[s] = o;
|
|
@@ -2181,15 +2181,15 @@ const B = (t, e) => {
|
|
|
2181
2181
|
e.title ? {
|
|
2182
2182
|
name: "header",
|
|
2183
2183
|
fn: w(() => [
|
|
2184
|
-
|
|
2185
|
-
|
|
2184
|
+
C("div", oa, [
|
|
2185
|
+
C("span", aa, B(e.title), 1)
|
|
2186
2186
|
])
|
|
2187
2187
|
]),
|
|
2188
2188
|
key: "0"
|
|
2189
2189
|
} : void 0
|
|
2190
2190
|
]), 1024));
|
|
2191
2191
|
}
|
|
2192
|
-
}, ia = /* @__PURE__ */
|
|
2192
|
+
}, ia = /* @__PURE__ */ N(ra, [["__scopeId", "data-v-c5513c07"]]), la = { key: 0 }, ua = { key: 1 }, ca = { key: 0 }, da = { key: 1 }, pa = {
|
|
2193
2193
|
__name: "Statistic",
|
|
2194
2194
|
props: {
|
|
2195
2195
|
title: {
|
|
@@ -2218,38 +2218,38 @@ const B = (t, e) => {
|
|
|
2218
2218
|
class: "container",
|
|
2219
2219
|
style: Ke(`background: ${m(n)}; padding: ${m(s)}`)
|
|
2220
2220
|
}, [
|
|
2221
|
-
|
|
2221
|
+
C("div", {
|
|
2222
2222
|
class: "item-box-data mono-data",
|
|
2223
2223
|
style: Ke(`text-align: ${e.align};`)
|
|
2224
2224
|
}, [
|
|
2225
|
-
e.value != null ? (u(), S("span", la,
|
|
2225
|
+
e.value != null ? (u(), S("span", la, B(e.value), 1)) : (u(), S("span", ua, "..."))
|
|
2226
2226
|
], 4),
|
|
2227
|
-
|
|
2227
|
+
C("div", {
|
|
2228
2228
|
class: "item-box-tip",
|
|
2229
2229
|
style: Ke(`text-align: ${e.align};`)
|
|
2230
2230
|
}, [
|
|
2231
2231
|
e.link ? (u(), S("span", ca, [
|
|
2232
|
-
|
|
2232
|
+
O(r, {
|
|
2233
2233
|
to: e.link
|
|
2234
2234
|
}, {
|
|
2235
2235
|
default: w(() => [
|
|
2236
|
-
|
|
2236
|
+
O(m(as), { type: "primary" }, {
|
|
2237
2237
|
default: w(() => [
|
|
2238
|
-
|
|
2238
|
+
I(B(e.title), 1)
|
|
2239
2239
|
]),
|
|
2240
2240
|
_: 1
|
|
2241
2241
|
})
|
|
2242
2242
|
]),
|
|
2243
2243
|
_: 1
|
|
2244
2244
|
}, 8, ["to"])
|
|
2245
|
-
])) : (u(), S("span", da,
|
|
2245
|
+
])) : (u(), S("span", da, B(e.title), 1))
|
|
2246
2246
|
], 4)
|
|
2247
2247
|
], 4)), [
|
|
2248
2248
|
[m(ve), e.value == null]
|
|
2249
2249
|
]);
|
|
2250
2250
|
};
|
|
2251
2251
|
}
|
|
2252
|
-
}, fa = /* @__PURE__ */
|
|
2252
|
+
}, fa = /* @__PURE__ */ N(pa, [["__scopeId", "data-v-73228f1a"]]), ma = {
|
|
2253
2253
|
__name: "StatisticCard",
|
|
2254
2254
|
props: {
|
|
2255
2255
|
title: {
|
|
@@ -2275,7 +2275,7 @@ const B = (t, e) => {
|
|
|
2275
2275
|
const e = t;
|
|
2276
2276
|
return (n, s) => (u(), $(ia, null, {
|
|
2277
2277
|
default: w(() => [
|
|
2278
|
-
|
|
2278
|
+
O(fa, {
|
|
2279
2279
|
title: e.title,
|
|
2280
2280
|
value: e.value,
|
|
2281
2281
|
icon: e.icon,
|
|
@@ -2287,13 +2287,13 @@ const B = (t, e) => {
|
|
|
2287
2287
|
_: 1
|
|
2288
2288
|
}));
|
|
2289
2289
|
}
|
|
2290
|
-
}, il = /* @__PURE__ */
|
|
2290
|
+
}, il = /* @__PURE__ */ N(ma, [["__scopeId", "data-v-f338c407"]]), ha = {}, ga = { style: { padding: "20px 0" } };
|
|
2291
2291
|
function ya(t, e) {
|
|
2292
2292
|
return u(), S("div", ga, [
|
|
2293
2293
|
J(t.$slots, "default")
|
|
2294
2294
|
]);
|
|
2295
2295
|
}
|
|
2296
|
-
const ll = /* @__PURE__ */
|
|
2296
|
+
const ll = /* @__PURE__ */ N(ha, [["render", ya]]), _a = {
|
|
2297
2297
|
__name: "DashboardRow",
|
|
2298
2298
|
setup(t) {
|
|
2299
2299
|
return (e, n) => (u(), $(m(xe), {
|
|
@@ -2306,8 +2306,8 @@ const ll = /* @__PURE__ */ B(ha, [["render", ya]]), _a = {
|
|
|
2306
2306
|
_: 3
|
|
2307
2307
|
}));
|
|
2308
2308
|
}
|
|
2309
|
-
}, ul = /* @__PURE__ */
|
|
2310
|
-
function
|
|
2309
|
+
}, ul = /* @__PURE__ */ N(_a, [["__scopeId", "data-v-5b091760"]]);
|
|
2310
|
+
function Q(t) {
|
|
2311
2311
|
const e = { ...t.query, ...t.params };
|
|
2312
2312
|
if (t.params.domain && t.params.id) {
|
|
2313
2313
|
const n = zn(`${e.domain}-id`);
|
|
@@ -2329,7 +2329,7 @@ const ba = {
|
|
|
2329
2329
|
fields: Array
|
|
2330
2330
|
},
|
|
2331
2331
|
setup(t) {
|
|
2332
|
-
const e = t, n =
|
|
2332
|
+
const e = t, n = V(() => {
|
|
2333
2333
|
if (e.layout.length == 0) {
|
|
2334
2334
|
if (e.fields.length <= 6) {
|
|
2335
2335
|
const r = o(e.fields, 1);
|
|
@@ -2351,9 +2351,9 @@ const ba = {
|
|
|
2351
2351
|
return d;
|
|
2352
2352
|
}
|
|
2353
2353
|
return (a, r) => (u(), S("div", null, [
|
|
2354
|
-
(u(!0), S(L, null,
|
|
2354
|
+
(u(!0), S(L, null, q(n.value, (l) => (u(), $(m(xe), { gutter: 20 }, {
|
|
2355
2355
|
default: w(() => [
|
|
2356
|
-
(u(!0), S(L, null,
|
|
2356
|
+
(u(!0), S(L, null, q(l.cols, (d) => (u(), $(m($e), {
|
|
2357
2357
|
span: s(d.field).wholeRow ? 24 : d.span
|
|
2358
2358
|
}, {
|
|
2359
2359
|
default: w(() => [
|
|
@@ -2384,9 +2384,9 @@ const ba = {
|
|
|
2384
2384
|
},
|
|
2385
2385
|
emits: ["submit", "remove"],
|
|
2386
2386
|
setup(t, { emit: e }) {
|
|
2387
|
-
const n =
|
|
2388
|
-
const
|
|
2389
|
-
return y.disabled =
|
|
2387
|
+
const n = M(), s = Q(n), o = e, a = D(!1), r = t, l = ft(r.config.formLayout || []), d = Oe({ ...r.data }), g = D(null), c = r.config.fields.filter((y) => y.rules).reduce((y, x) => (y[x.code] = k(x.rules), y), {}), i = V(h), E = V(() => r.config.fields.filter((y) => {
|
|
2388
|
+
const x = y.editable(d, s), A = y.visible(d, s);
|
|
2389
|
+
return y.disabled = A && !x, x || A;
|
|
2390
2390
|
}));
|
|
2391
2391
|
function k(y) {
|
|
2392
2392
|
return typeof y == "object" ? y : typeof y == "function" ? y(d) : [];
|
|
@@ -2397,16 +2397,16 @@ const ba = {
|
|
|
2397
2397
|
});
|
|
2398
2398
|
}
|
|
2399
2399
|
async function f() {
|
|
2400
|
-
await g.value.validate(async (y,
|
|
2401
|
-
var
|
|
2400
|
+
await g.value.validate(async (y, x) => {
|
|
2401
|
+
var ce, j;
|
|
2402
2402
|
if (!y)
|
|
2403
|
-
return console.log("error submit!",
|
|
2404
|
-
const
|
|
2405
|
-
if (
|
|
2406
|
-
await r.config.submitConfirm(
|
|
2403
|
+
return console.log("error submit!", x), !1;
|
|
2404
|
+
const A = (ce = r.config.fields.find((ae) => ["images", "attachments", "attachment"].includes(ae.type))) == null ? void 0 : ce.code, U = { ...d };
|
|
2405
|
+
if (A && (U[A] = (j = U[A]) == null ? void 0 : j.map((ae) => ae.id)), r.config.submitConfirm) {
|
|
2406
|
+
await r.config.submitConfirm(U) && _(U);
|
|
2407
2407
|
return;
|
|
2408
2408
|
}
|
|
2409
|
-
_(
|
|
2409
|
+
_(U);
|
|
2410
2410
|
});
|
|
2411
2411
|
}
|
|
2412
2412
|
function v() {
|
|
@@ -2437,28 +2437,28 @@ const ba = {
|
|
|
2437
2437
|
}
|
|
2438
2438
|
return P(
|
|
2439
2439
|
() => ({ ...d }),
|
|
2440
|
-
(y,
|
|
2441
|
-
const
|
|
2440
|
+
(y, x) => {
|
|
2441
|
+
const U = Object.keys(y).filter((j) => x[j] !== y[j]).map((j) => {
|
|
2442
2442
|
var ae;
|
|
2443
|
-
return (ae = g.value) == null || ae.clearValidate(
|
|
2444
|
-
field:
|
|
2445
|
-
newValue: y[
|
|
2446
|
-
oldValue:
|
|
2443
|
+
return (ae = g.value) == null || ae.clearValidate(j), {
|
|
2444
|
+
field: j,
|
|
2445
|
+
newValue: y[j],
|
|
2446
|
+
oldValue: x[j]
|
|
2447
2447
|
};
|
|
2448
2448
|
});
|
|
2449
|
-
E.value.filter((
|
|
2450
|
-
|
|
2449
|
+
E.value.filter((j) => !j.disabled).forEach((j) => {
|
|
2450
|
+
j.formChange && j.formChange(d, U);
|
|
2451
2451
|
});
|
|
2452
2452
|
}
|
|
2453
2453
|
), P(
|
|
2454
2454
|
() => r.data,
|
|
2455
2455
|
(y) => {
|
|
2456
|
-
Object.keys(y).forEach((
|
|
2457
|
-
d[
|
|
2456
|
+
Object.keys(y).forEach((x) => {
|
|
2457
|
+
d[x] = y[x];
|
|
2458
2458
|
});
|
|
2459
2459
|
},
|
|
2460
2460
|
{ immediate: !0 }
|
|
2461
|
-
), (y,
|
|
2461
|
+
), (y, x) => (u(), $(m(hn), {
|
|
2462
2462
|
id: "form",
|
|
2463
2463
|
ref_key: "formRef",
|
|
2464
2464
|
ref: g,
|
|
@@ -2468,30 +2468,30 @@ const ba = {
|
|
|
2468
2468
|
rules: m(c)
|
|
2469
2469
|
}, {
|
|
2470
2470
|
default: w(() => [
|
|
2471
|
-
|
|
2471
|
+
O(ba, {
|
|
2472
2472
|
layout: m(l),
|
|
2473
2473
|
fields: E.value
|
|
2474
2474
|
}, {
|
|
2475
|
-
default: w(({ field:
|
|
2475
|
+
default: w(({ field: A }) => [
|
|
2476
2476
|
(u(), $(m(st), {
|
|
2477
|
-
key:
|
|
2478
|
-
label:
|
|
2479
|
-
prop:
|
|
2477
|
+
key: A.code,
|
|
2478
|
+
label: A.label,
|
|
2479
|
+
prop: A.code
|
|
2480
2480
|
}, {
|
|
2481
2481
|
default: w(() => [
|
|
2482
|
-
|
|
2483
|
-
|
|
2482
|
+
C("div", wa, [
|
|
2483
|
+
A != null && A.editor ? (u(), $(K(A.editor), {
|
|
2484
2484
|
key: 0,
|
|
2485
|
-
modelValue: d[
|
|
2486
|
-
"onUpdate:modelValue": (
|
|
2487
|
-
field:
|
|
2488
|
-
disabled:
|
|
2485
|
+
modelValue: d[A.code],
|
|
2486
|
+
"onUpdate:modelValue": (U) => d[A.code] = U,
|
|
2487
|
+
field: A,
|
|
2488
|
+
disabled: A.disabled,
|
|
2489
2489
|
"form-data": d,
|
|
2490
2490
|
"domain-config": r.config,
|
|
2491
2491
|
row: d
|
|
2492
2492
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "field", "disabled", "form-data", "domain-config", "row"])) : (u(), $(m(rs), {
|
|
2493
2493
|
key: 1,
|
|
2494
|
-
title: `未找到 ${
|
|
2494
|
+
title: `未找到 ${A.code}(${A.type}) 的编辑器`,
|
|
2495
2495
|
type: "error",
|
|
2496
2496
|
effect: "dark",
|
|
2497
2497
|
closable: !1
|
|
@@ -2503,7 +2503,7 @@ const ba = {
|
|
|
2503
2503
|
]),
|
|
2504
2504
|
_: 1
|
|
2505
2505
|
}, 8, ["layout", "fields"]),
|
|
2506
|
-
|
|
2506
|
+
C("div", Ea, [
|
|
2507
2507
|
d.id && !d.deletedAt && r.removable ? (u(), $(m(ee), {
|
|
2508
2508
|
key: 0,
|
|
2509
2509
|
size: "default",
|
|
@@ -2511,7 +2511,7 @@ const ba = {
|
|
|
2511
2511
|
onClick: p
|
|
2512
2512
|
}, {
|
|
2513
2513
|
default: w(() => [
|
|
2514
|
-
|
|
2514
|
+
I(" 删除 ")
|
|
2515
2515
|
]),
|
|
2516
2516
|
_: 1
|
|
2517
2517
|
})) : (u(), S("div", $a)),
|
|
@@ -2523,7 +2523,7 @@ const ba = {
|
|
|
2523
2523
|
onClick: f
|
|
2524
2524
|
}, {
|
|
2525
2525
|
default: w(() => [
|
|
2526
|
-
|
|
2526
|
+
I(" 提交 ")
|
|
2527
2527
|
]),
|
|
2528
2528
|
_: 1
|
|
2529
2529
|
}, 8, ["loading"])) : F("", !0)
|
|
@@ -2532,9 +2532,9 @@ const ba = {
|
|
|
2532
2532
|
_: 1
|
|
2533
2533
|
}, 8, ["model", "rules"]));
|
|
2534
2534
|
}
|
|
2535
|
-
}, Oa = /* @__PURE__ */
|
|
2535
|
+
}, Oa = /* @__PURE__ */ N(Sa, [["__scopeId", "data-v-e33a452e"]]);
|
|
2536
2536
|
function xa() {
|
|
2537
|
-
return He().idempotentUrl ?
|
|
2537
|
+
return He().idempotentUrl ? ne.get(He().idempotentUrl).then((t) => t.data) : "";
|
|
2538
2538
|
}
|
|
2539
2539
|
const Se = {
|
|
2540
2540
|
getValue: xa
|
|
@@ -2560,14 +2560,14 @@ const Se = {
|
|
|
2560
2560
|
},
|
|
2561
2561
|
emits: ["update:modelValue", "submit", "remove"],
|
|
2562
2562
|
setup(t, { emit: e }) {
|
|
2563
|
-
const n =
|
|
2563
|
+
const n = M(), s = Q(n), o = e, a = t, r = D(a.data), l = V(() => ({ ...r.value, idempotentToken: g.value })), d = V(() => a.config.fields.filter((f) => f.visible(l, s)).length >= 6 ? "60%" : "40%"), g = D(""), c = V({
|
|
2564
2564
|
get() {
|
|
2565
2565
|
return a.modelValue;
|
|
2566
2566
|
},
|
|
2567
2567
|
set(_) {
|
|
2568
2568
|
o("update:modelValue", _);
|
|
2569
2569
|
}
|
|
2570
|
-
}), i =
|
|
2570
|
+
}), i = V(() => a.title ? a.title : a.data.id ? `编辑${a.config.name}` : `添加${a.config.name}`);
|
|
2571
2571
|
function E(_, f, v) {
|
|
2572
2572
|
r.value = f, o("submit", _, async () => {
|
|
2573
2573
|
g.value = await Se.getValue(), v();
|
|
@@ -2596,7 +2596,7 @@ const Se = {
|
|
|
2596
2596
|
"z-index": 2e3
|
|
2597
2597
|
}, {
|
|
2598
2598
|
default: w(() => [
|
|
2599
|
-
|
|
2599
|
+
O(Oa, {
|
|
2600
2600
|
config: a.config,
|
|
2601
2601
|
data: l.value,
|
|
2602
2602
|
removable: a.removable,
|
|
@@ -2638,7 +2638,7 @@ const Se = {
|
|
|
2638
2638
|
}
|
|
2639
2639
|
},
|
|
2640
2640
|
setup(t) {
|
|
2641
|
-
const e = t, n = D(e.row), s = D(!1), o = Z(null), a =
|
|
2641
|
+
const e = t, n = D(e.row), s = D(!1), o = Z(null), a = M(), r = Q(a), l = sa("simple", {
|
|
2642
2642
|
simple: !0,
|
|
2643
2643
|
code: e.code,
|
|
2644
2644
|
fields: e.fields
|
|
@@ -2674,7 +2674,7 @@ const Se = {
|
|
|
2674
2674
|
onClick: d
|
|
2675
2675
|
}, {
|
|
2676
2676
|
default: w(() => [
|
|
2677
|
-
|
|
2677
|
+
I(B(e.text) + " ", 1),
|
|
2678
2678
|
s.value ? (u(), $($t, {
|
|
2679
2679
|
key: 0,
|
|
2680
2680
|
modelValue: s.value,
|
|
@@ -2698,9 +2698,9 @@ const Se = {
|
|
|
2698
2698
|
},
|
|
2699
2699
|
setup(t) {
|
|
2700
2700
|
const e = t;
|
|
2701
|
-
return (n, s) => (u(), S("span", ka,
|
|
2701
|
+
return (n, s) => (u(), S("span", ka, B(e.text), 1));
|
|
2702
2702
|
}
|
|
2703
|
-
}, dl = /* @__PURE__ */
|
|
2703
|
+
}, dl = /* @__PURE__ */ N(Aa, [["__scopeId", "data-v-c97e855f"]]), pl = {
|
|
2704
2704
|
__name: "FieldEditor",
|
|
2705
2705
|
props: {
|
|
2706
2706
|
modelValue: {
|
|
@@ -2714,13 +2714,13 @@ const Se = {
|
|
|
2714
2714
|
},
|
|
2715
2715
|
emits: ["update:modelValue"],
|
|
2716
2716
|
setup(t, { emit: e }) {
|
|
2717
|
-
const n = Zn(() => import("./ImagesUploader-
|
|
2717
|
+
const n = Zn(() => import("./ImagesUploader-BHQbg94w.js")), s = He().fileUploadUrl, o = e, a = t, r = Oe({ value: a.modelValue }), l = a.field.converter;
|
|
2718
2718
|
function d(c) {
|
|
2719
2719
|
const i = r.value.findIndex((E) => E.id === c.id);
|
|
2720
2720
|
i >= 0 && (r.value.splice(i, 1), o("update:modelValue", r.value));
|
|
2721
2721
|
}
|
|
2722
2722
|
function g(c) {
|
|
2723
|
-
Be.service({ text: "上传中,请稍后", background: "rgba(0,0,0,0.3)" }),
|
|
2723
|
+
Be.service({ text: "上传中,请稍后", background: "rgba(0,0,0,0.3)" }), ne.post(s, c).then((i) => {
|
|
2724
2724
|
Be.service().close(), ke({
|
|
2725
2725
|
message: "上传成功",
|
|
2726
2726
|
type: "success"
|
|
@@ -2741,7 +2741,7 @@ const Se = {
|
|
|
2741
2741
|
},
|
|
2742
2742
|
{ immediate: !0 }
|
|
2743
2743
|
), (c, i) => (u(), S("div", null, [
|
|
2744
|
-
|
|
2744
|
+
O(m(n), {
|
|
2745
2745
|
images: r.value,
|
|
2746
2746
|
props: a.field.props,
|
|
2747
2747
|
onOnUpload: g,
|
|
@@ -2749,7 +2749,7 @@ const Se = {
|
|
|
2749
2749
|
}, null, 8, ["images", "props"])
|
|
2750
2750
|
]));
|
|
2751
2751
|
}
|
|
2752
|
-
},
|
|
2752
|
+
}, ue = gt("data-table-mode", {
|
|
2753
2753
|
state: () => ({
|
|
2754
2754
|
mode: "list",
|
|
2755
2755
|
created: -1,
|
|
@@ -2862,17 +2862,17 @@ const Ta = { class: "sorters-box" }, Fa = ["onClick"], La = { class: "sorters-la
|
|
|
2862
2862
|
);
|
|
2863
2863
|
}
|
|
2864
2864
|
return (d, g) => (u(), S("div", Ta, [
|
|
2865
|
-
(u(!0), S(L, null,
|
|
2865
|
+
(u(!0), S(L, null, q(o.value, (c, i) => (u(), S("div", {
|
|
2866
2866
|
class: "sorters-item",
|
|
2867
2867
|
onClick: (E) => l(i, "")
|
|
2868
2868
|
}, [
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2869
|
+
C("div", La, B(c.name), 1),
|
|
2870
|
+
C("div", Pa, [
|
|
2871
|
+
C("i", {
|
|
2872
2872
|
class: he(["sort-caret ascending", c.order === "ASC" ? "ascending-active" : ""]),
|
|
2873
2873
|
onClick: Rt((E) => l(i, "ASC"), ["stop"])
|
|
2874
2874
|
}, null, 10, ja),
|
|
2875
|
-
|
|
2875
|
+
C("i", {
|
|
2876
2876
|
class: he(["sort-caret descending", c.order === "DESC" ? "descending-active" : ""]),
|
|
2877
2877
|
onClick: Rt((E) => l(i, "DESC"), ["stop"])
|
|
2878
2878
|
}, null, 10, Ba)
|
|
@@ -2880,7 +2880,7 @@ const Ta = { class: "sorters-box" }, Fa = ["onClick"], La = { class: "sorters-la
|
|
|
2880
2880
|
], 8, Fa))), 256))
|
|
2881
2881
|
]));
|
|
2882
2882
|
}
|
|
2883
|
-
}, Ia = /* @__PURE__ */
|
|
2883
|
+
}, Ia = /* @__PURE__ */ N(Na, [["__scopeId", "data-v-fa20b02a"]]), Va = { class: "ranges-box" }, Ma = { class: "range-item" }, Ua = { class: "range-label" }, za = { class: "range-input-box" }, Ha = {
|
|
2884
2884
|
__name: "FiltersRange",
|
|
2885
2885
|
props: {
|
|
2886
2886
|
ranges: {
|
|
@@ -2921,10 +2921,10 @@ const Ta = { class: "sorters-box" }, Fa = ["onClick"], La = { class: "sorters-la
|
|
|
2921
2921
|
);
|
|
2922
2922
|
}
|
|
2923
2923
|
return a(), (l, d) => (u(), S("div", Va, [
|
|
2924
|
-
(u(!0), S(L, null,
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2924
|
+
(u(!0), S(L, null, q(o, (g) => (u(), S("div", Ma, [
|
|
2925
|
+
C("div", Ua, B(g.name), 1),
|
|
2926
|
+
C("div", za, [
|
|
2927
|
+
O(m(Lt), {
|
|
2928
2928
|
modelValue: g.min,
|
|
2929
2929
|
"onUpdate:modelValue": (c) => g.min = c,
|
|
2930
2930
|
"controls-position": "right",
|
|
@@ -2933,7 +2933,7 @@ const Ta = { class: "sorters-box" }, Fa = ["onClick"], La = { class: "sorters-la
|
|
|
2933
2933
|
r(c, g.field, "min");
|
|
2934
2934
|
}
|
|
2935
2935
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"]),
|
|
2936
|
-
|
|
2936
|
+
O(m(Lt), {
|
|
2937
2937
|
modelValue: g.max,
|
|
2938
2938
|
"onUpdate:modelValue": (c) => g.max = c,
|
|
2939
2939
|
"controls-position": "right",
|
|
@@ -2947,7 +2947,7 @@ const Ta = { class: "sorters-box" }, Fa = ["onClick"], La = { class: "sorters-la
|
|
|
2947
2947
|
]))), 256))
|
|
2948
2948
|
]));
|
|
2949
2949
|
}
|
|
2950
|
-
}, qa = /* @__PURE__ */
|
|
2950
|
+
}, qa = /* @__PURE__ */ N(Ha, [["__scopeId", "data-v-30f46526"]]), Wa = { key: 0 }, Qa = {
|
|
2951
2951
|
__name: "FiltersEditor",
|
|
2952
2952
|
props: {
|
|
2953
2953
|
settings: {
|
|
@@ -2955,7 +2955,7 @@ const Ta = { class: "sorters-box" }, Fa = ["onClick"], La = { class: "sorters-la
|
|
|
2955
2955
|
}
|
|
2956
2956
|
},
|
|
2957
2957
|
setup(t) {
|
|
2958
|
-
const e = t, n =
|
|
2958
|
+
const e = t, n = M(), s = Q(n), o = D([]), a = Oe({}), r = Oe({}), l = Pe(
|
|
2959
2959
|
e.settings.code,
|
|
2960
2960
|
n.path,
|
|
2961
2961
|
e.settings.filters,
|
|
@@ -2979,38 +2979,40 @@ const Ta = { class: "sorters-box" }, Fa = ["onClick"], La = { class: "sorters-la
|
|
|
2979
2979
|
else if (Array.isArray(p.options))
|
|
2980
2980
|
r[p.code] = p.options;
|
|
2981
2981
|
else if (typeof p.options == "object") {
|
|
2982
|
-
const
|
|
2982
|
+
const x = p.options.getOneUrl ? p.options.getOneUrl : p.options.url;
|
|
2983
2983
|
if (!h && Array.isArray(a[p.code]) && a[p.code].length > 0)
|
|
2984
|
-
r[p.code] = [], a[p.code].forEach((
|
|
2985
|
-
|
|
2984
|
+
r[p.code] = [], a[p.code].forEach((A) => {
|
|
2985
|
+
x.getOne({ id: A }).then((U) => {
|
|
2986
2986
|
r[p.code].push({
|
|
2987
|
-
code:
|
|
2988
|
-
name:
|
|
2987
|
+
code: U.data[p.options.data.value] || U.data.id,
|
|
2988
|
+
name: U.data[p.options.data.label] || U.data.name
|
|
2989
2989
|
});
|
|
2990
2990
|
});
|
|
2991
2991
|
});
|
|
2992
2992
|
else if (!h && !Array.isArray(a[p.code]) && a[p.code])
|
|
2993
|
-
|
|
2993
|
+
x.getOne({ id: a[p.code] }).then((A) => {
|
|
2994
2994
|
r[p.code] = [
|
|
2995
2995
|
{
|
|
2996
|
-
code:
|
|
2997
|
-
name:
|
|
2996
|
+
code: A.data[p.options.data.value] || A.data.id,
|
|
2997
|
+
name: A.data[p.options.data.label] || A.data.name
|
|
2998
2998
|
}
|
|
2999
2999
|
];
|
|
3000
3000
|
});
|
|
3001
3001
|
else {
|
|
3002
|
-
const
|
|
3003
|
-
p.options.url[
|
|
3002
|
+
const A = p.options.query.keyWord.toString(), U = p.options.method ? p.options.method : "getList";
|
|
3003
|
+
p.options.url[U]({
|
|
3004
3004
|
...p.options.query,
|
|
3005
|
-
[
|
|
3006
|
-
}).then((
|
|
3007
|
-
r[p.code] =
|
|
3008
|
-
code:
|
|
3009
|
-
name:
|
|
3005
|
+
[A]: h
|
|
3006
|
+
}).then((ce) => {
|
|
3007
|
+
r[p.code] = ce.data.rows.map((j) => ({
|
|
3008
|
+
code: j[p.options.data.value] || j.id,
|
|
3009
|
+
name: j[p.options.data.label] || j.name
|
|
3010
3010
|
}));
|
|
3011
3011
|
});
|
|
3012
3012
|
}
|
|
3013
3013
|
}
|
|
3014
|
+
let y = r[p.code].map((x) => x.code);
|
|
3015
|
+
a[p.code] = a[p.code].filter((x) => y.includes(x));
|
|
3014
3016
|
}
|
|
3015
3017
|
function c(p) {
|
|
3016
3018
|
if (p.remote)
|
|
@@ -3057,28 +3059,28 @@ const Ta = { class: "sorters-box" }, Fa = ["onClick"], La = { class: "sorters-la
|
|
|
3057
3059
|
), P(
|
|
3058
3060
|
() => ({ ...a }),
|
|
3059
3061
|
(p, h) => {
|
|
3060
|
-
const
|
|
3061
|
-
field:
|
|
3062
|
-
newValue: p[
|
|
3063
|
-
oldValue: h[
|
|
3062
|
+
const x = Object.keys(p).filter((A) => h[A] !== p[A]).map((A) => ({
|
|
3063
|
+
field: A,
|
|
3064
|
+
newValue: p[A],
|
|
3065
|
+
oldValue: h[A]
|
|
3064
3066
|
}));
|
|
3065
|
-
o.value.forEach((
|
|
3066
|
-
|
|
3067
|
+
o.value.forEach((A) => {
|
|
3068
|
+
A.formChange && A.formChange(a, x);
|
|
3067
3069
|
});
|
|
3068
3070
|
}
|
|
3069
3071
|
), (p, h) => Object.keys(e.settings.filters).length > 0 ? (u(), S("div", Wa, [
|
|
3070
|
-
|
|
3072
|
+
O(m(hn), {
|
|
3071
3073
|
model: a,
|
|
3072
3074
|
inline: "",
|
|
3073
3075
|
class: "form-editor"
|
|
3074
3076
|
}, {
|
|
3075
3077
|
default: w(() => [
|
|
3076
|
-
(u(!0), S(L, null,
|
|
3078
|
+
(u(!0), S(L, null, q(o.value, (y) => (u(), $(m(st), null, {
|
|
3077
3079
|
default: w(() => [
|
|
3078
3080
|
y.type === "boolean" ? (u(), $(m(Pt), {
|
|
3079
3081
|
key: 0,
|
|
3080
3082
|
modelValue: a[y.code],
|
|
3081
|
-
"onUpdate:modelValue": (
|
|
3083
|
+
"onUpdate:modelValue": (x) => a[y.code] = x,
|
|
3082
3084
|
filterable: "",
|
|
3083
3085
|
clearable: "",
|
|
3084
3086
|
placeholder: `是否${y.name}`,
|
|
@@ -3086,11 +3088,11 @@ const Ta = { class: "sorters-box" }, Fa = ["onClick"], La = { class: "sorters-la
|
|
|
3086
3088
|
onChange: f
|
|
3087
3089
|
}, {
|
|
3088
3090
|
default: w(() => [
|
|
3089
|
-
|
|
3091
|
+
O(m(Ye), {
|
|
3090
3092
|
value: !0,
|
|
3091
3093
|
label: `已${y.name}`
|
|
3092
3094
|
}, null, 8, ["label"]),
|
|
3093
|
-
|
|
3095
|
+
O(m(Ye), {
|
|
3094
3096
|
value: !1,
|
|
3095
3097
|
label: `未${y.name}`
|
|
3096
3098
|
}, null, 8, ["label"])
|
|
@@ -3099,7 +3101,7 @@ const Ta = { class: "sorters-box" }, Fa = ["onClick"], La = { class: "sorters-la
|
|
|
3099
3101
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])) : y.type === "select" ? (u(), $(m(Pt), {
|
|
3100
3102
|
key: 1,
|
|
3101
3103
|
modelValue: a[y.code],
|
|
3102
|
-
"onUpdate:modelValue": (
|
|
3104
|
+
"onUpdate:modelValue": (x) => a[y.code] = x,
|
|
3103
3105
|
filterable: "",
|
|
3104
3106
|
clearable: "",
|
|
3105
3107
|
remote: "",
|
|
@@ -3116,18 +3118,18 @@ const Ta = { class: "sorters-box" }, Fa = ["onClick"], La = { class: "sorters-la
|
|
|
3116
3118
|
onChange: f
|
|
3117
3119
|
}, {
|
|
3118
3120
|
default: w(() => [
|
|
3119
|
-
(u(!0), S(L, null,
|
|
3120
|
-
key:
|
|
3121
|
-
label:
|
|
3122
|
-
value:
|
|
3123
|
-
title:
|
|
3121
|
+
(u(!0), S(L, null, q(r[y.code], (x) => (u(), $(m(Ye), {
|
|
3122
|
+
key: x.code,
|
|
3123
|
+
label: x.name,
|
|
3124
|
+
value: x.code,
|
|
3125
|
+
title: x.name
|
|
3124
3126
|
}, null, 8, ["label", "value", "title"]))), 128))
|
|
3125
3127
|
]),
|
|
3126
3128
|
_: 2
|
|
3127
3129
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "class", "multiple-limit", "remote-method"])) : y.type === "selectV2" ? (u(), $(m(us), {
|
|
3128
3130
|
key: 2,
|
|
3129
3131
|
modelValue: a[y.code],
|
|
3130
|
-
"onUpdate:modelValue": (
|
|
3132
|
+
"onUpdate:modelValue": (x) => a[y.code] = x,
|
|
3131
3133
|
filterable: "",
|
|
3132
3134
|
options: r[y.code] ? r[y.code] : [],
|
|
3133
3135
|
props: { label: "name", value: "code" },
|
|
@@ -3149,7 +3151,7 @@ const Ta = { class: "sorters-box" }, Fa = ["onClick"], La = { class: "sorters-la
|
|
|
3149
3151
|
}, null, 8, ["value", "ranges"])) : y.type === "datetime" ? (u(), $(m(jt), {
|
|
3150
3152
|
key: 5,
|
|
3151
3153
|
modelValue: a[y.code],
|
|
3152
|
-
"onUpdate:modelValue": (
|
|
3154
|
+
"onUpdate:modelValue": (x) => a[y.code] = x,
|
|
3153
3155
|
type: "datetime",
|
|
3154
3156
|
format: "YYYY-MM-DD HH:mm:ss",
|
|
3155
3157
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
@@ -3157,7 +3159,7 @@ const Ta = { class: "sorters-box" }, Fa = ["onClick"], La = { class: "sorters-la
|
|
|
3157
3159
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : y.type === "datetime-range" ? (u(), $(m(jt), {
|
|
3158
3160
|
key: 6,
|
|
3159
3161
|
modelValue: a[y.code],
|
|
3160
|
-
"onUpdate:modelValue": (
|
|
3162
|
+
"onUpdate:modelValue": (x) => a[y.code] = x,
|
|
3161
3163
|
type: y.dateType,
|
|
3162
3164
|
format: y.format,
|
|
3163
3165
|
"value-format": y.format,
|
|
@@ -3167,7 +3169,7 @@ const Ta = { class: "sorters-box" }, Fa = ["onClick"], La = { class: "sorters-la
|
|
|
3167
3169
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "format", "value-format", "start-placeholder", "end-placeholder", "placeholder"])) : (u(), $(m(cs), {
|
|
3168
3170
|
key: 7,
|
|
3169
3171
|
modelValue: a[y.code],
|
|
3170
|
-
"onUpdate:modelValue": (
|
|
3172
|
+
"onUpdate:modelValue": (x) => a[y.code] = x,
|
|
3171
3173
|
modelModifiers: { trim: !0 },
|
|
3172
3174
|
placeholder: y.name,
|
|
3173
3175
|
type: y.type,
|
|
@@ -3178,18 +3180,18 @@ const Ta = { class: "sorters-box" }, Fa = ["onClick"], La = { class: "sorters-la
|
|
|
3178
3180
|
}, 1024))), 256)),
|
|
3179
3181
|
o.value.length > 0 ? (u(), $(m(st), { key: 0 }, {
|
|
3180
3182
|
default: w(() => [
|
|
3181
|
-
|
|
3183
|
+
O(m(ee), {
|
|
3182
3184
|
type: "primary",
|
|
3183
3185
|
onClick: f
|
|
3184
3186
|
}, {
|
|
3185
3187
|
default: w(() => [
|
|
3186
|
-
|
|
3188
|
+
I(" 查询 ")
|
|
3187
3189
|
]),
|
|
3188
3190
|
_: 1
|
|
3189
3191
|
}),
|
|
3190
|
-
|
|
3192
|
+
O(m(ee), { onClick: v }, {
|
|
3191
3193
|
default: w(() => [
|
|
3192
|
-
|
|
3194
|
+
I(" 重置 ")
|
|
3193
3195
|
]),
|
|
3194
3196
|
_: 1
|
|
3195
3197
|
})
|
|
@@ -3201,9 +3203,9 @@ const Ta = { class: "sorters-box" }, Fa = ["onClick"], La = { class: "sorters-la
|
|
|
3201
3203
|
}, 8, ["model"])
|
|
3202
3204
|
])) : F("", !0);
|
|
3203
3205
|
}
|
|
3204
|
-
}, Ja = /* @__PURE__ */
|
|
3206
|
+
}, Ja = /* @__PURE__ */ N(Qa, [["__scopeId", "data-v-d4bdd549"]]);
|
|
3205
3207
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
3206
|
-
var Ga = /* @__PURE__ */
|
|
3208
|
+
var Ga = /* @__PURE__ */ W({
|
|
3207
3209
|
name: "ArrowDown",
|
|
3208
3210
|
__name: "arrow-down",
|
|
3209
3211
|
setup(t) {
|
|
@@ -3211,13 +3213,13 @@ var Ga = /* @__PURE__ */ q({
|
|
|
3211
3213
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3212
3214
|
viewBox: "0 0 1024 1024"
|
|
3213
3215
|
}, [
|
|
3214
|
-
|
|
3216
|
+
C("path", {
|
|
3215
3217
|
fill: "currentColor",
|
|
3216
3218
|
d: "M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"
|
|
3217
3219
|
})
|
|
3218
3220
|
]));
|
|
3219
3221
|
}
|
|
3220
|
-
}), Ka = Ga, Ya = /* @__PURE__ */
|
|
3222
|
+
}), Ka = Ga, Ya = /* @__PURE__ */ W({
|
|
3221
3223
|
name: "CircleCloseFilled",
|
|
3222
3224
|
__name: "circle-close-filled",
|
|
3223
3225
|
setup(t) {
|
|
@@ -3225,13 +3227,13 @@ var Ga = /* @__PURE__ */ q({
|
|
|
3225
3227
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3226
3228
|
viewBox: "0 0 1024 1024"
|
|
3227
3229
|
}, [
|
|
3228
|
-
|
|
3230
|
+
C("path", {
|
|
3229
3231
|
fill: "currentColor",
|
|
3230
3232
|
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
|
|
3231
3233
|
})
|
|
3232
3234
|
]));
|
|
3233
3235
|
}
|
|
3234
|
-
}), fl = Ya, Xa = /* @__PURE__ */
|
|
3236
|
+
}), fl = Ya, Xa = /* @__PURE__ */ W({
|
|
3235
3237
|
name: "Close",
|
|
3236
3238
|
__name: "close",
|
|
3237
3239
|
setup(t) {
|
|
@@ -3239,13 +3241,13 @@ var Ga = /* @__PURE__ */ q({
|
|
|
3239
3241
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3240
3242
|
viewBox: "0 0 1024 1024"
|
|
3241
3243
|
}, [
|
|
3242
|
-
|
|
3244
|
+
C("path", {
|
|
3243
3245
|
fill: "currentColor",
|
|
3244
3246
|
d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
3245
3247
|
})
|
|
3246
3248
|
]));
|
|
3247
3249
|
}
|
|
3248
|
-
}), Za = Xa, er = /* @__PURE__ */
|
|
3250
|
+
}), Za = Xa, er = /* @__PURE__ */ W({
|
|
3249
3251
|
name: "DArrowLeft",
|
|
3250
3252
|
__name: "d-arrow-left",
|
|
3251
3253
|
setup(t) {
|
|
@@ -3253,13 +3255,13 @@ var Ga = /* @__PURE__ */ q({
|
|
|
3253
3255
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3254
3256
|
viewBox: "0 0 1024 1024"
|
|
3255
3257
|
}, [
|
|
3256
|
-
|
|
3258
|
+
C("path", {
|
|
3257
3259
|
fill: "currentColor",
|
|
3258
3260
|
d: "M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"
|
|
3259
3261
|
})
|
|
3260
3262
|
]));
|
|
3261
3263
|
}
|
|
3262
|
-
}), Xt = er, tr = /* @__PURE__ */
|
|
3264
|
+
}), Xt = er, tr = /* @__PURE__ */ W({
|
|
3263
3265
|
name: "DArrowRight",
|
|
3264
3266
|
__name: "d-arrow-right",
|
|
3265
3267
|
setup(t) {
|
|
@@ -3267,13 +3269,13 @@ var Ga = /* @__PURE__ */ q({
|
|
|
3267
3269
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3268
3270
|
viewBox: "0 0 1024 1024"
|
|
3269
3271
|
}, [
|
|
3270
|
-
|
|
3272
|
+
C("path", {
|
|
3271
3273
|
fill: "currentColor",
|
|
3272
3274
|
d: "M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"
|
|
3273
3275
|
})
|
|
3274
3276
|
]));
|
|
3275
3277
|
}
|
|
3276
|
-
}), nr = tr, sr = /* @__PURE__ */
|
|
3278
|
+
}), nr = tr, sr = /* @__PURE__ */ W({
|
|
3277
3279
|
name: "Delete",
|
|
3278
3280
|
__name: "delete",
|
|
3279
3281
|
setup(t) {
|
|
@@ -3281,13 +3283,13 @@ var Ga = /* @__PURE__ */ q({
|
|
|
3281
3283
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3282
3284
|
viewBox: "0 0 1024 1024"
|
|
3283
3285
|
}, [
|
|
3284
|
-
|
|
3286
|
+
C("path", {
|
|
3285
3287
|
fill: "currentColor",
|
|
3286
3288
|
d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"
|
|
3287
3289
|
})
|
|
3288
3290
|
]));
|
|
3289
3291
|
}
|
|
3290
|
-
}), ml = sr, or = /* @__PURE__ */
|
|
3292
|
+
}), ml = sr, or = /* @__PURE__ */ W({
|
|
3291
3293
|
name: "Document",
|
|
3292
3294
|
__name: "document",
|
|
3293
3295
|
setup(t) {
|
|
@@ -3295,13 +3297,13 @@ var Ga = /* @__PURE__ */ q({
|
|
|
3295
3297
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3296
3298
|
viewBox: "0 0 1024 1024"
|
|
3297
3299
|
}, [
|
|
3298
|
-
|
|
3300
|
+
C("path", {
|
|
3299
3301
|
fill: "currentColor",
|
|
3300
3302
|
d: "M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"
|
|
3301
3303
|
})
|
|
3302
3304
|
]));
|
|
3303
3305
|
}
|
|
3304
|
-
}), hl = or, ar = /* @__PURE__ */
|
|
3306
|
+
}), hl = or, ar = /* @__PURE__ */ W({
|
|
3305
3307
|
name: "Download",
|
|
3306
3308
|
__name: "download",
|
|
3307
3309
|
setup(t) {
|
|
@@ -3309,13 +3311,13 @@ var Ga = /* @__PURE__ */ q({
|
|
|
3309
3311
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3310
3312
|
viewBox: "0 0 1024 1024"
|
|
3311
3313
|
}, [
|
|
3312
|
-
|
|
3314
|
+
C("path", {
|
|
3313
3315
|
fill: "currentColor",
|
|
3314
3316
|
d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"
|
|
3315
3317
|
})
|
|
3316
3318
|
]));
|
|
3317
3319
|
}
|
|
3318
|
-
}), gl = ar, rr = /* @__PURE__ */
|
|
3320
|
+
}), gl = ar, rr = /* @__PURE__ */ W({
|
|
3319
3321
|
name: "Grid",
|
|
3320
3322
|
__name: "grid",
|
|
3321
3323
|
setup(t) {
|
|
@@ -3323,13 +3325,13 @@ var Ga = /* @__PURE__ */ q({
|
|
|
3323
3325
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3324
3326
|
viewBox: "0 0 1024 1024"
|
|
3325
3327
|
}, [
|
|
3326
|
-
|
|
3328
|
+
C("path", {
|
|
3327
3329
|
fill: "currentColor",
|
|
3328
3330
|
d: "M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"
|
|
3329
3331
|
})
|
|
3330
3332
|
]));
|
|
3331
3333
|
}
|
|
3332
|
-
}), ir = rr, lr = /* @__PURE__ */
|
|
3334
|
+
}), ir = rr, lr = /* @__PURE__ */ W({
|
|
3333
3335
|
name: "Loading",
|
|
3334
3336
|
__name: "loading",
|
|
3335
3337
|
setup(t) {
|
|
@@ -3337,13 +3339,13 @@ var Ga = /* @__PURE__ */ q({
|
|
|
3337
3339
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3338
3340
|
viewBox: "0 0 1024 1024"
|
|
3339
3341
|
}, [
|
|
3340
|
-
|
|
3342
|
+
C("path", {
|
|
3341
3343
|
fill: "currentColor",
|
|
3342
3344
|
d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"
|
|
3343
3345
|
})
|
|
3344
3346
|
]));
|
|
3345
3347
|
}
|
|
3346
|
-
}), yl = lr, ur = /* @__PURE__ */
|
|
3348
|
+
}), yl = lr, ur = /* @__PURE__ */ W({
|
|
3347
3349
|
name: "Minus",
|
|
3348
3350
|
__name: "minus",
|
|
3349
3351
|
setup(t) {
|
|
@@ -3351,13 +3353,13 @@ var Ga = /* @__PURE__ */ q({
|
|
|
3351
3353
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3352
3354
|
viewBox: "0 0 1024 1024"
|
|
3353
3355
|
}, [
|
|
3354
|
-
|
|
3356
|
+
C("path", {
|
|
3355
3357
|
fill: "currentColor",
|
|
3356
3358
|
d: "M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"
|
|
3357
3359
|
})
|
|
3358
3360
|
]));
|
|
3359
3361
|
}
|
|
3360
|
-
}), cr = ur, dr = /* @__PURE__ */
|
|
3362
|
+
}), cr = ur, dr = /* @__PURE__ */ W({
|
|
3361
3363
|
name: "Operation",
|
|
3362
3364
|
__name: "operation",
|
|
3363
3365
|
setup(t) {
|
|
@@ -3365,13 +3367,13 @@ var Ga = /* @__PURE__ */ q({
|
|
|
3365
3367
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3366
3368
|
viewBox: "0 0 1024 1024"
|
|
3367
3369
|
}, [
|
|
3368
|
-
|
|
3370
|
+
C("path", {
|
|
3369
3371
|
fill: "currentColor",
|
|
3370
3372
|
d: "M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"
|
|
3371
3373
|
})
|
|
3372
3374
|
]));
|
|
3373
3375
|
}
|
|
3374
|
-
}), pr = dr, fr = /* @__PURE__ */
|
|
3376
|
+
}), pr = dr, fr = /* @__PURE__ */ W({
|
|
3375
3377
|
name: "Plus",
|
|
3376
3378
|
__name: "plus",
|
|
3377
3379
|
setup(t) {
|
|
@@ -3379,13 +3381,13 @@ var Ga = /* @__PURE__ */ q({
|
|
|
3379
3381
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3380
3382
|
viewBox: "0 0 1024 1024"
|
|
3381
3383
|
}, [
|
|
3382
|
-
|
|
3384
|
+
C("path", {
|
|
3383
3385
|
fill: "currentColor",
|
|
3384
3386
|
d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"
|
|
3385
3387
|
})
|
|
3386
3388
|
]));
|
|
3387
3389
|
}
|
|
3388
|
-
}), _l = fr, mr = /* @__PURE__ */
|
|
3390
|
+
}), _l = fr, mr = /* @__PURE__ */ W({
|
|
3389
3391
|
name: "PriceTag",
|
|
3390
3392
|
__name: "price-tag",
|
|
3391
3393
|
setup(t) {
|
|
@@ -3393,17 +3395,17 @@ var Ga = /* @__PURE__ */ q({
|
|
|
3393
3395
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3394
3396
|
viewBox: "0 0 1024 1024"
|
|
3395
3397
|
}, [
|
|
3396
|
-
|
|
3398
|
+
C("path", {
|
|
3397
3399
|
fill: "currentColor",
|
|
3398
3400
|
d: "M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"
|
|
3399
3401
|
}),
|
|
3400
|
-
|
|
3402
|
+
C("path", {
|
|
3401
3403
|
fill: "currentColor",
|
|
3402
3404
|
d: "M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"
|
|
3403
3405
|
})
|
|
3404
3406
|
]));
|
|
3405
3407
|
}
|
|
3406
|
-
}), Zt = mr, hr = /* @__PURE__ */
|
|
3408
|
+
}), Zt = mr, hr = /* @__PURE__ */ W({
|
|
3407
3409
|
name: "QuestionFilled",
|
|
3408
3410
|
__name: "question-filled",
|
|
3409
3411
|
setup(t) {
|
|
@@ -3411,13 +3413,13 @@ var Ga = /* @__PURE__ */ q({
|
|
|
3411
3413
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3412
3414
|
viewBox: "0 0 1024 1024"
|
|
3413
3415
|
}, [
|
|
3414
|
-
|
|
3416
|
+
C("path", {
|
|
3415
3417
|
fill: "currentColor",
|
|
3416
3418
|
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"
|
|
3417
3419
|
})
|
|
3418
3420
|
]));
|
|
3419
3421
|
}
|
|
3420
|
-
}), vl = hr, gr = /* @__PURE__ */
|
|
3422
|
+
}), vl = hr, gr = /* @__PURE__ */ W({
|
|
3421
3423
|
name: "Setting",
|
|
3422
3424
|
__name: "setting",
|
|
3423
3425
|
setup(t) {
|
|
@@ -3425,13 +3427,13 @@ var Ga = /* @__PURE__ */ q({
|
|
|
3425
3427
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3426
3428
|
viewBox: "0 0 1024 1024"
|
|
3427
3429
|
}, [
|
|
3428
|
-
|
|
3430
|
+
C("path", {
|
|
3429
3431
|
fill: "currentColor",
|
|
3430
3432
|
d: "M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"
|
|
3431
3433
|
})
|
|
3432
3434
|
]));
|
|
3433
3435
|
}
|
|
3434
|
-
}), yr = gr, _r = /* @__PURE__ */
|
|
3436
|
+
}), yr = gr, _r = /* @__PURE__ */ W({
|
|
3435
3437
|
name: "SuccessFilled",
|
|
3436
3438
|
__name: "success-filled",
|
|
3437
3439
|
setup(t) {
|
|
@@ -3439,13 +3441,13 @@ var Ga = /* @__PURE__ */ q({
|
|
|
3439
3441
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3440
3442
|
viewBox: "0 0 1024 1024"
|
|
3441
3443
|
}, [
|
|
3442
|
-
|
|
3444
|
+
C("path", {
|
|
3443
3445
|
fill: "currentColor",
|
|
3444
3446
|
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
|
|
3445
3447
|
})
|
|
3446
3448
|
]));
|
|
3447
3449
|
}
|
|
3448
|
-
}), bl = _r, vr = /* @__PURE__ */
|
|
3450
|
+
}), bl = _r, vr = /* @__PURE__ */ W({
|
|
3449
3451
|
name: "View",
|
|
3450
3452
|
__name: "view",
|
|
3451
3453
|
setup(t) {
|
|
@@ -3453,7 +3455,7 @@ var Ga = /* @__PURE__ */ q({
|
|
|
3453
3455
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3454
3456
|
viewBox: "0 0 1024 1024"
|
|
3455
3457
|
}, [
|
|
3456
|
-
|
|
3458
|
+
C("path", {
|
|
3457
3459
|
fill: "currentColor",
|
|
3458
3460
|
d: "M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"
|
|
3459
3461
|
})
|
|
@@ -3471,12 +3473,12 @@ const br = { class: "data-page-title" }, wr = { class: "title" }, Er = { class:
|
|
|
3471
3473
|
}
|
|
3472
3474
|
},
|
|
3473
3475
|
setup(t) {
|
|
3474
|
-
const e = t, n = e.tableName ? e.tableName : e.settings.name, s =
|
|
3476
|
+
const e = t, n = e.tableName ? e.tableName : e.settings.name, s = M(), o = ue(), a = Pe(
|
|
3475
3477
|
e.settings.code,
|
|
3476
3478
|
s.path,
|
|
3477
3479
|
e.settings.filters,
|
|
3478
3480
|
e.settings.filterHook
|
|
3479
|
-
)(), r = Re(), l =
|
|
3481
|
+
)(), r = Re(), l = V(() => a.validFilters.isDeleted || !1), d = V(() => e.settings.displayMode.normalMode);
|
|
3480
3482
|
function g() {
|
|
3481
3483
|
a.$reset({ isDeleted: !l.value });
|
|
3482
3484
|
}
|
|
@@ -3490,9 +3492,9 @@ const br = { class: "data-page-title" }, wr = { class: "title" }, Er = { class:
|
|
|
3490
3492
|
localStorage.setItem(k, o.mode);
|
|
3491
3493
|
}
|
|
3492
3494
|
return dn(c), (E, k) => (u(), S(L, null, [
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3495
|
+
C("div", br, [
|
|
3496
|
+
C("div", wr, B(l.value ? `已删除的${m(n)}` : m(n)), 1),
|
|
3497
|
+
C("div", Er, [
|
|
3496
3498
|
m(r).operations ? (u(), $(m(pe), {
|
|
3497
3499
|
key: 0,
|
|
3498
3500
|
class: "button-groups"
|
|
@@ -3502,28 +3504,28 @@ const br = { class: "data-page-title" }, wr = { class: "title" }, Er = { class:
|
|
|
3502
3504
|
]),
|
|
3503
3505
|
_: 3
|
|
3504
3506
|
})) : F("", !0),
|
|
3505
|
-
|
|
3507
|
+
O(m(pe), { class: "button-groups" }, {
|
|
3506
3508
|
default: w(() => [
|
|
3507
3509
|
J(E.$slots, "tools", {}, void 0, !0)
|
|
3508
3510
|
]),
|
|
3509
3511
|
_: 3
|
|
3510
3512
|
}),
|
|
3511
|
-
|
|
3513
|
+
O(m(ot), {
|
|
3512
3514
|
trigger: "click",
|
|
3513
3515
|
onCommand: i
|
|
3514
3516
|
}, {
|
|
3515
3517
|
dropdown: w(() => [
|
|
3516
|
-
|
|
3518
|
+
O(m(at), null, {
|
|
3517
3519
|
default: w(() => [
|
|
3518
|
-
|
|
3520
|
+
O(m(le), { command: "list" }, {
|
|
3519
3521
|
default: w(() => [
|
|
3520
|
-
|
|
3522
|
+
I(" 列表 ")
|
|
3521
3523
|
]),
|
|
3522
3524
|
_: 1
|
|
3523
3525
|
}),
|
|
3524
|
-
|
|
3526
|
+
O(m(le), { command: "grid" }, {
|
|
3525
3527
|
default: w(() => [
|
|
3526
|
-
|
|
3528
|
+
I(" 网格 ")
|
|
3527
3529
|
]),
|
|
3528
3530
|
_: 1
|
|
3529
3531
|
})
|
|
@@ -3532,17 +3534,17 @@ const br = { class: "data-page-title" }, wr = { class: "title" }, Er = { class:
|
|
|
3532
3534
|
})
|
|
3533
3535
|
]),
|
|
3534
3536
|
default: w(() => [
|
|
3535
|
-
|
|
3537
|
+
O(m(ee), null, {
|
|
3536
3538
|
default: w(() => [
|
|
3537
|
-
|
|
3539
|
+
O(m(G), null, {
|
|
3538
3540
|
default: w(() => [
|
|
3539
|
-
|
|
3541
|
+
O(m(ir))
|
|
3540
3542
|
]),
|
|
3541
3543
|
_: 1
|
|
3542
3544
|
}),
|
|
3543
|
-
|
|
3545
|
+
O(m(G), { class: "el-icon--right" }, {
|
|
3544
3546
|
default: w(() => [
|
|
3545
|
-
|
|
3547
|
+
O(m(Ka))
|
|
3546
3548
|
]),
|
|
3547
3549
|
_: 1
|
|
3548
3550
|
})
|
|
@@ -3557,14 +3559,14 @@ const br = { class: "data-page-title" }, wr = { class: "title" }, Er = { class:
|
|
|
3557
3559
|
trigger: "click"
|
|
3558
3560
|
}, {
|
|
3559
3561
|
dropdown: w(() => [
|
|
3560
|
-
|
|
3562
|
+
O(m(at), null, {
|
|
3561
3563
|
default: w(() => [
|
|
3562
|
-
|
|
3564
|
+
O(m(le), {
|
|
3563
3565
|
command: "deleted",
|
|
3564
3566
|
onClick: g
|
|
3565
3567
|
}, {
|
|
3566
3568
|
default: w(() => [
|
|
3567
|
-
|
|
3569
|
+
C("div", null, B(l.value ? "未删除" : "已删除"), 1)
|
|
3568
3570
|
]),
|
|
3569
3571
|
_: 1
|
|
3570
3572
|
})
|
|
@@ -3573,11 +3575,11 @@ const br = { class: "data-page-title" }, wr = { class: "title" }, Er = { class:
|
|
|
3573
3575
|
})
|
|
3574
3576
|
]),
|
|
3575
3577
|
default: w(() => [
|
|
3576
|
-
|
|
3578
|
+
O(m(ee), null, {
|
|
3577
3579
|
default: w(() => [
|
|
3578
|
-
|
|
3580
|
+
O(m(G), null, {
|
|
3579
3581
|
default: w(() => [
|
|
3580
|
-
|
|
3582
|
+
O(m(yr))
|
|
3581
3583
|
]),
|
|
3582
3584
|
_: 1
|
|
3583
3585
|
})
|
|
@@ -3589,12 +3591,12 @@ const br = { class: "data-page-title" }, wr = { class: "title" }, Er = { class:
|
|
|
3589
3591
|
})) : F("", !0)
|
|
3590
3592
|
])
|
|
3591
3593
|
]),
|
|
3592
|
-
|
|
3594
|
+
O(Ja, {
|
|
3593
3595
|
settings: e.settings
|
|
3594
3596
|
}, null, 8, ["settings"])
|
|
3595
3597
|
], 64));
|
|
3596
3598
|
}
|
|
3597
|
-
}, Sr = /* @__PURE__ */
|
|
3599
|
+
}, Sr = /* @__PURE__ */ N($r, [["__scopeId", "data-v-898f42af"]]), Or = { class: "kst-field-row-id" }, xr = { key: 0 }, kr = {
|
|
3598
3600
|
key: 1,
|
|
3599
3601
|
class: "mono-data"
|
|
3600
3602
|
}, Ar = { key: 1 }, Cr = {
|
|
@@ -3611,12 +3613,12 @@ const br = { class: "data-page-title" }, wr = { class: "title" }, Er = { class:
|
|
|
3611
3613
|
}
|
|
3612
3614
|
},
|
|
3613
3615
|
setup(t) {
|
|
3614
|
-
const e = Re(), n =
|
|
3616
|
+
const e = Re(), n = M(), s = t, o = n.meta.side, a = V(() => s.row[s.field.code]), r = V(() => ({
|
|
3615
3617
|
path: `/${o}/${s.field.domain}/${a.value}`,
|
|
3616
|
-
query: { ...
|
|
3618
|
+
query: { ...Q(n), ...s.field.rowQuery(s.row) }
|
|
3617
3619
|
}));
|
|
3618
3620
|
function l() {
|
|
3619
|
-
return s.field.isRouter(s.row,
|
|
3621
|
+
return s.field.isRouter(s.row, Q(n));
|
|
3620
3622
|
}
|
|
3621
3623
|
return (d, g) => {
|
|
3622
3624
|
const c = qe("RouterLink");
|
|
@@ -3630,25 +3632,25 @@ const br = { class: "data-page-title" }, wr = { class: "title" }, Er = { class:
|
|
|
3630
3632
|
default: w(() => [
|
|
3631
3633
|
m(e).name ? (u(), S(L, { key: 0 }, [
|
|
3632
3634
|
J(d.$slots, "name", {}, void 0, !0),
|
|
3633
|
-
|
|
3635
|
+
I("(#" + B(a.value) + ") ", 1)
|
|
3634
3636
|
], 64)) : (u(), S(L, { key: 1 }, [
|
|
3635
|
-
|
|
3637
|
+
I(" #" + B(a.value), 1)
|
|
3636
3638
|
], 64))
|
|
3637
3639
|
]),
|
|
3638
3640
|
_: 3
|
|
3639
3641
|
}, 8, ["to"])) : (u(), S("span", kr, [
|
|
3640
3642
|
m(e).name ? (u(), S(L, { key: 0 }, [
|
|
3641
3643
|
J(d.$slots, "name", {}, void 0, !0),
|
|
3642
|
-
|
|
3644
|
+
I("(" + B(a.value) + ") ", 1)
|
|
3643
3645
|
], 64)) : (u(), S(L, { key: 1 }, [
|
|
3644
|
-
|
|
3646
|
+
I(B(a.value), 1)
|
|
3645
3647
|
], 64))
|
|
3646
3648
|
]))
|
|
3647
3649
|
])) : (u(), S("span", Ar, " NO ID "))
|
|
3648
3650
|
]);
|
|
3649
3651
|
};
|
|
3650
3652
|
}
|
|
3651
|
-
}, Dr = /* @__PURE__ */
|
|
3653
|
+
}, Dr = /* @__PURE__ */ N(Cr, [["__scopeId", "data-v-00021e61"]]);
|
|
3652
3654
|
function Rr(t) {
|
|
3653
3655
|
ke(t);
|
|
3654
3656
|
}
|
|
@@ -3701,7 +3703,7 @@ const Tr = {
|
|
|
3701
3703
|
},
|
|
3702
3704
|
setup(t) {
|
|
3703
3705
|
var _;
|
|
3704
|
-
const e = St(), n =
|
|
3706
|
+
const e = St(), n = ue(), s = M(), o = fe(), a = Q(s), r = t, l = D({}), d = D(!1), g = V(() => {
|
|
3705
3707
|
var f, v;
|
|
3706
3708
|
return r.row.deletedAt ? !1 : (f = r.operations) != null && f.updatable ? !0 : !!((v = r.operations) != null && v.removable);
|
|
3707
3709
|
}), c = D((_ = r.operations) == null ? void 0 : _.removable);
|
|
@@ -3737,7 +3739,7 @@ const Tr = {
|
|
|
3737
3739
|
onClick: i
|
|
3738
3740
|
}, {
|
|
3739
3741
|
default: w(() => [
|
|
3740
|
-
|
|
3742
|
+
I(" 编辑 "),
|
|
3741
3743
|
d.value ? (u(), $($t, {
|
|
3742
3744
|
key: 0,
|
|
3743
3745
|
modelValue: d.value,
|
|
@@ -3755,7 +3757,7 @@ const Tr = {
|
|
|
3755
3757
|
}, Fr = (t) => (pn("data-v-0941be48"), t = t(), fn(), t), Lr = { class: "data-grid-wrapper" }, Pr = {
|
|
3756
3758
|
key: 0,
|
|
3757
3759
|
class: "cover"
|
|
3758
|
-
}, jr = /* @__PURE__ */ Fr(() => /* @__PURE__ */
|
|
3760
|
+
}, jr = /* @__PURE__ */ Fr(() => /* @__PURE__ */ C("div", { class: "image-slot" }, null, -1)), Br = { class: "header" }, Nr = { key: 0 }, Ir = { class: "key" }, Vr = { class: "value" }, Mr = {
|
|
3759
3761
|
key: 1,
|
|
3760
3762
|
class: "footer tools"
|
|
3761
3763
|
}, Ur = {
|
|
@@ -3774,7 +3776,7 @@ const Tr = {
|
|
|
3774
3776
|
}
|
|
3775
3777
|
},
|
|
3776
3778
|
setup(t) {
|
|
3777
|
-
const e =
|
|
3779
|
+
const e = M(), n = Q(e), s = Re(), o = t, a = Pe(
|
|
3778
3780
|
o.settings.code,
|
|
3779
3781
|
e.path,
|
|
3780
3782
|
o.settings.filters,
|
|
@@ -3788,10 +3790,10 @@ const Tr = {
|
|
|
3788
3790
|
c.value = p;
|
|
3789
3791
|
});
|
|
3790
3792
|
});
|
|
3791
|
-
const E =
|
|
3793
|
+
const E = V(() => {
|
|
3792
3794
|
var p, h;
|
|
3793
3795
|
return !!((p = o.operations) != null && p.updatable && c || (h = o.operations) != null && h.removable && c);
|
|
3794
|
-
}), k =
|
|
3796
|
+
}), k = V(() => o.settings.displayMode.gridWidth), _ = V(() => o.settings.displayMode.heightAuto);
|
|
3795
3797
|
function f() {
|
|
3796
3798
|
g.value = o.settings.fields.find((p) => p.code === "id"), d.value = o.settings.fields.filter((p) => p.code === o.settings.coverField || p.code === o.settings.nameField || p.code === "id" ? !1 : p.showInList(n, l.value));
|
|
3797
3799
|
}
|
|
@@ -3809,7 +3811,7 @@ const Tr = {
|
|
|
3809
3811
|
gutter: 20
|
|
3810
3812
|
}, {
|
|
3811
3813
|
default: w(() => [
|
|
3812
|
-
(u(!0), S(L, null,
|
|
3814
|
+
(u(!0), S(L, null, q(t.data, (y) => (u(), $(m($e), {
|
|
3813
3815
|
style: { "margin-bottom": "20px" },
|
|
3814
3816
|
span: k.value ? k.value : 24,
|
|
3815
3817
|
xs: k.value ? {} : 24,
|
|
@@ -3819,7 +3821,7 @@ const Tr = {
|
|
|
3819
3821
|
xl: k.value ? {} : 4
|
|
3820
3822
|
}, {
|
|
3821
3823
|
default: w(() => [
|
|
3822
|
-
|
|
3824
|
+
O(m(mn), {
|
|
3823
3825
|
"body-style": { padding: "0px" },
|
|
3824
3826
|
shadow: "hover"
|
|
3825
3827
|
}, {
|
|
@@ -3839,33 +3841,33 @@ const Tr = {
|
|
|
3839
3841
|
_: 2
|
|
3840
3842
|
}, 1032, ["src"]))
|
|
3841
3843
|
])) : F("", !0),
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
+
C("div", Br, [
|
|
3845
|
+
O(Dr, {
|
|
3844
3846
|
field: g.value,
|
|
3845
3847
|
row: y
|
|
3846
3848
|
}, De({ _: 2 }, [
|
|
3847
3849
|
y[o.settings.nameField] ? {
|
|
3848
3850
|
name: "name",
|
|
3849
3851
|
fn: w(() => [
|
|
3850
|
-
|
|
3852
|
+
I(B(v(y)), 1)
|
|
3851
3853
|
]),
|
|
3852
3854
|
key: "0"
|
|
3853
3855
|
} : void 0
|
|
3854
3856
|
]), 1032, ["field", "row"])
|
|
3855
3857
|
]),
|
|
3856
|
-
|
|
3858
|
+
C("div", {
|
|
3857
3859
|
class: he(_.value ? "body heightAuto" : "body")
|
|
3858
3860
|
}, [
|
|
3859
3861
|
m(s).body ? (u(), S("div", Nr, [
|
|
3860
3862
|
J(p.$slots, "body", { row: y }, void 0, !0)
|
|
3861
|
-
])) : (u(!0), S(L, { key: 1 },
|
|
3862
|
-
key:
|
|
3863
|
+
])) : (u(!0), S(L, { key: 1 }, q(d.value, (x) => (u(), S("div", {
|
|
3864
|
+
key: x.code,
|
|
3863
3865
|
class: "field mono-data"
|
|
3864
3866
|
}, [
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
(u(), $(K(
|
|
3868
|
-
field:
|
|
3867
|
+
C("div", Ir, B(x.label) + " ", 1),
|
|
3868
|
+
C("div", Vr, [
|
|
3869
|
+
(u(), $(K(x.display), {
|
|
3870
|
+
field: x,
|
|
3869
3871
|
row: y,
|
|
3870
3872
|
mode: "grid"
|
|
3871
3873
|
}, null, 8, ["field", "row"]))
|
|
@@ -3887,7 +3889,7 @@ const Tr = {
|
|
|
3887
3889
|
size: "small"
|
|
3888
3890
|
}, {
|
|
3889
3891
|
default: w(() => [
|
|
3890
|
-
|
|
3892
|
+
O(Ot, {
|
|
3891
3893
|
row: y,
|
|
3892
3894
|
settings: o.settings,
|
|
3893
3895
|
operations: o.operations
|
|
@@ -3907,7 +3909,7 @@ const Tr = {
|
|
|
3907
3909
|
}))
|
|
3908
3910
|
]));
|
|
3909
3911
|
}
|
|
3910
|
-
}, zr = /* @__PURE__ */
|
|
3912
|
+
}, zr = /* @__PURE__ */ N(Ur, [["__scopeId", "data-v-0941be48"]]);
|
|
3911
3913
|
function Hr(t, e) {
|
|
3912
3914
|
const n = t.fields.map((o) => o.code), s = Object.keys(e);
|
|
3913
3915
|
n.forEach((o) => {
|
|
@@ -3940,7 +3942,7 @@ const qr = {
|
|
|
3940
3942
|
},
|
|
3941
3943
|
emits: ["sort-column", "select-change", "enable-item"],
|
|
3942
3944
|
setup(t, { emit: e }) {
|
|
3943
|
-
const n =
|
|
3945
|
+
const n = M(), s = Q(n), o = e, a = Re(), r = t, l = Pe(
|
|
3944
3946
|
r.settings.code,
|
|
3945
3947
|
n.path,
|
|
3946
3948
|
r.settings.filters,
|
|
@@ -3954,7 +3956,7 @@ const qr = {
|
|
|
3954
3956
|
i.value = h;
|
|
3955
3957
|
});
|
|
3956
3958
|
});
|
|
3957
|
-
const k =
|
|
3959
|
+
const k = V(() => {
|
|
3958
3960
|
var h, y;
|
|
3959
3961
|
return !!((h = r.operations) != null && h.updatable && i.value || (y = r.operations) != null && y.removable && i.value);
|
|
3960
3962
|
});
|
|
@@ -3991,24 +3993,24 @@ const qr = {
|
|
|
3991
3993
|
onSortChange: _
|
|
3992
3994
|
}, {
|
|
3993
3995
|
default: w(() => [
|
|
3994
|
-
|
|
3996
|
+
O(m(je), {
|
|
3995
3997
|
type: "selection",
|
|
3996
3998
|
width: "40"
|
|
3997
3999
|
}),
|
|
3998
|
-
(u(!0), S(L, null,
|
|
3999
|
-
key:
|
|
4000
|
-
label:
|
|
4001
|
-
width:
|
|
4002
|
-
prop:
|
|
4003
|
-
sortable:
|
|
4004
|
-
fixed:
|
|
4000
|
+
(u(!0), S(L, null, q(c.value, (x) => (u(), $(m(je), {
|
|
4001
|
+
key: x.code,
|
|
4002
|
+
label: x.label,
|
|
4003
|
+
width: x.width,
|
|
4004
|
+
prop: x.code,
|
|
4005
|
+
sortable: x.sortable ? "custom" : !1,
|
|
4006
|
+
fixed: x.fixed
|
|
4005
4007
|
}, De({ _: 2 }, [
|
|
4006
|
-
|
|
4008
|
+
x.type === "switch" ? {
|
|
4007
4009
|
name: "default",
|
|
4008
|
-
fn: w(({ row:
|
|
4009
|
-
(u(), $(K(
|
|
4010
|
-
field:
|
|
4011
|
-
row:
|
|
4010
|
+
fn: w(({ row: A }) => [
|
|
4011
|
+
(u(), $(K(x.display), {
|
|
4012
|
+
field: x,
|
|
4013
|
+
row: A,
|
|
4012
4014
|
mode: "list",
|
|
4013
4015
|
onEnable: f
|
|
4014
4016
|
}, null, 40, ["field", "row"]))
|
|
@@ -4016,11 +4018,11 @@ const qr = {
|
|
|
4016
4018
|
key: "0"
|
|
4017
4019
|
} : {
|
|
4018
4020
|
name: "default",
|
|
4019
|
-
fn: w(({ row:
|
|
4020
|
-
(u(), $(K(
|
|
4021
|
-
key:
|
|
4022
|
-
field:
|
|
4023
|
-
row:
|
|
4021
|
+
fn: w(({ row: A }) => [
|
|
4022
|
+
(u(), $(K(x.display), {
|
|
4023
|
+
key: A.updatedAt,
|
|
4024
|
+
field: x,
|
|
4025
|
+
row: A,
|
|
4024
4026
|
mode: "list"
|
|
4025
4027
|
}, null, 8, ["field", "row"]))
|
|
4026
4028
|
]),
|
|
@@ -4033,10 +4035,10 @@ const qr = {
|
|
|
4033
4035
|
fixed: "right",
|
|
4034
4036
|
width: r.actionsWidth
|
|
4035
4037
|
}, {
|
|
4036
|
-
default: w(({ row:
|
|
4037
|
-
|
|
4038
|
+
default: w(({ row: x }) => [
|
|
4039
|
+
O(m(pe), { size: "small" }, {
|
|
4038
4040
|
default: w(() => [
|
|
4039
|
-
J(h.$slots, "actions", { row:
|
|
4041
|
+
J(h.$slots, "actions", { row: x }, void 0, !0)
|
|
4040
4042
|
]),
|
|
4041
4043
|
_: 2
|
|
4042
4044
|
}, 1024)
|
|
@@ -4049,11 +4051,11 @@ const qr = {
|
|
|
4049
4051
|
label: "操作",
|
|
4050
4052
|
width: r.operationsWidth
|
|
4051
4053
|
}, {
|
|
4052
|
-
default: w(({ row:
|
|
4053
|
-
|
|
4054
|
+
default: w(({ row: x }) => [
|
|
4055
|
+
O(m(pe), { size: "small" }, {
|
|
4054
4056
|
default: w(() => [
|
|
4055
|
-
|
|
4056
|
-
row:
|
|
4057
|
+
O(Ot, {
|
|
4058
|
+
row: x,
|
|
4057
4059
|
settings: r.settings,
|
|
4058
4060
|
operations: r.operations
|
|
4059
4061
|
}, null, 8, ["row", "settings", "operations"])
|
|
@@ -4067,7 +4069,7 @@ const qr = {
|
|
|
4067
4069
|
_: 3
|
|
4068
4070
|
}, 8, ["data"]));
|
|
4069
4071
|
}
|
|
4070
|
-
}, tn = /* @__PURE__ */
|
|
4072
|
+
}, tn = /* @__PURE__ */ N(qr, [["__scopeId", "data-v-31b40ae5"]]), Wr = {
|
|
4071
4073
|
__name: "DataTable",
|
|
4072
4074
|
props: {
|
|
4073
4075
|
data: {
|
|
@@ -4084,7 +4086,7 @@ const qr = {
|
|
|
4084
4086
|
}
|
|
4085
4087
|
},
|
|
4086
4088
|
setup(t) {
|
|
4087
|
-
const e =
|
|
4089
|
+
const e = ue();
|
|
4088
4090
|
e.$reset();
|
|
4089
4091
|
const { mode: n } = ge(e), s = Re(), o = t, a = Z(tn);
|
|
4090
4092
|
function r(l) {
|
|
@@ -4093,7 +4095,7 @@ const qr = {
|
|
|
4093
4095
|
return P(n, (l) => {
|
|
4094
4096
|
r(l);
|
|
4095
4097
|
}), (l, d) => (u(), $(K(a.value), Tt(Ft(o)), De({ _: 2 }, [
|
|
4096
|
-
|
|
4098
|
+
q(m(s), (g, c) => ({
|
|
4097
4099
|
name: c,
|
|
4098
4100
|
fn: w((i) => [
|
|
4099
4101
|
J(l.$slots, c, Tt(Ft(i || {})))
|
|
@@ -4114,7 +4116,7 @@ const qr = {
|
|
|
4114
4116
|
}
|
|
4115
4117
|
},
|
|
4116
4118
|
setup(t) {
|
|
4117
|
-
const e =
|
|
4119
|
+
const e = ue(), n = M(), s = Q(n), o = t, a = D({}), r = D(!1), l = D(!1);
|
|
4118
4120
|
async function d() {
|
|
4119
4121
|
var i;
|
|
4120
4122
|
return await ((i = o.operations) == null ? void 0 : i.creatable);
|
|
@@ -4144,7 +4146,7 @@ const qr = {
|
|
|
4144
4146
|
onClick: g
|
|
4145
4147
|
}, {
|
|
4146
4148
|
default: w(() => [
|
|
4147
|
-
|
|
4149
|
+
I(" 添加 "),
|
|
4148
4150
|
r.value ? (u(), $($t, {
|
|
4149
4151
|
key: 0,
|
|
4150
4152
|
modelValue: r.value,
|
|
@@ -4175,7 +4177,7 @@ const qr = {
|
|
|
4175
4177
|
}
|
|
4176
4178
|
},
|
|
4177
4179
|
setup(t) {
|
|
4178
|
-
const e = fe(), n =
|
|
4180
|
+
const e = fe(), n = ue(), s = t, o = Z([]);
|
|
4179
4181
|
let a = "";
|
|
4180
4182
|
async function r(d, g) {
|
|
4181
4183
|
if (a = Be.service({ fullscreen: !0 }), d.path) {
|
|
@@ -4202,7 +4204,7 @@ const qr = {
|
|
|
4202
4204
|
o.value = s.settings.rowActions(s.query);
|
|
4203
4205
|
},
|
|
4204
4206
|
{ immediate: !0 }
|
|
4205
|
-
), (d, g) => (u(!0), S(L, null,
|
|
4207
|
+
), (d, g) => (u(!0), S(L, null, q(o.value, (c) => (u(), S(L, null, [
|
|
4206
4208
|
c.isVisible(s.row, s.query, s.mode) ? (u(), S(L, { key: 0 }, [
|
|
4207
4209
|
c.component ? (u(), $(K(c.component), {
|
|
4208
4210
|
key: 0,
|
|
@@ -4213,7 +4215,7 @@ const qr = {
|
|
|
4213
4215
|
onClick: (i) => r(c, s.row)
|
|
4214
4216
|
}, {
|
|
4215
4217
|
default: w(() => [
|
|
4216
|
-
|
|
4218
|
+
I(B(c.name), 1)
|
|
4217
4219
|
]),
|
|
4218
4220
|
_: 2
|
|
4219
4221
|
}, 1032, ["type", "onClick"]))
|
|
@@ -4237,7 +4239,7 @@ const qr = {
|
|
|
4237
4239
|
}
|
|
4238
4240
|
},
|
|
4239
4241
|
setup(t) {
|
|
4240
|
-
const e =
|
|
4242
|
+
const e = ue(), n = t, s = n.query, o = D({}), a = Z([]), r = V(() => {
|
|
4241
4243
|
var c, i;
|
|
4242
4244
|
return ((i = (c = n.tableDataSelect) == null ? void 0 : c.data) == null ? void 0 : i.length) > 0;
|
|
4243
4245
|
});
|
|
@@ -4271,7 +4273,7 @@ const qr = {
|
|
|
4271
4273
|
a.value = n.settings.pageActions(n.query);
|
|
4272
4274
|
},
|
|
4273
4275
|
{ immediate: !0 }
|
|
4274
|
-
), (c, i) => (u(!0), S(L, null,
|
|
4276
|
+
), (c, i) => (u(!0), S(L, null, q(a.value, (E) => (u(), S(L, null, [
|
|
4275
4277
|
g(E.isVisible) ? (u(), S(L, { key: 0 }, [
|
|
4276
4278
|
E.component ? (u(), $(K(E.component), {
|
|
4277
4279
|
key: 0,
|
|
@@ -4287,14 +4289,14 @@ const qr = {
|
|
|
4287
4289
|
placement: E.tooltip.placement || "top-start"
|
|
4288
4290
|
}, {
|
|
4289
4291
|
default: w(() => [
|
|
4290
|
-
|
|
4292
|
+
O(m(ee), {
|
|
4291
4293
|
type: E.type,
|
|
4292
4294
|
loading: l.value,
|
|
4293
4295
|
disabled: !E.enable && !r.value,
|
|
4294
4296
|
onClick: (k) => d(E)
|
|
4295
4297
|
}, {
|
|
4296
4298
|
default: w(() => [
|
|
4297
|
-
|
|
4299
|
+
I(B(E.name), 1)
|
|
4298
4300
|
]),
|
|
4299
4301
|
_: 2
|
|
4300
4302
|
}, 1032, ["type", "loading", "disabled", "onClick"])
|
|
@@ -4308,7 +4310,7 @@ const qr = {
|
|
|
4308
4310
|
onClick: (k) => d(E)
|
|
4309
4311
|
}, {
|
|
4310
4312
|
default: w(() => [
|
|
4311
|
-
|
|
4313
|
+
I(B(E.name), 1)
|
|
4312
4314
|
]),
|
|
4313
4315
|
_: 2
|
|
4314
4316
|
}, 1032, ["type", "loading", "disabled", "onClick"]))
|
|
@@ -4336,7 +4338,7 @@ const qr = {
|
|
|
4336
4338
|
},
|
|
4337
4339
|
emits: ["page-change"],
|
|
4338
4340
|
setup(t, { emit: e }) {
|
|
4339
|
-
const n = e, s = fe(), o =
|
|
4341
|
+
const n = e, s = fe(), o = M(), a = t, r = D(a.page), l = D(a.size), d = D(a.total), g = D(a.pageSizes);
|
|
4340
4342
|
P(
|
|
4341
4343
|
() => a.total,
|
|
4342
4344
|
(E) => {
|
|
@@ -4369,7 +4371,7 @@ const qr = {
|
|
|
4369
4371
|
});
|
|
4370
4372
|
}
|
|
4371
4373
|
return (E, k) => (u(), S("div", Gr, [
|
|
4372
|
-
|
|
4374
|
+
O(m(fs), {
|
|
4373
4375
|
background: "",
|
|
4374
4376
|
"page-size": l.value,
|
|
4375
4377
|
"page-sizes": g.value,
|
|
@@ -4381,7 +4383,7 @@ const qr = {
|
|
|
4381
4383
|
}, null, 8, ["page-size", "page-sizes", "total", "current-page"])
|
|
4382
4384
|
]));
|
|
4383
4385
|
}
|
|
4384
|
-
}, Yr = /* @__PURE__ */
|
|
4386
|
+
}, Yr = /* @__PURE__ */ N(Kr, [["__scopeId", "data-v-3c65f1a1"]]);
|
|
4385
4387
|
var nn;
|
|
4386
4388
|
const Wn = typeof window < "u";
|
|
4387
4389
|
Wn && ((nn = window == null ? void 0 : window.navigator) != null && nn.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
@@ -4490,65 +4492,65 @@ const fi = {
|
|
|
4490
4492
|
setup(t) {
|
|
4491
4493
|
var Ct, Dt;
|
|
4492
4494
|
os((T) => ({
|
|
4493
|
-
"
|
|
4495
|
+
"0ecfde47": Xn.value
|
|
4494
4496
|
}));
|
|
4495
|
-
const e =
|
|
4497
|
+
const e = M(), n = Q(e), s = t, o = Pe(
|
|
4496
4498
|
s.settings.code,
|
|
4497
4499
|
e.path,
|
|
4498
4500
|
s.settings.filters,
|
|
4499
4501
|
s.settings.filterHook
|
|
4500
4502
|
)(), { filters: a } = ge(o), r = (Ct = s == null ? void 0 : s.hasMany) == null ? void 0 : Ct.tableName;
|
|
4501
4503
|
P(a, (T) => {
|
|
4502
|
-
h.value = T,
|
|
4504
|
+
h.value = T, j();
|
|
4503
4505
|
});
|
|
4504
|
-
const l =
|
|
4505
|
-
P([d, g, c], ([T,
|
|
4506
|
-
(T ||
|
|
4506
|
+
const l = ue(), { created: d, updated: g, removed: c } = ge(l);
|
|
4507
|
+
P([d, g, c], ([T, z, te]) => {
|
|
4508
|
+
(T || z || te) && j();
|
|
4507
4509
|
});
|
|
4508
|
-
const i = D(!0), E = D([]), k = D(0), _ = D({}), f = D({}), v = D(null), p = D(null), h = D({}), y = D(parseInt(e.query.pageSize) || 30),
|
|
4509
|
-
function
|
|
4510
|
-
let
|
|
4511
|
-
if (T.order === "ascending" ?
|
|
4512
|
-
let
|
|
4513
|
-
h.value.sorters.some((
|
|
4514
|
-
|
|
4515
|
-
}) :
|
|
4510
|
+
const i = D(!0), E = D([]), k = D(0), _ = D({}), f = D({}), v = D(null), p = D(null), h = D({}), y = D(parseInt(e.query.pageSize) || 30), x = D(parseInt(e.query.page) || 1), A = (Dt = s.hasMany) == null ? void 0 : Dt.tableContentHeight;
|
|
4511
|
+
function U(T) {
|
|
4512
|
+
let z = null;
|
|
4513
|
+
if (T.order === "ascending" ? z = "ASC" : T.order === "descending" && (z = "DESC"), h.value.sorters) {
|
|
4514
|
+
let te = [];
|
|
4515
|
+
h.value.sorters.some((re) => re.field === T.prop) ? h.value.sorters.forEach((re) => {
|
|
4516
|
+
re.field === T.prop && (re.order = z, re.name || te.push(re)), re.name && te.push(re);
|
|
4517
|
+
}) : te = [
|
|
4516
4518
|
...h.value.sorters,
|
|
4517
|
-
{ field: T.prop, order:
|
|
4518
|
-
], h.value.sorters =
|
|
4519
|
+
{ field: T.prop, order: z }
|
|
4520
|
+
], h.value.sorters = te;
|
|
4519
4521
|
} else
|
|
4520
|
-
h.value.sorters = [{ field: T.prop, order:
|
|
4521
|
-
|
|
4522
|
+
h.value.sorters = [{ field: T.prop, order: z }];
|
|
4523
|
+
j();
|
|
4522
4524
|
}
|
|
4523
|
-
function
|
|
4525
|
+
function ce() {
|
|
4524
4526
|
f.value = s.settings.operations(n);
|
|
4525
4527
|
}
|
|
4526
|
-
function
|
|
4528
|
+
function j(T) {
|
|
4527
4529
|
i.value = !0;
|
|
4528
|
-
const
|
|
4530
|
+
const z = {
|
|
4529
4531
|
...h.value,
|
|
4530
4532
|
...n,
|
|
4531
4533
|
...s.query,
|
|
4532
|
-
page:
|
|
4534
|
+
page: T == "again" ? x.value - 1 : x.value,
|
|
4533
4535
|
size: y.value
|
|
4534
4536
|
};
|
|
4535
|
-
s.settings.rest.getList(
|
|
4536
|
-
_.value.data = [], E.value =
|
|
4537
|
+
s.settings.rest.getList(z).then((te) => {
|
|
4538
|
+
_.value.data = [], E.value = te.data.rows, k.value = te.data.count, i.value = !1, k.value && E.value.length == 0 && j("again");
|
|
4537
4539
|
});
|
|
4538
4540
|
}
|
|
4539
4541
|
function ae(T) {
|
|
4540
|
-
|
|
4542
|
+
x.value = T.page, y.value = T.size, j();
|
|
4541
4543
|
}
|
|
4542
4544
|
function xt(T) {
|
|
4543
|
-
const
|
|
4544
|
-
s.settings.rest.enable(
|
|
4545
|
-
|
|
4545
|
+
const z = { id: T.id, enable: !T.enable };
|
|
4546
|
+
s.settings.rest.enable(z).then(() => {
|
|
4547
|
+
j();
|
|
4546
4548
|
});
|
|
4547
4549
|
}
|
|
4548
4550
|
function Kn(T) {
|
|
4549
4551
|
if (T.enable) {
|
|
4550
|
-
const
|
|
4551
|
-
ElMessageBox.confirm(`确定要${
|
|
4552
|
+
const z = T.label === "上架" ? "下架" : "停用";
|
|
4553
|
+
ElMessageBox.confirm(`确定要${z}该条数据吗?`, "提示", {
|
|
4552
4554
|
confirmButtonText: "确定",
|
|
4553
4555
|
cancelButtonText: "取消",
|
|
4554
4556
|
type: "warning"
|
|
@@ -4564,33 +4566,33 @@ const fi = {
|
|
|
4564
4566
|
}
|
|
4565
4567
|
const kt = D(0), At = D(0);
|
|
4566
4568
|
rn(v, (T) => {
|
|
4567
|
-
var
|
|
4568
|
-
kt.value = ((
|
|
4569
|
+
var z;
|
|
4570
|
+
kt.value = ((z = T[0]) == null ? void 0 : z.contentRect.height) || 0;
|
|
4569
4571
|
}), rn(p, (T) => {
|
|
4570
|
-
var
|
|
4571
|
-
At.value = ((
|
|
4572
|
+
var z;
|
|
4573
|
+
At.value = ((z = T[0]) == null ? void 0 : z.contentRect.height) || 0;
|
|
4572
4574
|
});
|
|
4573
|
-
const Xn =
|
|
4574
|
-
return
|
|
4575
|
+
const Xn = V(() => A && k.value > 0 ? `${A}px` : `calc(100% - ${kt.value + At.value}px)`);
|
|
4576
|
+
return ce(), (T, z) => (u(), S("div", {
|
|
4575
4577
|
key: s.settings.code,
|
|
4576
4578
|
style: { height: "100%" }
|
|
4577
4579
|
}, [
|
|
4578
|
-
|
|
4580
|
+
C("div", {
|
|
4579
4581
|
ref_key: "pageHeader",
|
|
4580
4582
|
ref: v
|
|
4581
4583
|
}, [
|
|
4582
|
-
|
|
4584
|
+
O(Sr, {
|
|
4583
4585
|
settings: s.settings,
|
|
4584
4586
|
"table-name": m(r)
|
|
4585
4587
|
}, {
|
|
4586
4588
|
operations: w(() => [
|
|
4587
|
-
|
|
4589
|
+
O(Jr, {
|
|
4588
4590
|
settings: s.settings,
|
|
4589
4591
|
"table-data-select": _.value,
|
|
4590
4592
|
query: m(n),
|
|
4591
4593
|
"filter-form": h.value
|
|
4592
4594
|
}, null, 8, ["settings", "table-data-select", "query", "filter-form"]),
|
|
4593
|
-
|
|
4595
|
+
O(Qr, {
|
|
4594
4596
|
settings: s.settings,
|
|
4595
4597
|
operations: f.value
|
|
4596
4598
|
}, null, 8, ["settings", "operations"])
|
|
@@ -4604,16 +4606,16 @@ const fi = {
|
|
|
4604
4606
|
operations: f.value,
|
|
4605
4607
|
settings: s.settings,
|
|
4606
4608
|
"actions-width": s.settings.actionsWidth,
|
|
4607
|
-
onSortColumn:
|
|
4609
|
+
onSortColumn: U,
|
|
4608
4610
|
onEnableItem: Kn,
|
|
4609
4611
|
onSelectChange: Yn
|
|
4610
4612
|
}, De({ _: 2 }, [
|
|
4611
4613
|
s.settings.rowActions(m(n)).length > 0 ? {
|
|
4612
4614
|
name: "actions",
|
|
4613
|
-
fn: w(({ row:
|
|
4614
|
-
|
|
4615
|
+
fn: w(({ row: te }) => [
|
|
4616
|
+
O(qn, {
|
|
4615
4617
|
mode: "list",
|
|
4616
|
-
row:
|
|
4618
|
+
row: te,
|
|
4617
4619
|
settings: s.settings,
|
|
4618
4620
|
query: m(n)
|
|
4619
4621
|
}, null, 8, ["row", "settings", "query"])
|
|
@@ -4623,12 +4625,12 @@ const fi = {
|
|
|
4623
4625
|
]), 1032, ["data", "operations", "settings", "actions-width"])), [
|
|
4624
4626
|
[m(ve), i.value]
|
|
4625
4627
|
]),
|
|
4626
|
-
|
|
4628
|
+
C("div", {
|
|
4627
4629
|
ref_key: "pagination",
|
|
4628
4630
|
ref: p
|
|
4629
4631
|
}, [
|
|
4630
|
-
|
|
4631
|
-
page:
|
|
4632
|
+
O(Yr, {
|
|
4633
|
+
page: x.value,
|
|
4632
4634
|
size: y.value,
|
|
4633
4635
|
total: k.value,
|
|
4634
4636
|
onPageChange: ae
|
|
@@ -4636,7 +4638,7 @@ const fi = {
|
|
|
4636
4638
|
], 512)
|
|
4637
4639
|
]));
|
|
4638
4640
|
}
|
|
4639
|
-
}, Qn = /* @__PURE__ */
|
|
4641
|
+
}, Qn = /* @__PURE__ */ N(fi, [["__scopeId", "data-v-4a31051d"]]);
|
|
4640
4642
|
/*! Element Plus v2.7.2 */
|
|
4641
4643
|
var mi = {
|
|
4642
4644
|
name: "zh-cn",
|
|
@@ -4800,7 +4802,7 @@ const hi = {
|
|
|
4800
4802
|
}
|
|
4801
4803
|
},
|
|
4802
4804
|
setup(t) {
|
|
4803
|
-
const e = t, n =
|
|
4805
|
+
const e = t, n = V(() => e.content ? e.content.toString() : "");
|
|
4804
4806
|
return (s, o) => (u(), S("div", null, [
|
|
4805
4807
|
n.value.length > e.tipShowLength ? (u(), $(m(yn), {
|
|
4806
4808
|
key: 0,
|
|
@@ -4808,13 +4810,13 @@ const hi = {
|
|
|
4808
4810
|
effect: "light"
|
|
4809
4811
|
}, {
|
|
4810
4812
|
default: w(() => [
|
|
4811
|
-
|
|
4813
|
+
O(m(Bt), {
|
|
4812
4814
|
class: he(e.className),
|
|
4813
4815
|
type: e.textType,
|
|
4814
4816
|
"line-clamp": e.lineClamp
|
|
4815
4817
|
}, {
|
|
4816
4818
|
default: w(() => [
|
|
4817
|
-
|
|
4819
|
+
I(B(n.value), 1)
|
|
4818
4820
|
]),
|
|
4819
4821
|
_: 1
|
|
4820
4822
|
}, 8, ["class", "type", "line-clamp"])
|
|
@@ -4826,7 +4828,7 @@ const hi = {
|
|
|
4826
4828
|
class: he(e.className)
|
|
4827
4829
|
}, {
|
|
4828
4830
|
default: w(() => [
|
|
4829
|
-
|
|
4831
|
+
I(B(n.value), 1)
|
|
4830
4832
|
]),
|
|
4831
4833
|
_: 1
|
|
4832
4834
|
}, 8, ["type", "class"]))
|
|
@@ -4840,19 +4842,19 @@ const hi = {
|
|
|
4840
4842
|
}
|
|
4841
4843
|
},
|
|
4842
4844
|
setup(t) {
|
|
4843
|
-
const e = fe(), n =
|
|
4845
|
+
const e = fe(), n = M(), s = St(), o = D("首页"), a = t, r = n.fullPath.split("/")[1], l = k();
|
|
4844
4846
|
s.setupRootPath("首页", `/${r}/home`);
|
|
4845
4847
|
function d(_) {
|
|
4846
|
-
var y,
|
|
4848
|
+
var y, x;
|
|
4847
4849
|
const f = _.meta.side, v = _.params.domain;
|
|
4848
|
-
let p = (y = _.meta) == null ? void 0 : y.title, h = (
|
|
4850
|
+
let p = (y = _.meta) == null ? void 0 : y.title, h = (x = _.meta) == null ? void 0 : x.code;
|
|
4849
4851
|
if (f && v) {
|
|
4850
4852
|
p = wt()[f][_.params.domain].name, h = _.params.domain;
|
|
4851
|
-
const
|
|
4852
|
-
|
|
4853
|
+
const A = _.params.id;
|
|
4854
|
+
A && A != "detail" && (p = `${p} - ${_.params.id}`, h = `${_.params.domain}-${_.params.id}`);
|
|
4853
4855
|
} else {
|
|
4854
|
-
const
|
|
4855
|
-
|
|
4856
|
+
const A = l.find((U) => U.route === _.path);
|
|
4857
|
+
A && (p = A.title, h = A.route);
|
|
4856
4858
|
}
|
|
4857
4859
|
p && h && (s.push(p, h, _.fullPath), o.value = h);
|
|
4858
4860
|
}
|
|
@@ -4906,18 +4908,18 @@ const hi = {
|
|
|
4906
4908
|
},
|
|
4907
4909
|
{ immediate: !0 }
|
|
4908
4910
|
), (_, f) => (u(), S("div", gi, [
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4911
|
+
C("div", null, [
|
|
4912
|
+
C("div", yi, [
|
|
4913
|
+
O(m(gn), {
|
|
4912
4914
|
class: "header-img",
|
|
4913
4915
|
src: a.config.logo,
|
|
4914
4916
|
fit: "scale-down"
|
|
4915
4917
|
}, null, 8, ["src"]),
|
|
4916
|
-
|
|
4918
|
+
C("div", _i, B(a.config.name), 1)
|
|
4917
4919
|
])
|
|
4918
4920
|
]),
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
+
C("div", vi, [
|
|
4922
|
+
O(m(_n), {
|
|
4921
4923
|
modelValue: o.value,
|
|
4922
4924
|
"onUpdate:modelValue": f[0] || (f[0] = (v) => o.value = v),
|
|
4923
4925
|
type: "card",
|
|
@@ -4926,88 +4928,88 @@ const hi = {
|
|
|
4926
4928
|
onTabRemove: c
|
|
4927
4929
|
}, {
|
|
4928
4930
|
default: w(() => [
|
|
4929
|
-
(u(!0), S(L, null,
|
|
4931
|
+
(u(!0), S(L, null, q(m(s).history, (v, p) => (u(), $(m(vn), {
|
|
4930
4932
|
closable: v.title != "首页",
|
|
4931
4933
|
label: v.title,
|
|
4932
4934
|
name: v.code
|
|
4933
4935
|
}, {
|
|
4934
4936
|
label: w(() => [
|
|
4935
|
-
|
|
4937
|
+
O(m(ot), { trigger: "contextmenu" }, {
|
|
4936
4938
|
dropdown: w(() => [
|
|
4937
|
-
|
|
4939
|
+
O(m(at), null, {
|
|
4938
4940
|
default: w(() => [
|
|
4939
|
-
i(p, "self") ? (u(), $(m(
|
|
4941
|
+
i(p, "self") ? (u(), $(m(le), {
|
|
4940
4942
|
key: 0,
|
|
4941
4943
|
onClick: (h) => E(p, "self")
|
|
4942
4944
|
}, {
|
|
4943
4945
|
default: w(() => [
|
|
4944
|
-
|
|
4946
|
+
O(m(G), null, {
|
|
4945
4947
|
default: w(() => [
|
|
4946
|
-
|
|
4948
|
+
O(m(Za))
|
|
4947
4949
|
]),
|
|
4948
4950
|
_: 1
|
|
4949
4951
|
}),
|
|
4950
|
-
|
|
4952
|
+
I(" 关闭当前标签页 ")
|
|
4951
4953
|
]),
|
|
4952
4954
|
_: 2
|
|
4953
4955
|
}, 1032, ["onClick"])) : F("", !0),
|
|
4954
|
-
i(p, "left") ? (u(), $(m(
|
|
4956
|
+
i(p, "left") ? (u(), $(m(le), {
|
|
4955
4957
|
key: 1,
|
|
4956
4958
|
onClick: (h) => E(p, "left")
|
|
4957
4959
|
}, {
|
|
4958
4960
|
default: w(() => [
|
|
4959
|
-
|
|
4961
|
+
O(m(G), null, {
|
|
4960
4962
|
default: w(() => [
|
|
4961
|
-
|
|
4963
|
+
O(m(Xt))
|
|
4962
4964
|
]),
|
|
4963
4965
|
_: 1
|
|
4964
4966
|
}),
|
|
4965
|
-
|
|
4967
|
+
I(" 关闭左侧标签页 ")
|
|
4966
4968
|
]),
|
|
4967
4969
|
_: 2
|
|
4968
4970
|
}, 1032, ["onClick"])) : F("", !0),
|
|
4969
|
-
i(p, "right") ? (u(), $(m(
|
|
4971
|
+
i(p, "right") ? (u(), $(m(le), {
|
|
4970
4972
|
key: 2,
|
|
4971
4973
|
onClick: (h) => E(p, "right")
|
|
4972
4974
|
}, {
|
|
4973
4975
|
default: w(() => [
|
|
4974
|
-
|
|
4976
|
+
O(m(G), null, {
|
|
4975
4977
|
default: w(() => [
|
|
4976
|
-
|
|
4978
|
+
O(m(nr))
|
|
4977
4979
|
]),
|
|
4978
4980
|
_: 1
|
|
4979
4981
|
}),
|
|
4980
|
-
|
|
4982
|
+
I(" 关闭右侧标签页 ")
|
|
4981
4983
|
]),
|
|
4982
4984
|
_: 2
|
|
4983
4985
|
}, 1032, ["onClick"])) : F("", !0),
|
|
4984
|
-
i(p, "all") ? (u(), $(m(
|
|
4986
|
+
i(p, "all") ? (u(), $(m(le), {
|
|
4985
4987
|
key: 3,
|
|
4986
4988
|
onClick: (h) => E(p, "all")
|
|
4987
4989
|
}, {
|
|
4988
4990
|
default: w(() => [
|
|
4989
|
-
|
|
4991
|
+
O(m(G), null, {
|
|
4990
4992
|
default: w(() => [
|
|
4991
|
-
|
|
4993
|
+
O(m(cr))
|
|
4992
4994
|
]),
|
|
4993
4995
|
_: 1
|
|
4994
4996
|
}),
|
|
4995
|
-
|
|
4997
|
+
I(" 关闭全部标签页 ")
|
|
4996
4998
|
]),
|
|
4997
4999
|
_: 2
|
|
4998
5000
|
}, 1032, ["onClick"])) : F("", !0),
|
|
4999
|
-
i(p, "other") ? (u(), $(m(
|
|
5001
|
+
i(p, "other") ? (u(), $(m(le), {
|
|
5000
5002
|
key: 4,
|
|
5001
5003
|
onClick: (h) => E(p, "other")
|
|
5002
5004
|
}, {
|
|
5003
5005
|
default: w(() => [
|
|
5004
|
-
|
|
5006
|
+
O(m(G), null, {
|
|
5005
5007
|
default: w(() => [
|
|
5006
|
-
|
|
5008
|
+
O(m(pr))
|
|
5007
5009
|
]),
|
|
5008
5010
|
_: 1
|
|
5009
5011
|
}),
|
|
5010
|
-
|
|
5012
|
+
I(" 关闭其他标签页 ")
|
|
5011
5013
|
]),
|
|
5012
5014
|
_: 2
|
|
5013
5015
|
}, 1032, ["onClick"])) : F("", !0)
|
|
@@ -5016,7 +5018,7 @@ const hi = {
|
|
|
5016
5018
|
}, 1024)
|
|
5017
5019
|
]),
|
|
5018
5020
|
default: w(() => [
|
|
5019
|
-
|
|
5021
|
+
O(hi, {
|
|
5020
5022
|
content: v.title,
|
|
5021
5023
|
"line-clamp": 1,
|
|
5022
5024
|
"class-name": "tab-pane-label",
|
|
@@ -5031,27 +5033,27 @@ const hi = {
|
|
|
5031
5033
|
]),
|
|
5032
5034
|
_: 1
|
|
5033
5035
|
}, 8, ["modelValue"]),
|
|
5034
|
-
|
|
5036
|
+
C("span", {
|
|
5035
5037
|
class: "back-icon",
|
|
5036
5038
|
onClick: f[1] || (f[1] = (v) => m(e).back())
|
|
5037
5039
|
}, [
|
|
5038
|
-
|
|
5040
|
+
O(m(G), null, {
|
|
5039
5041
|
default: w(() => [
|
|
5040
|
-
|
|
5042
|
+
O(m(Xt))
|
|
5041
5043
|
]),
|
|
5042
5044
|
_: 1
|
|
5043
5045
|
})
|
|
5044
5046
|
])
|
|
5045
5047
|
]),
|
|
5046
|
-
|
|
5048
|
+
C("div", bi, [
|
|
5047
5049
|
J(_.$slots, "user-profile", {}, void 0, !0)
|
|
5048
5050
|
])
|
|
5049
5051
|
]));
|
|
5050
5052
|
}
|
|
5051
|
-
}, Ei = /* @__PURE__ */
|
|
5053
|
+
}, Ei = /* @__PURE__ */ N(wi, [["__scopeId", "data-v-4c5cfc79"]]), $i = (t) => (pn("data-v-22a49b3f"), t = t(), fn(), t), Si = {
|
|
5052
5054
|
key: 2,
|
|
5053
5055
|
class: "dot-wrapper"
|
|
5054
|
-
}, Oi = /* @__PURE__ */ $i(() => /* @__PURE__ */
|
|
5056
|
+
}, Oi = /* @__PURE__ */ $i(() => /* @__PURE__ */ C("span", { class: "dot" }, null, -1)), xi = [
|
|
5055
5057
|
Oi
|
|
5056
5058
|
], ki = {
|
|
5057
5059
|
__name: "SideBarItem",
|
|
@@ -5076,14 +5078,14 @@ const hi = {
|
|
|
5076
5078
|
_: 1
|
|
5077
5079
|
})) : (u(), $(m(G), { key: 1 }, {
|
|
5078
5080
|
default: w(() => [
|
|
5079
|
-
|
|
5081
|
+
O(m(Zt))
|
|
5080
5082
|
]),
|
|
5081
5083
|
_: 1
|
|
5082
5084
|
})),
|
|
5083
|
-
|
|
5085
|
+
C("span", null, B(t.data.title), 1)
|
|
5084
5086
|
]),
|
|
5085
5087
|
default: w(() => [
|
|
5086
|
-
(u(!0), S(L, null,
|
|
5088
|
+
(u(!0), S(L, null, q(t.data.children, (o) => (u(), $(Jn, {
|
|
5087
5089
|
data: o,
|
|
5088
5090
|
"has-parent": !0
|
|
5089
5091
|
}, null, 8, ["data"]))), 256))
|
|
@@ -5103,16 +5105,16 @@ const hi = {
|
|
|
5103
5105
|
_: 1
|
|
5104
5106
|
})) : e.hasParent ? (u(), S("span", Si, xi)) : (u(), $(m(G), { key: 1 }, {
|
|
5105
5107
|
default: w(() => [
|
|
5106
|
-
|
|
5108
|
+
O(m(Zt))
|
|
5107
5109
|
]),
|
|
5108
5110
|
_: 1
|
|
5109
5111
|
})),
|
|
5110
|
-
|
|
5112
|
+
C("span", null, B(t.data.title), 1)
|
|
5111
5113
|
]),
|
|
5112
5114
|
_: 1
|
|
5113
5115
|
}, 8, ["index", "route"]));
|
|
5114
5116
|
}
|
|
5115
|
-
}, Jn = /* @__PURE__ */
|
|
5117
|
+
}, Jn = /* @__PURE__ */ N(ki, [["__scopeId", "data-v-22a49b3f"]]), Ai = {
|
|
5116
5118
|
__name: "SideBar",
|
|
5117
5119
|
props: {
|
|
5118
5120
|
sideMenus: {
|
|
@@ -5120,7 +5122,7 @@ const hi = {
|
|
|
5120
5122
|
}
|
|
5121
5123
|
},
|
|
5122
5124
|
setup(t) {
|
|
5123
|
-
const e = fe(), n =
|
|
5125
|
+
const e = fe(), n = M(), s = D(n.fullPath), o = t, a = n.fullPath.split("/")[1], r = o.sideMenus[a];
|
|
5124
5126
|
return P(
|
|
5125
5127
|
() => e.currentRoute.value,
|
|
5126
5128
|
() => {
|
|
@@ -5134,13 +5136,13 @@ const hi = {
|
|
|
5134
5136
|
{ immediate: !0 }
|
|
5135
5137
|
), (l, d) => (u(), $(m(gs), null, {
|
|
5136
5138
|
default: w(() => [
|
|
5137
|
-
|
|
5139
|
+
O(m(ys), {
|
|
5138
5140
|
class: "menu",
|
|
5139
5141
|
router: !0,
|
|
5140
5142
|
"default-active": s.value
|
|
5141
5143
|
}, {
|
|
5142
5144
|
default: w(() => [
|
|
5143
|
-
(u(!0), S(L, null,
|
|
5145
|
+
(u(!0), S(L, null, q(m(r), (g) => (u(), $(Jn, { data: g }, null, 8, ["data"]))), 256))
|
|
5144
5146
|
]),
|
|
5145
5147
|
_: 1
|
|
5146
5148
|
}, 8, ["default-active"])
|
|
@@ -5148,7 +5150,7 @@ const hi = {
|
|
|
5148
5150
|
_: 1
|
|
5149
5151
|
}));
|
|
5150
5152
|
}
|
|
5151
|
-
}, Ci = /* @__PURE__ */
|
|
5153
|
+
}, Ci = /* @__PURE__ */ N(Ai, [["__scopeId", "data-v-e039032d"]]), Di = {
|
|
5152
5154
|
__name: "BaseLayout",
|
|
5153
5155
|
props: {
|
|
5154
5156
|
config: {
|
|
@@ -5157,16 +5159,16 @@ const hi = {
|
|
|
5157
5159
|
}
|
|
5158
5160
|
},
|
|
5159
5161
|
setup(t) {
|
|
5160
|
-
const e =
|
|
5162
|
+
const e = M(), n = t, s = { ...He(), ...n.config }, o = V(() => e.params.domain ? e.params.domain : e.fullPath);
|
|
5161
5163
|
return (a, r) => {
|
|
5162
5164
|
const l = qe("router-view");
|
|
5163
5165
|
return u(), $(m(_s), { locale: m(mi) }, {
|
|
5164
5166
|
default: w(() => [
|
|
5165
|
-
|
|
5167
|
+
O(m(Nt), { style: { height: "100%" } }, {
|
|
5166
5168
|
default: w(() => [
|
|
5167
|
-
|
|
5169
|
+
O(m(vs), { class: "page-header" }, {
|
|
5168
5170
|
default: w(() => [
|
|
5169
|
-
|
|
5171
|
+
O(Ei, { config: s }, {
|
|
5170
5172
|
"user-profile": w(() => [
|
|
5171
5173
|
J(a.$slots, "user-profile", {}, void 0, !0)
|
|
5172
5174
|
]),
|
|
@@ -5175,17 +5177,17 @@ const hi = {
|
|
|
5175
5177
|
]),
|
|
5176
5178
|
_: 3
|
|
5177
5179
|
}),
|
|
5178
|
-
|
|
5180
|
+
O(m(Nt), { class: "page-content-container" }, {
|
|
5179
5181
|
default: w(() => [
|
|
5180
|
-
|
|
5182
|
+
O(m(bs), { class: "page-content-aside" }, {
|
|
5181
5183
|
default: w(() => [
|
|
5182
|
-
|
|
5184
|
+
O(Ci, {
|
|
5183
5185
|
"side-menus": s.sideMenus
|
|
5184
5186
|
}, null, 8, ["side-menus"])
|
|
5185
5187
|
]),
|
|
5186
5188
|
_: 1
|
|
5187
5189
|
}),
|
|
5188
|
-
|
|
5190
|
+
O(m(ws), { class: "page-content-main" }, {
|
|
5189
5191
|
default: w(() => [
|
|
5190
5192
|
(u(), $(l, { key: o.value }))
|
|
5191
5193
|
]),
|
|
@@ -5202,7 +5204,7 @@ const hi = {
|
|
|
5202
5204
|
}, 8, ["locale"]);
|
|
5203
5205
|
};
|
|
5204
5206
|
}
|
|
5205
|
-
}, El = /* @__PURE__ */
|
|
5207
|
+
}, El = /* @__PURE__ */ N(Di, [["__scopeId", "data-v-ea73195f"]]), Ri = {
|
|
5206
5208
|
key: 1,
|
|
5207
5209
|
class: "loading-wrapper"
|
|
5208
5210
|
}, Ti = {
|
|
@@ -5213,7 +5215,7 @@ const hi = {
|
|
|
5213
5215
|
}
|
|
5214
5216
|
},
|
|
5215
5217
|
setup(t) {
|
|
5216
|
-
const e = t, n =
|
|
5218
|
+
const e = t, n = M(), s = n.meta.side, o = e.domain || n.params.domain, a = Z(null);
|
|
5217
5219
|
return Et(s, o).then((r) => {
|
|
5218
5220
|
a.value = r;
|
|
5219
5221
|
}), (r, l) => a.value ? (u(), $(Qn, {
|
|
@@ -5223,7 +5225,7 @@ const hi = {
|
|
|
5223
5225
|
[m(ve), !0]
|
|
5224
5226
|
]);
|
|
5225
5227
|
}
|
|
5226
|
-
}, Fi = /* @__PURE__ */
|
|
5228
|
+
}, Fi = /* @__PURE__ */ N(Ti, [["__scopeId", "data-v-2d9c8e98"]]), Li = { key: 0 }, Pi = { class: "key" }, ji = { class: "value" }, Bi = {
|
|
5227
5229
|
key: 1,
|
|
5228
5230
|
class: "loading-wrapper"
|
|
5229
5231
|
}, Ni = {
|
|
@@ -5238,7 +5240,7 @@ const hi = {
|
|
|
5238
5240
|
},
|
|
5239
5241
|
emits: ["done"],
|
|
5240
5242
|
setup(t, { emit: e }) {
|
|
5241
|
-
const n = e, s = t, o =
|
|
5243
|
+
const n = e, s = t, o = M(), a = Q(o), r = ue(), { updated: l } = ge(r), d = D(null), g = [
|
|
5242
5244
|
"image",
|
|
5243
5245
|
"images",
|
|
5244
5246
|
"attachments",
|
|
@@ -5250,14 +5252,14 @@ const hi = {
|
|
|
5250
5252
|
"json",
|
|
5251
5253
|
"tree-select",
|
|
5252
5254
|
"radio-group"
|
|
5253
|
-
], c =
|
|
5255
|
+
], c = V(() => s.settings.fields.filter((v) => v.showInDetail(d.value, {
|
|
5254
5256
|
...a,
|
|
5255
5257
|
...s.query
|
|
5256
|
-
}))), i =
|
|
5258
|
+
}))), i = V(() => c.value.find((v) => v.code === s.settings.coverField)), E = V(() => c.value.filter((v) => !g.includes(v.type) && !v.extendDetail)), k = V(() => {
|
|
5257
5259
|
var p;
|
|
5258
5260
|
const v = (p = i.value) == null ? void 0 : p.code;
|
|
5259
5261
|
return c.value.filter((h) => g.includes(h.type) || h.extendDetail).filter((h) => h.code !== v);
|
|
5260
|
-
}), _ =
|
|
5262
|
+
}), _ = V({
|
|
5261
5263
|
get() {
|
|
5262
5264
|
return k.value.map((v) => v.code);
|
|
5263
5265
|
},
|
|
@@ -5277,7 +5279,7 @@ const hi = {
|
|
|
5277
5279
|
{ immediate: !0 }
|
|
5278
5280
|
), (v, p) => (u(), S("div", null, [
|
|
5279
5281
|
d.value ? (u(), S("div", Li, [
|
|
5280
|
-
|
|
5282
|
+
O(m(xe), { gutter: 20 }, {
|
|
5281
5283
|
default: w(() => [
|
|
5282
5284
|
i.value ? (u(), $(m($e), {
|
|
5283
5285
|
key: 0,
|
|
@@ -5292,22 +5294,22 @@ const hi = {
|
|
|
5292
5294
|
]),
|
|
5293
5295
|
_: 1
|
|
5294
5296
|
})) : F("", !0),
|
|
5295
|
-
|
|
5297
|
+
O(m($e), {
|
|
5296
5298
|
span: i.value ? 18 : 24
|
|
5297
5299
|
}, {
|
|
5298
5300
|
default: w(() => [
|
|
5299
|
-
|
|
5301
|
+
O(m(xe), { gutter: 20 }, {
|
|
5300
5302
|
default: w(() => [
|
|
5301
|
-
(u(!0), S(L, null,
|
|
5303
|
+
(u(!0), S(L, null, q(E.value, (h) => (u(), $(m($e), {
|
|
5302
5304
|
span: h.span,
|
|
5303
5305
|
class: "mono-data",
|
|
5304
5306
|
style: { "margin-bottom": "20px" }
|
|
5305
5307
|
}, {
|
|
5306
5308
|
default: w(() => [
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
+
C("div", Pi, B(h.label), 1),
|
|
5310
|
+
C("div", ji, [
|
|
5309
5311
|
h.code === "id" ? (u(), S(L, { key: 0 }, [
|
|
5310
|
-
|
|
5312
|
+
I(B(d.value.id), 1)
|
|
5311
5313
|
], 64)) : (u(), $(K(h.display), {
|
|
5312
5314
|
key: 1,
|
|
5313
5315
|
field: h,
|
|
@@ -5334,7 +5336,7 @@ const hi = {
|
|
|
5334
5336
|
class: "extend-fields"
|
|
5335
5337
|
}, {
|
|
5336
5338
|
default: w(() => [
|
|
5337
|
-
(u(!0), S(L, null,
|
|
5339
|
+
(u(!0), S(L, null, q(k.value, (h) => (u(), $(m($s), {
|
|
5338
5340
|
title: h.label,
|
|
5339
5341
|
name: h.code,
|
|
5340
5342
|
class: "mono-data"
|
|
@@ -5356,7 +5358,7 @@ const hi = {
|
|
|
5356
5358
|
])
|
|
5357
5359
|
]));
|
|
5358
5360
|
}
|
|
5359
|
-
}, Gn = /* @__PURE__ */
|
|
5361
|
+
}, Gn = /* @__PURE__ */ N(Ni, [["__scopeId", "data-v-dbcf33d5"]]), Ii = { class: "data-page-title" }, Vi = { class: "title" }, Mi = {
|
|
5360
5362
|
__name: "DataDetailHeader",
|
|
5361
5363
|
props: {
|
|
5362
5364
|
data: {
|
|
@@ -5372,7 +5374,7 @@ const hi = {
|
|
|
5372
5374
|
emits: ["get-item"],
|
|
5373
5375
|
setup(t, { emit: e }) {
|
|
5374
5376
|
St();
|
|
5375
|
-
const n =
|
|
5377
|
+
const n = M(), s = Q(n), o = t, a = D("加载中..."), r = D({});
|
|
5376
5378
|
function l(d) {
|
|
5377
5379
|
const g = o.settings;
|
|
5378
5380
|
if (g.displayMode.normalMode == "detail")
|
|
@@ -5389,11 +5391,11 @@ const hi = {
|
|
|
5389
5391
|
},
|
|
5390
5392
|
{ immediate: !0 }
|
|
5391
5393
|
), (d, g) => (u(), S("div", Ii, [
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
+
C("div", Vi, B(a.value), 1),
|
|
5395
|
+
C("div", null, [
|
|
5394
5396
|
o.data ? (u(), $(m(pe), { key: 0 }, {
|
|
5395
5397
|
default: w(() => [
|
|
5396
|
-
|
|
5398
|
+
O(qn, {
|
|
5397
5399
|
row: o.data,
|
|
5398
5400
|
settings: o.settings,
|
|
5399
5401
|
query: m(s),
|
|
@@ -5412,7 +5414,7 @@ const hi = {
|
|
|
5412
5414
|
])
|
|
5413
5415
|
]));
|
|
5414
5416
|
}
|
|
5415
|
-
}, Ui = /* @__PURE__ */
|
|
5417
|
+
}, Ui = /* @__PURE__ */ N(Mi, [["__scopeId", "data-v-0d04eb53"]]), zi = {
|
|
5416
5418
|
__name: "DetailPageTabs",
|
|
5417
5419
|
props: {
|
|
5418
5420
|
associations: {
|
|
@@ -5423,7 +5425,7 @@ const hi = {
|
|
|
5423
5425
|
}
|
|
5424
5426
|
},
|
|
5425
5427
|
setup(t) {
|
|
5426
|
-
const e = fe(), n =
|
|
5428
|
+
const e = fe(), n = M(), s = Q(n), o = t, a = D(""), r = Z(null);
|
|
5427
5429
|
function l(g) {
|
|
5428
5430
|
a.value = g.props.name, e.push({
|
|
5429
5431
|
name: `${n.meta.side}-association`,
|
|
@@ -5467,14 +5469,14 @@ const hi = {
|
|
|
5467
5469
|
), (g, c) => {
|
|
5468
5470
|
const i = qe("router-view");
|
|
5469
5471
|
return u(), S(L, null, [
|
|
5470
|
-
|
|
5472
|
+
O(m(_n), {
|
|
5471
5473
|
modelValue: a.value,
|
|
5472
5474
|
"onUpdate:modelValue": c[0] || (c[0] = (E) => a.value = E),
|
|
5473
5475
|
class: "association-tabs",
|
|
5474
5476
|
onTabClick: l
|
|
5475
5477
|
}, {
|
|
5476
5478
|
default: w(() => [
|
|
5477
|
-
(u(!0), S(L, null,
|
|
5479
|
+
(u(!0), S(L, null, q(o.associations, (E) => (u(), $(m(vn), {
|
|
5478
5480
|
label: E.name,
|
|
5479
5481
|
name: E.domain
|
|
5480
5482
|
}, null, 8, ["label", "name"]))), 256))
|
|
@@ -5488,7 +5490,7 @@ const hi = {
|
|
|
5488
5490
|
], 64);
|
|
5489
5491
|
};
|
|
5490
5492
|
}
|
|
5491
|
-
}, Hi = /* @__PURE__ */
|
|
5493
|
+
}, Hi = /* @__PURE__ */ N(zi, [["__scopeId", "data-v-0dc49aad"]]), qi = {
|
|
5492
5494
|
__name: "DetailPageList",
|
|
5493
5495
|
props: {
|
|
5494
5496
|
associations: {
|
|
@@ -5499,7 +5501,7 @@ const hi = {
|
|
|
5499
5501
|
}
|
|
5500
5502
|
},
|
|
5501
5503
|
setup(t) {
|
|
5502
|
-
return (e, n) => (u(!0), S(L, null,
|
|
5504
|
+
return (e, n) => (u(!0), S(L, null, q(t.associations, (s) => (u(), S("div", null, [
|
|
5503
5505
|
s.type == "has-many" ? (u(), $(Fi, {
|
|
5504
5506
|
key: 0,
|
|
5505
5507
|
domain: s.domain
|
|
@@ -5522,19 +5524,19 @@ const hi = {
|
|
|
5522
5524
|
},
|
|
5523
5525
|
setup(t) {
|
|
5524
5526
|
fe();
|
|
5525
|
-
const e =
|
|
5527
|
+
const e = M(), n = Q(e), s = t, o = D(null);
|
|
5526
5528
|
function a(r) {
|
|
5527
5529
|
o.value = r;
|
|
5528
5530
|
}
|
|
5529
5531
|
return (r, l) => (u(), S("div", {
|
|
5530
5532
|
key: `${m(e).params.domain}-${m(e).params.id}`
|
|
5531
5533
|
}, [
|
|
5532
|
-
|
|
5534
|
+
O(Ui, {
|
|
5533
5535
|
data: o.value,
|
|
5534
5536
|
settings: s.settings,
|
|
5535
5537
|
query: { ...m(e).params, ...m(n) }
|
|
5536
5538
|
}, null, 8, ["data", "settings", "query"]),
|
|
5537
|
-
|
|
5539
|
+
O(Gn, {
|
|
5538
5540
|
query: { ...m(e).params, ...m(n) },
|
|
5539
5541
|
settings: s.settings,
|
|
5540
5542
|
onDone: a
|
|
@@ -5550,7 +5552,7 @@ const hi = {
|
|
|
5550
5552
|
}, null, 8, ["associations", "domain-data"]))
|
|
5551
5553
|
]));
|
|
5552
5554
|
}
|
|
5553
|
-
}, Qi = /* @__PURE__ */
|
|
5555
|
+
}, Qi = /* @__PURE__ */ N(Wi, [["__scopeId", "data-v-6e5c2d0f"]]), Ji = {
|
|
5554
5556
|
key: 1,
|
|
5555
5557
|
class: "loading-wrapper"
|
|
5556
5558
|
}, Gi = {
|
|
@@ -5561,7 +5563,7 @@ const hi = {
|
|
|
5561
5563
|
}
|
|
5562
5564
|
},
|
|
5563
5565
|
setup(t) {
|
|
5564
|
-
const e = t, n =
|
|
5566
|
+
const e = t, n = M(), s = Q(n), o = n.meta.side, a = e.domain || n.params.domain, r = Z(null), l = Z([]);
|
|
5565
5567
|
Et(o, a).then((g) => {
|
|
5566
5568
|
const c = g, i = d("has-many", c.hasMany(s)), E = d("has-one", c.hasOne(s));
|
|
5567
5569
|
r.value = c, l.value = E.concat(i);
|
|
@@ -5589,7 +5591,7 @@ const hi = {
|
|
|
5589
5591
|
[m(ve), !0]
|
|
5590
5592
|
]);
|
|
5591
5593
|
}
|
|
5592
|
-
}, Ki = /* @__PURE__ */
|
|
5594
|
+
}, Ki = /* @__PURE__ */ N(Gi, [["__scopeId", "data-v-ecd5a448"]]), Yi = { key: 0 }, Xi = {
|
|
5593
5595
|
key: 1,
|
|
5594
5596
|
class: "loading-wrapper"
|
|
5595
5597
|
}, Zi = {
|
|
@@ -5600,7 +5602,7 @@ const hi = {
|
|
|
5600
5602
|
}
|
|
5601
5603
|
},
|
|
5602
5604
|
setup(t) {
|
|
5603
|
-
const e =
|
|
5605
|
+
const e = M(), n = e.meta.side, s = Q(e), o = t, a = Z(null);
|
|
5604
5606
|
return P(
|
|
5605
5607
|
() => e.params.association,
|
|
5606
5608
|
() => {
|
|
@@ -5625,7 +5627,7 @@ const hi = {
|
|
|
5625
5627
|
[m(ve), !0]
|
|
5626
5628
|
]);
|
|
5627
5629
|
}
|
|
5628
|
-
}, $l = /* @__PURE__ */
|
|
5630
|
+
}, $l = /* @__PURE__ */ N(Zi, [["__scopeId", "data-v-79eac380"]]);
|
|
5629
5631
|
export {
|
|
5630
5632
|
cl as A,
|
|
5631
5633
|
ea as B,
|
|
@@ -5637,12 +5639,12 @@ export {
|
|
|
5637
5639
|
El as H,
|
|
5638
5640
|
Ki as I,
|
|
5639
5641
|
$l as J,
|
|
5640
|
-
|
|
5642
|
+
ue as K,
|
|
5641
5643
|
Fi as L,
|
|
5642
5644
|
St as M,
|
|
5643
5645
|
fa as S,
|
|
5644
5646
|
ia as W,
|
|
5645
|
-
|
|
5647
|
+
N as _,
|
|
5646
5648
|
gl as a,
|
|
5647
5649
|
zn as b,
|
|
5648
5650
|
ta as c,
|
|
@@ -5653,7 +5655,7 @@ export {
|
|
|
5653
5655
|
pl as h,
|
|
5654
5656
|
He as i,
|
|
5655
5657
|
Za as j,
|
|
5656
|
-
|
|
5658
|
+
H as k,
|
|
5657
5659
|
yl as l,
|
|
5658
5660
|
ml as m,
|
|
5659
5661
|
qo as n,
|
|
@@ -5661,8 +5663,8 @@ export {
|
|
|
5661
5663
|
_l as p,
|
|
5662
5664
|
vl as q,
|
|
5663
5665
|
ol as r,
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
+
Q as s,
|
|
5667
|
+
ne as t,
|
|
5666
5668
|
sa as u,
|
|
5667
5669
|
wl as v,
|
|
5668
5670
|
al as w,
|
|
@@ -5670,4 +5672,4 @@ export {
|
|
|
5670
5672
|
il as y,
|
|
5671
5673
|
ul as z
|
|
5672
5674
|
};
|
|
5673
|
-
//# sourceMappingURL=index-
|
|
5675
|
+
//# sourceMappingURL=index-CHQzeeWp.js.map
|