@pubinfo/module-rbac 2.0.0-beta.10 → 2.0.0-beta.12
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.
- package/dist/{animation_item.vue_vue_type_script_setup_true_lang-BQvmwheq.js → animation_item.vue_vue_type_script_setup_true_lang-B6l7UFLh.js} +281 -281
- package/dist/cloneDeep-8vjgfynq.js +8 -0
- package/dist/components/OrgUserSelector/index.d.ts +3 -2
- package/dist/{gangweijiekou-BxJq_m0o.js → gangweijiekou-DoXatrli.js} +1 -1
- package/dist/{index-a0E9oj3q.js → index--VjqUCuf.js} +12 -13
- package/dist/{index-U8kjKY6p.js → index-437l5ijj.js} +5 -6
- package/dist/{index-Cr17VOfm.js → index-B7KC3boK.js} +4 -5
- package/dist/{index-Cej8u1qo.js → index-BGQ99J2l.js} +10 -11
- package/dist/{index-KboUdpTh.js → index-BTXg6pUc.js} +12 -15
- package/dist/{index-yEpViVkx.js → index-BWc4onKs.js} +10 -11
- package/dist/{index-MtXfNGqS.js → index-BX1CIagK.js} +6486 -562
- package/dist/{index-j_ln_NSt.js → index-BXq997wj.js} +10 -11
- package/dist/{index-s32GbmsJ.js → index-BamJFV9x.js} +3 -3
- package/dist/{index-D0yB_8b0.js → index-BpZlEjLH.js} +3 -3
- package/dist/{index-CTiFd9M0.js → index-BuIXR9Hh.js} +3 -3
- package/dist/{index-CsHj-xDw.js → index-Bugwk8cz.js} +2 -2
- package/dist/index-C-Pw2BFu.js +465 -0
- package/dist/{index-CLSeuhTv.js → index-C0HpWF9q.js} +13 -14
- package/dist/{index-CFPhIFyG.js → index-CEdx5DQj.js} +2 -2
- package/dist/{index-BhcAk-IH.js → index-CIAVtlta.js} +1 -1
- package/dist/{index-zh8PZXw2.js → index-CLKpGgxo.js} +16 -18
- package/dist/{index-Bl4v-7On.js → index-CLmuHwlB.js} +2 -2
- package/dist/{index-BleenJqT.js → index-D8wjctLy.js} +3 -3
- package/dist/{index-CLxqmFPw.js → index-DX_JxMJ5.js} +3 -3
- package/dist/{index-DNf0NPrD.js → index-McuDTIU1.js} +3 -3
- package/dist/{index-Bbsiwecf.js → index-QwehJ7aS.js} +33 -38
- package/dist/{index-BS45K9vK.js → index-ZlLpG1f9.js} +5 -6
- package/dist/{index-UZeQsp70.js → index-dJJh8i9i.js} +3 -3
- package/dist/{index-gmUZUdNl.js → index-uJt-0g6U.js} +7 -8
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -3
- package/dist/{itemlist-xAbIKRVj.js → itemlist-D7MJp8Qk.js} +9 -10
- package/dist/{jiaosejiekou-BfY4h7uI.js → jiaosejiekou-BCXAevvU.js} +1 -1
- package/dist/{login_history-CuQv9Iw3.js → login_history-DmfGnXsn.js} +1 -1
- package/dist/{operate_history-CGP-1Xy2.js → operate_history-BzX4YfHD.js} +10 -10
- package/dist/{pubJiaosezukongzhiqi-CvYfc8Uz.js → pubJiaosezukongzhiqi-DjhWqIMC.js} +1 -1
- package/dist/{setItem-DkOvmWXP.js → setItem-A0ExOAEh.js} +1 -1
- package/dist/{shujuquanxianzhubiaokongzhiqi-DyNgf1y6.js → shujuquanxianzhubiaokongzhiqi-CmBc9yvH.js} +5 -5
- package/dist/style.css +1 -1
- package/dist/{useAppAndResource-D_b19V4t.js → useAppAndResource-BQ6GznA5.js} +2 -2
- package/dist/{xitongpeizhifuwu-C1Vm-W1B.js → xitongpeizhifuwu-DtEPa1iK.js} +1 -1
- package/dist/{zidianfuwu-yCWHhOfO.js → zidianfuwu-BUtPqzzu.js} +1 -1
- package/dist/{ziyuanjiekou-DhrAbneq.js → ziyuanjiekou-DMJynAKN.js} +1 -1
- package/dist/{zuzhijiaosebiaokongzhiqi-B1g74RqL.js → zuzhijiaosebiaokongzhiqi-Bf05-XJX.js} +1 -1
- package/package.json +4 -5
- package/src/components/OrgUserSelector/index.ts +5 -0
- package/src/index.ts +1 -0
- package/dist/OrgSelector.vue_vue_type_script_setup_true_lang-BcL0IFuA.js +0 -567
- package/dist/_baseClone-CQ44TFeq.js +0 -191
- package/dist/cloneDeep-BI4WNBQ9.js +0 -8
- package/dist/index-DFR8dd2B.js +0 -785
- package/dist/index-Dm4sOX43.js +0 -27
- package/dist/request-DQLgc7lT.js +0 -5
- package/dist/zuzhijiekou-PeZuFtCO.js +0 -85
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ModelValue as OrgModelValue, OrgSelectorProps } from './OrgSelector.vue';
|
|
2
|
-
import { ModelValue as UserModelValue, UserSelectorProps } from './UserSelector.vue';
|
|
1
|
+
import { ModelValue as OrgModelValue, OrgSelectorProps, default as OrgSelector } from './OrgSelector.vue';
|
|
2
|
+
import { ModelValue as UserModelValue, UserSelectorProps, default as UserSelector } from './UserSelector.vue';
|
|
3
3
|
export declare function selectOrg(props: OrgSelectorProps & {
|
|
4
4
|
modelValue?: OrgModelValue[];
|
|
5
5
|
}): void;
|
|
6
6
|
export declare function selectUser(props: UserSelectorProps & {
|
|
7
7
|
modelValue?: UserModelValue[];
|
|
8
8
|
}): void;
|
|
9
|
+
export { OrgSelector, UserSelector, };
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { Drawer as Q, Form as ie, FormItem as ue, Input as ce, RadioGroup as de, InputNumber as pe, Switch as me, Textarea as fe, Select as _e, Space as W, Button as Z, Table as ve, Avatar as be } from "ant-design-vue/es";
|
|
2
2
|
import { DatabaseOutlined as ge, PlusCircleOutlined as ye } from "@ant-design/icons-vue";
|
|
3
3
|
import { defineComponent as G, ref as B, reactive as xe, computed as q, createBlock as N, openBlock as v, unref as e, isRef as Y, withCtx as s, createVNode as n, createCommentVNode as A, createTextVNode as E, toDisplayString as I, createElementBlock as O, createElementVNode as $, normalizeStyle as he, nextTick as J, resolveDirective as De, withDirectives as L } from "vue";
|
|
4
|
-
import "./
|
|
5
|
-
import { g as Re, p as Ie, a as ke, b as Te, c as we, d as Ne } from "./ziyuanjiekou-
|
|
4
|
+
import { u as z } from "./index-BX1CIagK.js";
|
|
5
|
+
import { g as Re, p as Ie, a as ke, b as Te, c as we, d as Ne } from "./ziyuanjiekou-DMJynAKN.js";
|
|
6
6
|
import { ProTable as Pe } from "@pubinfo/pro-components";
|
|
7
|
-
import { message as
|
|
7
|
+
import { message as F, theme as Ce, Badge as K, Modal as Oe } from "ant-design-vue";
|
|
8
8
|
import { useAuth as Ee, PubinfoIcon as M } from "pubinfo";
|
|
9
9
|
import { D as Ae, d as Ue } from "./enum-BEHz_Q18.js";
|
|
10
|
-
import {
|
|
11
|
-
import { c as ee } from "./cloneDeep-BI4WNBQ9.js";
|
|
10
|
+
import { c as ee } from "./cloneDeep-8vjgfynq.js";
|
|
12
11
|
import { useRequest as Se } from "alova/client";
|
|
13
12
|
var d = /* @__PURE__ */ ((p) => (p.ROLE_RELATION = "分配查看", p.ADD = "新建", p.ADD_CHILD = "新建下级", p.EDIT = "修改", p.REMOVE = "删除", p))(d || {}), _ = /* @__PURE__ */ ((p) => (p.APP = "1", p.INDEX = "2", p.MENU = "3", p.BUTTON = "4", p.NON_MENU = "5", p))(_ || {});
|
|
14
13
|
const H = [
|
|
@@ -45,7 +44,7 @@ const H = [
|
|
|
45
44
|
},
|
|
46
45
|
emits: ["submit"],
|
|
47
46
|
setup(p, { expose: U, emit: S }) {
|
|
48
|
-
const h = p, k = S, [T, D] =
|
|
47
|
+
const h = p, k = S, [T, D] = z(!1), P = B(), a = B({}), g = xe({
|
|
49
48
|
title: "",
|
|
50
49
|
record: {},
|
|
51
50
|
initData: {
|
|
@@ -92,7 +91,7 @@ const H = [
|
|
|
92
91
|
x.success && (a.value = x.data ?? {});
|
|
93
92
|
}
|
|
94
93
|
}
|
|
95
|
-
const [b, R] =
|
|
94
|
+
const [b, R] = z(!1);
|
|
96
95
|
function f() {
|
|
97
96
|
var o;
|
|
98
97
|
(o = P.value) == null || o.validate().then(() => {
|
|
@@ -102,7 +101,7 @@ const H = [
|
|
|
102
101
|
m.value || (t.enableDataPermission = !1);
|
|
103
102
|
const x = g.title === d.EDIT ? Ie(t) : ke({ parentId: "", ...t });
|
|
104
103
|
R(!0), x.then((c) => {
|
|
105
|
-
c != null && c.success && (
|
|
104
|
+
c != null && c.success && (F.success(`${g.title}成功!`), D(!1), k("submit"));
|
|
106
105
|
}).finally(() => R(!1));
|
|
107
106
|
});
|
|
108
107
|
}
|
|
@@ -331,7 +330,7 @@ const H = [
|
|
|
331
330
|
name: "RoleRelation",
|
|
332
331
|
__name: "RoleRelation",
|
|
333
332
|
setup(p, { expose: U }) {
|
|
334
|
-
const { token: S } = Ce.useToken(), [h, k] =
|
|
333
|
+
const { token: S } = Ce.useToken(), [h, k] = z(!1), { loading: T, data: D, send: P } = Se(
|
|
335
334
|
(r) => Te(r, {
|
|
336
335
|
transform(m) {
|
|
337
336
|
return m.data ?? [];
|
|
@@ -426,7 +425,7 @@ const H = [
|
|
|
426
425
|
"h-full": "",
|
|
427
426
|
"py-10px": "",
|
|
428
427
|
"px-10px": ""
|
|
429
|
-
}, qe = ["onClick"], He = ["onClick"], Ve = ["onClick"], ze = ["onClick"],
|
|
428
|
+
}, qe = ["onClick"], He = ["onClick"], Ve = ["onClick"], ze = ["onClick"], tt = /* @__PURE__ */ G({
|
|
430
429
|
name: "Resource",
|
|
431
430
|
__name: "index",
|
|
432
431
|
setup(p) {
|
|
@@ -566,7 +565,7 @@ const H = [
|
|
|
566
565
|
break;
|
|
567
566
|
case d.REMOVE:
|
|
568
567
|
if (!(i != null && i.leaf)) {
|
|
569
|
-
|
|
568
|
+
F.info("非叶子节点不能删除");
|
|
570
569
|
return;
|
|
571
570
|
}
|
|
572
571
|
Oe.confirm({
|
|
@@ -575,7 +574,7 @@ const H = [
|
|
|
575
574
|
async onOk() {
|
|
576
575
|
(await Ne({
|
|
577
576
|
id: i == null ? void 0 : i.id
|
|
578
|
-
})).success && (
|
|
577
|
+
})).success && (F.success("删除成功"), D());
|
|
579
578
|
}
|
|
580
579
|
});
|
|
581
580
|
break;
|
|
@@ -699,5 +698,5 @@ const H = [
|
|
|
699
698
|
}
|
|
700
699
|
});
|
|
701
700
|
export {
|
|
702
|
-
|
|
701
|
+
tt as default
|
|
703
702
|
};
|
|
@@ -2,12 +2,11 @@ import { Drawer as F, Form as K, FormItem as z, Input as H, Select as J, InputNu
|
|
|
2
2
|
import { useAuth as Y, PubinfoIcon as Z } from "pubinfo";
|
|
3
3
|
import { PlusCircleOutlined as ee } from "@ant-design/icons-vue";
|
|
4
4
|
import { defineComponent as G, reactive as te, ref as _, createBlock as B, openBlock as x, unref as t, isRef as ne, withCtx as d, createVNode as l, createCommentVNode as W, createTextVNode as A, toDisplayString as w, resolveDirective as ae, createElementBlock as $, withDirectives as q, createElementVNode as L } from "vue";
|
|
5
|
-
import {
|
|
5
|
+
import { i as T, u as U } from "./index-BX1CIagK.js";
|
|
6
6
|
import { ProTable as oe } from "@pubinfo/pro-components";
|
|
7
7
|
import { message as X, Modal as ie } from "ant-design-vue";
|
|
8
|
-
import { g as le } from "./zidianfuwu-
|
|
9
|
-
import {
|
|
10
|
-
import { c as se } from "./cloneDeep-BI4WNBQ9.js";
|
|
8
|
+
import { g as le } from "./zidianfuwu-BUtPqzzu.js";
|
|
9
|
+
import { c as se } from "./cloneDeep-8vjgfynq.js";
|
|
11
10
|
function re(r, f) {
|
|
12
11
|
return T.Post("/region/addRegion", r, {
|
|
13
12
|
headers: {
|
|
@@ -256,7 +255,7 @@ const me = /* @__PURE__ */ G({
|
|
|
256
255
|
class: "ml-4px"
|
|
257
256
|
}, xe = ["onClick"], be = {
|
|
258
257
|
class: "ml-4px"
|
|
259
|
-
},
|
|
258
|
+
}, Ne = /* @__PURE__ */ G({
|
|
260
259
|
name: "RegionManage",
|
|
261
260
|
__name: "index",
|
|
262
261
|
setup(r) {
|
|
@@ -458,5 +457,5 @@ const me = /* @__PURE__ */ G({
|
|
|
458
457
|
}
|
|
459
458
|
});
|
|
460
459
|
export {
|
|
461
|
-
|
|
460
|
+
Ne as default
|
|
462
461
|
};
|
|
@@ -2,12 +2,11 @@ import { Drawer as F, Form as L, FormItem as j, Input as G, Textarea as H, Input
|
|
|
2
2
|
import { useAuth as K, PubinfoIcon as Q } from "pubinfo";
|
|
3
3
|
import { PlusCircleOutlined as Y } from "@ant-design/icons-vue";
|
|
4
4
|
import { defineComponent as V, reactive as Z, ref as w, createBlock as S, openBlock as m, unref as t, isRef as ee, withCtx as l, createVNode as o, createTextVNode as A, resolveDirective as te, createElementBlock as b, createCommentVNode as R, createElementVNode as k, toDisplayString as I, withDirectives as T } from "vue";
|
|
5
|
-
import "./
|
|
6
|
-
import { p as ne, a as ae, d as oe } from "./zidianfuwu-
|
|
5
|
+
import { u as $ } from "./index-BX1CIagK.js";
|
|
6
|
+
import { p as ne, a as ae, d as oe } from "./zidianfuwu-BUtPqzzu.js";
|
|
7
7
|
import { ProTable as ie } from "@pubinfo/pro-components";
|
|
8
8
|
import { message as q, Modal as se } from "ant-design-vue";
|
|
9
9
|
import { A as s } from "./enum-C9ihxJe7.js";
|
|
10
|
-
import { u as $ } from "./index-Dm4sOX43.js";
|
|
11
10
|
import { useRouter as le } from "vue-router";
|
|
12
11
|
const re = /* @__PURE__ */ V({
|
|
13
12
|
name: "DrawerDictionary",
|
|
@@ -170,7 +169,7 @@ const re = /* @__PURE__ */ V({
|
|
|
170
169
|
class: "ml-4px"
|
|
171
170
|
}, ve = ["onClick"], xe = {
|
|
172
171
|
class: "ml-4px"
|
|
173
|
-
},
|
|
172
|
+
}, Ee = /* @__PURE__ */ V({
|
|
174
173
|
name: "Dictionary",
|
|
175
174
|
__name: "index",
|
|
176
175
|
setup(B) {
|
|
@@ -385,5 +384,5 @@ const re = /* @__PURE__ */ V({
|
|
|
385
384
|
}
|
|
386
385
|
});
|
|
387
386
|
export {
|
|
388
|
-
|
|
387
|
+
Ee as default
|
|
389
388
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Form as U, FormItem as V, Select as I, Switch as L, Input as q, Button as W } from "ant-design-vue/es";
|
|
2
2
|
import { defineComponent as O, ref as y, reactive as B, onMounted as R, resolveDirective as J, createElementBlock as w, openBlock as k, createElementVNode as c, createVNode as r, withCtx as n, createCommentVNode as f, withDirectives as T, Fragment as A, createTextVNode as m, unref as G } from "vue";
|
|
3
|
-
import "./
|
|
4
|
-
import { g as
|
|
5
|
-
import { message as
|
|
6
|
-
import { PassStrengthValidator as
|
|
7
|
-
import { u as X } from "./index-Dm4sOX43.js";
|
|
3
|
+
import { u as z } from "./index-BX1CIagK.js";
|
|
4
|
+
import { g as H, p as K } from "./xitongpeizhifuwu-DtEPa1iK.js";
|
|
5
|
+
import { message as Q } from "ant-design-vue";
|
|
6
|
+
import { PassStrengthValidator as X } from "pubinfo";
|
|
8
7
|
const Y = {
|
|
9
8
|
"w-full": "",
|
|
10
9
|
"h-full": "",
|
|
@@ -14,7 +13,7 @@ const Y = {
|
|
|
14
13
|
}, Z = {
|
|
15
14
|
"h-full": "",
|
|
16
15
|
"min-w-1130px": ""
|
|
17
|
-
}, $ = { class: "pt-20px flex flex-col box-border bg-white dark:bg-[#141414] text-[#4e5969] dark:text-[#C9CDD4]" }, ee = { class: "p-16px text-right b-t-1 b-t-style-solid b-t-color-[#e5e6eb] dark:b-t-color-[#424242]" }, te = { class: "mt-10px bg-white dark:bg-[#141414] text-[#4e5969] dark:text-[#C9CDD4]" },
|
|
16
|
+
}, $ = { class: "pt-20px flex flex-col box-border bg-white dark:bg-[#141414] text-[#4e5969] dark:text-[#C9CDD4]" }, ee = { class: "p-16px text-right b-t-1 b-t-style-solid b-t-color-[#e5e6eb] dark:b-t-color-[#424242]" }, te = { class: "mt-10px bg-white dark:bg-[#141414] text-[#4e5969] dark:text-[#C9CDD4]" }, ue = /* @__PURE__ */ O({
|
|
18
17
|
__name: "index",
|
|
19
18
|
setup(oe) {
|
|
20
19
|
const P = {
|
|
@@ -74,11 +73,11 @@ const Y = {
|
|
|
74
73
|
return e ? p.value ? Promise.resolve() : Promise.reject(new Error("密码规则校验不通过")) : Promise.reject(new Error("请输入默认密码"));
|
|
75
74
|
}
|
|
76
75
|
function D() {
|
|
77
|
-
|
|
76
|
+
H().then((a) => {
|
|
78
77
|
a && a.data && a.data.content && a.success && Object.assign(t, JSON.parse(a.data.content));
|
|
79
78
|
});
|
|
80
79
|
}
|
|
81
|
-
const [F, g] =
|
|
80
|
+
const [F, g] = z(!1);
|
|
82
81
|
async function j() {
|
|
83
82
|
var a;
|
|
84
83
|
if (!F.value) {
|
|
@@ -103,7 +102,7 @@ const Y = {
|
|
|
103
102
|
s && Object.assign(d, {
|
|
104
103
|
allowFailCounts: l,
|
|
105
104
|
lockMinutes: u
|
|
106
|
-
}), await
|
|
105
|
+
}), await K({ content: JSON.stringify(d) }), g(!1), Q.success("配置更改成功");
|
|
107
106
|
} catch {
|
|
108
107
|
g(!1);
|
|
109
108
|
}
|
|
@@ -256,7 +255,7 @@ const Y = {
|
|
|
256
255
|
}, 8, ["model"])
|
|
257
256
|
]),
|
|
258
257
|
c("div", te, [
|
|
259
|
-
r(G(
|
|
258
|
+
r(G(X), {
|
|
260
259
|
modelValue: t.defaultPassword,
|
|
261
260
|
"onUpdate:modelValue": e[7] || (e[7] = (o) => t.defaultPassword = o),
|
|
262
261
|
validate: p.value,
|
|
@@ -270,5 +269,5 @@ const Y = {
|
|
|
270
269
|
}
|
|
271
270
|
});
|
|
272
271
|
export {
|
|
273
|
-
|
|
272
|
+
ue as default
|
|
274
273
|
};
|
|
@@ -5,19 +5,16 @@ import { Drawer as zh, Form as Wh, FormItem as Gh, Input as Uh, Select as pd, Sw
|
|
|
5
5
|
import { PubinfoIcon as xx } from "pubinfo";
|
|
6
6
|
import { SearchOutlined as yx, PlusCircleOutlined as Cx } from "@ant-design/icons-vue";
|
|
7
7
|
import { watch as dt, reactive as jt, h as v, resolveComponent as Tn, defineComponent as Rt, inject as Ct, computed as ue, createApp as Ex, ref as De, Teleport as Jo, createCommentVNode as St, provide as en, onMounted as Dn, onUnmounted as yn, nextTick as re, onBeforeUnmount as md, TransitionGroup as Sx, getCurrentInstance as Kh, onActivated as Xh, onDeactivated as wx, createBlock as bn, openBlock as $t, unref as tt, isRef as zo, withCtx as mt, createVNode as it, createTextVNode as Rn, toDisplayString as Nn, mergeModels as Ox, useModel as Tx, createElementVNode as Ht, createElementBlock as xn, Fragment as yo, renderList as Ml, withDirectives as jr, vShow as id, resolveDirective as Rx } from "vue";
|
|
8
|
-
import {
|
|
9
|
-
import "./request-DQLgc7lT.js";
|
|
10
|
-
import { g as Mx, p as Ix, a as kx, b as Xd, c as Nx, d as Fx, e as Px } from "./zuzhijiekou-PeZuFtCO.js";
|
|
8
|
+
import { u as Ko, g as Dx, a as Mx, b as Ix, c as Xd, d as kx, e as Nx, f as Fx, h as Px } from "./index-BX1CIagK.js";
|
|
11
9
|
import { message as hd, Badge as Zd, Modal as Lx } from "ant-design-vue";
|
|
12
10
|
import { g as _x } from "./_commonjsHelpers-C6fGbg64.js";
|
|
13
|
-
import { g as Ax } from "./zidianfuwu-
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { g as Hx, c as zx } from "./pubJiaosezukongzhiqi-CvYfc8Uz.js";
|
|
11
|
+
import { g as Ax } from "./zidianfuwu-BUtPqzzu.js";
|
|
12
|
+
import { g as Vx, a as $x } from "./zuzhijiaosebiaokongzhiqi-Bf05-XJX.js";
|
|
13
|
+
import { u as qx } from "./useAppAndResource-BQ6GznA5.js";
|
|
14
|
+
import { e as Bx } from "./jiaosejiekou-BCXAevvU.js";
|
|
15
|
+
import { g as Hx, c as zx } from "./pubJiaosezukongzhiqi-DjhWqIMC.js";
|
|
19
16
|
import { _ as Zh } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
20
|
-
import { c as Jd } from "./cloneDeep-
|
|
17
|
+
import { c as Jd } from "./cloneDeep-8vjgfynq.js";
|
|
21
18
|
var Li, Qd;
|
|
22
19
|
function Lr() {
|
|
23
20
|
if (Qd) return Li;
|
|
@@ -17323,7 +17320,7 @@ const BE = /* @__PURE__ */ Rt({
|
|
|
17323
17320
|
const a = De({ parentId: "", enable: !0 });
|
|
17324
17321
|
async function h(q, R) {
|
|
17325
17322
|
if (p(!0), c.title = q, q === rn.EDIT) {
|
|
17326
|
-
const _ = await
|
|
17323
|
+
const _ = await Dx({ id: R == null ? void 0 : R.id });
|
|
17327
17324
|
_.success && (a.value = _.data ?? {});
|
|
17328
17325
|
} else q === rn.ADDNEXT ? a.value = {
|
|
17329
17326
|
parentName: R == null ? void 0 : R.name,
|
|
@@ -17339,7 +17336,7 @@ const BE = /* @__PURE__ */ Rt({
|
|
|
17339
17336
|
const [b, E] = Ko(!1);
|
|
17340
17337
|
function S() {
|
|
17341
17338
|
var R;
|
|
17342
|
-
const q = c.title === rn.EDIT ?
|
|
17339
|
+
const q = c.title === rn.EDIT ? Mx : Ix;
|
|
17343
17340
|
(R = r.value) == null || R.validate().then(() => {
|
|
17344
17341
|
E(!0);
|
|
17345
17342
|
const _ = { ...a.value };
|
|
@@ -18407,7 +18404,7 @@ const BE = /* @__PURE__ */ Rt({
|
|
|
18407
18404
|
{ class: "flex-center" },
|
|
18408
18405
|
[
|
|
18409
18406
|
Ht("img", {
|
|
18410
|
-
src:
|
|
18407
|
+
src: kx,
|
|
18411
18408
|
alt: ""
|
|
18412
18409
|
})
|
|
18413
18410
|
],
|
|
@@ -18582,7 +18579,7 @@ const BE = /* @__PURE__ */ Rt({
|
|
|
18582
18579
|
]);
|
|
18583
18580
|
};
|
|
18584
18581
|
}
|
|
18585
|
-
}),
|
|
18582
|
+
}), AS = /* @__PURE__ */ Zh(CS, [["__scopeId", "data-v-9a362a87"]]);
|
|
18586
18583
|
export {
|
|
18587
|
-
|
|
18584
|
+
AS as default
|
|
18588
18585
|
};
|
|
@@ -2,12 +2,11 @@ import { Drawer as H, Form as J, FormItem as K, Input as Q, Select as X, Textare
|
|
|
2
2
|
import { useAuth as ee, PubinfoIcon as te } from "pubinfo";
|
|
3
3
|
import { PlusCircleOutlined as ne } from "@ant-design/icons-vue";
|
|
4
4
|
import { defineComponent as A, reactive as oe, ref as D, createBlock as T, openBlock as b, unref as t, isRef as ae, withCtx as a, createVNode as o, createTextVNode as V, resolveDirective as se, createElementBlock as P, createCommentVNode as $, createElementVNode as C, toDisplayString as E, withDirectives as S } from "vue";
|
|
5
|
-
import { a as ie, p as le, b as re, d as ue } from "./gangweijiekou-
|
|
6
|
-
import "./
|
|
5
|
+
import { a as ie, p as le, b as re, d as ue } from "./gangweijiekou-DoXatrli.js";
|
|
6
|
+
import { u as B } from "./index-BX1CIagK.js";
|
|
7
7
|
import { ProTable as ce } from "@pubinfo/pro-components";
|
|
8
|
-
import { message as W, Badge as
|
|
9
|
-
import { g as pe } from "./zidianfuwu-
|
|
10
|
-
import { u as M } from "./index-Dm4sOX43.js";
|
|
8
|
+
import { message as W, Badge as M, Modal as de } from "ant-design-vue";
|
|
9
|
+
import { g as pe } from "./zidianfuwu-BUtPqzzu.js";
|
|
11
10
|
var u = /* @__PURE__ */ ((g) => (g.ADD = "新增", g.EDIT = "编辑", g.REMOVE = "删除", g))(u || {});
|
|
12
11
|
const me = /* @__PURE__ */ A({
|
|
13
12
|
name: "DrawerPosition",
|
|
@@ -27,7 +26,7 @@ const me = /* @__PURE__ */ A({
|
|
|
27
26
|
}, x = oe({
|
|
28
27
|
title: "",
|
|
29
28
|
type: ""
|
|
30
|
-
}), [y, f] =
|
|
29
|
+
}), [y, f] = B(!1), s = D([]);
|
|
31
30
|
pe({ dictCode: "positionType" }).then((l) => {
|
|
32
31
|
var e;
|
|
33
32
|
s.value = (e = l.data) == null ? void 0 : e.map((d) => ({
|
|
@@ -43,7 +42,7 @@ const me = /* @__PURE__ */ A({
|
|
|
43
42
|
} else
|
|
44
43
|
n.value = { enable: !0 };
|
|
45
44
|
}
|
|
46
|
-
const [c, _] =
|
|
45
|
+
const [c, _] = B(!1);
|
|
47
46
|
function m() {
|
|
48
47
|
var l;
|
|
49
48
|
(l = i.value) == null || l.validate().then(() => {
|
|
@@ -203,7 +202,7 @@ const me = /* @__PURE__ */ A({
|
|
|
203
202
|
class: "ml-4px"
|
|
204
203
|
}, xe = ["onClick"], he = {
|
|
205
204
|
class: "ml-4px"
|
|
206
|
-
},
|
|
205
|
+
}, Se = /* @__PURE__ */ A({
|
|
207
206
|
name: "PositionManage",
|
|
208
207
|
__name: "index",
|
|
209
208
|
setup(g) {
|
|
@@ -261,10 +260,10 @@ const me = /* @__PURE__ */ A({
|
|
|
261
260
|
dataIndex: "enable",
|
|
262
261
|
customRender: ({
|
|
263
262
|
text: s
|
|
264
|
-
}) => s ? o(
|
|
263
|
+
}) => s ? o(M, {
|
|
265
264
|
status: "success",
|
|
266
265
|
text: "启用"
|
|
267
|
-
}, null) : o(
|
|
266
|
+
}, null) : o(M, {
|
|
268
267
|
status: "error",
|
|
269
268
|
text: "禁用"
|
|
270
269
|
}, null)
|
|
@@ -405,5 +404,5 @@ const me = /* @__PURE__ */ A({
|
|
|
405
404
|
}
|
|
406
405
|
});
|
|
407
406
|
export {
|
|
408
|
-
|
|
407
|
+
Se as default
|
|
409
408
|
};
|