mooho-base-admin-plus 2.8.26 → 2.9.0
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/history.md +1 -0
- package/package/mooho-base-admin-plus.min.esm.js +34 -18
- package/package/mooho-base-admin-plus.min.js +3 -3
- package/package/style.css +1 -1
- package/package.json +1 -1
- package/src/layouts/basic-layout/header-user/index.vue +10 -1
- package/src/store/modules/admin/modules/account.js +19 -3
- package/src/store/modules/admin/modules/user.js +2 -0
package/history.md
CHANGED
|
@@ -11548,6 +11548,10 @@ const encrypt = (a) => encryptor.encrypt(a), res$p = "User", userlApi = {
|
|
|
11548
11548
|
}
|
|
11549
11549
|
}, account = {
|
|
11550
11550
|
namespaced: !0,
|
|
11551
|
+
state: {
|
|
11552
|
+
// 弹出密码修改框
|
|
11553
|
+
openPassword: !1
|
|
11554
|
+
},
|
|
11551
11555
|
actions: {
|
|
11552
11556
|
/**
|
|
11553
11557
|
* @description 登录
|
|
@@ -11566,15 +11570,21 @@ const encrypt = (a) => encryptor.encrypt(a), res$p = "User", userlApi = {
|
|
|
11566
11570
|
* @param token {String} 令牌
|
|
11567
11571
|
* @param data {String} 数据
|
|
11568
11572
|
*/
|
|
11569
|
-
async saveLoginData({
|
|
11570
|
-
util$2.cookies.set("uuid",
|
|
11573
|
+
async saveLoginData({ state: a, dispatch: r }, { user: o, token: s, data: l, passwordExpire: u } = {}) {
|
|
11574
|
+
util$2.cookies.set("uuid", o.id), util$2.cookies.set("token", s), await r("admin/user/set", o, { root: !0 }), await r("admin/user/setData", l, { root: !0 }), await r("admin/menu/getMenuList", !0, { root: !0 }), await r("load", { loadOpenedTabs: Setting.page.loadOpenedTabs }), u < 0 && Swal.fire({
|
|
11575
|
+
title: window.$app.$t("Front_Msg_Password_Expire"),
|
|
11576
|
+
icon: "warning",
|
|
11577
|
+
confirmButtonText: window.$app.$t("Front_Btn_OK")
|
|
11578
|
+
}).then(() => {
|
|
11579
|
+
a.openPassword = !0;
|
|
11580
|
+
});
|
|
11571
11581
|
},
|
|
11572
11582
|
/**
|
|
11573
11583
|
* @description 退出登录
|
|
11574
11584
|
* */
|
|
11575
11585
|
logout({ dispatch: a }, { confirm: r = !1 } = {}) {
|
|
11576
11586
|
async function o() {
|
|
11577
|
-
|
|
11587
|
+
await a("admin/user/set", {}, { root: !0 }), util$2.cookies.remove("token"), util$2.cookies.remove("uuid"), router$1.currentRoute.value.path != "/login" && router$1.push("/login?redirect=" + router$1.options.history.location);
|
|
11578
11588
|
}
|
|
11579
11589
|
r ? Swal.fire({
|
|
11580
11590
|
title: window.$app.$t("Front_Msg_Sure_To_Logout"),
|
|
@@ -18430,7 +18440,7 @@ const menu = {
|
|
|
18430
18440
|
*/
|
|
18431
18441
|
set({ state: a, dispatch: r }, o) {
|
|
18432
18442
|
return new Promise(async (s) => {
|
|
18433
|
-
a.info = o, await r(
|
|
18443
|
+
a.info = o, console.log("info", o), await r(
|
|
18434
18444
|
"admin/db/set",
|
|
18435
18445
|
{
|
|
18436
18446
|
dbName: "sys",
|
|
@@ -39802,7 +39812,7 @@ const modalForm = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_rend
|
|
|
39802
39812
|
data() {
|
|
39803
39813
|
return {
|
|
39804
39814
|
opened: !1,
|
|
39805
|
-
|
|
39815
|
+
isFullscreen: !1,
|
|
39806
39816
|
tableView: {},
|
|
39807
39817
|
param: {}
|
|
39808
39818
|
};
|
|
@@ -40202,8 +40212,8 @@ const modalForm = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_rend
|
|
|
40202
40212
|
onCellClick(a, r, o, s) {
|
|
40203
40213
|
this.$emit("on-cell-click", a, r, o, s);
|
|
40204
40214
|
},
|
|
40205
|
-
|
|
40206
|
-
|
|
40215
|
+
setFullscreen(a) {
|
|
40216
|
+
this.$refs.table.isMaxHight = a, this.isFullscreen = a;
|
|
40207
40217
|
}
|
|
40208
40218
|
}
|
|
40209
40219
|
}, _hoisted_1$i = { class: "title" }, _hoisted_2$f = { class: "description" }, _hoisted_3$d = { class: "ivu-ml-8 ivu-mr-8" };
|
|
@@ -40214,7 +40224,7 @@ function _sfc_render$r(a, r, o, s, l, u) {
|
|
|
40214
40224
|
modelValue: l.opened,
|
|
40215
40225
|
"onUpdate:modelValue": r[6] || (r[6] = (p) => l.opened = p),
|
|
40216
40226
|
scrollable: "",
|
|
40217
|
-
fullscreen: l.
|
|
40227
|
+
fullscreen: l.isFullscreen,
|
|
40218
40228
|
"mask-closable": o.maskClosable == null ? a.layout.maskClosable : o.maskClosable,
|
|
40219
40229
|
draggable: o.draggable == null ? a.layout.draggable : o.draggable,
|
|
40220
40230
|
sticky: !0,
|
|
@@ -40237,17 +40247,17 @@ function _sfc_render$r(a, r, o, s, l, u) {
|
|
|
40237
40247
|
onClick: r[3] || (r[3] = withModifiers(() => {
|
|
40238
40248
|
}, ["stop"]))
|
|
40239
40249
|
}, [
|
|
40240
|
-
l.
|
|
40250
|
+
l.isFullscreen ? createCommentVNode("", !0) : (openBlock(), createBlock(c, {
|
|
40241
40251
|
key: 0,
|
|
40242
40252
|
style: { "font-size": "20px", color: "#999", position: "relative", top: "-3px" },
|
|
40243
40253
|
type: "ios-expand",
|
|
40244
|
-
onClick: r[0] || (r[0] = (p) => u.
|
|
40254
|
+
onClick: r[0] || (r[0] = (p) => u.setFullscreen(!0))
|
|
40245
40255
|
})),
|
|
40246
|
-
l.
|
|
40256
|
+
l.isFullscreen ? (openBlock(), createBlock(c, {
|
|
40247
40257
|
key: 1,
|
|
40248
40258
|
style: { "font-size": "20px", color: "#999", position: "relative", top: "-3px" },
|
|
40249
40259
|
type: "ios-contract",
|
|
40250
|
-
onClick: r[1] || (r[1] = (p) => u.
|
|
40260
|
+
onClick: r[1] || (r[1] = (p) => u.setFullscreen(!1))
|
|
40251
40261
|
})) : createCommentVNode("", !0),
|
|
40252
40262
|
createVNode$1(c, {
|
|
40253
40263
|
type: "ios-close",
|
|
@@ -42757,7 +42767,7 @@ const _sfc_main$n = {
|
|
|
42757
42767
|
commandButtons: [],
|
|
42758
42768
|
preview: !1,
|
|
42759
42769
|
imageUrl: null,
|
|
42760
|
-
|
|
42770
|
+
isFullscreen: !1,
|
|
42761
42771
|
isMaxHight: !1,
|
|
42762
42772
|
commandButtonParams: null
|
|
42763
42773
|
};
|
|
@@ -42993,7 +43003,7 @@ const _sfc_main$n = {
|
|
|
42993
43003
|
maxHeight() {
|
|
42994
43004
|
if (this.height == null) {
|
|
42995
43005
|
let a = 1;
|
|
42996
|
-
return Setting.layout.autoFixRatio == !0 && window.screen.width < 1920 && window.screen.width * window.devicePixelRatio <= 1920 && !navigator.userAgent.match(/AppleWebKit.*Mobile.*/) && !navigator.userAgent.match(/.*Android.*/) && (a = 1 / window.devicePixelRatio), this.
|
|
43006
|
+
return Setting.layout.autoFixRatio == !0 && window.screen.width < 1920 && window.screen.width * window.devicePixelRatio <= 1920 && !navigator.userAgent.match(/AppleWebKit.*Mobile.*/) && !navigator.userAgent.match(/.*Android.*/) && (a = 1 / window.devicePixelRatio), this.isFullscreen ? document.body.offsetHeight / a - 100 - this.$refs.filterCommand.offsetHeight / a : this.isMaxHight ? document.body.offsetHeight / a - 120 - this.$refs.filterCommand.offsetHeight / a : document.body.offsetHeight / a - 350;
|
|
42997
43007
|
} else
|
|
42998
43008
|
return this.height;
|
|
42999
43009
|
},
|
|
@@ -43860,7 +43870,7 @@ const _sfc_main$n = {
|
|
|
43860
43870
|
function _sfc_render$n(a, r, o, s, l, u) {
|
|
43861
43871
|
const c = resolveComponent("Divider"), d = resolveComponent("table-filter"), f = resolveComponent("Button"), p = resolveComponent("Icon"), v = resolveComponent("DropdownItem"), g = resolveComponent("DropdownMenu"), y = resolveComponent("Dropdown"), _ = resolveComponent("FormItem"), S = resolveComponent("Col"), b = resolveComponent("Row"), C = resolveComponent("Form"), T = resolveComponent("Tag"), E = resolveComponent("Input"), D = resolveComponent("Option"), A = resolveComponent("Select"), $ = resolveComponent("dialog-select"), N = resolveComponent("DatePicker"), P = resolveComponent("TimePicker"), O = resolveComponent("Checkbox"), M = resolveComponent("Switch"), L = resolveComponent("Radio"), V = resolveComponent("RadioGroup"), U = resolveComponent("CheckboxGroup"), R = resolveComponent("Slider"), W = resolveComponent("Table"), H = resolveComponent("Page"), B = resolveComponent("modal-table"), q = resolveComponent("table-setting"), j = resolveComponent("filter-setting"), ne = resolveComponent("item-select"), de = resolveComponent("modal-form"), he = resolveComponent("Modal");
|
|
43862
43872
|
return openBlock(), createElementBlock("div", {
|
|
43863
|
-
class: normalizeClass({ "full-screen": l.
|
|
43873
|
+
class: normalizeClass({ "full-screen": l.isFullscreen })
|
|
43864
43874
|
}, [
|
|
43865
43875
|
o.title != null ? (openBlock(), createBlock(c, {
|
|
43866
43876
|
key: 0,
|
|
@@ -44014,7 +44024,7 @@ function _sfc_render$n(a, r, o, s, l, u) {
|
|
|
44014
44024
|
title: "全屏",
|
|
44015
44025
|
"custom-icon": "fa fa-expand-arrows-alt",
|
|
44016
44026
|
size: "small",
|
|
44017
|
-
onClick: r[2] || (r[2] = (Z) => l.
|
|
44027
|
+
onClick: r[2] || (r[2] = (Z) => l.isFullscreen = !l.isFullscreen)
|
|
44018
44028
|
})) : createCommentVNode("", !0)
|
|
44019
44029
|
]),
|
|
44020
44030
|
_: 3
|
|
@@ -44655,7 +44665,7 @@ function _sfc_render$n(a, r, o, s, l, u) {
|
|
|
44655
44665
|
], 2)
|
|
44656
44666
|
], 2);
|
|
44657
44667
|
}
|
|
44658
|
-
const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-
|
|
44668
|
+
const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-9d69160a"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
44659
44669
|
__proto__: null,
|
|
44660
44670
|
default: viewTable
|
|
44661
44671
|
}, Symbol.toStringTag, { value: "Module" })), _sfc_main$m = {
|
|
@@ -46366,9 +46376,15 @@ const iHeaderNotice = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_
|
|
|
46366
46376
|
}
|
|
46367
46377
|
};
|
|
46368
46378
|
},
|
|
46379
|
+
watch: {
|
|
46380
|
+
openPassword(a, r) {
|
|
46381
|
+
a == !0 && (this.resetPwdOpen(), this.openPassword = !1);
|
|
46382
|
+
}
|
|
46383
|
+
},
|
|
46369
46384
|
computed: {
|
|
46370
46385
|
...mapState("admin/user", ["info"]),
|
|
46371
|
-
...mapState("admin/layout", ["isMobile", "logoutConfirm"])
|
|
46386
|
+
...mapState("admin/layout", ["isMobile", "logoutConfirm"]),
|
|
46387
|
+
...mapState("admin/account", ["openPassword"])
|
|
46372
46388
|
},
|
|
46373
46389
|
methods: {
|
|
46374
46390
|
...mapActions("admin/account", ["logout"]),
|