ss-component-new 1.3.404 → 1.3.405

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.
@@ -73,7 +73,7 @@ const ee = { key: 0 }, te = /* @__PURE__ */ P({
73
73
  },
74
74
  emits: ["buildContent", "openThreeBuild", "threeData", "setLoginInfo", "projectLogin", "updateApiUrl", "clearFileContent", "systemContent", "getMenuPathValue", "executeWorkspcae"],
75
75
  setup(d, { emit: L }) {
76
- const _ = Z(), l = $(w), { loginUserInfo: f } = h(l), { initSystemInfo: A } = q(), D = J(w), { refreshLogin: E } = h(D), r = Q(w), y = W(!0), { activeMenuPath: v } = h(r), e = d, o = L, F = z(() => {
76
+ const _ = Z(), u = $(w), { loginUserInfo: f } = h(u), { initSystemInfo: A } = q(), D = J(w), { refreshLogin: E } = h(D), r = Q(w), y = W(!0), { activeMenuPath: v } = h(r), e = d, o = L, F = z(() => {
77
77
  var t, n;
78
78
  return (e == null ? void 0 : e.showButton) || ((n = (t = f.value) == null ? void 0 : t.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
79
79
  }), j = (t) => {
@@ -85,7 +85,7 @@ const ee = { key: 0 }, te = /* @__PURE__ */ P({
85
85
  () => e == null ? void 0 : e.menuFiles,
86
86
  () => {
87
87
  var t;
88
- ((t = e == null ? void 0 : e.menuFiles) == null ? void 0 : t.length) > 0 && r.setLocalFiles(e == null ? void 0 : e.menuFiles);
88
+ ((t = e == null ? void 0 : e.menuFiles) == null ? void 0 : t.length) > 0 && (console.log(232, e == null ? void 0 : e.menuFiles), r.setLocalFiles(e == null ? void 0 : e.menuFiles));
89
89
  },
90
90
  { deep: !0, immediate: !0 }
91
91
  ), m(
@@ -102,7 +102,7 @@ const ee = { key: 0 }, te = /* @__PURE__ */ P({
102
102
  let t = e == null ? void 0 : e.loginContent;
103
103
  if (t != null && t.account && (t != null && t.password) && !E.value && (await Y(t), status)) {
104
104
  let i = await X();
105
- o("systemContent", i == null ? void 0 : i.allMenuContents), _.push("/"), l.setLogRecordAsync({
105
+ o("systemContent", i == null ? void 0 : i.allMenuContents), _.push("/"), u.setLogRecordAsync({
106
106
  type: "登录",
107
107
  data: {
108
108
  account: ((n = f.value) == null ? void 0 : n.account) ?? ((a = f.value) == null ? void 0 : a.账号),
@@ -120,18 +120,18 @@ const ee = { key: 0 }, te = /* @__PURE__ */ P({
120
120
  o("projectLogin", "");
121
121
  };
122
122
  m(() => [e == null ? void 0 : e.systemKey, e == null ? void 0 : e.systemInfo], async ([t, n]) => {
123
- l.setSystemKey(t), t !== "" && sessionStorage.setItem("systemKey", t);
123
+ u.setSystemKey(t), t !== "" && sessionStorage.setItem("systemKey", t);
124
124
  }, { immediate: !0 }), m(
125
125
  () => e == null ? void 0 : e.interfaceContent,
126
126
  () => {
127
127
  var a, s, c, i, I;
128
128
  if (!(e != null && e.interfaceContent) || Array.isArray(e == null ? void 0 : e.interfaceContent) && ((a = e == null ? void 0 : e.interfaceContent) == null ? void 0 : a.length) === 0) return;
129
- let t = (s = e == null ? void 0 : e.interfaceContent) == null ? void 0 : s.find((u) => u == null ? void 0 : u.includes("VITE_API_NEW_URL")), n = (c = e == null ? void 0 : e.interfaceContent) == null ? void 0 : c.find((u) => u == null ? void 0 : u.includes("VITE_FACE_RECOGNITION_API_URL"));
130
- n = (i = n == null ? void 0 : n.split("=")) == null ? void 0 : i[1], n = n == null ? void 0 : n.trim(), t = (I = t == null ? void 0 : t.split("=")) == null ? void 0 : I[1], t = t == null ? void 0 : t.trim(), l.setExtraUrl(n ?? ""), l.setSystemUrl(t ?? "");
129
+ let t = (s = e == null ? void 0 : e.interfaceContent) == null ? void 0 : s.find((l) => l == null ? void 0 : l.includes("VITE_API_NEW_URL")), n = (c = e == null ? void 0 : e.interfaceContent) == null ? void 0 : c.find((l) => l == null ? void 0 : l.includes("VITE_FACE_RECOGNITION_API_URL"));
130
+ n = (i = n == null ? void 0 : n.split("=")) == null ? void 0 : i[1], n = n == null ? void 0 : n.trim(), t = (I = t == null ? void 0 : t.split("=")) == null ? void 0 : I[1], t = t == null ? void 0 : t.trim(), u.setExtraUrl(n ?? ""), u.setSystemUrl(t ?? "");
131
131
  },
132
132
  { immediate: !0, deep: !0 }
133
133
  ), S(async () => {
134
- e.systemInfo ? l.setSystemInfo(e.systemInfo) : await A();
134
+ e.systemInfo ? u.setSystemInfo(e.systemInfo) : await A();
135
135
  });
136
136
  const x = () => {
137
137
  o("buildContent");
@@ -186,7 +186,7 @@ const ee = { key: 0 }, te = /* @__PURE__ */ P({
186
186
  ]);
187
187
  };
188
188
  }
189
- }), ce = /* @__PURE__ */ p(te, [["__scopeId", "data-v-f3c541be"]]);
189
+ }), ce = /* @__PURE__ */ p(te, [["__scopeId", "data-v-7cc286bf"]]);
190
190
  export {
191
191
  ce as default
192
192
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),a=require("./index-Pve69buQ.cjs"),b=require("./index-CasVp7yH.cjs"),K=require("vue-router"),U=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),O={key:0},P=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:()=>{}},menuFiles:{type:Array,default:()=>[]},workspaceHistoryData:{type:Array,default:()=>[]},workspaceInfo:{type:Object,default:()=>[]}},emits:["buildContent","openThreeBuild","threeData","setLoginInfo","projectLogin","updateApiUrl","clearFileContent","systemContent","getMenuPathValue","executeWorkspcae"],setup(f,{emit:v}){const I=K.useRouter(),r=a.useLoginState(a.pinia),{loginUserInfo:m}=a.storeToRefs(r),{initSystemInfo:S}=a.useModelManagement(),k=a.useModelComp(a.pinia),{refreshLogin:L}=a.storeToRefs(k),y=a.useMenuState(a.pinia),g=o.ref(!0),{activeMenuPath:w}=a.storeToRefs(y),e=f,i=v,_=o.computed(()=>{var t,n;return(e==null?void 0:e.showButton)||((n=(t=m.value)==null?void 0:t.layer)==null?void 0:n.toUpperCase())==="SUPERADMIN"}),A=t=>{i("systemContent",t)},B=()=>{i("clearFileContent")};o.watch(()=>e==null?void 0:e.menuFiles,()=>{var t;((t=e==null?void 0:e.menuFiles)==null?void 0:t.length)>0&&(console.log(232,e==null?void 0:e.menuFiles),y.setLocalFiles(e==null?void 0:e.menuFiles))},{deep:!0,immediate:!0}),o.watch(()=>w.value,()=>{i("getMenuPathValue",w.value)},{deep:!0,immediate:!0}),o.watch(()=>e==null?void 0:e.loginContent,async()=>{var n,c,u,l;g.value=!0;let t=e==null?void 0:e.loginContent;if(t!=null&&t.account&&(t!=null&&t.password)&&!L.value&&(await b.loginUp(t),status)){let s=await a.verifyStructureDataToStore();i("systemContent",s==null?void 0:s.allMenuContents),I.push("/"),r.setLogRecordAsync({type:"登录",data:{account:((n=m.value)==null?void 0:n.account)??((c=m.value)==null?void 0:c.账号),userName:((u=m.value)==null?void 0:u.姓名)||((l=m.value)==null?void 0:l.userName)||"未知"}},"/login","login"),y.setHasClickEditComp(!1)}g.value=!1,await o.nextTick()},{deep:!0,immediate:!0});const E=t=>{i("projectLogin",t)},D=()=>{i("projectLogin","")};o.watch(()=>[e==null?void 0:e.systemKey,e==null?void 0:e.systemInfo],async([t,n])=>{r.setSystemKey(t),t!==""&&sessionStorage.setItem("systemKey",t)},{immediate:!0}),o.watch(()=>e==null?void 0:e.interfaceContent,()=>{var c,u,l,s,h;if(!(e!=null&&e.interfaceContent)||Array.isArray(e==null?void 0:e.interfaceContent)&&((c=e==null?void 0:e.interfaceContent)==null?void 0:c.length)===0)return;let t=(u=e==null?void 0:e.interfaceContent)==null?void 0:u.find(d=>d==null?void 0:d.includes("VITE_API_NEW_URL")),n=(l=e==null?void 0:e.interfaceContent)==null?void 0:l.find(d=>d==null?void 0:d.includes("VITE_FACE_RECOGNITION_API_URL"));n=(s=n==null?void 0:n.split("="))==null?void 0:s[1],n=n==null?void 0:n.trim(),t=(h=t==null?void 0:t.split("="))==null?void 0:h[1],t=t==null?void 0:t.trim(),r.setExtraUrl(n??""),r.setSystemUrl(t??"")},{immediate:!0,deep:!0}),o.onMounted(async()=>{e.systemInfo?r.setSystemInfo(e.systemInfo):await S()});const F=()=>{i("buildContent")},j=()=>{i("setLoginInfo")},M=t=>{i("openThreeBuild",t)},T=t=>{i("threeData",t)},x=t=>{i("updateApiUrl",t)},R=t=>{i("executeWorkspcae",t)},C=()=>{var s;const t=e!=null&&e.windowConfig?(s=e==null?void 0:e.windowConfig)==null?void 0:s.width:window.innerWidth,n=1920,c=16,u=t/n,l=c*u;document.documentElement.style.fontSize=`${l}px`};return o.onMounted(()=>{C(),window.addEventListener("resize",C)}),o.onUnmounted(()=>{window.removeEventListener("resize",C)}),(t,n)=>{const c=o.resolveComponent("router-view");return o.openBlock(),o.createElementBlock("div",null,[g.value?(o.openBlock(),o.createElementBlock("div",O)):(o.openBlock(),o.createBlock(c,{key:1,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:F,onProjectLogin:E,onClearLogin:D,onUpdateApiUrl:x,onOpenThreeBuild:M,pageKey:f.pageKey,onThreeData:T,onSetLoginInfo:j,loginContent:e==null?void 0:e.loginContent,onClearFileContent:B,onSystemContent:A,onExecuteWorkspcae:R,workspaceHistoryData:e==null?void 0:e.workspaceHistoryData,workspaceInfo:e==null?void 0:e.workspaceInfo},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","systemInfo","old-systemKey","pageKey","loginContent","workspaceHistoryData","workspaceInfo"]))])}}}),W=U._export_sfc(P,[["__scopeId","data-v-7cc286bf"]]);exports.default=W;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BB3g-g6w.cjs");const C=require("./index-BpPyaNFa.cjs"),v=require("./index-Pve69buQ.cjs");require("./index-BszVYrt4.cjs");require("./request-Dl8yi2iS.cjs");;/* empty css */const s=require("./ss-component2.cjs"),t=require("./index-RoXicHV9.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-CYf_FJPb.cjs")));r.install=e=>{e.component("ssComponent",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-B_TGjgjf.cjs")).then(e=>e.index$1));i.install=e=>{e.component("ssTab",i)};const c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BZIF3k0W.cjs")).then(e=>e.index));c.install=e=>{e.component("ssMenu",c)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-p6CpwQMN.cjs")));l.install=e=>{e.component("ssMenuComponent",l)};const m=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BxYAWHue.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-Bg_qW-pV.cjs")).then(e=>e.index));a.install=e=>{e.component("ssAvatar",a)};const h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeModel-D5dkRAQF.cjs")));h.install=e=>{e.component("ssThree",h)};const f=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeViewerHost-C5RcAXq8.cjs")).then(e=>e.threeViewerHost));f.install=e=>{e.component("threeViewerHost",f)};const p=v.useMenuState(),q=[r,i,c,l,m,u,a,h,f],P=e=>{q.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=P;exports.platformApi=T;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BB3g-g6w.cjs");const C=require("./index-BpPyaNFa.cjs"),v=require("./index-Pve69buQ.cjs");require("./index-BszVYrt4.cjs");require("./request-Dl8yi2iS.cjs");;/* empty css */const s=require("./ss-component2.cjs"),t=require("./index-RoXicHV9.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-CYf_FJPb.cjs")));r.install=e=>{e.component("ssComponent",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-B_TGjgjf.cjs")).then(e=>e.index$1));i.install=e=>{e.component("ssTab",i)};const c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BZIF3k0W.cjs")).then(e=>e.index));c.install=e=>{e.component("ssMenu",c)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-kHAC97Vo.cjs")));l.install=e=>{e.component("ssMenuComponent",l)};const m=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BxYAWHue.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-Bg_qW-pV.cjs")).then(e=>e.index));a.install=e=>{e.component("ssAvatar",a)};const h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeModel-D5dkRAQF.cjs")));h.install=e=>{e.component("ssThree",h)};const f=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeViewerHost-C5RcAXq8.cjs")).then(e=>e.threeViewerHost));f.install=e=>{e.component("threeViewerHost",f)};const p=v.useMenuState(),q=[r,i,c,l,m,u,a,h,f],P=e=>{q.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=P;exports.platformApi=T;