ss-component-new 1.3.113 → 1.3.115
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-y4B1LPuT.js → MTLLoader-C-9g5iRs.js} +36 -36
- package/dist/{MTLLoader-BviVUPWi.cjs → MTLLoader-CfO9qTqV.cjs} +1 -1
- package/dist/{OrbitControls-390k2OM3.js → OrbitControls-B2gEQ18i.js} +1 -1
- package/dist/{OrbitControls-Cqppy3wb.cjs → OrbitControls-DoGWhGYE.cjs} +1 -1
- package/dist/{URDFLoader-BlbEAIgR.js → URDFLoader-BWZcLTTH.js} +193 -193
- package/dist/{URDFLoader-C2tFq0lk.cjs → URDFLoader-BlsYqWJQ.cjs} +1 -1
- package/dist/{animationData-B1Jlpr7b.cjs → animationData-BjpsMpYe.cjs} +1 -1
- package/dist/{animationData-DfDLy_M4.js → animationData-CK7mtjyo.js} +18 -18
- package/dist/{array-ymebeoXj.cjs → array-4sEK1Tp6.cjs} +1 -1
- package/dist/{array-DLBDgy0c.js → array-C61a4nGq.js} +5 -5
- package/dist/{iconfont-BYa5tDrN.js → iconfont-BEEudegG.js} +37 -37
- package/dist/{iconfont-cBX7rs7k.cjs → iconfont-w8ZxNH1R.cjs} +1 -1
- package/dist/{index-DMzBNabY.js → index--HdSHCHH.js} +1 -1
- package/dist/{index-YwMY3Aya.js → index-2A65FWWp.js} +7 -7
- package/dist/{index-SeEbZNcJ.cjs → index-32lNvNQY.cjs} +1 -1
- package/dist/{index-CVySIgt4.cjs → index-AjU4645d.cjs} +1 -1
- package/dist/{index-bbJ9Y_oO.js → index-B2h_bCtP.js} +3 -3
- package/dist/{index-pE8_wnGy.cjs → index-B9sLkbkE.cjs} +1 -1
- package/dist/{index--hQDmx_x.js → index-BADcwiJj.js} +2 -2
- package/dist/{index-DJoiySWn.cjs → index-BEpwtI2Q.cjs} +1 -1
- package/dist/index-BGo77kB8.cjs +1 -0
- package/dist/{index-BjAtlMRE.cjs → index-BHDqgLbZ.cjs} +1 -1
- package/dist/{index-8TMkI46d.js → index-BJxcMaQu.js} +5 -5
- package/dist/{index-NdxRkX7O.js → index-BaMfm3q6.js} +959 -956
- package/dist/index-BdXsBH1P.cjs +13 -0
- package/dist/{index-B9g8IV0C.cjs → index-Bd_SZg7S.cjs} +1 -1
- package/dist/{index-CXtLJs5O.js → index-BhJTGJWX.js} +27 -25
- package/dist/{index-UytjSmc1.cjs → index-BiA-_xPC.cjs} +1 -1
- package/dist/{index-DpirbR20.js → index-Bjm0BPhX.js} +12 -12
- package/dist/{index-BmlomuGZ.cjs → index-Bk8qPn0a.cjs} +1 -1
- package/dist/{index-CVwsrCrZ.cjs → index-BxNotDao.cjs} +12 -12
- package/dist/{index-DaX27S_0.js → index-BxcjTlnl.js} +31 -31
- package/dist/{index-D6UEkdRE.cjs → index-C1HjpqRi.cjs} +1 -1
- package/dist/{index-DovAfsVt.js → index-C4NqB81x.js} +2 -2
- package/dist/{index-DpIzJvIr.cjs → index-C5dht9fE.cjs} +1 -1
- package/dist/{index-BVURmufk.js → index-CANPj8uh.js} +7 -7
- package/dist/{index-BXZlLwr6.cjs → index-CHVJAILH.cjs} +1 -1
- package/dist/{index-D0e2ki27.js → index-CMMIt7u5.js} +63 -64
- package/dist/{index-Cu75UXH1.js → index-CPq8y_kH.js} +2 -2
- package/dist/{index-CJiEoadC.js → index-CRv6JQ2C.js} +5 -5
- package/dist/{index-CXkaTWVT.js → index-Cl2nQDI1.js} +2 -2
- package/dist/{index-CaV5K0t4.js → index-Cn5h5u4P.js} +2408 -2005
- package/dist/{index-Cg30L32X.cjs → index-CpZcO0Vv.cjs} +3 -3
- package/dist/{index-BIOl9xBh.js → index-CutPkLky.js} +2 -2
- package/dist/{index-4p0yEeUu.js → index-CyWkVCgH.js} +1 -1
- package/dist/{index-DdCyGfF9.cjs → index-D8LkomEw.cjs} +1 -1
- package/dist/{index-CXlemLjY.js → index-D8c3Spt0.js} +1 -1
- package/dist/{index-mabPGJUl.js → index-DC6oFcJ3.js} +2191 -2186
- package/dist/index-DMp47JRO.cjs +1 -0
- package/dist/{index-CEiscADV.cjs → index-DNQnpERW.cjs} +1 -1
- package/dist/{index-D39f9FDD.cjs → index-DNSrAjI9.cjs} +1 -1
- package/dist/index-DavcqNxP.cjs +1 -0
- package/dist/{index-DBdrmcqM.cjs → index-DefT5mRw.cjs} +1 -1
- package/dist/index-DgBjwajW.js +456 -0
- package/dist/index-DiowIVZT.cjs +36 -0
- package/dist/{index-BxmhgJuz.js → index-DjITcxoB.js} +1 -1
- package/dist/{index-DONt1we8.js → index-DpdFnDS3.js} +128 -78
- package/dist/index-DsOOj9Lf.cjs +1 -0
- package/dist/{index-JJBPRJiI.cjs → index-DsgMH4OH.cjs} +1 -1
- package/dist/{index-C6_KNp1M.cjs → index-DtABq3r6.cjs} +1 -1
- package/dist/{index-B22a33l9.js → index-DzSpBcvn.js} +1 -1
- package/dist/{index-DLK6UU4l.cjs → index-LqtTDLKt.cjs} +1 -1
- package/dist/index-SJHk-hwy.cjs +1 -0
- package/dist/{index-DnJB2OQC.cjs → index-UCzD4hzW.cjs} +1 -1
- package/dist/{index-CIoHy7Dg.js → index-ZhE5DWe_.js} +3 -3
- package/dist/{index-CYXsxIou.js → index-a2aJc3TK.js} +1 -1
- package/dist/{index-BfNg0B2v.js → index-eiZuqNHp.js} +3167 -3138
- package/dist/{index-C2yeqxnB.js → index-eyvk-8N6.js} +3 -3
- package/dist/index-h4MsH7WN.cjs +1 -0
- package/dist/{index-Drd5_tIE.js → index-voXoCiq0.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-zw0_MXm-.js → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-Ctc5O7Al.js} +17645 -18043
- package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CvIVRrBm.cjs → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-yeqe0Dqi.cjs} +392 -392
- package/dist/{index.vue_vue_type_style_index_1_lang-B88Ne666.js → index.vue_vue_type_style_index_1_lang-CIY5Sa-o.js} +722 -712
- package/dist/{index.vue_vue_type_style_index_1_lang-B2vRPxHe.cjs → index.vue_vue_type_style_index_1_lang-fwFKG5I3.cjs} +3 -3
- package/dist/{main-b1OREkjD.js → main-Bv-bP073.js} +4 -4
- package/dist/{main-ChE0Sl1V.cjs → main-CojqsPyy.cjs} +1 -1
- package/dist/{menuIndex-QovY60sY.cjs → menuIndex-7DwfwtqQ.cjs} +1 -1
- package/dist/{menuIndex-BlBV6RY8.js → menuIndex-BpEQqtCU.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeModel-CUViA1pV.js → threeModel-D3f91Rt6.js} +62 -62
- package/dist/{threeModel-BTiM-_yY.cjs → threeModel-DdDMV2Z7.cjs} +1 -1
- package/dist/{threePreview-DiDVwpOj.cjs → threePreview-BbT2A1VX.cjs} +1 -1
- package/dist/{threePreview-fEcukbqP.js → threePreview-fvD6ZuLp.js} +102 -102
- package/dist/{threeSceneView-BsxoPqAA.js → threeSceneView-BslSyd85.js} +133 -133
- package/dist/{threeSceneView-CxhlNkvh.cjs → threeSceneView-DoaygXsI.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-Bq9A66VO.cjs → threeSceneViewForCPMPIP-CwkRm33h.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-CCTwBiPg.js → threeSceneViewForCPMPIP-DqFJ61VU.js} +8 -8
- package/dist/{threeTrackPathView-DbqptnRu.js → threeTrackPathView-2EPeOu-l.js} +49 -49
- package/dist/{threeTrackPathView-D7zto1f1.cjs → threeTrackPathView-Qy1rvMIK.cjs} +1 -1
- package/dist/{threeViewerHost-Dhc4vxhv.cjs → threeViewerHost-BCN3cVBD.cjs} +1 -1
- package/dist/{threeViewerHost-B9vgyTcM.js → threeViewerHost-Bys_DQyR.js} +17 -17
- package/dist/{urdfTree-B9gafrR3.js → urdfTree-Dj3GmZU4.js} +1 -1
- package/dist/{urdfTree-CfUfqc73.cjs → urdfTree-Dj_MX-rV.cjs} +1 -1
- package/dist/{workpieceTreePanel-CoUx6lll.js → workpieceTreePanel-CfqOi5LU.js} +81 -81
- package/dist/{workpieceTreePanel-DzEBifIL.cjs → workpieceTreePanel-sLZ6i9PT.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-8ddlDjHL.js +0 -455
- package/dist/index-BLGT4-wX.cjs +0 -1
- package/dist/index-CTGhzBZx.cjs +0 -1
- package/dist/index-D7Ao1GyZ.cjs +0 -1
- package/dist/index-DUqjjluX.cjs +0 -1
- package/dist/index-DczQgLYk.cjs +0 -13
- package/dist/index-NtRUaVwS.cjs +0 -1
- package/dist/index-aMvM6ti6.cjs +0 -1
- package/dist/index-kutaq0AT.cjs +0 -36
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),I=require("./index.vue_vue_type_style_index_0_scoped_92c12abe_lang-
|
|
1
|
+
"use strict";const e=require("vue"),I=require("./index.vue_vue_type_style_index_0_scoped_92c12abe_lang-yeqe0Dqi.cjs"),a=require("./index-Dc6Q0f3F.cjs"),k=require("./isNil-x28vo2CT.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),O="ElUpload";class B extends Error{constructor(o,l,i,p){super(o),this.name="UploadAjaxError",this.status=l,this.method=i,this.url=p}}function h(r,o,l){let i;return l.response?i=`${l.response.error||l.response}`:l.responseText?i=`${l.responseText}`:i=`fail to ${o.method} ${r} ${l.status}`,new B(i,l.status,o.method,r)}function R(r){const o=r.responseText||r.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}const T=r=>{typeof XMLHttpRequest>"u"&&a.throwError(O,"XMLHttpRequest is undefined");const o=new XMLHttpRequest,l=r.action;o.upload&&o.upload.addEventListener("progress",t=>{const c=t;c.percent=t.total>0?t.loaded/t.total*100:0,r.onProgress(c)});const i=new FormData;if(r.data)for(const[t,c]of Object.entries(r.data))a.isArray$1(c)&&c.length?i.append(t,...c):i.append(t,c);i.append(r.filename,r.file,r.file.name),o.addEventListener("error",()=>{r.onError(h(l,r,o))}),o.addEventListener("load",()=>{if(o.status<200||o.status>=300)return r.onError(h(l,r,o));r.onSuccess(R(o))}),o.open(r.method,l,!0),r.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);const p=r.headers||{};if(p instanceof Headers)p.forEach((t,c)=>o.setRequestHeader(c,t));else for(const[t,c]of Object.entries(p))k.isNil(c)||o.setRequestHeader(t,String(c));return o.send(i),o},U=["text","picture","picture-card"];let D=1;const L=()=>Date.now()+D++,F=a.buildProps({action:{type:String,default:"#"},headers:{type:a.definePropType(Object)},method:{type:String,default:"post"},data:{type:a.definePropType([Object,Function,Promise]),default:()=>a.mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:a.definePropType(Array),default:()=>a.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:U,default:"text"},httpRequest:{type:a.definePropType(Function),default:T},disabled:Boolean,limit:Number});a.buildProps({...F,beforeUpload:{type:a.definePropType(Function),default:a.NOOP},beforeRemove:{type:a.definePropType(Function)},onRemove:{type:a.definePropType(Function),default:a.NOOP},onChange:{type:a.definePropType(Function),default:a.NOOP},onPreview:{type:a.definePropType(Function),default:a.NOOP},onSuccess:{type:a.definePropType(Function),default:a.NOOP},onProgress:{type:a.definePropType(Function),default:a.NOOP},onError:{type:a.definePropType(Function),default:a.NOOP},onExceed:{type:a.definePropType(Function),default:a.NOOP},crossorigin:{type:a.definePropType(String)}});const j={style:{"text-align":"left"}},q={class:"cropper-warp"},A={class:"cropper-warp-left"},$=["src"],H={class:"cropper-warp-right"},z={class:"cropper-warp-right-item"},M={class:"cropper-warp-right-value"},X=["src"],J={class:"cropper-warp-right-item"},G={class:"cropper-warp-right-value"},K=["src"],Q={class:"dialog-footer"},W=e.defineComponent({__name:"index",props:{title:{type:String,default:""}},emits:["submitImage","deleteImage"],setup(r,{expose:o,emit:l}){const i=l,p=e.ref(),t=e.reactive({isShowDialog:!1,cropperImg:"",cropperImgBase64:"",cropper:null}),c=async s=>{if(t.isShowDialog=!0,!s)return;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s),e.nextTick(()=>{w()})},f=()=>{var s;(s=t.cropper)==null||s.destroy(),t.isShowDialog=!1},m=()=>{f()},y=async()=>{const s=await v();i("submitImage",{file:s}),f()},d=async()=>{i("deleteImage")},w=()=>{const s=document.querySelector(".cropper-warp-left-img");s&&s.setAttribute("crossOrigin","anonymous"),t.cropper=new I.Cropper(s,{viewMode:1,dragMode:"none",initialAspectRatio:1,aspectRatio:1,preview:".before",background:!0,autoCropArea:1,checkCrossOrigin:!1,crop:()=>{t.cropperImgBase64=t.cropper.getCroppedCanvas().toDataURL("image/jpeg")}})},v=async()=>t!=null&&t.cropper?new Promise(s=>{var n,u;(u=(n=t==null?void 0:t.cropper)==null?void 0:n.getCroppedCanvas())==null||u.toBlob(_=>{s(_)})}):(await fetch(t.cropperImg)).blob(),x=async s=>{var u;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s.raw),(u=t.cropper)==null||u.replace(t.cropperImg)},E=s=>{p.value.clearFiles();const n=s[0];n.uid=L(),p.value.handleStart(n)};return o({openDialog:c}),(s,n)=>{const u=e.resolveComponent("ele-Edit"),_=e.resolveComponent("el-icon"),g=e.resolveComponent("el-button"),P=e.resolveComponent("el-upload"),V=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(V,{modelValue:t.isShowDialog,"onUpdate:modelValue":n[0]||(n[0]=S=>t.isShowDialog=S),width:"769px","before-close":m},{header:e.withCtx(()=>[e.createElementVNode("div",j,[e.createVNode(_,{size:"16",style:{"margin-right":"3px",display:"inline","vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(u)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(r.title),1)])]),footer:e.withCtx(()=>[e.createElementVNode("span",Q,[e.createVNode(P,{class:"avatar-uploader",ref_key:"uploadSignRef",ref:p,accept:".jpg,.png",limit:1,"show-file-list":!1,"auto-upload":!1,"on-change":x,"on-exceed":E},{trigger:e.withCtx(()=>[e.createVNode(g,{type:"info",icon:"ele-Picture"},{default:e.withCtx(()=>n[4]||(n[4]=[e.createTextVNode("选择图片")])),_:1,__:[4]})]),default:e.withCtx(()=>[e.createVNode(g,{onClick:d,type:"danger",icon:"ele-Picture",style:{"margin-left":"8px"}},{default:e.withCtx(()=>n[5]||(n[5]=[e.createTextVNode("删除图片")])),_:1,__:[5]})]),_:1},512),e.createElementVNode("div",null,[e.createVNode(g,{onClick:m,id:"themeBorderButton"},{default:e.withCtx(()=>n[6]||(n[6]=[e.createTextVNode("取 消")])),_:1,__:[6]}),e.createVNode(g,{onClick:y,id:"themeButton"},{default:e.withCtx(()=>n[7]||(n[7]=[e.createTextVNode("确 定")])),_:1,__:[7]})])])]),default:e.withCtx(()=>[e.createElementVNode("div",q,[e.createElementVNode("div",A,[e.createElementVNode("img",{src:t.cropperImg,class:"cropper-warp-left-img"},null,8,$)]),e.createElementVNode("div",H,[n[3]||(n[3]=e.createElementVNode("div",{class:"cropper-warp-right-title"},"预览",-1)),e.createElementVNode("div",z,[e.createElementVNode("div",M,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img"},null,8,X)]),n[1]||(n[1]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"100 x 100",-1))]),e.createElementVNode("div",J,[e.createElementVNode("div",G,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img cropper-size"},null,8,K)]),n[2]||(n[2]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"50 x 50",-1))])])])]),_:1},8,["modelValue"])])}}}),b=C._export_sfc(W,[["__scopeId","data-v-4a19ffcf"]]),Y=e.defineComponent({__name:"index",props:{avatarUrl:{type:String,default:""},avatarBlob:{type:Blob,default:""},size:{type:[String,Number],default:"large"},showCropper:{type:Boolean,default:!0},banClick:{type:Boolean,default:!1},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage","clickAvatar"],setup(r,{emit:o}){const l=r,i=e.ref(),p=e.ref(null),t=o,c=()=>!0,f=async()=>{var d;l!=null&&l.banClick||(t("clickAvatar",l.avatarUrl),(d=i.value)==null||d.openDialog(l.avatarBlob))},m=async d=>{t("submitImage",d)},y=async()=>{t("deleteImage")};return(d,w)=>{const v=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(v,{src:r.avatarUrl,onClick:f,fit:"cover",size:r.size,ref_key:"avatarRef",ref:p,style:{background:"var(--user-avatar-bg)"},alt:"头像查找失败",onError:c},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"avatarDefault",{},void 0,!0)]),_:3},8,["src","size"]),e.withDirectives(e.createVNode(b,{ref_key:"cropperDialogRef",ref:i,title:"更改头像",avatarUrl:r.avatarUrl,onSubmitImage:m,onDeleteImage:y},null,8,["avatarUrl"]),[[e.vShow,r.showCropper&&(l==null?void 0:l.clickStop)]])],64)}}}),N=C._export_sfc(Y,[["__scopeId","data-v-82946fb9"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"}));exports.Avatar=N;exports.CropperDialog=b;exports.index=Z;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-DiowIVZT.cjs"),_=require("./index-BdXsBH1P.cjs"),r=require("./index-DcqWejmU.cjs"),C=require("./index-Dc6Q0f3F.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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const R=require("vue"),c=require("./index-DiowIVZT.cjs"),V=require("./index-BEpwtI2Q.cjs"),d=require("./index-Dc6Q0f3F.cjs"),j=require("./index-CpZcO0Vv.cjs");function k(s){return d.service({url:"http://222.92.178.198:63002/platform/getdata",method:"post",data:s})}function z(){return d.service({url:"http://222.92.178.198:63002/platform/admin/getdata",method:"post"})}function J(s){return d.service({url:"http://222.92.178.198:63002/platform/createdata",method:"post",data:s})}function O(s){return d.service({url:"http://222.92.178.198:63002/platform/updatedata",method:"post",data:s})}function Q(s){return d.service({url:"http://222.92.178.198:63002/platform/deletedata",method:"post",data:s})}function W(){return d.service({url:"http://222.92.178.198:63002/platform/getdata_state",method:"post"})}function X(s){return d.service({url:"http://222.92.178.198:63002/platform/updatedata_state",method:"post",data:s})}const Z="YYYY-MM-DD HH:mm:ss",tt="superAdmin",et="default",at={ENTER:"enter",SET_DEFAULT:"set-default",EDIT:"edit",DELETE:"delete"},st=[{label:"设为默认",value:"set-default"},{label:"编辑",value:"edit"},{label:"删除",value:"delete"}],u=s=>s?c.dayjs(s).format(Z):"",nt=()=>{const s=c.useLoginState(),n=c.useMenuState(c.pinia),y=R.computed(()=>"http://222.92.178.198:62001"),g=t=>{const e=s.loginUserInfo,{user_name:a,password:o}=e||{},r=u(Date.now());let l={platId:"",platName:"",platNameEN:"",logo:"",platType:"",platVersion:"",userName:a,password:o,platCreator:a,platCreatedAt:r,platUpdatedAt:r};if(t){const i=C(t);l={...l,...i}}return l},I=t=>{const e=s.loginUserInfo,{user_name:a,password:o}=e||{},{user_name:r,password:l}=t;return a===r&&o===l},h=()=>{const t=s.loginUserInfo,{layer:e}=t||{};return e===tt},w=t=>{if(!t)return!1;const{state:e}=t;return e===et},L=t=>{const e=c.cloneDeep(t),{plat_id:a}=e;sessionStorage.setItem("systemKey",a),s.setSystemKey(a),s.setLoginUserInfo(e),V.verifyStructureDataToStore()},M=t=>{const{plat_name:e,plat_type:a}=t;n.setPlatform(a),n.setPlatName(e)},_=t=>{n.setImportLoading(!0),L(t),M(t),n.setImportLoading(!1)},D=async()=>await z(),U=async()=>{var e;n.setImportLoading(!0);const t=await D().finally(()=>{n.setImportLoading(!1)});return(e=t==null?void 0:t.data)==null?void 0:e.result},S=async()=>{const t=s.loginUserInfo,{user_name:e,password:a}=t||{};return await k({userName:e,password:a})},v=async()=>{var e;n.setImportLoading(!0);const t=await S().finally(()=>{n.setImportLoading(!1)});return(e=t==null?void 0:t.data)==null?void 0:e.result},A=t=>{const e={myModelList:[],otherList:[]};if(!t||!t.length)return e;const a=c.cloneDeep(t),o=s.loginUserInfo,{user_name:r,password:l}=o||{};return a.forEach(i=>{const{user_name:p,password:m}=i;r===p&&l===m?e.myModelList.push(i):e.otherList.push(i)}),e},N=async t=>{await j.ElMessageBox.confirm("是否确认要删除","",{showClose:!1,confirmButtonText:"确认",cancelButtonText:"取消",type:"warning",modalClass:"delete-model-message-modal",cancelButtonClass:"delete-model-cancel",confirmButtonClass:"delete-model-confirm"});const{plat_id:e,user_name:a,password:o}=t;await Q({userName:a,password:o,platId:e})},T=async t=>{n.setImportLoading(!0),await N(t).finally(()=>{n.setImportLoading(!1)})},C=t=>{const{plat_id:e,plat_name:a,plat_name_en:o,logo:r,plat_type:l,plat_version:i,plat_creator:p,plat_created_at:m,user_name:$,password:G}=t,H=u(Date.now());return{platId:e,platName:a,platNameEN:o,logo:r,platType:l,platVersion:i,platCreator:p,platCreatedAt:m,platUpdatedAt:H,userName:$,password:G}},E=async t=>{await O(t)},P=async t=>{n.setImportLoading(!0),await E(t).finally(()=>{n.setImportLoading(!1)})},q=async t=>{t.platCreatedAt=u(Date.now()),await J(t)},x=async t=>{n.setImportLoading(!0),await q(t).finally(()=>{n.setImportLoading(!1)})},B=async t=>{await X(t)},F=async t=>{n.setImportLoading(!0);const e={platId:t,platUpdatedAt:u(Date.now())};await B(e).finally(()=>{n.setImportLoading(!1)})},Y=async t=>{var o,r,l;const e=await c.uploadFile(t);let a=null;return((o=e==null?void 0:e.data)==null?void 0:o.code)===200&&(a=y.value+"/"+((l=(r=e.data)==null?void 0:r.result)==null?void 0:l.url)),a},b=async t=>(n.setImportLoading(!0),await Y(t).finally(()=>{n.setImportLoading(!1)})),K=async()=>W(),f=async()=>{var e,a;const t=await K().finally(()=>{n.setImportLoading(!1)});return(a=(e=t==null?void 0:t.data)==null?void 0:e.result)==null?void 0:a[0]};return{initAllModelList:U,initModelInfo:_,initModelItem:g,initModelList:v,classifyModelByAccount:A,initCreate:x,initUpdate:P,initDelete:T,initSetDefaultModel:F,initUpload:b,initPlatformInfo:f,initSystemInfo:async()=>{const t=await f(),{plat_id:e,plat_name:a,plat_name_en:o,logo:r}=t,l={EnglishName:o,chineseName:a,logo:r,plat_id:e};s.setSystemInfo(l),sessionStorage.setItem("systemKey",e)},isMe:I,isSuperAdmin:h,isDefaultModel:w}};exports.operateConstants=at;exports.operateList=st;exports.useModelManagement=nt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-Bk8qPn0a.cjs"),_=require("./index-BGo77kB8.cjs");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_92c12abe_lang-yeqe0Dqi.cjs");const h=require("./index-BxNotDao.cjs"),f=require("./index-DiowIVZT.cjs");require("./index-Dc6Q0f3F.cjs");const y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V={class:"personal-wrapper"},x={class:"personal-box left"},N={class:"base-avatar"},S={class:"center-avatar"},D={class:"base-info"},E={class:"base-signature"},k={class:"personal-box right"},B=e.defineComponent({__name:"index",setup(T){const t=e.reactive({...l.State}),b=f.useLoginState(),{loginUserInfo:n}=f.storeToRefs(b);return e.onMounted(()=>{var s;t.getUserTableHeadersAsync(),t.refreshLoginUserInfoAsync((s=n==null?void 0:n.value)==null?void 0:s.id),l.tabKey.value++}),(s,o)=>{var c,d,u,g,p,m,v;const r=e.resolveComponent("svg-icon"),i=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("div",x,[e.createElementVNode("div",N,[e.createElementVNode("div",S,[e.withDirectives(e.createVNode(_.ssAvatar,{size:100,disabled:t.uploadDisabled,userInfo:e.unref(n),onSubmitImage:o[0]||(o[0]=a=>t.submitImageAsync("avatarUrl",a))},null,8,["disabled","userInfo"]),[[i,t.avatarLoading]])])]),e.createElementVNode("div",D,[e.createElementVNode("div",null,[e.createVNode(r,{name:"userAccount",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((c=e.unref(n))==null?void 0:c.account)||(((d=e.unref(n))==null?void 0:d.姓名)??"未知")),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"role",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((u=e.unref(n))==null?void 0:u.layer)==="superAdmin"?"超级管理员":((g=e.unref(n))==null?void 0:g.角色名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"dept",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((p=e.unref(n))==null?void 0:p.部门名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"status",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((m=e.unref(n))==null?void 0:m.layer)==="superAdmin"?"启用":((v=e.unref(n))==null?void 0:v.状态)??"未知"),1)])]),e.createElementVNode("div",E,[e.withDirectives(e.createVNode(_.ssSignature,{userInfo:e.unref(n),itemData:t.itemData,onClickSignButton:t.clickSignButton,onBeforeDestroy:t.beforeSignDestroy,onClickSubmitSign:o[1]||(o[1]=a=>t.submitImageAsync("signature",a))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"]),[[i,t.signatureLoading]])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[(e.openBlock(),e.createBlock(h.ssTab,{key:e.unref(l.tabKey),tabsContents:t.tabsContents,onChangeTrigger:t.changeFormTrigger,onClickTrigger:t.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])),[[i,t.loading]])])}}}),C=y._export_sfc(B,[["__scopeId","data-v-3bdf3f4b"]]);exports.default=C;
|
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
import { createElementBlock as V, openBlock as x, createElementVNode as u, renderSlot as k, defineComponent as U, ref as F, resolveComponent as E, createVNode as h, withCtx as m, unref as $, reactive as q, watch as O, onBeforeUnmount as G, onMounted as J, createCommentVNode as Q, toDisplayString as R, createTextVNode as I } from "vue";
|
|
2
|
+
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
import { b as D, p as H, s as X } from "./index-Cn5h5u4P.js";
|
|
4
|
+
import { v as Y } from "./index-V_SKEMp8.js";
|
|
5
|
+
import { E as j, a as Z } from "./index-WLdc1goT.js";
|
|
6
|
+
import { useRouter as ee } from "vue-router";
|
|
7
|
+
import { v as te } from "./index-D8c3Spt0.js";
|
|
8
|
+
import { l as ae, a as oe } from "./index-DoHjMY5d.js";
|
|
9
|
+
import { u as se } from "./index-DpdFnDS3.js";
|
|
10
|
+
const ne = {}, ie = { class: "left-wrap" }, ce = { class: "left-bg" };
|
|
11
|
+
function le(w, p) {
|
|
12
|
+
return x(), V("div", ie, [
|
|
13
|
+
u("div", ce, [
|
|
14
|
+
k(w.$slots, "img", {}, void 0, !0)
|
|
15
|
+
])
|
|
16
|
+
]);
|
|
17
|
+
}
|
|
18
|
+
const re = /* @__PURE__ */ B(ne, [["render", le], ["__scopeId", "data-v-9b7ee6c9"]]), M = {
|
|
19
|
+
ACCOUNT: "account",
|
|
20
|
+
FACE: "face"
|
|
21
|
+
}, de = { class: "right-wrap" }, ue = { class: "tab-content" }, me = { class: "tab-tips" }, fe = { class: "tab-content" }, ge = { class: "tab-tips" }, pe = /* @__PURE__ */ U({
|
|
22
|
+
__name: "index",
|
|
23
|
+
props: {
|
|
24
|
+
tabList: {
|
|
25
|
+
type: Array,
|
|
26
|
+
default: []
|
|
27
|
+
},
|
|
28
|
+
loading: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !1
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
emits: ["clickLogin", "handleTabChange"],
|
|
34
|
+
setup(w, { emit: p }) {
|
|
35
|
+
const t = F(M.ACCOUNT), e = p, _ = () => {
|
|
36
|
+
e("clickLogin", t.value);
|
|
37
|
+
}, i = (o) => {
|
|
38
|
+
e("handleTabChange", o);
|
|
39
|
+
};
|
|
40
|
+
return (o, c) => {
|
|
41
|
+
const s = E("el-button"), r = E("el-tab-pane"), g = E("el-tabs");
|
|
42
|
+
return x(), V("div", de, [
|
|
43
|
+
h(g, {
|
|
44
|
+
modelValue: t.value,
|
|
45
|
+
"onUpdate:modelValue": c[0] || (c[0] = (v) => t.value = v),
|
|
46
|
+
class: "right-tabs",
|
|
47
|
+
onTabChange: i
|
|
48
|
+
}, {
|
|
49
|
+
default: m(() => [
|
|
50
|
+
h(r, {
|
|
51
|
+
name: $(M).ACCOUNT
|
|
52
|
+
}, {
|
|
53
|
+
label: m(() => [
|
|
54
|
+
k(o.$slots, "tabLabel1", {}, void 0, !0)
|
|
55
|
+
]),
|
|
56
|
+
default: m(() => [
|
|
57
|
+
u("div", ue, [
|
|
58
|
+
k(o.$slots, "tabContent1", {}, void 0, !0)
|
|
59
|
+
]),
|
|
60
|
+
u("div", {
|
|
61
|
+
class: "tab-button special",
|
|
62
|
+
onClick: _
|
|
63
|
+
}, [
|
|
64
|
+
h(s, { loading: w.loading }, {
|
|
65
|
+
default: m(() => [
|
|
66
|
+
k(o.$slots, "tabButton1", {}, void 0, !0)
|
|
67
|
+
]),
|
|
68
|
+
_: 3
|
|
69
|
+
}, 8, ["loading"])
|
|
70
|
+
]),
|
|
71
|
+
u("div", me, [
|
|
72
|
+
k(o.$slots, "tabTips1", {}, void 0, !0)
|
|
73
|
+
])
|
|
74
|
+
]),
|
|
75
|
+
_: 3
|
|
76
|
+
}, 8, ["name"]),
|
|
77
|
+
h(r, {
|
|
78
|
+
name: $(M).FACE
|
|
79
|
+
}, {
|
|
80
|
+
label: m(() => [
|
|
81
|
+
k(o.$slots, "tabLabel2", {}, void 0, !0)
|
|
82
|
+
]),
|
|
83
|
+
default: m(() => [
|
|
84
|
+
u("div", fe, [
|
|
85
|
+
k(o.$slots, "tabContent2", {}, void 0, !0)
|
|
86
|
+
]),
|
|
87
|
+
u("div", ge, [
|
|
88
|
+
k(o.$slots, "tabTips2", {}, void 0, !0)
|
|
89
|
+
])
|
|
90
|
+
]),
|
|
91
|
+
_: 3
|
|
92
|
+
}, 8, ["name"])
|
|
93
|
+
]),
|
|
94
|
+
_: 3
|
|
95
|
+
}, 8, ["modelValue"])
|
|
96
|
+
]);
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
}), _e = /* @__PURE__ */ B(pe, [["__scopeId", "data-v-8b1962f0"]]), ve = { class: "account-wrap" }, be = /* @__PURE__ */ U({
|
|
100
|
+
__name: "index",
|
|
101
|
+
props: {
|
|
102
|
+
activeTabName: {
|
|
103
|
+
type: String,
|
|
104
|
+
default: ""
|
|
105
|
+
},
|
|
106
|
+
isClickLogin: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
default: !1
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
emits: ["handleLoginFormChange"],
|
|
112
|
+
setup(w, { emit: p }) {
|
|
113
|
+
const t = w, e = q({
|
|
114
|
+
account: "",
|
|
115
|
+
password: ""
|
|
116
|
+
}), _ = q({
|
|
117
|
+
account: [
|
|
118
|
+
{ required: !0, message: "请输入账号", trigger: "blur" }
|
|
119
|
+
],
|
|
120
|
+
password: [
|
|
121
|
+
{ required: !0, message: "请输入密码", trigger: "blur" }
|
|
122
|
+
]
|
|
123
|
+
}), i = F(null), o = p;
|
|
124
|
+
return O(() => t.isClickLogin, (c) => {
|
|
125
|
+
var s;
|
|
126
|
+
c && (t == null ? void 0 : t.activeTabName) === "account" && ((s = i.value) == null || s.validate((r) => {
|
|
127
|
+
var g;
|
|
128
|
+
for (let v in e)
|
|
129
|
+
e.hasOwnProperty(v) && (e[v] = (g = e[v]) == null ? void 0 : g.trim());
|
|
130
|
+
o("handleLoginFormChange", r, r ? e : null);
|
|
131
|
+
}));
|
|
132
|
+
}, {
|
|
133
|
+
immediate: !0
|
|
134
|
+
}), O(() => t.activeTabName, (c) => {
|
|
135
|
+
var s;
|
|
136
|
+
c === "account" && ((s = i.value) == null || s.resetFields());
|
|
137
|
+
}), (c, s) => {
|
|
138
|
+
const r = E("svg-icon"), g = E("el-input"), v = E("el-form-item"), L = E("el-form");
|
|
139
|
+
return x(), V("div", ve, [
|
|
140
|
+
h(L, {
|
|
141
|
+
model: e,
|
|
142
|
+
rules: _,
|
|
143
|
+
ref_key: "formRef",
|
|
144
|
+
ref: i
|
|
145
|
+
}, {
|
|
146
|
+
default: m(() => [
|
|
147
|
+
h(v, {
|
|
148
|
+
label: "",
|
|
149
|
+
prop: "account"
|
|
150
|
+
}, {
|
|
151
|
+
default: m(() => [
|
|
152
|
+
h(g, {
|
|
153
|
+
class: "account-input",
|
|
154
|
+
modelValue: e.account,
|
|
155
|
+
"onUpdate:modelValue": s[0] || (s[0] = (a) => e.account = a),
|
|
156
|
+
placeholder: "请输入账号",
|
|
157
|
+
clearable: ""
|
|
158
|
+
}, {
|
|
159
|
+
prefix: m(() => [
|
|
160
|
+
h(r, {
|
|
161
|
+
name: "account",
|
|
162
|
+
style: { width: "15px", height: "15px" }
|
|
163
|
+
})
|
|
164
|
+
]),
|
|
165
|
+
_: 1
|
|
166
|
+
}, 8, ["modelValue"])
|
|
167
|
+
]),
|
|
168
|
+
_: 1
|
|
169
|
+
}),
|
|
170
|
+
h(v, {
|
|
171
|
+
label: "",
|
|
172
|
+
prop: "password"
|
|
173
|
+
}, {
|
|
174
|
+
default: m(() => [
|
|
175
|
+
h(g, {
|
|
176
|
+
class: "account-input",
|
|
177
|
+
modelValue: e.password,
|
|
178
|
+
"onUpdate:modelValue": s[1] || (s[1] = (a) => e.password = a),
|
|
179
|
+
type: "password",
|
|
180
|
+
placeholder: "请输入密码",
|
|
181
|
+
"show-password": "",
|
|
182
|
+
clearable: ""
|
|
183
|
+
}, {
|
|
184
|
+
prefix: m(() => [
|
|
185
|
+
h(r, {
|
|
186
|
+
name: "password",
|
|
187
|
+
style: { width: "15px", height: "15px" }
|
|
188
|
+
})
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}, 8, ["modelValue"])
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
})
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, ["model", "rules"])
|
|
198
|
+
]);
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
}), he = /* @__PURE__ */ B(be, [["__scopeId", "data-v-48037c0f"]]), ye = { class: "account-wrap" }, Ce = { class: "video-wrap" }, we = /* @__PURE__ */ U({
|
|
202
|
+
__name: "index",
|
|
203
|
+
props: {
|
|
204
|
+
systemKey: { default: "" },
|
|
205
|
+
activeTabName: { default: "" },
|
|
206
|
+
isClickLogin: { type: Boolean, default: !1 }
|
|
207
|
+
},
|
|
208
|
+
emits: ["handleLoginFormChange"],
|
|
209
|
+
setup(w, { emit: p }) {
|
|
210
|
+
const t = w, e = p;
|
|
211
|
+
D(H);
|
|
212
|
+
const _ = F(null), i = F(null);
|
|
213
|
+
let o = !1, c = null;
|
|
214
|
+
const s = async (a) => {
|
|
215
|
+
if (!a)
|
|
216
|
+
return;
|
|
217
|
+
const l = new FormData();
|
|
218
|
+
l.set("file", a), t.systemKey && l.set("systemKey", t.systemKey), console.log("Face Recognition", t.systemKey);
|
|
219
|
+
const T = await Y(l), { data: b } = T || {}, { user_name: C, password: d, layer: n } = (b == null ? void 0 : b.data) || {}, f = b == null ? void 0 : b.msg;
|
|
220
|
+
if (!C) {
|
|
221
|
+
j.warning(f || "识别失败,请重新识别!");
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
e("handleLoginFormChange", !0, {
|
|
225
|
+
account: C,
|
|
226
|
+
password: d
|
|
227
|
+
});
|
|
228
|
+
}, r = () => {
|
|
229
|
+
if (!i.value || !_.value)
|
|
230
|
+
return;
|
|
231
|
+
const a = i.value, l = a.getContext("2d"), T = _.value;
|
|
232
|
+
a.width = 200, a.height = 200;
|
|
233
|
+
const b = T.videoWidth || 640, C = T.videoHeight || 480, d = Math.min(200 / b, 200 / C), n = b * d, f = C * d, y = (200 - n) / 2, S = (200 - f) / 2;
|
|
234
|
+
l == null || l.drawImage(T, 0, 0, b, C, y, S, n, f), a.toBlob((N) => {
|
|
235
|
+
if (N) {
|
|
236
|
+
const A = new File([N], "face.png", { type: "image/png" });
|
|
237
|
+
s(A);
|
|
238
|
+
}
|
|
239
|
+
}, "image/png");
|
|
240
|
+
}, g = async () => {
|
|
241
|
+
if (!_.value || o)
|
|
242
|
+
return;
|
|
243
|
+
const a = _.value;
|
|
244
|
+
try {
|
|
245
|
+
if (c = await navigator.mediaDevices.getUserMedia({
|
|
246
|
+
video: { facingMode: "user" },
|
|
247
|
+
// 前置;后置用 'environment'
|
|
248
|
+
audio: !1
|
|
249
|
+
}), a) {
|
|
250
|
+
const l = a;
|
|
251
|
+
l.srcObject = c, o = !0;
|
|
252
|
+
}
|
|
253
|
+
} catch {
|
|
254
|
+
j.warning("摄像头启动失败");
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
function v(a) {
|
|
258
|
+
if (a && (a.getTracks().forEach((l) => l.stop()), _.value)) {
|
|
259
|
+
const l = _.value;
|
|
260
|
+
l.srcObject = null;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
const L = () => {
|
|
264
|
+
v(c), o = !1;
|
|
265
|
+
};
|
|
266
|
+
return O(() => t.activeTabName, (a) => {
|
|
267
|
+
if (a !== M.FACE) {
|
|
268
|
+
L();
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
if (a === M.FACE && !o) {
|
|
272
|
+
g();
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
}), G(() => {
|
|
276
|
+
L();
|
|
277
|
+
}), (a, l) => (x(), V("div", ye, [
|
|
278
|
+
u("div", Ce, [
|
|
279
|
+
u("video", {
|
|
280
|
+
class: "face-video",
|
|
281
|
+
ref_key: "videoRef",
|
|
282
|
+
ref: _,
|
|
283
|
+
id: "v",
|
|
284
|
+
autoplay: "",
|
|
285
|
+
playsinline: ""
|
|
286
|
+
}, null, 512)
|
|
287
|
+
]),
|
|
288
|
+
u("button", {
|
|
289
|
+
class: "face-screenshot",
|
|
290
|
+
onClick: r
|
|
291
|
+
}, "人脸识别"),
|
|
292
|
+
u("canvas", {
|
|
293
|
+
ref_key: "canvasRef",
|
|
294
|
+
ref: i,
|
|
295
|
+
id: "canvas"
|
|
296
|
+
}, null, 512)
|
|
297
|
+
]));
|
|
298
|
+
}
|
|
299
|
+
}), Le = /* @__PURE__ */ B(we, [["__scopeId", "data-v-0efc65bd"]]), W = D(H), { isDefaultModel: Te } = se(), Ne = async (w, p) => {
|
|
300
|
+
var _, i, o, c, s, r, g, v, L, a, l, T, b, C;
|
|
301
|
+
let t = Object.values(w), e = await ae({
|
|
302
|
+
userName: (_ = t == null ? void 0 : t[0]) == null ? void 0 : _.trim(),
|
|
303
|
+
password: (i = t == null ? void 0 : t[1]) == null ? void 0 : i.trim()
|
|
304
|
+
});
|
|
305
|
+
if (((o = e == null ? void 0 : e.data) == null ? void 0 : o.status) === 200 && ((s = (c = e == null ? void 0 : e.data) == null ? void 0 : c.result) == null ? void 0 : s.length) <= 0 && (e = await oe({
|
|
306
|
+
userName: (r = t == null ? void 0 : t[0]) == null ? void 0 : r.trim(),
|
|
307
|
+
password: (g = t == null ? void 0 : t[1]) == null ? void 0 : g.trim(),
|
|
308
|
+
path: "系统管理/用户管理",
|
|
309
|
+
platId: p
|
|
310
|
+
})), ((v = e == null ? void 0 : e.data) == null ? void 0 : v.status) === 200 && ((a = (L = e == null ? void 0 : e.data) == null ? void 0 : L.result) == null ? void 0 : a.length) > 0) {
|
|
311
|
+
const n = ((T = (l = e == null ? void 0 : e.data) == null ? void 0 : l.result) == null ? void 0 : T.find((y) => Te(y))) || ((C = (b = e == null ? void 0 : e.data) == null ? void 0 : b.result) == null ? void 0 : C[0]);
|
|
312
|
+
sessionStorage.setItem("systemKey", p && p !== "" ? p : n == null ? void 0 : n.plat_id);
|
|
313
|
+
let f = n;
|
|
314
|
+
return f.plat_id = f.plat_id ?? p, W.setLoginUserInfo(f), W.setSystemKey(p && p !== "" ? p : n == null ? void 0 : n.plat_id), !0;
|
|
315
|
+
} else
|
|
316
|
+
return j.error("输入的密码错误,请重新输入"), !1;
|
|
317
|
+
}, ke = { class: "login-wrap" }, $e = { class: "login-body" }, Fe = { class: "login-body-item left" }, Se = { class: "title" }, Ae = { class: "first-level" }, Re = {
|
|
318
|
+
key: 0,
|
|
319
|
+
class: "logo"
|
|
320
|
+
}, Ee = ["src"], Ve = { class: "english-name" }, xe = { class: "login-body-item right" }, Ke = /* @__PURE__ */ U({
|
|
321
|
+
__name: "index",
|
|
322
|
+
props: {
|
|
323
|
+
oldSystemKey: {}
|
|
324
|
+
},
|
|
325
|
+
emits: ["change"],
|
|
326
|
+
setup(w, { emit: p }) {
|
|
327
|
+
const t = ee(), e = D(H), { systemKey: _, systemInfo: i, loginUserInfo: o } = X(e), c = F({
|
|
328
|
+
// sysCTitle: 'INSOFWORKS',
|
|
329
|
+
sysCTitle: "",
|
|
330
|
+
sysETitle: "",
|
|
331
|
+
// sysETitle: 'Dynamic Test Information System',
|
|
332
|
+
loginTitle: "账户密码登录",
|
|
333
|
+
tabs: [
|
|
334
|
+
{
|
|
335
|
+
name: "密码登录",
|
|
336
|
+
btnLabel: "登录",
|
|
337
|
+
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
name: "人脸识别",
|
|
341
|
+
btnLabel: "人脸识别",
|
|
342
|
+
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
name: "刷卡登录",
|
|
346
|
+
btnLabel: "登录",
|
|
347
|
+
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
348
|
+
}
|
|
349
|
+
]
|
|
350
|
+
}), s = F("account"), r = F(!1), g = F(!1), v = () => {
|
|
351
|
+
r.value = !0;
|
|
352
|
+
}, L = (d, n) => {
|
|
353
|
+
r.value = !1, d && T(n);
|
|
354
|
+
}, a = async () => (sessionStorage.setItem("loginToken", "111"), !0), l = async () => {
|
|
355
|
+
var d, n, f;
|
|
356
|
+
try {
|
|
357
|
+
const y = await Z.post("http://139.196.154.85:20024/api/sysAuth/login", {
|
|
358
|
+
account: "superadmin",
|
|
359
|
+
password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
|
|
360
|
+
codeId: 0,
|
|
361
|
+
code: ""
|
|
362
|
+
});
|
|
363
|
+
return ((d = y == null ? void 0 : y.data) == null ? void 0 : d.code) === 200 && sessionStorage.setItem("magicToken", (f = (n = y.data) == null ? void 0 : n.result) == null ? void 0 : f.accessToken), !0;
|
|
364
|
+
} catch {
|
|
365
|
+
return !0;
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
J(async () => {
|
|
369
|
+
await a();
|
|
370
|
+
});
|
|
371
|
+
const T = async (d) => {
|
|
372
|
+
var S, N, A, K, P;
|
|
373
|
+
g.value = !0;
|
|
374
|
+
let n = [Ne(d, (S = i.value) == null ? void 0 : S.plat_id), a(), l()];
|
|
375
|
+
const f = await Promise.all(n);
|
|
376
|
+
(f == null ? void 0 : f.every((z) => z)) ? (await te(), t.push("/"), e.setLogRecordAsync({
|
|
377
|
+
type: "登录",
|
|
378
|
+
data: {
|
|
379
|
+
account: ((N = o.value) == null ? void 0 : N.account) ?? ((A = o.value) == null ? void 0 : A.账号),
|
|
380
|
+
userName: ((K = o.value) == null ? void 0 : K.姓名) || ((P = o.value) == null ? void 0 : P.userName) || "未知"
|
|
381
|
+
}
|
|
382
|
+
}, "/login", "login")) : g.value = !1;
|
|
383
|
+
}, b = (d) => {
|
|
384
|
+
s.value = d, r.value = !1, g.value = !1;
|
|
385
|
+
}, C = (d) => /^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(d);
|
|
386
|
+
return (d, n) => (x(), V("div", ke, [
|
|
387
|
+
u("div", $e, [
|
|
388
|
+
u("div", Fe, [
|
|
389
|
+
h(re, { class: "login-left-bg" }, {
|
|
390
|
+
img: m(() => {
|
|
391
|
+
var f, y, S, N, A, K;
|
|
392
|
+
return [
|
|
393
|
+
u("div", Se, [
|
|
394
|
+
u("div", Ae, [
|
|
395
|
+
(f = $(i)) != null && f.logo ? (x(), V("div", Re, [
|
|
396
|
+
u("img", {
|
|
397
|
+
src: (y = $(i)) == null ? void 0 : y.logo,
|
|
398
|
+
alt: ""
|
|
399
|
+
}, null, 8, Ee)
|
|
400
|
+
])) : Q("", !0),
|
|
401
|
+
u("div", Ve, R(((S = $(i)) == null ? void 0 : S.EnglishName) || "INSOFWORKS"), 1)
|
|
402
|
+
]),
|
|
403
|
+
u("div", null, R((N = $(i)) != null && N.chineseName && C((A = $(i)) == null ? void 0 : A.chineseName) ? (K = $(i)) == null ? void 0 : K.chineseName : "工业软件集成开发平台"), 1)
|
|
404
|
+
]),
|
|
405
|
+
n[0] || (n[0] = u("div", { class: "divide-line" }, null, -1))
|
|
406
|
+
];
|
|
407
|
+
}),
|
|
408
|
+
_: 1
|
|
409
|
+
})
|
|
410
|
+
]),
|
|
411
|
+
u("div", xe, [
|
|
412
|
+
h(_e, {
|
|
413
|
+
loading: g.value,
|
|
414
|
+
onClickLogin: v,
|
|
415
|
+
onHandleTabChange: b
|
|
416
|
+
}, {
|
|
417
|
+
title: m(() => [
|
|
418
|
+
I(R(c.value.loginTitle), 1)
|
|
419
|
+
]),
|
|
420
|
+
tabLabel1: m(() => [
|
|
421
|
+
I(R(c.value.tabs[0].name), 1)
|
|
422
|
+
]),
|
|
423
|
+
tabContent1: m(() => [
|
|
424
|
+
h(he, {
|
|
425
|
+
activeTabName: s.value,
|
|
426
|
+
isClickLogin: r.value,
|
|
427
|
+
onHandleLoginFormChange: L
|
|
428
|
+
}, null, 8, ["activeTabName", "isClickLogin"])
|
|
429
|
+
]),
|
|
430
|
+
tabButton1: m(() => [
|
|
431
|
+
I(R(c.value.tabs[0].btnLabel), 1)
|
|
432
|
+
]),
|
|
433
|
+
tabLabel2: m(() => [
|
|
434
|
+
I(R(c.value.tabs[1].name), 1)
|
|
435
|
+
]),
|
|
436
|
+
tabContent2: m(() => [
|
|
437
|
+
h(Le, {
|
|
438
|
+
systemKey: d.oldSystemKey,
|
|
439
|
+
activeTabName: s.value,
|
|
440
|
+
isClickLogin: r.value,
|
|
441
|
+
onHandleLoginFormChange: L
|
|
442
|
+
}, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
|
|
443
|
+
]),
|
|
444
|
+
tabButton2: m(() => [
|
|
445
|
+
I(R(c.value.tabs[1].btnLabel), 1)
|
|
446
|
+
]),
|
|
447
|
+
_: 1
|
|
448
|
+
}, 8, ["loading"])
|
|
449
|
+
])
|
|
450
|
+
])
|
|
451
|
+
]));
|
|
452
|
+
}
|
|
453
|
+
}), qe = /* @__PURE__ */ B(Ke, [["__scopeId", "data-v-ae346b8e"]]);
|
|
454
|
+
export {
|
|
455
|
+
qe as default
|
|
456
|
+
};
|