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