ss-component-new 1.3.6 → 1.3.7
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/{array-C_SHxtRO.js → array-B_AocUcb.js} +1 -1
- package/dist/{array-hcSSFaPO.cjs → array-BuS832Zx.cjs} +1 -1
- package/dist/{index-Frx8T0PG.js → index--gImNsHJ.js} +4 -4
- package/dist/{index-BDXZK9BZ.cjs → index-37GjXUWs.cjs} +1 -1
- package/dist/{index-BkdUzwcU.js → index-BpwKLzrT.js} +2 -2
- package/dist/index-BteE57Nz.js +103 -0
- package/dist/{index-DrpsmNOj.cjs → index-C64aG76g.cjs} +1 -1
- package/dist/index-C8FzkPpO.cjs +1 -0
- package/dist/{index-CEoo5NuF.js → index-CEq2QX9L.js} +1 -1
- package/dist/{index-0sI9GpjG.cjs → index-CIrXKpNl.cjs} +1 -1
- package/dist/{index-C3IjfJgf.js → index-Dao8XeQ7.js} +1512 -1512
- package/dist/index-qDSdqvf4.cjs +11 -0
- package/dist/{main-DWqPNq1u.js → main-Bb6uPPmu.js} +2 -2
- package/dist/{main-IeFIeYRe.cjs → main-Dms8AM6X.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.js +2 -2
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +2 -2
- package/package.json +1 -1
- package/dist/index-7WRVFebE.cjs +0 -1
- package/dist/index-BtuZ5Zx4.js +0 -103
- package/dist/index-CzB2oEuL.cjs +0 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as U, watch as v, createElementBlock as E, createCommentVNode as q, openBlock as I, Fragment as de, renderList as fe, createElementVNode as S, createBlock as se, toDisplayString as oe, resolveDynamicComponent as ye, onMounted as he, onUnmounted as ke, createVNode as te } from "vue";
|
|
2
|
-
import { m as ge, a as _e, b as Ce, c as be } from "./array-
|
|
2
|
+
import { m as ge, a as _e, b as Ce, c as be } from "./array-B_AocUcb.js";
|
|
3
3
|
import { c, a as ce, p as re, s as ue, u as Oe } from "./index-sMsCzNtW.js";
|
|
4
|
-
import { g as Ae } from "./index-
|
|
4
|
+
import { g as Ae } from "./index-Dao8XeQ7.js";
|
|
5
5
|
import { v as H, a as K } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLfKrpq4.js";
|
|
6
6
|
import { _ as pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const B = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),G=require("./array-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),G=require("./array-BuS832Zx.cjs"),r=require("./index-C8fMwErX.cjs"),ne=require("./index-qDSdqvf4.cjs"),T=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D4mQcDEW.cjs"),v=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),F=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"}],A=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"LineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"}];n.ref(0);n.ref(0);n.ref(1);const le=s=>{let d;s.replaceAll(" ",`\r
|
|
2
2
|
`).replaceAll(`
|
|
3
3
|
`,`\r
|
|
4
4
|
`).includes(`\r
|
package/dist/ss-component.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),C=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D4mQcDEW.cjs");const v=require("./index-C8fMwErX.cjs");require("./index-C5pQXH0_.cjs");const s=require("./ss-component2.cjs"),t=require("./index-9hspBVrQ.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),C=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D4mQcDEW.cjs");const v=require("./index-C8fMwErX.cjs");require("./index-C5pQXH0_.cjs");const s=require("./ss-component2.cjs"),t=require("./index-9hspBVrQ.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-Dms8AM6X.cjs")));r.install=e=>{e.component("ssComponent",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-COvNwtxL.cjs")).then(e=>e.index$1));i.install=e=>{e.component("ssTab",i)};const c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-C64aG76g.cjs")));c.install=e=>{e.component("ssMenu",c)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Cw4Pm2PQ.cjs")));l.install=e=>{e.component("ssMenuComponent",l)};const m=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-iv5M7d4h.cjs")));m.install=e=>{e.component("ssCanvas",m)};const u=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BVaHwt5f.cjs")));u.install=e=>{e.component("ssFold",u)};const a=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-R-S0AH15.cjs")).then(e=>e.index));a.install=e=>{e.component("ssAvatar",a)};const h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeModel-BwQqxP7B.cjs")));h.install=e=>{e.component("ssThree",h)};const f=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeViewerHost-Bk7K37-4.cjs")).then(e=>e.threeViewerHost));f.install=e=>{e.component("threeViewerHost",f)};const p=v.useMenuState(),P=[r,i,c,l,m,u,a,h,f],q=e=>{P.forEach(o=>{e.use(o)}),e.use(s),e.config.globalProperties.$router=s},g=e=>{switch(e){case"browser":return t.browserThemeConfig;case"client":return t.clientThemeConfig;case"three":return t.threeThemeConfig}},y=e=>{const o=document.documentElement;e==null||e.forEach(d=>{o.style.setProperty(d.name,d.value)})},A=e=>{p.setPlatform(e);const o=g(e);y(o)},T={getPlatform:p.getPlatform,setPlatform:p.setPlatform,initPlatform:A};exports.SvgIcon=C.SvgIcon;exports.router=s;exports.default=q;exports.platformApi=T;
|
package/dist/ss-component.js
CHANGED
|
@@ -5,7 +5,7 @@ import { u as C } from "./index-sMsCzNtW.js";
|
|
|
5
5
|
import "./index-B8HqIYd5.js";
|
|
6
6
|
import u from "./ss-component2.js";
|
|
7
7
|
import { t as g, c as T, b as P } from "./index-CAPx0_D4.js";
|
|
8
|
-
const n = o(() => import("./main-
|
|
8
|
+
const n = o(() => import("./main-Bb6uPPmu.js"));
|
|
9
9
|
n.install = (t) => {
|
|
10
10
|
t.component("ssComponent", n);
|
|
11
11
|
};
|
|
@@ -13,7 +13,7 @@ const s = o(() => import("./index-DUygJhjf.js").then((t) => t.l));
|
|
|
13
13
|
s.install = (t) => {
|
|
14
14
|
t.component("ssTab", s);
|
|
15
15
|
};
|
|
16
|
-
const r = o(() => import("./index-
|
|
16
|
+
const r = o(() => import("./index-BpwKLzrT.js"));
|
|
17
17
|
r.install = (t) => {
|
|
18
18
|
t.component("ssMenu", r);
|
|
19
19
|
};
|
package/dist/ss-component2.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("vue-router"),t=[{path:"/tenant",name:"Tenant",component:async()=>Promise.resolve().then(()=>require("./index-C036vLtM.cjs"))},{path:"/login",name:"Login",component:async()=>Promise.resolve().then(()=>require("./index-
|
|
1
|
+
"use strict";const n=require("vue-router"),t=[{path:"/tenant",name:"Tenant",component:async()=>Promise.resolve().then(()=>require("./index-C036vLtM.cjs"))},{path:"/login",name:"Login",component:async()=>Promise.resolve().then(()=>require("./index-CIrXKpNl.cjs"))},{path:"/",name:"Model",component:async()=>Promise.resolve().then(()=>require("./index-37GjXUWs.cjs")),children:[{path:"系统配置/站内信",name:"Message",component:async()=>Promise.resolve().then(()=>require("./index-DPIg2S6M.cjs"))},{path:"系统配置/自动生成",name:"Automatic",component:async()=>Promise.resolve().then(()=>require("./index-B2BAJXIH.cjs"))},{path:"平台管理/菜单管理",name:"Menu",component:async()=>Promise.resolve().then(()=>require("./index-DV3KiKv5.cjs"))},{path:"平台管理/主菜单管理",name:"MainMenu",component:async()=>Promise.resolve().then(()=>require("./index-C6_1MyLM.cjs"))},{path:"系统管理/个人中心",name:"PersonalCenter",component:async()=>Promise.resolve().then(()=>require("./index-kZhbnU3-.cjs"))},{path:"系统管理/职位管理",name:"Post",component:async()=>Promise.resolve().then(()=>require("./index-mpoMK_dv.cjs"))},{path:"系统管理/用户管理",name:"User",component:async()=>Promise.resolve().then(()=>require("./index-BY0bG8F_.cjs"))},{path:"系统管理/角色管理",name:"Role",component:async()=>Promise.resolve().then(()=>require("./index-zR73jr4m.cjs"))},{path:"系统管理/部门管理",name:"Dept",component:async()=>Promise.resolve().then(()=>require("./index-Bb7_N8kj.cjs"))},{path:"系统维护/登录日志",name:"LoginLog",component:async()=>Promise.resolve().then(()=>require("./index-BPKCXbP6.cjs"))},{path:"系统维护/操作日志",name:"OperateLog",component:async()=>Promise.resolve().then(()=>require("./index-CDhojfAp.cjs"))}]}],o=n.createRouter({history:n.createWebHashHistory(),routes:t});o.beforeEach((r,s,e)=>{!sessionStorage.getItem("loginToken")&&r.path!=="/login"?e("/login"):e()});module.exports=o;
|
package/dist/ss-component2.js
CHANGED
|
@@ -8,12 +8,12 @@ const a = [
|
|
|
8
8
|
{
|
|
9
9
|
path: "/login",
|
|
10
10
|
name: "Login",
|
|
11
|
-
component: async () => import("./index-
|
|
11
|
+
component: async () => import("./index-CEq2QX9L.js")
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
path: "/",
|
|
15
15
|
name: "Model",
|
|
16
|
-
component: async () => import("./index
|
|
16
|
+
component: async () => import("./index--gImNsHJ.js"),
|
|
17
17
|
// component: async ()=>import('@/components/views/model/component/main.vue'),
|
|
18
18
|
// component: async ()=>import('@/components/views/canvas/index.vue'),
|
|
19
19
|
// component: async ()=>import('@/components/views/test/index.vue'),
|
package/package.json
CHANGED
package/dist/index-7WRVFebE.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const f=require("./index-C8fMwErX.cjs"),A=require("vue"),p=require("./index-C5pQXH0_.cjs");function x(e){return p.axios.post("http://222.92.178.198:63002/platform/create",e)}function E(e){return p.axios.post("http://222.92.178.198:63002/platform/get",e)}function y(e){return p.axios.post("http://222.92.178.198:63002/platform/getPage",e)}function j(e){return p.axios.post("http://222.92.178.198:63002/platform/delete",e)}function D(e){return p.axios.post("http://222.92.178.198:63002/platform/page/add",e)}const d=e=>{var s,i;if(Array.isArray(Object.keys(e))&&((s=Object.keys(e))==null?void 0:s.length)>0){let o=[];return(i=Object.entries(e))==null||i.forEach(([c,a])=>{var n,t;let r=[];if(r.push(c),((n=Object.keys(a))==null?void 0:n.length)>0){let u=[];(t=d(a))==null||t.forEach(l=>{u.push(l)}),u==null||u.forEach(l=>{r.push(l)})}o.push(r)}),o}},P=(e,s)=>{var o;let i=s;return Array.isArray(Object.keys(e))&&((o=Object.entries(e))==null||o.forEach(([c,a])=>{let r=[c];if(typeof a=="object"&&a!==null){let n=d(a);n==null||n.forEach(t=>{r.push(t)})}i.push(r)})),i},b=e=>{const s={};return e.forEach(o=>{const c=o.split("/");let a=s;c.forEach(r=>{a[r]||(a[r]={}),a=a[r]})}),P(s,[])},m=A.ref(!1),g=A.ref(!1),S=f.useLoginState(f.pinia),{loginUserInfo:h}=f.storeToRefs(S),v=f.useMenuState(),O=async()=>{var s,i,o,c,a,r;let e=await y({platId:parseInt((s=h==null?void 0:h.value)==null?void 0:s.plat_id),pageName:"menu"});if(((o=(i=e==null?void 0:e.data)==null?void 0:i.result)==null?void 0:o.length)>0){let n=(r=(a=(c=e==null?void 0:e.data)==null?void 0:c.result)==null?void 0:a.filter(t=>{var u,l;return((l=t==null?void 0:t.object_name)==null?void 0:l[((u=t==null?void 0:t.object_name)==null?void 0:u.length)-1])!=="/"&&(t==null?void 0:t.is_show)}))==null?void 0:r.map(t=>{var u;return(u=t==null?void 0:t.object_name)==null?void 0:u.replaceAll("**^","/")});n=[...new Set(n)],n=b(n),v.setRawMenus(n??[]),m.value=!0,g.value=!0}return{menuExist:m.value,structureExist:g.value}};exports.createPlatFormDataApi=x;exports.deletePageDataApi=j;exports.getPageDataApi=y;exports.loginPlatFormDataApi=E;exports.menuArray=b;exports.pageBatchAddApi=D;exports.verifyStructureDataToStore=O;
|
package/dist/index-BtuZ5Zx4.js
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { s as y, u as A, b as E, p as d } from "./index-sMsCzNtW.js";
|
|
2
|
-
import { ref as g } from "vue";
|
|
3
|
-
import { a as i } from "./index-B8HqIYd5.js";
|
|
4
|
-
function k(t) {
|
|
5
|
-
return i.post(
|
|
6
|
-
"http://222.92.178.198:63002/platform/create",
|
|
7
|
-
t
|
|
8
|
-
);
|
|
9
|
-
}
|
|
10
|
-
function w(t) {
|
|
11
|
-
return i.post(
|
|
12
|
-
"http://222.92.178.198:63002/platform/get",
|
|
13
|
-
t
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
function j(t) {
|
|
17
|
-
return i.post(
|
|
18
|
-
"http://222.92.178.198:63002/platform/getPage",
|
|
19
|
-
t
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
function F(t) {
|
|
23
|
-
return i.post(
|
|
24
|
-
"http://222.92.178.198:63002/platform/delete",
|
|
25
|
-
t
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
function L(t) {
|
|
29
|
-
return i.post(
|
|
30
|
-
"http://222.92.178.198:63002/platform/page/add",
|
|
31
|
-
t
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
const b = (t) => {
|
|
35
|
-
var n, c;
|
|
36
|
-
if (Array.isArray(Object.keys(t)) && ((n = Object.keys(t)) == null ? void 0 : n.length) > 0) {
|
|
37
|
-
let o = [];
|
|
38
|
-
return (c = Object.entries(t)) == null || c.forEach(([l, a]) => {
|
|
39
|
-
var s, e;
|
|
40
|
-
let r = [];
|
|
41
|
-
if (r.push(l), ((s = Object.keys(a)) == null ? void 0 : s.length) > 0) {
|
|
42
|
-
let u = [];
|
|
43
|
-
(e = b(a)) == null || e.forEach((p) => {
|
|
44
|
-
u.push(p);
|
|
45
|
-
}), u == null || u.forEach((p) => {
|
|
46
|
-
r.push(p);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
o.push(r);
|
|
50
|
-
}), o;
|
|
51
|
-
}
|
|
52
|
-
}, S = (t, n) => {
|
|
53
|
-
var o;
|
|
54
|
-
let c = n;
|
|
55
|
-
return Array.isArray(Object.keys(t)) && ((o = Object.entries(t)) == null || o.forEach(([l, a]) => {
|
|
56
|
-
let r = [l];
|
|
57
|
-
if (typeof a == "object" && a !== null) {
|
|
58
|
-
let s = b(a);
|
|
59
|
-
s == null || s.forEach((e) => {
|
|
60
|
-
r.push(e);
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
c.push(r);
|
|
64
|
-
})), c;
|
|
65
|
-
}, x = (t) => {
|
|
66
|
-
const n = {};
|
|
67
|
-
return t.forEach((o) => {
|
|
68
|
-
const l = o.split("/");
|
|
69
|
-
let a = n;
|
|
70
|
-
l.forEach((r) => {
|
|
71
|
-
a[r] || (a[r] = {}), a = a[r];
|
|
72
|
-
});
|
|
73
|
-
}), S(n, []);
|
|
74
|
-
}, m = g(!1), h = g(!1), O = E(d), { loginUserInfo: f } = y(O), P = A(), M = async () => {
|
|
75
|
-
var n, c, o, l, a, r;
|
|
76
|
-
let t = await j({
|
|
77
|
-
platId: parseInt((n = f == null ? void 0 : f.value) == null ? void 0 : n.plat_id),
|
|
78
|
-
pageName: "menu"
|
|
79
|
-
});
|
|
80
|
-
if (((o = (c = t == null ? void 0 : t.data) == null ? void 0 : c.result) == null ? void 0 : o.length) > 0) {
|
|
81
|
-
let s = (r = (a = (l = t == null ? void 0 : t.data) == null ? void 0 : l.result) == null ? void 0 : a.filter((e) => {
|
|
82
|
-
var u, p;
|
|
83
|
-
return ((p = e == null ? void 0 : e.object_name) == null ? void 0 : p[((u = e == null ? void 0 : e.object_name) == null ? void 0 : u.length) - 1]) !== "/" && (e == null ? void 0 : e.is_show);
|
|
84
|
-
})) == null ? void 0 : r.map((e) => {
|
|
85
|
-
var u;
|
|
86
|
-
return (u = e == null ? void 0 : e.object_name) == null ? void 0 : u.replaceAll("**^", "/");
|
|
87
|
-
});
|
|
88
|
-
s = [...new Set(s)], s = x(s), P.setRawMenus(s ?? []), m.value = !0, h.value = !0;
|
|
89
|
-
}
|
|
90
|
-
return {
|
|
91
|
-
menuExist: m.value,
|
|
92
|
-
structureExist: h.value
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
export {
|
|
96
|
-
k as c,
|
|
97
|
-
F as d,
|
|
98
|
-
j as g,
|
|
99
|
-
w as l,
|
|
100
|
-
x as m,
|
|
101
|
-
L as p,
|
|
102
|
-
M as v
|
|
103
|
-
};
|