ss-component-new 1.3.2 → 1.3.4
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-BDa0EA-y.cjs} +1 -1
- package/dist/{MTLLoader-Dv2EVTWB.js → MTLLoader-DU2_d5qP.js} +37 -37
- package/dist/{OrbitControls-B_seM-IP.js → OrbitControls-B2Ue7hdS.js} +1 -1
- package/dist/{OrbitControls-DeFoKJp9.cjs → OrbitControls-DfhmSOVW.cjs} +1 -1
- package/dist/{URDFLoader-B6g0hxRm.cjs → URDFLoader-BRTNakjO.cjs} +1 -1
- package/dist/{URDFLoader-BT60rQtD.js → URDFLoader-BSHChj3i.js} +189 -189
- package/dist/{animationData-Beth8tFS.js → animationData-Bfm5Jk8y.js} +26 -26
- package/dist/{animationData-CXbG057x.cjs → animationData-CNIRMzHL.cjs} +1 -1
- package/dist/{array-C6jYq2-o.js → array-BqZSVRH0.js} +46 -46
- package/dist/{array-QkdkoOAY.cjs → array-MgT_0IYR.cjs} +1 -1
- package/dist/{iconfont-h3lSsHxO.js → iconfont-D4sBppfS.js} +29 -29
- package/dist/{iconfont-UNojnhH2.cjs → iconfont-kWEJenGZ.cjs} +1 -1
- package/dist/{index-Cjqg29ul.cjs → index-0sI9GpjG.cjs} +1 -1
- package/dist/index-7WRVFebE.cjs +1 -0
- package/dist/{index-7tMW9vmz.js → index-7bddXiMZ.js} +723 -723
- package/dist/{index-CgR9iYFA.cjs → index-B-wqJb1R.cjs} +1 -1
- package/dist/{index-B3jquljw.js → index-BCQ-ZrNS.js} +7 -7
- package/dist/{index-BJPBBWWH.cjs → index-BLxE_tkf.cjs} +1 -1
- package/dist/{index-CaXg2zO6.cjs → index-BPKCXbP6.cjs} +1 -1
- package/dist/index-BR7I_Z6b.cjs +1 -0
- package/dist/{index-Ddoq7kRQ.js → index-BT6DSXQW.js} +9 -9
- package/dist/{index-BYdJgNnt.js → index-BTfRODup.js} +3 -3
- package/dist/{index-DRybfiC9.js → index-BUrYjzWs.js} +2 -2
- package/dist/{index-TxlM0xFu.cjs → index-BWqkJ8tT.cjs} +1 -1
- package/dist/{index-CCn_Pa7c.cjs → index-BY0bG8F_.cjs} +1 -1
- package/dist/{index-CDYSTy2C.cjs → index-Bb7_N8kj.cjs} +1 -1
- package/dist/index-BdP1gtPp.cjs +13 -0
- package/dist/{index-BqqRuoo3.js → index-Bt9rt1NQ.js} +3 -3
- package/dist/index-BtuZ5Zx4.js +103 -0
- package/dist/{index-BBo5mPL3.js → index-C38KGQKj.js} +2 -2
- package/dist/{index-CPk9g8p3.js → index-C3RoPY39.js} +2 -2
- package/dist/{index-Bv-gTP_t.cjs → index-C3suNMi3.cjs} +1 -1
- package/dist/{index-hnHfOKW9.cjs → index-C6_1MyLM.cjs} +1 -1
- package/dist/{index-DRTxe12U.cjs → index-C8fMwErX.cjs} +13 -13
- package/dist/{index-r5JlBAZk.cjs → index-CDhojfAp.cjs} +1 -1
- package/dist/{index-nr6V1FzX.js → index-CEoo5NuF.js} +7 -7
- package/dist/{index-CXiOVgoz.js → index-CEzEaG0d.js} +1 -1
- package/dist/{index-NAekmm6C.js → index-CM_8lsuy.js} +2 -2
- package/dist/{index-CuKYtSif.js → index-CN5eTGfF.js} +1 -1
- package/dist/{index-BR5J0fXr.cjs → index-COvNwtxL.cjs} +13 -13
- package/dist/{index-BF9Y0y6z.js → index-CaDwU086.js} +3 -3
- package/dist/{index-DU9e5EhS.cjs → index-Cw4Pm2PQ.cjs} +1 -1
- package/dist/{index-Va8AOLWi.js → index-DGRL8SEt.js} +1 -1
- package/dist/index-DIqYHU20.cjs +11 -0
- package/dist/{index-DzadQQ41.js → index-DUygJhjf.js} +1703 -1712
- package/dist/{index-VcjIgkLE.cjs → index-DV3KiKv5.cjs} +1 -1
- package/dist/{index-DRLogw4i.js → index-DVHBs_Vv.js} +1952 -1948
- package/dist/{index-B7RJnzyb.js → index-DgYpyTf-.js} +2 -2
- package/dist/index-DgyyXNFj.js +12535 -0
- package/dist/{index-4FJEY4G5.js → index-DlchhCKc.js} +8 -8
- package/dist/{index-BJaAtaqN.js → index-Dm4qKk5S.js} +7 -7
- package/dist/{index-Da5iE_ab.js → index-Dsh4fjDh.js} +2 -2
- package/dist/{index-CVGCFimV.js → index-G9jqtOFo.js} +5 -5
- package/dist/{index-DzAoltDQ.cjs → index-MEN9vDHo.cjs} +1 -1
- package/dist/{index-wpbqbw-8.cjs → index-R-S0AH15.cjs} +1 -1
- package/dist/{index-De3Zh_5B.cjs → index-dD_cGWLc.cjs} +1 -1
- package/dist/{index-B1deFmCB.js → index-f_aTA7O9.js} +1 -1
- package/dist/{index-DtkLwSCK.cjs → index-iv5M7d4h.cjs} +1 -1
- package/dist/{index-BbdTn4Wu.js → index-jbNDRLVg.js} +5 -5
- package/dist/{index-DkzIAhpA.cjs → index-kZhbnU3-.cjs} +1 -1
- package/dist/{index-DAeGe9R9.cjs → index-mpoMK_dv.cjs} +1 -1
- package/dist/{index-COQpDVsv.js → index-sMsCzNtW.js} +1535 -1570
- package/dist/{index-BWCv7zxy.cjs → index-vCTVD7cV.cjs} +1 -1
- package/dist/{index-DPNECOKG.cjs → index-zR73jr4m.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BYHbVlRN.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D4mQcDEW.cjs} +398 -408
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DuyXGUSZ.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLfKrpq4.js} +32428 -32989
- package/dist/{index.vue_vue_type_style_index_1_lang-JNXKF-5g.cjs → index.vue_vue_type_style_index_1_lang-BybP-dlR.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-CPOQHkRi.js → index.vue_vue_type_style_index_1_lang-C6hiPOvT.js} +78 -78
- package/dist/{main-II23mGYX.cjs → main-DODePLfq.cjs} +1 -1
- package/dist/{main-ClpfURp9.js → main-nyWYROsL.js} +4 -4
- package/dist/{menuIndex-D52EAwtb.cjs → menuIndex-8RF_0N_y.cjs} +1 -1
- package/dist/{menuIndex-DYaogp2R.js → menuIndex-BwWrdu20.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +11 -11
- package/dist/{threeModel-Bdx25CW5.cjs → threeModel-BwQqxP7B.cjs} +1 -1
- package/dist/{threeModel-1StgfJTN.js → threeModel-Dw1HYePN.js} +45 -45
- package/dist/{threePreview-BNAELyED.cjs → threePreview-BlCmiK0A.cjs} +1 -1
- package/dist/{threePreview-Bf5gN_fI.js → threePreview-PdofIeZV.js} +103 -103
- package/dist/{threeSceneView-u0zqKHWX.cjs → threeSceneView-QkRW8pnJ.cjs} +1 -1
- package/dist/{threeSceneView-Boc1QaDR.js → threeSceneView-aDZwf58h.js} +38 -38
- package/dist/{threeSceneViewForCPMPIP-CYkIXtPP.cjs → threeSceneViewForCPMPIP-Ds4WSe56.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-gnFSbkip.js → threeSceneViewForCPMPIP-JDLX5nri.js} +8 -8
- package/dist/{threeTrackPathView-CBsHliC3.cjs → threeTrackPathView-BlAgLn32.cjs} +1 -1
- package/dist/{threeTrackPathView-B1OFwlLh.js → threeTrackPathView-DOy180Fe.js} +66 -66
- package/dist/{threeViewerHost-BSxl-4d-.cjs → threeViewerHost-Bk7K37-4.cjs} +1 -1
- package/dist/{threeViewerHost-B9z6zHUh.js → threeViewerHost-DNY3nOwS.js} +20 -20
- package/dist/{urdfTree-CGZUqrH4.js → urdfTree-CeP5yUoC.js} +10 -10
- package/dist/{urdfTree-C1KFI7et.cjs → urdfTree-nxh-CAg8.cjs} +1 -1
- package/dist/{workpieceTreePanel-Bb9foDnf.js → workpieceTreePanel-CTC2K239.js} +56 -56
- package/dist/{workpieceTreePanel-BFsf-BrP.cjs → workpieceTreePanel-CZQFw5fE.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-C8qPBadE.cjs +0 -13
- package/dist/index-CUtrk2F2.cjs +0 -1
- package/dist/index-CpbBe_mV.cjs +0 -1
- package/dist/index-DIWralYr.js +0 -67
- package/dist/index-DJFQljsX.cjs +0 -1
- package/dist/index-SvdMxP5R.js +0 -11899
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),I=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),I=require("./index-R-S0AH15.cjs"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D4mQcDEW.cjs"),x=require("./index-C5pQXH0_.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-COvNwtxL.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=o?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.Avatar,{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-e466982c"]]),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,15 +1,15 @@
|
|
|
1
|
-
import { _ as Et, s as Bt, g as Lt } from "./index-
|
|
1
|
+
import { _ as Et, s as Bt, g as Lt } from "./index-DgyyXNFj.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
|
-
import { u as zt, a as qt, p as ot, b as Jt, s as Qe, c as xe } from "./index-
|
|
4
|
-
import { s as Wt } from "./index-
|
|
5
|
-
import { b as Gt } from "./index-
|
|
3
|
+
import { u as zt, a as qt, p as ot, b as Jt, s as Qe, c as xe } from "./index-sMsCzNtW.js";
|
|
4
|
+
import { s as Wt } from "./index-CN5eTGfF.js";
|
|
5
|
+
import { b as Gt } from "./index-DUygJhjf.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
|
-
import { f as Ht } from "./menuIndex-
|
|
9
|
+
import { f as Ht } from "./menuIndex-BwWrdu20.js";
|
|
10
10
|
import { S as ut } from "./index-BHtNKL1L.js";
|
|
11
|
-
import { g as Ye, c as pt,
|
|
12
|
-
import { v as Ze } from "./index-
|
|
11
|
+
import { g as Ye, c as pt, n as mt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLfKrpq4.js";
|
|
12
|
+
import { v as Ze } from "./index-BtuZ5Zx4.js";
|
|
13
13
|
import { _ as el } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const ct = (c, p, E = 0) => {
|
|
15
15
|
let n = c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const f=require("vue"),y=require("./index-C5pQXH0_.cjs"),g=require("./index-
|
|
1
|
+
"use strict";const f=require("vue"),y=require("./index-C5pQXH0_.cjs"),g=require("./index-C8fMwErX.cjs"),D=g.useLoginState(g.pinia),{loginUserInfo:u,cryptoInfo:w}=g.storeToRefs(D),V=g.useMenuState(g.pinia),{activeMenuPath:b}=g.storeToRefs(V),P=f.ref(0),R=f.computed(()=>{var s,a,t,r,n,l,e,o,p,d,v;return[{label:"",name:"账号",prop:"账号",value:((s=u.value)==null?void 0:s.account)||(((a=u.value)==null?void 0:a.账号)??"未知")},{label:"",name:"角色名称",prop:"角色名称",value:((t=u.value)==null?void 0:t.layer)==="superAdmin"?"超级管理员":(r=u.value)==null?void 0:r.角色名称},{label:"",name:"部门名称",prop:"部门名称",value:((n=u.value)==null?void 0:n.部门名称)??"未知"},{label:"",name:"状态",prop:"状态",value:((l=u.value)==null?void 0:l.layer)==="superAdmin"?"启用":((e=u.value)==null?void 0:e.状态)??"未知"},{label:"",prop:"头像",isFormColHidden:!0,value:((o=u.value)==null?void 0:o.layer)==="superAdmin"?"启用":((p=u.value)==null?void 0:p.状态)??"未知"},{label:"",prop:"签名",isFormColHidden:!0,value:((d=u.value)==null?void 0:d.layer)==="superAdmin"?"启用":((v=u.value)==null?void 0:v.状态)??"未知"}]}),W=()=>{},U=f.ref(!1),h=f.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),S=f.ref([{label:"签字版",icon:y.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:y.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:y.upload_filled_default,type:"buttonUpload",disabled:!1}]),I=f.ref(!1),T=f.ref(!1),M=f.ref(!1),_=f.computed(()=>{var r,n,l;const s=sessionStorage.getItem("authority"),a=JSON.parse(s||""),t=(r=b.value)!=null&&r.startsWith("/")?(n=b.value)==null?void 0:n.substring(1):b.value;return Array.isArray(a)?(M.value=!(a!=null&&a.includes(`${t}/上传头像`)),(l=S.value)==null?void 0:l.map(e=>({...e,disabled:!(a!=null&&a.includes(`${t}/签名`))}))):typeof a=="string"&&(a==null?void 0:a.toUpperCase())==="SUPERADMIN"?S.value:[]}),$=f.computed(()=>[{key:"signConfig",contents:h},{key:"signTypeList",contents:_.value}]),O=s=>{h.dialogShow=s.label==="电子签名"},L=()=>{h.dialogShow=!1},N=async s=>{var t,r,n,l,e,o,p,d,v;const a=await y.getInsofDataApi({id:s});if(((t=a==null?void 0:a.data)==null?void 0:t.code)===200&&a.data.result&&Array.isArray(a.data.result)&&a.data.result.length>0){const c={...(l=(n=(r=a.data.result)==null?void 0:r[0])==null?void 0:n.value)==null?void 0:l.tableData,id:(o=(e=a.data.result)==null?void 0:e[0])==null?void 0:o.id,layer:(v=(d=(p=a.data.result)==null?void 0:p[0])==null?void 0:d.key)==null?void 0:v.layer};D.setLoginUserInfo(c)}},q=async(s,a)=>{var r,n,l;const t=g.cloneDeep(s);t==null||delete t.id;try{const e=await y.updateInsofDataApi({id:(r=u.value)==null?void 0:r.id,value:{tableData:t}});((n=e==null?void 0:e.data)==null?void 0:n.code)===200&&(L(),y.ElMessage.success("修改成功"),await N((l=u.value)==null?void 0:l.id),await D.setLogRecordAsync({type:a,data:s},b.value))}catch{y.ElMessage.error("修改响应失败")}finally{U.value=!1,I.value=!1,T.value=!1}},B=async(s,a)=>{var n;const t=s==="avatarUrl"?"头像":"签名",r={...u.value,status:((n=u.value)==null?void 0:n.status)??"启用",[t]:a};I.value=s==="avatarUrl",T.value=s==="signature",await q(r,"图片修改")},m=f.reactive({baseCols:[],otherCols:[]}),K=f.ref([]),k=f.ref(),H=(s,a,t)=>{var l,e,o,p,d,v;let r;const n=a;((e=(l=u.value)==null?void 0:l.layer)==null?void 0:e.toUpperCase())!=="SUPERADMIN"?r=(o=u.value)!=null&&o.password?g.decryptData((p=u.value)==null?void 0:p.password,(d=w==null?void 0:w.value)==null?void 0:d.privateKey):g.resetPassword:r=(v=u.value)==null?void 0:v.password,r===n?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},j=(s,a,t)=>{a?t():t(new Error("请输入密码"))},x=(s,a,t)=>{var r;a!==((r=k.value)==null?void 0:r.newtPass)?t(new Error("两次输入的密码不一致")):t()},J=async()=>{var a,t,r,n,l,e,o,p,d,v;const s=await y.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"系统管理/用户管理"}});if(((a=s==null?void 0:s.data)==null?void 0:a.code)===200&&s.data.result&&((t=s.data.result)==null?void 0:t.length)>0){const c=(o=(e=(l=(n=(r=s.data.result)==null?void 0:r[0])==null?void 0:n.value)==null?void 0:l.pageData)==null?void 0:e.compData)==null?void 0:o.find(i=>(i==null?void 0:i.key)==="header"),C=(p=R.value)==null?void 0:p.map(i=>i==null?void 0:i.prop);m.baseCols=c&&((d=c.contents)==null?void 0:d.map(i=>({...i,isFormColHidden:(C==null?void 0:C.includes(i==null?void 0:i.prop))||(i==null?void 0:i.label)==="操作"})));const A=(v=c.contents)==null?void 0:v.find(i=>(i==null?void 0:i.prop)==="password"),F=[{...A,label:"当前密码",prop:"currentPass",validator:H},{...A,label:"新密码",prop:"newtPass",validator:j},{...A,label:"确认密码",prop:"confirmNewPass",validator:x}];m.otherCols=F,Q(u.value)}},z=s=>{k.value=s},G=async({content:s,buttonName:a})=>{var r,n,l,e,o;let t;a==="确定"&&(t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",password:((l=(n=u.value)==null?void 0:n.layer)==null?void 0:l.toUpperCase())==="SUPERADMIN"?s==null?void 0:s.confirmNewPass:g.encryptData(s==null?void 0:s.confirmNewPass,(e=w.value)==null?void 0:e.publicKey)}),a==="保存基本信息"&&(t={...u.value,...s,status:((o=u.value)==null?void 0:o.status)??"启用"}),U.value=!0,await q(t,a)},E=()=>{var r,n;const s={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},a=sessionStorage.getItem("authority"),t=JSON.parse(a||"");if(Array.isArray(t)){const l=(r=b.value)!=null&&r.startsWith("/")?(n=b.value)==null?void 0:n.substring(1):b.value,e=t!=null&&t.includes(`${l}/基本信息`)?s==null?void 0:s.base:[],o=t!=null&&t.includes(`${l}/修改密码`)?s==null?void 0:s.other:[];return{base:e,other:o}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?s:null},Q=s=>{var a,t,r,n,l;K.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(a=m.baseCols)==null?void 0:a.map(e=>({...e,width:2,type:e==null?void 0:e.formType,name:e==null?void 0:e.prop,prop:e==null?void 0:e.prop,contents:e==null?void 0:e.options,value:s[e==null?void 0:e.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=E())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(r=m.otherCols)==null?void 0:r.map(e=>({...e,width:1,type:e==null?void 0:e.formType,name:e==null?void 0:e.prop,contents:e==null?void 0:e.options})),formRules:(n=m.otherCols)==null?void 0:n.reduce((e,o)=>(e[o.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(p,d,v)=>o.validator(p,d,v),trigger:"blur"}],e),{}),buttonValue:(l=E())==null?void 0:l.other,isEnableWrap:!1},value:""}]}]},X=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:I,beforeSignDestroy:L,changeFormTrigger:z,clickFormButton:W,clickSignButton:O,clickTabButton:G,getUserTableHeadersAsync:J,itemData:$,loading:U,refreshLoginUserInfoAsync:N,rowContents:R,signPadInfo:h,signTypes:_,signatureLoading:T,submitImageAsync:B,tabKey:P,tabsContents:K,tempSignTypes:S,uploadDisabled:M},Symbol.toStringTag,{value:"Module"}));exports.State=X;exports.tabKey=P;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-vCTVD7cV.cjs"),r=require("./index-BdP1gtPp.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;
|