@pubinfo/module-rbac 2.0.0-beta.27 → 2.0.0-beta.29
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-CwdV9u0c.js → animation_item.vue_vue_type_script_setup_true_lang-efL_vjfY.js} +303 -303
- package/dist/{cloneDeep-DlhYgmRW.js → cloneDeep-B4Rj61s4.js} +1 -1
- package/dist/components/GroupSelector/index.vue.d.ts +4 -4
- package/dist/components/OrgTree/index.vue.d.ts +1 -1
- package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +4 -4
- package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +4 -4
- package/dist/components/ResourceSelector/index.vue.d.ts +4 -4
- package/dist/composables/useLottie.d.ts +1 -1
- package/dist/{gangweijiekou-CV3_VBHJ.js → gangweijiekou-CV7cIo_W.js} +1 -1
- package/dist/{index-sjcUdYzd.js → index-B6A3qFeU.js} +27 -27
- package/dist/{index-C18K1WpL.js → index-BChMrCkZ.js} +23 -23
- package/dist/{index-ClL_cMSm.js → index-BIUkDwk2.js} +26 -26
- package/dist/{index-BmWUEWpu.js → index-BOEO9CRp.js} +191 -196
- package/dist/{index-Y5TuBpcT.js → index-BgdW__IO.js} +2 -2
- package/dist/{index-mOx8bkh9.js → index-Bi0fucZj.js} +80 -80
- package/dist/{index-CW6W1HIo.js → index-Bj3Ee1l-.js} +3 -3
- package/dist/{index-ChpaG3ZQ.js → index-Bzjxdd-F.js} +7 -7
- package/dist/{index-l8BP3b8K.js → index-CF4XGkrK.js} +5 -5
- package/dist/{index-9u9IWKhc.js → index-CGAa6YPO.js} +16 -16
- package/dist/{index-BnxPrpkn.js → index-CK582XAz.js} +9 -9
- package/dist/{index-CLxuFFEj.js → index-Ce9x4LEV.js} +13 -13
- package/dist/{index-CzUo66L_.js → index-CkVgkVvC.js} +24 -24
- package/dist/{index-MFdCOOEW.js → index-D4uw6wJ9.js} +3 -3
- package/dist/{index-D1jFxfsG.js → index-DFrT08M4.js} +24 -24
- package/dist/{index-CrW31P7w.js → index-Dju21Cnm.js} +2 -2
- package/dist/{index-ATlaXzm9.js → index-Dmg39liA.js} +3 -3
- package/dist/{index-LnUQwTXy.js → index-DvE43Xkt.js} +26 -26
- package/dist/{index-D5LKfALd.js → index-Dx3ZDeWT.js} +42 -42
- package/dist/{index-DX9fHWEY.js → index-MmfEJgmm.js} +18 -18
- package/dist/{index-REH4HEOg.js → index-RBHLCaQ9.js} +28 -28
- package/dist/{index-BAQqP93G.js → index-Y2jyqjVz.js} +7 -7
- package/dist/{index-B8DDuLgv.js → index-b_92Syzh.js} +3 -3
- package/dist/{index-Dnp04_5x.js → index-g5Fyla0r.js} +3 -3
- package/dist/{index-YkF83QOR.js → index-qdAiA-PA.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/interface.d.ts +3 -1
- package/dist/{itemlist-sHSMCsLr.js → itemlist-Og2t8W5R.js} +24 -24
- package/dist/{jiaosejiekou-DvfMUYAa.js → jiaosejiekou-0xZkLzL_.js} +1 -1
- package/dist/{login_history-P_GmktRF.js → login_history-BJWFChQ3.js} +1 -1
- package/dist/{operate_history-CqOswIe4.js → operate_history-C1NKnoB5.js} +1 -1
- package/dist/{pubJiaosezukongzhiqi-DHx7MsUe.js → pubJiaosezukongzhiqi-BlLcThHi.js} +1 -1
- package/dist/routes/index.d.ts +1 -1
- package/dist/routes/modules/authority.manage.menu.d.ts +1 -1
- package/dist/routes/modules/log.manage.menu.d.ts +1 -1
- package/dist/routes/modules/safe.manage.menu.d.ts +1 -1
- package/dist/routes/modules/stylesetting.manage.menu.d.ts +1 -1
- package/dist/routes/modules/system.manage.menu.d.ts +1 -1
- package/dist/{setItem-DkuSrCm8.js → setItem-BRseSui6.js} +1 -1
- package/dist/{shujuquanxianzhubiaokongzhiqi-fpMYehpC.js → shujuquanxianzhubiaokongzhiqi-3CpYi1Zo.js} +1 -1
- package/dist/{useAppAndResource-BH_Fl_gK.js → useAppAndResource-BF7jQTCi.js} +2 -2
- package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +4 -4
- package/dist/views/blackWhiteList/index.vue.d.ts +319 -319
- package/dist/views/breadcrumb_setting/index.vue.d.ts +1 -1
- package/dist/views/components/HCheckList.vue.d.ts +3 -3
- package/dist/views/components/animation_item.vue.d.ts +3 -3
- package/dist/views/components/setItem.vue.d.ts +7 -7
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +26 -26
- package/dist/views/data-permission/index.vue.d.ts +341 -341
- package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +4 -4
- package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +4 -4
- package/dist/views/dictionary/index.vue.d.ts +319 -319
- package/dist/views/dictionary/itemlist.vue.d.ts +319 -319
- package/dist/views/group/components/drawerGroup.vue.d.ts +4 -4
- package/dist/views/group/index.vue.d.ts +319 -319
- package/dist/views/layout_setting/index.vue.d.ts +1 -1
- package/dist/views/log_center/components/browserType.vue.d.ts +3 -3
- package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +4 -4
- package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +4 -4
- package/dist/views/log_center/login_history.vue.d.ts +315 -315
- package/dist/views/log_center/operate_history.vue.d.ts +315 -315
- package/dist/views/menu_setting/index.vue.d.ts +1 -1
- package/dist/views/organization/components/drawerOrganization.vue.d.ts +4 -4
- package/dist/views/organization/components/drawerRole.vue.d.ts +7 -7
- package/dist/views/organization/components/roleSelect.vue.d.ts +4 -4
- package/dist/views/organization/index.vue.d.ts +12 -12
- package/dist/views/other_setting/index.vue.d.ts +1 -1
- package/dist/views/page_animation_setting/index.vue.d.ts +1 -1
- package/dist/views/page_w_setting/index.vue.d.ts +1 -1
- package/dist/views/position/components/drawerPosition.vue.d.ts +4 -4
- package/dist/views/position/index.vue.d.ts +319 -319
- package/dist/views/region/components/drawerRegion.vue.d.ts +4 -4
- package/dist/views/region/index.vue.d.ts +319 -319
- package/dist/views/resource/components/ResourceEdit.vue.d.ts +4 -4
- package/dist/views/resource/components/RoleRelation.vue.d.ts +2 -2
- package/dist/views/resource/index.vue.d.ts +321 -321
- package/dist/views/role/components/ResourceRelation.vue.d.ts +316 -316
- package/dist/views/role/components/drawerRole.vue.d.ts +8 -8
- package/dist/views/role/index.vue.d.ts +640 -640
- package/dist/views/role_group/components/drawerRole.vue.d.ts +7 -7
- package/dist/views/role_group/components/roleSelect.vue.d.ts +4 -4
- package/dist/views/role_group/index.vue.d.ts +322 -322
- package/dist/views/safe_setting/index.vue.d.ts +1 -1
- package/dist/views/tabbar_setting/index.vue.d.ts +1 -1
- package/dist/views/tenant/components/TenantEdit.vue.d.ts +8 -8
- package/dist/views/tenant/index.vue.d.ts +323 -323
- package/dist/views/theme_setting/index.vue.d.ts +1 -1
- package/dist/views/toolbar_setting/index.vue.d.ts +1 -1
- package/dist/views/user/components/OrgAndPosition.vue.d.ts +3 -3
- package/dist/views/user/components/UserAuthorization.vue.d.ts +7 -7
- package/dist/views/user/components/UserEdit.vue.d.ts +4 -4
- package/dist/views/user/components/roleSelect.vue.d.ts +4 -4
- package/dist/views/user/index.vue.d.ts +326 -326
- package/dist/views/watermark_setting/index.vue.d.ts +5 -5
- package/dist/{xitongpeizhifuwu-B3Lw-Lq9.js → xitongpeizhifuwu-BIR2CVXp.js} +1 -1
- package/dist/{zidianfuwu-BbhoWOZI.js → zidianfuwu-B137v_q7.js} +1 -1
- package/dist/{ziyuanjiekou-CypA4O57.js → ziyuanjiekou-j9nd-oaF.js} +1 -1
- package/dist/{zuzhijiaosebiaokongzhiqi-DhdCTnmx.js → zuzhijiaosebiaokongzhiqi-DPbRg7Qd.js} +1 -1
- package/package.json +11 -11
- package/src/index.ts +6 -12
- package/src/interface.ts +3 -0
- package/src/routes/index.ts +1 -1
|
@@ -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 "./index-
|
|
4
|
-
import { a as y } from "./xitongpeizhifuwu-
|
|
3
|
+
import "./index-BOEO9CRp.js";
|
|
4
|
+
import { a as y } from "./xitongpeizhifuwu-BIR2CVXp.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 = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Drawer as
|
|
1
|
+
import { Drawer as $e, Form as be, FormItem as De, Input as ye, RangePicker as xe, Switch as Me, Button as he, Tooltip as Te, Space as _e } from "ant-design-vue/es";
|
|
2
2
|
import { useAuth as we, PubinfoIcon as Se } from "pubinfo";
|
|
3
3
|
import { PlusCircleOutlined as ke } from "@ant-design/icons-vue";
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { i as ne, u as de } from "./index-
|
|
4
|
+
import { defineComponent as ge, reactive as Ie, ref as J, computed as Ce, onMounted as Oe, createBlock as oe, openBlock as W, unref as d, isRef as Ee, withCtx as b, createVNode as p, createTextVNode as te, createElementVNode as ue, toDisplayString as Z, createElementBlock as G, Fragment as ce, renderList as Re, resolveDirective as Ye, createCommentVNode as Pe, withDirectives as le } from "vue";
|
|
5
|
+
import { i as ne, u as de } from "./index-BOEO9CRp.js";
|
|
6
6
|
import { ProTable as Ae } from "@pubinfo/pro-components";
|
|
7
|
-
import { message as
|
|
7
|
+
import { message as ve, Badge as fe, Modal as Ue } from "ant-design-vue";
|
|
8
8
|
import { g as je } from "./_commonjsHelpers-C6fGbg64.js";
|
|
9
|
-
import { _ as We } from "./index-
|
|
10
|
-
import { h as Fe } from "./ziyuanjiekou-
|
|
11
|
-
import { c as pe } from "./cloneDeep-
|
|
9
|
+
import { _ as We } from "./index-BChMrCkZ.js";
|
|
10
|
+
import { h as Fe } from "./ziyuanjiekou-j9nd-oaF.js";
|
|
11
|
+
import { c as pe } from "./cloneDeep-B4Rj61s4.js";
|
|
12
12
|
function Le(D, A) {
|
|
13
13
|
return ne.Post("/rbac/tenant/pubTenantAdd", D, {
|
|
14
14
|
headers: {
|
|
@@ -52,7 +52,7 @@ function ze() {
|
|
|
52
52
|
(function(L, U) {
|
|
53
53
|
D.exports = U();
|
|
54
54
|
})(Ne, function() {
|
|
55
|
-
var L = 1e3, U = 6e4, V = 36e5, M = "millisecond", R = "second", Y = "minute", C = "hour", u = "day", y = "week",
|
|
55
|
+
var L = 1e3, U = 6e4, V = 36e5, M = "millisecond", R = "second", Y = "minute", C = "hour", u = "day", y = "week", $ = "month", w = "quarter", g = "year", O = "date", S = "Invalid Date", j = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, F = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, Q = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(s) {
|
|
56
56
|
var r = ["th", "st", "nd", "rd"], e = s % 100;
|
|
57
57
|
return "[" + s + (r[(e - 20) % 10] || r[e] || r[0]) + "]";
|
|
58
58
|
} }, K = function(s, r, e) {
|
|
@@ -63,17 +63,17 @@ function ze() {
|
|
|
63
63
|
return (r <= 0 ? "+" : "-") + K(n, 2, "0") + ":" + K(t, 2, "0");
|
|
64
64
|
}, m: function s(r, e) {
|
|
65
65
|
if (r.date() < e.date()) return -s(e, r);
|
|
66
|
-
var n = 12 * (e.year() - r.year()) + (e.month() - r.month()), t = r.clone().add(n,
|
|
66
|
+
var n = 12 * (e.year() - r.year()) + (e.month() - r.month()), t = r.clone().add(n, $), i = e - t < 0, o = r.clone().add(n + (i ? -1 : 1), $);
|
|
67
67
|
return +(-(n + (e - t) / (i ? t - o : o - t)) || 0);
|
|
68
68
|
}, a: function(s) {
|
|
69
69
|
return s < 0 ? Math.ceil(s) || 0 : Math.floor(s);
|
|
70
70
|
}, p: function(s) {
|
|
71
|
-
return { M:
|
|
71
|
+
return { M: $, y: g, w: y, d: u, D: O, h: C, m: Y, s: R, ms: M, Q: w }[s] || String(s || "").toLowerCase().replace(/s$/, "");
|
|
72
72
|
}, u: function(s) {
|
|
73
73
|
return s === void 0;
|
|
74
74
|
} }, h = "en", a = {};
|
|
75
75
|
a[h] = Q;
|
|
76
|
-
var c = "$isDayjsObject",
|
|
76
|
+
var c = "$isDayjsObject", v = function(s) {
|
|
77
77
|
return s instanceof N || !(!s || !s[c]);
|
|
78
78
|
}, E = function s(r, e, n) {
|
|
79
79
|
var t;
|
|
@@ -89,11 +89,11 @@ function ze() {
|
|
|
89
89
|
}
|
|
90
90
|
return !n && t && (h = t), t || !n && h;
|
|
91
91
|
}, m = function(s, r) {
|
|
92
|
-
if (
|
|
92
|
+
if (v(s)) return s.clone();
|
|
93
93
|
var e = typeof r == "object" ? r : {};
|
|
94
94
|
return e.date = s, e.args = arguments, new N(e);
|
|
95
95
|
}, l = re;
|
|
96
|
-
l.l = E, l.i =
|
|
96
|
+
l.l = E, l.i = v, l.w = function(s, r) {
|
|
97
97
|
return m(s, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
|
|
98
98
|
};
|
|
99
99
|
var N = function() {
|
|
@@ -110,8 +110,8 @@ function ze() {
|
|
|
110
110
|
if (typeof t == "string" && !/Z$/i.test(t)) {
|
|
111
111
|
var o = t.match(j);
|
|
112
112
|
if (o) {
|
|
113
|
-
var f = o[2] - 1 || 0,
|
|
114
|
-
return i ? new Date(Date.UTC(o[1], f, o[3] || 1, o[4] || 0, o[5] || 0, o[6] || 0,
|
|
113
|
+
var f = o[2] - 1 || 0, _ = (o[7] || "0").substring(0, 3);
|
|
114
|
+
return i ? new Date(Date.UTC(o[1], f, o[3] || 1, o[4] || 0, o[5] || 0, o[6] || 0, _)) : new Date(o[1], f, o[3] || 1, o[4] || 0, o[5] || 0, o[6] || 0, _);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
return new Date(t);
|
|
@@ -140,37 +140,37 @@ function ze() {
|
|
|
140
140
|
var t = this, i = !!l.u(n) || n, o = l.p(e), f = function(B, k) {
|
|
141
141
|
var H = l.w(t.$u ? Date.UTC(t.$y, k, B) : new Date(t.$y, k, B), t);
|
|
142
142
|
return i ? H : H.endOf(u);
|
|
143
|
-
},
|
|
143
|
+
}, _ = function(B, k) {
|
|
144
144
|
return l.w(t.toDate()[B].apply(t.toDate("s"), (i ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(k)), t);
|
|
145
145
|
}, x = this.$W, T = this.$M, P = this.$D, z = "set" + (this.$u ? "UTC" : "");
|
|
146
146
|
switch (o) {
|
|
147
|
-
case
|
|
147
|
+
case g:
|
|
148
148
|
return i ? f(1, 0) : f(31, 11);
|
|
149
|
-
case
|
|
149
|
+
case $:
|
|
150
150
|
return i ? f(1, T) : f(0, T + 1);
|
|
151
151
|
case y:
|
|
152
152
|
var q = this.$locale().weekStart || 0, X = (x < q ? x + 7 : x) - q;
|
|
153
153
|
return f(i ? P - X : P + (6 - X), T);
|
|
154
154
|
case u:
|
|
155
155
|
case O:
|
|
156
|
-
return
|
|
156
|
+
return _(z + "Hours", 0);
|
|
157
157
|
case C:
|
|
158
|
-
return
|
|
158
|
+
return _(z + "Minutes", 1);
|
|
159
159
|
case Y:
|
|
160
|
-
return
|
|
160
|
+
return _(z + "Seconds", 2);
|
|
161
161
|
case R:
|
|
162
|
-
return
|
|
162
|
+
return _(z + "Milliseconds", 3);
|
|
163
163
|
default:
|
|
164
164
|
return this.clone();
|
|
165
165
|
}
|
|
166
166
|
}, r.endOf = function(e) {
|
|
167
167
|
return this.startOf(e, !1);
|
|
168
168
|
}, r.$set = function(e, n) {
|
|
169
|
-
var t, i = l.p(e), o = "set" + (this.$u ? "UTC" : ""), f = (t = {}, t[u] = o + "Date", t[O] = o + "Date", t[
|
|
170
|
-
if (i ===
|
|
169
|
+
var t, i = l.p(e), o = "set" + (this.$u ? "UTC" : ""), f = (t = {}, t[u] = o + "Date", t[O] = o + "Date", t[$] = o + "Month", t[g] = o + "FullYear", t[C] = o + "Hours", t[Y] = o + "Minutes", t[R] = o + "Seconds", t[M] = o + "Milliseconds", t)[i], _ = i === u ? this.$D + (n - this.$W) : n;
|
|
170
|
+
if (i === $ || i === g) {
|
|
171
171
|
var x = this.clone().set(O, 1);
|
|
172
|
-
x.$d[f](
|
|
173
|
-
} else f && this.$d[f](
|
|
172
|
+
x.$d[f](_), x.init(), this.$d = x.set(O, Math.min(this.$D, x.daysInMonth())).$d;
|
|
173
|
+
} else f && this.$d[f](_);
|
|
174
174
|
return this.init(), this;
|
|
175
175
|
}, r.set = function(e, n) {
|
|
176
176
|
return this.clone().$set(e, n);
|
|
@@ -183,18 +183,18 @@ function ze() {
|
|
|
183
183
|
var P = m(i);
|
|
184
184
|
return l.w(P.date(P.date() + Math.round(T * e)), i);
|
|
185
185
|
};
|
|
186
|
-
if (o ===
|
|
187
|
-
if (o ===
|
|
186
|
+
if (o === $) return this.set($, this.$M + e);
|
|
187
|
+
if (o === g) return this.set(g, this.$y + e);
|
|
188
188
|
if (o === u) return f(1);
|
|
189
189
|
if (o === y) return f(7);
|
|
190
|
-
var
|
|
190
|
+
var _ = (t = {}, t[Y] = U, t[C] = V, t[R] = L, t)[o] || 1, x = this.$d.getTime() + e * _;
|
|
191
191
|
return l.w(x, this);
|
|
192
192
|
}, r.subtract = function(e, n) {
|
|
193
193
|
return this.add(-1 * e, n);
|
|
194
194
|
}, r.format = function(e) {
|
|
195
195
|
var n = this, t = this.$locale();
|
|
196
196
|
if (!this.isValid()) return t.invalidDate || S;
|
|
197
|
-
var i = e || "YYYY-MM-DDTHH:mm:ssZ", o = l.z(this), f = this.$H,
|
|
197
|
+
var i = e || "YYYY-MM-DDTHH:mm:ssZ", o = l.z(this), f = this.$H, _ = this.$m, x = this.$M, T = t.weekdays, P = t.months, z = t.meridiem, q = function(k, H, ee, se) {
|
|
198
198
|
return k && (k[H] || k(n, i)) || ee[H].slice(0, se);
|
|
199
199
|
}, X = function(k) {
|
|
200
200
|
return l.s(f % 12 || 12, k, "0");
|
|
@@ -238,13 +238,13 @@ function ze() {
|
|
|
238
238
|
case "hh":
|
|
239
239
|
return X(2);
|
|
240
240
|
case "a":
|
|
241
|
-
return B(f,
|
|
241
|
+
return B(f, _, !0);
|
|
242
242
|
case "A":
|
|
243
|
-
return B(f,
|
|
243
|
+
return B(f, _, !1);
|
|
244
244
|
case "m":
|
|
245
|
-
return String(
|
|
245
|
+
return String(_);
|
|
246
246
|
case "mm":
|
|
247
|
-
return l.s(
|
|
247
|
+
return l.s(_, 2, "0");
|
|
248
248
|
case "s":
|
|
249
249
|
return String(n.$s);
|
|
250
250
|
case "ss":
|
|
@@ -260,14 +260,14 @@ function ze() {
|
|
|
260
260
|
}, r.utcOffset = function() {
|
|
261
261
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
262
262
|
}, r.diff = function(e, n, t) {
|
|
263
|
-
var i, o = this, f = l.p(n),
|
|
264
|
-
return l.m(o,
|
|
263
|
+
var i, o = this, f = l.p(n), _ = m(e), x = (_.utcOffset() - this.utcOffset()) * U, T = this - _, P = function() {
|
|
264
|
+
return l.m(o, _);
|
|
265
265
|
};
|
|
266
266
|
switch (f) {
|
|
267
|
-
case
|
|
267
|
+
case g:
|
|
268
268
|
i = P() / 12;
|
|
269
269
|
break;
|
|
270
|
-
case
|
|
270
|
+
case $:
|
|
271
271
|
i = P();
|
|
272
272
|
break;
|
|
273
273
|
case w:
|
|
@@ -293,7 +293,7 @@ function ze() {
|
|
|
293
293
|
}
|
|
294
294
|
return t ? i : l.a(i);
|
|
295
295
|
}, r.daysInMonth = function() {
|
|
296
|
-
return this.endOf(
|
|
296
|
+
return this.endOf($).$D;
|
|
297
297
|
}, r.$locale = function() {
|
|
298
298
|
return a[this.$L];
|
|
299
299
|
}, r.locale = function(e, n) {
|
|
@@ -312,13 +312,13 @@ function ze() {
|
|
|
312
312
|
return this.$d.toUTCString();
|
|
313
313
|
}, s;
|
|
314
314
|
}(), ae = N.prototype;
|
|
315
|
-
return m.prototype = ae, [["$ms", M], ["$s", R], ["$m", Y], ["$H", C], ["$W", u], ["$M",
|
|
315
|
+
return m.prototype = ae, [["$ms", M], ["$s", R], ["$m", Y], ["$H", C], ["$W", u], ["$M", $], ["$y", g], ["$D", O]].forEach(function(s) {
|
|
316
316
|
ae[s[1]] = function(r) {
|
|
317
317
|
return this.$g(r, s[0], s[1]);
|
|
318
318
|
};
|
|
319
319
|
}), m.extend = function(s, r) {
|
|
320
320
|
return s.$i || (s(r, N, m), s.$i = !0), m;
|
|
321
|
-
}, m.locale = E, m.isDayjs =
|
|
321
|
+
}, m.locale = E, m.isDayjs = v, m.unix = function(s) {
|
|
322
322
|
return m(1e3 * s);
|
|
323
323
|
}, m.en = a[h], m.Ls = a, m.p = {}, m;
|
|
324
324
|
});
|
|
@@ -330,7 +330,7 @@ var I = /* @__PURE__ */ ((D) => (D.ADD = "新增", D.EDIT = "修改", D.REMOVE =
|
|
|
330
330
|
const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, Ke = {
|
|
331
331
|
key: 1,
|
|
332
332
|
class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
|
|
333
|
-
}, Xe = /* @__PURE__ */
|
|
333
|
+
}, Xe = /* @__PURE__ */ ge({
|
|
334
334
|
name: "TenantEdit",
|
|
335
335
|
__name: "TenantEdit",
|
|
336
336
|
emits: ["submit"],
|
|
@@ -362,40 +362,40 @@ const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#
|
|
|
362
362
|
if (M.title = h, u.value = pe(M.initData), h === I.EDIT) {
|
|
363
363
|
const c = await Ve({ id: a.id });
|
|
364
364
|
if (c.success) {
|
|
365
|
-
const { tenantStartTime:
|
|
365
|
+
const { tenantStartTime: v, tenantEndTime: E, ...m } = (c == null ? void 0 : c.data) ?? {};
|
|
366
366
|
u.value = {
|
|
367
367
|
...m,
|
|
368
|
-
tenantTime: [
|
|
368
|
+
tenantTime: [v, E]
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
Y(!0);
|
|
373
373
|
}
|
|
374
|
-
const [
|
|
375
|
-
function
|
|
374
|
+
const [$, w] = de(!1);
|
|
375
|
+
function g() {
|
|
376
376
|
var a;
|
|
377
377
|
const h = M.title === I.EDIT ? Be : Le;
|
|
378
378
|
(a = C.value) == null || a.validate().then(() => {
|
|
379
|
-
const { tenantTime: c, resourceIds:
|
|
379
|
+
const { tenantTime: c, resourceIds: v = [], ...E } = u.value, m = {
|
|
380
380
|
...E,
|
|
381
381
|
tenantStartTime: c == null ? void 0 : c[0],
|
|
382
382
|
tenantEndTime: c == null ? void 0 : c[1],
|
|
383
|
-
pubTenantResourcelist:
|
|
383
|
+
pubTenantResourcelist: v.map((l) => ({ resourceId: l }))
|
|
384
384
|
};
|
|
385
385
|
w(!0), h(m).then((l) => {
|
|
386
|
-
l.success && (
|
|
386
|
+
l.success && (ve.success(`${M.title}成功!`), Y(!1), U("submit"));
|
|
387
387
|
}).finally(() => w(!1));
|
|
388
388
|
});
|
|
389
389
|
}
|
|
390
390
|
const O = J(), S = J([]), j = Ce(() => {
|
|
391
391
|
var h;
|
|
392
392
|
return ((h = u.value.resourceIds) == null ? void 0 : h.map((a) => {
|
|
393
|
-
const c = re(S.value).find((
|
|
393
|
+
const c = re(S.value).find((v) => v.id === a);
|
|
394
394
|
return { name: (c == null ? void 0 : c.name) ?? "" };
|
|
395
395
|
})) ?? [];
|
|
396
396
|
});
|
|
397
397
|
function F() {
|
|
398
|
-
const h = u.value.resourceIds ?? [], a = S.value, c = re(a).reduce((
|
|
398
|
+
const h = u.value.resourceIds ?? [], a = S.value, c = re(a).reduce((v, E) => (v[E.id] = E.name, v), {});
|
|
399
399
|
O.value.open(h, a, c);
|
|
400
400
|
}
|
|
401
401
|
function Q(h = []) {
|
|
@@ -417,7 +417,7 @@ const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#
|
|
|
417
417
|
}), A({
|
|
418
418
|
open: y
|
|
419
419
|
}), (h, a) => {
|
|
420
|
-
const c = ye,
|
|
420
|
+
const c = ye, v = De, E = xe, m = Me, l = he, N = We, ae = Te, s = be, r = _e, e = $e;
|
|
421
421
|
return W(), oe(e, {
|
|
422
422
|
open: d(R),
|
|
423
423
|
"onUpdate:open": a[9] || (a[9] = (n) => Ee(R) ? R.value = n : null),
|
|
@@ -436,19 +436,19 @@ const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#
|
|
|
436
436
|
default: b(() => a[11] || (a[11] = [
|
|
437
437
|
te(" 取消 ")
|
|
438
438
|
])),
|
|
439
|
-
_: 1
|
|
440
|
-
|
|
439
|
+
_: 1,
|
|
440
|
+
__: [11]
|
|
441
441
|
}),
|
|
442
442
|
p(l, {
|
|
443
443
|
type: "primary",
|
|
444
|
-
loading: d(
|
|
445
|
-
onClick: a[8] || (a[8] = (n) =>
|
|
444
|
+
loading: d($),
|
|
445
|
+
onClick: a[8] || (a[8] = (n) => g())
|
|
446
446
|
}, {
|
|
447
447
|
default: b(() => a[12] || (a[12] = [
|
|
448
448
|
te(" 提交 ")
|
|
449
449
|
])),
|
|
450
|
-
_: 1
|
|
451
|
-
|
|
450
|
+
_: 1,
|
|
451
|
+
__: [12]
|
|
452
452
|
}, 8, ["loading"])
|
|
453
453
|
]),
|
|
454
454
|
_: 1
|
|
@@ -464,7 +464,7 @@ const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#
|
|
|
464
464
|
"label-col": { span: 6 }
|
|
465
465
|
}, {
|
|
466
466
|
default: b(() => [
|
|
467
|
-
p(
|
|
467
|
+
p(v, {
|
|
468
468
|
label: "租户名称",
|
|
469
469
|
name: "name"
|
|
470
470
|
}, {
|
|
@@ -479,7 +479,7 @@ const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#
|
|
|
479
479
|
_: 1
|
|
480
480
|
/* STABLE */
|
|
481
481
|
}),
|
|
482
|
-
p(
|
|
482
|
+
p(v, {
|
|
483
483
|
label: "租户编码",
|
|
484
484
|
name: "tenantCode"
|
|
485
485
|
}, {
|
|
@@ -495,7 +495,7 @@ const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#
|
|
|
495
495
|
_: 1
|
|
496
496
|
/* STABLE */
|
|
497
497
|
}),
|
|
498
|
-
p(
|
|
498
|
+
p(v, {
|
|
499
499
|
label: "开始至到期时间",
|
|
500
500
|
name: "tenantTime"
|
|
501
501
|
}, {
|
|
@@ -510,7 +510,7 @@ const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#
|
|
|
510
510
|
_: 1
|
|
511
511
|
/* STABLE */
|
|
512
512
|
}),
|
|
513
|
-
p(
|
|
513
|
+
p(v, {
|
|
514
514
|
label: "二级域名",
|
|
515
515
|
name: "subDomain"
|
|
516
516
|
}, {
|
|
@@ -525,7 +525,7 @@ const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#
|
|
|
525
525
|
_: 1
|
|
526
526
|
/* STABLE */
|
|
527
527
|
}),
|
|
528
|
-
p(
|
|
528
|
+
p(v, {
|
|
529
529
|
label: "租户管理员",
|
|
530
530
|
name: "pubUserAdmin"
|
|
531
531
|
}, {
|
|
@@ -541,7 +541,7 @@ const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#
|
|
|
541
541
|
_: 1
|
|
542
542
|
/* STABLE */
|
|
543
543
|
}),
|
|
544
|
-
p(
|
|
544
|
+
p(v, { label: "是否启用" }, {
|
|
545
545
|
default: b(() => [
|
|
546
546
|
p(m, {
|
|
547
547
|
checked: d(u).enable,
|
|
@@ -551,7 +551,7 @@ const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#
|
|
|
551
551
|
_: 1
|
|
552
552
|
/* STABLE */
|
|
553
553
|
}),
|
|
554
|
-
p(
|
|
554
|
+
p(v, {
|
|
555
555
|
label: "所属资源",
|
|
556
556
|
name: "resourceIds"
|
|
557
557
|
}, {
|
|
@@ -565,8 +565,8 @@ const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#
|
|
|
565
565
|
default: b(() => a[10] || (a[10] = [
|
|
566
566
|
te(" 选择资源 ")
|
|
567
567
|
])),
|
|
568
|
-
_: 1
|
|
569
|
-
|
|
568
|
+
_: 1,
|
|
569
|
+
__: [10]
|
|
570
570
|
}),
|
|
571
571
|
te(
|
|
572
572
|
" (已选" + Z(((n = d(u).resourceIds) == null ? void 0 : n.length) ?? 0) + "条数据) ",
|
|
@@ -652,7 +652,7 @@ const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#
|
|
|
652
652
|
class: "ml-4px"
|
|
653
653
|
}, rt = ["onClick"], at = {
|
|
654
654
|
class: "ml-4px"
|
|
655
|
-
},
|
|
655
|
+
}, _t = /* @__PURE__ */ ge({
|
|
656
656
|
name: "Tenant",
|
|
657
657
|
__name: "index",
|
|
658
658
|
setup(D) {
|
|
@@ -669,17 +669,17 @@ const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#
|
|
|
669
669
|
var j, F;
|
|
670
670
|
const {
|
|
671
671
|
current: y,
|
|
672
|
-
pageSize:
|
|
672
|
+
pageSize: $,
|
|
673
673
|
tenantStartTime: w,
|
|
674
|
-
tenantEndTime:
|
|
674
|
+
tenantEndTime: g,
|
|
675
675
|
...O
|
|
676
676
|
} = u, S = await qe({
|
|
677
677
|
currentPage: y,
|
|
678
|
-
pageSize:
|
|
678
|
+
pageSize: $,
|
|
679
679
|
tenantStartTime: M(w == null ? void 0 : w[0]),
|
|
680
680
|
tenantStartTimeEnd: M(w == null ? void 0 : w[1]),
|
|
681
|
-
tenantEndTimeStart: M(
|
|
682
|
-
tenantEndTimeEnd: M(
|
|
681
|
+
tenantEndTimeStart: M(g == null ? void 0 : g[0]),
|
|
682
|
+
tenantEndTimeEnd: M(g == null ? void 0 : g[1]),
|
|
683
683
|
...O
|
|
684
684
|
});
|
|
685
685
|
return {
|
|
@@ -771,8 +771,8 @@ const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#
|
|
|
771
771
|
onOk() {
|
|
772
772
|
He({
|
|
773
773
|
id: y == null ? void 0 : y.id
|
|
774
|
-
}).then((
|
|
775
|
-
|
|
774
|
+
}).then(($) => {
|
|
775
|
+
$.success && (ve.success("删除成功"), V());
|
|
776
776
|
});
|
|
777
777
|
}
|
|
778
778
|
});
|
|
@@ -780,7 +780,7 @@ const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#
|
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
782
|
return (u, y) => {
|
|
783
|
-
const
|
|
783
|
+
const $ = ke, w = he, g = Se, O = _e, S = Ye("auth");
|
|
784
784
|
return W(), G("div", et, [p(
|
|
785
785
|
d(Ae),
|
|
786
786
|
{
|
|
@@ -799,7 +799,7 @@ const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#
|
|
|
799
799
|
type: "primary",
|
|
800
800
|
onClick: y[0] || (y[0] = (j) => C(d(I).ADD))
|
|
801
801
|
}, {
|
|
802
|
-
default: b(() => [p(
|
|
802
|
+
default: b(() => [p($), te(
|
|
803
803
|
" " + Z(d(I).ADD),
|
|
804
804
|
1
|
|
805
805
|
/* TEXT */
|
|
@@ -819,7 +819,7 @@ const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#
|
|
|
819
819
|
default: b(() => [le((W(), G("a", {
|
|
820
820
|
class: "flex items-center",
|
|
821
821
|
onClick: (Q) => C(d(I).EDIT, F)
|
|
822
|
-
}, [p(
|
|
822
|
+
}, [p(g, {
|
|
823
823
|
name: "edit",
|
|
824
824
|
class: "text-base"
|
|
825
825
|
}), ue(
|
|
@@ -831,7 +831,7 @@ const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#
|
|
|
831
831
|
)], 8, tt)), [[S, "tenant_edit"]]), le((W(), G("span", {
|
|
832
832
|
class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
|
|
833
833
|
onClick: (Q) => C(d(I).REMOVE, F)
|
|
834
|
-
}, [p(
|
|
834
|
+
}, [p(g, {
|
|
835
835
|
name: "remove",
|
|
836
836
|
class: "text-base"
|
|
837
837
|
}), ue(
|
|
@@ -867,5 +867,5 @@ const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#
|
|
|
867
867
|
}
|
|
868
868
|
});
|
|
869
869
|
export {
|
|
870
|
-
|
|
870
|
+
_t as default
|
|
871
871
|
};
|