ss-component-new 1.2.90 → 1.2.92
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/{animationData-ChnEQcWN.cjs → animationData-BtND2VWy.cjs} +1 -1
- package/dist/{animationData-R5RUbyuY.js → animationData-DZ0i7k1j.js} +1 -1
- package/dist/{index-CmPnaCqr.js → index-1gXFTnuu.js} +12 -12
- package/dist/{index-DvSKjwnE.cjs → index-BGvxk4QX.cjs} +1 -1
- package/dist/{index-BRVn_EF1.js → index-BKaTMDZC.js} +2 -2
- package/dist/{index-bFdNa8aj.cjs → index-BUYZ6Pzj.cjs} +1 -1
- package/dist/{index-DNWalfgy.cjs → index-BYoEVm0h.cjs} +1 -1
- package/dist/{index-ClxM8xCG.cjs → index-B_KvjL9P.cjs} +1 -1
- package/dist/{index-B67-PgYw.js → index-BjFqn1jw.js} +1 -1
- package/dist/{index-wZjCbQV_.cjs → index-BooqzjWY.cjs} +1 -1
- package/dist/{index-D5VkPezA.cjs → index-BprBzYZ5.cjs} +1 -1
- package/dist/{index-DsLShQZL.js → index-BtKhX2oM.js} +2 -2
- package/dist/{index-s_rVCHvs.js → index-BvxyAOvM.js} +1 -1
- package/dist/{index-DP_i5ftZ.js → index-C07slqLJ.js} +1 -1
- package/dist/{index-945YmMLJ.js → index-C1aAW06_.js} +1 -1
- package/dist/{index-CIL8wLzQ.js → index-C7HjGMoA.js} +2 -2
- package/dist/{index-B3hVexQF.js → index-CQ7UrLDv.js} +3 -3
- package/dist/{index-DLShoBAD.cjs → index-CRe-_A5B.cjs} +1 -1
- package/dist/{index-PsB2VFdd.js → index-CZsCZbCY.js} +2 -2
- package/dist/{index-DBndBAmi.cjs → index-C_DIwBxS.cjs} +1 -1
- package/dist/{index-pziqfdAa.js → index-CfHIgB5C.js} +1 -1
- package/dist/{index-CKzD8tit.js → index-CiNYm1fC.js} +1 -1
- package/dist/{index-CSASPaZP.cjs → index-CpYf3edW.cjs} +1 -1
- package/dist/{index-DRxhdO38.cjs → index-CtOo2IDL.cjs} +1 -1
- package/dist/{index-BW7_3RoD.cjs → index-CuchbMC7.cjs} +1 -1
- package/dist/{index-H5zWVryT.cjs → index-CylLhQJV.cjs} +1 -1
- package/dist/{index-CxuGIbhq.js → index-DJ14vVkb.js} +1 -1
- package/dist/{index-CNKc5GU4.js → index-DQTbLJJt.js} +1 -1
- package/dist/{index-CRBj0IE1.cjs → index-DSmsp4fK.cjs} +1 -1
- package/dist/{index-CGhvoFIh.cjs → index-DVMvlM3X.cjs} +1 -1
- package/dist/{index-CpGj9jjq.cjs → index-DW_lU8F7.cjs} +1 -1
- package/dist/{index-BhhFLASG.js → index-DwsI_FxR.js} +5 -5
- package/dist/{index-XW9cdt8O.cjs → index-NMPHjxEr.cjs} +1 -1
- package/dist/{index-_PqtVmB5.js → index-Q33CutvH.js} +3 -3
- package/dist/{index-43r-KEgN.js → index-YxS-TBi2.js} +1 -1
- package/dist/{index-Cj-t-GUv.cjs → index-Z2dyIgOs.cjs} +1 -1
- package/dist/{index-Dm2K00uW.js → index-a_TWt7Sj.js} +419 -416
- package/dist/{index-DfghibBM.cjs → index-bz_QKqhV.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-1NUhtQk0.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CjVqxeCk.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-0MW1VRgy.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-qrHH3IDA.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-C72Rr1SH.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-9r-1e4S8.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BMKC5TVn.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-IuoTm-WE.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_1_lang-C-2EhQeU.js → index.vue_vue_type_style_index_1_lang-CDl_PU-6.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-Xo4JSq-J.cjs → index.vue_vue_type_style_index_1_lang-DR71_XjN.cjs} +1 -1
- package/dist/{main-BE-iA6hW.cjs → main-BxTLrfxf.cjs} +1 -1
- package/dist/{main-Bv7oX7Xn.js → main-D_3GSDl9.js} +2 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +6 -6
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-BmkWoPdy.js → threeModel-BKLggDE-.js} +2 -2
- package/dist/{threeModel-cN3XeS9l.cjs → threeModel-D4-2rEpM.cjs} +1 -1
- package/dist/{threePreview-B9kbeN1y.cjs → threePreview-QIurmOdU.cjs} +1 -1
- package/dist/{threePreview-Dmaba2U-.js → threePreview-oszvdj-G.js} +577 -578
- package/dist/threeSceneView-BR1l9yTW.js +1341 -0
- package/dist/threeSceneView-CaHI2V82.cjs +5 -0
- package/dist/threeSceneViewForCPMPIP-DbvRq5YC.cjs +5 -0
- package/dist/{threeSceneViewForCPMPIP-CR5y7Hzt.js → threeSceneViewForCPMPIP-wZTvUhLm.js} +230 -236
- package/dist/{threeTrackPathView-CKhnsfKP.js → threeTrackPathView-CAK5om32.js} +256 -303
- package/dist/{threeTrackPathView-WLhJTcJd.cjs → threeTrackPathView-CF9ierHN.cjs} +2 -2
- package/dist/{threeViewerHost-5yvNo1Ub.js → threeViewerHost-CeTJmyoE.js} +1 -1
- package/dist/{threeViewerHost-Ym_dg2DG.cjs → threeViewerHost-iajMfGA9.cjs} +1 -1
- package/dist/{workpieceTreePanel-D3a0Vvh1.js → workpieceTreePanel-DC0GHh3g.js} +2 -2
- package/dist/{workpieceTreePanel-CTOK6c6d.cjs → workpieceTreePanel-YfDCHyA3.cjs} +1 -1
- package/package.json +1 -1
- package/dist/threeSceneView-EIPGJRbv.cjs +0 -5
- package/dist/threeSceneView-afr3Fv7q.js +0 -1369
- package/dist/threeSceneViewForCPMPIP-BxakXYgn.cjs +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const V=require("./index.vue_vue_type_style_index_1_lang-DnfCrXiN.cjs"),k=require("./threeViewerHost-
|
|
1
|
+
"use strict";const V=require("./index.vue_vue_type_style_index_1_lang-DnfCrXiN.cjs"),k=require("./threeViewerHost-iajMfGA9.cjs"),a=require("./dataUtil-DrslFFRT.cjs"),q=require("./index-C8qRkCgn.cjs"),E=async()=>{let n={};const c=["弯管仿真加工分析","模具筛选安装"],y=await a.getMenuData(c),L=a.getTargetGroup("输入(加工件)",y),i=a.getFormData(L),u=i.管长||0,m=i.外径||0;console.log("管长",u,"外径",m,i);const P=u,C=m/2,T=["弯管仿真加工分析","加工位姿生成"],G=await a.getMenuData(T),R=a.getTargetGroup("输入",G),g=a.getFormData(R),D=g.夹持长度||0;console.log("夹持长度",D,g);const _=Number(D),r={},A=["弯管仿真加工分析","仿真动画生成"],s=await a.getMenuData(A);s==null||s.forEach(t=>{var h,b,f,d,M,F;if((t==null?void 0:t.comp)==="Table"){let w=[],p=(f=(b=(h=t==null?void 0:t.compData)==null?void 0:h.find(e=>(e==null?void 0:e.key)==="header"))==null?void 0:b.contents)==null?void 0:f.map(e=>e==null?void 0:e.label),l=(F=(M=(d=t==null?void 0:t.compData)==null?void 0:d.find(e=>(e==null?void 0:e.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:F.map(e=>(e=e==null?void 0:e.filter(o=>!(o!=null&&o.id)),e));l==null||l.forEach(e=>{w.push(V.getValueToObjectValue(e,p==null?void 0:p.filter(o=>o!=="操作")))}),r[t.name]=w,r[t.name+"Content"]=t}});const x=q.cloneDeep(r)||[];return n={initialPipeLength:P,pipeRadius:C,clampLength:_,animationData:x},n},O=async()=>{let n={};const c=["双弯管仿真加工分析","模具筛选安装"],y=await a.getMenuData(c),L=a.getTargetGroup("输入(加工件)",y),i=a.getFormData(L),u=i.管长||0,m=i.外径||0;console.log("管长",u,"外径",m,i);const P=u,C=m/2,T=["双弯管仿真加工分析","加工工艺生成"],G=await a.getMenuData(T),R=a.getTargetGroup("输入",G),g=a.getFormData(R),D=g.夹持位置||0;console.log("夹持长度",D,g);const _=Number(D),r={},A=["双弯管仿真加工分析","仿真动画生成"],s=await a.getMenuData(A);s==null||s.forEach(t=>{var h,b,f,d,M,F;if((t==null?void 0:t.comp)==="Table"){let w=[],p=(f=(b=(h=t==null?void 0:t.compData)==null?void 0:h.find(e=>(e==null?void 0:e.key)==="header"))==null?void 0:b.contents)==null?void 0:f.map(e=>e==null?void 0:e.label),l=(F=(M=(d=t==null?void 0:t.compData)==null?void 0:d.find(e=>(e==null?void 0:e.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:F.map(e=>(e=e==null?void 0:e.filter(o=>!(o!=null&&o.id)),e));l==null||l.forEach(e=>{w.push(V.getValueToObjectValue(e,p==null?void 0:p.filter(o=>o!=="操作")))}),r[t.name]=w,r[t.name+"Content"]=t}});const x=q.cloneDeep(r)||[];return n={initialPipeLength:P,pipeRadius:C,clampLength:_,animationData:x},n},B=async n=>await k.downloadFile(n),X=async n=>await k.readCsv(n),Y=async n=>{const c=await B(n);return await X(c)};exports.fetchDoubleRobotAnimationData=O;exports.fetchSingleRobotAnimationData=E;exports.initXYZBCList=Y;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { k as x } from "./index.vue_vue_type_style_index_1_lang-kYz8t0xw.js";
|
|
2
|
-
import { i as N, j as V } from "./threeViewerHost-
|
|
2
|
+
import { i as N, j as V } from "./threeViewerHost-CeTJmyoE.js";
|
|
3
3
|
import { g as r, a as L, e as y } from "./dataUtil-BS-wt9Xk.js";
|
|
4
4
|
import { c as O } from "./index-BUYYl2Pc.js";
|
|
5
5
|
const z = async () => {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { resolveComponent as dA, createBlock as tA, openBlock as a, withCtx as o, createElementVNode as u, toDisplayString as lA, ref as d, onMounted as Bn, watch as KA, createElementBlock as P, Fragment as JA, renderList as VA, createCommentVNode as h, normalizeStyle as Ze, defineComponent as jn, resolveDynamicComponent as Ne, unref as A, computed as qA, provide as fn, resolveDirective as at, createVNode as c, withDirectives as le, createTextVNode as te, vShow as Je, renderSlot as ke, normalizeClass as he, onUnmounted as Et, createSlots as Ct } from "vue";
|
|
2
|
-
import { m as On, a as yn, b as Dn } from "./index-
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_92477073_lang-
|
|
2
|
+
import { m as On, a as yn, b as Dn } from "./index-BtKhX2oM.js";
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_92477073_lang-IuoTm-WE.js";
|
|
4
4
|
import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import { _ as zt, a as Bt, b as jt, e as Xt, s as Ht } from "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-
|
|
5
|
+
import { _ as zt, a as Bt, b as jt, e as Xt, s as Ht } from "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-qrHH3IDA.js";
|
|
6
6
|
import { c as Me, p as wA, s as XA, u as xn, b as Xe, E as xe, g as nn, d as At, e as bt, f as wt } from "./index-BUYYl2Pc.js";
|
|
7
7
|
import { a as rn, u as on, i as mn, j as Ie, k as Tn, l as pt, m as lt } from "./index.vue_vue_type_style_index_1_lang-kYz8t0xw.js";
|
|
8
8
|
import { S as yA } from "./index-BHtNKL1L.js";
|
|
9
|
-
import { a as Se, s as de, b as Rt, c as Qt, r as LA, o as me, d as Te, e as ct, f as ut, h as rt, i as pn, j as ot, k as Ot, t as yt, l as tn, m as et, n as Xn, p as vn, q as dn, u as In, v as an, w as ln, x as cn, y as Pn, z as En, D as Dt, A as xt, B as mt, C as nt, E as tt, F as YA, G as Tt, H as ht, I as st } from "./index-
|
|
9
|
+
import { a as Se, s as de, b as Rt, c as Qt, r as LA, o as me, d as Te, e as ct, f as ut, h as rt, i as pn, j as ot, k as Ot, t as yt, l as tn, m as et, n as Xn, p as vn, q as dn, u as In, v as an, w as ln, x as cn, y as Pn, z as En, D as Dt, A as xt, B as mt, C as nt, E as tt, F as YA, G as Tt, H as ht, I as st } from "./index-a_TWt7Sj.js";
|
|
10
10
|
import { a as Lt } from "./array-Ct6rQOAk.js";
|
|
11
|
-
import { u as hn, a as it } from "./index-
|
|
11
|
+
import { u as hn, a as it } from "./index-CQ7UrLDv.js";
|
|
12
12
|
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DEgtwZwW.js";
|
|
13
|
-
import "./index.vue_vue_type_style_index_1_lang-
|
|
13
|
+
import "./index.vue_vue_type_style_index_1_lang-CDl_PU-6.js";
|
|
14
14
|
import "./index-C7Ks0zLC.js";
|
|
15
15
|
import { useRouter as kt } from "vue-router";
|
|
16
|
-
import Mt from "./index-
|
|
17
|
-
import Gt from "./threeModel-
|
|
16
|
+
import Mt from "./index-CZsCZbCY.js";
|
|
17
|
+
import Gt from "./threeModel-BKLggDE-.js";
|
|
18
18
|
import { s as Cn, _ as Le } from "./index-DkEISMpK.js";
|
|
19
|
-
import { d as zn, T as Rn, u as Nt, a as Jt } from "./threeViewerHost-
|
|
20
|
-
import { _ as un } from "./index-
|
|
21
|
-
import { s as Qn } from "./index-
|
|
19
|
+
import { d as zn, T as Rn, u as Nt, a as Jt } from "./threeViewerHost-CeTJmyoE.js";
|
|
20
|
+
import { _ as un } from "./index-C1aAW06_.js";
|
|
21
|
+
import { s as Qn } from "./index-C7HjGMoA.js";
|
|
22
22
|
import { g as ft, a as be, b as St, c as gt, d as Zt, e as Ke } from "./dataUtil-BS-wt9Xk.js";
|
|
23
23
|
import { T as vt } from "./svgIcon-D-_fXUBL.js";
|
|
24
24
|
import { t as Yt, c as Kt, b as Wt } from "./index-CAPx0_D4.js";
|
|
25
25
|
import { v as Ft } from "./index-Dgdu_Hp_.js";
|
|
26
|
-
import { f as Ut, a as Vt } from "./animationData-
|
|
26
|
+
import { f as Ut, a as Vt } from "./animationData-DZ0i7k1j.js";
|
|
27
27
|
const qt = { class: "menu-title" };
|
|
28
28
|
function _t(s, U, e, R, y, S) {
|
|
29
29
|
const t = dA("ssMenu");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./index-DSmsp4fK.cjs"),h=require("./index.vue_vue_type_style_index_1_lang-DnfCrXiN.cjs"),_=require("./index-C8qRkCgn.cjs"),B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w={class:"routerPage-wrapper"},N={class:"role-dialog-header"},b=["title"],D={title:"更多"},y={class:"dialog-footer"},S=e.defineComponent({__name:"index",setup(T){const g=h.useMenuState(),{menus:C,activeMenuPath:k}=_.storeToRefs(g),o=e.reactive({...h.State$1}),{treeRef:x}=h.State$1;e.onMounted(async()=>{await o.getActivePageStructureId(k.value)});const u=i=>i==null?void 0:i.map(t=>{var c,s,d;return t!=null&&t.childMenus&&((c=t==null?void 0:t.childMenus)==null?void 0:c.length)>0?{...t,childMenus:[],children:u(t==null?void 0:t.childMenus)}:{...t,childMenus:[],path:(s=t==null?void 0:t.path)!=null&&s.startsWith("/")?(d=t==null?void 0:t.path)==null?void 0:d.substring(1):t.path}});return e.watch(()=>C.value,i=>{e.nextTick(()=>{const t=_.cloneDeep(i),c=u(t);o.tempSysMenus=o.handleAddSysMenusButtons(c,"系统维护",["查看"]),o.menuData=o.addButtonsToTree(c,o.structureButtons)})},{immediate:!0,deep:!0}),(i,t)=>{const c=e.resolveComponent("el-checkbox"),s=e.resolveComponent("el-checkbox-group"),d=e.resolveComponent("svg-icon"),v=e.resolveComponent("el-popover"),f=e.resolveComponent("el-tree"),p=e.resolveComponent("el-button"),m=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",w,[e.createVNode(V.ssTable,{index:o.structureId,compName:o.compName,itemData:o.pageDataFiltered,changedContent:o.changedRow,onChange:o.handleItemDataChange,onOnButtonClick:o.clickRowButton},null,8,["index","compName","itemData","changedContent","onChange","onOnButtonClick"]),e.createVNode(m,{modelValue:o.authorizeDialog.show,"onUpdate:modelValue":t[0]||(t[0]=a=>o.authorizeDialog.show=a),width:o.authorizeDialog.width,draggable:o.authorizeDialog.draggable,"before-close":o.closeAuthorizeDialog,class:"role-dialog"},{header:e.withCtx(()=>[e.createElementVNode("div",N,e.toDisplayString(o.authorizeDialog.title),1)]),footer:e.withCtx(()=>[e.createElementVNode("div",y,[e.createVNode(p,{id:"themeBorderButton",onClick:o.closeAuthorizeDialog},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(p,{id:"themeButton",onClick:o.clickSubmitAuthority},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),default:e.withCtx(()=>[e.createVNode(f,{class:"role-tree",ref_key:"treeRef",ref:x,data:o.menuData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"title",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"show-checkbox":"",onCheckChange:o.handleNodeCheckChange,style:{height:"500px","overflow-y":"auto"}},{default:e.withCtx(({node:a,data:n})=>[e.createElementVNode("span",{class:"node-text",title:a==null?void 0:a.label},e.toDisplayString(a==null?void 0:a.label),9,b),e.createVNode(s,{modelValue:n.checkedButtons,"onUpdate:modelValue":l=>n.checkedButtons=l,onChange:l=>o.handleNodeBtnChange(l,n),class:"node-buttons"},{default:e.withCtx(()=>{var l;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((l=n.renderButtons)==null?void 0:l.slice(0,2),r=>(e.openBlock(),e.createBlock(c,{key:r.title,label:r.title,value:r.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),e.createVNode(v,{title:a==null?void 0:a.label,placement:"right-start"},{reference:e.withCtx(()=>{var l;return[e.createElementVNode("span",D,[e.withDirectives(e.createVNode(d,{name:"treeMore",class:"node-trigger"},null,512),[[e.vShow,((l=n.renderButtons)==null?void 0:l.length)>0]])])]}),default:e.withCtx(()=>[e.createVNode(s,{modelValue:n.checkedButtons,"onUpdate:modelValue":l=>n.checkedButtons=l,onChange:l=>o.handleNodeBtnChange(l,n),class:"node-buttons"},{default:e.withCtx(()=>{var l;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((l=n.renderButtons)==null?void 0:l.slice(2),r=>(e.openBlock(),e.createBlock(c,{key:r.title,label:r.title,value:r.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["title"])]),_:1},8,["data","onCheckChange"])]),_:1},8,["modelValue","width","draggable","before-close"])])}}}),M=B._export_sfc(S,[["__scopeId","data-v-78a46dd8"]]);exports.default=M;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as C, reactive as k, onMounted as D, resolveComponent as B, resolveDirective as T, createElementBlock as y, openBlock as u, createElementVNode as t, withDirectives as g, createVNode as o, unref as n, toDisplayString as r, createBlock as A } from "vue";
|
|
2
2
|
import { S as I, t as x } from "./index-C7Ks0zLC.js";
|
|
3
|
-
import { s as w, a as L } from "./index-
|
|
3
|
+
import { s as w, a as L } from "./index-C7HjGMoA.js";
|
|
4
4
|
import "./index-BHtNKL1L.js";
|
|
5
5
|
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DEgtwZwW.js";
|
|
6
|
-
import { d as E } from "./index-
|
|
6
|
+
import { d as E } from "./index-C1aAW06_.js";
|
|
7
7
|
import "./index.vue_vue_type_style_index_1_lang-kYz8t0xw.js";
|
|
8
8
|
import { u as N, s as U } from "./index-BUYYl2Pc.js";
|
|
9
9
|
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-C8qRkCgn.cjs"),f=require("./index.vue_vue_type_style_index_1_lang-DnfCrXiN.cjs"),C=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-C8qRkCgn.cjs"),f=require("./index.vue_vue_type_style_index_1_lang-DnfCrXiN.cjs"),C=require("./index-DSmsp4fK.cjs"),r=require("./index-BbzUzdxF.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=f.useMenuState(u.pinia),{menus:_}=u.storeToRefs(m),p=l.ref([]),c=async()=>{var i,t,n,a;const e=await u.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await c(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(_.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(C.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
|