ss-component-new 1.2.85 → 1.2.87
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-DX8U25Z1.js → MTLLoader-DkSNLhC7.js} +1 -1
- package/dist/{MTLLoader-XWaijvjW.cjs → MTLLoader-J3dtRBIA.cjs} +1 -1
- package/dist/{OrbitControls-BoibflsJ.js → OrbitControls-CIInWJog.js} +1 -1
- package/dist/{OrbitControls-5sc4QVTb.cjs → OrbitControls-D7ENpunL.cjs} +1 -1
- package/dist/{URDFLoader-DRuMHEEY.js → URDFLoader-KWmrVx3h.js} +2 -2
- package/dist/{URDFLoader-DRsgdo2h.cjs → URDFLoader-ZNkXTFDG.cjs} +1 -1
- package/dist/{animationData-CQMP2Ry7.cjs → animationData-9UtaGYaZ.cjs} +1 -1
- package/dist/{animationData-Dcqbb7R7.js → animationData-AtWrsTvx.js} +1 -1
- package/dist/{array-CxvkAZo4.js → array-CATO5Q6T.js} +1 -1
- package/dist/{array-CsHTx87c.cjs → array-DfNjR0Qy.cjs} +1 -1
- package/dist/{iconfont-pGGINDaV.js → iconfont-CUOKY8wo.js} +2 -2
- package/dist/{iconfont-ufNSJ4gS.cjs → iconfont-U_cmKvyB.cjs} +1 -1
- package/dist/{index-CNjPIOkS.js → index-0IFTdOV8.js} +4 -4
- package/dist/{index-BTyVbfKd.cjs → index-B0lL5Vdy.cjs} +1 -1
- package/dist/{index-DujL6LbU.cjs → index-B52lJ3Ug.cjs} +1 -1
- package/dist/{index-DuFT4qcP.js → index-B69WOtXS.js} +16 -16
- package/dist/{index-5VP_0_pi.js → index-BOX5TGPv.js} +1 -1
- package/dist/{index-B-Ej5IDW.js → index-BPyk3UIE.js} +8 -8
- package/dist/{index-CGrundmL.cjs → index-BSnfRMZW.cjs} +1 -1
- package/dist/{index-DLxfEoby.js → index-BTR-xG0v.js} +1 -1
- package/dist/{index-CWXuROYc.js → index-Be9ofpB5.js} +1 -1
- package/dist/{index-BbLk6uGT.cjs → index-BecXuN38.cjs} +1 -1
- package/dist/{index-C-qlninE.js → index-ByrRF4uT.js} +3 -3
- package/dist/{index-DaODLF_y.cjs → index-C4h-dVEe.cjs} +1 -1
- package/dist/{index-ihmYWPUh.cjs → index-CAlMVMU_.cjs} +1 -1
- package/dist/{index-rkfjo_Gm.cjs → index-CB2c5ESn.cjs} +1 -1
- package/dist/{index-BReH9GpA.js → index-CDW9opLV.js} +4 -4
- package/dist/{index-C4Xg2c1m.js → index-CMsqZu-f.js} +1 -1
- package/dist/{index-i0NBWOoH.js → index-CN-NFjlN.js} +2 -2
- package/dist/{index-BxANp3fw.cjs → index-CffEdIhY.cjs} +1 -1
- package/dist/{index-CPaYwx5E.js → index-CluLZeK5.js} +2 -2
- package/dist/{index-exLt4yWh.js → index-CxVSFkzd.js} +1 -1
- package/dist/{index-AuhjxS2n.js → index-Cz2PyWsi.js} +4 -4
- package/dist/{index-DIdbFs9X.js → index-D38I7nZo.js} +1 -1
- package/dist/index-DCYFKE13.cjs +1 -0
- package/dist/{index-Wx_-zVEz.cjs → index-DHW5e_u_.cjs} +1 -1
- package/dist/{index-Cj17H0fw.cjs → index-DKeLuZIo.cjs} +1 -1
- package/dist/index-DMZt8ROM.js +2878 -0
- package/dist/{index-DVGqxAo1.cjs → index-DRL2SPEo.cjs} +1 -1
- package/dist/{index-J8TtNgq3.cjs → index-DTuRU8za.cjs} +1 -1
- package/dist/{index-BrbfK-gl.cjs → index-Dd3ofxbk.cjs} +1 -1
- package/dist/{index-BCr2tuwq.js → index-Ds0IFjwu.js} +1 -1
- package/dist/{index-BPq4kmwU.js → index-DtCpetgB.js} +1 -1
- package/dist/{index-DZxw71DQ.cjs → index-Dv5U7UHo.cjs} +1 -1
- package/dist/{index-VIc9HRPP.js → index-DzqEIEfs.js} +1 -1
- package/dist/{index-WI99pZuH.cjs → index-I9nYBweF.cjs} +1 -1
- package/dist/{index-7um03liv.cjs → index-Otnitd83.cjs} +1 -1
- package/dist/{index-1rJKDlxZ.cjs → index-UH73jPSH.cjs} +1 -1
- package/dist/{index-TL4pAA-u.js → index-kP_CVzzK.js} +1 -1
- package/dist/{index-BiNYM61q.js → index-m5CO_eOy.js} +7 -7
- package/dist/{index-ZQwYery3.cjs → index-o4iJ58d0.cjs} +1 -1
- package/dist/{index-Bs4AjJ09.js → index-rC2K3Bzj.js} +1 -1
- package/dist/{index-kG_zc7AB.cjs → index-sZDWq1eU.cjs} +1 -1
- package/dist/{index-Sx_xn72K.js → index-sawDaaXq.js} +3 -3
- package/dist/{index-BZyBjkTm.cjs → index-u7d75s7T.cjs} +1 -1
- package/dist/{index-B_vmEsjH.cjs → index-vB3AblAt.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BKBrtzw6.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BcCwZRas.js} +7488 -7453
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-B3yzycJI.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DlpiRV_h.cjs} +11 -11
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C0v0KFdG.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BMVxMU7L.cjs} +149 -149
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CoE66bK1.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-UNe6-w-O.js} +10032 -10016
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-aohz5G9I.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-8v2JVeca.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Cf3tVnf3.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-AgWRuXVC.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-DmlfCkWq.cjs → index.vue_vue_type_style_index_1_lang-C1z71r3A.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-BlJX3s3k.js → index.vue_vue_type_style_index_1_lang-DqwucUxZ.js} +3 -3
- package/dist/{main-RiReisGA.js → main-CHjImz22.js} +3 -3
- package/dist/{main-C8AwB8hx.cjs → main-kIoRHR7Y.cjs} +1 -1
- 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-8KR0tSK_.js → threeModel-B7dMmL7L.js} +4 -4
- package/dist/{threeModel-D8uQOcZJ.cjs → threeModel-DhMeqTnZ.cjs} +1 -1
- package/dist/{threePreview-T8g8N9vx.js → threePreview-C7hIZVal.js} +3 -3
- package/dist/{threePreview-B0fRdL1U.cjs → threePreview-CloRtEyk.cjs} +1 -1
- package/dist/{threeSceneView-Cij2WoyK.cjs → threeSceneView-0NHz_iE7.cjs} +1 -1
- package/dist/{threeSceneView-B3-E-dSj.js → threeSceneView-DfL2muQG.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-D3SzrmQ1.cjs → threeSceneViewForCPMPIP-DKqP4yRh.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-B5dq9RkB.js → threeSceneViewForCPMPIP-DOcbIW0k.js} +7 -7
- package/dist/{threeTrackPathView-CfNlwHLQ.cjs → threeTrackPathView-BADN-C5w.cjs} +1 -1
- package/dist/{threeTrackPathView-C-AVXDKd.js → threeTrackPathView-BBGLRj2K.js} +3 -3
- package/dist/{threeViewerHost-CrjrxJI5.js → threeViewerHost-Cvy-AzyZ.js} +2 -2
- package/dist/{threeViewerHost-xe_Xn9SW.cjs → threeViewerHost-DmUYNEfj.cjs} +1 -1
- package/dist/{urdfTree-CWxkEb_j.js → urdfTree-CeIoAIYI.js} +1 -1
- package/dist/{urdfTree-p76qhqlU.cjs → urdfTree-Cf5fPKfb.cjs} +1 -1
- package/dist/{workpieceTreePanel-CzVWLxJ2.js → workpieceTreePanel-Bjf8fR7u.js} +4 -4
- package/dist/{workpieceTreePanel-BZ-a61Q8.cjs → workpieceTreePanel-CDnC5lGB.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-DUun0LWK.cjs +0 -1
- package/dist/index-vrk6oShs.js +0 -2878
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BMVxMU7L.cjs");const c=require("./index-C8qRkCgn.cjs"),r=require("./index-DeBHVrj0.cjs"),i=require("./index-DCYFKE13.cjs"),y=r.useModelComp(),{itemData:g}=c.storeToRefs(y),p=o.ref(0),D=o.ref([{label:"机构名称",value:"",name:"deptName"}]),f=e=>{console.log("handleQueryChange",e)},u=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"机构名称",prop:"deptName"},{label:"机构类型",prop:"deptType",formType:"Select",options:[{label:"集团",value:"集团"},{label:"公司",value:"公司"},{label:"部门",value:"部门"},{label:"区域",value:"区域"},{label:"组",value:"组"}]},{label:"机构状态",formType:"Radio",prop:"deptStatus",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"操作"}]},{key:"tableContents",contents:[]}]),m=e=>{r.submitTableAsyncByVerify(e.singleContent,e.buttonName,p.value)},h=e=>{console.log("onDoubleClick",e)},C=(e,a)=>{console.log("onButtonClick",e,a)},_=async e=>{const a=await r.handleSubmitAsync(c.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),l=a==null?void 0:a.map(t=>{var n;return{id:t.id,tableData:(n=t==null?void 0:t.value)==null?void 0:n.tableData}});return l==null?void 0:l.map(t=>{var n;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(n=t==null?void 0:t.tableData)==null||n.forEach((d,b)=>{s[`a${b}`]=d}),s}else return{...t.tableData,id:t.id}})},S={comp:"Group",name:"/系统管理/部门管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:u.value,name:""}]}]};o.watch(()=>g.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(u.value=(a=e==null?void 0:e[0])==null?void 0:a.compData)});const k=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:_,handleItemDataChange:m,handleQueryChange:f,onButtonClick:C,onDoubleClick:h,pageData:u,queryFormData:D,structureId:p,tempDeptPageData:S},Symbol.toStringTag,{value:"Module"})),v={class:"role-wrapper"},T=o.defineComponent({__name:"index",setup(e){const a=o.reactive({...k}),l=r.useMenuState(),{activeMenuPath:t}=c.storeToRefs(l);return o.onMounted(async()=>{a.structureId=await r.getActivePageStructureId(t.value)}),(n,s)=>(o.openBlock(),o.createElementBlock("div",v,[o.createVNode(i.ssTable,{itemData:a.pageData,onChange:a.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=T;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { resolveComponent as PA, createBlock as tA, openBlock as l, withCtx as P, createElementVNode as u, toDisplayString as dA, ref as C, onMounted as rn, watch as kA, createElementBlock as X, Fragment as hA, renderList as GA, createCommentVNode as D, normalizeStyle as Ke, defineComponent as dn, resolveDynamicComponent as he, unref as A, computed as RA, provide as Fe, resolveDirective as Vn, withDirectives as ee, createVNode as a, vShow as ye, createTextVNode as ne, renderSlot as ke, normalizeClass as He, onUnmounted as ct, createSlots as ut } from "vue";
|
|
2
|
-
import { m as Qn, a as Xn, b as On } from "./index-
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-
|
|
2
|
+
import { m as Qn, a as Xn, b as On } from "./index-0IFTdOV8.js";
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-8v2JVeca.js";
|
|
4
4
|
import { _ as Ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import { _ as st, a as gt, b as rt, e as dt, s as Pt } from "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-
|
|
5
|
+
import { _ as st, a as gt, b as rt, e as dt, s as Pt } from "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BcCwZRas.js";
|
|
6
6
|
import { c as fn, p as QA, s as iA, u as jn, b as Ee, g as ue, d as qn, E as oe, e as Tn, f as Ct } from "./index-BgE_6FYY.js";
|
|
7
7
|
import { a as ln, u as vn } from "./index-D_qR3hDI.js";
|
|
8
8
|
import { S as wA } from "./index-BHtNKL1L.js";
|
|
9
|
-
import { a as Re, s as se, b as ot, c as Et, r as HA, o as Se, d as Le, e as _n, f as $n, h as At, i as En, j as et, k as It, t as it, l as Ge, m as Pn, n as Cn, p as Ve, q as un, u as qe, v as _e, w as $e, x as An, y as en, z as sn, D as Bt, A as zt, B as Qt, C as Yn, E as Gn, F as YA, G as Xt, H as Ot, I as nt } from "./index-
|
|
10
|
-
import { a as jt } from "./array-
|
|
11
|
-
import { u as yn, d as nn, g as we, a as tt, b as tn, c as yt, l as Ht, e as wt, f as ft } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
12
|
-
import { u as Hn, a as lt } from "./index-
|
|
13
|
-
import "./index.vue_vue_type_style_index_1_lang-
|
|
9
|
+
import { a as Re, s as se, b as ot, c as Et, r as HA, o as Se, d as Le, e as _n, f as $n, h as At, i as En, j as et, k as It, t as it, l as Ge, m as Pn, n as Cn, p as Ve, q as un, u as qe, v as _e, w as $e, x as An, y as en, z as sn, D as Bt, A as zt, B as Qt, C as Yn, E as Gn, F as YA, G as Xt, H as Ot, I as nt } from "./index-BPyk3UIE.js";
|
|
10
|
+
import { a as jt } from "./array-CATO5Q6T.js";
|
|
11
|
+
import { u as yn, d as nn, g as we, a as tt, b as tn, c as yt, l as Ht, e as wt, f as ft } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-UNe6-w-O.js";
|
|
12
|
+
import { u as Hn, a as lt } from "./index-DMZt8ROM.js";
|
|
13
|
+
import "./index.vue_vue_type_style_index_1_lang-DqwucUxZ.js";
|
|
14
14
|
import "./index-Bmtw8a5p.js";
|
|
15
15
|
import { useRouter as bt } from "vue-router";
|
|
16
|
-
import kt from "./index-
|
|
17
|
-
import { C as xt } from "./index-
|
|
18
|
-
import pt from "./threeModel-
|
|
16
|
+
import kt from "./index-CluLZeK5.js";
|
|
17
|
+
import { C as xt } from "./index-CMsqZu-f.js";
|
|
18
|
+
import pt from "./threeModel-B7dMmL7L.js";
|
|
19
19
|
import { _ as be } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
20
|
-
import { s as gn } from "./index-
|
|
21
|
-
import { T as In, u as mt, a as Jt } from "./threeViewerHost-
|
|
22
|
-
import { _ as Bn } from "./index-
|
|
23
|
-
import { s as zn } from "./index-
|
|
20
|
+
import { s as gn } from "./index-DzqEIEfs.js";
|
|
21
|
+
import { T as In, u as mt, a as Jt } from "./threeViewerHost-Cvy-AzyZ.js";
|
|
22
|
+
import { _ as Bn } from "./index-Cz2PyWsi.js";
|
|
23
|
+
import { s as zn } from "./index-ByrRF4uT.js";
|
|
24
24
|
import { T as Fn } from "./svgIcon-D-_fXUBL.js";
|
|
25
25
|
import { t as St, c as Lt, b as ht } from "./index-CAPx0_D4.js";
|
|
26
26
|
import { v as Rt } from "./index-BRjEFy0A.js";
|
|
27
|
-
import { f as Kt, a as Dt } from "./animationData-
|
|
27
|
+
import { f as Kt, a as Dt } from "./animationData-AtWrsTvx.js";
|
|
28
28
|
const Nt = { class: "menu-title" };
|
|
29
29
|
function Wt(W, XA, v, T, cA, EA) {
|
|
30
30
|
const z = PA("ssMenu");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as l, watch as m, defineComponent as b, reactive as y, onMounted as g, createElementBlock as D, openBlock as f, createVNode as i } from "vue";
|
|
2
|
-
import { s as h } from "./index-
|
|
2
|
+
import { s as h } from "./index-DMZt8ROM.js";
|
|
3
3
|
import { g as C, s as c } from "./index-BgE_6FYY.js";
|
|
4
4
|
import { ae as k, ad as _, a as S, u as A, af as T } from "./index-D_qR3hDI.js";
|
|
5
5
|
const B = S(), { itemData: I } = c(B), u = l(0), P = l([
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { b as No, a as Wo, f as Ho, g as Vo, u as qo, s as Go } from "./index-
|
|
1
|
+
import { b as No, a as Wo, f as Ho, g as Vo, u as qo, s as Go } from "./index-DMZt8ROM.js";
|
|
2
2
|
import { computed as qt, ref as he, watch as _t, onUnmounted as Xo, resolveComponent as jt, createElementBlock as ut, openBlock as Me, createVNode as Fe, createBlock as Ot, createCommentVNode as ha, withCtx as Ve, createElementVNode as fe, Fragment as Yt, renderList as ta, toDisplayString as bt, nextTick as Ga, createTextVNode as Bt, defineComponent as ya, resolveDynamicComponent as Ya, onMounted as vn, unref as Rt, reactive as Pa, renderSlot as $n, createSlots as Yo, mergeProps as wr, normalizeStyle as dn, withModifiers as Hn, defineAsyncComponent as Jo, defineProps as Qo, getCurrentInstance as Zo, inject as Il, shallowRef as es, toRef as ts, onBeforeMount as _r, watchEffect as as, onBeforeUnmount as Cr, normalizeClass as Al, getCurrentScope as ns, onScopeDispose as is, provide as Ol, toRefs as zl, withDirectives as ls, vShow as rs } from "vue";
|
|
3
3
|
import { bO as os, k as di, bP as ss, bQ as us, bR as cs, s as Qt, p as Zt, u as hi, c as y, E as Gt, b as Xi, g as aa, d as fn, bK as hn, bI as Yn, e as ja, bJ as Yi, f as pl, bS as ds, bT as fs, bN as ps } from "./index-BgE_6FYY.js";
|
|
4
|
-
import { c as fa, a as hl, d as Sr, E as Dr, e as Er, f as hs, b as Tr } from "./index-
|
|
5
|
-
import { u as Li, F as vs, A as Ji, I as Qi, g as ea, S as gs, B as vl, C as Zi, D as ga, E as qn, G as ln, H as Bn, J as Ni, l as ys, K as ms, L as bs, M as Pl, N as ii, O as ks, P as wi, a as Rl, z as Ir, Q as xs, R as ws, T as _s, U as Cs, V as Ss, n as Ds } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
6
|
-
import { s as va } from "./index-
|
|
7
|
-
import { a as Es, T as Ts } from "./threeViewerHost-
|
|
4
|
+
import { c as fa, a as hl, d as Sr, E as Dr, e as Er, f as hs, b as Tr } from "./index-Cz2PyWsi.js";
|
|
5
|
+
import { u as Li, F as vs, A as Ji, I as Qi, g as ea, S as gs, B as vl, C as Zi, D as ga, E as qn, G as ln, H as Bn, J as Ni, l as ys, K as ms, L as bs, M as Pl, N as ii, O as ks, P as wi, a as Rl, z as Ir, Q as xs, R as ws, T as _s, U as Cs, V as Ss, n as Ds } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-UNe6-w-O.js";
|
|
6
|
+
import { s as va } from "./index-DzqEIEfs.js";
|
|
7
|
+
import { a as Es, T as Ts } from "./threeViewerHost-Cvy-AzyZ.js";
|
|
8
8
|
import { a as Cn, u as Kn, E as Xa, ac as Is } from "./index-D_qR3hDI.js";
|
|
9
9
|
import { _ as na } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
import { i as Bl } from "./isString-Bb0EYAKj.js";
|
|
11
11
|
import { _ as $l } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
12
|
-
import { a as As, s as Os } from "./index-
|
|
12
|
+
import { a as As, s as Os } from "./index-ByrRF4uT.js";
|
|
13
13
|
import Ar from "./index-rlStojTL.js";
|
|
14
|
-
import { s as zs } from "./index-
|
|
14
|
+
import { s as zs } from "./index-rC2K3Bzj.js";
|
|
15
15
|
import { S as Ps } from "./index-BHtNKL1L.js";
|
|
16
16
|
import { useRouter as Rs } from "vue-router";
|
|
17
17
|
import { a as Bs, e as $s, f as Ls, g as Ms, h as Fs } from "./index-CAPx0_D4.js";
|
|
@@ -7134,7 +7134,7 @@ function Qf() {
|
|
|
7134
7134
|
}(Ai)), Ai.exports;
|
|
7135
7135
|
}
|
|
7136
7136
|
Qf();
|
|
7137
|
-
const tl = Jo(() => import("./index-
|
|
7137
|
+
const tl = Jo(() => import("./index-Cz2PyWsi.js").then((a) => a.i));
|
|
7138
7138
|
tl.install = (a) => {
|
|
7139
7139
|
a.component("ssMenu", tl);
|
|
7140
7140
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const e=require("vue"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BMVxMU7L.cjs"),a=require("./index-C8qRkCgn.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),T="ElUpload";class R 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 R(i,l.status,o.method,r)}function U(r){const o=r.responseText||r.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}const D=r=>{typeof XMLHttpRequest>"u"&&a.throwError(T,"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(U(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))a.isNil(c)||o.setRequestHeader(t,String(c));return o.send(i),o},b=["text","picture","picture-card"];let L=1;const N=()=>Date.now()+L++,x=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:b,default:"text"},httpRequest:{type:a.definePropType(Function),default:D},disabled:Boolean,limit:Number}),F=a.buildProps({...x,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)}}),j={style:{"text-align":"left"}},A={class:"cropper-warp"},q={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 B.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(),V=async s=>{var u;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s.raw),(u=t.cropper)==null||u.replace(t.cropperImg)},S=s=>{p.value.clearFiles();const n=s[0];n.uid=N(),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"),I=e.resolveComponent("el-upload"),k=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(k,{modelValue:t.isShowDialog,"onUpdate:modelValue":n[0]||(n[0]=O=>t.isShowDialog=O),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(I,{class:"avatar-uploader",ref_key:"uploadSignRef",ref:p,accept:".jpg,.png",limit:1,"show-file-list":!1,"auto-upload":!1,"on-change":V,"on-exceed":S},{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",A,[e.createElementVNode("div",q,[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"])])}}}),E=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(E,{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)}}}),P=C._export_sfc(Y,[["__scopeId","data-v-82946fb9"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"}));exports.CropperDialog=E;exports.genFileId=N;exports.index=Z;exports.ssAvatar=P;exports.uploadBaseProps=x;exports.uploadListTypes=b;exports.uploadProps=F;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as z, reactive as R, onMounted as T, watch as A, nextTick as U, resolveComponent as i, createElementBlock as k, openBlock as u, createVNode as c, withCtx as l, createElementVNode as _, toDisplayString as g, Fragment as v, renderList as B, createBlock as b, createTextVNode as f, withDirectives as I, vShow as P } from "vue";
|
|
2
|
-
import { s as E } from "./index-
|
|
2
|
+
import { s as E } from "./index-DMZt8ROM.js";
|
|
3
3
|
import { u as F, ah as x } from "./index-D_qR3hDI.js";
|
|
4
4
|
import { s as O, c as H } from "./index-BgE_6FYY.js";
|
|
5
5
|
import { _ as L } 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-B5J3L2e2.js";
|
|
3
|
-
import { s as _ } from "./index-
|
|
3
|
+
import { s as _ } from "./index-DMZt8ROM.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";const e=require("vue"),I=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),I=require("./index-BSnfRMZW.cjs"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BMVxMU7L.cjs"),x=require("./index-C8qRkCgn.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-CffEdIhY.cjs"),k=require("./index-BpPyaNFa.cjs"),N={class:"avatar-model-wrap"},V={key:0},E=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},size:{type:[String,Number],default:"large"},userInfo:{type:Object,default:{}},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage"],setup(i,{emit:b}){const s=i,u=b,h=e.computed(()=>"http://222.92.178.198:62001"),d=e.ref(""),p=e.ref(""),_=e.ref();e.watch(()=>{var o;return(o=s.userInfo)==null?void 0:o.头像},o=>{p.value=h.value+"/"+o},{immediate:!0});const w=async()=>{if(!(s!=null&&s.disabled))try{const o=await B.downloadAvatarApi({url:d.value});if(o.status!==200)throw new Error(`HTTP error! status: ${o.status}`);const f=new Blob([o.data],{type:o.headers["content-type"]});_.value=f}catch(o){throw new Error(o)}},S=async o=>{var f,g,t,n,c;try{const r=await B.uploadFile(o);((f=r==null?void 0:r.data)==null?void 0:f.code)===200&&(p.value=h.value+"/"+((t=(g=r.data)==null?void 0:g.result)==null?void 0:t.url),d.value=(c=(n=r.data)==null?void 0:n.result)==null?void 0:c.url,u("submitImage",d.value))}catch(r){x.ElMessage.error(r)}},y=async()=>{try{if(!p.value)return}catch(o){x.ElMessage.error(o)}};return(o,f)=>{var g,t;return e.openBlock(),e.createElementBlock("div",N,[e.createVNode(I.ssAvatar,{avatarUrl:p.value,avatarBlob:_.value,size:i.size,onClickAvatar:w,onSubmitImage:S,onDeleteImage:y,clickStop:s==null?void 0:s.clickStop},{avatarDefault:e.withCtx(()=>{var n,c,r,l;return[e.createTextVNode(e.toDisplayString(((c=(n=i.userInfo)==null?void 0:n.account)==null?void 0:c.charAt(0))||((l=(r=i.userInfo)==null?void 0:r.姓名)==null?void 0:l.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size","clickStop"]),i.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",V,e.toDisplayString(((g=i.userInfo)==null?void 0:g.account)||((t=i.userInfo)==null?void 0:t.账号)||"未知"),1))])}}}),T=C._export_sfc(E,[["__scopeId","data-v-747bdfb7"]]),U=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(i,{emit:b}){const s=i,u=e.ref({}),h=e.ref([]),d=b,p=t=>{u.value.dialogShow=(t==null?void 0:t.label)==="电子签名",d("clickSignButton",t)},_=()=>{u.value.dialogShow=!1,d("beforeDestroy")},w=e.computed(()=>"http://222.92.178.198:62001"),S=t=>{var a;const n=t.split(","),c=(a=n==null?void 0:n[0])==null?void 0:a.match(/:(.*?);/)[1],r=atob(n[1]);let l=r.length;const v=new Uint8Array(l);for(;l--;)v[l]=r.charCodeAt(l);return new Blob([v],{type:c})},y=async t=>{var n,c,r;try{const l=await B.uploadFile(t);((n=l==null?void 0:l.data)==null?void 0:n.code)===200&&d("clickSubmitSign",(r=(c=l.data)==null?void 0:c.result)==null?void 0:r.url)}catch(l){x.ElMessage.error(l)}},o=e.ref(""),f=t=>{o.value=t,u.value.dialogShow=!1;const n=new FormData,c=S(t);n.append("file",c,"image.png"),y(n)},g=t=>{const n=new FormData;n.append("file",t==null?void 0:t.file),y(n)};return e.watch(()=>s==null?void 0:s.itemData,t=>{var c,r,l,v;o.value="",(c=u.value)!=null&&c.dialogShow&&(u.value.dialogShow=!1);const n=(r=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:r.contents;n&&Object.keys(n).forEach(a=>{(n[a]===void 0||n[a]===null||n[a]==="")&&delete n[a]}),u.value=(l=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:l.contents,h.value=(v=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signTypeList"))==null?void 0:v.contents},{immediate:!0}),(t,n)=>{const c=e.resolveComponent("el-empty"),r=e.resolveComponent("el-image"),l=e.resolveComponent("el-button"),v=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(A.Signature,{signPadInfo:u.value,onBeforeDestroy:_,onClickSubmitSign:f},{signatureRender:e.withCtx(()=>{var a,m;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(a=u.value)==null?void 0:a.signPadWidth}%`})},[e.createVNode(r,{src:o.value?o.value:w.value+"/"+((m=i.userInfo)==null?void 0:m.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(c,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,a=>{var m;return e.openBlock(),e.createElementBlock("div",{key:a.label,class:"signature-button"},[(m=a.label)!=null&&m.includes("上传")?(e.openBlock(),e.createBlock(v,{key:0,ref_for:!0,ref:"uploadRef","http-request":g,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(l,{disabled:a.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(l,{key:1,id:"themeButton",disabled:a.disabled,onClick:$=>p(a)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),q=C._export_sfc(U,[["__scopeId","data-v-ce5a2314"]]);exports.ssAvatar=T;exports.ssSignature=q;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as F, computed as N, ref as p, watch as $, 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 { s as H } from "./index-
|
|
3
|
-
import { d as M, c as P } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
2
|
+
import { s as H } from "./index-CMsqZu-f.js";
|
|
3
|
+
import { d as M, c as P } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-UNe6-w-O.js";
|
|
4
4
|
import { E as z } from "./index-BgE_6FYY.js";
|
|
5
5
|
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { S as W } from "./index-
|
|
6
|
+
import { S as W } from "./index-Cz2PyWsi.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 l=require("vue"),u=require("./index-C8qRkCgn.cjs"),_=require("./index-DeBHVrj0.cjs"),C=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-C8qRkCgn.cjs"),_=require("./index-DeBHVrj0.cjs"),C=require("./index-DCYFKE13.cjs"),r=require("./index-BbzUzdxF.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=_.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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./index-DCYFKE13.cjs"),h=require("./index-DeBHVrj0.cjs"),g=require("./index-C8qRkCgn.cjs"),B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w={class:"routerPage-wrapper"},N={class:"role-dialog-header"},b=["title"],D={title:"更多"},y={class:"dialog-footer"},S=e.defineComponent({__name:"index",setup(T){const _=h.useMenuState(),{menus:C,activeMenuPath:k}=g.storeToRefs(_),o=e.reactive({...h.State$1}),{treeRef:x}=h.State$1;e.onMounted(async()=>{await o.getActivePageStructureId(k.value)});const u=i=>i==null?void 0:i.map(t=>{var c,s,d;return t!=null&&t.childMenus&&((c=t==null?void 0:t.childMenus)==null?void 0:c.length)>0?{...t,childMenus:[],children:u(t==null?void 0:t.childMenus)}:{...t,childMenus:[],path:(s=t==null?void 0:t.path)!=null&&s.startsWith("/")?(d=t==null?void 0:t.path)==null?void 0:d.substring(1):t.path}});return e.watch(()=>C.value,i=>{e.nextTick(()=>{const t=g.cloneDeep(i),c=u(t);o.tempSysMenus=o.handleAddSysMenusButtons(c,"系统维护",["查看"]),o.menuData=o.addButtonsToTree(c,o.structureButtons)})},{immediate:!0,deep:!0}),(i,t)=>{const c=e.resolveComponent("el-checkbox"),s=e.resolveComponent("el-checkbox-group"),d=e.resolveComponent("svg-icon"),f=e.resolveComponent("el-popover"),m=e.resolveComponent("el-tree"),p=e.resolveComponent("el-button"),v=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",w,[e.createVNode(V.ssTable,{index:o.structureId,compName:o.compName,itemData:o.pageDataFiltered,changedContent:o.changedRow,onChange:o.handleItemDataChange,onOnButtonClick:o.clickRowButton},null,8,["index","compName","itemData","changedContent","onChange","onOnButtonClick"]),e.createVNode(v,{modelValue:o.authorizeDialog.show,"onUpdate:modelValue":t[0]||(t[0]=a=>o.authorizeDialog.show=a),width:o.authorizeDialog.width,draggable:o.authorizeDialog.draggable,"before-close":o.closeAuthorizeDialog,class:"role-dialog"},{header:e.withCtx(()=>[e.createElementVNode("div",N,e.toDisplayString(o.authorizeDialog.title),1)]),footer:e.withCtx(()=>[e.createElementVNode("div",y,[e.createVNode(p,{id:"themeBorderButton",onClick:o.closeAuthorizeDialog},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(p,{id:"themeButton",onClick:o.clickSubmitAuthority},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),default:e.withCtx(()=>[e.createVNode(m,{class:"role-tree",ref_key:"treeRef",ref:x,data:o.menuData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"title",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"show-checkbox":"",onCheckChange:o.handleNodeCheckChange,style:{height:"500px","overflow-y":"auto"}},{default:e.withCtx(({node:a,data:n})=>[e.createElementVNode("span",{class:"node-text",title:a==null?void 0:a.label},e.toDisplayString(a==null?void 0:a.label),9,b),e.createVNode(s,{modelValue:n.checkedButtons,"onUpdate:modelValue":l=>n.checkedButtons=l,onChange:l=>o.handleNodeBtnChange(l,n),class:"node-buttons"},{default:e.withCtx(()=>{var l;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((l=n.renderButtons)==null?void 0:l.slice(0,2),r=>(e.openBlock(),e.createBlock(c,{key:r.title,label:r.title,value:r.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),e.createVNode(f,{title:a==null?void 0:a.label,placement:"right-start"},{reference:e.withCtx(()=>{var l;return[e.createElementVNode("span",D,[e.withDirectives(e.createVNode(d,{name:"treeMore",class:"node-trigger"},null,512),[[e.vShow,((l=n.renderButtons)==null?void 0:l.length)>0]])])]}),default:e.withCtx(()=>[e.createVNode(s,{modelValue:n.checkedButtons,"onUpdate:modelValue":l=>n.checkedButtons=l,onChange:l=>o.handleNodeBtnChange(l,n),class:"node-buttons"},{default:e.withCtx(()=>{var l;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((l=n.renderButtons)==null?void 0:l.slice(2),r=>(e.openBlock(),e.createBlock(c,{key:r.title,label:r.title,value:r.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["title"])]),_:1},8,["data","onCheckChange"])]),_:1},8,["modelValue","width","draggable","before-close"])])}}}),M=B._export_sfc(S,[["__scopeId","data-v-78a46dd8"]]);exports.default=M;
|