@pubinfo/module-rbac 2.0.0-beta.10 → 2.0.0-beta.13
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-BlABHm3g.js} +281 -281
- package/dist/cloneDeep-T2g9unQR.js +8 -0
- package/dist/components/OrgUserSelector/index.d.ts +3 -2
- package/dist/{gangweijiekou-BxJq_m0o.js → gangweijiekou-CwKBZZeP.js} +1 -1
- package/dist/{index-Cr17VOfm.js → index-47WJIE75.js} +4 -5
- package/dist/{index-U8kjKY6p.js → index-B-1Jsa5i.js} +5 -6
- package/dist/{index-DNf0NPrD.js → index-B9SnAiRA.js} +3 -3
- package/dist/{index-zh8PZXw2.js → index-BJjDMYx8.js} +16 -18
- package/dist/index-BmbYHtUo.js +465 -0
- package/dist/{index-s32GbmsJ.js → index-Buo7eb6B.js} +3 -3
- package/dist/{index-gmUZUdNl.js → index-CIjaZglK.js} +7 -8
- package/dist/{index-BhcAk-IH.js → index-CKLCWwPt.js} +1 -1
- package/dist/{index-yEpViVkx.js → index-CQ3vb_jT.js} +10 -11
- package/dist/{index-CFPhIFyG.js → index-CQNzD8gU.js} +2 -2
- package/dist/index-CSRC9-GH.js +7089 -0
- package/dist/{index-CTiFd9M0.js → index-CTrsWwwV.js} +3 -3
- package/dist/{index-BS45K9vK.js → index-CcmcknCO.js} +5 -6
- package/dist/{index-KboUdpTh.js → index-CdodWDJE.js} +12 -15
- package/dist/{index-a0E9oj3q.js → index-Cvwv0Juq.js} +12 -13
- package/dist/{index-Bl4v-7On.js → index-D6bWQnQN.js} +2 -2
- package/dist/{index-j_ln_NSt.js → index-D9_ODpMq.js} +10 -11
- package/dist/{index-UZeQsp70.js → index-DIjgGlG6.js} +3 -3
- package/dist/{index-BleenJqT.js → index-DWR59p3f.js} +3 -3
- package/dist/{index-Bbsiwecf.js → index-DvpacIa_.js} +33 -38
- package/dist/{index-D0yB_8b0.js → index-DwECKZP3.js} +3 -3
- package/dist/{index-CsHj-xDw.js → index-EoZZJdHB.js} +2 -2
- package/dist/{index-CLxqmFPw.js → index-f9JH7TH1.js} +3 -3
- package/dist/{index-Cej8u1qo.js → index-j_xONibm.js} +10 -11
- package/dist/{index-CLSeuhTv.js → index-r44NDBFT.js} +13 -14
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -3
- package/dist/{itemlist-xAbIKRVj.js → itemlist-CKM1UvLl.js} +9 -10
- package/dist/{jiaosejiekou-BfY4h7uI.js → jiaosejiekou-D8-56Dhc.js} +1 -1
- package/dist/{login_history-CuQv9Iw3.js → login_history-yZSmHn0C.js} +1 -1
- package/dist/{operate_history-CGP-1Xy2.js → operate_history-tJ1NKXS0.js} +10 -10
- package/dist/{pubJiaosezukongzhiqi-CvYfc8Uz.js → pubJiaosezukongzhiqi-DmA3aBGv.js} +1 -1
- package/dist/{setItem-DkOvmWXP.js → setItem-BbFsEYsU.js} +1 -1
- package/dist/{shujuquanxianzhubiaokongzhiqi-DyNgf1y6.js → shujuquanxianzhubiaokongzhiqi-D378zzpa.js} +5 -5
- package/dist/style.css +1 -1
- package/dist/{useAppAndResource-D_b19V4t.js → useAppAndResource-BMsYsunz.js} +2 -2
- package/dist/{xitongpeizhifuwu-C1Vm-W1B.js → xitongpeizhifuwu-DDQ84VjN.js} +1 -1
- package/dist/{zidianfuwu-yCWHhOfO.js → zidianfuwu-CYqN5-ya.js} +1 -1
- package/dist/{ziyuanjiekou-DhrAbneq.js → ziyuanjiekou-Bv8jxVnB.js} +1 -1
- package/dist/{zuzhijiaosebiaokongzhiqi-B1g74RqL.js → zuzhijiaosebiaokongzhiqi-L6qeDk5-.js} +1 -1
- package/package.json +7 -8
- 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/index-MtXfNGqS.js +0 -1246
- package/dist/request-DQLgc7lT.js +0 -5
- package/dist/zuzhijiekou-PeZuFtCO.js +0 -85
- package/src/assets/icons/403.svg +0 -1
- package/src/assets/icons/403_dark.svg +0 -1
- package/src/assets/icons/404.svg +0 -1
- package/src/assets/icons/404_dark.svg +0 -1
- package/src/assets/icons/browser-360.svg +0 -1
- package/src/assets/icons/browser-chrome.svg +0 -1
- package/src/assets/icons/browser-edge.svg +0 -1
- package/src/assets/icons/browser-ie.svg +0 -1
- package/src/assets/icons/browser-other.svg +0 -1
- package/src/assets/icons/browser-qq.svg +0 -1
- package/src/assets/icons/browser-safari.svg +0 -1
- package/src/assets/icons/browser-uc.svg +0 -1
- package/src/assets/icons/change-org.svg +0 -1
- package/src/assets/icons/empty-data.svg +0 -1
- package/src/assets/icons/favorites.svg +0 -1
- package/src/assets/icons/image-load-fail.svg +0 -1
- package/src/assets/icons/logo-sig.svg +0 -1
- package/src/assets/icons/logo.svg +0 -1
- package/src/assets/icons/mima.svg +0 -1
- package/src/assets/icons/process-management.svg +0 -1
- package/src/assets/icons/project-management.svg +0 -1
- package/src/assets/icons/rbac.svg +0 -1
- package/src/assets/icons/test.svg +0 -1
- package/src/assets/icons/toolbar-collapse.svg +0 -1
- package/src/assets/icons/tree_icon.svg +0 -1
- package/src/assets/icons/tree_icon_checked.svg +0 -1
- package/src/assets/icons/workbench.svg +0 -1
|
@@ -2,12 +2,11 @@ import { Modal as ne, Input as H, Spin as le, CheckboxGroup as ae, Checkbox as s
|
|
|
2
2
|
import { useAuth as fe, PubinfoIcon as me } from "pubinfo";
|
|
3
3
|
import { SearchOutlined as _e, PlusCircleOutlined as ve } from "@ant-design/icons-vue";
|
|
4
4
|
import { defineComponent as z, mergeModels as xe, ref as k, useModel as be, watch as ge, createBlock as E, openBlock as r, withCtx as l, createElementVNode as p, toDisplayString as h, unref as a, createVNode as n, isRef as q, createCommentVNode as Y, createElementBlock as y, Fragment as G, renderList as N, createTextVNode as $, reactive as he, resolveDirective as ke, withDirectives as W } from "vue";
|
|
5
|
-
import "./
|
|
6
|
-
import { g as ye, p as we, a as Re, b as Ie, d as Ce } from "./pubJiaosezukongzhiqi-
|
|
5
|
+
import { u as j } from "./index-CSRC9-GH.js";
|
|
6
|
+
import { g as ye, p as we, a as Re, b as Ie, d as Ce } from "./pubJiaosezukongzhiqi-DmA3aBGv.js";
|
|
7
7
|
import { ProTable as De } from "@pubinfo/pro-components";
|
|
8
8
|
import { message as Z, Badge as Q, Modal as Ee } from "ant-design-vue";
|
|
9
|
-
import { e as $e } from "./jiaosejiekou-
|
|
10
|
-
import { u as j } from "./index-Dm4sOX43.js";
|
|
9
|
+
import { e as $e } from "./jiaosejiekou-D8-56Dhc.js";
|
|
11
10
|
import { _ as Fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
11
|
var x = /* @__PURE__ */ ((I) => (I.ADD = "新增", I.EDIT = "修改", I.REMOVE = "删除", I.RESOURCE_RELATION = "分配查看", I))(x || {});
|
|
13
12
|
const Se = { class: "h-340px border-1px border-solid flex flex-row border_color" }, Pe = { class: "w-360px flex flex-col" }, Te = { class: "w-full h-34px bg-[#F2F3F5] flex px-15px items-center justify-between text-[#1D2129] dark:bg-[#1D2129] dark:text-[#F2F3F5]" }, Me = { class: "flex-1 overflow-hidden py-10px px-10px" }, Oe = { class: "overflow-y-auto overflow-x-hidden h-[calc(100%-30px)] mt-10px" }, Ue = { key: 1 }, Ve = { class: "flex-1 flex flex-col border-solid border-0px border-l-1px border_color" }, Be = { class: "flex-1 p-10px overflow-auto" }, Ge = /* @__PURE__ */ z({
|
|
@@ -477,7 +476,7 @@ const Se = { class: "h-340px border-1px border-solid flex flex-row border_color"
|
|
|
477
476
|
class: "ml-4px"
|
|
478
477
|
}, Qe = ["onClick"], He = {
|
|
479
478
|
class: "ml-4px"
|
|
480
|
-
},
|
|
479
|
+
}, st = /* @__PURE__ */ z({
|
|
481
480
|
name: "Role",
|
|
482
481
|
__name: "index",
|
|
483
482
|
setup(I) {
|
|
@@ -681,5 +680,5 @@ const Se = { class: "h-340px border-1px border-solid flex flex-row border_color"
|
|
|
681
680
|
}
|
|
682
681
|
});
|
|
683
682
|
export {
|
|
684
|
-
|
|
683
|
+
st as default
|
|
685
684
|
};
|
|
@@ -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-CSRC9-GH.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-CYqN5-ya.js";
|
|
12
|
+
import { g as Vx, a as $x } from "./zuzhijiaosebiaokongzhiqi-L6qeDk5-.js";
|
|
13
|
+
import { u as qx } from "./useAppAndResource-BMsYsunz.js";
|
|
14
|
+
import { e as Bx } from "./jiaosejiekou-D8-56Dhc.js";
|
|
15
|
+
import { g as Hx, c as zx } from "./pubJiaosezukongzhiqi-DmA3aBGv.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-T2g9unQR.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
|
};
|
|
@@ -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-CSRC9-GH.js";
|
|
5
|
+
import { g as Re, p as Ie, a as ke, b as Te, c as we, d as Ne } from "./ziyuanjiekou-Bv8jxVnB.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-T2g9unQR.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
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useSettingsStore as x, PubinfoIcon as f } from "pubinfo";
|
|
2
2
|
import { defineComponent as m, ref as u, reactive as v, createElementBlock as n, openBlock as a, createElementVNode as e, createVNode as g, Fragment as _, renderList as w, unref as c, normalizeClass as b, toDisplayString as h } from "vue";
|
|
3
|
-
import "./
|
|
4
|
-
import { a as y } from "./xitongpeizhifuwu-
|
|
3
|
+
import "./index-CSRC9-GH.js";
|
|
4
|
+
import { a as y } from "./xitongpeizhifuwu-DDQ84VjN.js";
|
|
5
5
|
import { message as k } from "ant-design-vue";
|
|
6
6
|
import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const C = {
|
|
@@ -2,10 +2,9 @@ import { Drawer as Z, Form as ee, FormItem as te, Input as ne, Switch as ae, Tex
|
|
|
2
2
|
import { useAuth as le, PubinfoIcon as ie } from "pubinfo";
|
|
3
3
|
import { PlusCircleOutlined as oe } from "@ant-design/icons-vue";
|
|
4
4
|
import { defineComponent as X, ref as L, createBlock as N, openBlock as h, unref as e, isRef as ce, withCtx as p, createVNode as i, createTextVNode as j, computed as y, resolveDirective as ue, createElementBlock as R, createCommentVNode as H, createElementVNode as W, normalizeClass as re, toDisplayString as $, withDirectives as S } from "vue";
|
|
5
|
-
import {
|
|
5
|
+
import { i as V, u as z } from "./index-CSRC9-GH.js";
|
|
6
6
|
import { ProTable as pe } from "@pubinfo/pro-components";
|
|
7
|
-
import { message as
|
|
8
|
-
import { u as G } from "./index-Dm4sOX43.js";
|
|
7
|
+
import { message as G, Modal as de } from "ant-design-vue";
|
|
9
8
|
import { useRoute as fe } from "vue-router";
|
|
10
9
|
function me(s, _) {
|
|
11
10
|
return V.Post("/blackWhiteList/addBlackWhiteList", s, {
|
|
@@ -47,7 +46,7 @@ const ve = /* @__PURE__ */ X({
|
|
|
47
46
|
const E = s, k = b, A = {
|
|
48
47
|
ip: [{ required: !0, validator: K, trigger: ["blur", "change"] }],
|
|
49
48
|
enable: [{ required: !0, message: "请选择是否开启", trigger: ["blur", "change"] }]
|
|
50
|
-
}, B = L(""), [D, w] =
|
|
49
|
+
}, B = L(""), [D, w] = z(!1), P = L(), O = {
|
|
51
50
|
enable: !0
|
|
52
51
|
}, r = L({}), x = L(!1);
|
|
53
52
|
function K(v, n, u) {
|
|
@@ -56,7 +55,7 @@ const ve = /* @__PURE__ */ X({
|
|
|
56
55
|
async function M(v, n, u) {
|
|
57
56
|
B.value = v, w(!0), n ? (x.value = !0, r.value = { ...u ?? {} }) : (x.value = !1, r.value = { ...O });
|
|
58
57
|
}
|
|
59
|
-
const [q, I] =
|
|
58
|
+
const [q, I] = z(!1);
|
|
60
59
|
function U() {
|
|
61
60
|
var v;
|
|
62
61
|
(v = P.value) == null || v.validate().then(() => {
|
|
@@ -66,7 +65,7 @@ const ve = /* @__PURE__ */ X({
|
|
|
66
65
|
type: E.type
|
|
67
66
|
};
|
|
68
67
|
n(u).then((t) => {
|
|
69
|
-
t.success && (
|
|
68
|
+
t.success && (G.success(`${B.value}成功!`), w(!1), k("submit"));
|
|
70
69
|
}).finally(() => I(!1));
|
|
71
70
|
});
|
|
72
71
|
}
|
|
@@ -198,7 +197,7 @@ const be = {
|
|
|
198
197
|
class: "ml-4px"
|
|
199
198
|
}, we = ["onClick"], Ie = {
|
|
200
199
|
class: "ml-4px"
|
|
201
|
-
},
|
|
200
|
+
}, Ve = /* @__PURE__ */ X({
|
|
202
201
|
name: "BlackWhiteList",
|
|
203
202
|
__name: "index",
|
|
204
203
|
setup(s) {
|
|
@@ -272,7 +271,7 @@ const be = {
|
|
|
272
271
|
function I() {
|
|
273
272
|
r.value.reload();
|
|
274
273
|
}
|
|
275
|
-
const [U, g] =
|
|
274
|
+
const [U, g] = z(!1);
|
|
276
275
|
function v(t, a) {
|
|
277
276
|
de.confirm({
|
|
278
277
|
title: "删除",
|
|
@@ -281,7 +280,7 @@ const be = {
|
|
|
281
280
|
g(!0), _e({
|
|
282
281
|
id: a == null ? void 0 : a.id
|
|
283
282
|
}).then((l) => {
|
|
284
|
-
l.success && (
|
|
283
|
+
l.success && (G.success("删除成功"), I());
|
|
285
284
|
}).finally(() => g(!1));
|
|
286
285
|
}
|
|
287
286
|
});
|
|
@@ -293,7 +292,7 @@ const be = {
|
|
|
293
292
|
}).then((a) => {
|
|
294
293
|
if (a.success) {
|
|
295
294
|
let l = "";
|
|
296
|
-
t != null && t.enable ? l = "停用成功!" : l = "启用成功!",
|
|
295
|
+
t != null && t.enable ? l = "停用成功!" : l = "启用成功!", G.success(l), I();
|
|
297
296
|
}
|
|
298
297
|
}).finally(() => g(!1));
|
|
299
298
|
}
|
|
@@ -451,5 +450,5 @@ const be = {
|
|
|
451
450
|
}
|
|
452
451
|
});
|
|
453
452
|
export {
|
|
454
|
-
|
|
453
|
+
Ve as default
|
|
455
454
|
};
|