@okiss/oms 0.0.2 → 0.0.5
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/index.es.js +306 -386
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/{src/App.vue.d.ts → App.d.ts} +3 -4
- package/dist/types/admin.d.ts +11 -0
- package/dist/types/components/PageLoad.d.ts +29 -0
- package/dist/types/components/RightMenu.d.ts +43 -0
- package/dist/types/components/VLoading.d.ts +0 -0
- package/dist/types/{src/components/VTree.vue.d.ts → components/VTree.d.ts} +38 -9
- package/dist/types/components/report/NumberPanel.d.ts +14 -0
- package/dist/types/{src/components → components}/report/option.d.ts +0 -0
- package/dist/types/components/report/part.d.ts +66 -0
- package/dist/types/{src/default.d.ts → default.d.ts} +2 -2
- package/dist/types/{src/directive → directive}/devtool.d.ts +1 -1
- package/dist/types/{src/directive → directive}/index.d.ts +0 -0
- package/dist/types/{src/directive → directive}/outClick.d.ts +1 -1
- package/dist/types/{src/directive → directive}/resize.d.ts +1 -1
- package/dist/types/{src/directive → directive}/rightClick.d.ts +1 -1
- package/dist/types/{src/index.d.ts → index.d.ts} +3 -5
- package/dist/types/{src/init.d.ts → init.d.ts} +0 -0
- package/dist/types/{src/mock → mock}/apis/index.d.ts +1 -1
- package/dist/types/{src/mock → mock}/apis/user.d.ts +1 -1
- package/dist/types/{src/mock → mock}/data/example.d.ts +0 -0
- package/dist/types/{src/mock → mock}/data/menu.d.ts +0 -0
- package/dist/types/{src/mock → mock}/data/role.d.ts +0 -0
- package/dist/types/{src/mock → mock}/index.d.ts +1 -1
- package/dist/types/{src/mock → mock}/types.d.ts +0 -0
- package/dist/types/plugins/element-plus.d.ts +6 -0
- package/dist/types/plugins/eventBus.d.ts +5 -0
- package/dist/types/{src/router → router}/guard/func.d.ts +0 -0
- package/dist/types/{src/router → router}/guard/index.d.ts +1 -1
- package/dist/types/router/guard/nprogress.d.ts +3 -0
- package/dist/types/{src/router → router}/guard/permission.d.ts +1 -1
- package/dist/types/{src/router → router}/guard/remote-routes.d.ts +1 -1
- package/dist/types/{src/router → router}/guard/set-page-title.d.ts +1 -1
- package/dist/types/router/index.d.ts +2 -0
- package/dist/types/{src/router → router}/remote.d.ts +1 -1
- package/dist/types/router/router.d.ts +2 -0
- package/dist/types/router/types.d.ts +5 -0
- package/dist/types/scaffold/404.d.ts +4 -0
- package/dist/types/scaffold/container.d.ts +10 -0
- package/dist/types/scaffold/dashboard.d.ts +2 -0
- package/dist/types/scaffold/devtool/DevLayout.d.ts +0 -0
- package/dist/types/scaffold/devtool/base.d.ts +5 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/checkbox.d.ts +32 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/code.d.ts +17 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/icon-select.d.ts +17 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/input.d.ts +38 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/json.d.ts +17 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/number-range.d.ts +32 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/number.d.ts +32 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/radio.d.ts +31 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/select.d.ts +90 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/sub-form.d.ts +57 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/switch.d.ts +32 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/template.d.ts +17 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/upload.d.ts +17 -0
- package/dist/types/scaffold/devtool/formBuilder/form.d.ts +76 -0
- package/dist/types/scaffold/devtool/formBuilder/index.d.ts +47 -0
- package/dist/types/scaffold/devtool/tableBuilder/btn/api.d.ts +57 -0
- package/dist/types/scaffold/devtool/tableBuilder/btn/form.d.ts +50 -0
- package/dist/types/scaffold/devtool/tableBuilder/index.d.ts +51 -0
- package/dist/types/scaffold/devtool/tableBuilder/table.d.ts +18 -0
- package/dist/types/scaffold/form.d.ts +22 -0
- package/dist/types/{src/scaffold → scaffold}/index.d.ts +0 -0
- package/dist/types/scaffold/login.d.ts +14 -0
- package/dist/types/scaffold/report.d.ts +11 -0
- package/dist/types/scaffold/table.d.ts +17 -0
- package/dist/types/scaffold/tree.d.ts +10 -0
- package/dist/types/{src/types.d.ts → types.d.ts} +10 -6
- package/package.json +50 -42
- package/README.md +0 -3
- package/dist/types/auto-imports.d.ts +0 -53
- package/dist/types/components.d.ts +0 -50
- package/dist/types/src/admin.d.ts +0 -8
- package/dist/types/src/components/PageLoad.vue.d.ts +0 -14
- package/dist/types/src/components/VIcon.d.ts +0 -13
- package/dist/types/src/components/chart/index.vue.d.ts +0 -17
- package/dist/types/src/components/report/NumberPanel.vue.d.ts +0 -9
- package/dist/types/src/components/report/part.vue.d.ts +0 -168
- package/dist/types/src/plugins/element-plus.d.ts +0 -6
- package/dist/types/src/plugins/eventBus.d.ts +0 -6
- package/dist/types/src/router/guard/nprogress.d.ts +0 -2
- package/dist/types/src/router/index.d.ts +0 -2
- package/dist/types/src/router/router.d.ts +0 -3
- package/dist/types/src/router/vue-router.d.ts +0 -16
- package/dist/types/src/scaffold/404.vue.d.ts +0 -4
- package/dist/types/src/scaffold/container.vue.d.ts +0 -17
- package/dist/types/src/scaffold/dashboard.vue.d.ts +0 -3
- package/dist/types/src/scaffold/devtool/formBuilder/index.vue.d.ts +0 -280
- package/dist/types/src/scaffold/devtool/tableBuilder/index.vue.d.ts +0 -1115
- package/dist/types/src/scaffold/form.vue.d.ts +0 -59
- package/dist/types/src/scaffold/layout/components/AppMain.vue.d.ts +0 -24
- package/dist/types/src/scaffold/layout/components/Breadcrumb/index.vue.d.ts +0 -25
- package/dist/types/src/scaffold/layout/components/Hamburger/index.vue.d.ts +0 -16
- package/dist/types/src/scaffold/layout/components/Navbar.vue.d.ts +0 -49
- package/dist/types/src/scaffold/layout/components/PageEditor.vue.d.ts +0 -23
- package/dist/types/src/scaffold/layout/components/Sidebar/FixiOSBug.d.ts +0 -10
- package/dist/types/src/scaffold/layout/components/Sidebar/Link.vue.d.ts +0 -21
- package/dist/types/src/scaffold/layout/components/Sidebar/Logo.vue.d.ts +0 -16
- package/dist/types/src/scaffold/layout/components/Sidebar/MenuContent.vue.d.ts +0 -21
- package/dist/types/src/scaffold/layout/components/Sidebar/SidebarItem.vue.d.ts +0 -41
- package/dist/types/src/scaffold/layout/components/Sidebar/index.vue.d.ts +0 -3
- package/dist/types/src/scaffold/layout/components/index.d.ts +0 -3
- package/dist/types/src/scaffold/layout/index.vue.d.ts +0 -1965
- package/dist/types/src/scaffold/login.vue.d.ts +0 -17
- package/dist/types/src/scaffold/report.vue.d.ts +0 -485
- package/dist/types/src/scaffold/table.vue.d.ts +0 -54
- package/dist/types/src/scaffold/tree.vue.d.ts +0 -234
- package/dist/types/src/shims-vue.d.ts +0 -22
- package/dist/types/src/store/index.d.ts +0 -6
- package/dist/types/src/store/modules/app.d.ts +0 -5
- package/dist/types/src/store/modules/builderSchema.d.ts +0 -9
- package/dist/types/src/store/modules/settings.d.ts +0 -5
- package/dist/types/src/store/modules/user.d.ts +0 -5
- package/dist/types/src/store/types.d.ts +0 -42
- package/dist/types/src/utils/container/index.d.ts +0 -3
- package/dist/types/src/utils/env.d.ts +0 -3
- package/dist/types/src/utils/index.d.ts +0 -1
- package/dist/types/src/utils/request/cache.d.ts +0 -5
- package/dist/types/src/utils/request/index.d.ts +0 -8
- package/dist/types/src/utils/request/interceptors.d.ts +0 -3
- package/dist/types/src/utils/request/types.d.ts +0 -14
- package/dist/types/src/utils/sso/index.d.ts +0 -35
- package/dist/types/src/utils/token.d.ts +0 -3
package/dist/index.es.js
CHANGED
|
@@ -17,15 +17,11 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return value;
|
|
23
|
-
};
|
|
24
|
-
import { defineComponent, onBeforeMount, resolveComponent, openBlock, createBlock, unref, withCtx, createVNode, computed, createTextVNode, TransitionGroup, createElementBlock, Fragment, renderList, toDisplayString, normalizeClass, renderSlot, mergeProps, createCommentVNode, toRefs, ref, createElementVNode, pushScopeId, popScopeId, Transition, resolveDynamicComponent, normalizeProps, guardReactiveProps, withDirectives, vModelText, onMounted, shallowRef, onUnmounted, resolveDirective, createApp } from "vue";
|
|
25
|
-
import { ElConfigProvider, ElBreadcrumbItem, ElBreadcrumb, ElRow, ElMain, ElAside, ElContainer, ElDivider, ElButton, ElOption, ElSelect, ElFormItem, ElForm, ElCol, ElDrawer, ElBadge, ElPopover, ElDropdownItem, ElDropdownMenu, ElDropdown, ElMenuItem, ElSubMenu, ElOptionGroup, ElMenu, ElScrollbar, ElBacktop, ElMessage as ElMessage$1, ElAlert, ElTree, ElCard } from "element-plus/es";
|
|
20
|
+
import { defineComponent, onBeforeMount, provide, resolveComponent, openBlock, createBlock, unref, withCtx, createVNode, computed, createTextVNode, TransitionGroup, createElementBlock, Fragment, renderList, toDisplayString, normalizeClass, renderSlot, mergeProps, createCommentVNode, toRefs, ref, createElementVNode, Transition, pushScopeId, popScopeId, resolveDynamicComponent, normalizeProps, guardReactiveProps, withDirectives, vModelText, resolveDirective, onMounted, createApp } from "vue";
|
|
21
|
+
import { ElConfigProvider, ElBreadcrumbItem, ElBreadcrumb, ElRow, ElMain, ElAside, ElContainer, ElDivider, ElButton, ElOption, ElSelect, ElFormItem, ElForm, ElCol, ElDrawer, ElDropdownItem, ElDropdownMenu, ElDropdown, ElMenuItem, ElSubMenu, ElOptionGroup, ElMenu, ElScrollbar, ElBacktop, ElMessage as ElMessage$1, ElAlert, ElTree, ElCard } from "element-plus/es";
|
|
26
22
|
import "element-plus/es/components/config-provider/style/css";
|
|
27
23
|
import locale from "element-plus/lib/locale/lang/zh-cn";
|
|
28
|
-
import { addNewStyle, addNewStyleTag, queryParams, logGroup, isString, compactObject, showEleByClassName,
|
|
24
|
+
import { globalVariables, addNewStyle, addNewStyleTag, queryParams, logGroup, isString, compactObject, showEleByClassName, Cache, isExternal, getQueryParam, strVarReplace, createIFrame, obj2Param, isObject, effectDataTrans, isArray } from "@okiss/utils";
|
|
29
25
|
import Mock from "mockjs";
|
|
30
26
|
import _, { cloneDeep, merge, get, unset } from "lodash";
|
|
31
27
|
import axios from "axios";
|
|
@@ -34,6 +30,7 @@ import { createStore, useStore, mapGetters } from "vuex";
|
|
|
34
30
|
import ElementPlus, { ElMessage, ElMessageBox } from "element-plus";
|
|
35
31
|
import "element-plus/dist/index.css";
|
|
36
32
|
import "dayjs/locale/zh-cn";
|
|
33
|
+
import { VForm, VBtn, JsonView, VTable, VChart, VIcon, setUploadHeaderHandle } from "@okiss/vbtf";
|
|
37
34
|
import "normalize.css/normalize.css";
|
|
38
35
|
import { useRoute as useRoute$1, onBeforeRouteLeave, useRouter, createRouter, createWebHashHistory, onBeforeRouteUpdate } from "vue-router";
|
|
39
36
|
import "element-plus/es/components/row/style/css";
|
|
@@ -41,8 +38,6 @@ import "element-plus/es/components/drawer/style/css";
|
|
|
41
38
|
import "element-plus/es/components/dropdown/style/css";
|
|
42
39
|
import "element-plus/es/components/dropdown-menu/style/css";
|
|
43
40
|
import "element-plus/es/components/dropdown-item/style/css";
|
|
44
|
-
import "element-plus/es/components/popover/style/css";
|
|
45
|
-
import "element-plus/es/components/badge/style/css";
|
|
46
41
|
import "element-plus/es/components/col/style/css";
|
|
47
42
|
import "element-plus/es/components/breadcrumb/style/css";
|
|
48
43
|
import "element-plus/es/components/breadcrumb-item/style/css";
|
|
@@ -56,11 +51,7 @@ import "element-plus/es/components/divider/style/css";
|
|
|
56
51
|
import "element-plus/es/components/container/style/css";
|
|
57
52
|
import "element-plus/es/components/aside/style/css";
|
|
58
53
|
import "element-plus/es/components/main/style/css";
|
|
59
|
-
import { VForm, VButton, VTable, VBtn, RegComponents } from "@okiss/lib";
|
|
60
|
-
import * as Icons from "@element-plus/icons-vue";
|
|
61
54
|
import mitt from "mitt";
|
|
62
|
-
import "@okiss/lib/style.css";
|
|
63
|
-
import * as echarts from "echarts";
|
|
64
55
|
import "element-plus/es/components/scrollbar/style/css";
|
|
65
56
|
import "element-plus/es/components/menu/style/css";
|
|
66
57
|
import "element-plus/es/components/sub-menu/style/css";
|
|
@@ -71,7 +62,6 @@ import { useEventListener } from "@vueuse/core";
|
|
|
71
62
|
import "element-plus/es/components/alert/style/css";
|
|
72
63
|
import "element-plus/es/components/card/style/css";
|
|
73
64
|
import "element-plus/es/components/tree/style/css";
|
|
74
|
-
import JsonView from "@okiss/jsonview";
|
|
75
65
|
import Markdown from "vue3-markdown-it";
|
|
76
66
|
import "element-plus/es/components/message/style/css";
|
|
77
67
|
import NProgress from "nprogress";
|
|
@@ -84,8 +74,11 @@ if (!String.prototype.format) {
|
|
|
84
74
|
});
|
|
85
75
|
};
|
|
86
76
|
}
|
|
87
|
-
const _sfc_main$
|
|
77
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
78
|
+
__name: "App",
|
|
88
79
|
setup(__props) {
|
|
80
|
+
var _a, _b, _c, _d;
|
|
81
|
+
console.log(123, globalVariables());
|
|
89
82
|
onBeforeMount(() => {
|
|
90
83
|
const loading = document.getElementById("preloader");
|
|
91
84
|
if (loading !== null) {
|
|
@@ -101,6 +94,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
101
94
|
}
|
|
102
95
|
});
|
|
103
96
|
const locale$1 = locale;
|
|
97
|
+
if ((_b = (_a = window == null ? void 0 : window.OmsOptions) == null ? void 0 : _a.form) == null ? void 0 : _b.vsPath) {
|
|
98
|
+
provide("vsPath", (_d = (_c = window == null ? void 0 : window.OmsOptions) == null ? void 0 : _c.form) == null ? void 0 : _d.vsPath);
|
|
99
|
+
}
|
|
104
100
|
return (_ctx, _cache) => {
|
|
105
101
|
const _component_router_view = resolveComponent("router-view");
|
|
106
102
|
const _component_el_config_provider = ElConfigProvider;
|
|
@@ -725,7 +721,7 @@ var example = { form: form$1, table: table$1, listMock, layoutForm, layoutSectio
|
|
|
725
721
|
const userApis = [
|
|
726
722
|
{
|
|
727
723
|
method: MockHttpMethod.POST,
|
|
728
|
-
url: "/
|
|
724
|
+
url: "/login",
|
|
729
725
|
response(options) {
|
|
730
726
|
return {
|
|
731
727
|
code: 0,
|
|
@@ -785,12 +781,12 @@ const defaultSettings = {
|
|
|
785
781
|
title: "oms",
|
|
786
782
|
fixedHeader: false,
|
|
787
783
|
sidebarLogo: true,
|
|
788
|
-
logo: "
|
|
784
|
+
logo: "https://gitee.com/daodao97/asset/raw/master/imgs/logo.png",
|
|
789
785
|
closeNavNotice: false,
|
|
790
|
-
navBarNotice: "
|
|
786
|
+
navBarNotice: "",
|
|
791
787
|
hasNewMessage: true,
|
|
792
|
-
showPageJsonSchema:
|
|
793
|
-
loginTips: "
|
|
788
|
+
showPageJsonSchema: true,
|
|
789
|
+
loginTips: "",
|
|
794
790
|
sso: {},
|
|
795
791
|
ElementPlus: {
|
|
796
792
|
size: "default",
|
|
@@ -800,7 +796,7 @@ const defaultSettings = {
|
|
|
800
796
|
nav: [],
|
|
801
797
|
whiteRoutes: ["/login"],
|
|
802
798
|
tokenExpire: 7 * 24 * 60 * 60 * 1e3,
|
|
803
|
-
defaultAvatar: "
|
|
799
|
+
defaultAvatar: "https://gitee.com/daodao97/asset/raw/master/imgs/U0u4Ko.jpg"
|
|
804
800
|
};
|
|
805
801
|
const defaultOptions = {
|
|
806
802
|
axios: defaultAxios,
|
|
@@ -1153,22 +1149,6 @@ const task = {
|
|
|
1153
1149
|
return this.cacheList.delete(key);
|
|
1154
1150
|
}
|
|
1155
1151
|
};
|
|
1156
|
-
const cacheAdapter = (config, instance2) => {
|
|
1157
|
-
return new Promise((resolve, reject) => {
|
|
1158
|
-
if (config.method !== "get") {
|
|
1159
|
-
delete config.adapter;
|
|
1160
|
-
resolve(instance2(config));
|
|
1161
|
-
return;
|
|
1162
|
-
}
|
|
1163
|
-
const cache2 = task.cache(config);
|
|
1164
|
-
if (!cache2) {
|
|
1165
|
-
delete config.adapter;
|
|
1166
|
-
resolve(instance2(config));
|
|
1167
|
-
return;
|
|
1168
|
-
}
|
|
1169
|
-
resolve({ data: cache2, config });
|
|
1170
|
-
});
|
|
1171
|
-
};
|
|
1172
1152
|
const cancelRequestInterceptor = {
|
|
1173
1153
|
onFulfilled: function(config) {
|
|
1174
1154
|
if (task.pending(config)) {
|
|
@@ -1222,7 +1202,8 @@ const baseResponseInterceptor = {
|
|
|
1222
1202
|
callback: (action) => {
|
|
1223
1203
|
if (action === "confirm") {
|
|
1224
1204
|
removeToken();
|
|
1225
|
-
location.href = location.origin + location.pathname;
|
|
1205
|
+
location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect=");
|
|
1206
|
+
location.reload();
|
|
1226
1207
|
}
|
|
1227
1208
|
}
|
|
1228
1209
|
});
|
|
@@ -1275,10 +1256,8 @@ const interceptors = [
|
|
|
1275
1256
|
function instance(conf = {}) {
|
|
1276
1257
|
const defaultConf = defaultOptions.axios || {};
|
|
1277
1258
|
const c = merge(defaultConf, conf || {});
|
|
1278
|
-
|
|
1279
|
-
const service = axios.create(
|
|
1280
|
-
adapter: (c2) => cacheAdapter(c2, defaultAxios2)
|
|
1281
|
-
}));
|
|
1259
|
+
axios.create(c);
|
|
1260
|
+
const service = axios.create(__spreadValues({}, c));
|
|
1282
1261
|
interceptors.forEach((item) => {
|
|
1283
1262
|
service.interceptors.request.use(item.request.onFulfilled, item.request.onRejected);
|
|
1284
1263
|
service.interceptors.response.use(item.response.onFulfilled, item.response.onRejected);
|
|
@@ -1286,7 +1265,7 @@ function instance(conf = {}) {
|
|
|
1286
1265
|
return service;
|
|
1287
1266
|
}
|
|
1288
1267
|
var http$1 = instance();
|
|
1289
|
-
var index = "";
|
|
1268
|
+
var index = /* @__PURE__ */ (() => '.preloader{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1000}.preloader .preloader-inner{display:block;position:relative;left:50%;top:50%;width:70px;height:70px;margin:-35px 0 0 -35px;border-radius:50%;border:3px solid transparent;border-top-color:#3498db;animation:spin 2s linear infinite}.preloader .preloader-inner:before{content:"";position:absolute;top:5px;left:5px;right:5px;bottom:5px;border-radius:50%;border:3px solid transparent;border-top-color:#e74c3c;animation:spin 3s linear infinite}.preloader .preloader-inner:after{content:"";position:absolute;top:15px;left:15px;right:15px;bottom:15px;border-radius:50%;border:3px solid transparent;border-top-color:#f9c922;animation:spin 1.5s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}:export{menuText:#bfcbd9;menuActiveText:#409EFF;subMenuActiveText:#f4f4f5;menuBg:#304156;menuHover:#263445;subMenuBg:#1f2d3d;subMenuHover:#001528;sideBarWidth:210px}.fade-enter-active,.fade-leave-active{transition:opacity .28s}.fade-enter,.fade-leave-active{opacity:0}.fade-transform-leave-active,.fade-transform-enter-active{transition:all .5s}.fade-transform-enter{opacity:0;transform:translate(-30px)}.fade-transform-leave-to{opacity:0;transform:translate(30px)}.breadcrumb-enter-active,.breadcrumb-leave-active{transition:all .5s}.breadcrumb-enter,.breadcrumb-leave-active{opacity:0;transform:translate(20px)}.breadcrumb-move{transition:all .5s}.breadcrumb-leave-active{position:absolute}.el-breadcrumb__inner,.el-breadcrumb__inner a{font-weight:400!important}.el-dropdown-menu a{display:block}.el-table .el-table__cell{z-index:auto}#app .main-container{min-height:100%;transition:margin-left .28s;margin-left:210px;position:relative}#app .sidebar-container{transition:width .28s;width:210px!important;background-color:#304156;height:100%;position:fixed;font-size:0px;top:0;bottom:0;left:0;z-index:1001;overflow:hidden}#app .sidebar-container .horizontal-collapse-transition{transition:0s width ease-in-out,0s padding-left ease-in-out,0s padding-right ease-in-out}#app .sidebar-container .scrollbar-wrapper{overflow-x:hidden!important}#app .sidebar-container .el-scrollbar__bar.is-vertical{right:0px}#app .sidebar-container .el-scrollbar{height:100%}#app .sidebar-container.has-logo .el-scrollbar{height:calc(100% - 50px)}#app .sidebar-container .is-horizontal{display:none}#app .sidebar-container a{display:inline-block;width:100%;overflow:hidden}#app .sidebar-container .el-menu{border:none;height:100%;width:100%!important}#app .sidebar-container .submenu-title-noDropdown:hover,#app .sidebar-container .el-submenu__title:hover{background-color:#263445!important}#app .sidebar-container .is-active>.el-submenu__title{color:#f4f4f5!important}#app .sidebar-container .nest-menu .el-submenu>.el-submenu__title,#app .sidebar-container .el-submenu .el-menu-item{min-width:210px!important;background-color:#1f2d3d!important}#app .sidebar-container .nest-menu .el-submenu>.el-submenu__title:hover,#app .sidebar-container .el-submenu .el-menu-item:hover{background-color:#001528!important}#app .hideSidebar .sidebar-container{width:54px!important}#app .hideSidebar .main-container{margin-left:54px}#app .hideSidebar .svg-icon{margin-right:0}#app .hideSidebar .submenu-title-noDropdown{position:relative}#app .hideSidebar .submenu-title-noDropdown .el-tooltip{padding:0!important}#app .hideSidebar .submenu-title-noDropdown .el-tooltip .svg-icon{margin-left:20px}#app .hideSidebar .submenu-title-noDropdown .menu-content{display:none}#app .hideSidebar .el-submenu{overflow:hidden}#app .hideSidebar .el-submenu>.el-submenu__title .svg-icon{margin-left:20px}#app .hideSidebar .el-submenu>.el-submenu__title .el-submenu__icon-arrow{display:none}#app .hideSidebar .el-menu--collapse{left:-5px}#app .hideSidebar .el-menu--collapse .el-submenu>.el-submenu__title>span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}#app .el-menu--collapse .el-menu .el-submenu{min-width:210px!important}#app .mobile .main-container{margin-left:0}#app .mobile .sidebar-container{transition:transform .28s;width:210px!important}#app .mobile.hideSidebar .sidebar-container{pointer-events:none;transition-duration:.3s;transform:translate3d(-210px,0,0)}#app .withoutAnimation .main-container,#app .withoutAnimation .sidebar-container{transition:none}.el-menu--vertical>.el-menu .svg-icon{margin-right:16px}.el-menu--vertical .nest-menu .el-submenu>.el-submenu__title:hover,.el-menu--vertical .el-menu-item:hover{background-color:#263445!important}.el-menu--vertical>.el-menu--popup{max-height:100vh;overflow-y:auto}.el-menu--vertical>.el-menu--popup::-webkit-scrollbar-track-piece{background:#d3dce6}.el-menu--vertical>.el-menu--popup::-webkit-scrollbar{width:6px}.el-menu--vertical>.el-menu--popup::-webkit-scrollbar-thumb{background:#99a9bf;border-radius:20px}body{height:100%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Arial,sans-serif}label{font-weight:700}html{height:100%;box-sizing:border-box}#app{height:100%}*,*:before,*:after{box-sizing:inherit}a:focus,a:active{outline:none}a,a:focus,a:hover{cursor:pointer;color:inherit;text-decoration:none}div:focus{outline:none}.clearfix:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.app-container{padding:20px}.icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.el-dialog{max-height:80%;overflow-y:auto}.my-drawer{overflow-y:auto}.v-btn{padding-right:10px}.v-btn:last-child{padding-right:0}.devtool-hover{position:initial}.devtool-hover:hover .devtool-item-wrapper{display:block}.devtool-item-wrapper{position:fixed;display:none;border-radius:6px;background-color:#409eff1a;cursor:pointer;z-index:11}span[class^=dev-action-]{position:absolute;cursor:pointer}.dev-action-edit,.dev-action-del{width:30px;height:30px;top:-18px;line-height:28px;text-align:center;border-radius:50%}.dev-action-edit{color:#409eff;right:-6px;border:1px solid #b3d5fd;background-color:#ecf5ff}.dev-action-edit:hover{background-color:#d7e7fb}.dev-action-del{color:#fb4b0a;right:28px;border:1px solid #fb4b0a;background-color:#f6faff}.dev-action-del:hover{background-color:#fdeaea}\n')();
|
|
1290
1269
|
const defaultMap = {};
|
|
1291
1270
|
function setCmp(name, cmp) {
|
|
1292
1271
|
defaultMap[name] = cmp;
|
|
@@ -1294,14 +1273,14 @@ function setCmp(name, cmp) {
|
|
|
1294
1273
|
function getCmp(name) {
|
|
1295
1274
|
return defaultMap[name];
|
|
1296
1275
|
}
|
|
1297
|
-
var _sfc_main$
|
|
1298
|
-
name: "
|
|
1276
|
+
var _sfc_main$s = defineComponent({
|
|
1277
|
+
name: "Dashboard",
|
|
1299
1278
|
setup() {
|
|
1300
1279
|
const store2 = useStore();
|
|
1301
1280
|
const name = computed(() => store2.getters.name);
|
|
1302
1281
|
const custom = getCmp("test");
|
|
1303
1282
|
if (custom) {
|
|
1304
|
-
return () => createVNode(
|
|
1283
|
+
return () => createVNode(custom, null, null);
|
|
1305
1284
|
}
|
|
1306
1285
|
return () => createVNode("div", {
|
|
1307
1286
|
"class": "dashboard-container"
|
|
@@ -1310,7 +1289,7 @@ var _sfc_main$t = defineComponent({
|
|
|
1310
1289
|
}, [createTextVNode("Hi "), name.value, createTextVNode(" \u{1F604}")])]);
|
|
1311
1290
|
}
|
|
1312
1291
|
});
|
|
1313
|
-
var dashboard_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
1292
|
+
var dashboard_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".dashboard-container[data-v-31d81148]{margin:30px}.dashboard-text[data-v-31d81148]{font-size:30px;line-height:46px}\n")();
|
|
1314
1293
|
var _export_sfc = (sfc, props) => {
|
|
1315
1294
|
const target = sfc.__vccOpts || sfc;
|
|
1316
1295
|
for (const [key, val] of props) {
|
|
@@ -1318,9 +1297,9 @@ var _export_sfc = (sfc, props) => {
|
|
|
1318
1297
|
}
|
|
1319
1298
|
return target;
|
|
1320
1299
|
};
|
|
1321
|
-
var Dashboard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1322
|
-
var index_vue_vue_type_style_index_0_scoped_true_lang$4 = "";
|
|
1323
|
-
const _sfc_main$
|
|
1300
|
+
var Dashboard = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-31d81148"]]);
|
|
1301
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$4 = /* @__PURE__ */ (() => ".app-breadcrumb.el-breadcrumb[data-v-1d446810]{display:inline-block;font-size:14px;line-height:50px;margin-left:8px}.app-breadcrumb.el-breadcrumb .no-redirect[data-v-1d446810]{color:#97a8be;cursor:text}\n")();
|
|
1302
|
+
const _sfc_main$r = {
|
|
1324
1303
|
data() {
|
|
1325
1304
|
return {
|
|
1326
1305
|
levelList: null
|
|
@@ -1365,12 +1344,12 @@ const _sfc_main$s = {
|
|
|
1365
1344
|
}
|
|
1366
1345
|
}
|
|
1367
1346
|
};
|
|
1368
|
-
const _hoisted_1$
|
|
1347
|
+
const _hoisted_1$d = {
|
|
1369
1348
|
key: 0,
|
|
1370
1349
|
class: "no-redirect"
|
|
1371
1350
|
};
|
|
1372
1351
|
const _hoisted_2$9 = ["onClick"];
|
|
1373
|
-
function _sfc_render$
|
|
1352
|
+
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1374
1353
|
const _component_el_breadcrumb_item = ElBreadcrumbItem;
|
|
1375
1354
|
const _component_el_breadcrumb = ElBreadcrumb;
|
|
1376
1355
|
return openBlock(), createBlock(_component_el_breadcrumb, {
|
|
@@ -1385,7 +1364,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1385
1364
|
key: item.path
|
|
1386
1365
|
}, {
|
|
1387
1366
|
default: withCtx(() => [
|
|
1388
|
-
item.path.indexOf("/DIR_") === 0 && item.redirect === void 0 || index2 === $data.levelList.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1367
|
+
item.path.indexOf("/DIR_") === 0 && item.redirect === void 0 || index2 === $data.levelList.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_1$d, toDisplayString(item.meta.title), 1)) : (openBlock(), createElementBlock("a", {
|
|
1389
1368
|
key: 1,
|
|
1390
1369
|
onClick: ($event) => $options.handleLink(item)
|
|
1391
1370
|
}, toDisplayString(item.meta.title), 9, _hoisted_2$9))
|
|
@@ -1400,8 +1379,8 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1400
1379
|
_: 1
|
|
1401
1380
|
});
|
|
1402
1381
|
}
|
|
1403
|
-
var Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1404
|
-
const _sfc_main$
|
|
1382
|
+
var Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$h], ["__scopeId", "data-v-1d446810"]]);
|
|
1383
|
+
const _sfc_main$q = {
|
|
1405
1384
|
name: "Hamburger",
|
|
1406
1385
|
props: {
|
|
1407
1386
|
isActive: {
|
|
@@ -1416,7 +1395,7 @@ const _sfc_main$r = {
|
|
|
1416
1395
|
}
|
|
1417
1396
|
}
|
|
1418
1397
|
};
|
|
1419
|
-
function _sfc_render$
|
|
1398
|
+
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1420
1399
|
const _component_v_icon = resolveComponent("v-icon");
|
|
1421
1400
|
return openBlock(), createElementBlock("div", {
|
|
1422
1401
|
style: { "padding": "0 15px" },
|
|
@@ -1428,10 +1407,10 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1428
1407
|
}, null, 8, ["class"])
|
|
1429
1408
|
]);
|
|
1430
1409
|
}
|
|
1431
|
-
var Hamburger = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1432
|
-
var DevLayout_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
1433
|
-
const _sfc_main$
|
|
1434
|
-
function _sfc_render$
|
|
1410
|
+
var Hamburger = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$g]]);
|
|
1411
|
+
var DevLayout_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".main[data-v-e47ee78a]{border:1px solid #ebebeb;border-radius:3px;transition:.2s;min-height:calc(100vh - 50px);width:100%;position:relative}.aside[data-v-e47ee78a]{padding-top:20px;border:1px solid #ebebeb;border-radius:3px;transition:.2s}\n")();
|
|
1412
|
+
const _sfc_main$p = {};
|
|
1413
|
+
function _sfc_render$f(_ctx, _cache) {
|
|
1435
1414
|
const _component_el_row = ElRow;
|
|
1436
1415
|
const _component_el_main = ElMain;
|
|
1437
1416
|
const _component_el_aside = ElAside;
|
|
@@ -1467,7 +1446,7 @@ function _sfc_render$g(_ctx, _cache) {
|
|
|
1467
1446
|
_: 3
|
|
1468
1447
|
});
|
|
1469
1448
|
}
|
|
1470
|
-
var DevLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1449
|
+
var DevLayout = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$f], ["__scopeId", "data-v-e47ee78a"]]);
|
|
1471
1450
|
var input$1 = {
|
|
1472
1451
|
type: "input",
|
|
1473
1452
|
name: "\u6587\u672C\u6846",
|
|
@@ -2181,7 +2160,7 @@ const baseSchema$1 = {
|
|
|
2181
2160
|
}
|
|
2182
2161
|
]
|
|
2183
2162
|
};
|
|
2184
|
-
var index_vue_vue_type_style_index_0_scoped_true_lang$3 = "";
|
|
2163
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$3 = /* @__PURE__ */ (() => ".title[data-v-052612d8]{size:2em;padding:5px 20px}.ctrl[data-v-052612d8]{padding:5px 20px}.ctrl .ctrl-btn[data-v-052612d8]{width:100%}\n")();
|
|
2185
2164
|
const ctrlFormDefaultOptions$1 = {
|
|
2186
2165
|
labelPosition: "top",
|
|
2187
2166
|
submitButton: false,
|
|
@@ -2224,8 +2203,8 @@ const sqlSchema = {
|
|
|
2224
2203
|
}
|
|
2225
2204
|
]
|
|
2226
2205
|
};
|
|
2227
|
-
const _sfc_main$
|
|
2228
|
-
components: { DevLayout, VForm, VButton, JsonView },
|
|
2206
|
+
const _sfc_main$o = {
|
|
2207
|
+
components: { DevLayout, VForm, VButton: VBtn, JsonView },
|
|
2229
2208
|
props: {
|
|
2230
2209
|
schema: {
|
|
2231
2210
|
type: Object,
|
|
@@ -2405,9 +2384,9 @@ const _sfc_main$p = {
|
|
|
2405
2384
|
}
|
|
2406
2385
|
}
|
|
2407
2386
|
};
|
|
2408
|
-
const _hoisted_1$
|
|
2387
|
+
const _hoisted_1$c = /* @__PURE__ */ createTextVNode("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E");
|
|
2409
2388
|
const _hoisted_2$8 = /* @__PURE__ */ createTextVNode(" \xA0\xA0 ");
|
|
2410
|
-
function _sfc_render$
|
|
2389
|
+
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2411
2390
|
const _component_v_form = resolveComponent("v-form");
|
|
2412
2391
|
const _component_el_divider = ElDivider;
|
|
2413
2392
|
const _component_ElButton = ElButton;
|
|
@@ -2432,7 +2411,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2432
2411
|
onClick: $options.saveSchema
|
|
2433
2412
|
}, {
|
|
2434
2413
|
default: withCtx(() => [
|
|
2435
|
-
_hoisted_1$
|
|
2414
|
+
_hoisted_1$c
|
|
2436
2415
|
]),
|
|
2437
2416
|
_: 1
|
|
2438
2417
|
}, 8, ["onClick"]),
|
|
@@ -2482,7 +2461,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2482
2461
|
_: 1
|
|
2483
2462
|
});
|
|
2484
2463
|
}
|
|
2485
|
-
var FormBuilder = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2464
|
+
var FormBuilder = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$e], ["__scopeId", "data-v-052612d8"]]);
|
|
2486
2465
|
var input = {
|
|
2487
2466
|
type: "input",
|
|
2488
2467
|
name: "\u6587\u672C\u6846",
|
|
@@ -3216,9 +3195,9 @@ var buttons = {
|
|
|
3216
3195
|
form,
|
|
3217
3196
|
table
|
|
3218
3197
|
};
|
|
3219
|
-
var index_vue_vue_type_style_index_0_scoped_true_lang$2 = "";
|
|
3220
|
-
const _sfc_main$
|
|
3221
|
-
components: { JsonView, DevLayout, VTable, VForm, VButton },
|
|
3198
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$2 = /* @__PURE__ */ (() => ".title[data-v-5c1d4c60]{size:2em;padding:5px 20px}.ctrl[data-v-5c1d4c60]{padding:5px 20px}.ctrl .ctrl-btn[data-v-5c1d4c60]{width:100%}\n")();
|
|
3199
|
+
const _sfc_main$n = {
|
|
3200
|
+
components: { JsonView, DevLayout, VTable, VForm, VButton: VBtn },
|
|
3222
3201
|
props: {
|
|
3223
3202
|
schema: {
|
|
3224
3203
|
type: Object,
|
|
@@ -3452,7 +3431,7 @@ const _sfc_main$o = {
|
|
|
3452
3431
|
}
|
|
3453
3432
|
}
|
|
3454
3433
|
};
|
|
3455
|
-
const _hoisted_1$
|
|
3434
|
+
const _hoisted_1$b = /* @__PURE__ */ createTextVNode("\u6DFB\u52A0\u641C\u7D22\u6761\u4EF6");
|
|
3456
3435
|
const _hoisted_2$7 = /* @__PURE__ */ createTextVNode("\u6587\u672C\u6846");
|
|
3457
3436
|
const _hoisted_3$7 = /* @__PURE__ */ createTextVNode("\u4E0B\u62C9\u6846");
|
|
3458
3437
|
const _hoisted_4$5 = /* @__PURE__ */ createTextVNode("\u65E5\u671F");
|
|
@@ -3462,9 +3441,9 @@ const _hoisted_7$2 = /* @__PURE__ */ createTextVNode("\u6DFB\u52A0\u5E38\u89C4\u
|
|
|
3462
3441
|
const _hoisted_8$2 = /* @__PURE__ */ createTextVNode("\u6309\u94AE\u7EC4");
|
|
3463
3442
|
const _hoisted_9$2 = /* @__PURE__ */ createTextVNode("\u6DFB\u52A0\u6279\u91CF\u6309\u94AE");
|
|
3464
3443
|
const _hoisted_10$2 = /* @__PURE__ */ createTextVNode("\u6309\u94AE\u7EC4");
|
|
3465
|
-
const _hoisted_11
|
|
3444
|
+
const _hoisted_11 = /* @__PURE__ */ createTextVNode("\u4FDD\u5B58\u9875\u9762\u914D\u7F6E");
|
|
3466
3445
|
const _hoisted_12 = /* @__PURE__ */ createTextVNode(" \xA0\xA0 ");
|
|
3467
|
-
function _sfc_render$
|
|
3446
|
+
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3468
3447
|
const _component_el_col = ElCol;
|
|
3469
3448
|
const _component_el_button = ElButton;
|
|
3470
3449
|
const _component_el_row = ElRow;
|
|
@@ -3490,7 +3469,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3490
3469
|
"data-id": 22222
|
|
3491
3470
|
}, {
|
|
3492
3471
|
default: withCtx(() => [
|
|
3493
|
-
_hoisted_1$
|
|
3472
|
+
_hoisted_1$b
|
|
3494
3473
|
]),
|
|
3495
3474
|
_: 1
|
|
3496
3475
|
}),
|
|
@@ -3697,7 +3676,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3697
3676
|
onClick: $options.saveSchema
|
|
3698
3677
|
}, {
|
|
3699
3678
|
default: withCtx(() => [
|
|
3700
|
-
_hoisted_11
|
|
3679
|
+
_hoisted_11
|
|
3701
3680
|
]),
|
|
3702
3681
|
_: 1
|
|
3703
3682
|
}, 8, ["onClick"]),
|
|
@@ -3747,8 +3726,8 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3747
3726
|
_: 1
|
|
3748
3727
|
});
|
|
3749
3728
|
}
|
|
3750
|
-
var TableBuilder = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3751
|
-
const _sfc_main$
|
|
3729
|
+
var TableBuilder = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$d], ["__scopeId", "data-v-5c1d4c60"]]);
|
|
3730
|
+
const _sfc_main$m = {
|
|
3752
3731
|
name: "PageEditor",
|
|
3753
3732
|
components: { FormBuilder, TableBuilder },
|
|
3754
3733
|
setup() {
|
|
@@ -3762,7 +3741,7 @@ const _sfc_main$n = {
|
|
|
3762
3741
|
return { show, key, direction, pageSchema };
|
|
3763
3742
|
}
|
|
3764
3743
|
};
|
|
3765
|
-
function _sfc_render$
|
|
3744
|
+
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3766
3745
|
const _component_VIcon = resolveComponent("VIcon");
|
|
3767
3746
|
const _component_form_builder = resolveComponent("form-builder");
|
|
3768
3747
|
const _component_table_builder = resolveComponent("table-builder");
|
|
@@ -3796,13 +3775,13 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3796
3775
|
}, 8, ["modelValue", "direction"])
|
|
3797
3776
|
], 64);
|
|
3798
3777
|
}
|
|
3799
|
-
var PageEditor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3800
|
-
var Navbar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
3801
|
-
const _sfc_main$
|
|
3778
|
+
var PageEditor = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$c]]);
|
|
3779
|
+
var Navbar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".el-dropdown-link[data-v-5ab29c62]{cursor:pointer;color:#409eff}.el-icon-arrow-down[data-v-5ab29c62]{font-size:12px}.navbar[data-v-5ab29c62]{display:flex;height:50px;position:relative;background:#fff;box-shadow:0 1px 4px #00152914}.navbar .hamburger-container[data-v-5ab29c62]{line-height:50px;height:100%;float:left;cursor:pointer;transition:background .3s;-webkit-tap-highlight-color:transparent}.navbar .hamburger-container[data-v-5ab29c62]:hover{background:rgba(0,0,0,.025)}.navbar .breadcrumb-container[data-v-5ab29c62]{float:left}.notice-setting[data-v-5ab29c62]{left:50%;top:50%;position:absolute;transform:translate(-50%,-50%)}.right-content[data-v-5ab29c62]{float:right;height:100%;padding-right:20px;color:#000000a6;display:flex}.right-content .icon[data-v-5ab29c62]{font-size:18px}.right-content .icon[data-v-5ab29c62]:focus{outline:none}.right-content .right-item[data-v-5ab29c62]{padding:0 12px;height:100%;transition:all .3s;cursor:pointer;display:flex;align-items:center}.right-content .right-item[data-v-5ab29c62]:hover{background:rgba(0,0,0,.025)}.right-content .right-item-button[data-v-5ab29c62]{height:100%;transition:all .3s;cursor:pointer;display:flex;align-items:center}.right-content .user-info[data-v-5ab29c62]{height:50px;line-height:50px}.right-content .user-avatar[data-v-5ab29c62]{width:24px;height:24px;line-height:24px;border-radius:50%;margin:0 10px 0 0;color:#1890ff;vertical-align:middle;background:hsla(0deg,0%,100%,.85)}.right-content .user-name[data-v-5ab29c62]{vertical-align:middle}\n")();
|
|
3780
|
+
const _sfc_main$l = {
|
|
3802
3781
|
components: {
|
|
3803
3782
|
Breadcrumb,
|
|
3804
3783
|
Hamburger,
|
|
3805
|
-
VBtn,
|
|
3784
|
+
VButton: VBtn,
|
|
3806
3785
|
PageEditor
|
|
3807
3786
|
},
|
|
3808
3787
|
data() {
|
|
@@ -3859,14 +3838,14 @@ const _sfc_main$m = {
|
|
|
3859
3838
|
},
|
|
3860
3839
|
showNotice(text) {
|
|
3861
3840
|
const key = "dismiss:navbar_notice";
|
|
3862
|
-
if (!
|
|
3841
|
+
if (!Cache.exist(key)) {
|
|
3863
3842
|
return true;
|
|
3864
3843
|
}
|
|
3865
|
-
return
|
|
3844
|
+
return Cache.get(key) !== text;
|
|
3866
3845
|
},
|
|
3867
3846
|
closeNotice(text) {
|
|
3868
3847
|
const key = "dismiss:navbar_notice";
|
|
3869
|
-
|
|
3848
|
+
Cache.set(key, text);
|
|
3870
3849
|
},
|
|
3871
3850
|
gotoMenuEdit() {
|
|
3872
3851
|
var _a, _b, _c, _d;
|
|
@@ -3876,36 +3855,29 @@ const _sfc_main$m = {
|
|
|
3876
3855
|
}
|
|
3877
3856
|
}
|
|
3878
3857
|
};
|
|
3879
|
-
const
|
|
3880
|
-
const
|
|
3881
|
-
const
|
|
3882
|
-
class: "el-icon-bell icon",
|
|
3883
|
-
circle: ""
|
|
3884
|
-
}, null, -1));
|
|
3885
|
-
const _hoisted_3$6 = { class: "right-item" };
|
|
3886
|
-
const _hoisted_4$4 = {
|
|
3858
|
+
const _hoisted_1$a = { class: "right-content" };
|
|
3859
|
+
const _hoisted_2$6 = { class: "right-item" };
|
|
3860
|
+
const _hoisted_3$6 = {
|
|
3887
3861
|
key: 0,
|
|
3888
3862
|
class: "right-item"
|
|
3889
3863
|
};
|
|
3890
|
-
const
|
|
3864
|
+
const _hoisted_4$4 = {
|
|
3891
3865
|
class: "right-item-button",
|
|
3892
3866
|
style: { "padding": "0" }
|
|
3893
3867
|
};
|
|
3894
|
-
const
|
|
3895
|
-
const
|
|
3896
|
-
const
|
|
3897
|
-
const
|
|
3898
|
-
const
|
|
3899
|
-
const
|
|
3900
|
-
function _sfc_render$
|
|
3868
|
+
const _hoisted_5$3 = { class: "user-info" };
|
|
3869
|
+
const _hoisted_6$2 = ["src"];
|
|
3870
|
+
const _hoisted_7$1 = /* @__PURE__ */ createTextVNode();
|
|
3871
|
+
const _hoisted_8$1 = { class: "user-name" };
|
|
3872
|
+
const _hoisted_9$1 = /* @__PURE__ */ createTextVNode("\u9996\u9875");
|
|
3873
|
+
const _hoisted_10$1 = /* @__PURE__ */ createTextVNode("\u9000\u51FA\u767B\u5F55");
|
|
3874
|
+
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3901
3875
|
const _component_hamburger = resolveComponent("hamburger");
|
|
3902
3876
|
const _component_breadcrumb = resolveComponent("breadcrumb");
|
|
3903
3877
|
const _component_el_col = ElCol;
|
|
3904
|
-
const _component_el_badge = ElBadge;
|
|
3905
|
-
const _component_el_popover = ElPopover;
|
|
3906
3878
|
const _component_VIcon = resolveComponent("VIcon");
|
|
3907
3879
|
const _component_PageEditor = resolveComponent("PageEditor");
|
|
3908
|
-
const
|
|
3880
|
+
const _component_v_button = resolveComponent("v-button");
|
|
3909
3881
|
const _component_el_dropdown_item = ElDropdownItem;
|
|
3910
3882
|
const _component_el_dropdown_menu = ElDropdownMenu;
|
|
3911
3883
|
const _component_el_dropdown = ElDropdown;
|
|
@@ -3926,37 +3898,18 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3926
3898
|
}),
|
|
3927
3899
|
createVNode(_component_el_col, { span: 8 }, {
|
|
3928
3900
|
default: withCtx(() => [
|
|
3929
|
-
createElementVNode("div", _hoisted_1$
|
|
3930
|
-
|
|
3931
|
-
placement: "bottom",
|
|
3932
|
-
width: "400",
|
|
3933
|
-
trigger: "click",
|
|
3934
|
-
onShow: $options.showPopover
|
|
3935
|
-
}, {
|
|
3936
|
-
default: withCtx(() => [
|
|
3937
|
-
createVNode(_component_el_badge, {
|
|
3938
|
-
class: "right-item",
|
|
3939
|
-
"is-dot": $options.hasNewMessage
|
|
3940
|
-
}, {
|
|
3941
|
-
default: withCtx(() => [
|
|
3942
|
-
_hoisted_2$6
|
|
3943
|
-
]),
|
|
3944
|
-
_: 1
|
|
3945
|
-
}, 8, ["is-dot"])
|
|
3946
|
-
]),
|
|
3947
|
-
_: 1
|
|
3948
|
-
}, 8, ["onShow"]),
|
|
3949
|
-
createElementVNode("div", _hoisted_3$6, [
|
|
3901
|
+
createElementVNode("div", _hoisted_1$a, [
|
|
3902
|
+
createElementVNode("div", _hoisted_2$6, [
|
|
3950
3903
|
createVNode(_component_VIcon, {
|
|
3951
3904
|
name: "ra-code",
|
|
3952
3905
|
onClick: $options.gotoMenuEdit
|
|
3953
3906
|
}, null, 8, ["onClick"])
|
|
3954
3907
|
]),
|
|
3955
|
-
$options.showPageJsonSchemaIcon ? (openBlock(), createElementBlock("div",
|
|
3908
|
+
$options.showPageJsonSchemaIcon ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
|
|
3956
3909
|
createVNode(_component_PageEditor)
|
|
3957
3910
|
])) : createCommentVNode("", true),
|
|
3958
|
-
createElementVNode("div",
|
|
3959
|
-
createVNode(
|
|
3911
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
3912
|
+
createVNode(_component_v_button, { buttons: _ctx.nav }, null, 8, ["buttons"])
|
|
3960
3913
|
]),
|
|
3961
3914
|
createVNode(_component_el_dropdown, {
|
|
3962
3915
|
class: "right-item",
|
|
@@ -3970,7 +3923,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3970
3923
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$router.push("/"))
|
|
3971
3924
|
}, {
|
|
3972
3925
|
default: withCtx(() => [
|
|
3973
|
-
|
|
3926
|
+
_hoisted_9$1
|
|
3974
3927
|
]),
|
|
3975
3928
|
_: 1
|
|
3976
3929
|
}),
|
|
@@ -3980,7 +3933,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3980
3933
|
onClick: $options.logout
|
|
3981
3934
|
}, {
|
|
3982
3935
|
default: withCtx(() => [
|
|
3983
|
-
|
|
3936
|
+
_hoisted_10$1
|
|
3984
3937
|
]),
|
|
3985
3938
|
_: 1
|
|
3986
3939
|
}, 8, ["onClick"])
|
|
@@ -3989,14 +3942,14 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3989
3942
|
})
|
|
3990
3943
|
]),
|
|
3991
3944
|
default: withCtx(() => [
|
|
3992
|
-
createElementVNode("div",
|
|
3945
|
+
createElementVNode("div", _hoisted_5$3, [
|
|
3993
3946
|
createElementVNode("img", {
|
|
3994
3947
|
src: _ctx.avatar ? _ctx.avatar : $data.defaultAvatar,
|
|
3995
3948
|
class: "user-avatar",
|
|
3996
3949
|
alt: "\u5934\u50CF"
|
|
3997
|
-
}, null, 8,
|
|
3998
|
-
|
|
3999
|
-
createElementVNode("span",
|
|
3950
|
+
}, null, 8, _hoisted_6$2),
|
|
3951
|
+
_hoisted_7$1,
|
|
3952
|
+
createElementVNode("span", _hoisted_8$1, toDisplayString(_ctx.nickname || _ctx.name), 1)
|
|
4000
3953
|
])
|
|
4001
3954
|
]),
|
|
4002
3955
|
_: 1
|
|
@@ -4014,9 +3967,9 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4014
3967
|
_: 1
|
|
4015
3968
|
});
|
|
4016
3969
|
}
|
|
4017
|
-
var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4018
|
-
var Logo_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
4019
|
-
const _sfc_main$
|
|
3970
|
+
var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$b], ["__scopeId", "data-v-5ab29c62"]]);
|
|
3971
|
+
var Logo_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".sidebarLogoFade-enter-active[data-v-232c1774]{transition:opacity 1.5s}.sidebarLogoFade-enter[data-v-232c1774],.sidebarLogoFade-leave-to[data-v-232c1774]{opacity:0}.sidebar-logo-container[data-v-232c1774]{position:relative;width:100%;height:50px;line-height:50px;background:#2b2f3a;text-align:center;overflow:hidden}.sidebar-logo-container .sidebar-logo-link[data-v-232c1774]{height:100%;width:100%}.sidebar-logo-container .sidebar-logo-link .sidebar-logo[data-v-232c1774]{width:32px;height:32px;vertical-align:middle;margin-right:12px}.sidebar-logo-container .sidebar-logo-link .sidebar-title[data-v-232c1774]{display:inline-block;margin:0;color:#fff;font-weight:600;line-height:50px;font-size:14px;font-family:Avenir,Helvetica Neue,Arial,Helvetica,sans-serif;vertical-align:middle}.sidebar-logo-container.collapse .sidebar-logo[data-v-232c1774]{margin-right:0}\n")();
|
|
3972
|
+
const _sfc_main$k = {
|
|
4020
3973
|
name: "SidebarLogo",
|
|
4021
3974
|
props: {
|
|
4022
3975
|
collapse: {
|
|
@@ -4034,7 +3987,7 @@ const _sfc_main$l = {
|
|
|
4034
3987
|
}
|
|
4035
3988
|
};
|
|
4036
3989
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-232c1774"), n = n(), popScopeId(), n);
|
|
4037
|
-
const _hoisted_1$
|
|
3990
|
+
const _hoisted_1$9 = ["src"];
|
|
4038
3991
|
const _hoisted_2$5 = {
|
|
4039
3992
|
key: 1,
|
|
4040
3993
|
class: "sidebar-title"
|
|
@@ -4042,7 +3995,7 @@ const _hoisted_2$5 = {
|
|
|
4042
3995
|
const _hoisted_3$5 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, "\u7CFB\u7EDF", -1));
|
|
4043
3996
|
const _hoisted_4$3 = ["src"];
|
|
4044
3997
|
const _hoisted_5$2 = { class: "sidebar-title" };
|
|
4045
|
-
function _sfc_render$
|
|
3998
|
+
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4046
3999
|
const _component_router_link = resolveComponent("router-link");
|
|
4047
4000
|
return openBlock(), createElementBlock("div", {
|
|
4048
4001
|
class: normalizeClass(["sidebar-logo-container", { collapse: $props.collapse }])
|
|
@@ -4059,7 +4012,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4059
4012
|
key: 0,
|
|
4060
4013
|
src: $options.logo,
|
|
4061
4014
|
class: "sidebar-logo"
|
|
4062
|
-
}, null, 8, _hoisted_1$
|
|
4015
|
+
}, null, 8, _hoisted_1$9)) : (openBlock(), createElementBlock("h1", _hoisted_2$5, toDisplayString($options.title), 1)),
|
|
4063
4016
|
_hoisted_3$5
|
|
4064
4017
|
]),
|
|
4065
4018
|
_: 1
|
|
@@ -4083,8 +4036,8 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4083
4036
|
})
|
|
4084
4037
|
], 2);
|
|
4085
4038
|
}
|
|
4086
|
-
var Logo = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4087
|
-
const _sfc_main$
|
|
4039
|
+
var Logo = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$a], ["__scopeId", "data-v-232c1774"]]);
|
|
4040
|
+
const _sfc_main$j = {
|
|
4088
4041
|
props: {
|
|
4089
4042
|
to: {
|
|
4090
4043
|
type: String,
|
|
@@ -4128,7 +4081,7 @@ const _sfc_main$k = {
|
|
|
4128
4081
|
}
|
|
4129
4082
|
}
|
|
4130
4083
|
};
|
|
4131
|
-
function _sfc_render$
|
|
4084
|
+
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4132
4085
|
return openBlock(), createBlock(resolveDynamicComponent($options.compType($props.to)), normalizeProps(guardReactiveProps($options.linkProps($props.to))), {
|
|
4133
4086
|
default: withCtx(() => [
|
|
4134
4087
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -4136,7 +4089,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4136
4089
|
_: 3
|
|
4137
4090
|
}, 16);
|
|
4138
4091
|
}
|
|
4139
|
-
var AppLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4092
|
+
var AppLink = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$9]]);
|
|
4140
4093
|
var FixiOSBug = {
|
|
4141
4094
|
computed: {
|
|
4142
4095
|
device() {
|
|
@@ -4161,8 +4114,9 @@ var FixiOSBug = {
|
|
|
4161
4114
|
}
|
|
4162
4115
|
}
|
|
4163
4116
|
};
|
|
4164
|
-
const _hoisted_1$
|
|
4165
|
-
const _sfc_main$
|
|
4117
|
+
const _hoisted_1$8 = { class: "menu-content" };
|
|
4118
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
4119
|
+
__name: "MenuContent",
|
|
4166
4120
|
props: {
|
|
4167
4121
|
meta: {
|
|
4168
4122
|
type: Object,
|
|
@@ -4181,16 +4135,16 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
4181
4135
|
createVNode(_component_VIcon, {
|
|
4182
4136
|
name: __props.meta.icon || "ra-all"
|
|
4183
4137
|
}, null, 8, ["name"]),
|
|
4184
|
-
createElementVNode("span", _hoisted_1$
|
|
4138
|
+
createElementVNode("span", _hoisted_1$8, toDisplayString(__props.meta.title), 1)
|
|
4185
4139
|
], 64);
|
|
4186
4140
|
};
|
|
4187
4141
|
}
|
|
4188
4142
|
});
|
|
4189
|
-
const _sfc_main$
|
|
4143
|
+
const _sfc_main$h = {
|
|
4190
4144
|
name: "SidebarItem",
|
|
4191
4145
|
components: {
|
|
4192
4146
|
AppLink,
|
|
4193
|
-
MenuContent: _sfc_main$
|
|
4147
|
+
MenuContent: _sfc_main$i
|
|
4194
4148
|
},
|
|
4195
4149
|
mixins: [FixiOSBug],
|
|
4196
4150
|
props: {
|
|
@@ -4219,17 +4173,17 @@ const _sfc_main$i = {
|
|
|
4219
4173
|
}
|
|
4220
4174
|
}
|
|
4221
4175
|
};
|
|
4222
|
-
const _hoisted_1$
|
|
4176
|
+
const _hoisted_1$7 = {
|
|
4223
4177
|
key: 0,
|
|
4224
4178
|
class: "menu-wrapper"
|
|
4225
4179
|
};
|
|
4226
|
-
function _sfc_render$
|
|
4180
|
+
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4227
4181
|
const _component_menu_content = resolveComponent("menu-content");
|
|
4228
4182
|
const _component_el_menu_item = ElMenuItem;
|
|
4229
4183
|
const _component_app_link = resolveComponent("app-link");
|
|
4230
4184
|
const _component_sidebar_item = resolveComponent("sidebar-item", true);
|
|
4231
4185
|
const _component_el_sub_menu = ElSubMenu;
|
|
4232
|
-
return $props.item.hidden !== false ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
4186
|
+
return $props.item.hidden !== false ? (openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
4233
4187
|
$props.item.meta && $props.item.meta.menuType === 2 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
4234
4188
|
$props.item.meta ? (openBlock(), createBlock(_component_app_link, {
|
|
4235
4189
|
key: 0,
|
|
@@ -4289,8 +4243,8 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4289
4243
|
}, 8, ["index", "class"])) : createCommentVNode("", true)
|
|
4290
4244
|
])) : createCommentVNode("", true);
|
|
4291
4245
|
}
|
|
4292
|
-
var SidebarItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4293
|
-
var SearchMenu_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
4246
|
+
var SidebarItem = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$8]]);
|
|
4247
|
+
var SearchMenu_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".search-menu[data-v-2a4bb160]{width:100%;padding:15px 20px 0}.search-menu[data-v-2a4bb160] .el-input__wrapper{background-color:#304156;border:1px dashed gray;border-radius:var(--el-input-border-radius, var(--el-border-radius-base));box-shadow:none}.filter-tree[data-v-2a4bb160]{max-height:500px}\n")();
|
|
4294
4248
|
function filterHidden(arr) {
|
|
4295
4249
|
return arr.filter((each) => {
|
|
4296
4250
|
var _a;
|
|
@@ -4306,7 +4260,7 @@ function filterHidden(arr) {
|
|
|
4306
4260
|
return true;
|
|
4307
4261
|
});
|
|
4308
4262
|
}
|
|
4309
|
-
const _sfc_main$
|
|
4263
|
+
const _sfc_main$g = {
|
|
4310
4264
|
data() {
|
|
4311
4265
|
return {
|
|
4312
4266
|
selected: ""
|
|
@@ -4328,7 +4282,7 @@ const _sfc_main$h = {
|
|
|
4328
4282
|
}
|
|
4329
4283
|
}
|
|
4330
4284
|
};
|
|
4331
|
-
function _sfc_render$
|
|
4285
|
+
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4332
4286
|
const _component_el_option = ElOption;
|
|
4333
4287
|
const _component_el_option_group = ElOptionGroup;
|
|
4334
4288
|
const _component_el_select = ElSelect;
|
|
@@ -4376,7 +4330,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4376
4330
|
_: 1
|
|
4377
4331
|
}, 8, ["modelValue", "onChange"]);
|
|
4378
4332
|
}
|
|
4379
|
-
var SearchMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4333
|
+
var SearchMenu = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$7], ["__scopeId", "data-v-2a4bb160"]]);
|
|
4380
4334
|
var PageType = /* @__PURE__ */ ((PageType2) => {
|
|
4381
4335
|
PageType2[PageType2["custom"] = 0] = "custom";
|
|
4382
4336
|
PageType2[PageType2["list"] = 1] = "list";
|
|
@@ -4395,8 +4349,8 @@ var MenuType = /* @__PURE__ */ ((MenuType2) => {
|
|
|
4395
4349
|
MenuType2[MenuType2["page"] = 3] = "page";
|
|
4396
4350
|
return MenuType2;
|
|
4397
4351
|
})(MenuType || {});
|
|
4398
|
-
var index_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
|
|
4399
|
-
const _sfc_main$
|
|
4352
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$1 = /* @__PURE__ */ (() => "[data-v-b273e3e8] .el-scrollbar__wrap{overflow:scroll}.menu-section[data-v-b273e3e8]{height:30px;font-size:14px;display:table-cell;vertical-align:bottom;padding-left:20px;color:#97a8be;padding-top:5px}\n")();
|
|
4353
|
+
const _sfc_main$f = defineComponent({
|
|
4400
4354
|
components: { SidebarItem, Logo, SearchMenu },
|
|
4401
4355
|
computed: __spreadProps(__spreadValues({}, mapGetters(["sidebar", "remoteRouter", "customRouter"])), {
|
|
4402
4356
|
routes() {
|
|
@@ -4451,7 +4405,7 @@ const _sfc_main$g = defineComponent({
|
|
|
4451
4405
|
}
|
|
4452
4406
|
}
|
|
4453
4407
|
});
|
|
4454
|
-
function _sfc_render$
|
|
4408
|
+
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4455
4409
|
const _component_logo = resolveComponent("logo");
|
|
4456
4410
|
const _component_search_menu = resolveComponent("search-menu");
|
|
4457
4411
|
const _component_sidebar_item = resolveComponent("sidebar-item");
|
|
@@ -4499,10 +4453,11 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4499
4453
|
})
|
|
4500
4454
|
], 2);
|
|
4501
4455
|
}
|
|
4502
|
-
var Sidebar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4503
|
-
var AppMain_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
4504
|
-
const _hoisted_1$
|
|
4505
|
-
const _sfc_main$
|
|
4456
|
+
var Sidebar = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$6], ["__scopeId", "data-v-b273e3e8"]]);
|
|
4457
|
+
var AppMain_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".app-main[data-v-0f7fcf09]{min-height:calc(100vh - 50px);width:100%;position:relative;overflow:hidden;padding:20px}.fixed-header+.app-main[data-v-0f7fcf09]{padding-top:50px}\n")();
|
|
4458
|
+
const _hoisted_1$6 = { class: "app-main" };
|
|
4459
|
+
const _sfc_main$e = {
|
|
4460
|
+
__name: "AppMain",
|
|
4506
4461
|
setup(__props) {
|
|
4507
4462
|
const route = useRoute$1();
|
|
4508
4463
|
const include = [];
|
|
@@ -4517,7 +4472,7 @@ const _sfc_main$f = {
|
|
|
4517
4472
|
return (_ctx, _cache) => {
|
|
4518
4473
|
const _component_router_view = resolveComponent("router-view");
|
|
4519
4474
|
const _component_el_backtop = ElBacktop;
|
|
4520
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
4475
|
+
return openBlock(), createElementBlock("section", _hoisted_1$6, [
|
|
4521
4476
|
(openBlock(), createBlock(_component_router_view, {
|
|
4522
4477
|
key: _ctx.$route.fullPath + key.value
|
|
4523
4478
|
})),
|
|
@@ -4526,10 +4481,11 @@ const _sfc_main$f = {
|
|
|
4526
4481
|
};
|
|
4527
4482
|
}
|
|
4528
4483
|
};
|
|
4529
|
-
var AppMain = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4530
|
-
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
4531
|
-
const _hoisted_1$
|
|
4532
|
-
const _sfc_main$
|
|
4484
|
+
var AppMain = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-0f7fcf09"]]);
|
|
4485
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => '[data-v-6676f7df]:export{menuText:#bfcbd9;menuActiveText:#409EFF;subMenuActiveText:#f4f4f5;menuBg:#304156;menuHover:#263445;subMenuBg:#1f2d3d;subMenuHover:#001528;sideBarWidth:210px}.app-wrapper[data-v-6676f7df]{position:relative;height:100%;width:100%}.app-wrapper[data-v-6676f7df]:after{content:"";display:table;clear:both}.app-wrapper.mobile.openSidebar[data-v-6676f7df]{position:fixed;top:0}.drawer-bg[data-v-6676f7df]{background:#000;opacity:.3;width:100%;top:0;height:100%;position:absolute;z-index:999}.fixed-header[data-v-6676f7df]{position:fixed;top:0;right:0;z-index:9;width:calc(100% - 210px);transition:width .28s}.hideSidebar .fixed-header[data-v-6676f7df]{width:calc(100% - 54px)}.mobile .fixed-header[data-v-6676f7df]{width:100%}\n')();
|
|
4486
|
+
const _hoisted_1$5 = { class: "main-container" };
|
|
4487
|
+
const _sfc_main$d = {
|
|
4488
|
+
__name: "index",
|
|
4533
4489
|
setup(__props) {
|
|
4534
4490
|
const store2 = useStore();
|
|
4535
4491
|
const { body } = document;
|
|
@@ -4578,7 +4534,7 @@ const _sfc_main$e = {
|
|
|
4578
4534
|
onClick: handleClickOutside
|
|
4579
4535
|
})) : createCommentVNode("", true),
|
|
4580
4536
|
createVNode(unref(Sidebar), { class: "sidebar-container" }),
|
|
4581
|
-
createElementVNode("div", _hoisted_1$
|
|
4537
|
+
createElementVNode("div", _hoisted_1$5, [
|
|
4582
4538
|
createElementVNode("div", {
|
|
4583
4539
|
class: normalizeClass({ "fixed-header": unref(fixedHeader) })
|
|
4584
4540
|
}, [
|
|
@@ -4590,10 +4546,10 @@ const _sfc_main$e = {
|
|
|
4590
4546
|
};
|
|
4591
4547
|
}
|
|
4592
4548
|
};
|
|
4593
|
-
var Layout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4549
|
+
var Layout = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-6676f7df"]]);
|
|
4594
4550
|
class BaseSso {
|
|
4595
4551
|
constructor() {
|
|
4596
|
-
|
|
4552
|
+
this.type = "qrcode";
|
|
4597
4553
|
}
|
|
4598
4554
|
flag() {
|
|
4599
4555
|
return void 0;
|
|
@@ -4607,14 +4563,14 @@ class BaseSso {
|
|
|
4607
4563
|
class DingTalk extends BaseSso {
|
|
4608
4564
|
constructor(options) {
|
|
4609
4565
|
super();
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4566
|
+
this.type = "qrcode";
|
|
4567
|
+
this.qrCodeUrl = "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}";
|
|
4568
|
+
this.reloadUrl = "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}";
|
|
4569
|
+
this.elId = "";
|
|
4570
|
+
this.appid = "";
|
|
4571
|
+
this.iframe = new HTMLIFrameElement();
|
|
4572
|
+
this.redirectUri = "";
|
|
4573
|
+
this.style = "";
|
|
4618
4574
|
}
|
|
4619
4575
|
flag() {
|
|
4620
4576
|
const code2 = getQueryParam("code");
|
|
@@ -4668,19 +4624,19 @@ function sso(options) {
|
|
|
4668
4624
|
}
|
|
4669
4625
|
return void 0;
|
|
4670
4626
|
}
|
|
4671
|
-
var login_vue_vue_type_style_index_0_lang = "";
|
|
4672
|
-
const _hoisted_1$
|
|
4627
|
+
var login_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => "#login{width:100%;height:100%;background:#2d3a4b;text-align:center;display:flex;flex-direction:column;padding-top:150px}#login #title{color:#fff}#login #form{width:300px;margin:10px auto;display:flex;flex-direction:column;justify-content:center}#login #form .input{width:300px;height:40px;margin:10px auto;padding:10px}#login #form .button{width:300px;height:40px;border:1px solid #fff;background:#fff}#login .tips,#login .sso{padding:10px 0;display:flex;justify-content:flex-start;color:gray}\n")();
|
|
4628
|
+
const _hoisted_1$4 = { id: "login" };
|
|
4673
4629
|
const _hoisted_2$4 = /* @__PURE__ */ createElementVNode("h1", { id: "title" }, "\u767B\u5F55", -1);
|
|
4674
4630
|
const _hoisted_3$4 = { id: "form" };
|
|
4675
4631
|
const _hoisted_4$2 = { class: "tips" };
|
|
4676
4632
|
const _hoisted_5$1 = { class: "sso" };
|
|
4677
4633
|
const _hoisted_6$1 = /* @__PURE__ */ createElementVNode("div", { id: "sso-qrcode" }, null, -1);
|
|
4678
|
-
const _sfc_main$
|
|
4634
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
4635
|
+
__name: "login",
|
|
4679
4636
|
setup(__props) {
|
|
4680
4637
|
const router2 = useRouter();
|
|
4681
4638
|
const route = useRoute$1();
|
|
4682
4639
|
const tips = computed(() => store.state.settings.loginTips);
|
|
4683
|
-
const allsso = allSso();
|
|
4684
4640
|
const data = ref({
|
|
4685
4641
|
username: "",
|
|
4686
4642
|
password: ""
|
|
@@ -4698,7 +4654,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
4698
4654
|
};
|
|
4699
4655
|
ref();
|
|
4700
4656
|
return (_ctx, _cache) => {
|
|
4701
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4657
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
4702
4658
|
_hoisted_2$4,
|
|
4703
4659
|
createElementVNode("form", _hoisted_3$4, [
|
|
4704
4660
|
withDirectives(createElementVNode("input", {
|
|
@@ -4726,7 +4682,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
4726
4682
|
]),
|
|
4727
4683
|
createElementVNode("div", _hoisted_5$1, [
|
|
4728
4684
|
_hoisted_6$1,
|
|
4729
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(Object.keys(
|
|
4685
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(Object.keys([]), (item) => {
|
|
4730
4686
|
return openBlock(), createElementBlock("div", { key: item }, toDisplayString(item), 1);
|
|
4731
4687
|
}), 128))
|
|
4732
4688
|
])
|
|
@@ -4735,12 +4691,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
4735
4691
|
};
|
|
4736
4692
|
}
|
|
4737
4693
|
});
|
|
4738
|
-
var _404_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
4739
|
-
const _sfc_main$
|
|
4694
|
+
var _404_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".not-found[data-v-1c63bbe6]{background-color:#2f3242;width:100%;height:100%}svg[data-v-1c63bbe6]{position:absolute;top:50%;left:50%;margin-top:-250px;margin-left:-400px}.message-box[data-v-1c63bbe6]{height:200px;width:380px;position:absolute;top:50%;left:50%;margin-top:-100px;margin-left:50px;color:#fff;font-family:Roboto;font-weight:300}.message-box h1[data-v-1c63bbe6]{font-size:60px;line-height:46px;margin-bottom:40px}.buttons-con .action-link-wrap[data-v-1c63bbe6]{margin-top:40px}.buttons-con .action-link-wrap a[data-v-1c63bbe6]{background:#68c950;padding:8px 25px;border-radius:4px;color:#fff;font-weight:700;font-size:14px;transition:all .3s linear;cursor:pointer;text-decoration:none;margin-right:10px}.buttons-con .action-link-wrap a[data-v-1c63bbe6]:hover{background:#5A5C6C;color:#fff}#Polygon-1[data-v-1c63bbe6],#Polygon-2[data-v-1c63bbe6],#Polygon-3[data-v-1c63bbe6],#Polygon-4[data-v-1c63bbe6],#Polygon-4[data-v-1c63bbe6],#Polygon-5[data-v-1c63bbe6]{animation:float-1c63bbe6 1s infinite ease-in-out alternate}#Polygon-2[data-v-1c63bbe6]{animation-delay:.2s}#Polygon-3[data-v-1c63bbe6]{animation-delay:.4s}#Polygon-4[data-v-1c63bbe6]{animation-delay:.6s}#Polygon-5[data-v-1c63bbe6]{animation-delay:.8s}@keyframes float-1c63bbe6{to{transform:translateY(20px)}}@media (max-width: 450px){svg[data-v-1c63bbe6]{position:absolute;top:50%;left:50%;margin-top:-250px;margin-left:-190px}.message-box[data-v-1c63bbe6]{top:50%;left:50%;margin-top:-100px;margin-left:-190px;text-align:center}}\n")();
|
|
4695
|
+
const _sfc_main$b = {
|
|
4740
4696
|
name: "NotFoundPage"
|
|
4741
4697
|
};
|
|
4742
4698
|
const _withScopeId = (n) => (pushScopeId("data-v-1c63bbe6"), n = n(), popScopeId(), n);
|
|
4743
|
-
const _hoisted_1$
|
|
4699
|
+
const _hoisted_1$3 = { class: "not-found" };
|
|
4744
4700
|
const _hoisted_2$3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
4745
4701
|
width: "380px",
|
|
4746
4702
|
height: "500px",
|
|
@@ -4811,10 +4767,10 @@ const _hoisted_4$1 = [
|
|
|
4811
4767
|
_hoisted_2$3,
|
|
4812
4768
|
_hoisted_3$3
|
|
4813
4769
|
];
|
|
4814
|
-
function _sfc_render$
|
|
4815
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4770
|
+
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4771
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, _hoisted_4$1);
|
|
4816
4772
|
}
|
|
4817
|
-
var NotFoundPage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4773
|
+
var NotFoundPage = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$5], ["__scopeId", "data-v-1c63bbe6"]]);
|
|
4818
4774
|
const routes = [
|
|
4819
4775
|
{
|
|
4820
4776
|
path: "/",
|
|
@@ -4835,7 +4791,7 @@ const routes = [
|
|
|
4835
4791
|
},
|
|
4836
4792
|
{
|
|
4837
4793
|
path: "/login",
|
|
4838
|
-
component: _sfc_main$
|
|
4794
|
+
component: _sfc_main$c,
|
|
4839
4795
|
meta: { title: "\u7528\u6237\u767B\u5F55", menuType: 0 },
|
|
4840
4796
|
hidden: true
|
|
4841
4797
|
},
|
|
@@ -4886,9 +4842,10 @@ function permission(router2) {
|
|
|
4886
4842
|
next();
|
|
4887
4843
|
return;
|
|
4888
4844
|
}
|
|
4845
|
+
const redirect = to.query.redirect || to.path;
|
|
4889
4846
|
const s = sso({});
|
|
4890
4847
|
if (!s) {
|
|
4891
|
-
next(`/login?redirect=${
|
|
4848
|
+
next(`/login?redirect=${redirect}`);
|
|
4892
4849
|
return;
|
|
4893
4850
|
}
|
|
4894
4851
|
const flag = s.flag();
|
|
@@ -4896,22 +4853,22 @@ function permission(router2) {
|
|
|
4896
4853
|
next();
|
|
4897
4854
|
return;
|
|
4898
4855
|
}
|
|
4899
|
-
s.jumpToLoginPage(next, `/login?redirect=${
|
|
4856
|
+
s.jumpToLoginPage(next, `/login?redirect=${redirect}`);
|
|
4900
4857
|
});
|
|
4901
4858
|
}
|
|
4902
|
-
var VLoading_vue_vue_type_style_index_0_lang = "";
|
|
4903
|
-
const _sfc_main$
|
|
4904
|
-
const _hoisted_1$
|
|
4859
|
+
var VLoading_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => ".loading{width:100%;min-height:calc(100vh - 50px);text-align:center;line-height:calc(100vh - 50px)}\n")();
|
|
4860
|
+
const _sfc_main$a = {};
|
|
4861
|
+
const _hoisted_1$2 = { class: "loading preloader" };
|
|
4905
4862
|
const _hoisted_2$2 = /* @__PURE__ */ createElementVNode("div", { class: "preloader-inner" }, null, -1);
|
|
4906
4863
|
const _hoisted_3$2 = [
|
|
4907
4864
|
_hoisted_2$2
|
|
4908
4865
|
];
|
|
4909
|
-
function _sfc_render$
|
|
4910
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4866
|
+
function _sfc_render$4(_ctx, _cache) {
|
|
4867
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, _hoisted_3$2);
|
|
4911
4868
|
}
|
|
4912
|
-
var
|
|
4913
|
-
const _sfc_main$
|
|
4914
|
-
components: { VLoading:
|
|
4869
|
+
var __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$4]]);
|
|
4870
|
+
const _sfc_main$9 = defineComponent({
|
|
4871
|
+
components: { VLoading: __unplugin_components_2 },
|
|
4915
4872
|
props: {
|
|
4916
4873
|
schemaHandler: {
|
|
4917
4874
|
type: Function,
|
|
@@ -4929,7 +4886,8 @@ const _sfc_main$a = defineComponent({
|
|
|
4929
4886
|
loading: true,
|
|
4930
4887
|
haveNotice: false,
|
|
4931
4888
|
notice: {},
|
|
4932
|
-
schema: {}
|
|
4889
|
+
schema: {},
|
|
4890
|
+
owners: []
|
|
4933
4891
|
};
|
|
4934
4892
|
},
|
|
4935
4893
|
beforeCreate() {
|
|
@@ -4950,21 +4908,31 @@ const _sfc_main$a = defineComponent({
|
|
|
4950
4908
|
}
|
|
4951
4909
|
delete data["notice"];
|
|
4952
4910
|
}
|
|
4911
|
+
this.owners = data.ownerNames || [];
|
|
4953
4912
|
this.schema = this.$props.schemaHandler(data, project);
|
|
4954
4913
|
store.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
|
|
4955
4914
|
});
|
|
4956
4915
|
}
|
|
4957
4916
|
});
|
|
4958
|
-
function _sfc_render$
|
|
4917
|
+
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4918
|
+
const _component_el_alert = ElAlert;
|
|
4959
4919
|
const _component_ElAlert = ElAlert;
|
|
4960
|
-
const _component_VLoading =
|
|
4920
|
+
const _component_VLoading = __unplugin_components_2;
|
|
4961
4921
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
4962
|
-
_ctx.
|
|
4963
|
-
|
|
4922
|
+
_ctx.owners.length > 0 ? (openBlock(), createBlock(_component_el_alert, {
|
|
4923
|
+
key: 0,
|
|
4924
|
+
title: `\u8BE5\u9875\u9762\u529F\u80FD\u5BF9\u5E94\u5F00\u53D1: [ ${_ctx.owners.join(", ")} ] \u6709\u95EE\u9898\u53EF\u76F4\u63A5\u4F01\u5FAE\u53CD\u9988`,
|
|
4925
|
+
type: "info",
|
|
4926
|
+
style: { "margin": "0 0 20px 0" },
|
|
4927
|
+
closable: false
|
|
4928
|
+
}, null, 8, ["title"])) : createCommentVNode("", true),
|
|
4929
|
+
_ctx.haveNotice ? (openBlock(), createBlock(_component_ElAlert, mergeProps({ key: 1 }, _ctx.notice, { style: { "margin": "0 0 20px 0" } }), null, 16)) : createCommentVNode("", true),
|
|
4930
|
+
_ctx.loading ? (openBlock(), createBlock(_component_VLoading, { key: 2 })) : renderSlot(_ctx.$slots, "default", normalizeProps(mergeProps({ key: 3 }, _ctx.schema)))
|
|
4964
4931
|
], 64);
|
|
4965
4932
|
}
|
|
4966
|
-
var PageLoad = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4967
|
-
const _sfc_main$
|
|
4933
|
+
var PageLoad = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$3]]);
|
|
4934
|
+
const _sfc_main$8 = {
|
|
4935
|
+
__name: "table",
|
|
4968
4936
|
setup(__props) {
|
|
4969
4937
|
const schemaHandler = (schema, project) => {
|
|
4970
4938
|
if (schema.orderBy) {
|
|
@@ -4995,9 +4963,10 @@ const _sfc_main$9 = {
|
|
|
4995
4963
|
};
|
|
4996
4964
|
}
|
|
4997
4965
|
};
|
|
4998
|
-
const _sfc_main$
|
|
4966
|
+
const _sfc_main$7 = {
|
|
4967
|
+
__name: "form",
|
|
4999
4968
|
setup(__props) {
|
|
5000
|
-
const route = useRoute();
|
|
4969
|
+
const route = useRoute$1();
|
|
5001
4970
|
const schemaHandler = (schema, project) => {
|
|
5002
4971
|
const allowedProps = Object.keys(VForm.props);
|
|
5003
4972
|
Object.keys(schema).forEach((key) => {
|
|
@@ -5023,7 +4992,8 @@ const _sfc_main$8 = {
|
|
|
5023
4992
|
schema = merge({
|
|
5024
4993
|
saveApi: project + "/save",
|
|
5025
4994
|
afterSubmit: "goback",
|
|
5026
|
-
afterReset: "goback"
|
|
4995
|
+
afterReset: "goback",
|
|
4996
|
+
mod: route.params.id ? "edit" : "create"
|
|
5027
4997
|
}, schema);
|
|
5028
4998
|
return schema;
|
|
5029
4999
|
};
|
|
@@ -5037,8 +5007,8 @@ const _sfc_main$8 = {
|
|
|
5037
5007
|
};
|
|
5038
5008
|
}
|
|
5039
5009
|
};
|
|
5040
|
-
var _sfc_main$
|
|
5041
|
-
name: "
|
|
5010
|
+
var _sfc_main$6 = defineComponent({
|
|
5011
|
+
name: "VTree",
|
|
5042
5012
|
components: {
|
|
5043
5013
|
VForm
|
|
5044
5014
|
},
|
|
@@ -5073,6 +5043,20 @@ var _sfc_main$7 = defineComponent({
|
|
|
5073
5043
|
default: () => {
|
|
5074
5044
|
return [];
|
|
5075
5045
|
}
|
|
5046
|
+
},
|
|
5047
|
+
treeProps: {
|
|
5048
|
+
type: Object,
|
|
5049
|
+
default: () => {
|
|
5050
|
+
}
|
|
5051
|
+
},
|
|
5052
|
+
maxDepth: {
|
|
5053
|
+
type: Number,
|
|
5054
|
+
default: 3
|
|
5055
|
+
},
|
|
5056
|
+
props: {
|
|
5057
|
+
type: Object,
|
|
5058
|
+
default: () => {
|
|
5059
|
+
}
|
|
5076
5060
|
}
|
|
5077
5061
|
},
|
|
5078
5062
|
data() {
|
|
@@ -5080,20 +5064,24 @@ var _sfc_main$7 = defineComponent({
|
|
|
5080
5064
|
type: 0,
|
|
5081
5065
|
treeData: [],
|
|
5082
5066
|
formData: {},
|
|
5083
|
-
|
|
5084
|
-
showCheckbox: true,
|
|
5067
|
+
localTreeProps: merge({
|
|
5085
5068
|
"default-expand-all": true,
|
|
5086
5069
|
"expand-on-click-node": false,
|
|
5087
5070
|
props: {
|
|
5088
5071
|
children: "children",
|
|
5089
5072
|
label: "label"
|
|
5090
5073
|
}
|
|
5091
|
-
},
|
|
5074
|
+
}, this.$props.treeProps),
|
|
5092
5075
|
formkey: 0,
|
|
5076
|
+
tablekey: 0,
|
|
5093
5077
|
menuOptions: {}
|
|
5094
5078
|
};
|
|
5095
5079
|
},
|
|
5096
5080
|
computed: {
|
|
5081
|
+
formType() {
|
|
5082
|
+
const m = ["", "\u65B0\u5EFA", "\u7F16\u8F91"];
|
|
5083
|
+
return m[this.type];
|
|
5084
|
+
},
|
|
5097
5085
|
formProps() {
|
|
5098
5086
|
let saveApi = strVarReplace(this.$props.saveApi, this.formData);
|
|
5099
5087
|
if (this.type === 1) {
|
|
@@ -5123,9 +5111,11 @@ var _sfc_main$7 = defineComponent({
|
|
|
5123
5111
|
this.formData = data;
|
|
5124
5112
|
this.formkey++;
|
|
5125
5113
|
},
|
|
5126
|
-
append(data) {
|
|
5114
|
+
append(data, node) {
|
|
5115
|
+
var _a, _b, _c;
|
|
5127
5116
|
this.type = 1;
|
|
5128
|
-
const newChild = { pid: data.id };
|
|
5117
|
+
const newChild = __spreadValues({ pid: data.id, [(_b = (_a = this.$props.props) == null ? void 0 : _a.levelKey) != null ? _b : "level"]: node.level + 1 }, effectDataTrans((_c = this.$props.props) == null ? void 0 : _c.effectData, data));
|
|
5118
|
+
console.log(111, newChild);
|
|
5129
5119
|
if (!data.children) {
|
|
5130
5120
|
data.children = [];
|
|
5131
5121
|
}
|
|
@@ -5134,6 +5124,21 @@ var _sfc_main$7 = defineComponent({
|
|
|
5134
5124
|
data.children.push(newChild);
|
|
5135
5125
|
this.treeData = [...this.treeData];
|
|
5136
5126
|
},
|
|
5127
|
+
canAppend(data, node) {
|
|
5128
|
+
if (!data[this.localTreeProps.props.label]) {
|
|
5129
|
+
return false;
|
|
5130
|
+
}
|
|
5131
|
+
return node.level < this.$props.maxDepth;
|
|
5132
|
+
},
|
|
5133
|
+
appendNew() {
|
|
5134
|
+
var _a, _b;
|
|
5135
|
+
this.type = 1;
|
|
5136
|
+
const newChild = { pid: 0, [(_b = (_a = this.$props.props) == null ? void 0 : _a.levelKey) != null ? _b : "level"]: 1 };
|
|
5137
|
+
this.formData = newChild;
|
|
5138
|
+
this.formkey++;
|
|
5139
|
+
this.tablekey++;
|
|
5140
|
+
this.treeData = [...this.treeData, newChild];
|
|
5141
|
+
},
|
|
5137
5142
|
remove(data) {
|
|
5138
5143
|
this.$http.request({
|
|
5139
5144
|
method: "DELETE",
|
|
@@ -5150,6 +5155,8 @@ var _sfc_main$7 = defineComponent({
|
|
|
5150
5155
|
setTimeout(() => {
|
|
5151
5156
|
this.loadTree();
|
|
5152
5157
|
this.formData = {};
|
|
5158
|
+
this.tablekey++;
|
|
5159
|
+
this.type = 0;
|
|
5153
5160
|
}, 200);
|
|
5154
5161
|
},
|
|
5155
5162
|
allowDrap(draggingNode) {
|
|
@@ -5174,18 +5181,21 @@ var _sfc_main$7 = defineComponent({
|
|
|
5174
5181
|
}
|
|
5175
5182
|
}
|
|
5176
5183
|
});
|
|
5177
|
-
var VTree_vue_vue_type_style_index_0_lang = "";
|
|
5178
|
-
const _hoisted_1$
|
|
5179
|
-
const _hoisted_2$1 = /* @__PURE__ */ createElementVNode("span", null, "\
|
|
5180
|
-
const _hoisted_3$1 = /* @__PURE__ */ createTextVNode("\
|
|
5184
|
+
var VTree_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => ".card-header{display:flex;justify-content:space-between;align-items:center}.tree-box,.tree-tree .tree-form{height:100%}.tree-action{flex:1;display:flex;align-items:center;justify-content:space-between;font-size:14px;padding-right:8px}\n")();
|
|
5185
|
+
const _hoisted_1$1 = { class: "card-header" };
|
|
5186
|
+
const _hoisted_2$1 = /* @__PURE__ */ createElementVNode("span", null, "\u5217\u8868", -1);
|
|
5187
|
+
const _hoisted_3$1 = /* @__PURE__ */ createTextVNode("\u6DFB\u52A0");
|
|
5181
5188
|
const _hoisted_4 = { class: "tree-action" };
|
|
5182
|
-
const _hoisted_5 =
|
|
5183
|
-
const _hoisted_6 =
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
const
|
|
5188
|
-
|
|
5189
|
+
const _hoisted_5 = { key: 0 };
|
|
5190
|
+
const _hoisted_6 = {
|
|
5191
|
+
key: 1,
|
|
5192
|
+
style: { "color": "#E6A23C" }
|
|
5193
|
+
};
|
|
5194
|
+
const _hoisted_7 = /* @__PURE__ */ createTextVNode("\u7F16\u8F91");
|
|
5195
|
+
const _hoisted_8 = /* @__PURE__ */ createTextVNode("\u6DFB\u52A0");
|
|
5196
|
+
const _hoisted_9 = /* @__PURE__ */ createTextVNode("\u5220\u9664");
|
|
5197
|
+
const _hoisted_10 = { class: "card-header" };
|
|
5198
|
+
function _sfc_render$2(_ctx, _cache) {
|
|
5189
5199
|
const _component_el_button = ElButton;
|
|
5190
5200
|
const _component_el_tree = ElTree;
|
|
5191
5201
|
const _component_el_card = ElCard;
|
|
@@ -5204,11 +5214,11 @@ function _sfc_render$3(_ctx, _cache) {
|
|
|
5204
5214
|
default: withCtx(() => [
|
|
5205
5215
|
createVNode(_component_el_card, { shadow: "never" }, {
|
|
5206
5216
|
header: withCtx(() => [
|
|
5207
|
-
createElementVNode("div", _hoisted_1$
|
|
5217
|
+
createElementVNode("div", _hoisted_1$1, [
|
|
5208
5218
|
_hoisted_2$1,
|
|
5209
5219
|
createVNode(_component_el_button, {
|
|
5210
|
-
|
|
5211
|
-
|
|
5220
|
+
type: "text",
|
|
5221
|
+
onClick: _cache[0] || (_cache[0] = () => _ctx.appendNew())
|
|
5212
5222
|
}, {
|
|
5213
5223
|
default: withCtx(() => [
|
|
5214
5224
|
_hoisted_3$1
|
|
@@ -5218,10 +5228,12 @@ function _sfc_render$3(_ctx, _cache) {
|
|
|
5218
5228
|
])
|
|
5219
5229
|
]),
|
|
5220
5230
|
default: withCtx(() => [
|
|
5221
|
-
|
|
5231
|
+
(_ctx.treeData || []).length > 0 ? (openBlock(), createBlock(_component_el_tree, mergeProps({
|
|
5232
|
+
key: 0,
|
|
5233
|
+
style: { "height": "100vh" },
|
|
5222
5234
|
data: _ctx.treeData,
|
|
5223
5235
|
"node-key": "id"
|
|
5224
|
-
}, _ctx.
|
|
5236
|
+
}, _ctx.localTreeProps, {
|
|
5225
5237
|
draggable: "",
|
|
5226
5238
|
"allow-drag": _ctx.allowDrap,
|
|
5227
5239
|
"allow-drop": _ctx.allowDrop,
|
|
@@ -5229,37 +5241,38 @@ function _sfc_render$3(_ctx, _cache) {
|
|
|
5229
5241
|
}), {
|
|
5230
5242
|
default: withCtx(({ node, data }) => [
|
|
5231
5243
|
createElementVNode("span", _hoisted_4, [
|
|
5232
|
-
|
|
5244
|
+
data[_ctx.localTreeProps.props.label] ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(data[_ctx.localTreeProps.props.label]), 1)) : (openBlock(), createElementBlock("span", _hoisted_6, "\u8BF7\u5728\u53F3\u4FA7\u8868\u5355\u4E2D\u4FEE\u6539 --> ")),
|
|
5233
5245
|
createElementVNode("span", null, [
|
|
5234
|
-
data.label ? (openBlock(), createBlock(_component_el_button, {
|
|
5246
|
+
data[_ctx.localTreeProps.props.label] ? (openBlock(), createBlock(_component_el_button, {
|
|
5235
5247
|
key: 0,
|
|
5236
5248
|
class: "button",
|
|
5237
5249
|
type: "text",
|
|
5238
5250
|
onClick: () => _ctx.onclick(data)
|
|
5239
5251
|
}, {
|
|
5240
5252
|
default: withCtx(() => [
|
|
5241
|
-
|
|
5253
|
+
_hoisted_7
|
|
5242
5254
|
]),
|
|
5243
5255
|
_: 2
|
|
5244
5256
|
}, 1032, ["onClick"])) : createCommentVNode("", true),
|
|
5245
|
-
|
|
5257
|
+
_ctx.canAppend(data, node) ? (openBlock(), createBlock(_component_el_button, {
|
|
5258
|
+
key: 1,
|
|
5246
5259
|
class: "button",
|
|
5247
5260
|
type: "text",
|
|
5248
|
-
onClick: () => _ctx.append(data)
|
|
5261
|
+
onClick: () => _ctx.append(data, node)
|
|
5249
5262
|
}, {
|
|
5250
5263
|
default: withCtx(() => [
|
|
5251
|
-
|
|
5264
|
+
_hoisted_8
|
|
5252
5265
|
]),
|
|
5253
5266
|
_: 2
|
|
5254
|
-
}, 1032, ["onClick"]),
|
|
5267
|
+
}, 1032, ["onClick"])) : createCommentVNode("", true),
|
|
5255
5268
|
data.children === void 0 || data.children.length === 0 ? (openBlock(), createBlock(_component_el_button, {
|
|
5256
|
-
key:
|
|
5269
|
+
key: 2,
|
|
5257
5270
|
class: "button",
|
|
5258
5271
|
type: "text",
|
|
5259
5272
|
onClick: () => _ctx.remove(data)
|
|
5260
5273
|
}, {
|
|
5261
5274
|
default: withCtx(() => [
|
|
5262
|
-
|
|
5275
|
+
_hoisted_9
|
|
5263
5276
|
]),
|
|
5264
5277
|
_: 2
|
|
5265
5278
|
}, 1032, ["onClick"])) : createCommentVNode("", true)
|
|
@@ -5267,7 +5280,7 @@ function _sfc_render$3(_ctx, _cache) {
|
|
|
5267
5280
|
])
|
|
5268
5281
|
]),
|
|
5269
5282
|
_: 1
|
|
5270
|
-
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])
|
|
5283
|
+
}, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : createCommentVNode("", true)
|
|
5271
5284
|
]),
|
|
5272
5285
|
_: 1
|
|
5273
5286
|
})
|
|
@@ -5279,30 +5292,24 @@ function _sfc_render$3(_ctx, _cache) {
|
|
|
5279
5292
|
class: "tree-form"
|
|
5280
5293
|
}, {
|
|
5281
5294
|
default: withCtx(() => [
|
|
5282
|
-
|
|
5295
|
+
_ctx.type ? (openBlock(), createBlock(_component_el_card, {
|
|
5296
|
+
key: 0,
|
|
5297
|
+
shadow: "never"
|
|
5298
|
+
}, {
|
|
5283
5299
|
header: withCtx(() => [
|
|
5284
|
-
createElementVNode("div",
|
|
5285
|
-
|
|
5286
|
-
createVNode(_component_el_button, {
|
|
5287
|
-
class: "button",
|
|
5288
|
-
type: "text"
|
|
5289
|
-
}, {
|
|
5290
|
-
default: withCtx(() => [
|
|
5291
|
-
_hoisted_10
|
|
5292
|
-
]),
|
|
5293
|
-
_: 1
|
|
5294
|
-
})
|
|
5300
|
+
createElementVNode("div", _hoisted_10, [
|
|
5301
|
+
createElementVNode("span", null, toDisplayString(_ctx.formType), 1)
|
|
5295
5302
|
])
|
|
5296
5303
|
]),
|
|
5297
5304
|
default: withCtx(() => [
|
|
5298
5305
|
(openBlock(), createBlock(_component_v_form, mergeProps({
|
|
5299
5306
|
key: _ctx.formkey,
|
|
5300
5307
|
modelValue: _ctx.formData,
|
|
5301
|
-
"onUpdate:modelValue": _cache[
|
|
5308
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.formData = $event)
|
|
5302
5309
|
}, _ctx.formProps, { onSubmit: _ctx.submit }), null, 16, ["modelValue", "onSubmit"]))
|
|
5303
5310
|
]),
|
|
5304
5311
|
_: 1
|
|
5305
|
-
})
|
|
5312
|
+
})) : createCommentVNode("", true)
|
|
5306
5313
|
]),
|
|
5307
5314
|
_: 1
|
|
5308
5315
|
})
|
|
@@ -5310,8 +5317,9 @@ function _sfc_render$3(_ctx, _cache) {
|
|
|
5310
5317
|
_: 1
|
|
5311
5318
|
});
|
|
5312
5319
|
}
|
|
5313
|
-
var VTree = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5314
|
-
const _sfc_main$
|
|
5320
|
+
var VTree = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$2]]);
|
|
5321
|
+
const _sfc_main$5 = {
|
|
5322
|
+
__name: "tree",
|
|
5315
5323
|
setup(__props) {
|
|
5316
5324
|
const schemaHandler = (schema, project) => {
|
|
5317
5325
|
const allowedProps = Object.keys(VTree.props);
|
|
@@ -5332,7 +5340,8 @@ const _sfc_main$6 = {
|
|
|
5332
5340
|
};
|
|
5333
5341
|
}
|
|
5334
5342
|
};
|
|
5335
|
-
const _sfc_main$
|
|
5343
|
+
const _sfc_main$4 = {
|
|
5344
|
+
__name: "container",
|
|
5336
5345
|
setup(__props) {
|
|
5337
5346
|
const key = ref(0);
|
|
5338
5347
|
onBeforeRouteUpdate(() => {
|
|
@@ -5416,45 +5425,7 @@ function makeOption(id, config, data) {
|
|
|
5416
5425
|
console.log(111, opt);
|
|
5417
5426
|
return opt;
|
|
5418
5427
|
}
|
|
5419
|
-
var
|
|
5420
|
-
const _sfc_main$4 = {
|
|
5421
|
-
name: "VChart",
|
|
5422
|
-
props: {
|
|
5423
|
-
options: {
|
|
5424
|
-
type: Object,
|
|
5425
|
-
default: () => {
|
|
5426
|
-
}
|
|
5427
|
-
}
|
|
5428
|
-
},
|
|
5429
|
-
setup(props) {
|
|
5430
|
-
const chartDom = ref(null);
|
|
5431
|
-
let chart = null;
|
|
5432
|
-
onMounted(() => {
|
|
5433
|
-
chart = shallowRef(echarts.init(chartDom.value));
|
|
5434
|
-
chart.value.setOption(props.options);
|
|
5435
|
-
window.addEventListener("resize", resize2);
|
|
5436
|
-
resize2();
|
|
5437
|
-
});
|
|
5438
|
-
const resize2 = debounce(() => chart.value.resize(), 200);
|
|
5439
|
-
onUnmounted(() => {
|
|
5440
|
-
window.removeEventListener("resize", resize2);
|
|
5441
|
-
});
|
|
5442
|
-
return {
|
|
5443
|
-
chartDom,
|
|
5444
|
-
chart
|
|
5445
|
-
};
|
|
5446
|
-
}
|
|
5447
|
-
};
|
|
5448
|
-
const _hoisted_1$1 = {
|
|
5449
|
-
ref: "chartDom",
|
|
5450
|
-
class: "chart",
|
|
5451
|
-
style: { "height": "100%", "width": "100%" }
|
|
5452
|
-
};
|
|
5453
|
-
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5454
|
-
return openBlock(), createElementBlock("div", _hoisted_1$1, null, 512);
|
|
5455
|
-
}
|
|
5456
|
-
var Chart = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$2]]);
|
|
5457
|
-
var NumberPanel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
5428
|
+
var NumberPanel_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".number-panel-title[data-v-4873b764]{padding:20px;text-align:center}.number-panel-title .title-inner[data-v-4873b764]{display:inline-block;width:20%;position:relative;text-align:center;border-right:1px solid #e8e8e8}.number-panel-title .title-inner[data-v-4873b764]:last-child{border:none}.number-panel-title .el-divider[data-v-4873b764]{position:absolute;right:0;top:10px}.number-panel-title .name[data-v-4873b764]{font-size:12px;color:#666}.number-panel-title .number[data-v-4873b764]{font-size:20px;line-height:30px}\n")();
|
|
5458
5429
|
const _sfc_main$3 = defineComponent({
|
|
5459
5430
|
name: "NumberPanel",
|
|
5460
5431
|
props: {
|
|
@@ -5488,10 +5459,10 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5488
5459
|
}), 128);
|
|
5489
5460
|
}
|
|
5490
5461
|
var NumberPanel = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$1], ["__scopeId", "data-v-4873b764"]]);
|
|
5491
|
-
var part_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
5462
|
+
var part_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".part[data-v-5179c249]{width:auto;margin-bottom:15px}.part[data-v-5179c249] :last-child{margin-bottom:0}[data-v-5179c249] .el-card__header,[data-v-5179c249] .el-card__body{padding:5px}\n")();
|
|
5492
5463
|
const _sfc_main$2 = {
|
|
5493
5464
|
components: {
|
|
5494
|
-
Chart,
|
|
5465
|
+
Chart: VChart,
|
|
5495
5466
|
Md: Markdown,
|
|
5496
5467
|
Json: JsonView,
|
|
5497
5468
|
Table: VTable,
|
|
@@ -5566,9 +5537,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5566
5537
|
[_directive_resize, true]
|
|
5567
5538
|
]);
|
|
5568
5539
|
}
|
|
5569
|
-
var Part = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
5570
|
-
var index_vue_vue_type_style_index_0_lang = "";
|
|
5540
|
+
var Part = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render], ["__scopeId", "data-v-5179c249"]]);
|
|
5541
|
+
var index_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => ".part-filter{margin-bottom:15px}\n")();
|
|
5571
5542
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
5543
|
+
__name: "index",
|
|
5572
5544
|
props: {
|
|
5573
5545
|
filter: {
|
|
5574
5546
|
type: Array,
|
|
@@ -5692,6 +5664,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5692
5664
|
}
|
|
5693
5665
|
});
|
|
5694
5666
|
const _sfc_main = {
|
|
5667
|
+
__name: "report",
|
|
5695
5668
|
setup(__props) {
|
|
5696
5669
|
const route = useRoute();
|
|
5697
5670
|
const schemaapi = computed(() => {
|
|
@@ -5723,27 +5696,27 @@ const getComponent = (item) => {
|
|
|
5723
5696
|
return bu[_path].default;
|
|
5724
5697
|
}
|
|
5725
5698
|
console.error(`\u81EA\u5B9A\u4E49\u7EC4\u4EF6\u4E0D\u5B58\u5728 ${item.name} ${item.view}`);
|
|
5726
|
-
return _sfc_main$
|
|
5699
|
+
return _sfc_main$4;
|
|
5727
5700
|
};
|
|
5728
5701
|
if (item.path === "#") {
|
|
5729
|
-
return _sfc_main$
|
|
5702
|
+
return _sfc_main$4;
|
|
5730
5703
|
}
|
|
5731
5704
|
switch (item.page_type) {
|
|
5732
5705
|
case PageType.list:
|
|
5733
|
-
return _sfc_main$9;
|
|
5734
|
-
case PageType.form:
|
|
5735
5706
|
return _sfc_main$8;
|
|
5707
|
+
case PageType.form:
|
|
5708
|
+
return _sfc_main$7;
|
|
5736
5709
|
case PageType.custom:
|
|
5737
5710
|
case PageType.localComp:
|
|
5738
5711
|
return loadCustom(item.view || "");
|
|
5739
5712
|
case PageType.tree:
|
|
5740
|
-
return _sfc_main$
|
|
5713
|
+
return _sfc_main$5;
|
|
5741
5714
|
case PageType.report:
|
|
5742
5715
|
return _sfc_main;
|
|
5743
5716
|
case PageType.customSchema:
|
|
5744
|
-
return _sfc_main$
|
|
5717
|
+
return _sfc_main$4;
|
|
5745
5718
|
}
|
|
5746
|
-
return _sfc_main$
|
|
5719
|
+
return _sfc_main$4;
|
|
5747
5720
|
};
|
|
5748
5721
|
function getPath(item) {
|
|
5749
5722
|
let path = item.path;
|
|
@@ -5753,7 +5726,7 @@ function getPath(item) {
|
|
|
5753
5726
|
if (path.indexOf(":id") > -1 && path.indexOf(":id") + 3 === path.length) {
|
|
5754
5727
|
path = path.replace(":id", ":id(\\d+)");
|
|
5755
5728
|
}
|
|
5756
|
-
return path === "#" ? "/
|
|
5729
|
+
return path === "#" ? "/" + item.id + "_DIR_" + item.name : path[0] !== "/" ? "/" + path : path;
|
|
5757
5730
|
}
|
|
5758
5731
|
function getName(item) {
|
|
5759
5732
|
return (item.path + item.name).split("/").filter((v) => v).join("_");
|
|
@@ -5762,7 +5735,7 @@ const transRoute = (item) => {
|
|
|
5762
5735
|
const isShow = item.type !== MenuType.page;
|
|
5763
5736
|
const route = {
|
|
5764
5737
|
path: getPath(item),
|
|
5765
|
-
name: getName(item),
|
|
5738
|
+
name: item.id + "_" + getName(item) + "_" + item.path.replaceAll("/", "_"),
|
|
5766
5739
|
component: getComponent(item),
|
|
5767
5740
|
meta: {
|
|
5768
5741
|
id: item.id,
|
|
@@ -5782,8 +5755,8 @@ const transRoute = (item) => {
|
|
|
5782
5755
|
const createEdit = item.path + "/:id";
|
|
5783
5756
|
const children = [{
|
|
5784
5757
|
path: createList,
|
|
5785
|
-
name: item.name + "\u5217\u8868",
|
|
5786
|
-
component: _sfc_main$
|
|
5758
|
+
name: item.name + "\u5217\u8868" + item.id,
|
|
5759
|
+
component: _sfc_main$8,
|
|
5787
5760
|
meta: {
|
|
5788
5761
|
id: item.id + 99999,
|
|
5789
5762
|
title: "\u5217\u8868",
|
|
@@ -5794,8 +5767,8 @@ const transRoute = (item) => {
|
|
|
5794
5767
|
}
|
|
5795
5768
|
}, {
|
|
5796
5769
|
path: createForm,
|
|
5797
|
-
name: item.name + "\u65B0\u5EFA",
|
|
5798
|
-
component: _sfc_main$
|
|
5770
|
+
name: item.name + "\u65B0\u5EFA" + item.id,
|
|
5771
|
+
component: _sfc_main$7,
|
|
5799
5772
|
meta: {
|
|
5800
5773
|
id: item.id + 99999 + 1,
|
|
5801
5774
|
title: "\u65B0\u5EFA",
|
|
@@ -5806,8 +5779,8 @@ const transRoute = (item) => {
|
|
|
5806
5779
|
}
|
|
5807
5780
|
}, {
|
|
5808
5781
|
path: createEdit,
|
|
5809
|
-
name: item.name + "\u7F16\u8F91",
|
|
5810
|
-
component: _sfc_main$
|
|
5782
|
+
name: item.name + "\u7F16\u8F91" + item.id,
|
|
5783
|
+
component: _sfc_main$7,
|
|
5811
5784
|
meta: {
|
|
5812
5785
|
id: item.id + 99999 + 2,
|
|
5813
5786
|
title: "\u7F16\u8F91",
|
|
@@ -5841,7 +5814,7 @@ const transRoute = (item) => {
|
|
|
5841
5814
|
}
|
|
5842
5815
|
}
|
|
5843
5816
|
route.redirect = redirect;
|
|
5844
|
-
route.path = "/
|
|
5817
|
+
route.path = "/" + item.id + "_DIR" + route.redirect.replaceAll("/", "_").toUpperCase();
|
|
5845
5818
|
}
|
|
5846
5819
|
}
|
|
5847
5820
|
return route;
|
|
@@ -5883,7 +5856,7 @@ function remoteRoutes(router2) {
|
|
|
5883
5856
|
});
|
|
5884
5857
|
});
|
|
5885
5858
|
});
|
|
5886
|
-
router2.addRoute({ name: "404", path: "/:
|
|
5859
|
+
router2.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: true });
|
|
5887
5860
|
store.commit("user/updateRemoteRouter", routeModules);
|
|
5888
5861
|
await router2.replace(to);
|
|
5889
5862
|
next();
|
|
@@ -5919,52 +5892,6 @@ function guard(router2) {
|
|
|
5919
5892
|
setPageTitle(router2);
|
|
5920
5893
|
}
|
|
5921
5894
|
guard(router);
|
|
5922
|
-
const _icons = Icons;
|
|
5923
|
-
var VIcon = defineComponent({
|
|
5924
|
-
name: "VIcon",
|
|
5925
|
-
props: {
|
|
5926
|
-
name: {
|
|
5927
|
-
type: String,
|
|
5928
|
-
required: true
|
|
5929
|
-
}
|
|
5930
|
-
},
|
|
5931
|
-
setup(props) {
|
|
5932
|
-
const _null = () => null;
|
|
5933
|
-
if (props.name === void 0) {
|
|
5934
|
-
return _null;
|
|
5935
|
-
}
|
|
5936
|
-
if (props.name.indexOf("el-") === 0) {
|
|
5937
|
-
const name = snakeToCamel(props.name.replace("el-icon-", ""), "-");
|
|
5938
|
-
const com = _icons[name];
|
|
5939
|
-
if (!com) {
|
|
5940
|
-
return _null;
|
|
5941
|
-
}
|
|
5942
|
-
const comStyle = {
|
|
5943
|
-
height: "1em",
|
|
5944
|
-
width: "1em"
|
|
5945
|
-
};
|
|
5946
|
-
return () => createVNode(com, {
|
|
5947
|
-
"style": comStyle
|
|
5948
|
-
}, null);
|
|
5949
|
-
}
|
|
5950
|
-
if (_icons[props.name]) {
|
|
5951
|
-
const com = _icons[props.name];
|
|
5952
|
-
const comStyle = {
|
|
5953
|
-
height: "1em",
|
|
5954
|
-
width: "1em"
|
|
5955
|
-
};
|
|
5956
|
-
return () => createVNode(com, {
|
|
5957
|
-
"style": comStyle
|
|
5958
|
-
}, null);
|
|
5959
|
-
}
|
|
5960
|
-
if (props.name.indexOf("ra-") === 0) {
|
|
5961
|
-
return () => createVNode("i", {
|
|
5962
|
-
"class": "iconfont " + props.name
|
|
5963
|
-
}, null);
|
|
5964
|
-
}
|
|
5965
|
-
return _null;
|
|
5966
|
-
}
|
|
5967
|
-
});
|
|
5968
5895
|
const outClick = {
|
|
5969
5896
|
beforeMount(el, binding) {
|
|
5970
5897
|
el.clickOutsideEvent = function(event) {
|
|
@@ -6065,9 +5992,8 @@ function useHttp(options) {
|
|
|
6065
5992
|
return options ? instance(merge(defaultOptions.axios, options)) : http;
|
|
6066
5993
|
}
|
|
6067
5994
|
function createAdmin(omsOptions) {
|
|
6068
|
-
RegComponents({ VForm, VTable });
|
|
6069
5995
|
const options = merge(defaultOptions, omsOptions);
|
|
6070
|
-
const app2 = createApp(_sfc_main$
|
|
5996
|
+
const app2 = createApp(_sfc_main$t);
|
|
6071
5997
|
const omsPlugin = createOmsPlugin(options);
|
|
6072
5998
|
const plugins = options.plugins || [];
|
|
6073
5999
|
plugins.unshift(omsPlugin);
|
|
@@ -6082,7 +6008,14 @@ function createAdmin(omsOptions) {
|
|
|
6082
6008
|
store.dispatch("settings/updateSettings", omsOptions == null ? void 0 : omsOptions.settings).then();
|
|
6083
6009
|
app2.config.globalProperties.$http = http;
|
|
6084
6010
|
app2.config.globalProperties.$router = router;
|
|
6011
|
+
app2.provide("axios", app2.config.globalProperties.$http);
|
|
6085
6012
|
window.App = app2;
|
|
6013
|
+
window.OmsOptions = options;
|
|
6014
|
+
setUploadHeaderHandle(() => {
|
|
6015
|
+
return {
|
|
6016
|
+
"X-Token": getToken$2()
|
|
6017
|
+
};
|
|
6018
|
+
});
|
|
6086
6019
|
router.isReady().then(() => app2.mount("#app"));
|
|
6087
6020
|
}
|
|
6088
6021
|
function regComponents(app2, components = {}) {
|
|
@@ -6139,18 +6072,5 @@ function createOmsPlugin(options) {
|
|
|
6139
6072
|
]
|
|
6140
6073
|
};
|
|
6141
6074
|
}
|
|
6142
|
-
|
|
6143
|
-
return false;
|
|
6144
|
-
}
|
|
6145
|
-
function isProdMode() {
|
|
6146
|
-
return true;
|
|
6147
|
-
}
|
|
6148
|
-
function apiPrefix() {
|
|
6149
|
-
const api2 = {}.VITE_BASE_API;
|
|
6150
|
-
if (api2) {
|
|
6151
|
-
return api2 + "";
|
|
6152
|
-
}
|
|
6153
|
-
return "";
|
|
6154
|
-
}
|
|
6155
|
-
export { BaseSso, _sfc_main$5 as Container, DingTalk, Layout, MenuType, Message, MessageBox, PageType, Chart as VChart, VIcon, allSso, apiPrefix, createAdmin, eventBus, getCmp, instance, isDevMode, isProdMode, regViews, setCmp, transRemoteModules, useHttp };
|
|
6075
|
+
export { BaseSso, _sfc_main$4 as Container, DingTalk, Layout, MenuType, Message, MessageBox, PageType, allSso, createAdmin, eventBus, getCmp, http, instance, regViews, setCmp, transRemoteModules, useHttp };
|
|
6156
6076
|
//# sourceMappingURL=index.es.js.map
|