ss-component-new 1.3.321 → 1.3.322

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.
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),s=require("./menu-FU5yiMy8.cjs"),h=require("./index-aziCJXBJ.cjs"),K=require("./index-CFjmSYEv.cjs"),M=require("vue-router"),U=require("./index-W8p89C7t.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),N={key:0},q=n.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(r,{emit:S}){const I=M.useRouter(),l=s.useLoginState(s.pinia),{loginUserInfo:f}=s.storeToRefs(l),{initSystemInfo:L}=h.useModelManagement(),_=s.useModelComp(s.pinia),{refreshLogin:C}=s.storeToRefs(_),B=s.useMenuState(s.pinia),y=n.ref(!0),w=n.ref(),e=r,u=S,E=n.computed(()=>{var t,o;return(e==null?void 0:e.showButton)||((o=(t=f.value)==null?void 0:t.layer)==null?void 0:o.toUpperCase())==="SUPERADMIN"});n.watch(()=>e==null?void 0:e.loginContent,async()=>{var o,c,i,a;y.value=!0,w.value=U.ElLoading.service({lock:!0,text:"正在网络加载中.....",background:"rgba(0, 0, 0, 0.7)"});let t=e==null?void 0:e.loginContent;t!=null&&t.account&&(t!=null&&t.password)&&!C.value&&(await K.loginUp(t),status&&(await h.verifyStructureDataToStore(),I.push("/"),l.setLogRecordAsync({type:"登录",data:{account:((o=f.value)==null?void 0:o.account)??((c=f.value)==null?void 0:c.账号),userName:((i=f.value)==null?void 0:i.姓名)||((a=f.value)==null?void 0:a.userName)||"未知"}},"/login","login"),B.setHasClickEditComp(!1))),y.value=!1,w.value.close()},{deep:!0,immediate:!0});const A=t=>{u("projectLogin",t)},j=()=>{u("projectLogin","")};n.watch(()=>[e==null?void 0:e.systemKey,e==null?void 0:e.systemInfo],async([t,o])=>{l.setSystemKey(t),t!==""&&sessionStorage.setItem("systemKey",t)},{immediate:!0}),n.watch(()=>e==null?void 0:e.interfaceContent,()=>{var c,i,a,m,v;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=(i=e==null?void 0:e.interfaceContent)==null?void 0:i.find(d=>d==null?void 0:d.includes("VITE_API_NEW_URL")),o=(a=e==null?void 0:e.interfaceContent)==null?void 0:a.find(d=>d==null?void 0:d.includes("VITE_FACE_RECOGNITION_API_URL"));o=(m=o==null?void 0:o.split("="))==null?void 0:m[1],o=o==null?void 0:o.trim(),t=(v=t==null?void 0:t.split("="))==null?void 0:v[1],t=t==null?void 0:t.trim(),l.setExtraUrl(o??""),l.setSystemUrl(t??"")},{immediate:!0,deep:!0}),n.onMounted(async()=>{e.systemInfo?l.setSystemInfo(e.systemInfo):await L()});const k=()=>{u("buildContent")},T=()=>{u("setLoginInfo")},D=t=>{u("openThreeBuild",t)},R=t=>{u("threeData",t)},b=t=>{u("updateApiUrl",t)},g=()=>{var m;const t=e!=null&&e.windowConfig?(m=e==null?void 0:e.windowConfig)==null?void 0:m.width:window.innerWidth,o=1920,c=16,i=t/o,a=c*i;document.documentElement.style.fontSize=`${a}px`};return n.onMounted(()=>{g(),window.addEventListener("resize",g)}),n.onUnmounted(()=>{window.removeEventListener("resize",g)}),(t,o)=>{var i,a;const c=n.resolveComponent("router-view");return n.openBlock(),n.createElementBlock("div",null,[(i=e==null?void 0:e.loginContent)!=null&&i.account&&((a=e==null?void 0:e.loginContent)!=null&&a.password)&&!n.unref(C)&&y.value?(n.openBlock(),n.createElementBlock("div",N)):n.createCommentVNode("",!0),y.value?n.createCommentVNode("",!0):(n.openBlock(),n.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:E.value,nodeDev:e==null?void 0:e.nodeDev,windowConfig:r.windowConfig,systemInfo:r.systemInfo,"old-systemKey":r.systemKey,onBuildContent:k,onProjectLogin:A,onClearLogin:j,onUpdateApiUrl:b,onOpenThreeBuild:D,pageKey:r.pageKey,onThreeData:R,onSetLoginInfo:T,loginContent:e==null?void 0:e.loginContent},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","systemInfo","old-systemKey","pageKey","loginContent"]))])}}}),O=x._export_sfc(q,[["__scopeId","data-v-8767e525"]]);exports.default=O;
@@ -62,7 +62,7 @@ const p = { key: 0 }, ee = /* @__PURE__ */ O({
62
62
  },
63
63
  emits: ["buildContent", "openThreeBuild", "threeData", "setLoginInfo", "projectLogin", "updateApiUrl"],
64
64
  setup(u, { emit: A }) {
65
- const B = X(), d = H(C), { loginUserInfo: l } = E(d), { initSystemInfo: j } = J(), D = $(C), { refreshLogin: w } = E(D), b = q(C), m = S(!0), v = S(), e = u, s = A, K = x(() => {
65
+ const B = X(), d = H(C), { loginUserInfo: l } = E(d), { initSystemInfo: j } = J(), D = $(C), { refreshLogin: w } = E(D), K = q(C), m = S(!0), v = S(), e = u, s = A, T = x(() => {
66
66
  var t, n;
67
67
  return (e == null ? void 0 : e.showButton) || ((n = (t = l.value) == null ? void 0 : t.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
68
68
  });
@@ -76,19 +76,19 @@ const p = { key: 0 }, ee = /* @__PURE__ */ O({
76
76
  background: "rgba(0, 0, 0, 0.7)"
77
77
  });
78
78
  let t = e == null ? void 0 : e.loginContent;
79
- t != null && t.account && (t != null && t.password) && !w.value && (V(t), status && (await Q(), B.push("/"), d.setLogRecordAsync({
79
+ t != null && t.account && (t != null && t.password) && !w.value && (await V(t), status && (await Q(), B.push("/"), d.setLogRecordAsync({
80
80
  type: "登录",
81
81
  data: {
82
82
  account: ((n = l.value) == null ? void 0 : n.account) ?? ((a = l.value) == null ? void 0 : a.账号),
83
83
  userName: ((o = l.value) == null ? void 0 : o.姓名) || ((i = l.value) == null ? void 0 : i.userName) || "未知"
84
84
  }
85
- }, "/login", "login"), b.setHasClickEditComp(!1))), m.value = !1, v.value.close();
85
+ }, "/login", "login"), K.setHasClickEditComp(!1))), m.value = !1, v.value.close();
86
86
  },
87
87
  { deep: !0, immediate: !0 }
88
88
  );
89
- const T = (t) => {
89
+ const U = (t) => {
90
90
  s("projectLogin", t);
91
- }, U = () => {
91
+ }, b = () => {
92
92
  s("projectLogin", "");
93
93
  };
94
94
  y(() => [e == null ? void 0 : e.systemKey, e == null ? void 0 : e.systemInfo], async ([t, n]) => {
@@ -135,14 +135,14 @@ const p = { key: 0 }, ee = /* @__PURE__ */ O({
135
135
  content: e == null ? void 0 : e.content,
136
136
  jsonContents: e == null ? void 0 : e.jsonContents,
137
137
  pathContent: e == null ? void 0 : e.pathContent,
138
- showButton: K.value,
138
+ showButton: T.value,
139
139
  nodeDev: e == null ? void 0 : e.nodeDev,
140
140
  windowConfig: u.windowConfig,
141
141
  systemInfo: u.systemInfo,
142
142
  "old-systemKey": u.systemKey,
143
143
  onBuildContent: k,
144
- onProjectLogin: T,
145
- onClearLogin: U,
144
+ onProjectLogin: U,
145
+ onClearLogin: b,
146
146
  onUpdateApiUrl: z,
147
147
  onOpenThreeBuild: M,
148
148
  pageKey: u.pageKey,
@@ -153,7 +153,7 @@ const p = { key: 0 }, ee = /* @__PURE__ */ O({
153
153
  ]);
154
154
  };
155
155
  }
156
- }), de = /* @__PURE__ */ Z(ee, [["__scopeId", "data-v-b185ac48"]]);
156
+ }), de = /* @__PURE__ */ Z(ee, [["__scopeId", "data-v-8767e525"]]);
157
157
  export {
158
158
  de as default
159
159
  };
@@ -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-B1YdRpLC.cjs");const C=require("./index-BpPyaNFa.cjs");require("./dayjs.min-CKeZNApM.cjs");require("./index-Bi3chwDQ.cjs");const q=require("./menu-FU5yiMy8.cjs");require("./request-BC2w2vGr.cjs");;/* empty css */const s=require("./ss-component2.cjs"),t=require("./index-RoXicHV9.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-vQ17tgzX.cjs")));r.install=e=>{e.component("ssComponent",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BfoNwJYn.cjs")).then(e=>e.index$1));i.install=e=>{e.component("ssTab",i)};const c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-kCIwjtpa.cjs")).then(e=>e.index));c.install=e=>{e.component("ssMenu",c)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BBuhs0ay.cjs")));l.install=e=>{e.component("ssMenuComponent",l)};const m=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BS1qv-TP.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-BuytoK__.cjs")).then(e=>e.index));a.install=e=>{e.component("ssAvatar",a)};const h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeModel-B0JqdXMa.cjs")));h.install=e=>{e.component("ssThree",h)};const f=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeViewerHost-BfyPonp9.cjs")).then(e=>e.threeViewerHost));f.install=e=>{e.component("threeViewerHost",f)};const p=q.useMenuState(),v=[r,i,c,l,m,u,a,h,f],P=e=>{v.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-B1YdRpLC.cjs");const C=require("./index-BpPyaNFa.cjs");require("./dayjs.min-CKeZNApM.cjs");require("./index-Bi3chwDQ.cjs");const q=require("./menu-FU5yiMy8.cjs");require("./request-BC2w2vGr.cjs");;/* empty css */const s=require("./ss-component2.cjs"),t=require("./index-RoXicHV9.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-vQ17tgzX.cjs")));r.install=e=>{e.component("ssComponent",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BfoNwJYn.cjs")).then(e=>e.index$1));i.install=e=>{e.component("ssTab",i)};const c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-kCIwjtpa.cjs")).then(e=>e.index));c.install=e=>{e.component("ssMenu",c)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Bk4N19es.cjs")));l.install=e=>{e.component("ssMenuComponent",l)};const m=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BS1qv-TP.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-BuytoK__.cjs")).then(e=>e.index));a.install=e=>{e.component("ssAvatar",a)};const h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeModel-B0JqdXMa.cjs")));h.install=e=>{e.component("ssThree",h)};const f=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeViewerHost-BfyPonp9.cjs")).then(e=>e.threeViewerHost));f.install=e=>{e.component("threeViewerHost",f)};const p=q.useMenuState(),v=[r,i,c,l,m,u,a,h,f],P=e=>{v.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;