ss-component-new 1.3.409 → 1.3.410
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/{array-B6umvCxZ.cjs → array-Cha39xM6.cjs} +1 -1
- package/dist/{array-Bb2dOJbR.js → array-Dys7VLWR.js} +2 -2
- package/dist/{index-CYxYlQS5.cjs → index-BdB_gtG7.cjs} +1 -1
- package/dist/{index-pOjpg4hg.cjs → index-BdrcwRuz.cjs} +1 -1
- package/dist/{index-S-IhYX7W.js → index-BeJWnCYb.js} +1 -1
- package/dist/{index-BylC9YoM.js → index-BiDpUeyH.js} +2 -2
- package/dist/{index-Cbe7vlim.cjs → index-BkwrtAxO.cjs} +1 -1
- package/dist/{index-Dm2N4Vf4.cjs → index-CQMka9SB.cjs} +1 -1
- package/dist/{index-VhZr_1Tu.js → index-CR6LDckP.js} +1 -1
- package/dist/{index-CQYLR8_m.js → index-CSY1QMTm.js} +1 -1
- package/dist/{index-Dh-84yey.js → index-Cf1T8XE8.js} +2 -2
- package/dist/{index-DgrfgLC6.js → index-CjJOx30O.js} +1 -1
- package/dist/{index-BQuKeSPB.js → index-CpsLNAeh.js} +1 -1
- package/dist/{index-ClxeNOd2.cjs → index-Cyu6US-i.cjs} +1 -1
- package/dist/{index-Z17IDEu6.cjs → index-D2tukDzU.cjs} +12 -12
- package/dist/{index-jNoR6Asf.cjs → index-D3JyJaqe.cjs} +3 -3
- package/dist/{index-lHvCuL5r.cjs → index-D4eu__Yn.cjs} +1 -1
- package/dist/{index-BDiybNFF.js → index-D5qn7fQf.js} +3 -3
- package/dist/{index-DTQTebVI.js → index-D69bgapb.js} +1068 -1039
- package/dist/{index-DTqGjl2S.js → index-DQ18HE2h.js} +1279 -1250
- package/dist/{index-muqD0eXH.js → index-DWUtKrwU.js} +7 -7
- package/dist/{index-BDrm_57d.cjs → index-DoiXH2rC.cjs} +1 -1
- package/dist/{index-BdmyJI_x.js → index-DtipvYqE.js} +2 -2
- package/dist/{index-e8xW0Z71.cjs → index-DvGv6v-7.cjs} +1 -1
- package/dist/{index-D2dXKfmG.cjs → index-I3cQs7UV.cjs} +1 -1
- package/dist/{index-C1SVK9wn.cjs → index-QqbAzGH-.cjs} +1 -1
- package/dist/{main-BrAb8Oip.cjs → main-BEVEsk-J.cjs} +1 -1
- package/dist/{main-DnTmNfMl.js → main-ECXyu20n.js} +2 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +5 -5
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-BPqLLEvN.js → threeModel-B39fS-u9.js} +1 -1
- package/dist/{threeModel-Bzc5i4ZX.cjs → threeModel-DFI-IHsP.cjs} +1 -1
- package/dist/{threeSceneView-DYsNNt9R.cjs → threeSceneView-B2VcK9_J.cjs} +1 -1
- package/dist/{threeSceneView-D3HzuHHA.js → threeSceneView-eSZsaLgM.js} +3 -3
- package/dist/{threeSceneViewForCPMPIP-B6t5i-qP.cjs → threeSceneViewForCPMPIP-2y5Idg9B.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-HQL03g8l.js → threeSceneViewForCPMPIP-CHaRwedh.js} +1 -1
- package/dist/{threeViewerHost-CJjscpvd.js → threeViewerHost-Dst4tNF9.js} +1 -1
- package/dist/{threeViewerHost-B-X1PvV9.cjs → threeViewerHost-j0VzO7yY.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { computed as Al, defineComponent as _l, defineProps as Qt, ref as P, watch as yl, onMounted as Wl, onUnmounted as ot, resolveComponent as ie, createBlock as ge, openBlock as f, withCtx as o, createElementVNode as Q, toDisplayString as il, createElementBlock as ne, Fragment as tl, renderList as pl, createCommentVNode as Re, normalizeStyle as El, createVNode as s, unref as n, resolveDynamicComponent as ia, provide as lt, shallowRef as rs, resolveDirective as it, withDirectives as Yl, vShow as fa, createTextVNode as dl, renderSlot as ql, normalizeClass as Ql, createSlots as mt, mergeProps as Tn, withModifiers as Vl, defineAsyncComponent as un, reactive as Pl, nextTick as Jl, withKeys as cs } from "vue";
|
|
2
|
-
import { m as Nt, a as Kt, b as qt, c as us } from "./array-
|
|
3
|
-
import { _ as rt, s as Wt, a as ds } from "./index-
|
|
2
|
+
import { m as Nt, a as Kt, b as qt, c as us } from "./array-Dys7VLWR.js";
|
|
3
|
+
import { _ as rt, s as Wt, a as ds } from "./index-D5qn7fQf.js";
|
|
4
4
|
import { u as jl, p as Cl, s as bl, c as kl, a as la, b as zl, h as Ea, d as wt, i as ba, j as Ct, k as ps, E as Ca, m as Et, n as at, v as tt, o as Bn, q as fs, r as En, g as vs, t as Ht, w as ya, x as dn, y as hs, z as Dn, A as gs, B as ys, C as pn, D as bs, F as Cs, G as ms } from "./index-BpMKqUU2.js";
|
|
5
5
|
import { useRouter as Da } from "vue-router";
|
|
6
6
|
import { a as ct, d as Yt, e as ut, f as dt, g as pt, h as ft, t as ws, c as ks, b as As } from "./index-C2UiLe43.js";
|
|
7
|
-
import { g as Ba, s as Ms, a as fn, _ as Dt, b as Is, c as Pn, X as _s, Q as Ss } from "./index-
|
|
7
|
+
import { g as Ba, s as Ms, a as fn, _ as Dt, b as Is, c as Pn, X as _s, Q as Ss } from "./index-D69bgapb.js";
|
|
8
8
|
import { u as Rn, g as vn, b as hn, c as Ts, a as Bs } from "./index-DUq4XELr.js";
|
|
9
9
|
import { E as Il, d as xn, b as ra, I as Es, s as aa, e as Vn, a as jn, c as Un, g as Ds, h as Ps, p as On, m as Rs, i as xs, j as Vs, f as js } from "./request-XJsZ4h2T.js";
|
|
10
10
|
import { g as Ln, b as Us, u as Jt, c as sa, d as st, o as Qn, l as Os, n as Ls, e as Qs, f as va, s as bt, t as Ns, h as Ks } from "./index-C_qJRxvA.js";
|
|
@@ -16,12 +16,12 @@ import { c as Ft, f as Ll, b as Nn, a as Hs, g as Ys, d as gn } from "./menuInde
|
|
|
16
16
|
import { _ as Nl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
import { C as Js } from "./index-BOtlxF9O.js";
|
|
18
18
|
import { S as Tl } from "./index-BHtNKL1L.js";
|
|
19
|
-
import Fs from "./threeModel-
|
|
20
|
-
import { a as Kn, b as pa, u as qn, s as na, c as yn, d as zs, r as Sl, e as ca, o as ua, f as da, h as Wn, i as Pt, j as Hn, k as zt, l as Xs, t as Gs, m as wa, n as kt, p as ht, q as ka, v as Za, w as Aa, x as Zs, y as Ma, z as Ia, A as $s, B as _a, C as $a, D as bn, E as eo, F as Cn, G as gt, H as At, I as lo, J as Xl, K as ao, L as to, M as Mt, N as no, O as so, P as oo, g as Yn, Q as io, R as mn, S as ro, T as co } from "./index-
|
|
19
|
+
import Fs from "./threeModel-B39fS-u9.js";
|
|
20
|
+
import { a as Kn, b as pa, u as qn, s as na, c as yn, d as zs, r as Sl, e as ca, o as ua, f as da, h as Wn, i as Pt, j as Hn, k as zt, l as Xs, t as Gs, m as wa, n as kt, p as ht, q as ka, v as Za, w as Aa, x as Zs, y as Ma, z as Ia, A as $s, B as _a, C as $a, D as bn, E as eo, F as Cn, G as gt, H as At, I as lo, J as Xl, K as ao, L as to, M as Mt, N as no, O as so, P as oo, g as Yn, Q as io, R as mn, S as ro, T as co } from "./index-DQ18HE2h.js";
|
|
21
21
|
import { _ as oa } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
22
22
|
import { s as ta } from "./index-BQ9pPu8K.js";
|
|
23
|
-
import { T as Rt, u as uo, a as po } from "./threeViewerHost-
|
|
24
|
-
import { s as xt } from "./index-
|
|
23
|
+
import { T as Rt, u as uo, a as po } from "./threeViewerHost-Dst4tNF9.js";
|
|
24
|
+
import { s as xt } from "./index-CSY1QMTm.js";
|
|
25
25
|
import { u as fo } from "./index-C-2J6Kku.js";
|
|
26
26
|
import { u as vo } from "./index-DH5OIznF.js";
|
|
27
27
|
import { u as Jn } from "./index-C_lmA_6J.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),_=require("./request-Dl8yi2iS.cjs"),C=require("./index-Pve69buQ.cjs"),D=require("./index-DmwxzDGW.cjs"),F=require("./JSEncrypt-IYbV4kRj.cjs"),G=require("./index-BszVYrt4.cjs"),Q=require("./index-DnvliHsl.cjs"),M=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),X=require("./index-Z17IDEu6.cjs"),U=require("./index-BpPyaNFa.cjs");function Y(r,s){const t=new F.JSEncrypt;return t.setPublicKey(s),t.encrypt(r)||""}function Z(r,s){const t=new F.JSEncrypt;return t.setPrivateKey(s),t.decrypt(r)||""}const N=C.useLoginState(C.pinia),{loginUserInfo:p,cryptoInfo:x}=C.storeToRefs(N),ee=C.useMenuState(C.pinia),{activeMenuPath:A}=C.storeToRefs(ee),R=e.ref(0),L=e.computed(()=>{var r,s,t,o,l,u,a,f,b,m,y;return[{label:"",name:"账号",prop:"账号",value:((r=p.value)==null?void 0:r.account)||(((s=p.value)==null?void 0:s.账号)??"未知")},{label:"",name:"角色名称",prop:"角色名称",value:((t=p.value)==null?void 0:t.layer)==="superAdmin"?"超级管理员":(o=p.value)==null?void 0:o.角色名称},{label:"",name:"部门名称",prop:"部门名称",value:((l=p.value)==null?void 0:l.部门名称)??"未知"},{label:"",name:"状态",prop:"状态",value:((u=p.value)==null?void 0:u.layer)==="superAdmin"?"启用":((a=p.value)==null?void 0:a.状态)??"未知"},{label:"",prop:"头像",isFormColHidden:!0,value:((f=p.value)==null?void 0:f.layer)==="superAdmin"?"启用":((b=p.value)==null?void 0:b.状态)??"未知"},{label:"",prop:"签名",isFormColHidden:!0,value:((m=p.value)==null?void 0:m.layer)==="superAdmin"?"启用":((y=p.value)==null?void 0:y.状态)??"未知"}]}),te=()=>{},V=e.ref(!1),E=e.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),T=e.ref([{label:"签字版",icon:_.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:_.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:_.upload_filled_default,type:"buttonUpload",disabled:!1}]),q=e.ref(!1),P=e.ref(!1),K=e.ref(!1),z=e.computed(()=>{var o,l,u;const r=sessionStorage.getItem("authority"),s=JSON.parse(r||""),t=(o=A.value)!=null&&o.startsWith("/")?(l=A.value)==null?void 0:l.substring(1):A.value;return Array.isArray(s)?(K.value=!(s!=null&&s.includes(`${t}/上传头像`)),(u=T.value)==null?void 0:u.map(a=>({...a,disabled:!(s!=null&&s.includes(`${t}/签名`))}))):typeof s=="string"&&(s==null?void 0:s.toUpperCase())==="SUPERADMIN"?T.value:[]}),ae=e.computed(()=>[{key:"signConfig",contents:E},{key:"signTypeList",contents:z.value}]),re=r=>{E.dialogShow=r.label==="电子签名"},O=()=>{E.dialogShow=!1},W=async r=>{var t,o,l,u,a,f,b,m,y;const s=await D.getInsofDataApi({id:r});if(((t=s==null?void 0:s.data)==null?void 0:t.code)===200&&s.data.result&&Array.isArray(s.data.result)&&s.data.result.length>0){const d={...(u=(l=(o=s.data.result)==null?void 0:o[0])==null?void 0:l.value)==null?void 0:u.tableData,id:(f=(a=s.data.result)==null?void 0:a[0])==null?void 0:f.id,layer:(y=(m=(b=s.data.result)==null?void 0:b[0])==null?void 0:m.key)==null?void 0:y.layer};N.setLoginUserInfo(d)}},j=async(r,s)=>{var o,l,u;const t=C.cloneDeep(r);t==null||delete t.id;try{const a=await D.updateInsofDataApi({id:(o=p.value)==null?void 0:o.id,value:{tableData:t}});((l=a==null?void 0:a.data)==null?void 0:l.code)===200&&(O(),_.ElMessage.success("修改成功"),await W((u=p.value)==null?void 0:u.id),await N.setLogRecordAsync({type:s,data:r},A.value))}catch{_.ElMessage.error("修改响应失败")}finally{V.value=!1,q.value=!1,P.value=!1}},se=async(r,s)=>{var l;const t=r==="avatarUrl"?"头像":"签名",o={...p.value,status:((l=p.value)==null?void 0:l.status)??"启用",[t]:s};q.value=r==="avatarUrl",P.value=r==="signature",await j(o,"图片修改")},I=e.reactive({baseCols:[],otherCols:[]}),H=e.ref([]),J=e.ref(),ne=(r,s,t)=>{var u,a,f,b,m,y;let o;const l=s;((a=(u=p.value)==null?void 0:u.layer)==null?void 0:a.toUpperCase())!=="SUPERADMIN"?o=(f=p.value)!=null&&f.password?Z((b=p.value)==null?void 0:b.password,(m=x==null?void 0:x.value)==null?void 0:m.privateKey):G.resetPassword:o=(y=p.value)==null?void 0:y.password,o===l?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},oe=(r,s,t)=>{s?t():t(new Error("请输入密码"))},le=(r,s,t)=>{var o;s!==((o=J.value)==null?void 0:o.newtPass)?t(new Error("两次输入的密码不一致")):t()},ue=async()=>{var s,t,o,l,u,a,f,b,m,y;const r=await D.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"系统管理/用户管理"}});if(((s=r==null?void 0:r.data)==null?void 0:s.code)===200&&r.data.result&&((t=r.data.result)==null?void 0:t.length)>0){const d=(f=(a=(u=(l=(o=r.data.result)==null?void 0:o[0])==null?void 0:l.value)==null?void 0:u.pageData)==null?void 0:a.compData)==null?void 0:f.find(n=>(n==null?void 0:n.key)==="header"),w=(b=L.value)==null?void 0:b.map(n=>n==null?void 0:n.prop);I.baseCols=d&&((m=d.contents)==null?void 0:m.map(n=>({...n,isFormColHidden:(w==null?void 0:w.includes(n==null?void 0:n.prop))||(n==null?void 0:n.label)==="操作"})));const S=(y=d.contents)==null?void 0:y.find(n=>(n==null?void 0:n.prop)==="password"),i=[{...S,label:"当前密码",prop:"currentPass",validator:ne},{...S,label:"新密码",prop:"newtPass",validator:oe},{...S,label:"确认密码",prop:"confirmNewPass",validator:le}];I.otherCols=i,de(p.value)}},ie=r=>{J.value=r},ce=async({content:r,buttonName:s})=>{var o,l,u,a,f;let t;s==="确定"&&(t={...p.value,status:((o=p.value)==null?void 0:o.status)??"启用",password:((u=(l=p.value)==null?void 0:l.layer)==null?void 0:u.toUpperCase())==="SUPERADMIN"?r==null?void 0:r.confirmNewPass:Y(r==null?void 0:r.confirmNewPass,(a=x.value)==null?void 0:a.publicKey)}),s==="保存基本信息"&&(t={...p.value,...r,status:((f=p.value)==null?void 0:f.status)??"启用"}),V.value=!0,await j(t,s)},$=()=>{var o,l;const r={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},s=sessionStorage.getItem("authority"),t=JSON.parse(s||"");if(Array.isArray(t)){const u=(o=A.value)!=null&&o.startsWith("/")?(l=A.value)==null?void 0:l.substring(1):A.value,a=t!=null&&t.includes(`${u}/基本信息`)?r==null?void 0:r.base:[],f=t!=null&&t.includes(`${u}/修改密码`)?r==null?void 0:r.other:[];return{base:a,other:f}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?r:null},de=r=>{var s,t,o,l,u;H.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(s=I.baseCols)==null?void 0:s.map(a=>({...a,width:2,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,prop:a==null?void 0:a.prop,contents:a==null?void 0:a.options,value:r[a==null?void 0:a.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=$())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(o=I.otherCols)==null?void 0:o.map(a=>({...a,width:1,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options})),formRules:(l=I.otherCols)==null?void 0:l.reduce((a,f)=>(a[f.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(b,m,y)=>f.validator(b,m,y),trigger:"blur"}],a),{}),buttonValue:(u=$())==null?void 0:u.other,isEnableWrap:!1},value:""}]}]},pe=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:q,beforeSignDestroy:O,changeFormTrigger:ie,clickFormButton:te,clickSignButton:re,clickTabButton:ce,getUserTableHeadersAsync:ue,itemData:ae,loading:V,refreshLoginUserInfoAsync:W,rowContents:L,signPadInfo:E,signTypes:z,signatureLoading:P,submitImageAsync:se,tabKey:R,tabsContents:H,tempSignTypes:T,uploadDisabled:K},Symbol.toStringTag,{value:"Module"})),fe={class:"avatar-model-wrap"},ge={key:0},ve=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(r,{emit:s}){const t=r,o=s,l=e.computed(()=>"http://222.92.178.198:62001"),u=e.ref(""),a=e.ref(""),f=e.ref();e.watch(()=>{var d;return(d=t.userInfo)==null?void 0:d.头像},d=>{a.value=d?l.value+"/"+d:""},{immediate:!0});const b=async()=>{if(!(t!=null&&t.disabled))try{const d=await C.platformDownloadFile({url:u.value});if(d.status!==200)throw new Error(`HTTP error! status: ${d.status}`);const w=new Blob([d.data],{type:d.headers["content-type"]});f.value=w}catch(d){throw new Error(d)}},m=async d=>{var w,S,i,n,h;try{const g=await C.uploadFile(d);((w=g==null?void 0:g.data)==null?void 0:w.code)===200&&(a.value=l.value+"/"+((i=(S=g.data)==null?void 0:S.result)==null?void 0:i.url),u.value=(h=(n=g.data)==null?void 0:n.result)==null?void 0:h.url,o("submitImage",u.value))}catch(g){_.ElMessage.error(g)}},y=async()=>{try{if(!a.value)return}catch(d){_.ElMessage.error(d)}};return(d,w)=>{var S,i;return e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(Q.Avatar,{avatarUrl:a.value??"",avatarBlob:f.value,size:r.size,onClickAvatar:b,onSubmitImage:m,onDeleteImage:y,clickStop:t==null?void 0:t.clickStop},{avatarDefault:e.withCtx(()=>{var n,h,g,v;return[e.createTextVNode(e.toDisplayString(((h=(n=r.userInfo)==null?void 0:n.account)==null?void 0:h.charAt(0))||((v=(g=r.userInfo)==null?void 0:g.姓名)==null?void 0:v.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size","clickStop"]),r.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",ge,e.toDisplayString(((S=r.userInfo)==null?void 0:S.account)||((i=r.userInfo)==null?void 0:i.账号)||"未知"),1))])}}}),ye=M._export_sfc(ve,[["__scopeId","data-v-1a1f2575"]]),be=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(r,{emit:s}){const t=r,o=e.ref({}),l=e.ref([]),u=s,a=i=>{o.value.dialogShow=(i==null?void 0:i.label)==="电子签名",u("clickSignButton",i)},f=()=>{o.value.dialogShow=!1,u("beforeDestroy")},b=e.computed(()=>"http://222.92.178.198:62001"),m=i=>{var c;const n=i.split(","),h=(c=n==null?void 0:n[0])==null?void 0:c.match(/:(.*?);/)[1],g=atob(n[1]);let v=g.length;const k=new Uint8Array(v);for(;v--;)k[v]=g.charCodeAt(v);return new Blob([k],{type:h})},y=async i=>{var n,h,g;try{const v=await C.uploadFile(i);((n=v==null?void 0:v.data)==null?void 0:n.code)===200&&u("clickSubmitSign",(g=(h=v.data)==null?void 0:h.result)==null?void 0:g.url)}catch(v){_.ElMessage.error(v)}},d=e.ref(""),w=i=>{d.value=i,o.value.dialogShow=!1;const n=new FormData,h=m(i);n.append("file",h,"image.png"),y(n)},S=i=>{const n=new FormData;n.append("file",i==null?void 0:i.file),y(n)};return e.watch(()=>t==null?void 0:t.itemData,i=>{var h,g,v,k;d.value="",(h=o.value)!=null&&h.dialogShow&&(o.value.dialogShow=!1);const n=(g=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signConfig"))==null?void 0:g.contents;n&&Object.keys(n).forEach(c=>{(n[c]===void 0||n[c]===null||n[c]==="")&&delete n[c]}),o.value=(v=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signConfig"))==null?void 0:v.contents,l.value=(k=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signTypeList"))==null?void 0:k.contents},{immediate:!0}),(i,n)=>{const h=e.resolveComponent("el-empty"),g=e.resolveComponent("el-image"),v=e.resolveComponent("el-button"),k=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(X.Signature,{signPadInfo:o.value,onBeforeDestroy:f,onClickSubmitSign:w},{signatureRender:e.withCtx(()=>{var c,B;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(c=o.value)==null?void 0:c.signPadWidth}%`})},[e.createVNode(g,{src:d.value?d.value:b.value+"/"+((B=r.userInfo)==null?void 0:B.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(h,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,c=>{var B;return e.openBlock(),e.createElementBlock("div",{key:c.label,class:"signature-button"},[(B=c.label)!=null&&B.includes("上传")?(e.openBlock(),e.createBlock(k,{key:0,ref_for:!0,ref:"uploadRef","http-request":S,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(v,{disabled:c.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),icon:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:c.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(v,{key:1,id:"themeButton",disabled:c.disabled,onClick:he=>a(c)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),icon:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:c.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),me=M._export_sfc(be,[["__scopeId","data-v-ce5a2314"]]);exports.State=pe;exports.ssAvatar=ye;exports.ssSignature=me;exports.tabKey=R;
|
|
1
|
+
"use strict";const e=require("vue"),_=require("./request-Dl8yi2iS.cjs"),C=require("./index-Pve69buQ.cjs"),D=require("./index-DmwxzDGW.cjs"),F=require("./JSEncrypt-IYbV4kRj.cjs"),G=require("./index-BszVYrt4.cjs"),Q=require("./index-DnvliHsl.cjs"),M=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),X=require("./index-D2tukDzU.cjs"),U=require("./index-BpPyaNFa.cjs");function Y(r,s){const t=new F.JSEncrypt;return t.setPublicKey(s),t.encrypt(r)||""}function Z(r,s){const t=new F.JSEncrypt;return t.setPrivateKey(s),t.decrypt(r)||""}const N=C.useLoginState(C.pinia),{loginUserInfo:p,cryptoInfo:x}=C.storeToRefs(N),ee=C.useMenuState(C.pinia),{activeMenuPath:A}=C.storeToRefs(ee),R=e.ref(0),L=e.computed(()=>{var r,s,t,o,l,u,a,f,b,m,y;return[{label:"",name:"账号",prop:"账号",value:((r=p.value)==null?void 0:r.account)||(((s=p.value)==null?void 0:s.账号)??"未知")},{label:"",name:"角色名称",prop:"角色名称",value:((t=p.value)==null?void 0:t.layer)==="superAdmin"?"超级管理员":(o=p.value)==null?void 0:o.角色名称},{label:"",name:"部门名称",prop:"部门名称",value:((l=p.value)==null?void 0:l.部门名称)??"未知"},{label:"",name:"状态",prop:"状态",value:((u=p.value)==null?void 0:u.layer)==="superAdmin"?"启用":((a=p.value)==null?void 0:a.状态)??"未知"},{label:"",prop:"头像",isFormColHidden:!0,value:((f=p.value)==null?void 0:f.layer)==="superAdmin"?"启用":((b=p.value)==null?void 0:b.状态)??"未知"},{label:"",prop:"签名",isFormColHidden:!0,value:((m=p.value)==null?void 0:m.layer)==="superAdmin"?"启用":((y=p.value)==null?void 0:y.状态)??"未知"}]}),te=()=>{},V=e.ref(!1),E=e.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),T=e.ref([{label:"签字版",icon:_.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:_.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:_.upload_filled_default,type:"buttonUpload",disabled:!1}]),q=e.ref(!1),P=e.ref(!1),K=e.ref(!1),z=e.computed(()=>{var o,l,u;const r=sessionStorage.getItem("authority"),s=JSON.parse(r||""),t=(o=A.value)!=null&&o.startsWith("/")?(l=A.value)==null?void 0:l.substring(1):A.value;return Array.isArray(s)?(K.value=!(s!=null&&s.includes(`${t}/上传头像`)),(u=T.value)==null?void 0:u.map(a=>({...a,disabled:!(s!=null&&s.includes(`${t}/签名`))}))):typeof s=="string"&&(s==null?void 0:s.toUpperCase())==="SUPERADMIN"?T.value:[]}),ae=e.computed(()=>[{key:"signConfig",contents:E},{key:"signTypeList",contents:z.value}]),re=r=>{E.dialogShow=r.label==="电子签名"},O=()=>{E.dialogShow=!1},W=async r=>{var t,o,l,u,a,f,b,m,y;const s=await D.getInsofDataApi({id:r});if(((t=s==null?void 0:s.data)==null?void 0:t.code)===200&&s.data.result&&Array.isArray(s.data.result)&&s.data.result.length>0){const d={...(u=(l=(o=s.data.result)==null?void 0:o[0])==null?void 0:l.value)==null?void 0:u.tableData,id:(f=(a=s.data.result)==null?void 0:a[0])==null?void 0:f.id,layer:(y=(m=(b=s.data.result)==null?void 0:b[0])==null?void 0:m.key)==null?void 0:y.layer};N.setLoginUserInfo(d)}},j=async(r,s)=>{var o,l,u;const t=C.cloneDeep(r);t==null||delete t.id;try{const a=await D.updateInsofDataApi({id:(o=p.value)==null?void 0:o.id,value:{tableData:t}});((l=a==null?void 0:a.data)==null?void 0:l.code)===200&&(O(),_.ElMessage.success("修改成功"),await W((u=p.value)==null?void 0:u.id),await N.setLogRecordAsync({type:s,data:r},A.value))}catch{_.ElMessage.error("修改响应失败")}finally{V.value=!1,q.value=!1,P.value=!1}},se=async(r,s)=>{var l;const t=r==="avatarUrl"?"头像":"签名",o={...p.value,status:((l=p.value)==null?void 0:l.status)??"启用",[t]:s};q.value=r==="avatarUrl",P.value=r==="signature",await j(o,"图片修改")},I=e.reactive({baseCols:[],otherCols:[]}),H=e.ref([]),J=e.ref(),ne=(r,s,t)=>{var u,a,f,b,m,y;let o;const l=s;((a=(u=p.value)==null?void 0:u.layer)==null?void 0:a.toUpperCase())!=="SUPERADMIN"?o=(f=p.value)!=null&&f.password?Z((b=p.value)==null?void 0:b.password,(m=x==null?void 0:x.value)==null?void 0:m.privateKey):G.resetPassword:o=(y=p.value)==null?void 0:y.password,o===l?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},oe=(r,s,t)=>{s?t():t(new Error("请输入密码"))},le=(r,s,t)=>{var o;s!==((o=J.value)==null?void 0:o.newtPass)?t(new Error("两次输入的密码不一致")):t()},ue=async()=>{var s,t,o,l,u,a,f,b,m,y;const r=await D.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"系统管理/用户管理"}});if(((s=r==null?void 0:r.data)==null?void 0:s.code)===200&&r.data.result&&((t=r.data.result)==null?void 0:t.length)>0){const d=(f=(a=(u=(l=(o=r.data.result)==null?void 0:o[0])==null?void 0:l.value)==null?void 0:u.pageData)==null?void 0:a.compData)==null?void 0:f.find(n=>(n==null?void 0:n.key)==="header"),w=(b=L.value)==null?void 0:b.map(n=>n==null?void 0:n.prop);I.baseCols=d&&((m=d.contents)==null?void 0:m.map(n=>({...n,isFormColHidden:(w==null?void 0:w.includes(n==null?void 0:n.prop))||(n==null?void 0:n.label)==="操作"})));const S=(y=d.contents)==null?void 0:y.find(n=>(n==null?void 0:n.prop)==="password"),i=[{...S,label:"当前密码",prop:"currentPass",validator:ne},{...S,label:"新密码",prop:"newtPass",validator:oe},{...S,label:"确认密码",prop:"confirmNewPass",validator:le}];I.otherCols=i,de(p.value)}},ie=r=>{J.value=r},ce=async({content:r,buttonName:s})=>{var o,l,u,a,f;let t;s==="确定"&&(t={...p.value,status:((o=p.value)==null?void 0:o.status)??"启用",password:((u=(l=p.value)==null?void 0:l.layer)==null?void 0:u.toUpperCase())==="SUPERADMIN"?r==null?void 0:r.confirmNewPass:Y(r==null?void 0:r.confirmNewPass,(a=x.value)==null?void 0:a.publicKey)}),s==="保存基本信息"&&(t={...p.value,...r,status:((f=p.value)==null?void 0:f.status)??"启用"}),V.value=!0,await j(t,s)},$=()=>{var o,l;const r={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},s=sessionStorage.getItem("authority"),t=JSON.parse(s||"");if(Array.isArray(t)){const u=(o=A.value)!=null&&o.startsWith("/")?(l=A.value)==null?void 0:l.substring(1):A.value,a=t!=null&&t.includes(`${u}/基本信息`)?r==null?void 0:r.base:[],f=t!=null&&t.includes(`${u}/修改密码`)?r==null?void 0:r.other:[];return{base:a,other:f}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?r:null},de=r=>{var s,t,o,l,u;H.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(s=I.baseCols)==null?void 0:s.map(a=>({...a,width:2,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,prop:a==null?void 0:a.prop,contents:a==null?void 0:a.options,value:r[a==null?void 0:a.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=$())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(o=I.otherCols)==null?void 0:o.map(a=>({...a,width:1,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options})),formRules:(l=I.otherCols)==null?void 0:l.reduce((a,f)=>(a[f.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(b,m,y)=>f.validator(b,m,y),trigger:"blur"}],a),{}),buttonValue:(u=$())==null?void 0:u.other,isEnableWrap:!1},value:""}]}]},pe=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:q,beforeSignDestroy:O,changeFormTrigger:ie,clickFormButton:te,clickSignButton:re,clickTabButton:ce,getUserTableHeadersAsync:ue,itemData:ae,loading:V,refreshLoginUserInfoAsync:W,rowContents:L,signPadInfo:E,signTypes:z,signatureLoading:P,submitImageAsync:se,tabKey:R,tabsContents:H,tempSignTypes:T,uploadDisabled:K},Symbol.toStringTag,{value:"Module"})),fe={class:"avatar-model-wrap"},ge={key:0},ve=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(r,{emit:s}){const t=r,o=s,l=e.computed(()=>"http://222.92.178.198:62001"),u=e.ref(""),a=e.ref(""),f=e.ref();e.watch(()=>{var d;return(d=t.userInfo)==null?void 0:d.头像},d=>{a.value=d?l.value+"/"+d:""},{immediate:!0});const b=async()=>{if(!(t!=null&&t.disabled))try{const d=await C.platformDownloadFile({url:u.value});if(d.status!==200)throw new Error(`HTTP error! status: ${d.status}`);const w=new Blob([d.data],{type:d.headers["content-type"]});f.value=w}catch(d){throw new Error(d)}},m=async d=>{var w,S,i,n,h;try{const g=await C.uploadFile(d);((w=g==null?void 0:g.data)==null?void 0:w.code)===200&&(a.value=l.value+"/"+((i=(S=g.data)==null?void 0:S.result)==null?void 0:i.url),u.value=(h=(n=g.data)==null?void 0:n.result)==null?void 0:h.url,o("submitImage",u.value))}catch(g){_.ElMessage.error(g)}},y=async()=>{try{if(!a.value)return}catch(d){_.ElMessage.error(d)}};return(d,w)=>{var S,i;return e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(Q.Avatar,{avatarUrl:a.value??"",avatarBlob:f.value,size:r.size,onClickAvatar:b,onSubmitImage:m,onDeleteImage:y,clickStop:t==null?void 0:t.clickStop},{avatarDefault:e.withCtx(()=>{var n,h,g,v;return[e.createTextVNode(e.toDisplayString(((h=(n=r.userInfo)==null?void 0:n.account)==null?void 0:h.charAt(0))||((v=(g=r.userInfo)==null?void 0:g.姓名)==null?void 0:v.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size","clickStop"]),r.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",ge,e.toDisplayString(((S=r.userInfo)==null?void 0:S.account)||((i=r.userInfo)==null?void 0:i.账号)||"未知"),1))])}}}),ye=M._export_sfc(ve,[["__scopeId","data-v-1a1f2575"]]),be=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(r,{emit:s}){const t=r,o=e.ref({}),l=e.ref([]),u=s,a=i=>{o.value.dialogShow=(i==null?void 0:i.label)==="电子签名",u("clickSignButton",i)},f=()=>{o.value.dialogShow=!1,u("beforeDestroy")},b=e.computed(()=>"http://222.92.178.198:62001"),m=i=>{var c;const n=i.split(","),h=(c=n==null?void 0:n[0])==null?void 0:c.match(/:(.*?);/)[1],g=atob(n[1]);let v=g.length;const k=new Uint8Array(v);for(;v--;)k[v]=g.charCodeAt(v);return new Blob([k],{type:h})},y=async i=>{var n,h,g;try{const v=await C.uploadFile(i);((n=v==null?void 0:v.data)==null?void 0:n.code)===200&&u("clickSubmitSign",(g=(h=v.data)==null?void 0:h.result)==null?void 0:g.url)}catch(v){_.ElMessage.error(v)}},d=e.ref(""),w=i=>{d.value=i,o.value.dialogShow=!1;const n=new FormData,h=m(i);n.append("file",h,"image.png"),y(n)},S=i=>{const n=new FormData;n.append("file",i==null?void 0:i.file),y(n)};return e.watch(()=>t==null?void 0:t.itemData,i=>{var h,g,v,k;d.value="",(h=o.value)!=null&&h.dialogShow&&(o.value.dialogShow=!1);const n=(g=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signConfig"))==null?void 0:g.contents;n&&Object.keys(n).forEach(c=>{(n[c]===void 0||n[c]===null||n[c]==="")&&delete n[c]}),o.value=(v=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signConfig"))==null?void 0:v.contents,l.value=(k=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signTypeList"))==null?void 0:k.contents},{immediate:!0}),(i,n)=>{const h=e.resolveComponent("el-empty"),g=e.resolveComponent("el-image"),v=e.resolveComponent("el-button"),k=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(X.Signature,{signPadInfo:o.value,onBeforeDestroy:f,onClickSubmitSign:w},{signatureRender:e.withCtx(()=>{var c,B;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(c=o.value)==null?void 0:c.signPadWidth}%`})},[e.createVNode(g,{src:d.value?d.value:b.value+"/"+((B=r.userInfo)==null?void 0:B.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(h,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,c=>{var B;return e.openBlock(),e.createElementBlock("div",{key:c.label,class:"signature-button"},[(B=c.label)!=null&&B.includes("上传")?(e.openBlock(),e.createBlock(k,{key:0,ref_for:!0,ref:"uploadRef","http-request":S,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(v,{disabled:c.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),icon:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:c.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(v,{key:1,id:"themeButton",disabled:c.disabled,onClick:he=>a(c)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),icon:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:c.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),me=M._export_sfc(be,[["__scopeId","data-v-ce5a2314"]]);exports.State=pe;exports.ssAvatar=ye;exports.ssSignature=me;exports.tabKey=R;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as C, reactive as k, ref as v, onMounted as D, nextTick as b, resolveComponent as i, resolveDirective as T, createElementBlock as m, openBlock as u, createVNode as t, withCtx as n, withDirectives as w, createElementVNode as p, createTextVNode as _ } from "vue";
|
|
2
2
|
import { S as x } from "./index-4DF-IGFB.js";
|
|
3
|
-
import { V as B } from "./index-
|
|
3
|
+
import { V as B } from "./index-DQ18HE2h.js";
|
|
4
4
|
import { s as F } from "./index-BQ9pPu8K.js";
|
|
5
|
-
import { b as y } from "./index-
|
|
5
|
+
import { b as y } from "./index-D69bgapb.js";
|
|
6
6
|
import { u as S, p as I, s as N } from "./index-BpMKqUU2.js";
|
|
7
7
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const E = { class: "menu-module" }, M = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-B7g2mUfT.cjs"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-B7g2mUfT.cjs"),r=require("./index-D3JyJaqe.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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-DoiXH2rC.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CmOw6x4x.cjs");require("./index-BpPyaNFa.cjs");const b=require("./index-D2tukDzU.cjs");require("./index-BszVYrt4.cjs");const _=require("./index-Pve69buQ.cjs");require("./request-Dl8yi2iS.cjs");;/* empty css */const h=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),y={class:"personal-wrapper"},V={class:"personal-box left"},N={class:"base-avatar"},x={class:"center-avatar"},S={class:"base-info"},D={class:"base-signature"},E={class:"personal-box right"},k=e.defineComponent({__name:"index",setup(C){const t=e.reactive({...o.State}),f=_.useLoginState(),{loginUserInfo:n}=_.storeToRefs(f);return e.onMounted(()=>{var i;t.getUserTableHeadersAsync(),t.refreshLoginUserInfoAsync((i=n==null?void 0:n.value)==null?void 0:i.id),o.tabKey.value++}),(i,r)=>{var c,d,u,g,p,m,v;const s=e.resolveComponent("svg-icon"),a=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",V,[e.createElementVNode("div",N,[e.createElementVNode("div",x,[e.withDirectives(e.createVNode(o.ssAvatar,{size:100,disabled:t.uploadDisabled,userInfo:e.unref(n),onSubmitImage:r[0]||(r[0]=l=>t.submitImageAsync("avatarUrl",l))},null,8,["disabled","userInfo"]),[[a,t.avatarLoading]])])]),e.createElementVNode("div",S,[e.createElementVNode("div",null,[e.createVNode(s,{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(s,{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(s,{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(s,{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",D,[e.withDirectives(e.createVNode(o.ssSignature,{userInfo:e.unref(n),itemData:t.itemData,onClickSignButton:t.clickSignButton,onBeforeDestroy:t.beforeSignDestroy,onClickSubmitSign:r[1]||(r[1]=l=>t.submitImageAsync("signature",l))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"]),[[a,t.signatureLoading]])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",E,[(e.openBlock(),e.createBlock(b.ssTab,{key:e.unref(o.tabKey),tabsContents:t.tabsContents,onChangeTrigger:t.changeFormTrigger,onClickTrigger:t.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])),[[a,t.loading]])])}}}),B=h._export_sfc(k,[["__scopeId","data-v-3bdf3f4b"]]);exports.default=B;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-Pve69buQ.cjs"),_=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-Pve69buQ.cjs"),_=require("./index-D3JyJaqe.cjs"),r=require("./index-B1FeUhQ3.cjs"),C=require("./index-DmwxzDGW.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,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),G=require("./array-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),G=require("./array-Cha39xM6.cjs"),r=require("./index-Pve69buQ.cjs"),ne=require("./index-D3JyJaqe.cjs"),T=require("./index-BszVYrt4.cjs"),v=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),F=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"}],A=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"LineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"}];n.ref(0);n.ref(0);n.ref(1);const le=s=>{let d;s.replaceAll(" ",`\r
|
|
2
2
|
`).replaceAll(`
|
|
3
3
|
`,`\r
|
|
4
4
|
`).includes(`\r
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as U, watch as v, createElementBlock as E, createCommentVNode as q, openBlock as I, Fragment as de, renderList as fe, createElementVNode as S, createBlock as se, toDisplayString as oe, resolveDynamicComponent as ye, onMounted as he, onUnmounted as ke, createVNode as te } from "vue";
|
|
2
|
-
import { m as ge, a as _e, b as Ce, c as be } from "./array-
|
|
2
|
+
import { m as ge, a as _e, b as Ce, c as be } from "./array-Dys7VLWR.js";
|
|
3
3
|
import { c, a as ce, p as re, s as ue, u as Oe } from "./index-BpMKqUU2.js";
|
|
4
|
-
import { g as Ae } from "./index-
|
|
4
|
+
import { g as Ae } from "./index-DQ18HE2h.js";
|
|
5
5
|
import { v as H, a as K } from "./index-C_qJRxvA.js";
|
|
6
6
|
import { _ as pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const B = [
|
package/dist/ss-component.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CmOw6x4x.cjs");const C=require("./index-BpPyaNFa.cjs"),v=require("./index-Pve69buQ.cjs");require("./index-BszVYrt4.cjs");require("./request-Dl8yi2iS.cjs");;/* empty css */const s=require("./ss-component2.cjs"),t=require("./index-RoXicHV9.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CmOw6x4x.cjs");const C=require("./index-BpPyaNFa.cjs"),v=require("./index-Pve69buQ.cjs");require("./index-BszVYrt4.cjs");require("./request-Dl8yi2iS.cjs");;/* empty css */const s=require("./ss-component2.cjs"),t=require("./index-RoXicHV9.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-BEVEsk-J.cjs")));r.install=e=>{e.component("ssComponent",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-D2tukDzU.cjs")).then(e=>e.index$1));i.install=e=>{e.component("ssTab",i)};const c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BdrcwRuz.cjs")).then(e=>e.index));c.install=e=>{e.component("ssMenu",c)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-p6CpwQMN.cjs")));l.install=e=>{e.component("ssMenuComponent",l)};const m=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-B9F0Urrn.cjs")));m.install=e=>{e.component("ssCanvas",m)};const u=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BVaHwt5f.cjs")));u.install=e=>{e.component("ssFold",u)};const a=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DnvliHsl.cjs")).then(e=>e.index));a.install=e=>{e.component("ssAvatar",a)};const h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeModel-DFI-IHsP.cjs")));h.install=e=>{e.component("ssThree",h)};const f=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeViewerHost-j0VzO7yY.cjs")).then(e=>e.threeViewerHost));f.install=e=>{e.component("threeViewerHost",f)};const p=v.useMenuState(),q=[r,i,c,l,m,u,a,h,f],P=e=>{q.forEach(o=>{e.use(o)}),e.use(s),e.config.globalProperties.$router=s},g=e=>{switch(e){case"browser":return t.browserThemeConfig;case"client":return t.clientThemeConfig;case"three":return t.threeThemeConfig}},y=e=>{const o=document.documentElement;e==null||e.forEach(d=>{o.style.setProperty(d.name,d.value)})},A=e=>{p.setPlatform(e);const o=g(e);y(o)},T={getPlatform:p.getPlatform,setPlatform:p.setPlatform,initPlatform:A};exports.SvgIcon=C.SvgIcon;exports.router=s;exports.default=P;exports.platformApi=T;
|