ss-component-new 1.3.311 → 1.3.313

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"),f=require("./menu-D2crOMII.cjs"),B=require("./index-B-T8_bdu.cjs"),_=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=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(s,{emit:m}){const c=f.useLoginState(f.pinia),{loginUserInfo:r}=f.storeToRefs(c),{initSystemInfo:g}=B.useModelManagement(),e=s,i=m,C=n.computed(()=>{var t,o;return(e==null?void 0:e.showButton)||((o=(t=r.value)==null?void 0:t.layer)==null?void 0:o.toUpperCase())==="SUPERADMIN"}),w=t=>{i("projectLogin",t)},h=()=>{console.log(2311,111),i("projectLogin","")};n.watch(()=>[e==null?void 0:e.systemKey,e==null?void 0:e.systemInfo],async([t,o])=>{c.setSystemKey(t),t!==""&&sessionStorage.setItem("systemKey",t)},{immediate:!0}),n.watch(()=>e==null?void 0:e.interfaceContent,()=>{var o,a,l;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;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"));t=(l=t==null?void 0:t.split("="))==null?void 0:l[1],t=t==null?void 0:t.trim(),c.setSystemUrl(t??"")},{immediate:!0,deep:!0}),n.onMounted(async()=>{e.systemInfo?c.setSystemInfo(e.systemInfo):await g()});const S=()=>{i("buildContent")},I=()=>{i("setLoginInfo")},v=t=>{i("openThreeBuild",t)},L=t=>{i("threeData",t)},j=t=>{i("updateApiUrl",t)},u=()=>{var y;const t=e!=null&&e.windowConfig?(y=e==null?void 0:e.windowConfig)==null?void 0:y.width:window.innerWidth,o=1920,a=16,l=t/o,d=a*l;document.documentElement.style.fontSize=`${d}px`};return n.onMounted(()=>{u(),window.addEventListener("resize",u)}),n.onUnmounted(()=>{window.removeEventListener("resize",u)}),(t,o)=>{const a=n.resolveComponent("router-view");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(a,{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:C.value,nodeDev:e==null?void 0:e.nodeDev,windowConfig:s.windowConfig,systemInfo:s.systemInfo,"old-systemKey":s.systemKey,onBuildContent:S,onProjectLogin:w,onClearLogin:h,onUpdateApiUrl:j,onOpenThreeBuild:v,pageKey:s.pageKey,onThreeData:L,onSetLoginInfo:I,loginContent:e==null?void 0:e.loginContent},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","systemInfo","old-systemKey","pageKey","loginContent"])])}}}),D=_._export_sfc(A,[["__scopeId","data-v-f31a4f05"]]);exports.default=D;
@@ -859,7 +859,7 @@ const fo = /* @__PURE__ */ ql(ro, [["render", po], ["__scopeId", "data-v-f4b6e11
859
859
  return ae == null ? void 0 : ae.includes("@InterfaceHide=Yes");
860
860
  }));
861
861
  }, Qe = () => {
862
- a("clearLogin"), sessionStorage.clear(), localStorage.clear(), window.location.reload();
862
+ a("clearLogin");
863
863
  }, xe = Cl(() => {
864
864
  const T = ie.value;
865
865
  return Pe.value.get(T);
@@ -1996,7 +1996,7 @@ const fo = /* @__PURE__ */ ql(ro, [["render", po], ["__scopeId", "data-v-f4b6e11
1996
1996
  ], 64);
1997
1997
  };
1998
1998
  }
1999
- }), Ii = /* @__PURE__ */ ql(Mi, [["__scopeId", "data-v-facc0433"]]), Si = /* @__PURE__ */ Dl({
1999
+ }), Ii = /* @__PURE__ */ ql(Mi, [["__scopeId", "data-v-f5a215b0"]]), Si = /* @__PURE__ */ Dl({
2000
2000
  __name: "menuItem",
2001
2001
  props: {
2002
2002
  menuList: {
@@ -7876,7 +7876,7 @@ const Gt = (s, w, i, u) => {
7876
7876
  emits: ["buildContent", "showChild", "clearLogin"],
7877
7877
  setup(s, { emit: w }) {
7878
7878
  const i = ca(bl), u = Qa(bl), A = Nl(bl), l = O(!0), { hasClickEditComp: f } = hl(A), V = la(bl), { loginUserInfo: h } = hl(V), m = s, se = w, F = () => {
7879
- se("clearLogin");
7879
+ console.log(2312, 111), se("clearLogin");
7880
7880
  }, I = (ne) => {
7881
7881
  se("showChild", ne);
7882
7882
  }, U = Cl(() => {
@@ -8008,7 +8008,7 @@ const Gt = (s, w, i, u) => {
8008
8008
  }, 8, ["windowConfig", "showButton", "platform", "taskContent"]))
8009
8009
  ]));
8010
8010
  }
8011
- }), Ir = /* @__PURE__ */ ql(Mr, [["__scopeId", "data-v-14fdaf8b"]]), Sr = la(bl), { systemUrl: ka } = hl(Sr);
8011
+ }), Ir = /* @__PURE__ */ ql(Mr, [["__scopeId", "data-v-ad3bc14d"]]), Sr = la(bl), { systemUrl: ka } = hl(Sr);
8012
8012
  let Ia = ka.value === "" || !ka.value ? "http://222.92.178.198:63002" : ka.value;
8013
8013
  yl(
8014
8014
  () => ka.value,
@@ -65,7 +65,7 @@ const O = /* @__PURE__ */ B({
65
65
  }), w = (t) => {
66
66
  o("projectLogin", t);
67
67
  }, h = () => {
68
- o("projectLogin", "");
68
+ console.log(2311, 111), o("projectLogin", "");
69
69
  };
70
70
  m(() => [e == null ? void 0 : e.systemKey, e == null ? void 0 : e.systemInfo], async ([t, n]) => {
71
71
  d.setSystemKey(t), t !== "" && sessionStorage.setItem("systemKey", t);
@@ -126,7 +126,7 @@ const O = /* @__PURE__ */ B({
126
126
  ]);
127
127
  };
128
128
  }
129
- }), W = /* @__PURE__ */ M(O, [["__scopeId", "data-v-68675c3f"]]);
129
+ }), W = /* @__PURE__ */ M(O, [["__scopeId", "data-v-f31a4f05"]]);
130
130
  export {
131
131
  W as default
132
132
  };