yc-vep-ui 0.4.12 → 0.4.14
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.
|
@@ -2651,9 +2651,7 @@ function useDefaultTable(e, n) {
|
|
|
2651
2651
|
var CORE_PARAMS = [
|
|
2652
2652
|
"tableId",
|
|
2653
2653
|
"page",
|
|
2654
|
-
"pageSize"
|
|
2655
|
-
"deptId",
|
|
2656
|
-
"deptIds"
|
|
2654
|
+
"pageSize"
|
|
2657
2655
|
];
|
|
2658
2656
|
function extractPreservedValues(e, n, r) {
|
|
2659
2657
|
let i = {};
|
|
@@ -2701,12 +2699,16 @@ function useComTable(e, n) {
|
|
|
2701
2699
|
Object.entries(e || {}).forEach(([e, n]) => {
|
|
2702
2700
|
CORE_PARAMS.includes(e) ? r[e] = n : e === "params" ? Object.assign(i, n) : i[e] = n;
|
|
2703
2701
|
}), r.tableId ||= n.tableId, r.page ||= n.page || 1, r.pageSize ||= n.pageSize || 10;
|
|
2704
|
-
let s = n.params || {}, c = {
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2702
|
+
let s = n.params || {}, c = extractPreservedValues(s, i, a), l = {};
|
|
2703
|
+
Object.keys(s).forEach((e) => {
|
|
2704
|
+
a.includes(e) || (l[e] = s[e]);
|
|
2705
|
+
});
|
|
2706
|
+
let u = {
|
|
2707
|
+
...l,
|
|
2708
|
+
...i,
|
|
2709
|
+
...c
|
|
2708
2710
|
};
|
|
2709
|
-
return Object.keys(
|
|
2711
|
+
return Object.keys(u).length > 0 && (r.params = u), o.execute(r);
|
|
2710
2712
|
}
|
|
2711
2713
|
let l = () => o.requestParams?.tableId;
|
|
2712
2714
|
async function u(e) {
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as e, d as t, f as n, l as r, s as i, u as a } from "../entry-
|
|
1
|
+
import { c as e, d as t, f as n, l as r, s as i, u as a } from "../entry-D655w7sz.js";
|
|
2
2
|
export { e as useDictionary, n as useFetch, r as useRoute, a as useRouter, t as useTable, i as useUser };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as e, b as t, k as n, v as r, x as i, y as a } from "../entry-
|
|
1
|
+
import { _ as e, b as t, k as n, v as r, x as i, y as a } from "../entry-D655w7sz.js";
|
|
2
2
|
export { e as baseUrl, r as omit, i as request, n as tempToRender, a as uniq, t as uniqBy };
|
package/dist/vep-ui.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, a as s, g as c, h as l, i as u, j as d, m as f, n as p, o as m, p as h, r as g, t as _, w as v } from "./entry-
|
|
1
|
+
import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, a as s, g as c, h as l, i as u, j as d, m as f, n as p, o as m, p as h, r as g, t as _, w as v } from "./entry-D655w7sz.js";
|
|
2
2
|
export { d as UiCard, t as UiDescriptions, a as UiDialog, r as UiEditor, i as UiFilter, n as UiForm, v as UiInfiniteScroll, f as UiStaffSelect, e as UiTable, o as UiTree, h as UiUpload, c as WcUtils, s as YcApproval, l as YcMessage, u as YcPageAgent, g as default, g as ycPlugin, _ as getHostVue, m as hooks, p as setHostVue };
|