UNPKG

quick-admin-vue3-core

Version:

以快(计算机执行效率、开发效率)为核心的后台管理系统开发模板

68 lines (67 loc) 2.25 kB
import { defineComponent as d, reactive as f, resolveComponent as n, createElementBlock as y, openBlock as c, createVNode as r, createElementVNode as o, unref as v, isRef as _, withCtx as g, createTextVNode as b } from "vue"; import { u as x } from "./index-KDj-4JiF.js"; import { P as V, b7 as B } from "./platform-DsTwHxm6.js"; const C = { class: "q-page-view" }, P = /* @__PURE__ */ d({ name: "DemoCenterPermissionsPage", __name: "index", setup(k) { const a = x(), { role: s } = V() ?? {}; let t = f({ route_type: "auto", role_type: s }); const i = [ { prop: "route_type", label: "当前路由类型", type: "radio-group", attrs: { options: [ { label: "静态路由", value: "static" }, { label: "自动路由", value: "auto" }, { label: "动态路由", value: "dynamic" } ] } }, { prop: "role_type", label: "当前角色类型", type: "radio-group", attrs: { options: "D_RoleType" } } ]; function p() { B.confirm("确定退出重新登录吗?", { type: "warning" }).then(() => a.handleLoginOut()).catch(() => { }); } return (w, e) => { const u = n("BaseForm"), m = n("el-button"); return c(), y("div", C, [ r(u, { modelValue: v(t), "onUpdate:modelValue": e[0] || (e[0] = (l) => _(t) ? t.value = l : t = l), fields: i, disabled: "", footer: !1, style: { height: "auto" } }, null, 8, ["modelValue"]), o("div", null, [ r(m, { type: "primary", onClick: p }, { default: g(() => e[1] || (e[1] = [ b("立即切换账号登录") ])), _: 1 }) ]), e[2] || (e[2] = o("div", { class: "mt-t" }, "注:", -1)), e[3] || (e[3] = o("div", { class: "mt-h" }, "1. 退出到登录页后,点击账号,可选择不用角色类型的用户。", -1)), e[4] || (e[4] = o("div", { class: "mt-h" }, "2. 重新登录成功后,注意观察左侧菜单变化", -1)) ]); }; } }); export { P as default };