ss-component-new 1.3.259 → 1.3.261

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.
Files changed (101) hide show
  1. package/dist/{MTLLoader-DH3PQXOO.cjs → MTLLoader-BsqwriNo.cjs} +1 -1
  2. package/dist/{MTLLoader-595cZ4m2.js → MTLLoader-D9FXh0av.js} +1 -1
  3. package/dist/{OrbitControls-Df84SjXn.js → OrbitControls-BhSNZh4X.js} +1 -1
  4. package/dist/{OrbitControls-CDuSycU3.cjs → OrbitControls-Di7FQaXo.cjs} +1 -1
  5. package/dist/{URDFLoader-Dtfj6gNM.js → URDFLoader-Cnhnyl94.js} +2 -2
  6. package/dist/{URDFLoader-Q-DvMzKP.cjs → URDFLoader-hx0-X57p.cjs} +1 -1
  7. package/dist/{animationData-C9JsziCo.cjs → animationData-DlThKFpQ.cjs} +1 -1
  8. package/dist/{animationData-DacS-QTH.js → animationData-XUsnpQH1.js} +3 -3
  9. package/dist/{array-RDe9RaHh.js → array-CLSp1EEl.js} +3 -3
  10. package/dist/{array-B8rYdSTk.cjs → array-DV_ScmTv.cjs} +1 -1
  11. package/dist/{clone-cM8PErVC.js → clone-BMUYMGAE.js} +1 -1
  12. package/dist/clone-D29e8H2G.cjs +1 -0
  13. package/dist/{iconfont-B9CxBWDu.cjs → iconfont-Dhyfi3HE.cjs} +1 -1
  14. package/dist/{iconfont-C3SiSauF.js → iconfont-DmTbGwPr.js} +2 -2
  15. package/dist/{index-B7VSNXy4.js → index-0DVUq91d.js} +4 -4
  16. package/dist/{index-JOJ40iYk.js → index-0v52Gu-5.js} +1 -1
  17. package/dist/{index-DZkIn6-P.cjs → index-1N-nZDRm.cjs} +1 -1
  18. package/dist/{index-WB2eXr3X.cjs → index-5YLH8rah.cjs} +1 -1
  19. package/dist/{index-TAMrz6rr.js → index-6WZVQw1m.js} +5 -5
  20. package/dist/{index-B4C-AXOR.cjs → index-8FH1gVb5.cjs} +1 -1
  21. package/dist/{index-B3dXkW8_.js → index-B3Y3-rnP.js} +23 -19
  22. package/dist/{index-4qfYzB5h.cjs → index-B8D7Ltja.cjs} +1 -1
  23. package/dist/{index-BBfrZmOV.cjs → index-B9F2cDrZ.cjs} +1 -1
  24. package/dist/{index-Cvto4PV6.cjs → index-BCeLHBwl.cjs} +1 -1
  25. package/dist/{index-BLmuMfwa.cjs → index-BIYEGouV.cjs} +1 -1
  26. package/dist/{index-CuLQJ0KX.cjs → index-BMORX6RQ.cjs} +1 -1
  27. package/dist/{index-CWbCip8o.js → index-BPghm1Ll.js} +1 -1
  28. package/dist/{index-BhNqAM-I.cjs → index-BSiHIc6v.cjs} +1 -1
  29. package/dist/{index-2QwpN3s2.js → index-BUs4hN8N.js} +1 -1
  30. package/dist/{index-DLdtmRtE.js → index-BabDfdY_.js} +1 -1
  31. package/dist/{index-BQUyJbvM.js → index-BctLTNEM.js} +11 -11
  32. package/dist/{index-C4oF9ssF.js → index-Btbn_YrP.js} +2 -2
  33. package/dist/{index-DwRfRH0l.cjs → index-Bxx6Nkwu.cjs} +1 -1
  34. package/dist/{index-BdI2FcCh.cjs → index-ByDWpfXy.cjs} +1 -1
  35. package/dist/{index-CxwPZGOH.cjs → index-Byix7Qep.cjs} +1 -1
  36. package/dist/{index-Cpyq2RP4.cjs → index-C-YyJd-9.cjs} +1 -1
  37. package/dist/{index-etThQmBs.cjs → index-C5QOeEOi.cjs} +1 -1
  38. package/dist/{index-DCWUnexL.js → index-CBw4RhET.js} +3 -3
  39. package/dist/{index-BhstInOW.cjs → index-CCT01X-C.cjs} +1 -1
  40. package/dist/{index-CkxXobFY.js → index-CJyjWQPM.js} +1 -1
  41. package/dist/{index-DVGEqRq6.js → index-CKqKt3uZ.js} +2 -2
  42. package/dist/{index-A7x1jTvg.cjs → index-CVNWkOWJ.cjs} +1 -1
  43. package/dist/{index-CMKeMpTl.cjs → index-CYhghfwd.cjs} +1 -1
  44. package/dist/{index-tGLle44C.js → index-CeU4RrOX.js} +2 -2
  45. package/dist/{index-CKMp69yp.js → index-CgioU-I8.js} +3 -3
  46. package/dist/{index-DEnDl7AH.cjs → index-CujmqtON.cjs} +1 -1
  47. package/dist/{index-HBSFju_E.cjs → index-Cz2BsVL0.cjs} +1 -1
  48. package/dist/{index-CoXTsDgP.cjs → index-D6hb3TO_.cjs} +1 -1
  49. package/dist/{index-D25do6AK.js → index-D7uc71w6.js} +2 -2
  50. package/dist/{index-BeXxhY1M.js → index-DDSqGoFj.js} +1 -1
  51. package/dist/{index-BAf0miHh.cjs → index-DDnjPPvF.cjs} +1 -1
  52. package/dist/{index-Dkz_QZP6.js → index-DNsv2poC.js} +8 -8
  53. package/dist/{index-DiTrXWyF.js → index-DNtygOfw.js} +2 -2
  54. package/dist/{index-BbwVK1Dx.cjs → index-DPtvW3Qt.cjs} +1 -1
  55. package/dist/{index-D149JwT5.cjs → index-DTWRo17N.cjs} +1 -1
  56. package/dist/{index-COUS0blT.js → index-DVQM9XfF.js} +19 -19
  57. package/dist/{index-BbHS-z9w.js → index-DWpcy2fq.js} +2 -2
  58. package/dist/{index-DdK0IjPC.js → index-DZKh4dCv.js} +4 -4
  59. package/dist/{index-D7Lm1-cq.js → index-Dbr-vT_L.js} +2 -2
  60. package/dist/{index-B4SAOzsz.js → index-DcKX8pwL.js} +1 -1
  61. package/dist/{index-B8aUMSv7.js → index-DdOOuoQQ.js} +5 -5
  62. package/dist/{index-BJObZqh3.cjs → index-DerTmr6B.cjs} +1 -1
  63. package/dist/{index-BJHW3poS.cjs → index-DkN4USSH.cjs} +4 -4
  64. package/dist/{index-QRC3qjtX.cjs → index-Dkpg2pEy.cjs} +1 -1
  65. package/dist/{index-CJ4K1Jkl.js → index-DkyzPRSf.js} +2 -2
  66. package/dist/{index-KFEhtKz_.js → index-Dn6qcU75.js} +1513 -1522
  67. package/dist/{index-BBWvFgtA.js → index-DoZrnDpN.js} +8 -8
  68. package/dist/{index-6L7jURef.cjs → index-Dt2zchu9.cjs} +1 -1
  69. package/dist/{index-DHRF8Dvv.js → index-DzZTCDPY.js} +1 -1
  70. package/dist/{index-Bo59mUC7.cjs → index-UcCsgBr8.cjs} +1 -1
  71. package/dist/{index-QcTC9tUK.js → index-gJtLqTXS.js} +2 -2
  72. package/dist/{index-6Umiikr5.cjs → index-laZQ5gZ5.cjs} +1 -1
  73. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CPVnjciH.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Bthm-Dpu.cjs} +1 -1
  74. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Cl8FH2DA.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-SjvxLc8m.js} +3 -3
  75. package/dist/{main-BnBsTywa.js → main-1l-tdijP.js} +4 -4
  76. package/dist/{main-a-5sYbSH.cjs → main-DntIBUcY.cjs} +1 -1
  77. package/dist/{menuIndex-DKZzTd_q.cjs → menuIndex-Cc5Z3H4U.cjs} +1 -1
  78. package/dist/{menuIndex-97h4uADz.js → menuIndex-DNtUqq9P.js} +1 -1
  79. package/dist/ss-component.cjs +1 -1
  80. package/dist/ss-component.css +1 -1
  81. package/dist/ss-component.js +11 -11
  82. package/dist/ss-component2.cjs +1 -1
  83. package/dist/ss-component2.js +12 -12
  84. package/dist/{threeModel-23XuLz8Y.js → threeModel-B1mnD3BH.js} +4 -4
  85. package/dist/{threeModel-TqgY-_aH.cjs → threeModel-CmvF3DWe.cjs} +1 -1
  86. package/dist/{threePreview-BoqKb2Sx.cjs → threePreview-De1lum21.cjs} +1 -1
  87. package/dist/{threePreview-DG3z_73E.js → threePreview-DxxHwNEc.js} +4 -4
  88. package/dist/{threeSceneView-gZGyxx3L.js → threeSceneView-CFieSJid.js} +11 -11
  89. package/dist/{threeSceneView-Bkm2hmf1.cjs → threeSceneView-CbHHeZwl.cjs} +1 -1
  90. package/dist/{threeSceneViewForCPMPIP-CYyLh5yE.js → threeSceneViewForCPMPIP-D2MazBFn.js} +8 -8
  91. package/dist/{threeSceneViewForCPMPIP-BVp_k0Mh.cjs → threeSceneViewForCPMPIP-DYkJmmAV.cjs} +1 -1
  92. package/dist/{threeTrackPathView-Dn0doWMp.js → threeTrackPathView-Bx1aNg0b.js} +4 -4
  93. package/dist/{threeTrackPathView-B1iFFqz7.cjs → threeTrackPathView-DBXjN7uZ.cjs} +1 -1
  94. package/dist/{threeViewerHost-Bwwxz6FM.cjs → threeViewerHost-HepDLH0y.cjs} +1 -1
  95. package/dist/{threeViewerHost-CQ6U1kVv.js → threeViewerHost-lNm_AsOf.js} +3 -3
  96. package/dist/{urdfTree-CPXOpDTe.cjs → urdfTree-B9ABOmxw.cjs} +1 -1
  97. package/dist/{urdfTree-4TR2VuBn.js → urdfTree-BYgt3igN.js} +1 -1
  98. package/dist/{workpieceTreePanel-D8dyaVWw.js → workpieceTreePanel-B6jLWUeB.js} +4 -4
  99. package/dist/{workpieceTreePanel-5X1EdKUN.cjs → workpieceTreePanel-C1TmYBn5.cjs} +1 -1
  100. package/package.json +1 -1
  101. package/dist/clone-BOZZ_-yU.cjs +0 -1
@@ -1,19 +1,19 @@
1
1
  import { defineAsyncComponent as At, computed as We, onMounted as yt, resolveComponent as H, createBlock as Ve, openBlock as R, withCtx as N, resolveDynamicComponent as vt, defineComponent as Pt, defineProps as Ot, ref as z, watch as Rt, reactive as $t, createElementBlock as q, Fragment as Ne, createVNode as x, createCommentVNode as xe, normalizeStyle as zt, toDisplayString as rt, createElementVNode as Je, renderList as pt, createTextVNode as ct } from "vue";
2
- import { u as qt, a as xt, p as nt, b as Jt, s as Qe, c as ue, v as Xe } from "./index-KFEhtKz_.js";
2
+ import { u as qt, a as xt, p as nt, b as Jt, s as Qe, c as ue, v as Xe } from "./index-Dn6qcU75.js";
3
3
  import { S as Wt } from "./index-BHtNKL1L.js";
4
- import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Cl8FH2DA.js";
4
+ import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-SjvxLc8m.js";
5
5
  import { I as Gt } from "./request-DeDL4lsA.js";
6
6
  import { s as Nt } from "./index-CnjGqJZS.js";
7
- import { c as Qt } from "./index-B8aUMSv7.js";
7
+ import { c as Qt } from "./index-DdOOuoQQ.js";
8
8
  import { useRouter as Xt } from "vue-router";
9
9
  import { a as Yt, e as Zt, f as Vt, g as Ht, h as ut } from "./index-C2UiLe43.js";
10
10
  import { g as Pe, u as Ye, a as ft, c as mt, d as ht } from "./index-BHbbxGc-.js";
11
- import { g as el } from "./index-BQUyJbvM.js";
12
- import { f as tl } from "./menuIndex-97h4uADz.js";
13
- import { b as Ze, c as dt, n as ll } from "./index-tGLle44C.js";
14
- import { u as sl } from "./index-D7Lm1-cq.js";
11
+ import { g as el } from "./index-BctLTNEM.js";
12
+ import { f as tl } from "./menuIndex-DNtUqq9P.js";
13
+ import { b as Ze, c as dt, n as ll } from "./index-CeU4RrOX.js";
14
+ import { u as sl } from "./index-Dbr-vT_L.js";
15
15
  import { _ as al } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const He = At(() => import("./index-B8aUMSv7.js").then((r) => r.n));
16
+ const He = At(() => import("./index-DdOOuoQQ.js").then((r) => r.n));
17
17
  He.install = (r) => {
18
18
  r.component("ssMenu", He);
19
19
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as x, ref as I, reactive as T, resolveComponent as v, createElementBlock as E, openBlock as U, createVNode as u, withCtx as d, createElementVNode as l, createTextVNode as h, toDisplayString as N, nextTick as q, Fragment as z, withDirectives as H, renderSlot as $, vShow as M } from "vue";
2
- import { ao as V } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Cl8FH2DA.js";
2
+ import { ao as V } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-SjvxLc8m.js";
3
3
  import { a7 as X, av as J, B as D, D as c, F as B, Z as g } from "./request-DeDL4lsA.js";
4
- import { ab as Z } from "./index-KFEhtKz_.js";
4
+ import { ab as Z } from "./index-Dn6qcU75.js";
5
5
  import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const G = "ElUpload";
7
7
  class K extends Error {
@@ -1 +1 @@
1
- "use strict";const o=require("vue"),A=require("vue-router"),s=require("./index-BJHW3poS.cjs"),i={ALLOW:{value:"允许"},DENY:{value:"不允许"}},C="系统管理/用户管理",_="用户列表",R={title:"个人中心",path:"/个人中心",level:1,show:!0,icon:"个人中心",carryData:!0,isPenultimate:!0,isRouter:!0,children:[],childMenus:[]},U=()=>{const d=A.useRouter(),c=s.useLoginState(),a=s.useMenuState(s.pinia),u=o.computed(()=>{const e=c.loginUserInfo,{plat_id:t}=e||{};return t}),p=o.computed(()=>{const e=c.loginUserInfo,{layer:t}=e||{};return t===s.superAdminFlag}),w=e=>{const{id:t}=e;return{id:t,password:"",allow_reset_password:i.DENY.value}},l=o.ref([]),y=o.computed(()=>{var t,n;const e=(n=(t=l.value)==null?void 0:t.find)==null?void 0:n.call(t,r=>r.property_name===_);return e==null?void 0:e.object_id}),f=async()=>{var n;const e={pageName:C,platId:u.value},t=await s.getPageDataApi(e);return((n=t==null?void 0:t.data)==null?void 0:n.result)||[]},m=async()=>{const e=await f();l.value=e||[]};o.onMounted(async()=>{await m()});const I=o.computed(()=>`content_${y.value}`),g=async e=>({platId:u.value,changeContents:[{tableContents:[e],tableName:I.value}]}),v=e=>{const{allow_reset_password:t}=e;return t===i.ALLOW.value},P=async e=>{const{id:t,password:n,allow_reset_password:r}=e;return g({id:t,password:n,allow_reset_password:r})},h=async e=>{const t=await P(e);return await s.pageBatchUpdateApi(t)};return{isSuperAdmin:p,toPersonalCenter:()=>{const e=s.cloneDeep(R);a.setAsideMenus([e]),a.setActiveMenuPath(e==null?void 0:e.path),a.setActiveAsideMenu(e),d.push(e.path)},isAllowReplacePassword:v,initReplacePassword:async e=>await h(e),initEditForm:w}};exports.usePersonalCenter=U;
1
+ "use strict";const o=require("vue"),A=require("vue-router"),s=require("./index-DkN4USSH.cjs"),i={ALLOW:{value:"允许"},DENY:{value:"不允许"}},C="系统管理/用户管理",_="用户列表",R={title:"个人中心",path:"/个人中心",level:1,show:!0,icon:"个人中心",carryData:!0,isPenultimate:!0,isRouter:!0,children:[],childMenus:[]},U=()=>{const d=A.useRouter(),c=s.useLoginState(),a=s.useMenuState(s.pinia),u=o.computed(()=>{const e=c.loginUserInfo,{plat_id:t}=e||{};return t}),p=o.computed(()=>{const e=c.loginUserInfo,{layer:t}=e||{};return t===s.superAdminFlag}),w=e=>{const{id:t}=e;return{id:t,password:"",allow_reset_password:i.DENY.value}},l=o.ref([]),y=o.computed(()=>{var t,n;const e=(n=(t=l.value)==null?void 0:t.find)==null?void 0:n.call(t,r=>r.property_name===_);return e==null?void 0:e.object_id}),f=async()=>{var n;const e={pageName:C,platId:u.value},t=await s.getPageDataApi(e);return((n=t==null?void 0:t.data)==null?void 0:n.result)||[]},m=async()=>{const e=await f();l.value=e||[]};o.onMounted(async()=>{await m()});const I=o.computed(()=>`content_${y.value}`),g=async e=>({platId:u.value,changeContents:[{tableContents:[e],tableName:I.value}]}),v=e=>{const{allow_reset_password:t}=e;return t===i.ALLOW.value},P=async e=>{const{id:t,password:n,allow_reset_password:r}=e;return g({id:t,password:n,allow_reset_password:r})},h=async e=>{const t=await P(e);return await s.pageBatchUpdateApi(t)};return{isSuperAdmin:p,toPersonalCenter:()=>{const e=s.cloneDeep(R);a.setAsideMenus([e]),a.setActiveMenuPath(e==null?void 0:e.path),a.setActiveAsideMenu(e),d.push(e.path)},isAllowReplacePassword:v,initReplacePassword:async e=>await h(e),initEditForm:w}};exports.usePersonalCenter=U;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-BJHW3poS.cjs"),Z=require("./index-4qfYzB5h.cjs"),x=require("./request-BBDPqFah.cjs"),R=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),ee=require("./index-CUw6nGTo.cjs"),te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),oe=l.useLoginState(l.pinia),{systemUrl:m}=l.storeToRefs(oe);let C=m.value===""||!m.value?"http://222.92.178.198:63002":m.value;e.watch(()=>m.value,()=>{C=m.value===""||!m.value?"http://222.92.178.198:63002":m.value},{deep:!0,immediate:!0});function ae(r){return x.service({url:`${C}/platform/getdata_post`,method:"post",data:r})}function ne(r){return x.service({url:`${C}/platform/createdata_post`,method:"post",data:r})}function se(r){return x.service({url:`${C}/platform/updatedata_post`,method:"post",data:r})}function ie(r){return x.service({url:`${C}/platform/deletedata_post`,method:"post",data:r})}const le=[{label:"编辑",value:"edit"},{label:"删除",value:"delete"}],re=()=>{const r=l.useLoginState();l.useMenuState(l.pinia);const i=()=>{const t=r.loginUserInfo,{plat_id:o}=t||{};return o},f=e.computed(()=>{const t=r.loginUserInfo,{id:o}=t||{};return o}),V=e.computed(()=>{const t=r.loginUserInfo,{layer:o}=t||{};return o===l.superAdminFlag}),y=e.ref({}),q=e.computed(()=>{var o;return V.value?!0:((o=y.value)==null?void 0:o.status)===Z.featureStatusConstants.EDITABLE.value}),N=async()=>{var s,a;const t="系统管理/职位管理",o=i(),n={pageName:t,platId:o,userId:f.value},d=await l.getPageDataApi(n);return(a=(s=d==null?void 0:d.data)==null?void 0:s.result)==null?void 0:a[0]},B=async()=>{if(!V.value)return y.value=await N(),y},g=()=>({name:""}),P=e.ref(g()),L=()=>{P.value=g()},T=()=>({pageNum:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),u=e.ref(T()),z=t=>{u.value.pageNum=t},h=t=>{u.value.pageSize=t},k=t=>({platId:i(),pageNum:u.value.pageNum,pageSize:u.value.pageSize,filter:{...P.value}}),U=async t=>{var n;const o=await ae(t);return(n=o==null?void 0:o.data)==null?void 0:n.result},v=async t=>{const o=k(),n=await U(o),{total:d}=n||{};return u.value.total=d,n||{}},$=t=>{const o=l.formatterTimeStr(Date.now()),n=l.cloneDeep(t);return n.update_time=o,n},E=t=>{const o=l.formatterTimeStr(Date.now());let n={name:"",code:"",create_time:o,update_time:o};if(t){const d=$(t);n={...n,...d}}return n},I=t=>({platId:i(),changePostData:[t]}),c=async t=>{delete t.post_id;const o=I(t);await ne(o)},w=async t=>{await c(t)},M=async t=>{const o=I(t);await se(o)},b=async t=>{await M(t)},D=async t=>{const o=i(),{post_id:n}=t;await ie({platId:o,post_id:[n]})};return{pageInfo:u,resetQuery:L,setPageNum:z,setPageSize:h,hasPositionEditAuth:q,initPositionItem:E,initPositionConfig:B,initGetByPage:v,initCreate:w,initUpdate:b,initDelete:async t=>{await l.ElMessageBox.confirm("是否确认要删除","",{showClose:!1,confirmButtonText:"确认",cancelButtonText:"取消",type:"warning",modalClass:"delete-position-message-modal",confirmButtonClass:"delete-position-confirm"}),await D(t)}}},ce={class:"position-management"},de={class:"header"},ue={class:"header-right"},pe={class:"body"},me={class:"position-table-wrapper"},fe={class:"table-wrapper"},ge={class:"operate-list"},ve=["onClick"],_e={class:"pagination-wrapper"},ye={class:"position-management-wrapper"},he={class:"position-management-body"},we={class:"position-form-wrapper"},Ce={class:"edit-footer"},Ve={class:"footer-right"},Ne=e.defineComponent({__name:"index",setup(r){const i=l.useMenuState(l.pinia),{pageInfo:f,setPageNum:V,setPageSize:y,initGetByPage:q,hasPositionEditAuth:N,initPositionConfig:B,initPositionItem:g,initCreate:P,initUpdate:L,initDelete:T}=re(),u=e.ref([]),z=async()=>{const s=await q(),{postData:a=[]}=s;return a},h=async()=>{u.value=await z()},k=s=>{V(s),i.setImportLoading(!0),h().finally(()=>{i.setImportLoading(!1)})},U=s=>{y(s),i.setImportLoading(!0),h().finally(()=>{i.setImportLoading(!1)})},v=async()=>{await B(),await h()};e.onMounted(async()=>{i.setImportLoading(!0),await v().finally(()=>{i.setImportLoading(!1)})});const $=async(s,a)=>{if(!N.value)return;const{value:p}=s,S=a.row;if(p==="edit"){D(S);return}if(p==="delete"){i.setImportLoading(!0),await n(S).finally(()=>{i.setImportLoading(!1)});return}},E=e.ref(),I=e.reactive({name:[{required:!0,message:"请输入职位名称",trigger:"blur"}],code:[{required:!0,message:"请选择职位编码",trigger:"blur"}]}),c=e.ref(g());e.ref([]);const w=e.ref(!1),M=()=>{w.value=!0},b=()=>{w.value=!1},D=async s=>{N.value&&(c.value=g(s),M())},A=()=>{c.value=g(),b()},t=async()=>{await P(c.value),await v()},o=async()=>{await L(c.value),await v()},n=async s=>{await T(s),await v()},d=async()=>{var a,p;await((p=(a=E.value)==null?void 0:a.validate)==null?void 0:p.call(a));const{post_id:s}=c.value;i.setImportLoading(!0),s?await o().finally(()=>{i.setImportLoading(!1)}):await t().finally(()=>{i.setImportLoading(!1)}),A()};return(s,a)=>{var Q,H,J,K;const p=e.resolveComponent("el-table-column"),S=e.resolveComponent("el-table"),W=e.resolveComponent("el-pagination"),G=e.resolveComponent("el-input"),O=e.resolveComponent("el-form-item"),j=e.resolveComponent("el-col"),X=e.resolveComponent("el-row"),Y=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",de,[a[3]||(a[3]=e.createElementVNode("div",{class:"header-left"},null,-1)),e.createElementVNode("div",ue,[e.createVNode(R._sfc_main,{emptyColor:!0,onClickTrigger:a[0]||(a[0]=_=>D()),modelValue:"创建职位",buttonType:"primary"})])]),e.createElementVNode("div",pe,[e.createElementVNode("div",me,[e.createElementVNode("div",fe,[e.createVNode(S,{class:"department-table",data:u.value,"empty-text":""},{default:e.withCtx(()=>[e.createVNode(p,{prop:"name",label:"名称",align:"center"}),e.createVNode(p,{prop:"code",label:"编码",align:"center"}),e.createVNode(p,{label:"操作",align:"center"},{default:e.withCtx(_=>[e.createElementVNode("div",ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(le),F=>(e.openBlock(),e.createElementBlock("div",{class:"operate-item",key:F.value,onClick:e.withModifiers(Ee=>$(F,_),["stop"])},e.toDisplayString(F.label),9,ve))),128))])]),_:1})]),_:1},8,["data"])]),e.createElementVNode("div",_e,[a[4]||(a[4]=e.createElementVNode("div",null,null,-1)),e.createVNode(W,{onSizeChange:U,onCurrentChange:k,"current-page":(Q=e.unref(f))==null?void 0:Q.pageNum,"page-sizes":(H=e.unref(f))==null?void 0:H.pageSizes,"page-size":((J=e.unref(f))==null?void 0:J.pageSize)??10,layout:"total, sizes, prev, pager, next, jumper",total:((K=e.unref(f))==null?void 0:K.total)??0},null,8,["current-page","page-sizes","page-size","total"])])])]),a[7]||(a[7]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1)),e.createVNode(ee.ssDialog,{class:"position-edit-dialog",visible:w.value,title:"职位信息",onBeforeDestroy:b,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"position-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",ye,[a[5]||(a[5]=e.createElementVNode("div",{class:"position-management-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",he,[e.createElementVNode("div",we,[e.createVNode(Y,{class:"position-edit-form",ref_key:"positionFormRef",ref:E,model:c.value,rules:I},{default:e.withCtx(()=>[e.createVNode(X,{gutter:20},{default:e.withCtx(()=>[e.createVNode(j,{span:12},{default:e.withCtx(()=>[e.createVNode(O,{prop:"name",label:"职位名称","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(G,{modelValue:c.value.name,"onUpdate:modelValue":a[1]||(a[1]=_=>c.value.name=_),"aria-label":"职位名称",placeholder:"职位名称"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(j,{span:12},{default:e.withCtx(()=>[e.createVNode(O,{prop:"code",label:"职位编码","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(G,{modelValue:c.value.code,"onUpdate:modelValue":a[2]||(a[2]=_=>c.value.code=_),"aria-label":"职位编码",placeholder:"职位编码"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Ce,[a[6]||(a[6]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",Ve,[e.createVNode(R._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:A,modelValue:"取消",buttonType:"info"}),e.createVNode(R._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:d,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"])])}}}),Pe=te._export_sfc(Ne,[["__scopeId","data-v-4033da58"]]);exports.default=Pe;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-DkN4USSH.cjs"),Z=require("./index-B8D7Ltja.cjs"),x=require("./request-BBDPqFah.cjs"),R=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),ee=require("./index-CUw6nGTo.cjs"),te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),oe=l.useLoginState(l.pinia),{systemUrl:m}=l.storeToRefs(oe);let C=m.value===""||!m.value?"http://222.92.178.198:63002":m.value;e.watch(()=>m.value,()=>{C=m.value===""||!m.value?"http://222.92.178.198:63002":m.value},{deep:!0,immediate:!0});function ae(r){return x.service({url:`${C}/platform/getdata_post`,method:"post",data:r})}function ne(r){return x.service({url:`${C}/platform/createdata_post`,method:"post",data:r})}function se(r){return x.service({url:`${C}/platform/updatedata_post`,method:"post",data:r})}function ie(r){return x.service({url:`${C}/platform/deletedata_post`,method:"post",data:r})}const le=[{label:"编辑",value:"edit"},{label:"删除",value:"delete"}],re=()=>{const r=l.useLoginState();l.useMenuState(l.pinia);const i=()=>{const t=r.loginUserInfo,{plat_id:o}=t||{};return o},f=e.computed(()=>{const t=r.loginUserInfo,{id:o}=t||{};return o}),V=e.computed(()=>{const t=r.loginUserInfo,{layer:o}=t||{};return o===l.superAdminFlag}),y=e.ref({}),q=e.computed(()=>{var o;return V.value?!0:((o=y.value)==null?void 0:o.status)===Z.featureStatusConstants.EDITABLE.value}),N=async()=>{var s,a;const t="系统管理/职位管理",o=i(),n={pageName:t,platId:o,userId:f.value},d=await l.getPageDataApi(n);return(a=(s=d==null?void 0:d.data)==null?void 0:s.result)==null?void 0:a[0]},B=async()=>{if(!V.value)return y.value=await N(),y},g=()=>({name:""}),P=e.ref(g()),L=()=>{P.value=g()},T=()=>({pageNum:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),u=e.ref(T()),z=t=>{u.value.pageNum=t},h=t=>{u.value.pageSize=t},k=t=>({platId:i(),pageNum:u.value.pageNum,pageSize:u.value.pageSize,filter:{...P.value}}),U=async t=>{var n;const o=await ae(t);return(n=o==null?void 0:o.data)==null?void 0:n.result},v=async t=>{const o=k(),n=await U(o),{total:d}=n||{};return u.value.total=d,n||{}},$=t=>{const o=l.formatterTimeStr(Date.now()),n=l.cloneDeep(t);return n.update_time=o,n},E=t=>{const o=l.formatterTimeStr(Date.now());let n={name:"",code:"",create_time:o,update_time:o};if(t){const d=$(t);n={...n,...d}}return n},I=t=>({platId:i(),changePostData:[t]}),c=async t=>{delete t.post_id;const o=I(t);await ne(o)},w=async t=>{await c(t)},M=async t=>{const o=I(t);await se(o)},b=async t=>{await M(t)},D=async t=>{const o=i(),{post_id:n}=t;await ie({platId:o,post_id:[n]})};return{pageInfo:u,resetQuery:L,setPageNum:z,setPageSize:h,hasPositionEditAuth:q,initPositionItem:E,initPositionConfig:B,initGetByPage:v,initCreate:w,initUpdate:b,initDelete:async t=>{await l.ElMessageBox.confirm("是否确认要删除","",{showClose:!1,confirmButtonText:"确认",cancelButtonText:"取消",type:"warning",modalClass:"delete-position-message-modal",confirmButtonClass:"delete-position-confirm"}),await D(t)}}},ce={class:"position-management"},de={class:"header"},ue={class:"header-right"},pe={class:"body"},me={class:"position-table-wrapper"},fe={class:"table-wrapper"},ge={class:"operate-list"},ve=["onClick"],_e={class:"pagination-wrapper"},ye={class:"position-management-wrapper"},he={class:"position-management-body"},we={class:"position-form-wrapper"},Ce={class:"edit-footer"},Ve={class:"footer-right"},Ne=e.defineComponent({__name:"index",setup(r){const i=l.useMenuState(l.pinia),{pageInfo:f,setPageNum:V,setPageSize:y,initGetByPage:q,hasPositionEditAuth:N,initPositionConfig:B,initPositionItem:g,initCreate:P,initUpdate:L,initDelete:T}=re(),u=e.ref([]),z=async()=>{const s=await q(),{postData:a=[]}=s;return a},h=async()=>{u.value=await z()},k=s=>{V(s),i.setImportLoading(!0),h().finally(()=>{i.setImportLoading(!1)})},U=s=>{y(s),i.setImportLoading(!0),h().finally(()=>{i.setImportLoading(!1)})},v=async()=>{await B(),await h()};e.onMounted(async()=>{i.setImportLoading(!0),await v().finally(()=>{i.setImportLoading(!1)})});const $=async(s,a)=>{if(!N.value)return;const{value:p}=s,S=a.row;if(p==="edit"){D(S);return}if(p==="delete"){i.setImportLoading(!0),await n(S).finally(()=>{i.setImportLoading(!1)});return}},E=e.ref(),I=e.reactive({name:[{required:!0,message:"请输入职位名称",trigger:"blur"}],code:[{required:!0,message:"请选择职位编码",trigger:"blur"}]}),c=e.ref(g());e.ref([]);const w=e.ref(!1),M=()=>{w.value=!0},b=()=>{w.value=!1},D=async s=>{N.value&&(c.value=g(s),M())},A=()=>{c.value=g(),b()},t=async()=>{await P(c.value),await v()},o=async()=>{await L(c.value),await v()},n=async s=>{await T(s),await v()},d=async()=>{var a,p;await((p=(a=E.value)==null?void 0:a.validate)==null?void 0:p.call(a));const{post_id:s}=c.value;i.setImportLoading(!0),s?await o().finally(()=>{i.setImportLoading(!1)}):await t().finally(()=>{i.setImportLoading(!1)}),A()};return(s,a)=>{var Q,H,J,K;const p=e.resolveComponent("el-table-column"),S=e.resolveComponent("el-table"),W=e.resolveComponent("el-pagination"),G=e.resolveComponent("el-input"),O=e.resolveComponent("el-form-item"),j=e.resolveComponent("el-col"),X=e.resolveComponent("el-row"),Y=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",de,[a[3]||(a[3]=e.createElementVNode("div",{class:"header-left"},null,-1)),e.createElementVNode("div",ue,[e.createVNode(R._sfc_main,{emptyColor:!0,onClickTrigger:a[0]||(a[0]=_=>D()),modelValue:"创建职位",buttonType:"primary"})])]),e.createElementVNode("div",pe,[e.createElementVNode("div",me,[e.createElementVNode("div",fe,[e.createVNode(S,{class:"department-table",data:u.value,"empty-text":""},{default:e.withCtx(()=>[e.createVNode(p,{prop:"name",label:"名称",align:"center"}),e.createVNode(p,{prop:"code",label:"编码",align:"center"}),e.createVNode(p,{label:"操作",align:"center"},{default:e.withCtx(_=>[e.createElementVNode("div",ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(le),F=>(e.openBlock(),e.createElementBlock("div",{class:"operate-item",key:F.value,onClick:e.withModifiers(Ee=>$(F,_),["stop"])},e.toDisplayString(F.label),9,ve))),128))])]),_:1})]),_:1},8,["data"])]),e.createElementVNode("div",_e,[a[4]||(a[4]=e.createElementVNode("div",null,null,-1)),e.createVNode(W,{onSizeChange:U,onCurrentChange:k,"current-page":(Q=e.unref(f))==null?void 0:Q.pageNum,"page-sizes":(H=e.unref(f))==null?void 0:H.pageSizes,"page-size":((J=e.unref(f))==null?void 0:J.pageSize)??10,layout:"total, sizes, prev, pager, next, jumper",total:((K=e.unref(f))==null?void 0:K.total)??0},null,8,["current-page","page-sizes","page-size","total"])])])]),a[7]||(a[7]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1)),e.createVNode(ee.ssDialog,{class:"position-edit-dialog",visible:w.value,title:"职位信息",onBeforeDestroy:b,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"position-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",ye,[a[5]||(a[5]=e.createElementVNode("div",{class:"position-management-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",he,[e.createElementVNode("div",we,[e.createVNode(Y,{class:"position-edit-form",ref_key:"positionFormRef",ref:E,model:c.value,rules:I},{default:e.withCtx(()=>[e.createVNode(X,{gutter:20},{default:e.withCtx(()=>[e.createVNode(j,{span:12},{default:e.withCtx(()=>[e.createVNode(O,{prop:"name",label:"职位名称","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(G,{modelValue:c.value.name,"onUpdate:modelValue":a[1]||(a[1]=_=>c.value.name=_),"aria-label":"职位名称",placeholder:"职位名称"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(j,{span:12},{default:e.withCtx(()=>[e.createVNode(O,{prop:"code",label:"职位编码","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(G,{modelValue:c.value.code,"onUpdate:modelValue":a[2]||(a[2]=_=>c.value.code=_),"aria-label":"职位编码",placeholder:"职位编码"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Ce,[a[6]||(a[6]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",Ve,[e.createVNode(R._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:A,modelValue:"取消",buttonType:"info"}),e.createVNode(R._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:d,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"])])}}}),Pe=te._export_sfc(Ne,[["__scopeId","data-v-4033da58"]]);exports.default=Pe;
@@ -1,33 +1,33 @@
1
1
  import { computed as kl, defineComponent as Rl, defineProps as ut, ref as O, watch as ol, onMounted as Nl, resolveComponent as ve, createBlock as Qe, openBlock as h, withCtx as o, createElementVNode as L, toDisplayString as nl, createElementBlock as de, Fragment as Sl, renderList as xl, createCommentVNode as Fe, normalizeStyle as bl, createVNode as r, unref as k, resolveDynamicComponent as os, mergeProps as vt, renderSlot as Hl, createStaticVNode as Ft, provide as Ps, shallowRef as Ea, resolveDirective as na, withDirectives as $l, vShow as us, createTextVNode as Zl, normalizeClass as Dl, createSlots as St, withModifiers as ps, defineAsyncComponent as Dt, reactive as Ul, nextTick as Ga, onUnmounted as Ha } from "vue";
2
- import { m as dt, a as kt, b as ot, c as Oa } from "./array-RDe9RaHh.js";
3
- import { _ as Os, s as jt, a as La } from "./index-Dkz_QZP6.js";
4
- import { u as El, p as dl, s as ul, c as pl, a as Bl, b as Cl, h as Ls, i as fs, d as yt, j as Fs, k as Ya, E as xs, m as at, n as ra, v as ys, o as Ca, q as Xa, r as ma, g as ga, t as Tt, w as Qa, x as ia, y as wa, z as Na } from "./index-KFEhtKz_.js";
2
+ import { m as dt, a as kt, b as ot, c as Oa } from "./array-CLSp1EEl.js";
3
+ import { _ as Os, s as jt, a as La } from "./index-DNsv2poC.js";
4
+ import { u as El, p as dl, s as ul, c as pl, a as Bl, b as Cl, h as Ls, i as fs, d as yt, j as Fs, k as Ya, E as xs, m as at, n as ra, v as ys, o as Ca, q as Xa, r as ma, g as ga, t as Tt, w as Qa, x as ia, y as wa, z as Na } from "./index-Dn6qcU75.js";
5
5
  import { useRouter as bs } from "vue-router";
6
6
  import { a as Ys, d as Vt, e as Cs, f as Xs, g as ms, h as gs, t as Fa, c as Da, b as Ta } from "./index-C2UiLe43.js";
7
7
  import { u as Ms, b as xt, g as Yl, a as Ds, c as Ba, d as Bt } from "./index-BHbbxGc-.js";
8
- import { g as Ws, s as _a, a as _t, _ as At, b as $a, c as pa } from "./index-B8aUMSv7.js";
8
+ import { g as Ws, s as _a, a as _t, _ as At, b as $a, c as pa } from "./index-DdOOuoQQ.js";
9
9
  import { E as Pl, a as eA, b as is, I as lA, s as Ts, d as Bs, c as Gs, e as Hs, f as sA, p as tA, g as aA } from "./request-DeDL4lsA.js";
10
- import { g as fa, u as Wt, b as Tl, c as Is, o as ca, l as AA, n as nA, d as rA } from "./index-tGLle44C.js";
11
- import { d as iA, g as Es, a as pA, b as zl, c as fA, s as nt } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Cl8FH2DA.js";
12
- import "./index-JOJ40iYk.js";
13
- import "./index-DCWUnexL.js";
10
+ import { g as fa, u as Wt, b as Tl, c as Is, o as ca, l as AA, n as nA, d as rA } from "./index-CeU4RrOX.js";
11
+ import { d as iA, g as Es, a as pA, b as zl, c as fA, s as nt } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-SjvxLc8m.js";
12
+ import "./index-0v52Gu-5.js";
13
+ import "./index-CBw4RhET.js";
14
14
  import "./index-BScuBbm4.js";
15
- import { c as It, f as gl, b as ua, a as cA, g as $t, d as ea } from "./menuIndex-97h4uADz.js";
15
+ import { c as It, f as gl, b as ua, a as cA, g as $t, d as ea } from "./menuIndex-DNtUqq9P.js";
16
16
  import { _ as Ol } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- import { C as uA } from "./index-DiTrXWyF.js";
17
+ import { C as uA } from "./index-DNtygOfw.js";
18
18
  import { S as Jl } from "./index-BHtNKL1L.js";
19
- import vA from "./threeModel-23XuLz8Y.js";
20
- import { a as SA, b as js, s as dA, u as va, c as ts, d as kA, e as oA, r as Ml, o as ds, f as ks, h as Sa, i as rt, j as da, k as bt, l as jA, t as yA, m as Zs, n as _s, p as $s, q as Ks, v as ws, w as Rs, x as VA, y as Js, z as Us, A as zs, B as hs, C as Ns, D as xA, E as WA, F as IA, G as la, H as sa, I as Ql, J as bA, K as ZA, L as et, M as qA, N as PA, O as KA, g as ka, P as ta, Q as RA, R as oa, S as JA, T as UA, U as zA, V as hA } from "./index-BQUyJbvM.js";
19
+ import vA from "./threeModel-B1mnD3BH.js";
20
+ import { a as SA, b as js, s as dA, u as va, c as ts, d as kA, e as oA, r as Ml, o as ds, f as ks, h as Sa, i as rt, j as da, k as bt, l as jA, t as yA, m as Zs, n as _s, p as $s, q as Ks, v as ws, w as Rs, x as VA, y as Js, z as Us, A as zs, B as hs, C as Ns, D as xA, E as WA, F as IA, G as la, H as sa, I as Ql, J as bA, K as ZA, L as et, M as qA, N as PA, O as KA, g as ka, P as ta, Q as RA, R as oa, S as JA, T as UA, U as zA, V as hA } from "./index-BctLTNEM.js";
21
21
  import { _ as Ss } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
22
22
  import { s as as } from "./index-CnjGqJZS.js";
23
- import { T as it, u as MA, a as EA } from "./threeViewerHost-CQ6U1kVv.js";
24
- import { s as ja } from "./index-DHRF8Dvv.js";
25
- import { s as pt } from "./index-DdK0IjPC.js";
26
- import { u as GA } from "./index-2QwpN3s2.js";
27
- import { u as HA } from "./index-BeXxhY1M.js";
28
- import { u as ya } from "./index-D7Lm1-cq.js";
23
+ import { T as it, u as MA, a as EA } from "./threeViewerHost-lNm_AsOf.js";
24
+ import { s as ja } from "./index-DzZTCDPY.js";
25
+ import { s as pt } from "./index-DZKh4dCv.js";
26
+ import { u as GA } from "./index-BUs4hN8N.js";
27
+ import { u as HA } from "./index-DDSqGoFj.js";
28
+ import { u as ya } from "./index-Dbr-vT_L.js";
29
29
  import { T as aa } from "./svgIcon-4u4PW7Is.js";
30
- import { f as OA, a as LA } from "./animationData-DacS-QTH.js";
30
+ import { f as OA, a as LA } from "./animationData-XUsnpQH1.js";
31
31
  El();
32
32
  const YA = El(), Zt = async (a, y) => {
33
33
  var A, f, i, l;
@@ -1,6 +1,6 @@
1
1
  import { ref as x, onMounted as _, createElementBlock as g, openBlock as y, createVNode as C } from "vue";
2
- import { s as b } from "./index-DHRF8Dvv.js";
3
- import { c as s } from "./index-KFEhtKz_.js";
2
+ import { s as b } from "./index-DzZTCDPY.js";
3
+ import { c as s } from "./index-Dn6qcU75.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const A = (t, n, a) => {
6
6
  var r, d, p, m;
@@ -1,11 +1,11 @@
1
1
  import { ref as h, computed as E, reactive as q, defineComponent as W, watch as H, createElementBlock as N, openBlock as k, createVNode as A, createCommentVNode as ue, withCtx as _, createTextVNode as x, toDisplayString as F, resolveComponent as D, createBlock as R, Fragment as ie, renderList as ce, createElementVNode as de, normalizeStyle as pe } from "vue";
2
2
  import { aq as fe, ar as ve, as as ge, E as T } from "./request-DeDL4lsA.js";
3
- import { s as J, b as ye, u as be, p as G, c as me, j as he, k as Q } from "./index-KFEhtKz_.js";
3
+ import { s as J, b as ye, u as be, p as G, c as me, j as he, k as Q } from "./index-Dn6qcU75.js";
4
4
  import { g as X, u as we } from "./index-BHbbxGc-.js";
5
- import { J as Y, r as Se } from "./index-JOJ40iYk.js";
6
- import { A as _e } from "./index-DiTrXWyF.js";
5
+ import { J as Y, r as Se } from "./index-0v52Gu-5.js";
6
+ import { A as _e } from "./index-DNtygOfw.js";
7
7
  import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- import { m as Ce } from "./index-B8aUMSv7.js";
8
+ import { m as Ce } from "./index-DdOOuoQQ.js";
9
9
  import { S as V } from "./index-BHtNKL1L.js";
10
10
  function Ae(t, s) {
11
11
  const e = new Y();
@@ -1,6 +1,6 @@
1
1
  import { ref as y, computed as b } from "vue";
2
- import { b as ce, u as ie, p as ue, C as pe, c as D, D as P, E as de, i as ge, ac as me, ad as fe, ae as ye, af as Ie, ag as he, ah as _e } from "./index-KFEhtKz_.js";
3
- import { f as v } from "./index-tGLle44C.js";
2
+ import { b as ce, u as ie, p as ue, C as pe, c as D, D as P, E as de, i as ge, ac as me, ad as fe, ae as ye, af as Ie, ag as he, ah as _e } from "./index-Dn6qcU75.js";
3
+ import { f as v } from "./index-CeU4RrOX.js";
4
4
  const Re = [
5
5
  {
6
6
  label: "编辑",
@@ -1,5 +1,5 @@
1
1
  import { ref as l, defineComponent as m, createElementBlock as f, openBlock as p, createElementVNode as e, createVNode as u, unref as t } from "vue";
2
- import { X as C } from "./index-BQUyJbvM.js";
2
+ import { X as C } from "./index-BctLTNEM.js";
3
3
  import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const b = () => {
5
5
  const i = l("日志管理"), o = l(), a = l([
@@ -1,15 +1,15 @@
1
1
  import { ref as G, resolveComponent as X, createBlock as F, openBlock as _, computed as n2, watch as q2, createElementBlock as E, createVNode as t2, withCtx as H, createElementVNode as o2, Fragment as _2, renderList as T2, withModifiers as De, normalizeClass as Xe, toDisplayString as L2, createSlots as ve, renderSlot as w2, nextTick as C0, defineComponent as t0, onMounted as _e, createTextVNode as B0, isRef as rr, isReactive as ar, toRaw as cr, createCommentVNode as c2, onBeforeUnmount as O4, normalizeStyle as A0, withDirectives as $t, resolveDynamicComponent as s3, vShow as U1, normalizeProps as hr, guardReactiveProps as dr, unref as E0, mergeProps as u1, reactive as E3, inject as Q3, watchEffect as Ve, onUnmounted as f1, resolveDirective as ur, h as Si, toRefs as fr } from "vue";
2
- import { ad as pr, ae as gr, U as Bs, g as mr, af as vr, ag as wr, ah as xr, ab as Ci, ai as br, aj as _r, ak as yr, al as Sr, am as ki, an as Di } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Cl8FH2DA.js";
2
+ import { ad as pr, ae as gr, U as Bs, g as mr, af as vr, ag as wr, ah as xr, ab as Ci, ai as br, aj as _r, ak as yr, al as Sr, am as ki, an as Di } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-SjvxLc8m.js";
3
3
  import { _ as P2 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import { S as xt } from "./index-BHtNKL1L.js";
5
5
  import { k as Ls, l as Hs, E as B3, g as M6, at as Cr, s as kr, au as Dr, ak as Or, al as Mr, as as Tr, b as zr } from "./request-DeDL4lsA.js";
6
- import { a9 as Pr, aa as Oi, a as M4, p as ut, s as bt, u as T4, c as L0, a5 as ue, h as Vr, k as Is, t as Ar, a7 as T6, j as Er } from "./index-KFEhtKz_.js";
6
+ import { a9 as Pr, aa as Oi, a as M4, p as ut, s as bt, u as T4, c as L0, a5 as ue, h as Vr, k as Is, t as Ar, a7 as T6, j as Er } from "./index-Dn6qcU75.js";
7
7
  import { _ as ge } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
8
- import { e as Mi, G as Gs } from "./index-tGLle44C.js";
8
+ import { e as Mi, G as Gs } from "./index-CeU4RrOX.js";
9
9
  /* empty css */
10
10
  import { s as z4 } from "./index-CnjGqJZS.js";
11
- import { T as Ti, a as Br } from "./threeViewerHost-CQ6U1kVv.js";
12
- import { A as Lr } from "./index-DiTrXWyF.js";
11
+ import { T as Ti, a as Br } from "./threeViewerHost-lNm_AsOf.js";
12
+ import { A as Lr } from "./index-DNtygOfw.js";
13
13
  var Hr = "[object Date]";
14
14
  function Ir(n) {
15
15
  return Ls(n) && Hs(n) == Hr;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),g=require("./index-BJHW3poS.cjs");require("./index-DwRfRH0l.cjs");const M=require("./index-DEnDl7AH.cjs"),k=require("./request-BBDPqFah.cjs"),I=require("vue-router"),D={},K={class:"left-wrap"},O={class:"left-bg"};function U(v,m){return e.openBlock(),e.createElementBlock("div",K,[e.createElementVNode("div",O,[e.renderSlot(v.$slots,"img",{},void 0,!0)])])}const j=L._export_sfc(D,[["render",U],["__scopeId","data-v-9b7ee6c9"]]),T={ACCOUNT:"account",FACE:"face"},H={class:"right-wrap"},P={class:"tab-content"},J={class:"tab-tips"},W={class:"tab-content"},z={class:"tab-tips"},G=e.defineComponent({__name:"index",props:{tabList:{type:Array,default:[]},loading:{type:Boolean,default:!1}},emits:["clickLogin","handleTabChange"],setup(v,{emit:m}){const n=e.ref(T.ACCOUNT),t=m,b=()=>{t("clickLogin",n.value)},C=a=>{t("handleTabChange",a)};return(a,l)=>{const s=e.resolveComponent("el-button"),c=e.resolveComponent("el-tab-pane"),f=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",H,[e.createVNode(f,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=d=>n.value=d),class:"right-tabs",onTabChange:C},{default:e.withCtx(()=>[e.createVNode(c,{name:e.unref(T).ACCOUNT},{label:e.withCtx(()=>[e.renderSlot(a.$slots,"tabLabel1",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",P,[e.renderSlot(a.$slots,"tabContent1",{},void 0,!0)]),e.createElementVNode("div",{class:"tab-button special",onClick:b},[e.createVNode(s,{loading:v.loading},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"tabButton1",{},void 0,!0)]),_:3},8,["loading"])]),e.createElementVNode("div",J,[e.renderSlot(a.$slots,"tabTips1",{},void 0,!0)])]),_:3},8,["name"]),e.createVNode(c,{name:e.unref(T).FACE},{label:e.withCtx(()=>[e.renderSlot(a.$slots,"tabLabel2",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",W,[e.renderSlot(a.$slots,"tabContent2",{},void 0,!0)]),e.createElementVNode("div",z,[e.renderSlot(a.$slots,"tabTips2",{},void 0,!0)])]),_:3},8,["name"])]),_:3},8,["modelValue"])])}}}),Q=L._export_sfc(G,[["__scopeId","data-v-8b1962f0"]]),X={class:"account-wrap"},Y=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(v,{emit:m}){const n=v,t=e.reactive({account:"",password:""}),b=e.reactive({account:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),C=e.ref(null),a=m;return e.watch(()=>n.isClickLogin,l=>{var s;l&&(n==null?void 0:n.activeTabName)==="account"&&((s=C.value)==null||s.validate(c=>{var f;for(let d in t)t.hasOwnProperty(d)&&(t[d]=(f=t[d])==null?void 0:f.trim());a("handleLoginFormChange",c,c?t:null)}))},{immediate:!0}),e.watch(()=>n.activeTabName,l=>{var s;l==="account"&&((s=C.value)==null||s.resetFields())}),(l,s)=>{const c=e.resolveComponent("svg-icon"),f=e.resolveComponent("el-input"),d=e.resolveComponent("el-form-item"),y=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",X,[e.createVNode(y,{model:t,rules:b,ref_key:"formRef",ref:C},{default:e.withCtx(()=>[e.createVNode(d,{label:"",prop:"account"},{default:e.withCtx(()=>[e.createVNode(f,{class:"account-input",modelValue:t.account,"onUpdate:modelValue":s[0]||(s[0]=N=>t.account=N),placeholder:"请输入账号",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(c,{name:"account",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"",prop:"password"},{default:e.withCtx(()=>[e.createVNode(f,{class:"account-input",modelValue:t.password,"onUpdate:modelValue":s[1]||(s[1]=N=>t.password=N),type:"password",placeholder:"请输入密码","show-password":"",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(c,{name:"password",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}}),Z=L._export_sfc(Y,[["__scopeId","data-v-48037c0f"]]),ee={class:"account-wrap"},te={class:"video-wrap"},oe=e.defineComponent({__name:"index",props:{systemKey:{default:""},activeTabName:{default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(v,{emit:m}){const n=v,t=m,b=g.useLoginState(g.pinia),{systemInfo:C}=g.storeToRefs(b),a=e.ref(null),l=e.ref(null);let s=!1,c=null;const f=async i=>{if(!i)return;const r=new FormData;r.set("file",i);const h=C.value.plat_id;h&&r.set("systemKey",h),console.log("Face Recognition",h);const w=await M.verifyFaceImage(r),{data:o}=w||{},{account:u,password:p,layer:_}=(o==null?void 0:o.data)||{},E=o==null?void 0:o.msg;if(!u){k.ElMessage.warning(E||"识别失败,请重新识别!");return}t("handleLoginFormChange",!0,{account:u,password:p})},d=()=>{if(!l.value||!a.value)return;const i=l.value,r=i.getContext("2d"),h=a.value;i.width=200,i.height=200;const w=h.videoWidth||640,o=h.videoHeight||480,u=Math.min(200/w,200/o),p=w*u,_=o*u,E=(200-p)/2,S=(200-_)/2;r==null||r.drawImage(h,0,0,w,o,E,S,p,_),i.toBlob(x=>{if(x){const $=new File([x],"face.png",{type:"image/png"});f($)}},"image/png")},y=async()=>{if(!a.value||s)return;const i=a.value;try{if(c=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user"},audio:!1}),i){const r=i;r.srcObject=c,s=!0}}catch{k.ElMessage.warning("摄像头启动失败")}};function N(i){if(i&&(i.getTracks().forEach(r=>r.stop()),a.value)){const r=a.value;r.srcObject=null}}const V=()=>{N(c),s=!1};return e.watch(()=>n.activeTabName,i=>{if(i!==T.FACE){V();return}if(i===T.FACE&&!s){y();return}}),e.onBeforeUnmount(()=>{V()}),(i,r)=>(e.openBlock(),e.createElementBlock("div",ee,[e.createElementVNode("div",te,[e.createElementVNode("video",{class:"face-video",ref_key:"videoRef",ref:a,id:"v",autoplay:"",playsinline:""},null,512)]),e.createElementVNode("button",{class:"face-screenshot",onClick:d},"人脸识别"),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:l,id:"canvas"},null,512)]))}}),ae=L._export_sfc(oe,[["__scopeId","data-v-8b30c6df"]]);function ne(){const v={account:"superadmin",password:"1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",tenantId:-1,code:"",codeId:0};return k.service({url:"/api/sysAuth/login",method:"post",data:v})}const R=g.useLoginState(g.pinia),{isDefaultModel:se}=g.useModelManagement(),ie=async(v,m)=>{var b,C,a,l,s,c,f,d,y,N,V,i,r,h;let n=Object.values(v),t=await g.loginPlatFormDataApi({userName:(b=n==null?void 0:n[0])==null?void 0:b.trim(),password:(C=n==null?void 0:n[1])==null?void 0:C.trim()});if(((a=t==null?void 0:t.data)==null?void 0:a.status)===200&&((s=(l=t==null?void 0:t.data)==null?void 0:l.result)==null?void 0:s.length)<=0&&(t=await g.loginCommonAccount({userName:(c=n==null?void 0:n[0])==null?void 0:c.trim(),password:(f=n==null?void 0:n[1])==null?void 0:f.trim(),path:"系统管理/用户管理",platId:m})),((d=t==null?void 0:t.data)==null?void 0:d.status)===200&&((N=(y=t==null?void 0:t.data)==null?void 0:y.result)==null?void 0:N.length)>0){const o=((i=(V=t==null?void 0:t.data)==null?void 0:V.result)==null?void 0:i.find(p=>se(p)))||((h=(r=t==null?void 0:t.data)==null?void 0:r.result)==null?void 0:h[0]);sessionStorage.setItem("systemKey",m&&m!==""?m:o==null?void 0:o.plat_id);let u=o;return u.plat_id=u.plat_id??m,R.setLoginUserInfo(u),R.setSystemKey(m&&m!==""?m:o==null?void 0:o.plat_id),!0}else return k.ElMessage.error("输入的密码错误,请重新输入"),!1},le={class:"login-wrap"},ce={class:"login-body"},re={class:"login-body-item left"},de={class:"title"},ue={class:"first-level"},me={key:0,class:"logo"},fe=["src"],pe={class:"english-name"},ge={class:"login-body-item right"},_e=e.defineComponent({__name:"index",props:{oldSystemKey:{}},emits:["change"],setup(v,{emit:m}){const n=I.useRouter(),t=g.useMenuState(g.pinia),b=g.useLoginState(g.pinia),{systemKey:C,systemInfo:a,loginUserInfo:l}=g.storeToRefs(b),s=e.computed(()=>{var o;return((o=a.value)==null?void 0:o.logo)||g.logo}),c=e.ref({sysCTitle:"",sysETitle:"",loginTitle:"账户密码登录",tabs:[{name:"密码登录",btnLabel:"登录",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"},{name:"人脸识别",btnLabel:"人脸识别",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"},{name:"刷卡登录",btnLabel:"登录",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"}]}),f=e.ref("account"),d=e.ref(!1),y=e.ref(!1),N=()=>{d.value=!0},V=(o,u)=>{d.value=!1,o&&h(u)},i=async()=>{var o,u,p;try{const _=await ne();return((o=_==null?void 0:_.data)==null?void 0:o.code)===200?(sessionStorage.setItem("loginToken",(p=(u=_.data)==null?void 0:u.result)==null?void 0:p.accessToken),!0):!1}catch(_){k.ElMessage.error(_)}return!0},r=async()=>(sessionStorage.setItem("magicToken","123456"),!0);e.onMounted(async()=>{await i()});const h=async o=>{var S,x,$,B,F,A;y.value=!0;let u=[ie(o,(S=a.value)==null?void 0:S.plat_id),i(),r()];const p=await Promise.all(u),_=p==null?void 0:p.every(q=>q);let E=[{id:"1",request_method:"Post",request_url:"/platform/getdata",request_param:JSON.stringify({userName:"hjj",password:"1"}),request_result:"{}",is_delete:!1,request_table:"admin_user",request_type:"login"}];await g.pageBatchAddApi({platId:parseInt((x=l==null?void 0:l.value)==null?void 0:x.plat_id),changeContents:[{tableName:"log",tableContents:E}]}),_?(await g.verifyStructureDataToStore(),n.push("/"),b.setLogRecordAsync({type:"登录",data:{account:(($=l.value)==null?void 0:$.account)??((B=l.value)==null?void 0:B.账号),userName:((F=l.value)==null?void 0:F.姓名)||((A=l.value)==null?void 0:A.userName)||"未知"}},"/login","login"),t.setHasClickEditComp(!1)):y.value=!1},w=o=>{f.value=o,d.value=!1,y.value=!1};return(o,u)=>(e.openBlock(),e.createElementBlock("div",le,[e.createElementVNode("div",ce,[e.createElementVNode("div",re,[e.createVNode(j,{class:"login-left-bg"},{img:e.withCtx(()=>{var p,_;return[e.createElementVNode("div",de,[e.createElementVNode("div",ue,[s.value?(e.openBlock(),e.createElementBlock("div",me,[e.createElementVNode("img",{src:s.value,alt:""},null,8,fe)])):e.createCommentVNode("",!0),e.createElementVNode("div",pe,e.toDisplayString(((p=e.unref(a))==null?void 0:p.EnglishName)||"Insofworks"),1)]),e.createElementVNode("div",null,e.toDisplayString(((_=e.unref(a))==null?void 0:_.chineseName)||"工业软件建模与开发系统"),1)]),u[0]||(u[0]=e.createElementVNode("div",{class:"divide-line"},null,-1))]}),_:1})]),e.createElementVNode("div",ge,[e.createVNode(Q,{loading:y.value,onClickLogin:N,onHandleTabChange:w},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.loginTitle),1)]),tabLabel1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.tabs[0].name),1)]),tabContent1:e.withCtx(()=>[e.createVNode(Z,{activeTabName:f.value,isClickLogin:d.value,onHandleLoginFormChange:V},null,8,["activeTabName","isClickLogin"])]),tabButton1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.tabs[0].btnLabel),1)]),tabLabel2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.tabs[1].name),1)]),tabContent2:e.withCtx(()=>[e.createVNode(ae,{systemKey:o.oldSystemKey,activeTabName:f.value,isClickLogin:d.value,onHandleLoginFormChange:V},null,8,["systemKey","activeTabName","isClickLogin"])]),tabButton2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.tabs[1].btnLabel),1)]),_:1},8,["loading"])])])]))}}),ve=L._export_sfc(_e,[["__scopeId","data-v-1adbea09"]]);exports.default=ve;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),g=require("./index-DkN4USSH.cjs");require("./index-Bxx6Nkwu.cjs");const M=require("./index-CujmqtON.cjs"),k=require("./request-BBDPqFah.cjs"),I=require("vue-router"),D={},K={class:"left-wrap"},O={class:"left-bg"};function U(v,m){return e.openBlock(),e.createElementBlock("div",K,[e.createElementVNode("div",O,[e.renderSlot(v.$slots,"img",{},void 0,!0)])])}const j=L._export_sfc(D,[["render",U],["__scopeId","data-v-9b7ee6c9"]]),T={ACCOUNT:"account",FACE:"face"},H={class:"right-wrap"},P={class:"tab-content"},J={class:"tab-tips"},W={class:"tab-content"},z={class:"tab-tips"},G=e.defineComponent({__name:"index",props:{tabList:{type:Array,default:[]},loading:{type:Boolean,default:!1}},emits:["clickLogin","handleTabChange"],setup(v,{emit:m}){const n=e.ref(T.ACCOUNT),t=m,b=()=>{t("clickLogin",n.value)},y=a=>{t("handleTabChange",a)};return(a,l)=>{const s=e.resolveComponent("el-button"),c=e.resolveComponent("el-tab-pane"),f=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",H,[e.createVNode(f,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=d=>n.value=d),class:"right-tabs",onTabChange:y},{default:e.withCtx(()=>[e.createVNode(c,{name:e.unref(T).ACCOUNT},{label:e.withCtx(()=>[e.renderSlot(a.$slots,"tabLabel1",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",P,[e.renderSlot(a.$slots,"tabContent1",{},void 0,!0)]),e.createElementVNode("div",{class:"tab-button special",onClick:b},[e.createVNode(s,{loading:v.loading},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"tabButton1",{},void 0,!0)]),_:3},8,["loading"])]),e.createElementVNode("div",J,[e.renderSlot(a.$slots,"tabTips1",{},void 0,!0)])]),_:3},8,["name"]),e.createVNode(c,{name:e.unref(T).FACE},{label:e.withCtx(()=>[e.renderSlot(a.$slots,"tabLabel2",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",W,[e.renderSlot(a.$slots,"tabContent2",{},void 0,!0)]),e.createElementVNode("div",z,[e.renderSlot(a.$slots,"tabTips2",{},void 0,!0)])]),_:3},8,["name"])]),_:3},8,["modelValue"])])}}}),Q=L._export_sfc(G,[["__scopeId","data-v-8b1962f0"]]),X={class:"account-wrap"},Y=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(v,{emit:m}){const n=v,t=e.reactive({account:"",password:""}),b=e.reactive({account:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),y=e.ref(null),a=m;return e.watch(()=>n.isClickLogin,l=>{var s;l&&(n==null?void 0:n.activeTabName)==="account"&&((s=y.value)==null||s.validate(c=>{var f;for(let d in t)t.hasOwnProperty(d)&&(t[d]=(f=t[d])==null?void 0:f.trim());a("handleLoginFormChange",c,c?t:null)}))},{immediate:!0}),e.watch(()=>n.activeTabName,l=>{var s;l==="account"&&((s=y.value)==null||s.resetFields())}),(l,s)=>{const c=e.resolveComponent("svg-icon"),f=e.resolveComponent("el-input"),d=e.resolveComponent("el-form-item"),C=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",X,[e.createVNode(C,{model:t,rules:b,ref_key:"formRef",ref:y},{default:e.withCtx(()=>[e.createVNode(d,{label:"",prop:"account"},{default:e.withCtx(()=>[e.createVNode(f,{class:"account-input",modelValue:t.account,"onUpdate:modelValue":s[0]||(s[0]=N=>t.account=N),placeholder:"请输入账号",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(c,{name:"account",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"",prop:"password"},{default:e.withCtx(()=>[e.createVNode(f,{class:"account-input",modelValue:t.password,"onUpdate:modelValue":s[1]||(s[1]=N=>t.password=N),type:"password",placeholder:"请输入密码","show-password":"",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(c,{name:"password",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}}),Z=L._export_sfc(Y,[["__scopeId","data-v-48037c0f"]]),ee={class:"account-wrap"},te={class:"video-wrap"},oe=e.defineComponent({__name:"index",props:{systemKey:{default:""},activeTabName:{default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(v,{emit:m}){const n=v,t=m,b=g.useLoginState(g.pinia),{systemInfo:y}=g.storeToRefs(b),a=e.ref(null),l=e.ref(null);let s=!1,c=null;const f=async i=>{if(!i)return;const r=new FormData;r.set("file",i);const h=y.value.plat_id;h&&r.set("systemKey",h),console.log("Face Recognition",h);const w=await M.verifyFaceImage(r),{data:o}=w||{},{account:u,password:p,layer:_}=(o==null?void 0:o.data)||{},E=o==null?void 0:o.msg;if(!u){k.ElMessage.warning(E||"识别失败,请重新识别!");return}t("handleLoginFormChange",!0,{account:u,password:p})},d=()=>{if(!l.value||!a.value)return;const i=l.value,r=i.getContext("2d"),h=a.value;i.width=200,i.height=200;const w=h.videoWidth||640,o=h.videoHeight||480,u=Math.min(200/w,200/o),p=w*u,_=o*u,E=(200-p)/2,S=(200-_)/2;r==null||r.drawImage(h,0,0,w,o,E,S,p,_),i.toBlob(x=>{if(x){const $=new File([x],"face.png",{type:"image/png"});f($)}},"image/png")},C=async()=>{if(!a.value||s)return;const i=a.value;try{if(c=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user"},audio:!1}),i){const r=i;r.srcObject=c,s=!0}}catch{k.ElMessage.warning("摄像头启动失败")}};function N(i){if(i&&(i.getTracks().forEach(r=>r.stop()),a.value)){const r=a.value;r.srcObject=null}}const V=()=>{N(c),s=!1};return e.watch(()=>n.activeTabName,i=>{if(i!==T.FACE){V();return}if(i===T.FACE&&!s){C();return}}),e.onBeforeUnmount(()=>{V()}),(i,r)=>(e.openBlock(),e.createElementBlock("div",ee,[e.createElementVNode("div",te,[e.createElementVNode("video",{class:"face-video",ref_key:"videoRef",ref:a,id:"v",autoplay:"",playsinline:""},null,512)]),e.createElementVNode("button",{class:"face-screenshot",onClick:d},"人脸识别"),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:l,id:"canvas"},null,512)]))}}),ae=L._export_sfc(oe,[["__scopeId","data-v-8b30c6df"]]);function ne(){const v={account:"superadmin",password:"1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",tenantId:-1,code:"",codeId:0};return k.service({url:"/api/sysAuth/login",method:"post",data:v})}const q=g.useLoginState(g.pinia),{isDefaultModel:se}=g.useModelManagement(),ie=async(v,m)=>{var b,y,a,l,s,c,f,d,C,N,V,i,r,h;let n=Object.values(v),t=await g.loginPlatFormDataApi({userName:(b=n==null?void 0:n[0])==null?void 0:b.trim(),password:(y=n==null?void 0:n[1])==null?void 0:y.trim()});if(((a=t==null?void 0:t.data)==null?void 0:a.status)===200&&((s=(l=t==null?void 0:t.data)==null?void 0:l.result)==null?void 0:s.length)<=0&&(t=await g.loginCommonAccount({userName:(c=n==null?void 0:n[0])==null?void 0:c.trim(),password:(f=n==null?void 0:n[1])==null?void 0:f.trim(),path:"系统管理/用户管理",platId:m})),((d=t==null?void 0:t.data)==null?void 0:d.status)===200&&((N=(C=t==null?void 0:t.data)==null?void 0:C.result)==null?void 0:N.length)>0){const o=((i=(V=t==null?void 0:t.data)==null?void 0:V.result)==null?void 0:i.find(p=>se(p)))||((h=(r=t==null?void 0:t.data)==null?void 0:r.result)==null?void 0:h[0]);sessionStorage.setItem("systemKey",m&&m!==""?m:o==null?void 0:o.plat_id);let u=o;return u.plat_id=u.plat_id??m,q.setLoginUserInfo(u),q.setSystemKey(m&&m!==""?m:o==null?void 0:o.plat_id),!0}else return k.ElMessage.error("输入的密码错误,请重新输入"),!1},le={class:"login-wrap"},ce={class:"login-body"},re={class:"login-body-item left"},de={class:"title"},ue={class:"first-level"},me={key:0,class:"logo"},fe=["src"],pe={class:"english-name"},ge={class:"login-body-item right"},_e=e.defineComponent({__name:"index",props:{oldSystemKey:{}},emits:["change"],setup(v,{emit:m}){const n=I.useRouter(),t=g.useMenuState(g.pinia),b=g.useLoginState(g.pinia),{systemKey:y,systemInfo:a,loginUserInfo:l}=g.storeToRefs(b),s=e.computed(()=>{var o;return((o=a.value)==null?void 0:o.logo)||g.logo}),c=e.ref({sysCTitle:"",sysETitle:"",loginTitle:"账户密码登录",tabs:[{name:"密码登录",btnLabel:"登录",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"},{name:"人脸识别",btnLabel:"人脸识别",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"},{name:"刷卡登录",btnLabel:"登录",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"}]}),f=e.ref("account"),d=e.ref(!1),C=e.ref(!1),N=()=>{d.value=!0},V=(o,u)=>{d.value=!1,o&&h(u)},i=async()=>{var o,u,p;try{const _=await ne();return((o=_==null?void 0:_.data)==null?void 0:o.code)===200?(sessionStorage.setItem("loginToken",(p=(u=_.data)==null?void 0:u.result)==null?void 0:p.accessToken),!0):!1}catch(_){k.ElMessage.error(_)}return!0},r=async()=>(sessionStorage.setItem("magicToken","123456"),!0);e.onMounted(async()=>{await i()});const h=async o=>{var S,x,$,B,F,A;C.value=!0;let u=[ie(o,(S=a.value)==null?void 0:S.plat_id),i(),r()];const p=await Promise.all(u),_=p==null?void 0:p.every(R=>R);let E=[{id:"1",request_method:"Post",request_url:"/platform/getdata",request_param:JSON.stringify({userName:"hjj",password:"1"}),request_result:"{}",is_delete:!1,request_table:"admin_user",request_type:"login"}];try{await g.pageBatchAddApi({platId:parseInt((x=l==null?void 0:l.value)==null?void 0:x.plat_id),changeContents:[{tableName:"log",tableContents:E}]})}catch{}_?(await g.verifyStructureDataToStore(),n.push("/"),b.setLogRecordAsync({type:"登录",data:{account:(($=l.value)==null?void 0:$.account)??((B=l.value)==null?void 0:B.账号),userName:((F=l.value)==null?void 0:F.姓名)||((A=l.value)==null?void 0:A.userName)||"未知"}},"/login","login"),t.setHasClickEditComp(!1)):C.value=!1},w=o=>{f.value=o,d.value=!1,C.value=!1};return(o,u)=>(e.openBlock(),e.createElementBlock("div",le,[e.createElementVNode("div",ce,[e.createElementVNode("div",re,[e.createVNode(j,{class:"login-left-bg"},{img:e.withCtx(()=>{var p,_;return[e.createElementVNode("div",de,[e.createElementVNode("div",ue,[s.value?(e.openBlock(),e.createElementBlock("div",me,[e.createElementVNode("img",{src:s.value,alt:""},null,8,fe)])):e.createCommentVNode("",!0),e.createElementVNode("div",pe,e.toDisplayString(((p=e.unref(a))==null?void 0:p.EnglishName)||"Insofworks"),1)]),e.createElementVNode("div",null,e.toDisplayString(((_=e.unref(a))==null?void 0:_.chineseName)||"工业软件建模与开发系统"),1)]),u[0]||(u[0]=e.createElementVNode("div",{class:"divide-line"},null,-1))]}),_:1})]),e.createElementVNode("div",ge,[e.createVNode(Q,{loading:C.value,onClickLogin:N,onHandleTabChange:w},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.loginTitle),1)]),tabLabel1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.tabs[0].name),1)]),tabContent1:e.withCtx(()=>[e.createVNode(Z,{activeTabName:f.value,isClickLogin:d.value,onHandleLoginFormChange:V},null,8,["activeTabName","isClickLogin"])]),tabButton1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.tabs[0].btnLabel),1)]),tabLabel2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.tabs[1].name),1)]),tabContent2:e.withCtx(()=>[e.createVNode(ae,{systemKey:o.oldSystemKey,activeTabName:f.value,isClickLogin:d.value,onHandleLoginFormChange:V},null,8,["systemKey","activeTabName","isClickLogin"])]),tabButton2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.tabs[1].btnLabel),1)]),_:1},8,["loading"])])])]))}}),ve=L._export_sfc(_e,[["__scopeId","data-v-992a7c9a"]]);exports.default=ve;