ss-component-new 1.3.75 → 1.3.76

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 (55) hide show
  1. package/dist/{array-B2GwQ_Iw.cjs → array-DtmeNOPn.cjs} +1 -1
  2. package/dist/{array-DC3JqQ5X.js → array-Xb-5MHCa.js} +3 -3
  3. package/dist/{index-BGB70vq2.js → index--D0Thf0J.js} +1 -1
  4. package/dist/{index-BCsA7u2L.js → index-0HSo1RHX.js} +2 -2
  5. package/dist/{index-kmFqy9IE.cjs → index-B-A_4_n_.cjs} +1 -1
  6. package/dist/{index-r2E1MWuT.cjs → index-B-nrai8J.cjs} +1 -1
  7. package/dist/{index-Bppytlxv.js → index-BFtGkyJf.js} +150 -150
  8. package/dist/index-BGuyjj26.cjs +1 -0
  9. package/dist/{index-Ca1FyalS.js → index-BLeSUjbB.js} +1 -1
  10. package/dist/{index-BlWf_QKA.js → index-BLqnYCsi.js} +1 -1
  11. package/dist/{index-CBvqtuHe.cjs → index-BQEvzo4s.cjs} +1 -1
  12. package/dist/{index-DNiODPt0.cjs → index-BRyE_Lab.cjs} +1 -1
  13. package/dist/{index-BTnVs_5h.cjs → index-B_kCqo4M.cjs} +1 -1
  14. package/dist/{index-lHcLtJL_.js → index-B_uWA5AJ.js} +1 -1
  15. package/dist/{index--4D9Xe9Z.js → index-BkipVGFw.js} +1 -1
  16. package/dist/{index-CMAZ8ruo.js → index-BrLLsp39.js} +1 -1
  17. package/dist/{index-CvOMCo4e.cjs → index-BulgFj9c.cjs} +1 -1
  18. package/dist/{index-BuxcJz7D.js → index-C-iUVY59.js} +9 -9
  19. package/dist/{index-DEKd1gUV.js → index-C3gtImRs.js} +1 -1
  20. package/dist/{index-m_NVGsa0.js → index-C55GyDvp.js} +2 -2
  21. package/dist/{index-BWYPENKn.cjs → index-CFCn1Gpd.cjs} +1 -1
  22. package/dist/index-CI_UVQ4Z.js +476 -0
  23. package/dist/{index-yZHiXug3.cjs → index-CLTriF5O.cjs} +2 -2
  24. package/dist/{index-DER-hio8.js → index-CMdeEau9.js} +1 -1
  25. package/dist/{index-CHd_G5WJ.js → index-COyNONVE.js} +8 -4
  26. package/dist/{index-C4dmnQY1.js → index-CSUpvfmH.js} +7 -7
  27. package/dist/{index-BTp17Sr3.cjs → index-CW-lwsDk.cjs} +1 -1
  28. package/dist/{index-D8FAFpZZ.js → index-CcJb2uXu.js} +2 -2
  29. package/dist/{index-C9d-Ps3C.cjs → index-D03MbrNK.cjs} +1 -1
  30. package/dist/{index-DCa_V-r-.cjs → index-DJg5d7ei.cjs} +1 -1
  31. package/dist/{index-C_8Ya9Yk.js → index-DMfz6Qrm.js} +2 -2
  32. package/dist/{index-BPttEIMm.cjs → index-DPjDv9Ws.cjs} +4 -4
  33. package/dist/{index-ByZ5A-nL.cjs → index-DbFGGKSI.cjs} +1 -1
  34. package/dist/{index-BR9-1Mf3.cjs → index-DhSdgyHz.cjs} +1 -1
  35. package/dist/{index-Dr4h917I.cjs → index-DtJC43XK.cjs} +1 -1
  36. package/dist/{index-hmilzPVR.js → index-DxGZaHuy.js} +2 -2
  37. package/dist/{index-CzA7n2gb.js → index-Dysx8GkS.js} +1 -1
  38. package/dist/{index-B5z0FIXi.cjs → index-HCKkRTvn.cjs} +1 -1
  39. package/dist/{index-JqWzEQd7.cjs → index-IYg_iR8H.cjs} +1 -1
  40. package/dist/{index-BkQrQl62.js → index-jiFqoYN9.js} +3 -3
  41. package/dist/index-pWdzgg-b.cjs +1 -0
  42. package/dist/{index-DGRHT5Ib.cjs → index-wv1wwLNX.cjs} +1 -1
  43. package/dist/{main-DJ3YgqIH.js → main-BLk4Mfi1.js} +2 -2
  44. package/dist/{main-DBJrJIJ9.cjs → main-j2YKSWX-.cjs} +1 -1
  45. package/dist/ss-component.cjs +1 -1
  46. package/dist/ss-component.css +2 -2
  47. package/dist/ss-component.js +4 -4
  48. package/dist/ss-component2.cjs +1 -1
  49. package/dist/ss-component2.js +12 -12
  50. package/dist/{threeModel-CoYAQGav.cjs → threeModel-C3N_ghfY.cjs} +1 -1
  51. package/dist/{threeModel-DWszH2iL.js → threeModel-v33sxEBl.js} +1 -1
  52. package/package.json +1 -1
  53. package/dist/index-B26jxdEd.cjs +0 -1
  54. package/dist/index-DYUNMn4m.js +0 -465
  55. package/dist/index-DxdIHz86.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";const a=require("./index-Dc6Q0f3F.cjs");function e(t){return a.axios.post("http://222.92.178.198:63002/platform/createdata",t)}function p(t){return a.axios.post("http://222.92.178.198:63002/platform/getdata",t)}function o(t){return a.axios.post("http://222.92.178.198:63002/platform/getPageData",t)}function i(t){return a.axios.post("http://222.92.178.198:63002/platform/getPage",t)}function n(t){return a.axios.post("http://222.92.178.198:63002/platform/page/add",t)}function r(t){return a.axios.post("http://222.92.178.198:63002/platform/page/update",t)}function c(t){return a.axios.post("http://222.92.178.198:63002/platform/page/delete",t)}exports.createPlatFormDataApi=e;exports.getPageDataApi=i;exports.loginCommonAccount=o;exports.loginPlatFormDataApi=p;exports.pageBatchAddApi=n;exports.pageBatchDeleteApi=c;exports.pageBatchUpdateApi=r;
@@ -3,7 +3,7 @@ import "./index-BHtNKL1L.js";
3
3
  import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CU0erI7U.js";
4
4
  import { g as h, h as C, a as _, s as c, u as k, i as S } from "./index-BYyFrGfX.js";
5
5
  import { g as v } from "./index-jkHlUTog.js";
6
- import { s as T } from "./index-D8FAFpZZ.js";
6
+ import { s as T } from "./index-CcJb2uXu.js";
7
7
  const A = _(), { itemData: B } = c(A), u = s(0), I = s([
8
8
  {
9
9
  label: "机构名称",
@@ -1,6 +1,6 @@
1
1
  import { s as E, u as g, b as A, p as S } from "./index-BYyFrGfX.js";
2
2
  import { ref as j } from "vue";
3
- import { g as _ } from "./index-CHd_G5WJ.js";
3
+ import { g as _ } from "./index-COyNONVE.js";
4
4
  const b = (t) => {
5
5
  var n, o;
6
6
  if (Array.isArray(Object.keys(t)) && ((n = Object.keys(t)) == null ? void 0 : n.length) > 0) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-DGRHT5Ib.cjs"),r=require("./index-B5z0FIXi.cjs"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),s={class:"log-wrap"},u=t.defineComponent({__name:"index",setup(_){const e=t.reactive({...c.State});t.onMounted(async()=>{e.tableData=await e.getLogTableDataAsync()});const l=n=>{var o;e.clickButton(n,(o=e.tableData)==null?void 0:o.map(a=>a.id),a=>{console.log("清空操作成功:",a),a&&(e.tableData=[])})};return(n,o)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(r.ssTable,{itemData:e.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:l},null,8,["itemData"])]))}}),d=i._export_sfc(u,[["__scopeId","data-v-b4bfde04"]]);exports.default=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-wv1wwLNX.cjs"),r=require("./index-HCKkRTvn.cjs"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),s={class:"log-wrap"},u=t.defineComponent({__name:"index",setup(_){const e=t.reactive({...c.State});t.onMounted(async()=>{e.tableData=await e.getLogTableDataAsync()});const l=n=>{var o;e.clickButton(n,(o=e.tableData)==null?void 0:o.map(a=>a.id),a=>{console.log("清空操作成功:",a),a&&(e.tableData=[])})};return(n,o)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(r.ssTable,{itemData:e.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:l},null,8,["itemData"])]))}}),d=i._export_sfc(u,[["__scopeId","data-v-b4bfde04"]]);exports.default=d;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./index-B5z0FIXi.cjs"),d=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),u=()=>{const l=e.ref("日志管理"),n=e.ref(),o=e.ref([{key:"header",contents:[{prop:"name",align:"center",isRun:!1,label:"日志名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"time",align:"center",isRun:!1,label:"生成时间",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"sort",align:"operator",isRun:!1,label:"操作人",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"remark",align:"center",isRun:!1,label:"备注",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作",isMainKey:!0}]},{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:[[{id:764397741125751},"test","test","test","test"]]}]);return{compName:l,changedRow:n,tableInfo:o,handleItemDataChange:a=>{},clickRowButton:async(a,r)=>{}}},f={class:"log-management"},m={class:"body"},p=e.defineComponent({__name:"index",setup(l){const{compName:n,changedRow:o,tableInfo:s,handleItemDataChange:i,clickRowButton:a}=u();return(r,t)=>(e.openBlock(),e.createElementBlock("div",f,[t[0]||(t[0]=e.createElementVNode("div",{class:"header"},null,-1)),e.createElementVNode("div",m,[e.createVNode(c.ssTable,{compName:e.unref(n),itemData:e.unref(s),changedContent:e.unref(o),onChange:e.unref(i),onOnButtonClick:e.unref(a)},null,8,["compName","itemData","changedContent","onChange","onOnButtonClick"])]),t[1]||(t[1]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))]))}}),g=d._export_sfc(p,[["__scopeId","data-v-5bfd5576"]]);exports.default=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./index-HCKkRTvn.cjs"),d=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),u=()=>{const l=e.ref("日志管理"),n=e.ref(),o=e.ref([{key:"header",contents:[{prop:"name",align:"center",isRun:!1,label:"日志名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"time",align:"center",isRun:!1,label:"生成时间",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"sort",align:"operator",isRun:!1,label:"操作人",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"remark",align:"center",isRun:!1,label:"备注",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作",isMainKey:!0}]},{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:[[{id:764397741125751},"test","test","test","test"]]}]);return{compName:l,changedRow:n,tableInfo:o,handleItemDataChange:a=>{},clickRowButton:async(a,r)=>{}}},f={class:"log-management"},m={class:"body"},p=e.defineComponent({__name:"index",setup(l){const{compName:n,changedRow:o,tableInfo:s,handleItemDataChange:i,clickRowButton:a}=u();return(r,t)=>(e.openBlock(),e.createElementBlock("div",f,[t[0]||(t[0]=e.createElementVNode("div",{class:"header"},null,-1)),e.createElementVNode("div",m,[e.createVNode(c.ssTable,{compName:e.unref(n),itemData:e.unref(s),changedContent:e.unref(o),onChange:e.unref(i),onOnButtonClick:e.unref(a)},null,8,["compName","itemData","changedContent","onChange","onOnButtonClick"])]),t[1]||(t[1]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))]))}}),g=d._export_sfc(p,[["__scopeId","data-v-5bfd5576"]]);exports.default=g;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dj8zYuMh.cjs");const n=require("./index-BfOeLrc4.cjs"),b=require("./index-Dc6Q0f3F.cjs"),i=require("./index-B5z0FIXi.cjs"),y=n.useModelComp(),{itemData:g}=n.storeToRefs(y),u=o.ref(0),D=o.ref([{label:"机构名称",value:"",name:"deptName"}]),f=e=>{console.log("handleQueryChange",e)},c=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"机构名称",prop:"deptName"},{label:"机构类型",prop:"deptType",formType:"Select",options:[{label:"集团",value:"集团"},{label:"公司",value:"公司"},{label:"部门",value:"部门"},{label:"区域",value:"区域"},{label:"组",value:"组"}]},{label:"机构状态",formType:"Radio",prop:"deptStatus",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"操作"}]},{key:"tableContents",contents:[]}]),m=e=>{n.submitTableAsyncByVerify(e.singleContent,e.buttonName,u.value)},h=e=>{console.log("onDoubleClick",e)},C=(e,a)=>{console.log("onButtonClick",e,a)},_=async e=>{const a=await n.handleSubmitAsync(b.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),r=a==null?void 0:a.map(t=>{var l;return{id:t.id,tableData:(l=t==null?void 0:t.value)==null?void 0:l.tableData}});return r==null?void 0:r.map(t=>{var l;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(l=t==null?void 0:t.tableData)==null||l.forEach((p,d)=>{s[`a${d}`]=p}),s}else return{...t.tableData,id:t.id}})},S={comp:"Group",name:"/系统管理/部门管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:c.value,name:""}]}]};o.watch(()=>g.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(c.value=(a=e==null?void 0:e[0])==null?void 0:a.compData)});const k=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:_,handleItemDataChange:m,handleQueryChange:f,onButtonClick:C,onDoubleClick:h,pageData:c,queryFormData:D,structureId:u,tempDeptPageData:S},Symbol.toStringTag,{value:"Module"})),v={class:"role-wrapper"},T=o.defineComponent({__name:"index",setup(e){const a=o.reactive({...k}),r=n.useMenuState(),{activeMenuPath:t}=n.storeToRefs(r);return o.onMounted(async()=>{a.structureId=await n.getActivePageStructureId(t.value)}),(l,s)=>(o.openBlock(),o.createElementBlock("div",v,[o.createVNode(i.ssTable,{itemData:a.pageData,onChange:a.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=T;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dj8zYuMh.cjs");const n=require("./index-BfOeLrc4.cjs"),b=require("./index-Dc6Q0f3F.cjs"),i=require("./index-HCKkRTvn.cjs"),y=n.useModelComp(),{itemData:g}=n.storeToRefs(y),u=o.ref(0),D=o.ref([{label:"机构名称",value:"",name:"deptName"}]),f=e=>{console.log("handleQueryChange",e)},c=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"机构名称",prop:"deptName"},{label:"机构类型",prop:"deptType",formType:"Select",options:[{label:"集团",value:"集团"},{label:"公司",value:"公司"},{label:"部门",value:"部门"},{label:"区域",value:"区域"},{label:"组",value:"组"}]},{label:"机构状态",formType:"Radio",prop:"deptStatus",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"操作"}]},{key:"tableContents",contents:[]}]),m=e=>{n.submitTableAsyncByVerify(e.singleContent,e.buttonName,u.value)},h=e=>{console.log("onDoubleClick",e)},C=(e,a)=>{console.log("onButtonClick",e,a)},_=async e=>{const a=await n.handleSubmitAsync(b.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),r=a==null?void 0:a.map(t=>{var l;return{id:t.id,tableData:(l=t==null?void 0:t.value)==null?void 0:l.tableData}});return r==null?void 0:r.map(t=>{var l;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(l=t==null?void 0:t.tableData)==null||l.forEach((p,d)=>{s[`a${d}`]=p}),s}else return{...t.tableData,id:t.id}})},S={comp:"Group",name:"/系统管理/部门管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:c.value,name:""}]}]};o.watch(()=>g.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(c.value=(a=e==null?void 0:e[0])==null?void 0:a.compData)});const k=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:_,handleItemDataChange:m,handleQueryChange:f,onButtonClick:C,onDoubleClick:h,pageData:c,queryFormData:D,structureId:u,tempDeptPageData:S},Symbol.toStringTag,{value:"Module"})),v={class:"role-wrapper"},T=o.defineComponent({__name:"index",setup(e){const a=o.reactive({...k}),r=n.useMenuState(),{activeMenuPath:t}=n.storeToRefs(r);return o.onMounted(async()=>{a.structureId=await n.getActivePageStructureId(t.value)}),(l,s)=>(o.openBlock(),o.createElementBlock("div",v,[o.createVNode(i.ssTable,{itemData:a.pageData,onChange:a.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=T;
@@ -1,5 +1,5 @@
1
1
  import { ref as s, defineComponent as f, createElementBlock as m, openBlock as u, createElementVNode as e, createVNode as p, unref as t } from "vue";
2
- import { s as b } from "./index-D8FAFpZZ.js";
2
+ import { s as b } from "./index-CcJb2uXu.js";
3
3
  import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const g = () => {
5
5
  const i = s("角色管理"), a = s(), o = s([
@@ -3,7 +3,7 @@ import { A as H } from "./index-vURW-4ky.js";
3
3
  import { d as M, f as V } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CU0erI7U.js";
4
4
  import { E as z } from "./index-jkHlUTog.js";
5
5
  import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import { S as W } from "./index-Bppytlxv.js";
6
+ import { S as W } from "./index-BFtGkyJf.js";
7
7
  import { S as E } from "./index-BHtNKL1L.js";
8
8
  const D = { class: "avatar-model-wrap" }, G = { key: 0 }, J = /* @__PURE__ */ F({
9
9
  __name: "index",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as z, reactive as R, onMounted as T, watch as A, nextTick as U, resolveComponent as i, createElementBlock as k, openBlock as u, createVNode as s, withCtx as l, createElementVNode as _, toDisplayString as g, Fragment as v, renderList as B, createBlock as b, createTextVNode as f, withDirectives as I, vShow as P } from "vue";
2
- import { s as E } from "./index-D8FAFpZZ.js";
2
+ import { s as E } from "./index-CcJb2uXu.js";
3
3
  import { u as F, s as O, S as x, c as H } from "./index-BYyFrGfX.js";
4
4
  import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const W = { class: "routerPage-wrapper" }, j = { class: "role-dialog-header" }, q = ["title"], G = { title: "更多" }, J = { class: "dialog-footer" }, K = /* @__PURE__ */ z({
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),b=require("./index-B5z0FIXi.cjs"),y=require("./index-Dc6Q0f3F.cjs"),n=require("./index-BfOeLrc4.cjs"),g=n.useModelComp(),{itemData:i}=n.storeToRefs(g),u=o.ref(0),m=o.ref([{label:"机构名称",value:"",name:"deptName"}]),D=e=>{console.log("handleQueryChange",e)},c=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"职位名称",prop:"postName"},{label:"职位排序",formType:"Number",prop:"postOrder"},{label:"备注",formType:"TextArea",prop:"remark"},{label:"操作"}]},{key:"tableContents",contents:[]}]),f=e=>{n.submitTableAsyncByVerify(e.singleContent,e.buttonName,u.value)},h=e=>{console.log("onDoubleClick",e)},C=(e,a)=>{console.log("onButtonClick",e,a)},k=async e=>{const a=await n.handleSubmitAsync(y.getInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:e}},"查询"),l=a==null?void 0:a.map(t=>{var r;return{id:t.id,tableData:(r=t==null?void 0:t.value)==null?void 0:r.tableData}});return l==null?void 0:l.map(t=>{var r;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(r=t==null?void 0:t.tableData)==null||r.forEach((d,p)=>{s[`a${p}`]=d}),s}else return{...t.tableData,id:t.id}})},_={comp:"Group",name:"/系统管理/职位管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:c.value,name:""}]}]};o.watch(()=>i.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(c.value=(a=e==null?void 0:e[0])==null?void 0:a.compData)});const S=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:k,handleItemDataChange:f,handleQueryChange:D,onButtonClick:C,onDoubleClick:h,pageData:c,queryFormData:m,structureId:u,tempPostPageData:_},Symbol.toStringTag,{value:"Module"})),T=o.defineComponent({__name:"index",setup(e){const a=o.reactive({...S}),l=n.useMenuState(),{activeMenuPath:t}=n.storeToRefs(l);return o.onMounted(async()=>{a.structureId=await n.getActivePageStructureId(t.value)}),(r,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(b.ssTable,{itemData:a.pageData,onChange:a.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=T;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),b=require("./index-HCKkRTvn.cjs"),y=require("./index-Dc6Q0f3F.cjs"),n=require("./index-BfOeLrc4.cjs"),g=n.useModelComp(),{itemData:i}=n.storeToRefs(g),u=o.ref(0),m=o.ref([{label:"机构名称",value:"",name:"deptName"}]),D=e=>{console.log("handleQueryChange",e)},c=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"职位名称",prop:"postName"},{label:"职位排序",formType:"Number",prop:"postOrder"},{label:"备注",formType:"TextArea",prop:"remark"},{label:"操作"}]},{key:"tableContents",contents:[]}]),f=e=>{n.submitTableAsyncByVerify(e.singleContent,e.buttonName,u.value)},h=e=>{console.log("onDoubleClick",e)},C=(e,a)=>{console.log("onButtonClick",e,a)},k=async e=>{const a=await n.handleSubmitAsync(y.getInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:e}},"查询"),l=a==null?void 0:a.map(t=>{var r;return{id:t.id,tableData:(r=t==null?void 0:t.value)==null?void 0:r.tableData}});return l==null?void 0:l.map(t=>{var r;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(r=t==null?void 0:t.tableData)==null||r.forEach((d,p)=>{s[`a${p}`]=d}),s}else return{...t.tableData,id:t.id}})},_={comp:"Group",name:"/系统管理/职位管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:c.value,name:""}]}]};o.watch(()=>i.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(c.value=(a=e==null?void 0:e[0])==null?void 0:a.compData)});const S=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:k,handleItemDataChange:f,handleQueryChange:D,onButtonClick:C,onDoubleClick:h,pageData:c,queryFormData:m,structureId:u,tempPostPageData:_},Symbol.toStringTag,{value:"Module"})),T=o.defineComponent({__name:"index",setup(e){const a=o.reactive({...S}),l=n.useMenuState(),{activeMenuPath:t}=n.storeToRefs(l);return o.onMounted(async()=>{a.structureId=await n.getActivePageStructureId(t.value)}),(r,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(b.ssTable,{itemData:a.pageData,onChange:a.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=T;
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as iA, defineProps as vn, ref as Z, computed as $e, watch as Ne, onMounted as $A, resolveComponent as Oe, createBlock as We, openBlock as O, withCtx as D, createElementVNode as M, toDisplayString as Ge, createElementBlock as le, Fragment as sA, renderList as PA, createCommentVNode as he, normalizeStyle as qA, createVNode as B, unref as a, resolveDynamicComponent as RA, provide as fl, resolveDirective as dn, withDirectives as CA, vShow as kA, createTextVNode as dA, renderSlot as ZA, normalizeClass as sl, onUnmounted as Tn, createSlots as Zn, withModifiers as Wn } from "vue";
2
- import { m as Dl, a as Ql, b as Yl, c as Gn } from "./array-DC3JqQ5X.js";
3
- import Kn from "./index-BkQrQl62.js";
4
- import { _ as gn, s as Pn, a as NA, b as yA, c as Un, d as Fn, r as nA, o as UA, e as FA, f as zn, h as xl, i as pn, j as Bn, k as Rn, t as Nn, l as al, m as ml, n as Ml, p as rl, q as yl, u as ol, v as ul, w as cl, x as vl, y as dl, z as El, D as Vn, A as qn, B as _n, C as rn, E as on, F as cA, G as $n, H as et, I as At, J as un, K as AA, L as lt, M as Cn, N as nt, O as tt, P as Xl } from "./index-C4dmnQY1.js";
2
+ import { m as Dl, a as Ql, b as Yl, c as Gn } from "./array-Xb-5MHCa.js";
3
+ import Kn from "./index-jiFqoYN9.js";
4
+ import { _ as gn, s as Pn, a as NA, b as yA, c as Un, d as Fn, r as nA, o as UA, e as FA, f as zn, h as xl, i as pn, j as Bn, k as Rn, t as Nn, l as al, m as ml, n as Ml, p as rl, q as yl, u as ol, v as ul, w as cl, x as vl, y as dl, z as El, D as Vn, A as qn, B as _n, C as rn, E as on, F as cA, G as $n, H as et, I as At, J as un, K as AA, L as lt, M as Cn, N as nt, O as tt, P as Xl } from "./index-CSUpvfmH.js";
5
5
  import { u as gA, a as WA, p as Ve, s as Ke, b as GA, c as Je } from "./index-BYyFrGfX.js";
6
6
  import { useRouter as Jl } from "vue-router";
7
7
  import { a as yn, d as En, e as wn, f as Hn, g as hn, h as mn, t as at, c as ft, b as st } from "./index-CAPx0_D4.js";
8
8
  import { u as Mn, E as zl, b as bn, g as jA, c as rt, a as xA, s as pl } from "./index-jkHlUTog.js";
9
- import { g as Hl, s as ot, _ as Ol } from "./index-Bppytlxv.js";
9
+ import { g as Hl, s as ot, _ as Ol } from "./index-BFtGkyJf.js";
10
10
  import { u as hl, b as kl, d as il, g as TA, c as jn, e as gl, o as xn, f as ut, l as ct, h as vt, i as dt, j as it } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CU0erI7U.js";
11
11
  import "./index-Cfzc5_ZK.js";
12
12
  import "./index-B5i-XCGU.js";
@@ -14,15 +14,15 @@ import { c as Xn } from "./menuIndex-BJ1CSzli.js";
14
14
  import { _ as OA } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
15
  import { C as gt } from "./index-vURW-4ky.js";
16
16
  import { S as tA } from "./index-BHtNKL1L.js";
17
- import Pt from "./threeModel-DWszH2iL.js";
17
+ import Pt from "./threeModel-v33sxEBl.js";
18
18
  import { _ as XA } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
19
19
  import { s as Pl } from "./index-X_HnLtRC.js";
20
20
  import { T as Il, u as zt, a as pt } from "./threeViewerHost-B2fHt8c2.js";
21
- import { s as Sl } from "./index--4D9Xe9Z.js";
22
- import { u as On, E as Bt } from "./index-D8FAFpZZ.js";
23
- import { g as In, c as Ct, p as yt } from "./index-CHd_G5WJ.js";
21
+ import { s as Sl } from "./index-BkipVGFw.js";
22
+ import { u as On, E as Bt } from "./index-CcJb2uXu.js";
23
+ import { g as In, c as Ct, p as yt } from "./index-COyNONVE.js";
24
24
  import { T as cn } from "./svgIcon-4u4PW7Is.js";
25
- import { m as Et, v as wt } from "./index-BlWf_QKA.js";
25
+ import { m as Et, v as wt } from "./index-BLqnYCsi.js";
26
26
  import { f as Ht, a as ht } from "./animationData-CO_7EKV4.js";
27
27
  gA();
28
28
  const mt = gA(), Sn = async (v, p) => {
@@ -1,6 +1,6 @@
1
1
  import { ref as _, computed as A } from "vue";
2
2
  import { f as I, E as s, g as M } from "./index-jkHlUTog.js";
3
- import { E as N } from "./index-D8FAFpZZ.js";
3
+ import { E as N } from "./index-CcJb2uXu.js";
4
4
  const K = _([]), T = A(() => [
5
5
  {
6
6
  key: "extraButton",
@@ -1,6 +1,6 @@
1
1
  import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
2
- import { s as m } from "./index-D8FAFpZZ.js";
3
- import { g as d, c as _ } from "./index-DEKd1gUV.js";
2
+ import { s as m } from "./index-CcJb2uXu.js";
3
+ import { g as d, c as _ } from "./index-C3gtImRs.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const l = n([]), g = c(() => [
6
6
  {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-BfOeLrc4.cjs"),_=require("./index-B5z0FIXi.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-BfOeLrc4.cjs"),_=require("./index-HCKkRTvn.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,476 @@
1
+ import { createElementBlock as I, openBlock as B, createElementVNode as v, renderSlot as $, defineComponent as P, ref as A, resolveComponent as E, createVNode as h, withCtx as u, unref as R, reactive as q, watch as D, onBeforeUnmount as J, onMounted as Q, toDisplayString as S, createTextVNode as V } from "vue";
2
+ import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ import { b as j, p as H, d as X, s as Y } from "./index-BYyFrGfX.js";
4
+ import { s as z, E as O, a as Z } from "./index-jkHlUTog.js";
5
+ import { useRouter as ee } from "vue-router";
6
+ import { v as te } from "./index-BLqnYCsi.js";
7
+ import { l as ae, a as oe } from "./index-COyNONVE.js";
8
+ const ne = {}, se = { class: "left-wrap" }, ie = { class: "left-bg" };
9
+ function ce(y, _) {
10
+ return B(), I("div", se, [
11
+ v("div", ie, [
12
+ $(y.$slots, "img", {}, void 0, !0)
13
+ ])
14
+ ]);
15
+ }
16
+ const le = /* @__PURE__ */ M(ne, [["render", ce], ["__scopeId", "data-v-9b7ee6c9"]]), x = {
17
+ ACCOUNT: "account",
18
+ FACE: "face"
19
+ }, re = { class: "right-wrap" }, de = { class: "tab-content" }, ue = { class: "tab-tips" }, me = { class: "tab-content" }, fe = { class: "tab-tips" }, pe = /* @__PURE__ */ P({
20
+ __name: "index",
21
+ props: {
22
+ tabList: {
23
+ type: Array,
24
+ default: []
25
+ },
26
+ loading: {
27
+ type: Boolean,
28
+ default: !1
29
+ }
30
+ },
31
+ emits: ["clickLogin", "handleTabChange"],
32
+ setup(y, { emit: _ }) {
33
+ const t = A(x.ACCOUNT), e = _, w = () => {
34
+ e("clickLogin", t.value);
35
+ }, g = (i) => {
36
+ e("handleTabChange", i);
37
+ };
38
+ return (i, l) => {
39
+ const o = E("el-button"), b = E("el-tab-pane"), m = E("el-tabs");
40
+ return B(), I("div", re, [
41
+ h(m, {
42
+ modelValue: t.value,
43
+ "onUpdate:modelValue": l[0] || (l[0] = (f) => t.value = f),
44
+ class: "right-tabs",
45
+ onTabChange: g
46
+ }, {
47
+ default: u(() => [
48
+ h(b, {
49
+ name: R(x).ACCOUNT
50
+ }, {
51
+ label: u(() => [
52
+ $(i.$slots, "tabLabel1", {}, void 0, !0)
53
+ ]),
54
+ default: u(() => [
55
+ v("div", de, [
56
+ $(i.$slots, "tabContent1", {}, void 0, !0)
57
+ ]),
58
+ v("div", {
59
+ class: "tab-button special",
60
+ onClick: w
61
+ }, [
62
+ h(o, { loading: y.loading }, {
63
+ default: u(() => [
64
+ $(i.$slots, "tabButton1", {}, void 0, !0)
65
+ ]),
66
+ _: 3
67
+ }, 8, ["loading"])
68
+ ]),
69
+ v("div", ue, [
70
+ $(i.$slots, "tabTips1", {}, void 0, !0)
71
+ ])
72
+ ]),
73
+ _: 3
74
+ }, 8, ["name"]),
75
+ h(b, {
76
+ name: R(x).FACE
77
+ }, {
78
+ label: u(() => [
79
+ $(i.$slots, "tabLabel2", {}, void 0, !0)
80
+ ]),
81
+ default: u(() => [
82
+ v("div", me, [
83
+ $(i.$slots, "tabContent2", {}, void 0, !0)
84
+ ]),
85
+ v("div", fe, [
86
+ $(i.$slots, "tabTips2", {}, void 0, !0)
87
+ ])
88
+ ]),
89
+ _: 3
90
+ }, 8, ["name"])
91
+ ]),
92
+ _: 3
93
+ }, 8, ["modelValue"])
94
+ ]);
95
+ };
96
+ }
97
+ }), ge = /* @__PURE__ */ M(pe, [["__scopeId", "data-v-8b1962f0"]]), be = { class: "account-wrap" }, ve = /* @__PURE__ */ P({
98
+ __name: "index",
99
+ props: {
100
+ activeTabName: {
101
+ type: String,
102
+ default: ""
103
+ },
104
+ isClickLogin: {
105
+ type: Boolean,
106
+ default: !1
107
+ }
108
+ },
109
+ emits: ["handleLoginFormChange"],
110
+ setup(y, { emit: _ }) {
111
+ const t = y, e = q({
112
+ account: "",
113
+ password: ""
114
+ }), w = q({
115
+ account: [
116
+ { required: !0, message: "请输入账号", trigger: "blur" }
117
+ ],
118
+ password: [
119
+ { required: !0, message: "请输入密码", trigger: "blur" }
120
+ ]
121
+ }), g = A(null), i = _;
122
+ return D(() => t.isClickLogin, (l) => {
123
+ var o;
124
+ l && (t == null ? void 0 : t.activeTabName) === "account" && ((o = g.value) == null || o.validate((b) => {
125
+ var m;
126
+ for (let f in e)
127
+ e.hasOwnProperty(f) && (e[f] = (m = e[f]) == null ? void 0 : m.trim());
128
+ i("handleLoginFormChange", b, b ? e : null);
129
+ }));
130
+ }, {
131
+ immediate: !0
132
+ }), D(() => t.activeTabName, (l) => {
133
+ var o;
134
+ l === "account" && ((o = g.value) == null || o.resetFields());
135
+ }), (l, o) => {
136
+ const b = E("svg-icon"), m = E("el-input"), f = E("el-form-item"), k = E("el-form");
137
+ return B(), I("div", be, [
138
+ h(k, {
139
+ model: e,
140
+ rules: w,
141
+ ref_key: "formRef",
142
+ ref: g
143
+ }, {
144
+ default: u(() => [
145
+ h(f, {
146
+ label: "",
147
+ prop: "account"
148
+ }, {
149
+ default: u(() => [
150
+ h(m, {
151
+ class: "account-input",
152
+ modelValue: e.account,
153
+ "onUpdate:modelValue": o[0] || (o[0] = (L) => e.account = L),
154
+ placeholder: "请输入账号",
155
+ clearable: ""
156
+ }, {
157
+ prefix: u(() => [
158
+ h(b, {
159
+ name: "account",
160
+ style: { width: "15px", height: "15px" }
161
+ })
162
+ ]),
163
+ _: 1
164
+ }, 8, ["modelValue"])
165
+ ]),
166
+ _: 1
167
+ }),
168
+ h(f, {
169
+ label: "",
170
+ prop: "password"
171
+ }, {
172
+ default: u(() => [
173
+ h(m, {
174
+ class: "account-input",
175
+ modelValue: e.password,
176
+ "onUpdate:modelValue": o[1] || (o[1] = (L) => e.password = L),
177
+ type: "password",
178
+ placeholder: "请输入密码",
179
+ "show-password": "",
180
+ clearable: ""
181
+ }, {
182
+ prefix: u(() => [
183
+ h(b, {
184
+ name: "password",
185
+ style: { width: "15px", height: "15px" }
186
+ })
187
+ ]),
188
+ _: 1
189
+ }, 8, ["modelValue"])
190
+ ]),
191
+ _: 1
192
+ })
193
+ ]),
194
+ _: 1
195
+ }, 8, ["model", "rules"])
196
+ ]);
197
+ };
198
+ }
199
+ }), _e = /* @__PURE__ */ M(ve, [["__scopeId", "data-v-48037c0f"]]);
200
+ function he(y) {
201
+ return z({
202
+ url: "http://139.196.154.85:20015/api/face/face-verify",
203
+ method: "post",
204
+ data: y
205
+ });
206
+ }
207
+ const ye = { class: "account-wrap" }, Ce = { class: "video-wrap" }, we = /* @__PURE__ */ P({
208
+ __name: "index",
209
+ props: {
210
+ systemKey: { default: "" },
211
+ activeTabName: { default: "" },
212
+ isClickLogin: { type: Boolean, default: !1 }
213
+ },
214
+ emits: ["handleLoginFormChange"],
215
+ setup(y, { emit: _ }) {
216
+ const t = y, e = _, w = j(H), g = A(null), i = A(null);
217
+ let l = !1, o = null;
218
+ const b = async (n, c) => {
219
+ const { privateKey: C } = await w.getModelSecretAsync();
220
+ let p = n;
221
+ return c !== "superAdmin" && (p = X(n, C)), p;
222
+ }, m = async (n) => {
223
+ if (!n)
224
+ return;
225
+ const c = new FormData();
226
+ c.set("file", n), t.systemKey && c.set("systemKey", t.systemKey), console.log("Face Recognition", t.systemKey);
227
+ const C = await he(c), { data: p } = C || {}, { account: s, password: r, layer: d } = (p == null ? void 0 : p.data) || {}, a = p == null ? void 0 : p.msg;
228
+ if (!s) {
229
+ O.warning(a || "识别失败,请重新识别!");
230
+ return;
231
+ }
232
+ const T = await b(r, d);
233
+ e("handleLoginFormChange", !0, {
234
+ account: s,
235
+ password: T
236
+ });
237
+ }, f = () => {
238
+ if (!i.value || !g.value)
239
+ return;
240
+ const n = i.value, c = n.getContext("2d"), C = g.value;
241
+ n.width = 200, n.height = 200;
242
+ const p = C.videoWidth || 640, s = C.videoHeight || 480, r = Math.min(200 / p, 200 / s), d = p * r, a = s * r, T = (200 - d) / 2, F = (200 - a) / 2;
243
+ c == null || c.drawImage(C, 0, 0, p, s, T, F, d, a), n.toBlob((K) => {
244
+ if (K) {
245
+ const U = new File([K], "face.png", { type: "image/png" });
246
+ m(U);
247
+ }
248
+ }, "image/png");
249
+ }, k = async () => {
250
+ if (!g.value || l)
251
+ return;
252
+ const n = g.value;
253
+ try {
254
+ if (o = await navigator.mediaDevices.getUserMedia({
255
+ video: { facingMode: "user" },
256
+ // 前置;后置用 'environment'
257
+ audio: !1
258
+ }), n) {
259
+ const c = n;
260
+ c.srcObject = o, l = !0;
261
+ }
262
+ } catch {
263
+ O.warning("摄像头启动失败");
264
+ }
265
+ };
266
+ function L(n) {
267
+ if (n && (n.getTracks().forEach((c) => c.stop()), g.value)) {
268
+ const c = g.value;
269
+ c.srcObject = null;
270
+ }
271
+ }
272
+ const N = () => {
273
+ L(o), l = !1;
274
+ };
275
+ return D(() => t.activeTabName, (n) => {
276
+ if (n !== x.FACE) {
277
+ N();
278
+ return;
279
+ }
280
+ if (n === x.FACE && !l) {
281
+ k();
282
+ return;
283
+ }
284
+ }), J(() => {
285
+ N();
286
+ }), (n, c) => (B(), I("div", ye, [
287
+ v("div", Ce, [
288
+ v("video", {
289
+ class: "face-video",
290
+ ref_key: "videoRef",
291
+ ref: g,
292
+ id: "v",
293
+ autoplay: "",
294
+ playsinline: ""
295
+ }, null, 512)
296
+ ]),
297
+ v("button", {
298
+ class: "face-screenshot",
299
+ onClick: f
300
+ }, "人脸识别"),
301
+ v("canvas", {
302
+ ref_key: "canvasRef",
303
+ ref: i,
304
+ id: "canvas"
305
+ }, null, 512)
306
+ ]));
307
+ }
308
+ }), Le = /* @__PURE__ */ M(we, [["__scopeId", "data-v-0ae97a87"]]);
309
+ function Te() {
310
+ return z({
311
+ url: "/api/sysAuth/login",
312
+ method: "post",
313
+ data: {
314
+ account: "superadmin",
315
+ password: "1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",
316
+ tenantId: -1,
317
+ code: "",
318
+ codeId: 0
319
+ }
320
+ });
321
+ }
322
+ const W = j(H), ke = async (y, _) => {
323
+ var w, g, i, l, o, b, m, f, k, L, N, n, c, C, p, s, r, d;
324
+ let t = Object.values(y), e = await ae({
325
+ userName: (w = t == null ? void 0 : t[0]) == null ? void 0 : w.trim(),
326
+ password: (g = t == null ? void 0 : t[1]) == null ? void 0 : g.trim()
327
+ });
328
+ if (((i = e == null ? void 0 : e.data) == null ? void 0 : i.status) === 200 && ((o = (l = e == null ? void 0 : e.data) == null ? void 0 : l.result) == null ? void 0 : o.length) <= 0 && (e = await oe({
329
+ userName: (b = t == null ? void 0 : t[0]) == null ? void 0 : b.trim(),
330
+ password: (m = t == null ? void 0 : t[1]) == null ? void 0 : m.trim(),
331
+ path: "系统管理/用户管理",
332
+ platId: _
333
+ // platId: '785771438178373'
334
+ })), ((f = e == null ? void 0 : e.data) == null ? void 0 : f.status) === 200 && ((L = (k = e == null ? void 0 : e.data) == null ? void 0 : k.result) == null ? void 0 : L.length) > 0) {
335
+ sessionStorage.setItem("systemKey", _ && _ !== "" ? _ : (c = (n = (N = e == null ? void 0 : e.data) == null ? void 0 : N.result) == null ? void 0 : n[0]) == null ? void 0 : c.plat_id);
336
+ let a = (p = (C = e == null ? void 0 : e.data) == null ? void 0 : C.result) == null ? void 0 : p[0];
337
+ return a.plat_id = a.plat_id ?? _, W.setLoginUserInfo(a), W.setSystemKey(_ && _ !== "" ? _ : (d = (r = (s = e == null ? void 0 : e.data) == null ? void 0 : s.result) == null ? void 0 : r[0]) == null ? void 0 : d.plat_id), !0;
338
+ } else
339
+ return O.error("输入的密码错误,请重新输入"), !1;
340
+ }, Ne = { class: "login-wrap" }, $e = { class: "login-body" }, Ae = { class: "login-body-item left" }, Fe = { class: "title" }, Se = { class: "login-body-item right" }, Ee = /* @__PURE__ */ P({
341
+ __name: "index",
342
+ props: {
343
+ oldSystemKey: {}
344
+ },
345
+ emits: ["change"],
346
+ setup(y, { emit: _ }) {
347
+ const t = y, e = ee(), w = j(H), { systemKey: g, systemInfo: i, loginUserInfo: l } = Y(w), o = A({
348
+ // sysCTitle: 'INSOFWORKS',
349
+ sysCTitle: "",
350
+ sysETitle: "",
351
+ // sysETitle: 'Dynamic Test Information System',
352
+ loginTitle: "账户密码登录",
353
+ tabs: [
354
+ {
355
+ name: "密码登录",
356
+ btnLabel: "登录",
357
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
358
+ },
359
+ {
360
+ name: "人脸识别",
361
+ btnLabel: "人脸识别",
362
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
363
+ },
364
+ {
365
+ name: "刷卡登录",
366
+ btnLabel: "登录",
367
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
368
+ }
369
+ ]
370
+ }), b = A("account"), m = A(!1), f = A(!1), k = () => {
371
+ m.value = !0;
372
+ }, L = (s, r) => {
373
+ m.value = !1, s && c(r);
374
+ }, N = async () => {
375
+ var s, r, d;
376
+ try {
377
+ const a = await Te();
378
+ return ((s = a == null ? void 0 : a.data) == null ? void 0 : s.code) === 200 ? (sessionStorage.setItem("loginToken", (d = (r = a.data) == null ? void 0 : r.result) == null ? void 0 : d.accessToken), !0) : !1;
379
+ } catch (a) {
380
+ O.error(a);
381
+ }
382
+ }, n = async () => {
383
+ var s, r, d;
384
+ try {
385
+ const a = await Z.post("http://139.196.154.85:20024/api/sysAuth/login", {
386
+ account: "superadmin",
387
+ password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
388
+ codeId: 0,
389
+ code: ""
390
+ });
391
+ return ((s = a == null ? void 0 : a.data) == null ? void 0 : s.code) === 200 && sessionStorage.setItem("magicToken", (d = (r = a.data) == null ? void 0 : r.result) == null ? void 0 : d.accessToken), !0;
392
+ } catch {
393
+ return !0;
394
+ }
395
+ };
396
+ Q(async () => {
397
+ await N();
398
+ });
399
+ const c = async (s) => {
400
+ var T, F, K, U;
401
+ f.value = !0;
402
+ let r = [ke(s, t.oldSystemKey), N(), n()];
403
+ const d = await Promise.all(r);
404
+ (d == null ? void 0 : d.every((G) => G)) ? (await te(), e.push("/"), w.setLogRecordAsync({
405
+ type: "登录",
406
+ data: {
407
+ account: ((T = l.value) == null ? void 0 : T.account) ?? ((F = l.value) == null ? void 0 : F.账号),
408
+ userName: ((K = l.value) == null ? void 0 : K.姓名) || ((U = l.value) == null ? void 0 : U.userName) || "未知"
409
+ }
410
+ }, "/login", "login")) : f.value = !1;
411
+ }, C = (s) => {
412
+ b.value = s, m.value = !1, f.value = !1;
413
+ }, p = (s) => /^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(s);
414
+ return (s, r) => (B(), I("div", Ne, [
415
+ v("div", $e, [
416
+ v("div", Ae, [
417
+ h(le, { class: "login-left-bg" }, {
418
+ img: u(() => {
419
+ var d, a, T, F;
420
+ return [
421
+ v("div", Fe, [
422
+ v("div", null, S(((d = R(i)) == null ? void 0 : d.EnglishName) || "ETCS"), 1),
423
+ v("div", null, S((a = R(i)) != null && a.chineseName && p((T = R(i)) == null ? void 0 : T.chineseName) ? (F = R(i)) == null ? void 0 : F.chineseName : "发动机试验管控系统"), 1)
424
+ ]),
425
+ r[0] || (r[0] = v("div", { class: "divide-line" }, null, -1))
426
+ ];
427
+ }),
428
+ _: 1
429
+ })
430
+ ]),
431
+ v("div", Se, [
432
+ h(ge, {
433
+ loading: f.value,
434
+ onClickLogin: k,
435
+ onHandleTabChange: C
436
+ }, {
437
+ title: u(() => [
438
+ V(S(o.value.loginTitle), 1)
439
+ ]),
440
+ tabLabel1: u(() => [
441
+ V(S(o.value.tabs[0].name), 1)
442
+ ]),
443
+ tabContent1: u(() => [
444
+ h(_e, {
445
+ activeTabName: b.value,
446
+ isClickLogin: m.value,
447
+ onHandleLoginFormChange: L
448
+ }, null, 8, ["activeTabName", "isClickLogin"])
449
+ ]),
450
+ tabButton1: u(() => [
451
+ V(S(o.value.tabs[0].btnLabel), 1)
452
+ ]),
453
+ tabLabel2: u(() => [
454
+ V(S(o.value.tabs[1].name), 1)
455
+ ]),
456
+ tabContent2: u(() => [
457
+ h(Le, {
458
+ systemKey: s.oldSystemKey,
459
+ activeTabName: b.value,
460
+ isClickLogin: m.value,
461
+ onHandleLoginFormChange: L
462
+ }, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
463
+ ]),
464
+ tabButton2: u(() => [
465
+ V(S(o.value.tabs[1].btnLabel), 1)
466
+ ]),
467
+ _: 1
468
+ }, 8, ["loading"])
469
+ ])
470
+ ])
471
+ ]));
472
+ }
473
+ }), Ue = /* @__PURE__ */ M(Ee, [["__scopeId", "data-v-ca0d27a0"]]);
474
+ export {
475
+ Ue as default
476
+ };