yc-vep-ui 0.4.1 → 0.4.3
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.
|
@@ -2675,42 +2675,60 @@ function useComTable(e, n) {
|
|
|
2675
2675
|
...e
|
|
2676
2676
|
}, s.reset();
|
|
2677
2677
|
}
|
|
2678
|
-
|
|
2679
|
-
|
|
2678
|
+
function l(e) {
|
|
2679
|
+
let n = [
|
|
2680
|
+
"tableId",
|
|
2681
|
+
"page",
|
|
2682
|
+
"pageSize"
|
|
2683
|
+
], r = {}, i = {};
|
|
2684
|
+
Object.keys(e || {}).forEach((a) => {
|
|
2685
|
+
n.includes(a) ? r[a] = e[a] : i[a] = e[a];
|
|
2686
|
+
}), Object.keys(i).length > 0 && (r.params = i);
|
|
2687
|
+
let o = s.execute(r);
|
|
2688
|
+
return a.value = {
|
|
2689
|
+
...toValue(a),
|
|
2690
|
+
...e
|
|
2691
|
+
}, o;
|
|
2692
|
+
}
|
|
2693
|
+
let u = () => toValue(a)?.tableId;
|
|
2694
|
+
async function d(e) {
|
|
2680
2695
|
return request_default.post("/common/insert", {
|
|
2681
2696
|
params: { ...e },
|
|
2682
|
-
tableId:
|
|
2697
|
+
tableId: u()
|
|
2683
2698
|
});
|
|
2684
2699
|
}
|
|
2685
|
-
async function
|
|
2700
|
+
async function f(e) {
|
|
2686
2701
|
return request_default.post("/common/update", {
|
|
2687
2702
|
params: { ...e },
|
|
2688
|
-
tableId:
|
|
2703
|
+
tableId: u()
|
|
2689
2704
|
});
|
|
2690
2705
|
}
|
|
2691
|
-
async function
|
|
2706
|
+
async function p(e) {
|
|
2692
2707
|
return request_default.post("/common/delete", {
|
|
2693
2708
|
idList: e,
|
|
2694
|
-
tableId:
|
|
2709
|
+
tableId: u()
|
|
2695
2710
|
});
|
|
2696
2711
|
}
|
|
2697
|
-
async function
|
|
2712
|
+
async function m({ title: e = "export", url: n } = {}) {
|
|
2698
2713
|
let r = await request_default.blob(n ?? "/common/exportExcel", {
|
|
2699
|
-
tableId:
|
|
2714
|
+
tableId: u(),
|
|
2700
2715
|
type: "all"
|
|
2701
2716
|
}), i = new Blob([r]), a = document.createElement("a");
|
|
2702
2717
|
a.href = window.URL.createObjectURL(i), a.download = `${e}.xlsx`, a.click(), VepMessage.success("导出成功"), window.URL.revokeObjectURL(a.href);
|
|
2703
2718
|
}
|
|
2704
|
-
let
|
|
2705
|
-
insert:
|
|
2706
|
-
update:
|
|
2707
|
-
remove:
|
|
2708
|
-
delete:
|
|
2709
|
-
exportData:
|
|
2719
|
+
let g = reactive({
|
|
2720
|
+
insert: d,
|
|
2721
|
+
update: f,
|
|
2722
|
+
remove: p,
|
|
2723
|
+
delete: p,
|
|
2724
|
+
exportData: m
|
|
2710
2725
|
});
|
|
2711
2726
|
return watchEffect(() => {
|
|
2712
|
-
Object.assign(
|
|
2713
|
-
|
|
2727
|
+
Object.assign(g, s, {
|
|
2728
|
+
reset: c,
|
|
2729
|
+
execute: l
|
|
2730
|
+
});
|
|
2731
|
+
}, { flush: "sync" }), g;
|
|
2714
2732
|
}
|
|
2715
2733
|
//#endregion
|
|
2716
2734
|
//#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-IUFxFiJV.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-IUFxFiJV.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-IUFxFiJV.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 };
|