ss-component-new 1.3.319 → 1.3.321
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-BBuhs0ay.cjs +1 -0
- package/dist/index-CLiXOvYt.js +159 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +1 -1
- package/package.json +1 -1
- package/dist/index-BTcgiJQk.cjs +0 -1
- package/dist/index-yewjqcVf.js +0 -150
package/dist/ss-component.js
CHANGED
|
@@ -20,7 +20,7 @@ const r = o(() => import("./index-DLlv5Kx4.js").then((t) => t.i));
|
|
|
20
20
|
r.install = (t) => {
|
|
21
21
|
t.component("ssMenu", r);
|
|
22
22
|
};
|
|
23
|
-
const m = o(() => import("./index-
|
|
23
|
+
const m = o(() => import("./index-CLiXOvYt.js"));
|
|
24
24
|
m.install = (t) => {
|
|
25
25
|
t.component("ssMenuComponent", m);
|
|
26
26
|
};
|
package/package.json
CHANGED
package/dist/index-BTcgiJQk.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),a=require("./menu-FU5yiMy8.cjs"),C=require("./index-aziCJXBJ.cjs"),K=require("./index-CFjmSYEv.cjs"),M=require("vue-router"),U=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),b=o.defineComponent({__name:"index",props:{windowConfig:{type:Object,default:()=>{}},systemInfo:{type:Object,default:()=>{}},systemKey:{type:String,default:""},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!1},nodeDev:{type:String,default:""},pageKey:{type:String,default:""},interfaceContent:{type:Array,default:()=>[]},loginContent:{type:Object,default:()=>{}}},emits:["buildContent","openThreeBuild","threeData","setLoginInfo","projectLogin","updateApiUrl"],setup(f,{emit:w}){const h=M.useRouter(),l=a.useLoginState(a.pinia),{loginUserInfo:r}=a.storeToRefs(l),{initSystemInfo:S}=C.useModelManagement(),I=a.useModelComp(a.pinia),{refreshLogin:v}=a.storeToRefs(I),L=a.useMenuState(a.pinia),e=f,s=w,_=o.computed(()=>{var t,n;return(e==null?void 0:e.showButton)||((n=(t=r.value)==null?void 0:t.layer)==null?void 0:n.toUpperCase())==="SUPERADMIN"});o.watch(()=>e==null?void 0:e.loginContent,async()=>{var n,i,c,u;let t=e==null?void 0:e.loginContent;t!=null&&t.account&&(t!=null&&t.password)&&!v.value&&(K.loginUp(t),status&&(await C.verifyStructureDataToStore(),h.push("/"),l.setLogRecordAsync({type:"登录",data:{account:((n=r.value)==null?void 0:n.account)??((i=r.value)==null?void 0:i.账号),userName:((c=r.value)==null?void 0:c.姓名)||((u=r.value)==null?void 0:u.userName)||"未知"}},"/login","login"),L.setHasClickEditComp(!1)))},{deep:!0,immediate:!0});const A=t=>{s("projectLogin",t)},j=()=>{s("projectLogin","")};o.watch(()=>[e==null?void 0:e.systemKey,e==null?void 0:e.systemInfo],async([t,n])=>{l.setSystemKey(t),t!==""&&sessionStorage.setItem("systemKey",t)},{immediate:!0}),o.watch(()=>e==null?void 0:e.interfaceContent,()=>{var i,c,u,m,g;if(!(e!=null&&e.interfaceContent)||Array.isArray(e==null?void 0:e.interfaceContent)&&((i=e==null?void 0:e.interfaceContent)==null?void 0:i.length)===0)return;let t=(c=e==null?void 0:e.interfaceContent)==null?void 0:c.find(d=>d==null?void 0:d.includes("VITE_API_NEW_URL")),n=(u=e==null?void 0:e.interfaceContent)==null?void 0:u.find(d=>d==null?void 0:d.includes("VITE_FACE_RECOGNITION_API_URL"));n=(m=n==null?void 0:n.split("="))==null?void 0:m[1],n=n==null?void 0:n.trim(),t=(g=t==null?void 0:t.split("="))==null?void 0:g[1],t=t==null?void 0:t.trim(),l.setExtraUrl(n??""),l.setSystemUrl(t??"")},{immediate:!0,deep:!0}),o.onMounted(async()=>{e.systemInfo?l.setSystemInfo(e.systemInfo):await S()});const E=()=>{s("buildContent")},B=()=>{s("setLoginInfo")},T=t=>{s("openThreeBuild",t)},D=t=>{s("threeData",t)},R=t=>{s("updateApiUrl",t)},y=()=>{var m;const t=e!=null&&e.windowConfig?(m=e==null?void 0:e.windowConfig)==null?void 0:m.width:window.innerWidth,n=1920,i=16,c=t/n,u=i*c;document.documentElement.style.fontSize=`${u}px`};return o.onMounted(()=>{y(),window.addEventListener("resize",y)}),o.onUnmounted(()=>{window.removeEventListener("resize",y)}),(t,n)=>{const i=o.resolveComponent("router-view");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(i,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:_.value,nodeDev:e==null?void 0:e.nodeDev,windowConfig:f.windowConfig,systemInfo:f.systemInfo,"old-systemKey":f.systemKey,onBuildContent:E,onProjectLogin:A,onClearLogin:j,onUpdateApiUrl:R,onOpenThreeBuild:T,pageKey:f.pageKey,onThreeData:D,onSetLoginInfo:B,loginContent:e==null?void 0:e.loginContent},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","systemInfo","old-systemKey","pageKey","loginContent"])])}}}),N=U._export_sfc(b,[["__scopeId","data-v-3b8f66e7"]]);exports.default=N;
|
package/dist/index-yewjqcVf.js
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { defineComponent as R, computed as b, watch as r, onMounted as C, onUnmounted as M, resolveComponent as N, createElementBlock as z, openBlock as O, createVNode as x } from "vue";
|
|
2
|
-
import { b as F, p as y, s as w, a as P, u as k } from "./menu-B5Ed9tCx.js";
|
|
3
|
-
import { u as W, v as G } from "./index-C6e8tITh.js";
|
|
4
|
-
import { l as H } from "./index-CjYwnKjV.js";
|
|
5
|
-
import { useRouter as $ } from "vue-router";
|
|
6
|
-
import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
const J = /* @__PURE__ */ R({
|
|
8
|
-
__name: "index",
|
|
9
|
-
props: {
|
|
10
|
-
windowConfig: {
|
|
11
|
-
type: Object,
|
|
12
|
-
default: () => {
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
systemInfo: {
|
|
16
|
-
type: Object,
|
|
17
|
-
default: () => {
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
systemKey: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: ""
|
|
23
|
-
},
|
|
24
|
-
pathContent: {
|
|
25
|
-
type: String,
|
|
26
|
-
default: ""
|
|
27
|
-
},
|
|
28
|
-
mode: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: "view"
|
|
31
|
-
},
|
|
32
|
-
content: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: ""
|
|
35
|
-
},
|
|
36
|
-
jsonContents: {
|
|
37
|
-
type: Array,
|
|
38
|
-
default: () => []
|
|
39
|
-
},
|
|
40
|
-
showButton: {
|
|
41
|
-
type: Boolean,
|
|
42
|
-
default: !1
|
|
43
|
-
},
|
|
44
|
-
nodeDev: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: ""
|
|
47
|
-
},
|
|
48
|
-
pageKey: {
|
|
49
|
-
type: String,
|
|
50
|
-
default: ""
|
|
51
|
-
},
|
|
52
|
-
interfaceContent: {
|
|
53
|
-
type: Array,
|
|
54
|
-
default: () => []
|
|
55
|
-
},
|
|
56
|
-
loginContent: {
|
|
57
|
-
type: Object,
|
|
58
|
-
default: () => {
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
emits: ["buildContent", "openThreeBuild", "threeData", "setLoginInfo", "projectLogin", "updateApiUrl"],
|
|
63
|
-
setup(u, { emit: h }) {
|
|
64
|
-
const S = $(), c = F(y), { loginUserInfo: f } = w(c), { initSystemInfo: I } = W(), v = P(y), { refreshLogin: L } = w(v), _ = k(y), e = u, i = h, A = b(() => {
|
|
65
|
-
var t, n;
|
|
66
|
-
return (e == null ? void 0 : e.showButton) || ((n = (t = f.value) == null ? void 0 : t.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
|
|
67
|
-
});
|
|
68
|
-
r(
|
|
69
|
-
() => e == null ? void 0 : e.loginContent,
|
|
70
|
-
async () => {
|
|
71
|
-
var n, o, a, s;
|
|
72
|
-
let t = e == null ? void 0 : e.loginContent;
|
|
73
|
-
t != null && t.account && (t != null && t.password) && !L.value && (H(t), status && (await G(), S.push("/"), c.setLogRecordAsync({
|
|
74
|
-
type: "登录",
|
|
75
|
-
data: {
|
|
76
|
-
account: ((n = f.value) == null ? void 0 : n.account) ?? ((o = f.value) == null ? void 0 : o.账号),
|
|
77
|
-
userName: ((a = f.value) == null ? void 0 : a.姓名) || ((s = f.value) == null ? void 0 : s.userName) || "未知"
|
|
78
|
-
}
|
|
79
|
-
}, "/login", "login"), _.setHasClickEditComp(!1)));
|
|
80
|
-
},
|
|
81
|
-
{ deep: !0, immediate: !0 }
|
|
82
|
-
);
|
|
83
|
-
const E = (t) => {
|
|
84
|
-
i("projectLogin", t);
|
|
85
|
-
}, j = () => {
|
|
86
|
-
i("projectLogin", "");
|
|
87
|
-
};
|
|
88
|
-
r(() => [e == null ? void 0 : e.systemKey, e == null ? void 0 : e.systemInfo], async ([t, n]) => {
|
|
89
|
-
c.setSystemKey(t), t !== "" && sessionStorage.setItem("systemKey", t);
|
|
90
|
-
}, { immediate: !0 }), r(
|
|
91
|
-
() => e == null ? void 0 : e.interfaceContent,
|
|
92
|
-
() => {
|
|
93
|
-
var o, a, s, l, g;
|
|
94
|
-
if (!(e != null && e.interfaceContent) || Array.isArray(e == null ? void 0 : e.interfaceContent) && ((o = e == null ? void 0 : e.interfaceContent) == null ? void 0 : o.length) === 0) return;
|
|
95
|
-
let t = (a = e == null ? void 0 : e.interfaceContent) == null ? void 0 : a.find((d) => d == null ? void 0 : d.includes("VITE_API_NEW_URL")), n = (s = e == null ? void 0 : e.interfaceContent) == null ? void 0 : s.find((d) => d == null ? void 0 : d.includes("VITE_FACE_RECOGNITION_API_URL"));
|
|
96
|
-
n = (l = n == null ? void 0 : n.split("=")) == null ? void 0 : l[1], n = n == null ? void 0 : n.trim(), t = (g = t == null ? void 0 : t.split("=")) == null ? void 0 : g[1], t = t == null ? void 0 : t.trim(), c.setExtraUrl(n ?? ""), c.setSystemUrl(t ?? "");
|
|
97
|
-
},
|
|
98
|
-
{ immediate: !0, deep: !0 }
|
|
99
|
-
), C(async () => {
|
|
100
|
-
e.systemInfo ? c.setSystemInfo(e.systemInfo) : await I();
|
|
101
|
-
});
|
|
102
|
-
const B = () => {
|
|
103
|
-
i("buildContent");
|
|
104
|
-
}, D = () => {
|
|
105
|
-
i("setLoginInfo");
|
|
106
|
-
}, K = (t) => {
|
|
107
|
-
i("openThreeBuild", t);
|
|
108
|
-
}, T = (t) => {
|
|
109
|
-
i("threeData", t);
|
|
110
|
-
}, U = (t) => {
|
|
111
|
-
i("updateApiUrl", t);
|
|
112
|
-
}, m = () => {
|
|
113
|
-
var l;
|
|
114
|
-
const t = e != null && e.windowConfig ? (l = e == null ? void 0 : e.windowConfig) == null ? void 0 : l.width : window.innerWidth, n = 1920, o = 16, a = t / n, s = o * a;
|
|
115
|
-
document.documentElement.style.fontSize = `${s}px`;
|
|
116
|
-
};
|
|
117
|
-
return C(() => {
|
|
118
|
-
m(), window.addEventListener("resize", m);
|
|
119
|
-
}), M(() => {
|
|
120
|
-
window.removeEventListener("resize", m);
|
|
121
|
-
}), (t, n) => {
|
|
122
|
-
const o = N("router-view");
|
|
123
|
-
return O(), z("div", null, [
|
|
124
|
-
x(o, {
|
|
125
|
-
mode: e == null ? void 0 : e.mode,
|
|
126
|
-
content: e == null ? void 0 : e.content,
|
|
127
|
-
jsonContents: e == null ? void 0 : e.jsonContents,
|
|
128
|
-
pathContent: e == null ? void 0 : e.pathContent,
|
|
129
|
-
showButton: A.value,
|
|
130
|
-
nodeDev: e == null ? void 0 : e.nodeDev,
|
|
131
|
-
windowConfig: u.windowConfig,
|
|
132
|
-
systemInfo: u.systemInfo,
|
|
133
|
-
"old-systemKey": u.systemKey,
|
|
134
|
-
onBuildContent: B,
|
|
135
|
-
onProjectLogin: E,
|
|
136
|
-
onClearLogin: j,
|
|
137
|
-
onUpdateApiUrl: U,
|
|
138
|
-
onOpenThreeBuild: K,
|
|
139
|
-
pageKey: u.pageKey,
|
|
140
|
-
onThreeData: T,
|
|
141
|
-
onSetLoginInfo: D,
|
|
142
|
-
loginContent: e == null ? void 0 : e.loginContent
|
|
143
|
-
}, null, 8, ["mode", "content", "jsonContents", "pathContent", "showButton", "nodeDev", "windowConfig", "systemInfo", "old-systemKey", "pageKey", "loginContent"])
|
|
144
|
-
]);
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
}), ee = /* @__PURE__ */ q(J, [["__scopeId", "data-v-3b8f66e7"]]);
|
|
148
|
-
export {
|
|
149
|
-
ee as default
|
|
150
|
-
};
|