ss-component-new 1.3.2 → 1.3.3
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-xrJPpi4c.cjs → MTLLoader-C_XCtjSi.cjs} +1 -1
- package/dist/{MTLLoader-Dv2EVTWB.js → MTLLoader-YR-bfx1D.js} +1 -1
- package/dist/{OrbitControls-B_seM-IP.js → OrbitControls-BGsXD_A7.js} +1 -1
- package/dist/{OrbitControls-DeFoKJp9.cjs → OrbitControls-CktvE4iE.cjs} +1 -1
- package/dist/{URDFLoader-B6g0hxRm.cjs → URDFLoader-10oVp_KW.cjs} +1 -1
- package/dist/{URDFLoader-BT60rQtD.js → URDFLoader-m1gMdnSQ.js} +2 -2
- package/dist/{animationData-Beth8tFS.js → animationData-CpK8d_Vm.js} +1 -1
- package/dist/{animationData-CXbG057x.cjs → animationData-Cr2ra7rm.cjs} +1 -1
- package/dist/{array-QkdkoOAY.cjs → array-CNEAnwCQ.cjs} +1 -1
- package/dist/{array-C6jYq2-o.js → array-fed49Qom.js} +3 -3
- package/dist/{iconfont-h3lSsHxO.js → iconfont-0yJB130V.js} +2 -2
- package/dist/{iconfont-UNojnhH2.cjs → iconfont-DsF7kuG5.cjs} +1 -1
- package/dist/{index-CCn_Pa7c.cjs → index-82VS01cd.cjs} +1 -1
- package/dist/{index-CgR9iYFA.cjs → index-B4fEYSZz.cjs} +1 -1
- package/dist/{index-DzadQQ41.js → index-BAd4yIgj.js} +4 -4
- package/dist/{index-Bv-gTP_t.cjs → index-BIL173V1.cjs} +1 -1
- package/dist/{index-VcjIgkLE.cjs → index-BNzPNbKQ.cjs} +1 -1
- package/dist/{index-BF9Y0y6z.js → index-BRUsO0JA.js} +2 -2
- package/dist/{index-B7RJnzyb.js → index-BXUByyre.js} +1 -1
- package/dist/{index-4FJEY4G5.js → index-Bt-LE2d9.js} +1 -1
- package/dist/{index-CDYSTy2C.cjs → index-C0BL6sZ3.cjs} +1 -1
- package/dist/{index-DPNECOKG.cjs → index-C20PbKCx.cjs} +1 -1
- package/dist/{index-BR5J0fXr.cjs → index-C2XI6Hre.cjs} +1 -1
- package/dist/{index-DkzIAhpA.cjs → index-CE9d33l5.cjs} +1 -1
- package/dist/{index-NAekmm6C.js → index-CRc0qxAb.js} +1 -1
- package/dist/{index-DzAoltDQ.cjs → index-CVXrjDFh.cjs} +1 -1
- package/dist/{index-CPk9g8p3.js → index-CWl1ag4C.js} +1 -1
- package/dist/{index-Da5iE_ab.js → index-CZ-K2grw.js} +1 -1
- package/dist/{index-CaXg2zO6.cjs → index-Cexj88aL.cjs} +1 -1
- package/dist/{index-DRybfiC9.js → index-CwtCbdPr.js} +1 -1
- package/dist/{index-BqqRuoo3.js → index-D-38bzBf.js} +3 -3
- package/dist/{index-DtkLwSCK.cjs → index-D3ixok8t.cjs} +1 -1
- package/dist/{index-BbdTn4Wu.js → index-D3qDowev.js} +3 -3
- package/dist/{index-B1deFmCB.js → index-D8HD14bz.js} +1 -1
- package/dist/{index-B3jquljw.js → index-DAj8igrm.js} +4 -4
- package/dist/{index-CuKYtSif.js → index-DBh5Z73C.js} +1 -1
- package/dist/{index-hnHfOKW9.cjs → index-DHn6OW_a.cjs} +1 -1
- package/dist/{index-wpbqbw-8.cjs → index-DS-YTop9.cjs} +1 -1
- package/dist/{index-CUtrk2F2.cjs → index-DZ0yrDBw.cjs} +1 -1
- package/dist/{index-De3Zh_5B.cjs → index-D_Yhv_HV.cjs} +1 -1
- package/dist/{index-TxlM0xFu.cjs → index-DaIE9uY1.cjs} +1 -1
- package/dist/{index-DRLogw4i.js → index-DmZSvt8a.js} +5 -5
- package/dist/{index-7tMW9vmz.js → index-DywrXPIM.js} +13 -13
- package/dist/{index-r5JlBAZk.cjs → index-FeG6K9iT.cjs} +1 -1
- package/dist/{index-BBo5mPL3.js → index-NaWMtdUV.js} +1 -1
- package/dist/{index-DAeGe9R9.cjs → index-Rf4ukENq.cjs} +1 -1
- package/dist/{index-SvdMxP5R.js → index-XqNUjpwH.js} +332 -348
- package/dist/{index-C8qPBadE.cjs → index-fcGQ1ZME.cjs} +1 -1
- package/dist/{index-BYdJgNnt.js → index-gfdgTjvQ.js} +1 -1
- package/dist/{index-BJaAtaqN.js → index-rEUrneNF.js} +1 -1
- package/dist/{index-DJFQljsX.cjs → index-rmHO5QRp.cjs} +1 -1
- package/dist/{index-CVGCFimV.js → index-uwsxH5n7.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DuyXGUSZ.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js} +4142 -4137
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BYHbVlRN.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZMwIbmlN.cjs} +96 -96
- package/dist/{index.vue_vue_type_style_index_1_lang-JNXKF-5g.cjs → index.vue_vue_type_style_index_1_lang--4T7j9qz.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-CPOQHkRi.js → index.vue_vue_type_style_index_1_lang-CNh42_ZH.js} +3 -3
- package/dist/{main-II23mGYX.cjs → main-CaDcA-qT.cjs} +1 -1
- package/dist/{main-ClpfURp9.js → main-KysT4onk.js} +3 -3
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.js +8 -8
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-1StgfJTN.js → threeModel-CUhCPfB6.js} +4 -4
- package/dist/{threeModel-Bdx25CW5.cjs → threeModel-X3ghgTRs.cjs} +1 -1
- package/dist/{threePreview-Bf5gN_fI.js → threePreview-CkKl3frr.js} +3 -3
- package/dist/{threePreview-BNAELyED.cjs → threePreview-DOD9HOZn.cjs} +1 -1
- package/dist/{threeSceneView-u0zqKHWX.cjs → threeSceneView-DZvOLWv6.cjs} +1 -1
- package/dist/{threeSceneView-Boc1QaDR.js → threeSceneView-DlL9pZlj.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-CYkIXtPP.cjs → threeSceneViewForCPMPIP-CZvKvfDx.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-gnFSbkip.js → threeSceneViewForCPMPIP-DB0Eczbs.js} +7 -7
- package/dist/{threeTrackPathView-CBsHliC3.cjs → threeTrackPathView-DgyAEYfV.cjs} +1 -1
- package/dist/{threeTrackPathView-B1OFwlLh.js → threeTrackPathView-Eb1bvUXJ.js} +3 -3
- package/dist/{threeViewerHost-BSxl-4d-.cjs → threeViewerHost-BMU1tg9c.cjs} +1 -1
- package/dist/{threeViewerHost-B9z6zHUh.js → threeViewerHost-Bdzv9iPb.js} +2 -2
- package/dist/{urdfTree-C1KFI7et.cjs → urdfTree-CoK2r17Y.cjs} +1 -1
- package/dist/{urdfTree-CGZUqrH4.js → urdfTree-hLtm0aFY.js} +1 -1
- package/dist/{workpieceTreePanel-Bb9foDnf.js → workpieceTreePanel-Ne_ACq86.js} +4 -4
- package/dist/{workpieceTreePanel-BFsf-BrP.cjs → workpieceTreePanel-mWvCQyyw.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-BJPBBWWH.cjs"),_=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-BJPBBWWH.cjs"),_=require("./index-B4fEYSZz.cjs");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZMwIbmlN.cjs");const h=require("./index-C2XI6Hre.cjs"),f=require("./index-DRTxe12U.cjs");require("./index-C5pQXH0_.cjs");const y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V={class:"personal-wrapper"},x={class:"personal-box left"},N={class:"base-avatar"},S={class:"center-avatar"},D={class:"base-info"},E={class:"base-signature"},k={class:"personal-box right"},B=e.defineComponent({__name:"index",setup(T){const t=e.reactive({...l.State}),b=f.useLoginState(),{loginUserInfo:n}=f.storeToRefs(b);return e.onMounted(()=>{var s;t.getUserTableHeadersAsync(),t.refreshLoginUserInfoAsync((s=n==null?void 0:n.value)==null?void 0:s.id),l.tabKey.value++}),(s,o)=>{var c,d,u,g,p,m,v;const r=e.resolveComponent("svg-icon"),i=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("div",x,[e.createElementVNode("div",N,[e.createElementVNode("div",S,[e.withDirectives(e.createVNode(_.ssAvatar,{size:100,disabled:t.uploadDisabled,userInfo:e.unref(n),onSubmitImage:o[0]||(o[0]=a=>t.submitImageAsync("avatarUrl",a))},null,8,["disabled","userInfo"]),[[i,t.avatarLoading]])])]),e.createElementVNode("div",D,[e.createElementVNode("div",null,[e.createVNode(r,{name:"userAccount",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((c=e.unref(n))==null?void 0:c.account)||(((d=e.unref(n))==null?void 0:d.姓名)??"未知")),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"role",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((u=e.unref(n))==null?void 0:u.layer)==="superAdmin"?"超级管理员":((g=e.unref(n))==null?void 0:g.角色名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"dept",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((p=e.unref(n))==null?void 0:p.部门名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"status",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((m=e.unref(n))==null?void 0:m.layer)==="superAdmin"?"启用":((v=e.unref(n))==null?void 0:v.状态)??"未知"),1)])]),e.createElementVNode("div",E,[e.withDirectives(e.createVNode(_.ssSignature,{userInfo:e.unref(n),itemData:t.itemData,onClickSignButton:t.clickSignButton,onBeforeDestroy:t.beforeSignDestroy,onClickSubmitSign:o[1]||(o[1]=a=>t.submitImageAsync("signature",a))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"]),[[i,t.signatureLoading]])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[(e.openBlock(),e.createBlock(h.ssTab,{key:e.unref(l.tabKey),tabsContents:t.tabsContents,onChangeTrigger:t.changeFormTrigger,onClickTrigger:t.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])),[[i,t.loading]])])}}}),C=y._export_sfc(B,[["__scopeId","data-v-3bdf3f4b"]]);exports.default=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-DmZSvt8a.js";
|
|
3
3
|
import { g as d, c as _ } from "./index-Va8AOLWi.js";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const l = n([]), g = c(() => [
|
|
@@ -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-ZMwIbmlN.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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as y, ref as C, onMounted as _, createElementBlock as c, openBlock as g, createVNode as v } from "vue";
|
|
2
2
|
import { u as h, p as k, s as x, c as m } from "./index-COQpDVsv.js";
|
|
3
|
-
import { s as M } from "./index-
|
|
3
|
+
import { s as M } from "./index-DmZSvt8a.js";
|
|
4
4
|
import { a as D, d as T, f as S } from "./index-DFBXEIIr.js";
|
|
5
5
|
import { g as w } from "./index-B8HqIYd5.js";
|
|
6
6
|
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as l, reactive as c, onMounted as s, createElementBlock as r, openBlock as i, createVNode as p } from "vue";
|
|
2
2
|
import { S as m } from "./index-Va8AOLWi.js";
|
|
3
|
-
import { s as _ } from "./index-
|
|
3
|
+
import { s as _ } from "./index-DmZSvt8a.js";
|
|
4
4
|
import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const f = { class: "log-wrap" }, u = /* @__PURE__ */ l({
|
|
6
6
|
__name: "index",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-BWCv7zxy.cjs"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-BWCv7zxy.cjs"),r=require("./index-fcGQ1ZME.cjs"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),s={class:"log-wrap"},u=t.defineComponent({__name:"index",setup(_){const e=t.reactive({...c.State});t.onMounted(async()=>{e.tableData=await e.getLogTableDataAsync()});const l=n=>{var o;e.clickButton(n,(o=e.tableData)==null?void 0:o.map(a=>a.id),a=>{console.log("清空操作成功:",a),a&&(e.tableData=[])})};return(n,o)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(r.ssTable,{itemData:e.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:l},null,8,["itemData"])]))}}),d=i._export_sfc(u,[["__scopeId","data-v-b4bfde04"]]);exports.default=d;
|
|
@@ -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-DmZSvt8a.js";
|
|
3
3
|
import { u as d, s as l, b as p, S as g, n as h } from "./index-COQpDVsv.js";
|
|
4
4
|
const _ = { class: "routerPage-wrapper" }, B = /* @__PURE__ */ o({
|
|
5
5
|
__name: "index",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as F, computed as N, ref as p, watch as P, createElementBlock as B, openBlock as b, createVNode as v, createCommentVNode as j, withCtx as u, createTextVNode as T, toDisplayString as I, resolveComponent as k, createBlock as x, Fragment as L, renderList as O, createElementVNode as R, normalizeStyle as q } from "vue";
|
|
2
|
-
import { A as H } from "./index-
|
|
3
|
-
import { d as M, f as V } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
2
|
+
import { A as H } from "./index-NaWMtdUV.js";
|
|
3
|
+
import { d as M, f as V } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js";
|
|
4
4
|
import { E as z } from "./index-B8HqIYd5.js";
|
|
5
5
|
import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { S as W } from "./index-
|
|
6
|
+
import { S as W } from "./index-BAd4yIgj.js";
|
|
7
7
|
import { S as E } from "./index-BHtNKL1L.js";
|
|
8
8
|
const D = { class: "avatar-model-wrap" }, G = { key: 0 }, J = /* @__PURE__ */ F({
|
|
9
9
|
__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-CVXrjDFh.cjs"),r=require("./index-DRTxe12U.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,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-Ddoq7kRQ.js";
|
|
3
|
-
import { s as w, a as L } from "./index-
|
|
3
|
+
import { s as w, a as L } from "./index-D-38bzBf.js";
|
|
4
4
|
import "./index-BHtNKL1L.js";
|
|
5
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
6
|
-
import { f as E } from "./index-
|
|
5
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js";
|
|
6
|
+
import { f as E } from "./index-BAd4yIgj.js";
|
|
7
7
|
import { b as N, s as U } from "./index-COQpDVsv.js";
|
|
8
8
|
import "./index-B8HqIYd5.js";
|
|
9
9
|
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -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 { N as _ } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
2
|
+
import { N as _ } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js";
|
|
3
3
|
import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const z = {
|
|
5
5
|
__name: "index",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { _ as Et, s as Bt, g as Lt } from "./index-
|
|
1
|
+
import { _ as Et, s as Bt, g as Lt } from "./index-XqNUjpwH.js";
|
|
2
2
|
import { defineComponent as Ft, defineProps as Ut, ref as z, computed as Ge, onMounted as jt, watch as At, reactive as Pt, resolveComponent as te, createElementBlock as q, openBlock as O, Fragment as Ne, createVNode as J, createCommentVNode as Je, withCtx as V, normalizeStyle as $t, toDisplayString as lt, createElementVNode as We, renderList as st, createTextVNode as at, createBlock as Rt, resolveDynamicComponent as Ot } from "vue";
|
|
3
3
|
import { u as zt, a as qt, p as ot, b as Jt, s as Qe, c as xe } from "./index-COQpDVsv.js";
|
|
4
|
-
import { s as Wt } from "./index-
|
|
5
|
-
import { b as Gt } from "./index-
|
|
4
|
+
import { s as Wt } from "./index-DBh5Z73C.js";
|
|
5
|
+
import { b as Gt } from "./index-BAd4yIgj.js";
|
|
6
6
|
import { useRouter as Nt } from "vue-router";
|
|
7
7
|
import { a as Qt, e as Xt, f as Yt, g as Zt, h as xt } from "./index-CAPx0_D4.js";
|
|
8
8
|
import { g as $e, u as Xe, e as it, f as Vt, d as rt } from "./index-B8HqIYd5.js";
|
|
9
9
|
import { f as Ht } from "./menuIndex-DYaogp2R.js";
|
|
10
10
|
import { S as ut } from "./index-BHtNKL1L.js";
|
|
11
|
-
import { g as Ye, c as pt, q as mt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
11
|
+
import { g as Ye, c as pt, q as mt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js";
|
|
12
12
|
import { v as Ze } from "./index-DIWralYr.js";
|
|
13
13
|
import { _ as el } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const ct = (c, p, E = 0) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as O, reactive as I, watch as X, resolveComponent as Y, createBlock as P, openBlock as s, normalizeStyle as U, withCtx as S, renderSlot as B, createElementBlock as a, createCommentVNode as r, withModifiers as u, createElementVNode as j, toDisplayString as q } from "vue";
|
|
2
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
2
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js";
|
|
3
3
|
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const F = { class: "dialog-title" }, G = {
|
|
5
5
|
__name: "index",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-DRTxe12U.cjs"),_=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-DRTxe12U.cjs"),_=require("./index-fcGQ1ZME.cjs"),r=require("./index-DHdrBDP4.cjs"),C=require("./index-C5pQXH0_.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=u.useMenuState(u.pinia),{menus:c}=u.storeToRefs(m),p=l.ref([]),f=async()=>{var i,t,n,a;const e=await C.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(_.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"),I=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const e=require("vue"),I=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZMwIbmlN.cjs"),a=require("./index-C5pQXH0_.cjs"),k=require("./index-DRTxe12U.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),O="ElUpload";class B extends Error{constructor(o,l,i,p){super(o),this.name="UploadAjaxError",this.status=l,this.method=i,this.url=p}}function h(r,o,l){let i;return l.response?i=`${l.response.error||l.response}`:l.responseText?i=`${l.responseText}`:i=`fail to ${o.method} ${r} ${l.status}`,new B(i,l.status,o.method,r)}function R(r){const o=r.responseText||r.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}const T=r=>{typeof XMLHttpRequest>"u"&&a.throwError(O,"XMLHttpRequest is undefined");const o=new XMLHttpRequest,l=r.action;o.upload&&o.upload.addEventListener("progress",t=>{const c=t;c.percent=t.total>0?t.loaded/t.total*100:0,r.onProgress(c)});const i=new FormData;if(r.data)for(const[t,c]of Object.entries(r.data))a.isArray$1(c)&&c.length?i.append(t,...c):i.append(t,c);i.append(r.filename,r.file,r.file.name),o.addEventListener("error",()=>{r.onError(h(l,r,o))}),o.addEventListener("load",()=>{if(o.status<200||o.status>=300)return r.onError(h(l,r,o));r.onSuccess(R(o))}),o.open(r.method,l,!0),r.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);const p=r.headers||{};if(p instanceof Headers)p.forEach((t,c)=>o.setRequestHeader(c,t));else for(const[t,c]of Object.entries(p))k.isNil(c)||o.setRequestHeader(t,String(c));return o.send(i),o},U=["text","picture","picture-card"];let D=1;const L=()=>Date.now()+D++,F=a.buildProps({action:{type:String,default:"#"},headers:{type:a.definePropType(Object)},method:{type:String,default:"post"},data:{type:a.definePropType([Object,Function,Promise]),default:()=>a.mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:a.definePropType(Array),default:()=>a.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:U,default:"text"},httpRequest:{type:a.definePropType(Function),default:T},disabled:Boolean,limit:Number});a.buildProps({...F,beforeUpload:{type:a.definePropType(Function),default:a.NOOP},beforeRemove:{type:a.definePropType(Function)},onRemove:{type:a.definePropType(Function),default:a.NOOP},onChange:{type:a.definePropType(Function),default:a.NOOP},onPreview:{type:a.definePropType(Function),default:a.NOOP},onSuccess:{type:a.definePropType(Function),default:a.NOOP},onProgress:{type:a.definePropType(Function),default:a.NOOP},onError:{type:a.definePropType(Function),default:a.NOOP},onExceed:{type:a.definePropType(Function),default:a.NOOP},crossorigin:{type:a.definePropType(String)}});const j={style:{"text-align":"left"}},q={class:"cropper-warp"},A={class:"cropper-warp-left"},$=["src"],H={class:"cropper-warp-right"},z={class:"cropper-warp-right-item"},M={class:"cropper-warp-right-value"},X=["src"],J={class:"cropper-warp-right-item"},G={class:"cropper-warp-right-value"},K=["src"],Q={class:"dialog-footer"},W=e.defineComponent({__name:"index",props:{title:{type:String,default:""}},emits:["submitImage","deleteImage"],setup(r,{expose:o,emit:l}){const i=l,p=e.ref(),t=e.reactive({isShowDialog:!1,cropperImg:"",cropperImgBase64:"",cropper:null}),c=async s=>{if(t.isShowDialog=!0,!s)return;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s),e.nextTick(()=>{w()})},f=()=>{var s;(s=t.cropper)==null||s.destroy(),t.isShowDialog=!1},m=()=>{f()},y=async()=>{const s=await v();i("submitImage",{file:s}),f()},d=async()=>{i("deleteImage")},w=()=>{const s=document.querySelector(".cropper-warp-left-img");s&&s.setAttribute("crossOrigin","anonymous"),t.cropper=new I.Cropper(s,{viewMode:1,dragMode:"none",initialAspectRatio:1,aspectRatio:1,preview:".before",background:!0,autoCropArea:1,checkCrossOrigin:!1,crop:()=>{t.cropperImgBase64=t.cropper.getCroppedCanvas().toDataURL("image/jpeg")}})},v=async()=>t!=null&&t.cropper?new Promise(s=>{var n,u;(u=(n=t==null?void 0:t.cropper)==null?void 0:n.getCroppedCanvas())==null||u.toBlob(_=>{s(_)})}):(await fetch(t.cropperImg)).blob(),x=async s=>{var u;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s.raw),(u=t.cropper)==null||u.replace(t.cropperImg)},E=s=>{p.value.clearFiles();const n=s[0];n.uid=L(),p.value.handleStart(n)};return o({openDialog:c}),(s,n)=>{const u=e.resolveComponent("ele-Edit"),_=e.resolveComponent("el-icon"),g=e.resolveComponent("el-button"),P=e.resolveComponent("el-upload"),V=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(V,{modelValue:t.isShowDialog,"onUpdate:modelValue":n[0]||(n[0]=S=>t.isShowDialog=S),width:"769px","before-close":m},{header:e.withCtx(()=>[e.createElementVNode("div",j,[e.createVNode(_,{size:"16",style:{"margin-right":"3px",display:"inline","vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(u)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(r.title),1)])]),footer:e.withCtx(()=>[e.createElementVNode("span",Q,[e.createVNode(P,{class:"avatar-uploader",ref_key:"uploadSignRef",ref:p,accept:".jpg,.png",limit:1,"show-file-list":!1,"auto-upload":!1,"on-change":x,"on-exceed":E},{trigger:e.withCtx(()=>[e.createVNode(g,{type:"info",icon:"ele-Picture"},{default:e.withCtx(()=>n[4]||(n[4]=[e.createTextVNode("选择图片")])),_:1,__:[4]})]),default:e.withCtx(()=>[e.createVNode(g,{onClick:d,type:"danger",icon:"ele-Picture",style:{"margin-left":"8px"}},{default:e.withCtx(()=>n[5]||(n[5]=[e.createTextVNode("删除图片")])),_:1,__:[5]})]),_:1},512),e.createElementVNode("div",null,[e.createVNode(g,{onClick:m,id:"themeBorderButton"},{default:e.withCtx(()=>n[6]||(n[6]=[e.createTextVNode("取 消")])),_:1,__:[6]}),e.createVNode(g,{onClick:y,id:"themeButton"},{default:e.withCtx(()=>n[7]||(n[7]=[e.createTextVNode("确 定")])),_:1,__:[7]})])])]),default:e.withCtx(()=>[e.createElementVNode("div",q,[e.createElementVNode("div",A,[e.createElementVNode("img",{src:t.cropperImg,class:"cropper-warp-left-img"},null,8,$)]),e.createElementVNode("div",H,[n[3]||(n[3]=e.createElementVNode("div",{class:"cropper-warp-right-title"},"预览",-1)),e.createElementVNode("div",z,[e.createElementVNode("div",M,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img"},null,8,X)]),n[1]||(n[1]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"100 x 100",-1))]),e.createElementVNode("div",J,[e.createElementVNode("div",G,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img cropper-size"},null,8,K)]),n[2]||(n[2]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"50 x 50",-1))])])])]),_:1},8,["modelValue"])])}}}),b=C._export_sfc(W,[["__scopeId","data-v-4a19ffcf"]]),Y=e.defineComponent({__name:"index",props:{avatarUrl:{type:String,default:""},avatarBlob:{type:Blob,default:""},size:{type:[String,Number],default:"large"},showCropper:{type:Boolean,default:!0},banClick:{type:Boolean,default:!1},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage","clickAvatar"],setup(r,{emit:o}){const l=r,i=e.ref(),p=e.ref(null),t=o,c=()=>!0,f=async()=>{var d;l!=null&&l.banClick||(t("clickAvatar",l.avatarUrl),(d=i.value)==null||d.openDialog(l.avatarBlob))},m=async d=>{t("submitImage",d)},y=async()=>{t("deleteImage")};return(d,w)=>{const v=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(v,{src:r.avatarUrl,onClick:f,fit:"cover",size:r.size,ref_key:"avatarRef",ref:p,style:{background:"var(--user-avatar-bg)"},alt:"头像查找失败",onError:c},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"avatarDefault",{},void 0,!0)]),_:3},8,["src","size"]),e.withDirectives(e.createVNode(b,{ref_key:"cropperDialogRef",ref:i,title:"更改头像",avatarUrl:r.avatarUrl,onSubmitImage:m,onDeleteImage:y},null,8,["avatarUrl"]),[[e.vShow,r.showCropper&&(l==null?void 0:l.clickStop)]])],64)}}}),N=C._export_sfc(Y,[["__scopeId","data-v-82946fb9"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"}));exports.Avatar=N;exports.CropperDialog=b;exports.index=Z;
|