liyu-pc-base 1.0.104 → 1.0.106
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/{FormRender3-ccdc58ee.js → FormRender3-f8ab055c.js} +2 -2
- package/dist/{FormRender3-ccdc58ee.js.map → FormRender3-f8ab055c.js.map} +1 -1
- package/dist/api/api-model.js +8 -8
- package/dist/components/FormRender/utils.js +3 -3
- package/dist/components/index.js +4 -4
- package/dist/components/remotePages/index.js +687 -655
- package/dist/components/remotePages/index.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/{init-plugin-d4e1c8e9.js → init-plugin-481311d3.js} +73 -61
- package/dist/init-plugin-481311d3.js.map +1 -0
- package/dist/{modal-tools-006921b1.js → modal-tools-de1d8105.js} +1 -1
- package/dist/{modal-tools-006921b1.js.map → modal-tools-de1d8105.js.map} +1 -1
- package/dist/utils/hooks/useFetchData.js +1 -1
- package/package.json +1 -1
- package/dist/init-plugin-d4e1c8e9.js.map +0 -1
package/dist/api/api-model.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
async function f(
|
|
1
|
+
import { n as d } from "../init-plugin-481311d3.js";
|
|
2
|
+
async function f(n, l, s, i = {}) {
|
|
3
3
|
if (s) {
|
|
4
4
|
let h = function(t) {
|
|
5
5
|
t.forEach((a) => {
|
|
6
6
|
a != null && a.children && a.children.length > 0 ? (a.children.sort((p, u) => p.sort - u.sort), h(a.children)) : delete a.children;
|
|
7
7
|
});
|
|
8
8
|
};
|
|
9
|
-
const e = await d().post(
|
|
9
|
+
const e = await d().post(l, n, i), c = new Map(
|
|
10
10
|
e.data.map((t) => [
|
|
11
11
|
t.id,
|
|
12
12
|
{ ...t, key: t.id, value: t.id, title: t.name, children: [] }
|
|
@@ -17,13 +17,13 @@ async function f(l, n, s, i = {}) {
|
|
|
17
17
|
t.key = t.id, t.value = t.id, t.title = t.name, t.parent_id !== null && ((a = c.get(t.parent_id)) != null && a.children) ? c.get(t.parent_id).children.push(c.get(t.id)) : r.push(c.get(t.id));
|
|
18
18
|
}), r.sort((t, a) => t.sort - a.sort), h(r), e.data = r, r.length != 0 ? (e.data = r, e.total = r.length) : e.total = e.data.length, e;
|
|
19
19
|
} else
|
|
20
|
-
return d().post(
|
|
20
|
+
return d().post(l, n, i);
|
|
21
21
|
}
|
|
22
|
-
async function g(
|
|
23
|
-
return d().post(
|
|
22
|
+
async function g(n, l, s) {
|
|
23
|
+
return d().post(l, n, s);
|
|
24
24
|
}
|
|
25
|
-
async function y(
|
|
26
|
-
return d().put(
|
|
25
|
+
async function y(n, l, s) {
|
|
26
|
+
return d().put(l, n, s);
|
|
27
27
|
}
|
|
28
28
|
export {
|
|
29
29
|
f as getApiData,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { q as y, y as c } from "../../init-plugin-481311d3.js";
|
|
2
2
|
import { message as f } from "ant-design-vue";
|
|
3
|
-
const
|
|
4
|
-
const n =
|
|
3
|
+
const p = (e) => e instanceof Array ? e.join() : e instanceof Object ? JSON.stringify(e) : e.toString(), S = (e) => e instanceof Array ? e.join() : typeof e == "number" ? String(e) : e === void 0 ? "undefined" : e === null ? "null" : typeof e == "boolean" ? String(e) : typeof e == "object" ? Object.keys(e).sort((t, u) => t.localeCompare(u)).map((t) => `${t}-${p(e[t])}`).join() : (console.error("error type" + typeof e), e.toString()), O = (e, t) => (o, l) => {
|
|
4
|
+
const n = y().currentOrg, a = Object.keys(o).sort((r, i) => r.localeCompare(i)).map((r) => `${r}-${S(o[r])}`).join(), m = (/* @__PURE__ */ new Date()).getTime() + 3600 * 1e3, s = c().get(`${n == null ? void 0 : n.id}_${t}`);
|
|
5
5
|
return new Promise((r) => {
|
|
6
6
|
!l && s && s.time > (/* @__PURE__ */ new Date()).getTime() && s.paramsKey == a ? r(s.data) : e(o).then((i) => {
|
|
7
7
|
c().set(`${n == null ? void 0 : n.id}_${t}`, {
|
package/dist/components/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as pe, ref as ee, resolveComponent as C, openBlock as o, createBlock as _, withCtx as h, createVNode as B, createElementBlock as F, Fragment as N, renderList as W, createElementVNode as G, toDisplayString as K, reactive as se, computed as Ee, watch as ae, onMounted as Fe, onUnmounted as Je, createTextVNode as x, createCommentVNode as M, withDirectives as Ce, vShow as $e, pushScopeId as Qe, popScopeId as Xe, renderSlot as Ze, normalizeStyle as D, createSlots as je, resolveDynamicComponent as ue, onActivated as xe, withModifiers as ce } from "vue";
|
|
2
|
-
import { _ as he, i as el, F as ll, I as al, j as ol, U as tl, k as il, l as nl, m as dl, n as sl, A as fl, a as rl, c as ul, d as ml, R as pl, b as hl, o as _l, p as yl, J as vl, e as cl, f as bl, q as gl, M as wl, r as kl, C as Cl, T as $l } from "../FormRender3-
|
|
3
|
-
import { B as Fo, h as Uo, S as Ao, s as Ko } from "../FormRender3-
|
|
2
|
+
import { _ as he, i as el, F as ll, I as al, j as ol, U as tl, k as il, l as nl, m as dl, n as sl, A as fl, a as rl, c as ul, d as ml, R as pl, b as hl, o as _l, p as yl, J as vl, e as cl, f as bl, q as gl, M as wl, r as kl, C as Cl, T as $l } from "../FormRender3-f8ab055c.js";
|
|
3
|
+
import { B as Fo, h as Uo, S as Ao, s as Ko } from "../FormRender3-f8ab055c.js";
|
|
4
4
|
import { message as te, Modal as qe } from "ant-design-vue";
|
|
5
5
|
import { get_operator_type_map as ke, isNotEmpty as Z, isEmpty as oe, copyValue as Ml } from "../utils/function.js";
|
|
6
6
|
import { CloseOutlined as Sl, LeftOutlined as El, RightOutlined as Ol, CloseCircleOutlined as Fl, PlusOutlined as We, CaretRightOutlined as Ul, SettingOutlined as Al, ExclamationCircleOutlined as De } from "@ant-design/icons-vue";
|
|
7
7
|
import { useI18n as Ue } from "vue-i18n";
|
|
8
8
|
import z from "moment";
|
|
9
9
|
import { isArray as Re, debounce as Kl, isEqual as Il } from "lodash-es";
|
|
10
|
-
import { m as Me } from "../modal-tools-
|
|
11
|
-
import {
|
|
10
|
+
import { m as Me } from "../modal-tools-de1d8105.js";
|
|
11
|
+
import { n as ye, o as Vl, p as Bl, q as Tl, t as jl, v as Ne, w as ze } from "../init-plugin-481311d3.js";
|
|
12
12
|
import { getApiData as ql } from "../api/api-model.js";
|
|
13
13
|
import { getViewSettingsAndPageConfig as Dl, getPageConfig as Oe } from "./remotePages/index.js";
|
|
14
14
|
import "../lodash-18e68795.js";
|