yc-vep-ui 0.3.84 → 0.3.85
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.
|
@@ -2649,7 +2649,7 @@ function useDefaultTable(e, n) {
|
|
|
2649
2649
|
//#endregion
|
|
2650
2650
|
//#region src/hooks/useTable/common.ts
|
|
2651
2651
|
function useComTable(e, n) {
|
|
2652
|
-
let { defaultParams: r, ...i } = n, a = isRef(r) ? r : isReactive(r) ? toRef(r) : ref(r || {}), o = useDefaultTable(e, {
|
|
2652
|
+
let { defaultParams: r, ...i } = n, a = isRef(r) ? r : isReactive(r) ? toRef(r) : ref(r || {}), o = toValue(a)?.sort, s = useDefaultTable(e, {
|
|
2653
2653
|
...i,
|
|
2654
2654
|
ready: computed(() => {
|
|
2655
2655
|
let e = isRef(n.ready) ? n.ready.value : n.ready, r = !!a.value?.tableId;
|
|
@@ -2673,7 +2673,7 @@ function useComTable(e, n) {
|
|
|
2673
2673
|
...n?.ignoreAttrs || []
|
|
2674
2674
|
]
|
|
2675
2675
|
});
|
|
2676
|
-
function
|
|
2676
|
+
function c(e) {
|
|
2677
2677
|
let n = [
|
|
2678
2678
|
"tableId",
|
|
2679
2679
|
"page",
|
|
@@ -2681,61 +2681,62 @@ function useComTable(e, n) {
|
|
|
2681
2681
|
], r = {}, i = {};
|
|
2682
2682
|
return Object.keys(e || {}).forEach((a) => {
|
|
2683
2683
|
n.includes(a) ? r[a] = e[a] : i[a] = e[a];
|
|
2684
|
-
}), Object.keys(i).length > 0 && (r.params = i),
|
|
2684
|
+
}), Object.keys(i).length > 0 && (r.params = i), s.execute(r);
|
|
2685
2685
|
}
|
|
2686
|
-
function
|
|
2686
|
+
function l(e = {}) {
|
|
2687
2687
|
let { tableId: n } = toValue(a);
|
|
2688
2688
|
a.value = {
|
|
2689
2689
|
tableId: n,
|
|
2690
2690
|
page: 1,
|
|
2691
2691
|
pageSize: 10,
|
|
2692
|
+
sort: o,
|
|
2692
2693
|
...e
|
|
2693
|
-
},
|
|
2694
|
+
}, s.reset();
|
|
2694
2695
|
}
|
|
2695
|
-
async function
|
|
2696
|
+
async function u(e) {
|
|
2696
2697
|
let n = toValue(a);
|
|
2697
2698
|
return request_default.post("/common/insert", {
|
|
2698
2699
|
params: { ...e },
|
|
2699
2700
|
tableId: n?.tableId
|
|
2700
2701
|
});
|
|
2701
2702
|
}
|
|
2702
|
-
async function
|
|
2703
|
+
async function d(e) {
|
|
2703
2704
|
let n = toValue(a);
|
|
2704
2705
|
return request_default.post("/common/update", {
|
|
2705
2706
|
params: { ...e },
|
|
2706
2707
|
tableId: n?.tableId
|
|
2707
2708
|
});
|
|
2708
2709
|
}
|
|
2709
|
-
async function
|
|
2710
|
+
async function f(e) {
|
|
2710
2711
|
let n = toValue(a);
|
|
2711
2712
|
return request_default.post("/common/delete", {
|
|
2712
2713
|
idList: e,
|
|
2713
2714
|
tableId: n?.tableId
|
|
2714
2715
|
});
|
|
2715
2716
|
}
|
|
2716
|
-
async function
|
|
2717
|
+
async function p(e) {
|
|
2717
2718
|
let { title: n = "export" } = e || {}, r = toValue(a), i = await request_default.blob(e?.url ?? "/common/exportExcel", {
|
|
2718
2719
|
tableId: r?.tableId,
|
|
2719
2720
|
type: e?.type || "all"
|
|
2720
2721
|
}), o = new Blob([i]), s = document.createElement("a");
|
|
2721
2722
|
s.href = window.URL.createObjectURL(o), s.download = `${n}.xlsx`, s.click(), VepMessage.success("导出成功"), window.URL.revokeObjectURL(s.href);
|
|
2722
2723
|
}
|
|
2723
|
-
let
|
|
2724
|
+
let m = reactive({
|
|
2724
2725
|
loading: !1,
|
|
2725
2726
|
data: [],
|
|
2726
2727
|
selection: [],
|
|
2727
|
-
insert:
|
|
2728
|
-
update:
|
|
2729
|
-
remove:
|
|
2730
|
-
delete:
|
|
2731
|
-
exportData:
|
|
2728
|
+
insert: u,
|
|
2729
|
+
update: d,
|
|
2730
|
+
remove: f,
|
|
2731
|
+
delete: f,
|
|
2732
|
+
exportData: p
|
|
2732
2733
|
});
|
|
2733
2734
|
return watchEffect(() => {
|
|
2734
|
-
Object.assign(
|
|
2735
|
-
reset:
|
|
2736
|
-
execute:
|
|
2735
|
+
Object.assign(m, s, {
|
|
2736
|
+
reset: l,
|
|
2737
|
+
execute: c
|
|
2737
2738
|
});
|
|
2738
|
-
}, { flush: "sync" }),
|
|
2739
|
+
}, { flush: "sync" }), m;
|
|
2739
2740
|
}
|
|
2740
2741
|
//#endregion
|
|
2741
2742
|
//#region src/hooks/useTable/index.ts
|
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-BQSBoqVF.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 { O as e, _ as t, b as n, v as r, y as i } from "../entry-
|
|
1
|
+
import { O as e, _ as t, b as n, v as r, y as i } from "../entry-BQSBoqVF.js";
|
|
2
2
|
export { t as baseUrl, n as request, e as tempToRender, r as uniq, i 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, S as i, T as a, a as o, g as s, h as c, i as l, k as u, m as d, n as f, o as p, p as m, r as h, t as g, w as _, x as v } from "./entry-
|
|
1
|
+
import { A as e, C as t, D as n, E as r, S as i, T as a, a as o, g as s, h as c, i as l, k as u, m as d, n as f, o as p, p as m, r as h, t as g, w as _, x as v } from "./entry-BQSBoqVF.js";
|
|
2
2
|
export { e as UiCard, i as UiDescriptions, v as UiDialog, a as UiEditor, n as UiFilter, r as UiForm, t as UiInfiniteScroll, d as UiStaffSelect, u as UiTable, _ as UiTree, m as UiUpload, s as WcUtils, o as YcApproval, c as YcMessage, l as YcPageAgent, h as default, h as ycPlugin, g as getHostVue, p as hooks, f as setHostVue };
|