yc-vep-ui 0.3.20 → 0.3.21

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.
@@ -4385,20 +4385,27 @@ function Ti(e) {
4385
4385
  });
4386
4386
  async function f() {
4387
4387
  if (!a.value || !i.value || !o.value) return;
4388
- let t = await i.value?.validate(), n = await o.value?.validate(), r = await e?.getData?.() || {};
4389
- if (t || n || !r || !Object.keys(r).length) return R.Message.error("请完善信息");
4388
+ let t = await i.value?.validate(), r = await o.value?.validate(), s = await e?.getData?.() || {};
4389
+ if (t || r || !s || !Object.keys(s).length) return R.Message.error("请完善信息");
4390
4390
  Object.assign(l.processInfo, i.value.getValues() || {}), l.instanceHandlerList = o.value.getValues(), l.processData.readScope = a.value?.formData?.readScope || [];
4391
- let s = await wi({
4391
+ let u = await wi({
4392
4392
  processInfo: { ...M(l.processInfo) },
4393
4393
  processData: JSON.stringify(l.processData),
4394
4394
  instanceHandlerList: l.instanceHandlerList,
4395
- businessData: r,
4395
+ businessData: s,
4396
4396
  action: c.code,
4397
4397
  comments: l.comments,
4398
4398
  nextAssignee: c.nextAssigneeVisible ? l.nextAssignee : void 0,
4399
4399
  nextActivity: c.nextActivityVisible ? l.nextActivity : void 0
4400
4400
  });
4401
- s.code === "ok" && s.data ? (R.Message.success("提交成功, 即将刷新页面..."), console.log("res ->>", s)) : R.Message.error(s?.message || "提交失败");
4401
+ if (u.code === "ok" && u.data) {
4402
+ if (R.Message.success("提交成功, 即将刷新页面..."), console.log("res ->>", u), !u?.data) return R.Message.warning("刷新页面失败...");
4403
+ let e = u.data, t = {
4404
+ ...n.query,
4405
+ instanceId: e
4406
+ }, r = `${window.location.pathname}?${new URLSearchParams(t).toString()}`;
4407
+ window.history.replaceState(null, "", r);
4408
+ } else R.Message.error(u?.message || "提交失败");
4402
4409
  }
4403
4410
  async function p(e) {
4404
4411
  c.code = e, c.nextActivityVisible = e === "back", c.nextAssigneeVisible = ["forward", "reassign"].includes(e), c.confirmVisible = ![
@@ -1,2 +1,2 @@
1
- import { c as e, d as t, l as n, o as r, s as i, u as a } from "../entry-CSryX72O.js";
1
+ import { c as e, d as t, l as n, o as r, s as i, u as a } from "../entry-C1anhdGK.js";
2
2
  export { i as useDictionary, t as useFetch, e as useRoute, n as useRouter, a as useTable, r as useUser };
package/dist/vep-ui.js CHANGED
@@ -1,2 +1,2 @@
1
- import { S as e, _ as t, a as n, b as r, f as i, g as a, h as o, i as s, m as c, n as l, p as u, r as d, t as f, v as p, x as m, y as h } from "./entry-CSryX72O.js";
1
+ import { S as e, _ as t, a as n, b as r, f as i, g as a, h as o, i as s, m as c, n as l, p as u, r as d, t as f, v as p, x as m, y as h } from "./entry-C1anhdGK.js";
2
2
  export { e as UiCard, o as UiDescriptions, c as UiDialog, p as UiEditor, r as UiFilter, h as UiForm, a as UiInfiniteScroll, u as UiStaffSelect, m as UiTable, t as UiTree, i as UiUpload, s as YcApproval, d as default, d as ycPlugin, f as getHostVue, n as hooks, l as setHostVue };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yc-vep-ui",
3
- "version": "0.3.20",
3
+ "version": "0.3.21",
4
4
  "type": "module",
5
5
  "description": "基于 Vue 3 + Element Plus 的企业级 UI 组件库",
6
6
  "keywords": [