ss-component-new 1.2.260 → 1.2.261
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/{MTLLoader-Dl9mTw8W.js → MTLLoader-C245YB7a.js} +1 -1
- package/dist/{MTLLoader-DtDBiOvx.cjs → MTLLoader-CYmAr1Hu.cjs} +1 -1
- package/dist/{OrbitControls-CdcdoP_z.cjs → OrbitControls-BIkLIikf.cjs} +1 -1
- package/dist/{OrbitControls-hxXl-AWN.js → OrbitControls-CgpbusUT.js} +1 -1
- package/dist/{URDFLoader-Di8hgv52.cjs → URDFLoader-CBs700OQ.cjs} +1 -1
- package/dist/{URDFLoader-pYSV0wzh.js → URDFLoader-CKxg-TKF.js} +2 -2
- package/dist/{animationData-SiPWaY1I.js → animationData-Cfp2CIii.js} +1 -1
- package/dist/{animationData-DngLuaYu.cjs → animationData-u8gzeOzI.cjs} +1 -1
- package/dist/{array-CTlySr4U.js → array-DtOCgsMJ.js} +1 -1
- package/dist/{array-CE7N7eIQ.cjs → array-DxmmIzG0.cjs} +1 -1
- package/dist/{iconfont-BVOuanHT.js → iconfont-C9Kc0DGF.js} +2 -2
- package/dist/{iconfont-ByiDQiFD.cjs → iconfont-CMh15h5f.cjs} +1 -1
- package/dist/{index-D0TBsAUZ.js → index-681BYwjT.js} +4 -4
- package/dist/{index-BSq-asvS.js → index-B6pgDwkd.js} +1 -1
- package/dist/{index-BfaEcA-K.js → index-B9_F5Al3.js} +1 -1
- package/dist/{index-Cyhf8X42.cjs → index-BCMUus0r.cjs} +1 -1
- package/dist/{index-DbnbiV9a.cjs → index-BCUCXydP.cjs} +1 -1
- package/dist/{index-C3a6pShZ.cjs → index-BQRQ125X.cjs} +10 -10
- package/dist/{index-DpEA84dE.js → index-B_HpCnnI.js} +1 -1
- package/dist/{index-wcpihAbi.cjs → index-BaXQQWXT.cjs} +1 -1
- package/dist/{index-BywcwEk3.js → index-BbRwjuYR.js} +1 -1
- package/dist/{index-dreNJkcx.cjs → index-BeFrtjpc.cjs} +1 -1
- package/dist/{index-D8ZicEml.cjs → index-Bj8tXTbv.cjs} +1 -1
- package/dist/{index-CkrHNhQi.js → index-BqeX5bms.js} +3 -3
- package/dist/{index-D9LQjWVV.js → index-BtyUih-J.js} +1 -1
- package/dist/{index-bHHAbQwQ.js → index-BwFEk7V_.js} +1 -1
- package/dist/{index-DAILOJJL.js → index-C-8esy-a.js} +5 -5
- package/dist/{index-_-2NItuI.js → index-CJu3D2uo.js} +16 -16
- package/dist/{index-DBty7hCh.cjs → index-COECU96d.cjs} +1 -1
- package/dist/{index-Dtvqp-E2.cjs → index-COif05bF.cjs} +1 -1
- package/dist/{index-UGtQHDze.cjs → index-CUSbHMVi.cjs} +1 -1
- package/dist/{index-BMrtmSoV.cjs → index-CWCj6D5D.cjs} +1 -1
- package/dist/{index-jChk2Xqh.js → index-CZdcobYs.js} +586 -583
- package/dist/{index-DGF03EDT.cjs → index-CamRKKJN.cjs} +1 -1
- package/dist/{index-C80fq22G.cjs → index-Cd3qAxFo.cjs} +1 -1
- package/dist/{index-D9kHGUMm.js → index-CjpctHsD.js} +453 -453
- package/dist/{index-CekyNTlc.js → index-Cuq29oa4.js} +1 -1
- package/dist/{index-hE6A7ggV.cjs → index-CxJVoJTn.cjs} +1 -1
- package/dist/{index-C9cv75Ff.cjs → index-D0bi9qIn.cjs} +1 -1
- package/dist/{index-CZO2Aebm.js → index-D2nSdA8F.js} +1 -1
- package/dist/{index-DETN0uoU.js → index-D3Bw7PIE.js} +1 -1
- package/dist/{index-CVMNmUxo.cjs → index-D4apDyB_.cjs} +1 -1
- package/dist/{index-Ba9M_o9i.js → index-D4cnfAlY.js} +7 -7
- package/dist/{index-CPuIXGYT.cjs → index-D8HXlxQr.cjs} +1 -1
- package/dist/{index-zF616DHi.cjs → index-DB3v8iRn.cjs} +1 -1
- package/dist/{index-ZMKPKBGl.js → index-DPJGncY-.js} +3 -3
- package/dist/{index-n4i6g5Qt.js → index-DQYsvYAn.js} +1 -1
- package/dist/{index-DoLdgL0Y.cjs → index-DZGolBog.cjs} +1 -1
- package/dist/{index-B466HFKM.js → index-D_tfFgs-.js} +4 -4
- package/dist/{index-Dx2jxLP4.cjs → index-Dn2djkJk.cjs} +1 -1
- package/dist/{index-B7mrNUHI.js → index-DrkWJouc.js} +2 -2
- package/dist/{index-CAChqXRJ.cjs → index-DyoBXbcl.cjs} +1 -1
- package/dist/{index-B8KOzVVO.js → index-ItYWSDdr.js} +2 -2
- package/dist/{index-B7v4FvTM.cjs → index-LGGNc6a1.cjs} +1 -1
- package/dist/index-eI_w6PXT.cjs +1 -0
- package/dist/{index-DlBP9uCE.js → index-lI5tYopv.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CI564I5w.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-0RX57baY.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-B8t4r7F_.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CENgOezi.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang--2VUeSe0.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CPbadDFN.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C1-MzySx.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CxeEhL4_.js} +37 -37
- package/dist/{index.vue_vue_type_style_index_0_scoped_20f284c2_lang-CAQkooVn.js → index.vue_vue_type_style_index_0_scoped_20f284c2_lang-Cv0T9hca.js} +98 -98
- package/dist/index.vue_vue_type_style_index_0_scoped_20f284c2_lang-DfZ7hU4T.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_1_lang-C5F5_N3v.cjs → index.vue_vue_type_style_index_1_lang-Cw-NkdEt.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-QGAL6wGN.js → index.vue_vue_type_style_index_1_lang-DKF4Ox94.js} +3 -3
- package/dist/{main-BvwYCNyA.cjs → main-DEeM0A21.cjs} +1 -1
- package/dist/{main-C4ciyWeN.js → main-yjDb2N94.js} +3 -3
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-BgwW52m6.cjs → threeModel-CmCUsEAj.cjs} +1 -1
- package/dist/{threeModel-C5tbMJNJ.js → threeModel-DPqE-FYJ.js} +4 -4
- package/dist/{threePreview-SMR2MaWi.cjs → threePreview-BVuWZma4.cjs} +1 -1
- package/dist/{threePreview-BR8y18Tw.js → threePreview-D7Dq1xmv.js} +3 -3
- package/dist/{threeSceneView-CNVU4cLM.js → threeSceneView-BrHwguCF.js} +8 -8
- package/dist/{threeSceneView-CZgOffyY.cjs → threeSceneView-Bv4IAB1R.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-DpRLfMyB.cjs → threeSceneViewForCPMPIP-B3z8U_hY.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-CxdJHGbJ.js → threeSceneViewForCPMPIP-C1isyFva.js} +7 -7
- package/dist/{threeTrackPathView-DvSIss6R.js → threeTrackPathView-B894Zsbj.js} +3 -3
- package/dist/{threeTrackPathView-BsIrzOzv.cjs → threeTrackPathView-DhV3HUi4.cjs} +1 -1
- package/dist/{threeViewerHost-CX05nlql.cjs → threeViewerHost-CYvQxMHX.cjs} +1 -1
- package/dist/{threeViewerHost-DWyLZF-J.js → threeViewerHost-D_ONpQMP.js} +2 -2
- package/dist/{urdfTree-TnQmLdzF.js → urdfTree-Djufft4m.js} +1 -1
- package/dist/{urdfTree-Eq_C3sM7.cjs → urdfTree-WiAKgNE4.cjs} +1 -1
- package/dist/{workpieceTreePanel-BcQfXXI6.js → workpieceTreePanel-Cp8YumLm.js} +4 -4
- package/dist/{workpieceTreePanel-DEtEmBX8.cjs → workpieceTreePanel-DNg7xg7B.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-BzvnDSwo.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_20f284c2_lang-DOa7pLu2.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, reactive as c, onMounted as s, createElementBlock as r, openBlock as u, createVNode as i } from "vue";
|
|
2
|
-
import { s as m } from "./index-
|
|
2
|
+
import { s as m } from "./index-C-8esy-a.js";
|
|
3
3
|
import { u as d, ai as p, ah as l } from "./index-3oQGURYh.js";
|
|
4
4
|
import { s as g, u as h } from "./index-7MBVUN82.js";
|
|
5
5
|
const _ = { class: "routerPage-wrapper" }, w = /* @__PURE__ */ o({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./index-DZGolBog.cjs"),_=require("./index-COECU96d.cjs"),m=require("./index-CamRKKJN.cjs"),h=require("./index-BQRQ125X.cjs"),C=require("./index-CXC0u8pm.cjs"),d=require("./index-DOItJqcJ.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),k={class:"menu-module"},v={class:"table-wrap","element-loading-text":"加载中..."},x={class:"module-dialog-default"},w=e.defineComponent({__name:"index",setup(D){const t=e.reactive({...p.State}),l=e.ref(null),a=C.useMenuState(d.pinia),{configMenu:n}=d.storeToRefs(a);return e.onMounted(()=>{var i;t.formatFormData(n.value),e.nextTick(()=>{var o,r;(r=l.value)==null||r.setCurrentKey((o=n.value)==null?void 0:o.path),a.setActiveMenuPath("/平台管理/菜单管理")}),n.value&&t.getInitialSubStructure((i=n.value)==null?void 0:i.path)}),(i,o)=>{const r=e.resolveComponent("el-tree"),c=e.resolveComponent("el-splitter-panel"),u=e.resolveComponent("el-splitter"),s=e.resolveComponent("el-button"),g=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",k,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(c,{size:208,class:"tree-wrap",min:200},{default:e.withCtx(()=>[e.createVNode(r,{ref_key:"treeRef",ref:l,data:t.treeData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"label",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"check-strictly":"",onNodeClick:t.clickNodeTrigger},null,8,["data","onNodeClick"])]),_:1}),e.createVNode(c,{min:500},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",v,[e.createVNode(_.ssTable,{itemData:t.menuPageData,changedContent:t.changedRow,operatingForm:t.operatingForm,onOnFormChange:t.changeTrigger,onChange:t.handleItemDataChange,onClickTrigger:t.clickTrigger,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","operatingForm","onOnFormChange","onChange","onClickTrigger","onOnButtonClick"])])),[[g,t.tableLoading]])]),_:1})]),_:1}),e.createVNode(m.ssDialog,{class:"module-dialog",title:t.dialogInfo.title,visible:t.dialogInfo.show,width:t.dialogInfo.width,onBeforeDestroy:t.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",x,[e.createVNode(h.ssForm,{rowContents:t.renderFormData,isEnableWrap:!1,isEdit:!0,onChange:t.changeTrigger,onClickTrigger:t.clickTrigger},null,8,["rowContents","onChange","onClickTrigger"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(s,{onClick:t.beforeDialogDestroy,id:"themeBorderButton"},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),e.createVNode(s,{id:"themeButton",onClick:t.clickSubmitForm},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])])}}}),b=f._export_sfc(w,[["__scopeId","data-v-74868a06"]]);exports.default=b;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as c, onMounted as p, watch as u, onUnmounted as f, createElementBlock as v, openBlock as m } from "vue";
|
|
2
|
-
import { ag as _ } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
2
|
+
import { ag as _ } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CxeEhL4_.js";
|
|
3
3
|
import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const z = {
|
|
5
5
|
__name: "index",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-CUSbHMVi.cjs"),r=require("./index-DOItJqcJ.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=(t,l,a)=>{var n,p,u,g;let e=l;e.title.text=(a==null?void 0:a.chartName)??"",e.xAxis.data=(n=r.cloneDeep(t))==null?void 0:n.map(i=>i.x),e.legend.data=(u=(p=r.cloneDeep(t))==null?void 0:p[0])!=null&&u.y?Object.keys(r.cloneDeep(t)[0].y):[];let o=[];return((g=e.legend.data)==null?void 0:g.length)>0&&r.cloneDeep(e.legend.data).forEach(i=>{var x;const y=(x=r.cloneDeep(t))==null?void 0:x.map(c=>{var h;return(h=c==null?void 0:c.y)==null?void 0:h[i]});o.push({name:i,type:"line",data:y})}),e.series=o,e},d=[{key:"折线图",value:{title:{text:"",left:"center",top:25,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},legend:{data:[]},grid:{left:"6%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}],C={class:"eCharts"},D={__name:"index",props:{eChartContents:Array},setup(t){const l=t,a=s.ref({});return s.onMounted(()=>{var o;const e=l==null?void 0:l.eChartContents;a.value=m(r.cloneDeep(e==null?void 0:e.compData),(o=d==null?void 0:d.find(n=>(n==null?void 0:n.key)===(e==null?void 0:e.name)))==null?void 0:o.value,e==null?void 0:e.extraContent)}),(e,o)=>(s.openBlock(),s.createElementBlock("div",C,[s.createVNode(_.ssChart,{optionContents:a.value},null,8,["optionContents"])]))}},b=f._export_sfc(D,[["__scopeId","data-v-0440fac3"]]);exports.default=b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),u=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),u=require("./index-COECU96d.cjs"),n=require("./index-CXC0u8pm.cjs"),a=require("./index-DOItJqcJ.cjs"),s={class:"routerPage-wrapper"},i=t.defineComponent({__name:"index",setup(d){const o=n.useMenuState(),{activeMenuPath:c}=a.storeToRefs(o),r=a.useLoginState(),e=t.reactive({...n.State});return t.onMounted(async()=>{r.getModelSecretAsync(),e.structureId=await n.getActivePageStructureId(c.value)}),(l,g)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(u.ssTable,{index:e.structureId,compName:e.compName,itemData:e.pageData,changedContent:e.changedRow,onChange:e.handleItemDataChange,onOnButtonClick:e.clickRowButton},null,8,["index","compName","itemData","changedContent","onChange","onOnButtonClick"])]))}});exports.default=i;
|
|
@@ -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-DfFq9kkn.js";
|
|
3
|
-
import { s as w, a as L } from "./index-
|
|
3
|
+
import { s as w, a as L } from "./index-DPJGncY-.js";
|
|
4
4
|
import "./index-BHtNKL1L.js";
|
|
5
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
6
|
-
import { h as E } from "./index-
|
|
5
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CxeEhL4_.js";
|
|
6
|
+
import { h as E } from "./index-CZdcobYs.js";
|
|
7
7
|
import { u as N, s as U } from "./index-7MBVUN82.js";
|
|
8
8
|
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const z = { class: "personal-wrapper" }, F = { class: "personal-box left" }, H = { class: "base-avatar" }, K = { class: "center-avatar" }, M = { class: "base-info" }, R = { class: "base-signature" }, j = { class: "personal-box right" }, q = /* @__PURE__ */ C({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
|
|
2
|
-
import { s as m } from "./index-
|
|
2
|
+
import { s as m } from "./index-C-8esy-a.js";
|
|
3
3
|
import { g as d, c as _ } from "./index-CO41nOz7.js";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const l = n([]), g = c(() => [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as x, onMounted as _, createElementBlock as g, openBlock as y, createVNode as C } from "vue";
|
|
2
|
-
import { s as b } from "./index-
|
|
2
|
+
import { s as b } from "./index-BbRwjuYR.js";
|
|
3
3
|
import { c as s } from "./index-7MBVUN82.js";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const A = (t, n, a) => {
|
|
@@ -3,13 +3,13 @@ var Zs = (U, $, A) => $ in U ? Ys(U, $, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var $l = (U, $, A) => Zs(U, typeof $ != "symbol" ? $ + "" : $, A);
|
|
4
4
|
import { ref as H, watch as Pl, nextTick as Wa, resolveComponent as il, createBlock as Xe, openBlock as ee, withCtx as X, createElementVNode as ce, renderSlot as on, onMounted as Or, createElementBlock as Te, normalizeStyle as fa, normalizeClass as _n, toDisplayString as Ze, createCommentVNode as Me, createVNode as V, unref as Jl, Fragment as Zl, renderList as Il, createTextVNode as Ie, defineComponent as xr, computed as Ta, reactive as Ja, inject as Is, provide as Vs, onBeforeUnmount as eo, onUnmounted as lo, resolveDirective as ao, createSlots as ro, withModifiers as rr, withDirectives as mr, vShow as un } from "vue";
|
|
5
5
|
import { bh as tn, as as cn, c as ae, E as sl, bD as An, g as ua, e as Cn, h as no, p as ga, s as Oa, u as so, c3 as oo, f as io, b as ba, bv as uo, bt as dn, c4 as to } from "./index-7MBVUN82.js";
|
|
6
|
-
import { $ as Da, aI as co, aJ as qa, aK as po, g as wa, b as fo, a as ho, _ as yo, u as vo, aL as pn, aM as go, aN as fn, aO as bo, d as xa, X as Sr, q as hn, l as ko, aP as yn, a7 as mo, aQ as So, aR as _o, aS as Ao, Z as Co, aT as To } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
7
|
-
import { d as Ua, _ as vn, j as Oo, e as gn, E as _r, u as xo } from "./index-
|
|
8
|
-
import { a as wo, T as Do } from "./threeViewerHost-
|
|
6
|
+
import { $ as Da, aI as co, aJ as qa, aK as po, g as wa, b as fo, a as ho, _ as yo, u as vo, aL as pn, aM as go, aN as fn, aO as bo, d as xa, X as Sr, q as hn, l as ko, aP as yn, a7 as mo, aQ as So, aR as _o, aS as Ao, Z as Co, aT as To } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CxeEhL4_.js";
|
|
7
|
+
import { d as Ua, _ as vn, j as Oo, e as gn, E as _r, u as xo } from "./index-CZdcobYs.js";
|
|
8
|
+
import { a as wo, T as Do } from "./threeViewerHost-D_ONpQMP.js";
|
|
9
9
|
import { u as Uo, a as Eo, E as bn } from "./index-3oQGURYh.js";
|
|
10
|
-
import { c as Lo } from "./index.vue_vue_type_style_index_1_lang-
|
|
10
|
+
import { c as Lo } from "./index.vue_vue_type_style_index_1_lang-DKF4Ox94.js";
|
|
11
11
|
import { _ as Ga } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
import { s as pa } from "./index-
|
|
12
|
+
import { s as pa } from "./index-lI5tYopv.js";
|
|
13
13
|
import "./index-DfFq9kkn.js";
|
|
14
14
|
import { i as kn } from "./isString-D70CzuJZ.js";
|
|
15
15
|
const Ar = (U) => U.match(/\((.*)\)/)[1], mn = {
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { resolveComponent as oA, createBlock as lA, openBlock as f, withCtx as C, createElementVNode as u, toDisplayString as CA, defineComponent as ln, ref as o, watch as xA, createElementBlock as Q, Fragment as hA, renderList as VA, createCommentVNode as W, normalizeStyle as Re, createVNode as a, unref as A, resolveDynamicComponent as Le, onMounted as On, computed as RA, provide as Fe, resolveDirective as $n, withDirectives as ne, vShow as je, createTextVNode as te, renderSlot as ke, normalizeClass as He, onUnmounted as ut, createSlots as st } from "vue";
|
|
2
|
-
import { m as yn, a as jn, b as Hn } from "./index-
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_20f284c2_lang-
|
|
2
|
+
import { m as yn, a as jn, b as Hn } from "./index-681BYwjT.js";
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_20f284c2_lang-Cv0T9hca.js";
|
|
4
4
|
import { _ as Ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import { _ as gt, a as rt, b as dt, e as Pt, s as Ct } from "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-
|
|
5
|
+
import { _ as gt, a as rt, b as dt, e as Pt, s as Ct } from "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CENgOezi.js";
|
|
6
6
|
import { p as QA, s as BA, d as ot, c as fn, u as wn, b as Ee, g as ue, e as At, E as oe, f as Gn, h as Et } from "./index-7MBVUN82.js";
|
|
7
7
|
import { a as vn, u as an } from "./index-3oQGURYh.js";
|
|
8
8
|
import { S as bA } from "./index-BHtNKL1L.js";
|
|
9
|
-
import { a as he, s as se, b as It, c as it, r as wA, o as Je, d as Se, e as et, f as En, h as nt, i as In, j as tt, k as Bt, t as zt, l as Ge, m as Pn, n as Cn, p as Ve, q as sn, u as qe, v as _e, w as $e, x as An, y as en, z as gn, D as Qt, A as Xt, B as Ot, C as Fn, E as Vn, F as FA, G as yt, H as jt, I as qn } from "./index-
|
|
10
|
-
import { a as Ht } from "./array-
|
|
11
|
-
import { u as dn, a as bn, d as nn, g as we, b as ft, c as tn, o as lt, e as wt, l as bt, f as kt, h as vt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
12
|
-
import "./index.vue_vue_type_style_index_1_lang-
|
|
9
|
+
import { a as he, s as se, b as It, c as it, r as wA, o as Je, d as Se, e as et, f as En, h as nt, i as In, j as tt, k as Bt, t as zt, l as Ge, m as Pn, n as Cn, p as Ve, q as sn, u as qe, v as _e, w as $e, x as An, y as en, z as gn, D as Qt, A as Xt, B as Ot, C as Fn, E as Vn, F as FA, G as yt, H as jt, I as qn } from "./index-CjpctHsD.js";
|
|
10
|
+
import { a as Ht } from "./array-DtOCgsMJ.js";
|
|
11
|
+
import { u as dn, a as bn, d as nn, g as we, b as ft, c as tn, o as lt, e as wt, l as bt, f as kt, h as vt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CxeEhL4_.js";
|
|
12
|
+
import "./index.vue_vue_type_style_index_1_lang-DKF4Ox94.js";
|
|
13
13
|
import "./index-DfFq9kkn.js";
|
|
14
14
|
import { useRouter as xt } from "vue-router";
|
|
15
|
-
import pt from "./index-
|
|
16
|
-
import { C as mt } from "./index-
|
|
17
|
-
import Jt from "./threeModel-
|
|
18
|
-
import { s as St, _ as Bn } from "./index-
|
|
15
|
+
import pt from "./index-ItYWSDdr.js";
|
|
16
|
+
import { C as mt } from "./index-B6pgDwkd.js";
|
|
17
|
+
import Jt from "./threeModel-DPqE-FYJ.js";
|
|
18
|
+
import { s as St, _ as Bn } from "./index-CZdcobYs.js";
|
|
19
19
|
import { _ as be } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
20
|
-
import { s as rn } from "./index-
|
|
21
|
-
import { T as zn, u as Lt, a as ht } from "./threeViewerHost-
|
|
22
|
-
import { s as Qn } from "./index-
|
|
23
|
-
import { u as at } from "./index-
|
|
20
|
+
import { s as rn } from "./index-lI5tYopv.js";
|
|
21
|
+
import { T as zn, u as Lt, a as ht } from "./threeViewerHost-D_ONpQMP.js";
|
|
22
|
+
import { s as Qn } from "./index-DPJGncY-.js";
|
|
23
|
+
import { u as at } from "./index-C-8esy-a.js";
|
|
24
24
|
import { T as _n } from "./svgIcon-D-_fXUBL.js";
|
|
25
25
|
import { t as Rt, c as Kt, b as Dt } from "./index-CAPx0_D4.js";
|
|
26
26
|
import { v as Nt } from "./index-r48vNrKN.js";
|
|
27
|
-
import { f as Wt, a as Ut } from "./animationData-
|
|
27
|
+
import { f as Wt, a as Ut } from "./animationData-Cfp2CIii.js";
|
|
28
28
|
const Mt = { class: "menu-title" };
|
|
29
29
|
function Zt(M, yA, g, vA, AA, cA) {
|
|
30
30
|
const z = oA("ssMenu");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var tn=Object.defineProperty;var un=(O,$,_)=>$ in O?tn(O,$,{enumerable:!0,configurable:!0,writable:!0,value:_}):O[$]=_;var Nl=(O,$,_)=>un(O,typeof $!="symbol"?$+"":$,_);const e=require("vue"),N=require("./index-DOItJqcJ.cjs"),he=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang--2VUeSe0.cjs"),_l=require("./index-C3a6pShZ.cjs"),Er=require("./threeViewerHost-CX05nlql.cjs"),Ba=require("./index-CXC0u8pm.cjs"),cn=require("./index.vue_vue_type_style_index_1_lang-C5F5_N3v.cjs"),ka=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ql=require("./index-DGF03EDT.cjs");require("./index-KaxOq1_-.cjs");const Tr=require("./isString-Do5yyRUw.cjs"),Oa=O=>O.match(/\((.*)\)/)[1],Br={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200}},setup(O){const $=O,_=e.ref(null),w=e.ref(!1),C=e.ref(null);return e.watch(()=>$==null?void 0:$.isVisible,()=>{w.value=$==null?void 0:$.isVisible},{deep:!0,immediate:!0}),e.watch(()=>C.value,()=>{e.nextTick(()=>{var i,Y;(Y=(i=_.value)==null?void 0:i.updatePopper)==null||Y.call(i)})},{deep:!0,immediate:!0}),(i,Y)=>{const ue=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(ue,{visible:w.value,title:$==null?void 0:$.title,placement:$==null?void 0:$.placement,width:$==null?void 0:$.width,ref_key:"popOverRef",ref:_},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(i.$slots,"reference",{ref_key:"referenceRef",ref:C})])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(i.$slots,"content")])]),_:3},8,["visible","title","placement","width"])}}},dn={key:0,class:"extra-button-content"},pn={class:"table-operator-wrap"},fn={key:0,class:"extra-button-filter"},hn={class:"form-content-value"},yn={key:1,class:"extra-header"},vn={class:"drop-menu",style:{width:"120px"}},gn={key:0},bn={key:1},mn={key:1,class:"extra-button-content tabs-button-wrapper"},kn={class:"table-operator-wrap"},Cn={class:"extra-button-filter"},Sn={class:"form-content-value"},xn={key:0,class:"extra-header"},Nn={class:"drop-menu",style:{width:"120px"}},_n={key:0},An={key:1},wn={__name:"header",props:{pageLayout:{type:String,default:"vertical"},lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},filterShow:{type:Boolean,default:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(O,{emit:$}){const _=$,w=O,C=e.ref(""),i=e.ref(!1),Y=e.ref([]),ue=e.ref([{label:"取消",background:"#999999"},{label:"清空",background:"#999999"},{label:"确认"}]),ye=[{label:"新增",icon:"Plus"},{label:"导入",icon:"import"},{label:"导出",icon:"export"},{label:"OCR识别",icon:"ocr"}],Se=ce=>{const Me=ce.raw;if(!Me)return;const Je=new FileReader;Je.onload=de=>{try{const oe=new Uint8Array(de.target.result),re=he.readSync(oe,{type:"array"}),we=re.SheetNames[0],K=re.Sheets[we],Ze=he.utils.decode_range(K["!ref"]).e.c+1,Z=new Array(Ze).fill(""),T=[];for(const ee in K){if(ee[0]==="!")continue;const{r:Ne,c:Re}=he.utils.decode_cell(ee);let vl=K[ee].v;if(K[ee].t==="n"&&vl>0&&vl<1e6&&(vl=new Date((vl-25569)*86400*1e3).toISOString().split("T")[0]),(vl==null||vl==="")&&(vl=""),Ne===0)Z[Re]=vl;else{if(!T[Ne-1]){T[Ne-1]={};for(let Ll=0;Ll<Ze;Ll++)T[Ne-1][`col_${Ll}`]=""}T[Ne-1][`col_${Re}`]=vl}}for(let ee=0;ee<Ze;ee++)Z[ee]===void 0&&(Z[ee]="");const Ge=T==null?void 0:T[0];if(!(Ge!=null&&Ge.hasOwnProperty("col_0")))return N.ElMessage.error("导入的数据列不匹配,请检查是否错位");_("getImportData",Z,T)}catch(oe){throw N.ElMessage.error(oe.message),new Error(oe.message)}},Je.readAsArrayBuffer(Me)},We=ce=>{var Je;const Me=(Je=Y.value)==null?void 0:Je.reduce((de,oe,re)=>(re===0?de[oe.label]=ce:de[oe.label]=oe==null?void 0:oe.value,de),{});_("filter",Me,ce,!0)},Ie=ce=>{_("buttonClick",ce)},el=ce=>{var Me,Je;Y.value=(Je=(Me=he.getColumnChild(N.cloneDeep(ce)))==null?void 0:Me.filter(de=>(de==null?void 0:de.label)!==""&&(de==null?void 0:de.label)!=="操作"))==null?void 0:Je.map(de=>({label:(de==null?void 0:de.label)??"",value:"",name:(de==null?void 0:de.label)??"",isFormColHidden:de==null?void 0:de.isTableColHidden,width:2}))},Qe=e.ref(!1),gl=ce=>{var Me;if((ce==null?void 0:ce.buttonName)==="确认"&&(_("filter",ce==null?void 0:ce.content),Qe.value=(ce==null?void 0:ce.content)&&Object.values(ce==null?void 0:ce.content).length>0),(ce==null?void 0:ce.buttonName)==="清空"){const Je=N.cloneDeep(ce==null?void 0:ce.content);for(const de in Je)Je[de]="";Y.value=(Me=Y.value)==null?void 0:Me.map(de=>({...de,value:""})),_("filter",Je),Qe.value=!1}i.value=!1},bl=()=>{var Me,Je;Y.value=(Me=Y.value)==null?void 0:Me.map(de=>({...de,value:""}));const ce=(Je=Y.value)==null?void 0:Je.reduce((de,oe)=>(de[oe.label]=oe.value,de),{});_("filter",ce)};return e.onMounted(()=>{el(w.columns)}),e.watch(()=>w.columns,()=>{el(w.columns)},{deep:!0,immediate:!0}),(ce,Me)=>{var K,cl,Ze,Z;const Je=e.resolveComponent("el-icon"),de=e.resolveComponent("svg-icon"),oe=e.resolveComponent("el-input"),re=e.resolveComponent("el-button"),we=e.resolveComponent("el-upload");return O.pageLayout==="vertical"?(e.openBlock(),e.createElementBlock("div",dn,[e.createElementVNode("div",{class:e.normalizeClass(O.compName?"table-name-wrap":""),style:e.normalizeStyle({background:(w==null?void 0:w.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((w==null?void 0:w.level)-1)*12+"px",fontWeight:600-((w==null?void 0:w.level)-1)*100>=400?600-((w==null?void 0:w.level)-1)*100:400,fontSize:17-(w==null?void 0:w.level)>=14?17-(w==null?void 0:w.level)+"px":"14px"})},e.toDisplayString(O.compName),7),e.createElementVNode("div",pn,[w!=null&&w.filterShow?(e.openBlock(),e.createElementBlock("div",fn,[e.createVNode(Br,{title:"",width:800,placement:"bottom-start",isVisible:i.value},{reference:e.withCtx(()=>{var T,Ge,ee,Ne;return[e.createVNode(oe,{modelValue:C.value,"onUpdate:modelValue":Me[1]||(Me[1]=Re=>C.value=Re),style:{"min-width":"80px"},placeholder:Qe.value?(ee=(Ge=(T=O.filterValues)==null?void 0:T.filter(Re=>Re))==null?void 0:Ge.slice(0,3))==null?void 0:ee.join("/"):"搜索","prefix-icon":e.unref(N.search_default),clearable:"",onInput:We,disabled:((Ne=Y.value)==null?void 0:Ne.length)===0},{suffix:e.withCtx(()=>{var Re,vl;return[!C.value&&((vl=(Re=O.filterValues)==null?void 0:Re.filter(Ll=>Ll))!=null&&vl.join("/"))?(e.openBlock(),e.createBlock(Je,{key:0,style:{cursor:"pointer"},onClick:bl},{default:e.withCtx(()=>[e.createVNode(e.unref(N.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:Me[0]||(Me[0]=Re=>i.value=!i.value)},[e.createVNode(de,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[e.createElementVNode("div",hn,[(e.openBlock(),e.createBlock(_l.ssForm,{rowContents:Y.value,buttonValue:ue.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:ue.value,isStartJustify:!1,onOnButtonClick:gl},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])])):e.createCommentVNode("",!0),O.buttons&&((K=O.buttons)==null?void 0:K.length)>0?(e.openBlock(),e.createElementBlock("div",yn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((cl=O.buttons)==null?void 0:cl.filter(T=>O.isDevMode||(T==null?void 0:T.label)!=="修改模板"),(T,Ge)=>(e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:Ge},[(T==null?void 0:T.type)==="upload"?(e.openBlock(),e.createBlock(we,{key:0,class:"upload-button-wrap","on-change":Se,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!O.lockingPage},{default:e.withCtx(()=>[e.createVNode(re,{disabled:!!O.lockingPage,style:e.normalizeStyle({background:(T==null?void 0:T.background)??"var(--ssbutton-theme-bg)",color:(T==null?void 0:T.color)??"var(--ssbutton-theme-color)"})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T==null?void 0:T.label),1)]),_:2},1032,["disabled","style"])]),_:2},1032,["disabled"])):e.createCommentVNode("",!0),(T==null?void 0:T.type)==="popover"?(e.openBlock(),e.createBlock(_l._sfc_main,{key:1},{dropTitle:e.withCtx(()=>[(T==null?void 0:T.type)==="popover"?(e.openBlock(),e.createBlock(re,{key:0,disabled:!!O.lockingPage,style:e.normalizeStyle({background:(T==null?void 0:T.background)??"var(--ssbutton-theme-bg)",color:(T==null?void 0:T.color)??"var(--ssbutton-theme-color)"})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T==null?void 0:T.label),1)]),_:2},1032,["disabled","style"])):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",vn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T==null?void 0:T.contents,ee=>(e.openBlock(),e.createBlock(re,{key:ee==null?void 0:ee.label,disabled:!!O.lockingPage,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:Ne=>Ie(ee==null?void 0:ee.label)},{default:e.withCtx(()=>{var Ne,Re;return[e.createTextVNode(e.toDisplayString(ee==null?void 0:ee.label),1),(Ne=ee==null?void 0:ee.label)!=null&&Ne.includes("选中")?(e.openBlock(),e.createElementBlock("span",gn,"("+e.toDisplayString(O.selectNums)+")",1)):e.createCommentVNode("",!0),(Re=ee==null?void 0:ee.label)!=null&&Re.includes("全部")?(e.openBlock(),e.createElementBlock("span",bn,"("+e.toDisplayString(O.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["disabled","onClick"]))),128))])]),_:2},1024)):e.createCommentVNode("",!0),T!=null&&T.type?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(re,{key:2,id:"themeButton",disabled:!!O.lockingPage,style:e.normalizeStyle({background:(T==null?void 0:T.background)??"var(--ssbutton-theme-bg)",color:(T==null?void 0:T.color)??"var(--ssbutton-theme-color)"}),onClick:ee=>Ie(T==null?void 0:T.label)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T==null?void 0:T.label),1)]),_:2},1032,["disabled","style","onClick"]))]))),128))])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",mn,[e.createElementVNode("div",kn,[e.createElementVNode("div",Cn,[e.createVNode(Br,{title:"",width:800,placement:"bottom-start",isVisible:i.value},{reference:e.withCtx(()=>{var T,Ge,ee,Ne;return[e.createVNode(oe,{modelValue:C.value,"onUpdate:modelValue":Me[3]||(Me[3]=Re=>C.value=Re),style:{"min-width":"80px"},placeholder:Qe.value?(ee=(Ge=(T=O.filterValues)==null?void 0:T.filter(Re=>Re))==null?void 0:Ge.slice(0,3))==null?void 0:ee.join("/"):"搜索","prefix-icon":e.unref(N.search_default),clearable:"",onInput:We,disabled:((Ne=Y.value)==null?void 0:Ne.length)===0},{suffix:e.withCtx(()=>{var Re,vl;return[!C.value&&((vl=(Re=O.filterValues)==null?void 0:Re.filter(Ll=>Ll))!=null&&vl.join("/"))?(e.openBlock(),e.createBlock(Je,{key:0,style:{cursor:"pointer"},onClick:bl},{default:e.withCtx(()=>[e.createVNode(e.unref(N.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:Me[2]||(Me[2]=Re=>i.value=!i.value)},[e.createVNode(de,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[e.createElementVNode("div",Sn,[(e.openBlock(),e.createBlock(_l.ssForm,{rowContents:Y.value,buttonValue:ue.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:ue.value,isStartJustify:!1,onOnButtonClick:gl},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])]),O.buttons&&((Ze=O.buttons)==null?void 0:Ze.length)>0?(e.openBlock(),e.createElementBlock("div",xn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Z=O.buttons)==null?void 0:Z.filter(T=>O.isDevMode||(T==null?void 0:T.label)!=="修改模板"),(T,Ge)=>(e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:Ge},[(T==null?void 0:T.type)==="upload"?(e.openBlock(),e.createBlock(we,{key:0,class:"upload-button-wrap","on-change":Se,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:e.withCtx(()=>[e.createVNode(re,{style:{background:"transparent",color:"#666666"}},{icon:e.withCtx(()=>{var ee;return[e.createVNode(de,{name:(ee=ye==null?void 0:ye.find(Ne=>(Ne==null?void 0:Ne.label)===(T==null?void 0:T.label)))==null?void 0:ee.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(T==null?void 0:T.label),1)]),_:2},1024)]),_:2},1024)):e.createCommentVNode("",!0),(T==null?void 0:T.type)==="popover"?(e.openBlock(),e.createBlock(_l._sfc_main,{key:1},{dropTitle:e.withCtx(()=>[(T==null?void 0:T.type)==="popover"?(e.openBlock(),e.createBlock(re,{key:0,style:{background:"transparent",color:"#666666"}},{icon:e.withCtx(()=>{var ee;return[e.createVNode(de,{name:(ee=ye==null?void 0:ye.find(Ne=>(Ne==null?void 0:Ne.label)===(T==null?void 0:T.label)))==null?void 0:ee.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(T==null?void 0:T.label),1)]),_:2},1024)):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Nn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T==null?void 0:T.contents,ee=>(e.openBlock(),e.createBlock(re,{key:ee==null?void 0:ee.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:Ne=>Ie(ee==null?void 0:ee.label)},{default:e.withCtx(()=>{var Ne,Re;return[e.createTextVNode(e.toDisplayString(ee==null?void 0:ee.label),1),(Ne=ee==null?void 0:ee.label)!=null&&Ne.includes("选中")?(e.openBlock(),e.createElementBlock("span",_n,"("+e.toDisplayString(O.selectNums)+")",1)):e.createCommentVNode("",!0),(Re=ee==null?void 0:ee.label)!=null&&Re.includes("全部")?(e.openBlock(),e.createElementBlock("span",An,"("+e.toDisplayString(O.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):e.createCommentVNode("",!0),T!=null&&T.type?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(re,{key:2,id:"themeButton",style:e.normalizeStyle({background:"transparent",color:(T==null?void 0:T.label)==="新增"?"var(--ssbutton-theme-bg)":"#666666"}),onClick:ee=>Ie(T==null?void 0:T.label)},{icon:e.withCtx(()=>{var ee;return[e.createVNode(de,{name:(ee=ye==null?void 0:ye.find(Ne=>(Ne==null?void 0:Ne.label)===(T==null?void 0:T.label)))==null?void 0:ee.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(T==null?void 0:T.label),1)]),_:2},1032,["style","onClick"]))]))),128))])):e.createCommentVNode("",!0)])]))}}},Dn=ka._export_sfc(wn,[["__scopeId","data-v-03b0d8fa"]]),En=e.defineComponent({__name:"batch",props:{lockingPage:Boolean,buttons:{type:Array,default:()=>[]},selectTableItems:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(O,{emit:$}){const _=O,w=$,C=Y=>{w("buttonClick",Y)},i=Y=>{var ue;return Y!=null&&Y.includes("删除")?((ue=_.selectTableItems)==null?void 0:ue.length)>0?"warning-active-type":"warning-type":"default-type"};return(Y,ue)=>{const ye=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.buttons,Se=>(e.openBlock(),e.createBlock(ye,{key:Se==null?void 0:Se.label,disabled:!!O.lockingPage,class:e.normalizeClass(i(Se==null?void 0:Se.label)),onClick:We=>C(Se==null?void 0:Se.label)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Se==null?void 0:Se.label),1)]),_:2},1032,["disabled","class","onClick"]))),128))])}}}),Tn=ka._export_sfc(En,[["__scopeId","data-v-70b12973"]]),Ur=N.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(O){this.selectArray=O},setSelectString(O){this.selectString=O}}}),Bn={class:"calculator-content"},On={class:"calculator-child"},Un={class:"calculator-child"},Ln=e.defineComponent({__name:"calculator",setup(O){const $=e.ref(),_=e.ref();return e.onMounted(()=>{$.value=[{type:"Upload",label:"输入",name:"input"}],_.value=[{type:"Upload",label:"输出",name:"output"}]}),(w,C)=>(e.openBlock(),e.createElementBlock("div",Bn,[e.createElementVNode("div",On,[e.createVNode(_l.ssForm,{rowContents:$.value,isRowFlex:!0},null,8,["rowContents"])]),e.createElementVNode("div",Un,[e.createVNode(_l.ssForm,{rowContents:_.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),jn=ka._export_sfc(Ln,[["__scopeId","data-v-73db0fe7"]]),Xa=(O,$)=>{let _=O,w=$;return Array.isArray(_)&&(_=_==null?void 0:_.map((C,i)=>{if(Array.isArray(C)){let Y={};return C=C==null?void 0:C.forEach((ue,ye)=>{var Se;(Se=w==null?void 0:w[ye])!=null&&Se.prop?Y[w[ye].prop]=ue:Array.isArray(ue)&&(Y.children=Xa(ue,w))}),Object.assign(Y,{id:i})}else return C})),_},Lr=(O,$,_)=>{let w=O,C=$;return w=w==null?void 0:w.map((i,Y)=>{var ue,ye;return!Array.isArray(i)||!((ue=C==null?void 0:C[Y])!=null&&ue.label)&&!_||(i.unshift(((ye=C==null?void 0:C[Y])==null?void 0:ye.label)??""),i.some(Se=>Array.isArray(Se))&&(i=i==null?void 0:i.map(Se=>{var We;return Array.isArray(Se)&&(Se=Lr(Se,(We=C==null?void 0:C[Y])==null?void 0:We.children,_)),Se}))),i}),w},$n=(O,$,_)=>{if($==="")return O==null?void 0:O.filter(w=>(w==null?void 0:w.id)!==_);{const w=$.split("-");return Pn(O,w,_)}},Pn=(O,$,_)=>{let w=O,C=$;return(C==null?void 0:C.length)===0?w=w==null?void 0:w.filter(i=>i.id!==_):w=w==null?void 0:w.map(i=>(i.id.toString()===(C==null?void 0:C[0])&&(C==null||C.shift(),i=jr(i,C,_)),i)),w},jr=(O,$,_)=>{var i,Y;let w=O,C=$;return(C==null?void 0:C.length)===0?w.children=(i=w.children)==null?void 0:i.filter(ue=>ue.id!==_):w.children=(Y=w.children)==null?void 0:Y.map(ue=>(ue.id.toString()===(C==null?void 0:C[0])&&(C==null||C.shift(),ue=jr(ue,C,_)),ue)),w},Mn=(O,$,_)=>{if($==="")return _;{const w=$.split("-");return Rn(O,w,_)}},Rn=(O,$,_)=>{let w=O,C=$;return(C==null?void 0:C.length)===0?w=_:w=w==null?void 0:w.map(i=>(i.id.toString()===(C==null?void 0:C[0])&&(C==null||C.shift(),i=$r(i,C,_)),i)),w},$r=(O,$,_)=>{var i;let w=O,C=$;return(C==null?void 0:C.length)===0?w.children=_:w.children=(i=w.children)==null?void 0:i.map(Y=>(Y.id.toString()===(C==null?void 0:C[0])&&(C==null||C.shift(),Y=$r(Y,C,_)),Y)),w};class Fn{constructor($={}){Nl(this,"url");Nl(this,"heartbeatInterval");Nl(this,"socket",null);Nl(this,"isConnected",!1);Nl(this,"heartTimer",null);Nl(this,"canvas",null);Nl(this,"ctx",null);Nl(this,"mainCamCutMode",0);Nl(this,"pMainShowStartX",0);Nl(this,"pMainShowStartY",0);Nl(this,"onLog");Nl(this,"onDevCount");Nl(this,"onCameraStatus");Nl(this,"onPhoto");this.url=$.url??"ws://127.0.0.1:22225",this.heartbeatInterval=$.heartbeatInterval??3e3}init($,_,w){var Y;(Y=this.canvas)!=null&&Y.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const C=document.createElement("canvas");C.style.border="solid 1px #A0A0A0",C.id="MainCamCanvas",C.width=_,C.height=w;const i=C.getContext("2d");if(!i)throw new Error("无法获取 CanvasRenderingContext2D");$.appendChild(C),this.canvas=C,this.ctx=i}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise(($,_)=>{const w=new WebSocket(this.url);w.binaryType="arraybuffer",w.onopen=()=>{this.socket=w,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),$()},w.onerror=C=>{this.isConnected=!1,this.log("socket.onerror"),_(C)},w.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},w.onmessage=C=>{this.handleMessage(C)}})}destroy(){var $;this.stopHeartbeat();try{this.closeCamera()}catch{}if(this.socket){try{this.socket.onmessage=null}catch{}try{this.socket.onopen=null}catch{}try{this.socket.onerror=null}catch{}try{this.socket.onclose=null}catch{}try{this.socket.close()}catch{}this.socket=null}this.isConnected=!1,($=this.canvas)!=null&&$.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null,this.ctx=null}getDevCount(){this.sendBytes(new Uint8Array([119,136,80]))}openCamera($=0,_=1280,w=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const C=new Uint8Array(12);C[0]=119,C[1]=136,C[2]=1,C[3]=$,C[4]=this.canvas.width>>8&255,C[5]=this.canvas.width&255,C[6]=this.canvas.height>>8&255,C[7]=this.canvas.height&255,C[8]=_>>8&255,C[9]=_&255,C[10]=w>>8&255,C[11]=w&255,this.sendBytes(C)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const C=new Uint8Array(12);C[0]=119,C[1]=136,C[2]=16,C[3]=0,C[4]=0,C[5]=0,C[6]=0,C[7]=0,C[8]=1,C[9]=0,C[10]=0,C[11]=0,this.sendBytes(C)}bestSize(){this.sendBytes(new Uint8Array([119,136,5,0]))}rotateLeft(){this.sendBytes(new Uint8Array([119,136,7,0]))}rotateRight(){this.sendBytes(new Uint8Array([119,136,8,0]))}focus(){this.sendBytes(new Uint8Array([119,136,48,0]))}log($){var _;(_=this.onLog)==null||_.call(this,$)}sendBytes($){if(!this.socket||this.socket.readyState!==WebSocket.OPEN||!this.isConnected)throw new Error("socket 未连接");this.socket.send($.buffer)}startHeartbeat(){this.stopHeartbeat(),this.heartTimer=window.setInterval(()=>{this.log("heartCheck...........")},this.heartbeatInterval)}stopHeartbeat(){this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=null)}handleMessage($){var C,i,Y,ue,ye;const _=new Uint8Array($.data);if(_.length<=0)return;if(_[0]===17&&_[1]===17&&_[2]===17){this.log("heart socket!!!!");return}if(_[0]!==85||_[1]!==102)return;const w=_[2];if(w===80){const Se=_[3],We=_.length-4,Ie=new Uint8Array(We);for(let gl=0;gl<We;gl++)Ie[gl]=_[4+gl];const Qe=decodeURIComponent(this.byteToString(Ie)).split("|");(C=this.onDevCount)==null||C.call(this,Se,Qe);return}if(w===1){_[3]===1&&((i=this.onCameraStatus)==null||i.call(this,"opened")),_[3]===3&&((Y=this.onCameraStatus)==null||Y.call(this,"closed"));return}if(w===16){if(_[3]===1){const We=_[4]*256+_[5],Ie=_[6]*65536+_[7]*256+_[8];let el="";if(We>0){const bl=new Uint8Array(We);for(let ce=0;ce<We;ce++)bl[ce]=_[9+ce];el=decodeURIComponent(this.byteToString(bl))}const Qe=new Uint8Array(Ie);for(let bl=0;bl<Ie;bl++)Qe[bl]=_[9+We+bl];const gl=this.uint8ArrayToString(Qe);(ue=this.onPhoto)==null||ue.call(this,{flag:0,imgPath:el,base64:gl})}_[3]===2&&((ye=this.onPhoto)==null||ye.call(this,{flag:2,imgPath:"",base64:""}));return}if(w===204){if(!this.canvas||!this.ctx)return;const Se=_[3]*256+_[4],We=_[5]*256+_[6];this.pMainShowStartX=_[7]*256+_[8],this.pMainShowStartY=_[9]*256+_[10],this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);const Ie=this.ctx.createImageData(Se,We);let el=11;for(let Qe=0;Qe<Ie.data.length;Qe+=4)Ie.data[Qe+0]=_[el],Ie.data[Qe+1]=_[el+1],Ie.data[Qe+2]=_[el+2],Ie.data[Qe+3]=255,el+=3;this.ctx.putImageData(Ie,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString($){let _="";for(let w=0;w<$.length;w++)_+=String.fromCharCode($[w]);return _}byteToString($){let _="";for(let w=0;w<$.length;w++)_+=String.fromCharCode($[w]);return _}}const Kn={style:{display:"flex",gap:"16px",height:"100%"}},Vn={key:0,style:{color:"var(--el-text-color-secondary)"}},zn={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},qn={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},Wn={ref:"pictureBox",style:{height:"220px",border:"1px dashed var(--el-border-color)","border-radius":"4px",display:"flex","align-items":"center","justify-content":"center",background:"var(--el-fill-color-lighter)",position:"relative",overflow:"hidden"}},Jn={key:0,style:{color:"var(--el-text-color-secondary)"}},Gn=["src"],Hn={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},In={class:"dialog-footer"},Xn=e.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(O,{emit:$}){const _=O,w=$,C=e.ref(null),i=e.ref(!1),Y=e.ref(""),ue=e.ref(""),ye=new Fn({url:"ws://127.0.0.1:22225"});function Se(oe,re){var T;const we=oe.split(","),K=((T=we[0].match(/:(.*?);/))==null?void 0:T[1])??"image/jpeg",cl=atob(we[1]);let Ze=cl.length;const Z=new Uint8Array(Ze);for(;Ze--;)Z[Ze]=cl.charCodeAt(Ze);return new File([Z],re,{type:K})}function We(){ye.onLog=oe=>{console.log("[GPY]",oe)},ye.onDevCount=(oe,re)=>{if(ue.value+=`设备数量=${oe},设备=${re.join(",")}
|
|
1
|
+
"use strict";var tn=Object.defineProperty;var un=(O,$,_)=>$ in O?tn(O,$,{enumerable:!0,configurable:!0,writable:!0,value:_}):O[$]=_;var Nl=(O,$,_)=>un(O,typeof $!="symbol"?$+"":$,_);const e=require("vue"),N=require("./index-DOItJqcJ.cjs"),he=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CPbadDFN.cjs"),_l=require("./index-BQRQ125X.cjs"),Er=require("./threeViewerHost-CYvQxMHX.cjs"),Ba=require("./index-CXC0u8pm.cjs"),cn=require("./index.vue_vue_type_style_index_1_lang-Cw-NkdEt.cjs"),ka=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ql=require("./index-CamRKKJN.cjs");require("./index-KaxOq1_-.cjs");const Tr=require("./isString-Do5yyRUw.cjs"),Oa=O=>O.match(/\((.*)\)/)[1],Br={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200}},setup(O){const $=O,_=e.ref(null),w=e.ref(!1),C=e.ref(null);return e.watch(()=>$==null?void 0:$.isVisible,()=>{w.value=$==null?void 0:$.isVisible},{deep:!0,immediate:!0}),e.watch(()=>C.value,()=>{e.nextTick(()=>{var i,Y;(Y=(i=_.value)==null?void 0:i.updatePopper)==null||Y.call(i)})},{deep:!0,immediate:!0}),(i,Y)=>{const ue=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(ue,{visible:w.value,title:$==null?void 0:$.title,placement:$==null?void 0:$.placement,width:$==null?void 0:$.width,ref_key:"popOverRef",ref:_},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(i.$slots,"reference",{ref_key:"referenceRef",ref:C})])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(i.$slots,"content")])]),_:3},8,["visible","title","placement","width"])}}},dn={key:0,class:"extra-button-content"},pn={class:"table-operator-wrap"},fn={key:0,class:"extra-button-filter"},hn={class:"form-content-value"},yn={key:1,class:"extra-header"},vn={class:"drop-menu",style:{width:"120px"}},gn={key:0},bn={key:1},mn={key:1,class:"extra-button-content tabs-button-wrapper"},kn={class:"table-operator-wrap"},Cn={class:"extra-button-filter"},Sn={class:"form-content-value"},xn={key:0,class:"extra-header"},Nn={class:"drop-menu",style:{width:"120px"}},_n={key:0},An={key:1},wn={__name:"header",props:{pageLayout:{type:String,default:"vertical"},lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},filterShow:{type:Boolean,default:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(O,{emit:$}){const _=$,w=O,C=e.ref(""),i=e.ref(!1),Y=e.ref([]),ue=e.ref([{label:"取消",background:"#999999"},{label:"清空",background:"#999999"},{label:"确认"}]),ye=[{label:"新增",icon:"Plus"},{label:"导入",icon:"import"},{label:"导出",icon:"export"},{label:"OCR识别",icon:"ocr"}],Se=ce=>{const Me=ce.raw;if(!Me)return;const Je=new FileReader;Je.onload=de=>{try{const oe=new Uint8Array(de.target.result),re=he.readSync(oe,{type:"array"}),we=re.SheetNames[0],K=re.Sheets[we],Ze=he.utils.decode_range(K["!ref"]).e.c+1,Z=new Array(Ze).fill(""),T=[];for(const ee in K){if(ee[0]==="!")continue;const{r:Ne,c:Re}=he.utils.decode_cell(ee);let vl=K[ee].v;if(K[ee].t==="n"&&vl>0&&vl<1e6&&(vl=new Date((vl-25569)*86400*1e3).toISOString().split("T")[0]),(vl==null||vl==="")&&(vl=""),Ne===0)Z[Re]=vl;else{if(!T[Ne-1]){T[Ne-1]={};for(let Ll=0;Ll<Ze;Ll++)T[Ne-1][`col_${Ll}`]=""}T[Ne-1][`col_${Re}`]=vl}}for(let ee=0;ee<Ze;ee++)Z[ee]===void 0&&(Z[ee]="");const Ge=T==null?void 0:T[0];if(!(Ge!=null&&Ge.hasOwnProperty("col_0")))return N.ElMessage.error("导入的数据列不匹配,请检查是否错位");_("getImportData",Z,T)}catch(oe){throw N.ElMessage.error(oe.message),new Error(oe.message)}},Je.readAsArrayBuffer(Me)},We=ce=>{var Je;const Me=(Je=Y.value)==null?void 0:Je.reduce((de,oe,re)=>(re===0?de[oe.label]=ce:de[oe.label]=oe==null?void 0:oe.value,de),{});_("filter",Me,ce,!0)},Ie=ce=>{_("buttonClick",ce)},el=ce=>{var Me,Je;Y.value=(Je=(Me=he.getColumnChild(N.cloneDeep(ce)))==null?void 0:Me.filter(de=>(de==null?void 0:de.label)!==""&&(de==null?void 0:de.label)!=="操作"))==null?void 0:Je.map(de=>({label:(de==null?void 0:de.label)??"",value:"",name:(de==null?void 0:de.label)??"",isFormColHidden:de==null?void 0:de.isTableColHidden,width:2}))},Qe=e.ref(!1),gl=ce=>{var Me;if((ce==null?void 0:ce.buttonName)==="确认"&&(_("filter",ce==null?void 0:ce.content),Qe.value=(ce==null?void 0:ce.content)&&Object.values(ce==null?void 0:ce.content).length>0),(ce==null?void 0:ce.buttonName)==="清空"){const Je=N.cloneDeep(ce==null?void 0:ce.content);for(const de in Je)Je[de]="";Y.value=(Me=Y.value)==null?void 0:Me.map(de=>({...de,value:""})),_("filter",Je),Qe.value=!1}i.value=!1},bl=()=>{var Me,Je;Y.value=(Me=Y.value)==null?void 0:Me.map(de=>({...de,value:""}));const ce=(Je=Y.value)==null?void 0:Je.reduce((de,oe)=>(de[oe.label]=oe.value,de),{});_("filter",ce)};return e.onMounted(()=>{el(w.columns)}),e.watch(()=>w.columns,()=>{el(w.columns)},{deep:!0,immediate:!0}),(ce,Me)=>{var K,cl,Ze,Z;const Je=e.resolveComponent("el-icon"),de=e.resolveComponent("svg-icon"),oe=e.resolveComponent("el-input"),re=e.resolveComponent("el-button"),we=e.resolveComponent("el-upload");return O.pageLayout==="vertical"?(e.openBlock(),e.createElementBlock("div",dn,[e.createElementVNode("div",{class:e.normalizeClass(O.compName?"table-name-wrap":""),style:e.normalizeStyle({background:(w==null?void 0:w.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((w==null?void 0:w.level)-1)*12+"px",fontWeight:600-((w==null?void 0:w.level)-1)*100>=400?600-((w==null?void 0:w.level)-1)*100:400,fontSize:17-(w==null?void 0:w.level)>=14?17-(w==null?void 0:w.level)+"px":"14px"})},e.toDisplayString(O.compName),7),e.createElementVNode("div",pn,[w!=null&&w.filterShow?(e.openBlock(),e.createElementBlock("div",fn,[e.createVNode(Br,{title:"",width:800,placement:"bottom-start",isVisible:i.value},{reference:e.withCtx(()=>{var T,Ge,ee,Ne;return[e.createVNode(oe,{modelValue:C.value,"onUpdate:modelValue":Me[1]||(Me[1]=Re=>C.value=Re),style:{"min-width":"80px"},placeholder:Qe.value?(ee=(Ge=(T=O.filterValues)==null?void 0:T.filter(Re=>Re))==null?void 0:Ge.slice(0,3))==null?void 0:ee.join("/"):"搜索","prefix-icon":e.unref(N.search_default),clearable:"",onInput:We,disabled:((Ne=Y.value)==null?void 0:Ne.length)===0},{suffix:e.withCtx(()=>{var Re,vl;return[!C.value&&((vl=(Re=O.filterValues)==null?void 0:Re.filter(Ll=>Ll))!=null&&vl.join("/"))?(e.openBlock(),e.createBlock(Je,{key:0,style:{cursor:"pointer"},onClick:bl},{default:e.withCtx(()=>[e.createVNode(e.unref(N.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:Me[0]||(Me[0]=Re=>i.value=!i.value)},[e.createVNode(de,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[e.createElementVNode("div",hn,[(e.openBlock(),e.createBlock(_l.ssForm,{rowContents:Y.value,buttonValue:ue.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:ue.value,isStartJustify:!1,onOnButtonClick:gl},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])])):e.createCommentVNode("",!0),O.buttons&&((K=O.buttons)==null?void 0:K.length)>0?(e.openBlock(),e.createElementBlock("div",yn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((cl=O.buttons)==null?void 0:cl.filter(T=>O.isDevMode||(T==null?void 0:T.label)!=="修改模板"),(T,Ge)=>(e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:Ge},[(T==null?void 0:T.type)==="upload"?(e.openBlock(),e.createBlock(we,{key:0,class:"upload-button-wrap","on-change":Se,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!O.lockingPage},{default:e.withCtx(()=>[e.createVNode(re,{disabled:!!O.lockingPage,style:e.normalizeStyle({background:(T==null?void 0:T.background)??"var(--ssbutton-theme-bg)",color:(T==null?void 0:T.color)??"var(--ssbutton-theme-color)"})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T==null?void 0:T.label),1)]),_:2},1032,["disabled","style"])]),_:2},1032,["disabled"])):e.createCommentVNode("",!0),(T==null?void 0:T.type)==="popover"?(e.openBlock(),e.createBlock(_l._sfc_main,{key:1},{dropTitle:e.withCtx(()=>[(T==null?void 0:T.type)==="popover"?(e.openBlock(),e.createBlock(re,{key:0,disabled:!!O.lockingPage,style:e.normalizeStyle({background:(T==null?void 0:T.background)??"var(--ssbutton-theme-bg)",color:(T==null?void 0:T.color)??"var(--ssbutton-theme-color)"})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T==null?void 0:T.label),1)]),_:2},1032,["disabled","style"])):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",vn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T==null?void 0:T.contents,ee=>(e.openBlock(),e.createBlock(re,{key:ee==null?void 0:ee.label,disabled:!!O.lockingPage,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:Ne=>Ie(ee==null?void 0:ee.label)},{default:e.withCtx(()=>{var Ne,Re;return[e.createTextVNode(e.toDisplayString(ee==null?void 0:ee.label),1),(Ne=ee==null?void 0:ee.label)!=null&&Ne.includes("选中")?(e.openBlock(),e.createElementBlock("span",gn,"("+e.toDisplayString(O.selectNums)+")",1)):e.createCommentVNode("",!0),(Re=ee==null?void 0:ee.label)!=null&&Re.includes("全部")?(e.openBlock(),e.createElementBlock("span",bn,"("+e.toDisplayString(O.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["disabled","onClick"]))),128))])]),_:2},1024)):e.createCommentVNode("",!0),T!=null&&T.type?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(re,{key:2,id:"themeButton",disabled:!!O.lockingPage,style:e.normalizeStyle({background:(T==null?void 0:T.background)??"var(--ssbutton-theme-bg)",color:(T==null?void 0:T.color)??"var(--ssbutton-theme-color)"}),onClick:ee=>Ie(T==null?void 0:T.label)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T==null?void 0:T.label),1)]),_:2},1032,["disabled","style","onClick"]))]))),128))])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",mn,[e.createElementVNode("div",kn,[e.createElementVNode("div",Cn,[e.createVNode(Br,{title:"",width:800,placement:"bottom-start",isVisible:i.value},{reference:e.withCtx(()=>{var T,Ge,ee,Ne;return[e.createVNode(oe,{modelValue:C.value,"onUpdate:modelValue":Me[3]||(Me[3]=Re=>C.value=Re),style:{"min-width":"80px"},placeholder:Qe.value?(ee=(Ge=(T=O.filterValues)==null?void 0:T.filter(Re=>Re))==null?void 0:Ge.slice(0,3))==null?void 0:ee.join("/"):"搜索","prefix-icon":e.unref(N.search_default),clearable:"",onInput:We,disabled:((Ne=Y.value)==null?void 0:Ne.length)===0},{suffix:e.withCtx(()=>{var Re,vl;return[!C.value&&((vl=(Re=O.filterValues)==null?void 0:Re.filter(Ll=>Ll))!=null&&vl.join("/"))?(e.openBlock(),e.createBlock(Je,{key:0,style:{cursor:"pointer"},onClick:bl},{default:e.withCtx(()=>[e.createVNode(e.unref(N.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:Me[2]||(Me[2]=Re=>i.value=!i.value)},[e.createVNode(de,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[e.createElementVNode("div",Sn,[(e.openBlock(),e.createBlock(_l.ssForm,{rowContents:Y.value,buttonValue:ue.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:ue.value,isStartJustify:!1,onOnButtonClick:gl},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])]),O.buttons&&((Ze=O.buttons)==null?void 0:Ze.length)>0?(e.openBlock(),e.createElementBlock("div",xn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Z=O.buttons)==null?void 0:Z.filter(T=>O.isDevMode||(T==null?void 0:T.label)!=="修改模板"),(T,Ge)=>(e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:Ge},[(T==null?void 0:T.type)==="upload"?(e.openBlock(),e.createBlock(we,{key:0,class:"upload-button-wrap","on-change":Se,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:e.withCtx(()=>[e.createVNode(re,{style:{background:"transparent",color:"#666666"}},{icon:e.withCtx(()=>{var ee;return[e.createVNode(de,{name:(ee=ye==null?void 0:ye.find(Ne=>(Ne==null?void 0:Ne.label)===(T==null?void 0:T.label)))==null?void 0:ee.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(T==null?void 0:T.label),1)]),_:2},1024)]),_:2},1024)):e.createCommentVNode("",!0),(T==null?void 0:T.type)==="popover"?(e.openBlock(),e.createBlock(_l._sfc_main,{key:1},{dropTitle:e.withCtx(()=>[(T==null?void 0:T.type)==="popover"?(e.openBlock(),e.createBlock(re,{key:0,style:{background:"transparent",color:"#666666"}},{icon:e.withCtx(()=>{var ee;return[e.createVNode(de,{name:(ee=ye==null?void 0:ye.find(Ne=>(Ne==null?void 0:Ne.label)===(T==null?void 0:T.label)))==null?void 0:ee.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(T==null?void 0:T.label),1)]),_:2},1024)):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Nn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T==null?void 0:T.contents,ee=>(e.openBlock(),e.createBlock(re,{key:ee==null?void 0:ee.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:Ne=>Ie(ee==null?void 0:ee.label)},{default:e.withCtx(()=>{var Ne,Re;return[e.createTextVNode(e.toDisplayString(ee==null?void 0:ee.label),1),(Ne=ee==null?void 0:ee.label)!=null&&Ne.includes("选中")?(e.openBlock(),e.createElementBlock("span",_n,"("+e.toDisplayString(O.selectNums)+")",1)):e.createCommentVNode("",!0),(Re=ee==null?void 0:ee.label)!=null&&Re.includes("全部")?(e.openBlock(),e.createElementBlock("span",An,"("+e.toDisplayString(O.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):e.createCommentVNode("",!0),T!=null&&T.type?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(re,{key:2,id:"themeButton",style:e.normalizeStyle({background:"transparent",color:(T==null?void 0:T.label)==="新增"?"var(--ssbutton-theme-bg)":"#666666"}),onClick:ee=>Ie(T==null?void 0:T.label)},{icon:e.withCtx(()=>{var ee;return[e.createVNode(de,{name:(ee=ye==null?void 0:ye.find(Ne=>(Ne==null?void 0:Ne.label)===(T==null?void 0:T.label)))==null?void 0:ee.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(T==null?void 0:T.label),1)]),_:2},1032,["style","onClick"]))]))),128))])):e.createCommentVNode("",!0)])]))}}},Dn=ka._export_sfc(wn,[["__scopeId","data-v-03b0d8fa"]]),En=e.defineComponent({__name:"batch",props:{lockingPage:Boolean,buttons:{type:Array,default:()=>[]},selectTableItems:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(O,{emit:$}){const _=O,w=$,C=Y=>{w("buttonClick",Y)},i=Y=>{var ue;return Y!=null&&Y.includes("删除")?((ue=_.selectTableItems)==null?void 0:ue.length)>0?"warning-active-type":"warning-type":"default-type"};return(Y,ue)=>{const ye=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.buttons,Se=>(e.openBlock(),e.createBlock(ye,{key:Se==null?void 0:Se.label,disabled:!!O.lockingPage,class:e.normalizeClass(i(Se==null?void 0:Se.label)),onClick:We=>C(Se==null?void 0:Se.label)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Se==null?void 0:Se.label),1)]),_:2},1032,["disabled","class","onClick"]))),128))])}}}),Tn=ka._export_sfc(En,[["__scopeId","data-v-70b12973"]]),Ur=N.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(O){this.selectArray=O},setSelectString(O){this.selectString=O}}}),Bn={class:"calculator-content"},On={class:"calculator-child"},Un={class:"calculator-child"},Ln=e.defineComponent({__name:"calculator",setup(O){const $=e.ref(),_=e.ref();return e.onMounted(()=>{$.value=[{type:"Upload",label:"输入",name:"input"}],_.value=[{type:"Upload",label:"输出",name:"output"}]}),(w,C)=>(e.openBlock(),e.createElementBlock("div",Bn,[e.createElementVNode("div",On,[e.createVNode(_l.ssForm,{rowContents:$.value,isRowFlex:!0},null,8,["rowContents"])]),e.createElementVNode("div",Un,[e.createVNode(_l.ssForm,{rowContents:_.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),jn=ka._export_sfc(Ln,[["__scopeId","data-v-73db0fe7"]]),Xa=(O,$)=>{let _=O,w=$;return Array.isArray(_)&&(_=_==null?void 0:_.map((C,i)=>{if(Array.isArray(C)){let Y={};return C=C==null?void 0:C.forEach((ue,ye)=>{var Se;(Se=w==null?void 0:w[ye])!=null&&Se.prop?Y[w[ye].prop]=ue:Array.isArray(ue)&&(Y.children=Xa(ue,w))}),Object.assign(Y,{id:i})}else return C})),_},Lr=(O,$,_)=>{let w=O,C=$;return w=w==null?void 0:w.map((i,Y)=>{var ue,ye;return!Array.isArray(i)||!((ue=C==null?void 0:C[Y])!=null&&ue.label)&&!_||(i.unshift(((ye=C==null?void 0:C[Y])==null?void 0:ye.label)??""),i.some(Se=>Array.isArray(Se))&&(i=i==null?void 0:i.map(Se=>{var We;return Array.isArray(Se)&&(Se=Lr(Se,(We=C==null?void 0:C[Y])==null?void 0:We.children,_)),Se}))),i}),w},$n=(O,$,_)=>{if($==="")return O==null?void 0:O.filter(w=>(w==null?void 0:w.id)!==_);{const w=$.split("-");return Pn(O,w,_)}},Pn=(O,$,_)=>{let w=O,C=$;return(C==null?void 0:C.length)===0?w=w==null?void 0:w.filter(i=>i.id!==_):w=w==null?void 0:w.map(i=>(i.id.toString()===(C==null?void 0:C[0])&&(C==null||C.shift(),i=jr(i,C,_)),i)),w},jr=(O,$,_)=>{var i,Y;let w=O,C=$;return(C==null?void 0:C.length)===0?w.children=(i=w.children)==null?void 0:i.filter(ue=>ue.id!==_):w.children=(Y=w.children)==null?void 0:Y.map(ue=>(ue.id.toString()===(C==null?void 0:C[0])&&(C==null||C.shift(),ue=jr(ue,C,_)),ue)),w},Mn=(O,$,_)=>{if($==="")return _;{const w=$.split("-");return Rn(O,w,_)}},Rn=(O,$,_)=>{let w=O,C=$;return(C==null?void 0:C.length)===0?w=_:w=w==null?void 0:w.map(i=>(i.id.toString()===(C==null?void 0:C[0])&&(C==null||C.shift(),i=$r(i,C,_)),i)),w},$r=(O,$,_)=>{var i;let w=O,C=$;return(C==null?void 0:C.length)===0?w.children=_:w.children=(i=w.children)==null?void 0:i.map(Y=>(Y.id.toString()===(C==null?void 0:C[0])&&(C==null||C.shift(),Y=$r(Y,C,_)),Y)),w};class Fn{constructor($={}){Nl(this,"url");Nl(this,"heartbeatInterval");Nl(this,"socket",null);Nl(this,"isConnected",!1);Nl(this,"heartTimer",null);Nl(this,"canvas",null);Nl(this,"ctx",null);Nl(this,"mainCamCutMode",0);Nl(this,"pMainShowStartX",0);Nl(this,"pMainShowStartY",0);Nl(this,"onLog");Nl(this,"onDevCount");Nl(this,"onCameraStatus");Nl(this,"onPhoto");this.url=$.url??"ws://127.0.0.1:22225",this.heartbeatInterval=$.heartbeatInterval??3e3}init($,_,w){var Y;(Y=this.canvas)!=null&&Y.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const C=document.createElement("canvas");C.style.border="solid 1px #A0A0A0",C.id="MainCamCanvas",C.width=_,C.height=w;const i=C.getContext("2d");if(!i)throw new Error("无法获取 CanvasRenderingContext2D");$.appendChild(C),this.canvas=C,this.ctx=i}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise(($,_)=>{const w=new WebSocket(this.url);w.binaryType="arraybuffer",w.onopen=()=>{this.socket=w,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),$()},w.onerror=C=>{this.isConnected=!1,this.log("socket.onerror"),_(C)},w.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},w.onmessage=C=>{this.handleMessage(C)}})}destroy(){var $;this.stopHeartbeat();try{this.closeCamera()}catch{}if(this.socket){try{this.socket.onmessage=null}catch{}try{this.socket.onopen=null}catch{}try{this.socket.onerror=null}catch{}try{this.socket.onclose=null}catch{}try{this.socket.close()}catch{}this.socket=null}this.isConnected=!1,($=this.canvas)!=null&&$.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null,this.ctx=null}getDevCount(){this.sendBytes(new Uint8Array([119,136,80]))}openCamera($=0,_=1280,w=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const C=new Uint8Array(12);C[0]=119,C[1]=136,C[2]=1,C[3]=$,C[4]=this.canvas.width>>8&255,C[5]=this.canvas.width&255,C[6]=this.canvas.height>>8&255,C[7]=this.canvas.height&255,C[8]=_>>8&255,C[9]=_&255,C[10]=w>>8&255,C[11]=w&255,this.sendBytes(C)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const C=new Uint8Array(12);C[0]=119,C[1]=136,C[2]=16,C[3]=0,C[4]=0,C[5]=0,C[6]=0,C[7]=0,C[8]=1,C[9]=0,C[10]=0,C[11]=0,this.sendBytes(C)}bestSize(){this.sendBytes(new Uint8Array([119,136,5,0]))}rotateLeft(){this.sendBytes(new Uint8Array([119,136,7,0]))}rotateRight(){this.sendBytes(new Uint8Array([119,136,8,0]))}focus(){this.sendBytes(new Uint8Array([119,136,48,0]))}log($){var _;(_=this.onLog)==null||_.call(this,$)}sendBytes($){if(!this.socket||this.socket.readyState!==WebSocket.OPEN||!this.isConnected)throw new Error("socket 未连接");this.socket.send($.buffer)}startHeartbeat(){this.stopHeartbeat(),this.heartTimer=window.setInterval(()=>{this.log("heartCheck...........")},this.heartbeatInterval)}stopHeartbeat(){this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=null)}handleMessage($){var C,i,Y,ue,ye;const _=new Uint8Array($.data);if(_.length<=0)return;if(_[0]===17&&_[1]===17&&_[2]===17){this.log("heart socket!!!!");return}if(_[0]!==85||_[1]!==102)return;const w=_[2];if(w===80){const Se=_[3],We=_.length-4,Ie=new Uint8Array(We);for(let gl=0;gl<We;gl++)Ie[gl]=_[4+gl];const Qe=decodeURIComponent(this.byteToString(Ie)).split("|");(C=this.onDevCount)==null||C.call(this,Se,Qe);return}if(w===1){_[3]===1&&((i=this.onCameraStatus)==null||i.call(this,"opened")),_[3]===3&&((Y=this.onCameraStatus)==null||Y.call(this,"closed"));return}if(w===16){if(_[3]===1){const We=_[4]*256+_[5],Ie=_[6]*65536+_[7]*256+_[8];let el="";if(We>0){const bl=new Uint8Array(We);for(let ce=0;ce<We;ce++)bl[ce]=_[9+ce];el=decodeURIComponent(this.byteToString(bl))}const Qe=new Uint8Array(Ie);for(let bl=0;bl<Ie;bl++)Qe[bl]=_[9+We+bl];const gl=this.uint8ArrayToString(Qe);(ue=this.onPhoto)==null||ue.call(this,{flag:0,imgPath:el,base64:gl})}_[3]===2&&((ye=this.onPhoto)==null||ye.call(this,{flag:2,imgPath:"",base64:""}));return}if(w===204){if(!this.canvas||!this.ctx)return;const Se=_[3]*256+_[4],We=_[5]*256+_[6];this.pMainShowStartX=_[7]*256+_[8],this.pMainShowStartY=_[9]*256+_[10],this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);const Ie=this.ctx.createImageData(Se,We);let el=11;for(let Qe=0;Qe<Ie.data.length;Qe+=4)Ie.data[Qe+0]=_[el],Ie.data[Qe+1]=_[el+1],Ie.data[Qe+2]=_[el+2],Ie.data[Qe+3]=255,el+=3;this.ctx.putImageData(Ie,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString($){let _="";for(let w=0;w<$.length;w++)_+=String.fromCharCode($[w]);return _}byteToString($){let _="";for(let w=0;w<$.length;w++)_+=String.fromCharCode($[w]);return _}}const Kn={style:{display:"flex",gap:"16px",height:"100%"}},Vn={key:0,style:{color:"var(--el-text-color-secondary)"}},zn={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},qn={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},Wn={ref:"pictureBox",style:{height:"220px",border:"1px dashed var(--el-border-color)","border-radius":"4px",display:"flex","align-items":"center","justify-content":"center",background:"var(--el-fill-color-lighter)",position:"relative",overflow:"hidden"}},Jn={key:0,style:{color:"var(--el-text-color-secondary)"}},Gn=["src"],Hn={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},In={class:"dialog-footer"},Xn=e.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(O,{emit:$}){const _=O,w=$,C=e.ref(null),i=e.ref(!1),Y=e.ref(""),ue=e.ref(""),ye=new Fn({url:"ws://127.0.0.1:22225"});function Se(oe,re){var T;const we=oe.split(","),K=((T=we[0].match(/:(.*?);/))==null?void 0:T[1])??"image/jpeg",cl=atob(we[1]);let Ze=cl.length;const Z=new Uint8Array(Ze);for(;Ze--;)Z[Ze]=cl.charCodeAt(Ze);return new File([Z],re,{type:K})}function We(){ye.onLog=oe=>{console.log("[GPY]",oe)},ye.onDevCount=(oe,re)=>{if(ue.value+=`设备数量=${oe},设备=${re.join(",")}
|
|
2
2
|
`,oe>0){ue.value+=`检测到设备,正在打开摄像头...
|
|
3
3
|
`;try{ye.openCamera(0,1280,720)}catch(we){ue.value+=`打开摄像头失败:${(we==null?void 0:we.message)??we}
|
|
4
4
|
`}}else ue.value+=`未检测到高拍仪设备!
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-DOItJqcJ.cjs"),_=require("./index-CXC0u8pm.cjs"),C=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-DOItJqcJ.cjs"),_=require("./index-CXC0u8pm.cjs"),C=require("./index-COECU96d.cjs"),r=require("./index-D-uo7H2E.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=_.useMenuState(u.pinia),{menus:c}=u.storeToRefs(m),p=l.ref([]),f=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 f(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(c.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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),d=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang
|
|
1
|
+
"use strict";const e=require("vue"),d=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CPbadDFN.cjs"),p=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_={__name:"index",props:{optionContents:{type:Object,default:()=>{}}},setup(a){const s=a;let t=null,n=null;const r=e.ref({}),o=e.ref(null),u=()=>{o.value&&(n=new ResizeObserver(()=>{i()}),n.observe(o.value))};e.onMounted(()=>{r.value=s.optionContents,c(),window.addEventListener("resize",i),u()}),e.watch(()=>s.optionContents,()=>{r.value=s.optionContents,c()}),e.onUnmounted(()=>{n&&n.disconnect(),window.removeEventListener("resize",i)});const i=()=>{t.resize()},c=()=>{t&&t.dispose(),t=d.init(o.value);const l=r.value;t.setOption(l),t.resize()};return(l,f)=>(e.openBlock(),e.createElementBlock("div",{id:"chartModelId",class:"chart-model-class",ref_key:"chartModelRef",ref:o},null,512))}},v=p._export_sfc(_,[["__scopeId","data-v-69d6e63f"]]);exports.ssChart=v;
|