@syzh-syzh/base 0.0.1
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/assets/icons/svg/404.svg +1 -0
- package/dist/assets/icons/svg/bug.svg +1 -0
- package/dist/assets/icons/svg/build.svg +1 -0
- package/dist/assets/icons/svg/button.svg +1 -0
- package/dist/assets/icons/svg/cascader.svg +1 -0
- package/dist/assets/icons/svg/chart.svg +1 -0
- package/dist/assets/icons/svg/checkbox.svg +1 -0
- package/dist/assets/icons/svg/clipboard.svg +1 -0
- package/dist/assets/icons/svg/code.svg +1 -0
- package/dist/assets/icons/svg/color.svg +1 -0
- package/dist/assets/icons/svg/component.svg +1 -0
- package/dist/assets/icons/svg/dashboard.svg +1 -0
- package/dist/assets/icons/svg/date-range.svg +1 -0
- package/dist/assets/icons/svg/date.svg +1 -0
- package/dist/assets/icons/svg/dict.svg +1 -0
- package/dist/assets/icons/svg/documentation.svg +1 -0
- package/dist/assets/icons/svg/download.svg +1 -0
- package/dist/assets/icons/svg/drag.svg +1 -0
- package/dist/assets/icons/svg/druid.svg +1 -0
- package/dist/assets/icons/svg/edit.svg +1 -0
- package/dist/assets/icons/svg/education.svg +1 -0
- package/dist/assets/icons/svg/email.svg +1 -0
- package/dist/assets/icons/svg/enter.svg +1 -0
- package/dist/assets/icons/svg/example.svg +1 -0
- package/dist/assets/icons/svg/excel.svg +1 -0
- package/dist/assets/icons/svg/exit-fullscreen.svg +1 -0
- package/dist/assets/icons/svg/eye-open.svg +1 -0
- package/dist/assets/icons/svg/eye.svg +1 -0
- package/dist/assets/icons/svg/form.svg +1 -0
- package/dist/assets/icons/svg/fullscreen.svg +1 -0
- package/dist/assets/icons/svg/github.svg +1 -0
- package/dist/assets/icons/svg/guide.svg +1 -0
- package/dist/assets/icons/svg/icon.svg +1 -0
- package/dist/assets/icons/svg/input.svg +1 -0
- package/dist/assets/icons/svg/international.svg +1 -0
- package/dist/assets/icons/svg/job.svg +1 -0
- package/dist/assets/icons/svg/language.svg +1 -0
- package/dist/assets/icons/svg/link.svg +1 -0
- package/dist/assets/icons/svg/list.svg +1 -0
- package/dist/assets/icons/svg/lock.svg +1 -0
- package/dist/assets/icons/svg/log.svg +1 -0
- package/dist/assets/icons/svg/logininfor.svg +1 -0
- package/dist/assets/icons/svg/message.svg +1 -0
- package/dist/assets/icons/svg/money.svg +1 -0
- package/dist/assets/icons/svg/monitor.svg +2 -0
- package/dist/assets/icons/svg/moon.svg +1 -0
- package/dist/assets/icons/svg/more-up.svg +1 -0
- package/dist/assets/icons/svg/nested.svg +1 -0
- package/dist/assets/icons/svg/number.svg +1 -0
- package/dist/assets/icons/svg/online.svg +1 -0
- package/dist/assets/icons/svg/password.svg +1 -0
- package/dist/assets/icons/svg/pdf.svg +1 -0
- package/dist/assets/icons/svg/people.svg +1 -0
- package/dist/assets/icons/svg/peoples.svg +1 -0
- package/dist/assets/icons/svg/phone.svg +1 -0
- package/dist/assets/icons/svg/post.svg +1 -0
- package/dist/assets/icons/svg/qq.svg +1 -0
- package/dist/assets/icons/svg/question.svg +1 -0
- package/dist/assets/icons/svg/radio.svg +1 -0
- package/dist/assets/icons/svg/rate.svg +1 -0
- package/dist/assets/icons/svg/redis-list.svg +2 -0
- package/dist/assets/icons/svg/redis.svg +1 -0
- package/dist/assets/icons/svg/row.svg +1 -0
- package/dist/assets/icons/svg/search.svg +1 -0
- package/dist/assets/icons/svg/select.svg +1 -0
- package/dist/assets/icons/svg/server.svg +1 -0
- package/dist/assets/icons/svg/shopping.svg +1 -0
- package/dist/assets/icons/svg/size.svg +1 -0
- package/dist/assets/icons/svg/skill.svg +1 -0
- package/dist/assets/icons/svg/slider.svg +1 -0
- package/dist/assets/icons/svg/star.svg +1 -0
- package/dist/assets/icons/svg/sunny.svg +1 -0
- package/dist/assets/icons/svg/swagger.svg +1 -0
- package/dist/assets/icons/svg/switch.svg +1 -0
- package/dist/assets/icons/svg/system.svg +2 -0
- package/dist/assets/icons/svg/tab.svg +1 -0
- package/dist/assets/icons/svg/table.svg +1 -0
- package/dist/assets/icons/svg/textarea.svg +1 -0
- package/dist/assets/icons/svg/theme.svg +1 -0
- package/dist/assets/icons/svg/time-range.svg +1 -0
- package/dist/assets/icons/svg/time.svg +1 -0
- package/dist/assets/icons/svg/tool.svg +1 -0
- package/dist/assets/icons/svg/tree-table.svg +1 -0
- package/dist/assets/icons/svg/tree.svg +1 -0
- package/dist/assets/icons/svg/upload.svg +1 -0
- package/dist/assets/icons/svg/user.svg +1 -0
- package/dist/assets/icons/svg/validCode.svg +1 -0
- package/dist/assets/icons/svg/wechat.svg +1 -0
- package/dist/assets/icons/svg/zip.svg +1 -0
- package/dist/chunks/401-CL4u0r_c.js +66 -0
- package/dist/chunks/404-kPZw9FCc.js +35 -0
- package/dist/chunks/daibanevent-C8JNsrlI.js +65 -0
- package/dist/chunks/dayjs.min-B97rgn_L.js +283 -0
- package/dist/chunks/dict-C49Ogd-n.js +57009 -0
- package/dist/chunks/eventfb-BTFXb03d.js +51 -0
- package/dist/chunks/eventsource--BhatYsm.js +91 -0
- package/dist/chunks/gaopinevent-B-5K3OFp.js +132 -0
- package/dist/chunks/index-BJS7Ejqq.js +768 -0
- package/dist/chunks/index-CLnO5o1_.js +1446 -0
- package/dist/chunks/index-D8_MkquB.js +762 -0
- package/dist/chunks/index-DCeOtd-T.js +651 -0
- package/dist/chunks/index-DOll2JRT.js +1106 -0
- package/dist/chunks/index-DWhfjjo6.js +31 -0
- package/dist/chunks/index-VyUXzwqh.js +426 -0
- package/dist/chunks/index-gKvU35v8.js +1617 -0
- package/dist/chunks/lazyTree-MjyLwMcY.js +89 -0
- package/dist/chunks/login-pu41rAd1.js +173 -0
- package/dist/chunks/lv-B7X90WVW.js +5 -0
- package/dist/chunks/numberbox-tQsb4wgY.js +29 -0
- package/dist/chunks/shangbaoevent-Veamh7z3.js +451 -0
- package/dist/chunks/shangbaoeventfl-BJoXH_B5.js +259 -0
- package/dist/chunks/sysright-manage-BmiSkG44.js +474 -0
- package/dist/chunks/title-NwJCTLeC.js +25 -0
- package/dist/chunks/weather-ptB2uA3s.js +65 -0
- package/dist/config/dict.json +189 -0
- package/dist/config/sys-config.json +40 -0
- package/dist/images/weather_icon/0@1x.png +0 -0
- package/dist/images/weather_icon/0@2x.png +0 -0
- package/dist/images/weather_icon/10@1x.png +0 -0
- package/dist/images/weather_icon/10@2x.png +0 -0
- package/dist/images/weather_icon/11@1x.png +0 -0
- package/dist/images/weather_icon/11@2x.png +0 -0
- package/dist/images/weather_icon/12@1x.png +0 -0
- package/dist/images/weather_icon/12@2x.png +0 -0
- package/dist/images/weather_icon/13@1x.png +0 -0
- package/dist/images/weather_icon/13@2x.png +0 -0
- package/dist/images/weather_icon/14@1x.png +0 -0
- package/dist/images/weather_icon/14@2x.png +0 -0
- package/dist/images/weather_icon/15@1x.png +0 -0
- package/dist/images/weather_icon/15@2x.png +0 -0
- package/dist/images/weather_icon/16@1x.png +0 -0
- package/dist/images/weather_icon/16@2x.png +0 -0
- package/dist/images/weather_icon/17@1x.png +0 -0
- package/dist/images/weather_icon/17@2x.png +0 -0
- package/dist/images/weather_icon/18@1x.png +0 -0
- package/dist/images/weather_icon/18@2x.png +0 -0
- package/dist/images/weather_icon/19@1x.png +0 -0
- package/dist/images/weather_icon/19@2x.png +0 -0
- package/dist/images/weather_icon/1@1x.png +0 -0
- package/dist/images/weather_icon/1@2x.png +0 -0
- package/dist/images/weather_icon/20@1x.png +0 -0
- package/dist/images/weather_icon/20@2x.png +0 -0
- package/dist/images/weather_icon/21@1x.png +0 -0
- package/dist/images/weather_icon/21@2x.png +0 -0
- package/dist/images/weather_icon/22@1x.png +0 -0
- package/dist/images/weather_icon/22@2x.png +0 -0
- package/dist/images/weather_icon/23@1x.png +0 -0
- package/dist/images/weather_icon/23@2x.png +0 -0
- package/dist/images/weather_icon/24@1x.png +0 -0
- package/dist/images/weather_icon/24@2x.png +0 -0
- package/dist/images/weather_icon/25@1x.png +0 -0
- package/dist/images/weather_icon/25@2x.png +0 -0
- package/dist/images/weather_icon/26@1x.png +0 -0
- package/dist/images/weather_icon/26@2x.png +0 -0
- package/dist/images/weather_icon/27@1x.png +0 -0
- package/dist/images/weather_icon/27@2x.png +0 -0
- package/dist/images/weather_icon/28@1x.png +0 -0
- package/dist/images/weather_icon/28@2x.png +0 -0
- package/dist/images/weather_icon/29@1x.png +0 -0
- package/dist/images/weather_icon/29@2x.png +0 -0
- package/dist/images/weather_icon/2@1x.png +0 -0
- package/dist/images/weather_icon/2@2x.png +0 -0
- package/dist/images/weather_icon/30@1x.png +0 -0
- package/dist/images/weather_icon/30@2x.png +0 -0
- package/dist/images/weather_icon/31@1x.png +0 -0
- package/dist/images/weather_icon/31@2x.png +0 -0
- package/dist/images/weather_icon/32@1x.png +0 -0
- package/dist/images/weather_icon/32@2x.png +0 -0
- package/dist/images/weather_icon/33@1x.png +0 -0
- package/dist/images/weather_icon/33@2x.png +0 -0
- package/dist/images/weather_icon/34@1x.png +0 -0
- package/dist/images/weather_icon/34@2x.png +0 -0
- package/dist/images/weather_icon/35@1x.png +0 -0
- package/dist/images/weather_icon/35@2x.png +0 -0
- package/dist/images/weather_icon/36@1x.png +0 -0
- package/dist/images/weather_icon/36@2x.png +0 -0
- package/dist/images/weather_icon/37@1x.png +0 -0
- package/dist/images/weather_icon/37@2x.png +0 -0
- package/dist/images/weather_icon/38@1x.png +0 -0
- package/dist/images/weather_icon/38@2x.png +0 -0
- package/dist/images/weather_icon/3@1x.png +0 -0
- package/dist/images/weather_icon/3@2x.png +0 -0
- package/dist/images/weather_icon/4@1x.png +0 -0
- package/dist/images/weather_icon/4@2x.png +0 -0
- package/dist/images/weather_icon/5@1x.png +0 -0
- package/dist/images/weather_icon/5@2x.png +0 -0
- package/dist/images/weather_icon/6@1x.png +0 -0
- package/dist/images/weather_icon/6@2x.png +0 -0
- package/dist/images/weather_icon/7@1x.png +0 -0
- package/dist/images/weather_icon/7@2x.png +0 -0
- package/dist/images/weather_icon/8@1x.png +0 -0
- package/dist/images/weather_icon/8@2x.png +0 -0
- package/dist/images/weather_icon/99@1x.png +0 -0
- package/dist/images/weather_icon/99@2x.png +0 -0
- package/dist/images/weather_icon/9@1x.png +0 -0
- package/dist/images/weather_icon/9@2x.png +0 -0
- package/dist/resolver.js +24 -0
- package/dist/sybase.css +1 -0
- package/dist/sybase.js +2748 -0
- package/dist/views.js +92 -0
- package/dist/vite.svg +1 -0
- package/package.json +93 -0
|
@@ -0,0 +1,762 @@
|
|
|
1
|
+
import { _ as ol, a5 as ul, K as z, H as ke, bq as il, ap as sl, an as dl, ao as rl, b4 as pl, W as Ve, O as Se, m as j, br as cl, bs as vl, bt as ml, bu as fl, bv as _l, bw as gl, bx as bl, Y as yl } from "./dict-C49Ogd-n.js";
|
|
2
|
+
import { ref as s, shallowRef as $l, reactive as hl, toRefs as kl, watch as Vl, watchEffect as Sl, computed as Re, nextTick as Rl, resolveComponent as v, resolveDirective as Ce, createElementBlock as M, openBlock as d, withDirectives as b, createVNode as i, unref as l, withCtx as o, withKeys as Cl, Fragment as Y, renderList as A, createBlock as c, createTextVNode as f, vShow as xe, isRef as F, createCommentVNode as w, createElementVNode as G, toDisplayString as oe } from "vue";
|
|
3
|
+
import { d as xl } from "./dayjs.min-B97rgn_L.js";
|
|
4
|
+
const wl = { class: "app-container" }, Ul = { class: "dialog-footer" }, Ll = { class: "dialog-footer" }, Nl = {
|
|
5
|
+
__name: "index",
|
|
6
|
+
setup(El) {
|
|
7
|
+
const we = xl, { sys_rolerole_state: H } = ul("sys_role@role_state"), U = s([]), K = s([]), D = s(!1), S = s([]), R = s(!1), L = s(!0), J = s(!0), Q = s([]), ue = s(!0), ie = s(!0), I = s(0), W = s("");
|
|
8
|
+
s(void 0);
|
|
9
|
+
const h = s(!0), y = s([]), k = s(!0), T = s(!1), se = s(""), q = s(""), X = s([]), N = s(), Ue = s(), C = $l({}), t = s(""), E = s(
|
|
10
|
+
[
|
|
11
|
+
{ label: "角色名称", visible: !0 },
|
|
12
|
+
{ label: "角色编号", visible: !0 },
|
|
13
|
+
{ label: "状态", visible: !0 },
|
|
14
|
+
{ label: "数据Json", visible: !0 },
|
|
15
|
+
{ label: "角色排序", visible: !1 },
|
|
16
|
+
{ label: "备注", visible: !0 }
|
|
17
|
+
].map((n, e) => ({ key: `key${e}`, ...n }))
|
|
18
|
+
), Le = hl({
|
|
19
|
+
form: {},
|
|
20
|
+
queryParams: {
|
|
21
|
+
pageNo: 1,
|
|
22
|
+
pageSize: 10,
|
|
23
|
+
[`${t.value}_state`]: void 0,
|
|
24
|
+
selectinfo: void 0
|
|
25
|
+
},
|
|
26
|
+
editParams: [],
|
|
27
|
+
rules: {}
|
|
28
|
+
}), { queryParams: m, form: p, rules: de, editParams: V } = kl(Le), Z = s(), re = s(), ee = s();
|
|
29
|
+
Vl(N, (n) => {
|
|
30
|
+
n && q.value && ge(q.value), V.value = [], Be.value = [];
|
|
31
|
+
}), Sl(() => {
|
|
32
|
+
let n = new Map(z(U.value).map((e) => [e.menuid, e.checkList]));
|
|
33
|
+
V.value.forEach((e) => {
|
|
34
|
+
n.get(e.menuid) && (e.rightidarray = n.get(e.menuid));
|
|
35
|
+
}), console.log("%c menuList 变化", " color:chartreuse;font-size:20px", U);
|
|
36
|
+
});
|
|
37
|
+
const Ne = Re(() => [
|
|
38
|
+
{
|
|
39
|
+
[`${t.value}id`]: "0",
|
|
40
|
+
[`${t.value}_name`]: "根目录",
|
|
41
|
+
children: pe.value
|
|
42
|
+
}
|
|
43
|
+
]), pe = Re(() => ke(S.value, `${t.value}id`, `${t.value}_parentid`));
|
|
44
|
+
function Ee() {
|
|
45
|
+
t.value = "role", de.value = {
|
|
46
|
+
[`${t.value}_no`]: [{ required: !0, message: "角色编号不能为空", trigger: "blur" }],
|
|
47
|
+
[`${t.value}_name`]: [{ required: !0, message: "数据名称不能为空", trigger: "blur" }],
|
|
48
|
+
[`${t.value}_parentid`]: [{ required: !0, message: "父级不能为空", trigger: "blur" }]
|
|
49
|
+
}, C.value = {
|
|
50
|
+
search: bl,
|
|
51
|
+
add: gl,
|
|
52
|
+
delete: _l,
|
|
53
|
+
edit: fl,
|
|
54
|
+
// export: exportRole,
|
|
55
|
+
detail: ml,
|
|
56
|
+
fresh: vl
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function De() {
|
|
60
|
+
L.value = !0, pl({}).then((n) => {
|
|
61
|
+
n?.records ? (X.value = n.records, N.value = n.records[0].appsid, m.value.menu_appsid = n.records[0].appsid, P()) : X.value = [];
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
function ce() {
|
|
65
|
+
Ee(), ae();
|
|
66
|
+
}
|
|
67
|
+
function P() {
|
|
68
|
+
L.value = !0, D.value = !!(k.value && (m.value.selectinfo || m.value[`${t.value}_state`]) != null), C.value.search({ ...m.value, ...k.value && !D.value ? { pageSize: 1e4, [`${t.value}_parentid`]: 0 } : {} }).then((n) => {
|
|
69
|
+
D.value ? (K.value = n.records || [], h.value = !h.value) : (K.value = [], S.value = O(n.records || [])), I.value = n.rowCount || 0, L.value = !1;
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
async function Pe(n, e, u) {
|
|
73
|
+
n.children = await le(n[`${t.value}id`]), S.value = O(n.children), u(n.children);
|
|
74
|
+
}
|
|
75
|
+
async function le(n) {
|
|
76
|
+
L.value = !0;
|
|
77
|
+
const e = await C.value.search({ [`${t.value}_parentid`]: n, ...m.value, pageSize: 1e4 });
|
|
78
|
+
return L.value = !1, e.records || [];
|
|
79
|
+
}
|
|
80
|
+
function O(n) {
|
|
81
|
+
const e = new Map(S.value.map((u) => [u[`${t.value}id`], u]));
|
|
82
|
+
return n.forEach((u) => e.set(u[`${t.value}id`], u)), Array.from(e.values());
|
|
83
|
+
}
|
|
84
|
+
function je() {
|
|
85
|
+
R.value = !1, te();
|
|
86
|
+
}
|
|
87
|
+
function te() {
|
|
88
|
+
Ve(Z.value), p.value = {
|
|
89
|
+
[`${t.value}id`]: void 0,
|
|
90
|
+
[`${t.value}_no`]: void 0,
|
|
91
|
+
[`${t.value}_name`]: void 0,
|
|
92
|
+
[`${t.value}_json`]: void 0,
|
|
93
|
+
[`${t.value}_sort`]: 0,
|
|
94
|
+
[`${t.value}_usetypeid`]: 2,
|
|
95
|
+
[`${t.value}_state`]: 1,
|
|
96
|
+
[`${t.value}_isdefault`]: 0,
|
|
97
|
+
[`${t.value}_note`]: void 0
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function ae() {
|
|
101
|
+
m.value.pageNo = 1, P();
|
|
102
|
+
}
|
|
103
|
+
function Te() {
|
|
104
|
+
Ve(re.value), ce();
|
|
105
|
+
}
|
|
106
|
+
function ve(n, e) {
|
|
107
|
+
te(), R.value = !0, W.value = "添加角色", p.value.dictid = m.value[`${t.value}_dictid`], n && (p.value[`${t.value}_parentid`] = n[`${t.value}id`]);
|
|
108
|
+
}
|
|
109
|
+
function ze(n) {
|
|
110
|
+
Q.value = n.map((e) => e[`${t.value}id`]), ue.value = n.length != 1, ie.value = !n.length;
|
|
111
|
+
}
|
|
112
|
+
function Me(n, e) {
|
|
113
|
+
e ? y.value.push(n[`${t.value}id`]) : y.value = y.value.filter((u) => u != n[`${t.value}id`]);
|
|
114
|
+
}
|
|
115
|
+
function me(n) {
|
|
116
|
+
te();
|
|
117
|
+
const e = n[`${t.value}id`] || Q.value;
|
|
118
|
+
C.value.detail(e).then((u) => {
|
|
119
|
+
Se(u[`${t.value}_json`]) || (u[`${t.value}_json`] = JSON.stringify(u[`${t.value}_json`])), p.value = u, R.value = !0, W.value = "修改角色";
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
function Je() {
|
|
123
|
+
Z.value.validate((n) => {
|
|
124
|
+
n && (p.value[`${t.value}id`] != null ? C.value.edit(fe()).then((e) => {
|
|
125
|
+
j.msgSuccess("修改成功"), R.value = !1, le(e[`${t.value}_parentid`]).then((u) => {
|
|
126
|
+
S.value = O(u), y.value.includes(e[`${t.value}_parentid`]) && (y.value = y.value.filter((r) => r != e[`${t.value}_parentid`])), y.value.includes(e[`${t.value}_parentid`]) || y.value.push(e[`${t.value}_parentid`]), setTimeout(() => {
|
|
127
|
+
h.value = !h.value;
|
|
128
|
+
}, 0);
|
|
129
|
+
});
|
|
130
|
+
}) : C.value.add(fe()).then((e) => {
|
|
131
|
+
j.msgSuccess("新增成功"), R.value = !1, k.value ? le(e[`${t.value}_parentid`]).then((u) => {
|
|
132
|
+
S.value = O(u), setTimeout(() => {
|
|
133
|
+
h.value = !h.value;
|
|
134
|
+
}, 0);
|
|
135
|
+
}) : P();
|
|
136
|
+
}));
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
function fe() {
|
|
140
|
+
let n = JSON.parse(JSON.stringify(p.value));
|
|
141
|
+
return Se(n[`${t.value}_json`]) || (n[`${t.value}_json`] = yl(n[`${t.value}_json`])), n;
|
|
142
|
+
}
|
|
143
|
+
function _e(n) {
|
|
144
|
+
const e = n[`${t.value}id`] ? [n[`${t.value}id`]] : Q.value;
|
|
145
|
+
j.confirm('是否确认删除角色id为"' + e + '"的数据项?').then(function() {
|
|
146
|
+
return C.value.delete(e);
|
|
147
|
+
}).then(() => {
|
|
148
|
+
P(), k.value && (S.value = S.value.filter((u) => !e.includes(u[`${t.value}id`])), y.value = y.value.filter((u) => !e.includes(u)), h.value = !h.value), j.msgSuccess("删除成功");
|
|
149
|
+
}).catch(() => {
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
function qe() {
|
|
153
|
+
C.value.fresh().then(() => {
|
|
154
|
+
j.msgSuccess("刷新成功");
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
function Oe(n) {
|
|
158
|
+
q.value = n[`${t.value}id`], ge(n[`${t.value}id`]), se.value = n[`${t.value}_name`] + "权限管理", T.value = !0;
|
|
159
|
+
}
|
|
160
|
+
function ge(n) {
|
|
161
|
+
il({ [`${t.value}id`]: n, appsid: N.value }).then((e) => {
|
|
162
|
+
U.value = e.code == "208" ? [] : ke(
|
|
163
|
+
z(e).map((u) => ({ ...u, checkList: u.sysRightList ? u.sysRightList.filter((r) => r.checked).map((r) => r.rightid) : void 0 })),
|
|
164
|
+
"menuid",
|
|
165
|
+
"menu_parentid"
|
|
166
|
+
), V.value = z(U.value).filter((u) => u.checked).map((u) => ({ menuid: u.id })), console.log("%c editParams.value", " color:violet;font-size:20px", V.value = z(U.value).filter((u) => u.checked), V.value), Rl().then(() => {
|
|
167
|
+
z(U.value).filter((u) => u.checked).forEach((u) => {
|
|
168
|
+
ee.value?.toggleRowSelection(u, !0);
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
const Be = s([]);
|
|
174
|
+
function Ye(n, e) {
|
|
175
|
+
let u = !!n.map((r) => r.menuid).includes(e.menuid);
|
|
176
|
+
V.value = V.value.filter((r) => n.map((ne) => ne.menuid).includes(r.menuid)), u ? (V.value.push({ menuid: e.menuid }), e.sysRightList?.forEach((r) => {
|
|
177
|
+
e.checkList.push(r.rightid);
|
|
178
|
+
})) : e.checkList = [];
|
|
179
|
+
}
|
|
180
|
+
function Ae(n, e) {
|
|
181
|
+
console.log("%c checkGroupChange", " color:chartreuse;font-size:20px", n), n.length > 0 && ee.value?.toggleRowSelection(e, !0);
|
|
182
|
+
}
|
|
183
|
+
function Fe() {
|
|
184
|
+
cl({ appsid: N.value, roleid: q.value, menuright: V.value }).then((n) => {
|
|
185
|
+
j.msgSuccess("权限更新成功");
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
return De(), ce(), (n, e) => {
|
|
189
|
+
const u = v("el-input"), r = v("el-form-item"), ne = v("el-option"), Ge = v("el-select"), _ = v("el-button"), be = v("el-form"), B = v("el-col"), He = sl, Ke = v("el-row"), g = v("el-table-column"), Qe = dl, ye = v("el-table"), Ie = rl, We = v("el-tree-select"), Xe = v("el-input-number"), Ze = v("el-radio"), el = v("el-radio-group"), $e = v("el-dialog"), ll = v("el-tab-pane"), tl = v("el-tabs"), al = v("el-checkbox"), nl = v("el-checkbox-group"), x = Ce("hasPermi"), he = Ce("loading");
|
|
190
|
+
return d(), M("div", wl, [
|
|
191
|
+
b(i(be, {
|
|
192
|
+
model: l(m),
|
|
193
|
+
ref_key: "queryRef",
|
|
194
|
+
ref: re,
|
|
195
|
+
inline: !0
|
|
196
|
+
}, {
|
|
197
|
+
default: o(() => [
|
|
198
|
+
i(r, {
|
|
199
|
+
label: "",
|
|
200
|
+
prop: "selectinfo"
|
|
201
|
+
}, {
|
|
202
|
+
default: o(() => [
|
|
203
|
+
i(u, {
|
|
204
|
+
modelValue: l(m).selectinfo,
|
|
205
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => l(m).selectinfo = a),
|
|
206
|
+
placeholder: "请输入搜索内容",
|
|
207
|
+
clearable: "",
|
|
208
|
+
style: { width: "240px" },
|
|
209
|
+
onKeyup: Cl(ae, ["enter"])
|
|
210
|
+
}, null, 8, ["modelValue"])
|
|
211
|
+
]),
|
|
212
|
+
_: 1
|
|
213
|
+
}),
|
|
214
|
+
i(r, {
|
|
215
|
+
label: "状态",
|
|
216
|
+
prop: `${l(t)}_state`
|
|
217
|
+
}, {
|
|
218
|
+
default: o(() => [
|
|
219
|
+
i(Ge, {
|
|
220
|
+
modelValue: l(m)[`${l(t)}_state`],
|
|
221
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => l(m)[`${l(t)}_state`] = a),
|
|
222
|
+
placeholder: "请选择状态",
|
|
223
|
+
clearable: "",
|
|
224
|
+
style: { width: "200px" }
|
|
225
|
+
}, {
|
|
226
|
+
default: o(() => [
|
|
227
|
+
(d(!0), M(Y, null, A(l(H), (a) => (d(), c(ne, {
|
|
228
|
+
key: a.value,
|
|
229
|
+
label: a.label,
|
|
230
|
+
value: a.value
|
|
231
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
232
|
+
]),
|
|
233
|
+
_: 1
|
|
234
|
+
}, 8, ["modelValue"])
|
|
235
|
+
]),
|
|
236
|
+
_: 1
|
|
237
|
+
}, 8, ["prop"]),
|
|
238
|
+
i(r, null, {
|
|
239
|
+
default: o(() => [
|
|
240
|
+
i(_, {
|
|
241
|
+
type: "primary",
|
|
242
|
+
icon: "Search",
|
|
243
|
+
onClick: ae
|
|
244
|
+
}, {
|
|
245
|
+
default: o(() => [...e[16] || (e[16] = [
|
|
246
|
+
f("搜索", -1)
|
|
247
|
+
])]),
|
|
248
|
+
_: 1
|
|
249
|
+
}),
|
|
250
|
+
i(_, {
|
|
251
|
+
icon: "Refresh",
|
|
252
|
+
onClick: Te
|
|
253
|
+
}, {
|
|
254
|
+
default: o(() => [...e[17] || (e[17] = [
|
|
255
|
+
f("重置", -1)
|
|
256
|
+
])]),
|
|
257
|
+
_: 1
|
|
258
|
+
})
|
|
259
|
+
]),
|
|
260
|
+
_: 1
|
|
261
|
+
})
|
|
262
|
+
]),
|
|
263
|
+
_: 1
|
|
264
|
+
}, 8, ["model"]), [
|
|
265
|
+
[xe, l(J)]
|
|
266
|
+
]),
|
|
267
|
+
i(Ke, {
|
|
268
|
+
gutter: 10,
|
|
269
|
+
class: "mb8"
|
|
270
|
+
}, {
|
|
271
|
+
default: o(() => [
|
|
272
|
+
i(B, { span: 1.5 }, {
|
|
273
|
+
default: o(() => [
|
|
274
|
+
b((d(), c(_, {
|
|
275
|
+
type: "primary",
|
|
276
|
+
plain: "",
|
|
277
|
+
icon: "Plus",
|
|
278
|
+
onClick: ve
|
|
279
|
+
}, {
|
|
280
|
+
default: o(() => [...e[18] || (e[18] = [
|
|
281
|
+
f("新增", -1)
|
|
282
|
+
])]),
|
|
283
|
+
_: 1
|
|
284
|
+
})), [
|
|
285
|
+
[x, ["SysRoleAdd"]]
|
|
286
|
+
])
|
|
287
|
+
]),
|
|
288
|
+
_: 1
|
|
289
|
+
}),
|
|
290
|
+
i(B, { span: 1.5 }, {
|
|
291
|
+
default: o(() => [
|
|
292
|
+
b((d(), c(_, {
|
|
293
|
+
type: "success",
|
|
294
|
+
plain: "",
|
|
295
|
+
icon: "Edit",
|
|
296
|
+
disabled: l(ue),
|
|
297
|
+
onClick: me
|
|
298
|
+
}, {
|
|
299
|
+
default: o(() => [...e[19] || (e[19] = [
|
|
300
|
+
f("修改", -1)
|
|
301
|
+
])]),
|
|
302
|
+
_: 1
|
|
303
|
+
}, 8, ["disabled"])), [
|
|
304
|
+
[x, ["SysRoleEdit"]]
|
|
305
|
+
])
|
|
306
|
+
]),
|
|
307
|
+
_: 1
|
|
308
|
+
}),
|
|
309
|
+
i(B, { span: 1.5 }, {
|
|
310
|
+
default: o(() => [
|
|
311
|
+
b((d(), c(_, {
|
|
312
|
+
type: "danger",
|
|
313
|
+
plain: "",
|
|
314
|
+
icon: "Delete",
|
|
315
|
+
disabled: l(ie),
|
|
316
|
+
onClick: _e
|
|
317
|
+
}, {
|
|
318
|
+
default: o(() => [...e[20] || (e[20] = [
|
|
319
|
+
f("删除", -1)
|
|
320
|
+
])]),
|
|
321
|
+
_: 1
|
|
322
|
+
}, 8, ["disabled"])), [
|
|
323
|
+
[x, ["SysRoleDelete"]]
|
|
324
|
+
])
|
|
325
|
+
]),
|
|
326
|
+
_: 1
|
|
327
|
+
}),
|
|
328
|
+
i(B, { span: 1.5 }, {
|
|
329
|
+
default: o(() => [
|
|
330
|
+
b((d(), c(_, {
|
|
331
|
+
type: "danger",
|
|
332
|
+
plain: "",
|
|
333
|
+
icon: "Refresh",
|
|
334
|
+
onClick: qe
|
|
335
|
+
}, {
|
|
336
|
+
default: o(() => [...e[21] || (e[21] = [
|
|
337
|
+
f("刷新缓存", -1)
|
|
338
|
+
])]),
|
|
339
|
+
_: 1
|
|
340
|
+
})), [
|
|
341
|
+
[x, ["SysRoleRefresh"]]
|
|
342
|
+
])
|
|
343
|
+
]),
|
|
344
|
+
_: 1
|
|
345
|
+
}),
|
|
346
|
+
i(He, {
|
|
347
|
+
showSearch: l(J),
|
|
348
|
+
"onUpdate:showSearch": e[2] || (e[2] = (a) => F(J) ? J.value = a : null),
|
|
349
|
+
onQueryTable: P,
|
|
350
|
+
columns: l(E)
|
|
351
|
+
}, null, 8, ["showSearch", "columns"])
|
|
352
|
+
]),
|
|
353
|
+
_: 1
|
|
354
|
+
}),
|
|
355
|
+
b((d(), c(ye, {
|
|
356
|
+
key: l(h),
|
|
357
|
+
ref_key: "treetable",
|
|
358
|
+
ref: Ue,
|
|
359
|
+
"row-key": (a) => JSON.stringify(a[`${l(t)}id`]),
|
|
360
|
+
data: l(D) ? l(K) : l(pe),
|
|
361
|
+
"tree-props": {
|
|
362
|
+
children: "children",
|
|
363
|
+
hasChildren: `${l(t)}_isexistschild`,
|
|
364
|
+
checkStrictly: !0
|
|
365
|
+
},
|
|
366
|
+
onExpandChange: Me,
|
|
367
|
+
onSelectionChange: ze,
|
|
368
|
+
lazy: !!(l(k) && !l(D)),
|
|
369
|
+
load: Pe,
|
|
370
|
+
border: ""
|
|
371
|
+
}, {
|
|
372
|
+
default: o(() => [
|
|
373
|
+
i(g, {
|
|
374
|
+
type: "selection",
|
|
375
|
+
width: "55",
|
|
376
|
+
align: "center"
|
|
377
|
+
}),
|
|
378
|
+
l(E)[0].visible ? (d(), c(g, {
|
|
379
|
+
key: 0,
|
|
380
|
+
label: "角色名称",
|
|
381
|
+
align: l(k) ? "left" : "center",
|
|
382
|
+
prop: `${l(t)}_name`
|
|
383
|
+
}, null, 8, ["align", "prop"])) : w("", !0),
|
|
384
|
+
l(E)[1].visible ? (d(), c(g, {
|
|
385
|
+
key: 1,
|
|
386
|
+
label: "角色编号",
|
|
387
|
+
align: "center",
|
|
388
|
+
prop: `${l(t)}_no`
|
|
389
|
+
}, null, 8, ["prop"])) : w("", !0),
|
|
390
|
+
l(E)[2].visible ? (d(), c(g, {
|
|
391
|
+
key: 2,
|
|
392
|
+
label: "状态",
|
|
393
|
+
align: "center"
|
|
394
|
+
}, {
|
|
395
|
+
default: o((a) => [
|
|
396
|
+
i(Qe, {
|
|
397
|
+
options: l(H),
|
|
398
|
+
value: a.row[`${l(t)}_state`]
|
|
399
|
+
}, null, 8, ["options", "value"])
|
|
400
|
+
]),
|
|
401
|
+
_: 1
|
|
402
|
+
})) : w("", !0),
|
|
403
|
+
l(E)[3].visible ? (d(), c(g, {
|
|
404
|
+
key: 3,
|
|
405
|
+
label: "数据Json",
|
|
406
|
+
align: "center"
|
|
407
|
+
}, {
|
|
408
|
+
default: o(({ row: a }) => [
|
|
409
|
+
G("span", null, oe(JSON.stringify(a[`${l(t)}_json`])), 1)
|
|
410
|
+
]),
|
|
411
|
+
_: 1
|
|
412
|
+
})) : w("", !0),
|
|
413
|
+
l(E)[4].visible ? (d(), c(g, {
|
|
414
|
+
key: 4,
|
|
415
|
+
label: "角色排序",
|
|
416
|
+
align: "center",
|
|
417
|
+
prop: `${l(t)}_sort`
|
|
418
|
+
}, null, 8, ["prop"])) : w("", !0),
|
|
419
|
+
l(E)[5].visible ? (d(), c(g, {
|
|
420
|
+
key: 5,
|
|
421
|
+
label: "备注",
|
|
422
|
+
align: "center",
|
|
423
|
+
"show-overflow-tooltip": !0,
|
|
424
|
+
prop: `${l(t)}_note`
|
|
425
|
+
}, null, 8, ["prop"])) : w("", !0),
|
|
426
|
+
i(g, {
|
|
427
|
+
label: "创建时间",
|
|
428
|
+
align: "center",
|
|
429
|
+
width: "180"
|
|
430
|
+
}, {
|
|
431
|
+
default: o((a) => [
|
|
432
|
+
G("span", null, oe(l(we)(a.row[`${l(t)}_create_time`]).format("YYYY-MM-DD HH:mm:ss")), 1)
|
|
433
|
+
]),
|
|
434
|
+
_: 1
|
|
435
|
+
}),
|
|
436
|
+
i(g, {
|
|
437
|
+
label: "操作",
|
|
438
|
+
align: "center",
|
|
439
|
+
width: l(k) ? 320 : 160,
|
|
440
|
+
"class-name": "small-padding fixed-width"
|
|
441
|
+
}, {
|
|
442
|
+
default: o((a) => [
|
|
443
|
+
l(k) ? b((d(), c(_, {
|
|
444
|
+
key: 0,
|
|
445
|
+
link: "",
|
|
446
|
+
type: "primary",
|
|
447
|
+
icon: "Plus",
|
|
448
|
+
onClick: ($) => ve(a.row, a.store)
|
|
449
|
+
}, {
|
|
450
|
+
default: o(() => [...e[22] || (e[22] = [
|
|
451
|
+
f("新增下级", -1)
|
|
452
|
+
])]),
|
|
453
|
+
_: 2
|
|
454
|
+
}, 1032, ["onClick"])), [
|
|
455
|
+
[x, ["SysRoleAdd"]]
|
|
456
|
+
]) : w("", !0),
|
|
457
|
+
b((d(), c(_, {
|
|
458
|
+
link: "",
|
|
459
|
+
type: "primary",
|
|
460
|
+
icon: "Setting",
|
|
461
|
+
onClick: ($) => Oe(a.row, a.store)
|
|
462
|
+
}, {
|
|
463
|
+
default: o(() => [...e[23] || (e[23] = [
|
|
464
|
+
f("权限管理", -1)
|
|
465
|
+
])]),
|
|
466
|
+
_: 2
|
|
467
|
+
}, 1032, ["onClick"])), [
|
|
468
|
+
[x, ["SysRoleSetting"]]
|
|
469
|
+
]),
|
|
470
|
+
b((d(), c(_, {
|
|
471
|
+
link: "",
|
|
472
|
+
type: "primary",
|
|
473
|
+
icon: "Edit",
|
|
474
|
+
onClick: ($) => me(a.row)
|
|
475
|
+
}, {
|
|
476
|
+
default: o(() => [...e[24] || (e[24] = [
|
|
477
|
+
f("修改", -1)
|
|
478
|
+
])]),
|
|
479
|
+
_: 2
|
|
480
|
+
}, 1032, ["onClick"])), [
|
|
481
|
+
[x, ["SysRoleEdit"]]
|
|
482
|
+
]),
|
|
483
|
+
b((d(), c(_, {
|
|
484
|
+
link: "",
|
|
485
|
+
type: "primary",
|
|
486
|
+
icon: "Delete",
|
|
487
|
+
onClick: ($) => _e(a.row)
|
|
488
|
+
}, {
|
|
489
|
+
default: o(() => [...e[25] || (e[25] = [
|
|
490
|
+
f("删除", -1)
|
|
491
|
+
])]),
|
|
492
|
+
_: 2
|
|
493
|
+
}, 1032, ["onClick"])), [
|
|
494
|
+
[x, ["SysRoleDelete"]]
|
|
495
|
+
])
|
|
496
|
+
]),
|
|
497
|
+
_: 1
|
|
498
|
+
}, 8, ["width"])
|
|
499
|
+
]),
|
|
500
|
+
_: 1
|
|
501
|
+
}, 8, ["row-key", "data", "tree-props", "lazy"])), [
|
|
502
|
+
[he, l(L)]
|
|
503
|
+
]),
|
|
504
|
+
b(i(Ie, {
|
|
505
|
+
total: l(I),
|
|
506
|
+
page: l(m).pageNo,
|
|
507
|
+
"onUpdate:page": e[3] || (e[3] = (a) => l(m).pageNo = a),
|
|
508
|
+
limit: l(m).pageSize,
|
|
509
|
+
"onUpdate:limit": e[4] || (e[4] = (a) => l(m).pageSize = a),
|
|
510
|
+
onPagination: P
|
|
511
|
+
}, null, 8, ["total", "page", "limit"]), [
|
|
512
|
+
[xe, l(I) > 0 && l(D)]
|
|
513
|
+
]),
|
|
514
|
+
i($e, {
|
|
515
|
+
title: l(W),
|
|
516
|
+
modelValue: l(R),
|
|
517
|
+
"onUpdate:modelValue": e[12] || (e[12] = (a) => F(R) ? R.value = a : null),
|
|
518
|
+
width: "500px",
|
|
519
|
+
"align-center": "",
|
|
520
|
+
"append-to-body": "",
|
|
521
|
+
draggable: ""
|
|
522
|
+
}, {
|
|
523
|
+
footer: o(() => [
|
|
524
|
+
G("div", Ul, [
|
|
525
|
+
i(_, {
|
|
526
|
+
type: "primary",
|
|
527
|
+
onClick: Je
|
|
528
|
+
}, {
|
|
529
|
+
default: o(() => [...e[26] || (e[26] = [
|
|
530
|
+
f("确 定", -1)
|
|
531
|
+
])]),
|
|
532
|
+
_: 1
|
|
533
|
+
}),
|
|
534
|
+
i(_, { onClick: je }, {
|
|
535
|
+
default: o(() => [...e[27] || (e[27] = [
|
|
536
|
+
f("取 消", -1)
|
|
537
|
+
])]),
|
|
538
|
+
_: 1
|
|
539
|
+
})
|
|
540
|
+
])
|
|
541
|
+
]),
|
|
542
|
+
default: o(() => [
|
|
543
|
+
i(be, {
|
|
544
|
+
ref_key: "dataRef",
|
|
545
|
+
ref: Z,
|
|
546
|
+
model: l(p),
|
|
547
|
+
rules: l(de),
|
|
548
|
+
"label-width": "80px"
|
|
549
|
+
}, {
|
|
550
|
+
default: o(() => [
|
|
551
|
+
l(k) ? (d(), c(r, {
|
|
552
|
+
key: 0,
|
|
553
|
+
label: "父级数据",
|
|
554
|
+
prop: `${l(t)}_parentid`
|
|
555
|
+
}, {
|
|
556
|
+
default: o(() => [
|
|
557
|
+
i(We, {
|
|
558
|
+
modelValue: l(p)[`${l(t)}_parentid`],
|
|
559
|
+
"onUpdate:modelValue": e[5] || (e[5] = (a) => l(p)[`${l(t)}_parentid`] = a),
|
|
560
|
+
data: l(Ne),
|
|
561
|
+
props: {
|
|
562
|
+
value: `${l(t)}id`,
|
|
563
|
+
label: `${l(t)}_name`,
|
|
564
|
+
children: "children"
|
|
565
|
+
},
|
|
566
|
+
"value-ey": `${l(t)}id`,
|
|
567
|
+
placeholder: "选择上级数据",
|
|
568
|
+
"check-strictly": ""
|
|
569
|
+
}, null, 8, ["modelValue", "data", "props", "value-ey"])
|
|
570
|
+
]),
|
|
571
|
+
_: 1
|
|
572
|
+
}, 8, ["prop"])) : w("", !0),
|
|
573
|
+
i(r, {
|
|
574
|
+
label: "角色名称",
|
|
575
|
+
prop: `${l(t)}_name`
|
|
576
|
+
}, {
|
|
577
|
+
default: o(() => [
|
|
578
|
+
i(u, {
|
|
579
|
+
modelValue: l(p)[`${l(t)}_name`],
|
|
580
|
+
"onUpdate:modelValue": e[6] || (e[6] = (a) => l(p)[`${l(t)}_name`] = a),
|
|
581
|
+
placeholder: "请输入数据名称"
|
|
582
|
+
}, null, 8, ["modelValue"])
|
|
583
|
+
]),
|
|
584
|
+
_: 1
|
|
585
|
+
}, 8, ["prop"]),
|
|
586
|
+
i(r, {
|
|
587
|
+
label: "角色编号",
|
|
588
|
+
prop: `${l(t)}_no`
|
|
589
|
+
}, {
|
|
590
|
+
default: o(() => [
|
|
591
|
+
i(u, {
|
|
592
|
+
modelValue: l(p)[`${l(t)}_no`],
|
|
593
|
+
"onUpdate:modelValue": e[7] || (e[7] = (a) => l(p)[`${l(t)}_no`] = a),
|
|
594
|
+
placeholder: "请输入数据键值"
|
|
595
|
+
}, null, 8, ["modelValue"])
|
|
596
|
+
]),
|
|
597
|
+
_: 1
|
|
598
|
+
}, 8, ["prop"]),
|
|
599
|
+
i(r, { label: "数据Json" }, {
|
|
600
|
+
default: o(() => [
|
|
601
|
+
i(u, {
|
|
602
|
+
modelValue: l(p)[`${l(t)}_json`],
|
|
603
|
+
"onUpdate:modelValue": e[8] || (e[8] = (a) => l(p)[`${l(t)}_json`] = a),
|
|
604
|
+
placeholder: "请输入其他属性"
|
|
605
|
+
}, null, 8, ["modelValue"])
|
|
606
|
+
]),
|
|
607
|
+
_: 1
|
|
608
|
+
}),
|
|
609
|
+
i(r, { label: "显示排序" }, {
|
|
610
|
+
default: o(() => [
|
|
611
|
+
i(Xe, {
|
|
612
|
+
modelValue: l(p)[`${l(t)}_sort`],
|
|
613
|
+
"onUpdate:modelValue": e[9] || (e[9] = (a) => l(p)[`${l(t)}_sort`] = a),
|
|
614
|
+
"controls-position": "right",
|
|
615
|
+
min: 0
|
|
616
|
+
}, null, 8, ["modelValue"])
|
|
617
|
+
]),
|
|
618
|
+
_: 1
|
|
619
|
+
}),
|
|
620
|
+
i(r, { label: "状态" }, {
|
|
621
|
+
default: o(() => [
|
|
622
|
+
i(el, {
|
|
623
|
+
modelValue: l(p)[`${l(t)}_state`],
|
|
624
|
+
"onUpdate:modelValue": e[10] || (e[10] = (a) => l(p)[`${l(t)}_state`] = a)
|
|
625
|
+
}, {
|
|
626
|
+
default: o(() => [
|
|
627
|
+
(d(!0), M(Y, null, A(l(H), (a) => (d(), c(Ze, {
|
|
628
|
+
key: a.value,
|
|
629
|
+
value: a.value
|
|
630
|
+
}, {
|
|
631
|
+
default: o(() => [
|
|
632
|
+
f(oe(a.label), 1)
|
|
633
|
+
]),
|
|
634
|
+
_: 2
|
|
635
|
+
}, 1032, ["value"]))), 128))
|
|
636
|
+
]),
|
|
637
|
+
_: 1
|
|
638
|
+
}, 8, ["modelValue"])
|
|
639
|
+
]),
|
|
640
|
+
_: 1
|
|
641
|
+
}),
|
|
642
|
+
i(r, { label: "备注" }, {
|
|
643
|
+
default: o(() => [
|
|
644
|
+
i(u, {
|
|
645
|
+
modelValue: l(p)[`${l(t)}_note`],
|
|
646
|
+
"onUpdate:modelValue": e[11] || (e[11] = (a) => l(p)[`${l(t)}_note`] = a),
|
|
647
|
+
type: "textarea",
|
|
648
|
+
placeholder: "请输入内容"
|
|
649
|
+
}, null, 8, ["modelValue"])
|
|
650
|
+
]),
|
|
651
|
+
_: 1
|
|
652
|
+
})
|
|
653
|
+
]),
|
|
654
|
+
_: 1
|
|
655
|
+
}, 8, ["model", "rules"])
|
|
656
|
+
]),
|
|
657
|
+
_: 1
|
|
658
|
+
}, 8, ["title", "modelValue"]),
|
|
659
|
+
i($e, {
|
|
660
|
+
title: l(se),
|
|
661
|
+
modelValue: l(T),
|
|
662
|
+
"onUpdate:modelValue": e[15] || (e[15] = (a) => F(T) ? T.value = a : null),
|
|
663
|
+
width: "800px",
|
|
664
|
+
"append-to-body": "",
|
|
665
|
+
draggable: "",
|
|
666
|
+
"destroy-on-close": !0
|
|
667
|
+
}, {
|
|
668
|
+
footer: o(() => [
|
|
669
|
+
G("div", Ll, [
|
|
670
|
+
i(_, {
|
|
671
|
+
type: "primary",
|
|
672
|
+
onClick: Fe
|
|
673
|
+
}, {
|
|
674
|
+
default: o(() => [...e[28] || (e[28] = [
|
|
675
|
+
f("确 定", -1)
|
|
676
|
+
])]),
|
|
677
|
+
_: 1
|
|
678
|
+
}),
|
|
679
|
+
i(_, {
|
|
680
|
+
onClick: e[14] || (e[14] = (a) => T.value = !1)
|
|
681
|
+
}, {
|
|
682
|
+
default: o(() => [...e[29] || (e[29] = [
|
|
683
|
+
f("取 消", -1)
|
|
684
|
+
])]),
|
|
685
|
+
_: 1
|
|
686
|
+
})
|
|
687
|
+
])
|
|
688
|
+
]),
|
|
689
|
+
default: o(() => [
|
|
690
|
+
i(tl, {
|
|
691
|
+
modelValue: l(N),
|
|
692
|
+
"onUpdate:modelValue": e[13] || (e[13] = (a) => F(N) ? N.value = a : null),
|
|
693
|
+
class: "demo-tabs"
|
|
694
|
+
}, {
|
|
695
|
+
default: o(() => [
|
|
696
|
+
(d(!0), M(Y, null, A(l(X), (a) => (d(), c(ll, {
|
|
697
|
+
key: a.appsid,
|
|
698
|
+
label: a.apps_name,
|
|
699
|
+
name: a.appsid
|
|
700
|
+
}, null, 8, ["label", "name"]))), 128))
|
|
701
|
+
]),
|
|
702
|
+
_: 1
|
|
703
|
+
}, 8, ["modelValue"]),
|
|
704
|
+
b((d(), c(ye, {
|
|
705
|
+
ref_key: "multipleTableRef",
|
|
706
|
+
ref: ee,
|
|
707
|
+
class: "roleselect",
|
|
708
|
+
border: "",
|
|
709
|
+
onSelect: Ye,
|
|
710
|
+
data: l(U),
|
|
711
|
+
"row-key": "menuid",
|
|
712
|
+
"default-expand-all": !0,
|
|
713
|
+
"tree-props": { children: "children", hasChildren: "menu_isexistschild", checkStrictly: !0 }
|
|
714
|
+
}, {
|
|
715
|
+
default: o(() => [
|
|
716
|
+
i(g, {
|
|
717
|
+
type: "selection",
|
|
718
|
+
width: "55",
|
|
719
|
+
align: "center"
|
|
720
|
+
}),
|
|
721
|
+
i(g, {
|
|
722
|
+
prop: "menu_name",
|
|
723
|
+
label: "菜单名称"
|
|
724
|
+
}),
|
|
725
|
+
i(g, {
|
|
726
|
+
prop: "sysRightList",
|
|
727
|
+
align: "center",
|
|
728
|
+
label: "权限"
|
|
729
|
+
}, {
|
|
730
|
+
default: o(({ row: a }) => [
|
|
731
|
+
i(nl, {
|
|
732
|
+
onChange: ($) => Ae($, a),
|
|
733
|
+
modelValue: a.checkList,
|
|
734
|
+
"onUpdate:modelValue": ($) => a.checkList = $
|
|
735
|
+
}, {
|
|
736
|
+
default: o(() => [
|
|
737
|
+
(d(!0), M(Y, null, A(a.sysRightList, ($) => (d(), c(al, {
|
|
738
|
+
label: $.right_name,
|
|
739
|
+
value: $.rightid
|
|
740
|
+
}, null, 8, ["label", "value"]))), 256))
|
|
741
|
+
]),
|
|
742
|
+
_: 2
|
|
743
|
+
}, 1032, ["onChange", "modelValue", "onUpdate:modelValue"])
|
|
744
|
+
]),
|
|
745
|
+
_: 1
|
|
746
|
+
})
|
|
747
|
+
]),
|
|
748
|
+
_: 1
|
|
749
|
+
}, 8, ["data"])), [
|
|
750
|
+
[he, l(L)]
|
|
751
|
+
])
|
|
752
|
+
]),
|
|
753
|
+
_: 1
|
|
754
|
+
}, 8, ["title", "modelValue"])
|
|
755
|
+
]);
|
|
756
|
+
};
|
|
757
|
+
}
|
|
758
|
+
};
|
|
759
|
+
var Tl = /* @__PURE__ */ ol(Nl, [["__scopeId", "data-v-db4f345b"]]);
|
|
760
|
+
export {
|
|
761
|
+
Tl as default
|
|
762
|
+
};
|