@syzh-syzh/base 0.0.59 → 0.0.60

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 (128) hide show
  1. package/dist/chunks/{Dept-BrNZrI_Y.js → Dept-U5NSeIas.js} +1 -1
  2. package/dist/chunks/{Depttype-DfwCMgVU.js → Depttype-B-lfjkwr.js} +1 -1
  3. package/dist/chunks/{Verify-aep_Ijek.js → Verify-C8YwTN8Z.js} +1 -1
  4. package/dist/chunks/{app-Brq_qCSu.js → app-92IGh_3f.js} +1 -1
  5. package/dist/chunks/{apps-DlpQFL-U.js → apps-Cf9UZ3fm.js} +1 -1
  6. package/dist/chunks/{areadept-B2URbiOT.js → areadept-t8oZdXXk.js} +1 -1
  7. package/dist/chunks/{cfgtype-BaKlnYCK.js → cfgtype-M6NyKuu7.js} +1 -1
  8. package/dist/chunks/{col-BTgiN6LO.js → col-CVCZoTpC.js} +1 -1
  9. package/dist/chunks/{daibanevent-DTST38sj.js → daibanevent-C3CKH-IR.js} +1 -1
  10. package/dist/chunks/{data-D1nsPn3O.js → data--7_Cdmcu.js} +1 -1
  11. package/dist/chunks/{data-ooGBGt4a.js → data-BCOtaLAj.js} +1 -1
  12. package/dist/chunks/{dayjs.min-ryYW0VOo.js → dayjs.min-Ctgn_bP1.js} +1 -1
  13. package/dist/chunks/{deptgxfw-p3hnEnSo.js → deptgxfw-7SslNCeN.js} +1 -1
  14. package/dist/chunks/detail-BOumcElN.js +1 -0
  15. package/dist/chunks/{dict-BW1VOoR1.js → dict-CVpUarJ1.js} +1 -1
  16. package/dist/chunks/{dict-PRQalw5b.js → dict-DctgteYk.js} +1 -1
  17. package/dist/chunks/{dispose-DUhxHW4Z.js → dispose-CSETDp_U.js} +1 -1
  18. package/dist/chunks/{eventfb-B1xUov2F.js → eventfb-Cmsd86t8.js} +1 -1
  19. package/dist/chunks/{eventsource-DcqbdWoA.js → eventsource-D6A7ZHIH.js} +1 -1
  20. package/dist/chunks/{gaopinevent-Bfj_PXnG.js → gaopinevent-DqEc9NSo.js} +1 -1
  21. package/dist/chunks/{grade-Br-D9tNc.js → grade-DWTO1khD.js} +1 -1
  22. package/dist/chunks/{grid-table-TUX7yeBL.js → grid-table-C4bW0hYm.js} +1 -1
  23. package/dist/chunks/{griddept-Ds19DU6D.js → griddept-BLM3vgyv.js} +1 -1
  24. package/dist/chunks/{gridgrid-CKem1qEc.js → gridgrid-BG1YKOZd.js} +1 -1
  25. package/dist/chunks/{gridtype-jR1wNIMG.js → gridtype-CvgrhmHi.js} +1 -1
  26. package/dist/chunks/{home-CxAugs4P.js → home-DL-rvcBg.js} +1 -1
  27. package/dist/chunks/{index-Bs1e3KL0.js → index-0KCL5AOA.js} +1 -1
  28. package/dist/chunks/{index-DzqNhxR0.js → index-0t_doEXv.js} +1 -1
  29. package/dist/chunks/{index-DglhTEbT.js → index-5ea9DMUi.js} +1 -1
  30. package/dist/chunks/{index-ClWAVNa4.js → index-8C7dOS2Y.js} +1 -1
  31. package/dist/chunks/{index-D8irgFv-.js → index-B0WDP6sq.js} +1 -1
  32. package/dist/chunks/{index-CZkiY68g.js → index-B3KGk9fq.js} +1 -1
  33. package/dist/chunks/{index-B7csk0Sn.js → index-B7oUMJLF.js} +1 -1
  34. package/dist/chunks/{index-oFkjR85e.js → index-BCvkeKcK.js} +1 -1
  35. package/dist/chunks/{index-BxE4jPbz.js → index-BG8kNtlJ.js} +1 -1
  36. package/dist/chunks/{index-BW16ut3M.js → index-BH5be_-Q.js} +1 -1
  37. package/dist/chunks/{index-Di6SoWC9.js → index-BNW11af-.js} +1 -1
  38. package/dist/chunks/{index-CeM9hvVS.js → index-BO_svKgP.js} +1 -1
  39. package/dist/chunks/{index-ByYYUAHn.js → index-BXM3HYNn.js} +1 -1
  40. package/dist/chunks/{index-Cqq2LaK3.js → index-BZfnHYMM.js} +1 -1
  41. package/dist/chunks/{index-BjUzHy8f.js → index-Bc9XpR6c.js} +1 -1
  42. package/dist/chunks/{index-Bk82LxfN.js → index-BdmbB7Dt.js} +1 -1
  43. package/dist/chunks/{index-D_jn99Wj.js → index-BiykGTjb.js} +1 -1
  44. package/dist/chunks/{index-D5pze67o.js → index-BnvI01qX.js} +1 -1
  45. package/dist/chunks/index-BqWzolun.js +1 -0
  46. package/dist/chunks/{index-DIWEb6li.js → index-Bv78cBsF.js} +1 -1
  47. package/dist/chunks/{index-dr7PRzEq.js → index-Bwv1jzRk.js} +1 -1
  48. package/dist/chunks/{index-Da_iF7pX.js → index-C-DfJ-as.js} +1 -1
  49. package/dist/chunks/{index-Dd7cfvrW.js → index-CA177ZZJ.js} +1 -1
  50. package/dist/chunks/{index-WJoZQPpQ.js → index-CD5E8008.js} +1 -1
  51. package/dist/chunks/{index-CgKtXQ-Y.js → index-CK7eDEwy.js} +1 -1
  52. package/dist/chunks/{index-DVwJgj07.js → index-CX3f5hI1.js} +1 -1
  53. package/dist/chunks/{index-DXU0nxXp.js → index-Cbt_-PEb.js} +1 -1
  54. package/dist/chunks/{index-DO8vUZ_M.js → index-Cv8gwS9M.js} +1 -1
  55. package/dist/chunks/{index-CKTLYUJv.js → index-CxskaT_s.js} +1 -1
  56. package/dist/chunks/{index-DQRiXlDB.js → index-D2Y7K18y.js} +1 -1
  57. package/dist/chunks/{index-Bn0u6dtT.js → index-D4hXxARm.js} +1 -1
  58. package/dist/chunks/{index-DWtSXHEH.js → index-D7V80Rf4.js} +1 -1
  59. package/dist/chunks/{index-DG93nlE2.js → index-DGKB9FYX.js} +1 -1
  60. package/dist/chunks/{index-bdmzAPlf.js → index-DIkpyiFp.js} +1 -1
  61. package/dist/chunks/{index-BqWn7SPi.js → index-DKfalxrG.js} +1 -1
  62. package/dist/chunks/{index-DrJPhgtI.js → index-DM0m4s_Y.js} +1 -1
  63. package/dist/chunks/{index-BV2vcAzU.js → index-DPoyJPr7.js} +1 -1
  64. package/dist/chunks/{index-BViKokxT.js → index-DUt1-bH3.js} +1 -1
  65. package/dist/chunks/{index-BCovAtOH.js → index-DY1z1lk4.js} +1 -1
  66. package/dist/chunks/{index-COGkFRS6.js → index-Da-IRvj4.js} +1 -1
  67. package/dist/chunks/{index-T-KJdsq7.js → index-DgtRTp4G.js} +1 -1
  68. package/dist/chunks/{index-uu4kxOEu.js → index-Dt1bGl1j.js} +1 -1
  69. package/dist/chunks/{index-Pwp1Fcf3.js → index-DwQgKGv3.js} +1 -1
  70. package/dist/chunks/{index-C7pyWDTW.js → index-Dy8V0Qxj.js} +1 -1
  71. package/dist/chunks/{index-BON_Bgzs.js → index-GXpUONgX.js} +1 -1
  72. package/dist/chunks/{index-BAO47B40.js → index-JxJIOHPU.js} +1 -1
  73. package/dist/chunks/{index-_cIbwvYL.js → index-_T8pK6_d.js} +1 -1
  74. package/dist/chunks/{index-Bzbpowp1.js → index-iMjmou2D.js} +1 -1
  75. package/dist/chunks/{index-B0y5yl7Y.js → index-ku_pt0z_.js} +1 -1
  76. package/dist/chunks/{index-BcMYLZgY.js → index-lYSvgkXd.js} +1 -1
  77. package/dist/chunks/{index-zkAK7p-W.js → index-mKbiWJUP.js} +1 -1
  78. package/dist/chunks/{index-TMF-g2xI.js → index-pnqPVw09.js} +1 -1
  79. package/dist/chunks/{index-WEx3jez-.js → index-xJvC4qZl.js} +1 -1
  80. package/dist/chunks/{logLogin-DH25oNW7.js → logLogin-BYY2FwI3.js} +1 -1
  81. package/dist/chunks/{logMqysmsg-WzhfviBy.js → logMqysmsg-BlWyseZ-.js} +1 -1
  82. package/dist/chunks/{logMsg-CoSpicZ0.js → logMsg-zvvERbnF.js} +1 -1
  83. package/dist/chunks/{logQuartz-BLRj5Afq.js → logQuartz-Ba9neAVJ.js} +1 -1
  84. package/dist/chunks/{login-y-Aqemx7.js → login-BeYiniIX.js} +1 -1
  85. package/dist/chunks/{logmqerror-CCkPB4fl.js → logmqerror-DGqMHHUN.js} +1 -1
  86. package/dist/chunks/{logoperate-BObWalmQ.js → logoperate-C3oVTFbI.js} +1 -1
  87. package/dist/chunks/{maparea-DDBYwvfS.js → maparea-Bu5egUJe.js} +1 -1
  88. package/dist/chunks/{nodeadd-6mNrQtcS.js → nodeadd-HrqJLjsz.js} +1 -1
  89. package/dist/chunks/{opradd-buIdgWe-.js → opradd-hxWXDm18.js} +1 -1
  90. package/dist/chunks/{oprauthadd-DvkHeR4w.js → oprauthadd-CanbU8_l.js} +1 -1
  91. package/dist/chunks/{oprtype-CeTv2dEE.js → oprtype-DQHu4p5c.js} +1 -1
  92. package/dist/chunks/{regions-B532MbGT.js → regions-Deb_EzJc.js} +1 -1
  93. package/dist/chunks/{regionstype-BvNpG-lU.js → regionstype-S-ugtpKe.js} +1 -1
  94. package/dist/chunks/{role-DPwU24u6.js → role-CTKBoD_n.js} +1 -1
  95. package/dist/chunks/{shangbaoevent-CwlRGkBh.js → shangbaoevent-CjsczULv.js} +1 -1
  96. package/dist/chunks/{shangbaoeventfl-8Cs59rfH.js → shangbaoeventfl-C4c5vB3L.js} +1 -1
  97. package/dist/chunks/{source-BrzRWuHq.js → source-1aR3yjWU.js} +1 -1
  98. package/dist/chunks/{sysholidays-oMMzs_wd.js → sysholidays-D4otBIy5.js} +1 -1
  99. package/dist/chunks/{sysright-manage-DwIiENDE.js → sysright-manage-CB8aWSRZ.js} +1 -1
  100. package/dist/chunks/{taskfx-BtfTog8F.js → taskfx-B0H7YWvy.js} +1 -1
  101. package/dist/chunks/{taskmatter-Cga1bG23.js → taskmatter-DIhUunlj.js} +1 -1
  102. package/dist/chunks/{tasknode-BCjTm4Xd.js → tasknode-TtKsdSgv.js} +1 -1
  103. package/dist/chunks/{tasknodelog-DGwHyLdu.js → tasknodelog-DcHBqXgt.js} +1 -1
  104. package/dist/chunks/{tasktype-CGwdFfYE.js → tasktype-DadVnKcK.js} +1 -1
  105. package/dist/chunks/{tzgg-B5YkFzXn.js → tzgg-CDayCEQn.js} +1 -1
  106. package/dist/chunks/{tzggtype-fm3xNhkd.js → tzggtype-Ce2LR3IV.js} +1 -1
  107. package/dist/chunks/{weather-DXjEXObs.js → weather-BiCEy6TX.js} +1 -1
  108. package/dist/chunks/{wfEventAdd-xHXZgw5T.js → wfEventAdd-BI35Lc62.js} +1 -1
  109. package/dist/chunks/{wfclass-BjlIm4Go.js → wfclass-DqwA3v4S.js} +1 -1
  110. package/dist/chunks/{wfdef-XT91X6vO.js → wfdef-VZxxKVwb.js} +1 -1
  111. package/dist/chunks/{wfeventall-B1Yu8wGm.js → wfeventall-DUoADLNn.js} +1 -1
  112. package/dist/chunks/{wfeventdone-BICPY-QS.js → wfeventdone-CARyWF3j.js} +1 -1
  113. package/dist/chunks/{wfeventlog-C4-Urw1o.js → wfeventlog-B4KDs5NA.js} +1 -1
  114. package/dist/chunks/{wfeventtask-CaZSsmbi.js → wfeventtask-PeRizxS8.js} +1 -1
  115. package/dist/chunks/{wfeventyqsqsp-CJR58xxR.js → wfeventyqsqsp-h0FI9IIB.js} +1 -1
  116. package/dist/chunks/{wfjixiao-DKtKYaSr.js → wfjixiao-CBUJZA5d.js} +1 -1
  117. package/dist/chunks/{wfnode-dX8p_TWL.js → wfnode-84CAeFmU.js} +1 -1
  118. package/dist/chunks/{wfopr-J2YPApRa.js → wfopr-hst47fpJ.js} +1 -1
  119. package/dist/chunks/{wfoprcfg-D6o2f5db.js → wfoprcfg-BANXtico.js} +1 -1
  120. package/dist/chunks/{wfyqsqcfg-hg2nB-2M.js → wfyqsqcfg-C2aOfmq6.js} +1 -1
  121. package/dist/chunks/{wfyqsqcfg-Fo6LTlew.js → wfyqsqcfg-Czme68Rt.js} +1 -1
  122. package/dist/chunks/{wfzdy-vHLpSgz8.js → wfzdy-CjGT-kr6.js} +1 -1
  123. package/dist/sybase.css +1 -1
  124. package/dist/sybase.js +1 -1
  125. package/dist/utils.js +1 -1
  126. package/package.json +3 -4
  127. package/dist/chunks/detail-CsIAssyj.js +0 -1
  128. package/dist/chunks/index-D0GBke5M.js +0 -1
@@ -1 +1 @@
1
- import{useCssVars as e,unref as t,computed as i,watch as a,resolveComponent as n,createElementBlock as s,openBlock as l,normalizeClass as o,createVNode as r,Transition as c,withCtx as d,createBlock as u,toDisplayString as m,createCommentVNode as p,createElementVNode as f,defineComponent as v,resolveDynamicComponent as g,normalizeProps as w,guardReactiveProps as x,renderSlot as y,ref as b,Fragment as k,createSlots as _,renderList as j,onMounted as O,resolveDirective as C,withDirectives as V,normalizeStyle as S,vShow as B,watchEffect as M,KeepAlive as L,TransitionGroup as R,withModifiers as P,onBeforeUnmount as I,createTextVNode as T,isRef as F,getCurrentInstance as N,shallowRef as q,nextTick as D,useTemplateRef as H}from"vue";import{Q as z,a2 as A,u as E,m as U,$ as G,b7 as $,b8 as J,b9 as W,v as Q,ba as Y,a1 as K,p as X,a4 as Z,an as ee,bb as te}from"./dict-PRQalw5b.js";import{_ as ie}from"./lv-DL2oi67J.js";import{u as ae}from"./app-Brq_qCSu.js";import{ElMessage as ne,ElMessageBox as se}from"element-plus";import{useRoute as le,useRouter as oe}from"vue-router";import{defineStore as re}from"pinia";var ce="#bfcbd9",de="#304156",ue="#ffffff",me="#303133";const pe=["src"],he={key:1,class:"sidebar-title"},fe=["src"],ve={class:"sidebar-title"};var ge=/* @__PURE__ */ie({__name:"Logo",props:{collapse:{type:Boolean,required:!0}},setup(v){e(e=>({"576e06d8":t(j),"20d39f4c":t(O)}));const{fileIp:g,pc_backtitle:w,pc_logo:x,pc_htmltitle:y}=z("fileIp","pc-backtitle","pc-logo","pc-htmltitle"),b=i(()=>g&&x?g.value+"filesroot"+x.value:void 0);a(y,e=>{console.log("%c aaaaaaaaaaaaaaaaaaaa"," color:chartreuse;font-size:20px",e),e&&(A().setdefaultTitle(e),A().setTitle(e))});const k=A(),_=i(()=>k.sideTheme),j=i(()=>k.isDark?"var(--sidebar-bg)":"theme-dark"===_.value?de:ue),O=i(()=>k.isDark?"var(--sidebar-text)":"theme-dark"===_.value?"#fff":me);return(e,i)=>{const a=n("router-link");return l(),s("div",{class:o(["sidebar-logo-container",{collapse:v.collapse}])},[r(c,{name:"sidebarLogoFade"},{default:d(()=>[v.collapse?(l(),u(a,{key:"collapse",class:"sidebar-logo-link",to:"/"},{default:d(()=>[t(b)?(l(),s("img",{key:0,src:t(b),class:"sidebar-logo"},null,8,pe)):(l(),s("h1",he,m(t(w)),1))]),_:1})):(l(),u(a,{key:"expand",class:"sidebar-logo-link",to:"/"},{default:d(()=>[t(b)?(l(),s("img",{key:0,src:t(b),class:"sidebar-logo"},null,8,fe)):p("",!0),f("h1",ve,m(t(w)),1)]),_:1}))]),_:1})],2)}}},[["__scopeId","data-v-c2f30f3b"]]);const we=v({props:{iconClass:{type:String,required:!0},className:{type:String,default:""},color:{type:String,default:""}},setup:e=>({iconName:i(()=>`#icon-${e.iconClass}`),svgClass:i(()=>e.className?`svg-icon ${e.className}`:"svg-icon")})}),xe=["xlink:href","fill"];var ye=/* @__PURE__ */ie(we,[["render",function(e,t,i,a,n,r){return l(),s("svg",{class:o(e.svgClass),"aria-hidden":"true"},[f("use",{"xlink:href":e.iconName,fill:e.color},null,8,xe)],2)}]]);const be={__name:"Link",props:{to:{type:[String,Object],required:!0},menu_opentypeid:{type:[String,Number]}},setup(e){const a=e,n=i(()=>E(a.to)),s=i(()=>n.value||3==a.menu_opentypeid?"a":"router-link");return(e,i)=>(l(),u(g(t(s)),w(x(n.value||3==a.menu_opentypeid?{href:a.to,target:"_blank",rel:"noopener"}:{to:a.to})),{default:d(()=>[y(e.$slots,"default")]),_:3},16))}},ke={key:0},_e=["title"],je=["title"],Oe={__name:"SidebarItem",props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(e){const i=e,a=b({});function c(e=[],t){e||(e=[]);const i=e.filter(e=>!e.hidden&&(a.value=e,!0));return 1===i.length||0===i.length&&(a.value={...t,path:"",noShowingChildren:!0},!0)}function v(e,t){if(E(e))return e;if(E(i.basePath))return i.basePath;if(t){let a=JSON.parse(t);return{path:U(i.basePath+"/"+e),query:a}}return U(i.basePath+"/"+e)}function g(e){return e.length>5?e:""}return(i,w)=>{const x=ye,y=n("el-menu-item"),b=n("sidebar-item",!0),O=n("el-sub-menu");return e.item.hidden?p("",!0):(l(),s("div",ke,[!c(e.item.children,e.item)||t(a).children&&!t(a).noShowingChildren||e.item.alwaysShow?(l(),u(O,{key:1,ref:"subMenu",index:v(e.item.path),teleported:""},_({default:d(()=>[(l(!0),s(k,null,j(e.item.children,(e,t)=>(l(),u(b,{key:e.path+t,"is-nest":!0,item:e,"base-path":v(e.menu_url),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:2},[e.item.meta?{name:"title",fn:d(()=>[r(x,{"icon-class":e.item.meta&&e.item.meta.icon},null,8,["icon-class"]),f("span",{class:"menu-title",title:g(e.item.meta.title)},m(e.item.meta.title),9,je)]),key:"0"}:void 0]),1032,["index"])):(l(),s(k,{key:0},[t(a).meta?(l(),u(t(be),{key:0,to:v(t(a).path,t(a).query),menu_opentypeid:e.item.menu_opentypeid},{default:d(()=>[r(y,{index:v(t(a).path),class:o({"submenu-title-noDropdown":!e.isNest})},{title:d(()=>[f("span",{class:"menu-title",title:g(t(a).meta.title)},m(t(a).meta.title),9,_e)]),default:d(()=>[r(x,{"icon-class":t(a).meta.icon||e.item.meta&&e.item.meta.icon},null,8,["icon-class"])]),_:1},8,["index","class"])]),_:1},8,["to","menu_opentypeid"])):p("",!0)],64))]))}}};var Ce=/* @__PURE__ */ie({},[["render",function(e,t){const i=n("router-view");return l(),u(i)}]]);const Ve=["id","src"],Se={__name:"index",props:{src:{type:String,default:"/"},iframeId:{type:String}},setup(e){const i=b(!0),a=b(document.documentElement.clientHeight-94.5+"px"),n=b(null);return O(()=>{n.value&&(n.value.onload=()=>{i.value=!1})}),(o,r)=>{const c=C("loading");return V((l(),s("div",{style:S("height:"+t(a)),"element-loading-text":"正在加载页面,请稍候!"},[f("iframe",{id:e.iframeId,style:{width:"100%",height:"100%"},src:e.src,ref_key:"iframeRef",ref:n,frameborder:"no"},null,8,Ve)],4)),[[c,t(i)]])}}},Be=e=>G({url:"/sys/sysmenu/gettreemanage",method:"get",params:e}),Me=e=>G({url:"/sys/sysmenu/gettree",method:"get",params:e}),Le=e=>G({url:"/sys/sysmenu/add",method:"post",data:e}),Re=e=>G({url:"/sys/sysmenu/edit",method:"put",data:e}),Pe=e=>G({url:"/sys/sysmenu/delete",method:"delete",data:e}),Ie=e=>G({url:`/sys/sysmenu/getbyid/${e}`,method:"get"});var Te=/* @__PURE__ */Object.freeze({__proto__:null,addMenu:Le,delMenu:Pe,editMenu:Re,getMenu:Ie,getMenuTree:Me,getRouters:Be}),Fe=/* @__PURE__ */Object.assign({"../../views/error/401.vue":()=>import("./401-DnpnHhQL.js"),"../../views/error/404.vue":()=>import("./404-BE154RmJ.js"),"../../views/event/baseFx/index.vue":()=>import("./index-dr7PRzEq.js"),"../../views/event/eventDetail/index.vue":()=>import("./index-BCovAtOH.js"),"../../views/event/eventdone/index.vue":()=>import("./index-BjUzHy8f.js"),"../../views/event/eventtask/index.vue":()=>import("./index-D8irgFv-.js"),"../../views/event/performanceFx/index.vue":()=>import("./index-CKTLYUJv.js"),"../../views/event/settings/eventgrade/index.vue":()=>import("./index-Bzbpowp1.js"),"../../views/event/settings/eventsource/index.vue":()=>import("./index-D0GBke5M.js"),"../../views/event/settings/oprtype/index.vue":()=>import("./index-D5pze67o.js"),"../../views/event/settings/wf/detail.vue":()=>import("./detail-CsIAssyj.js"),"../../views/event/settings/wf/index.vue":()=>import("./index-BV2vcAzU.js"),"../../views/event/settings/wf/nodeadd.vue":()=>import("./nodeadd-6mNrQtcS.js"),"../../views/event/settings/wf/opradd.vue":()=>import("./opradd-buIdgWe-.js"),"../../views/event/settings/wf/oprauthadd.vue":()=>import("./oprauthadd-DvkHeR4w.js"),"../../views/event/settings/wf/wfyqsqcfg.vue":()=>import("./wfyqsqcfg-Fo6LTlew.js"),"../../views/event/settings/wfclass/index.vue":()=>import("./index-DIWEb6li.js"),"../../views/event/settings/wfzdy/index.vue":()=>import("./index-DzqNhxR0.js"),"../../views/event/sourceFx/index.vue":()=>import("./index-DO8vUZ_M.js"),"../../views/event/typeFx/index.vue":()=>import("./index-oFkjR85e.js"),"../../views/event/wfEventAdd/index.vue":()=>import("./index-B0y5yl7Y.js"),"../../views/event/wfeventall/index.vue":()=>import("./index-Da_iF7pX.js"),"../../views/event/yqsp/index.vue":()=>import("./index-DrJPhgtI.js"),"../../views/home/components/daibanevent.vue":()=>import("./daibanevent-DTST38sj.js"),"../../views/home/components/eventfb.vue":()=>import("./eventfb-B1xUov2F.js"),"../../views/home/components/eventsource.vue":()=>import("./eventsource-DcqbdWoA.js"),"../../views/home/components/gaopinevent.vue":()=>import("./gaopinevent-Bfj_PXnG.js"),"../../views/home/components/numberbox.vue":()=>import("./numberbox-5WfxVy5K.js"),"../../views/home/components/shangbaoevent.vue":()=>import("./shangbaoevent-CwlRGkBh.js"),"../../views/home/components/shangbaoeventfl.vue":()=>import("./shangbaoeventfl-8Cs59rfH.js"),"../../views/home/components/title.vue":()=>import("./title-C-WVm-GN.js"),"../../views/home/components/weather.vue":()=>import("./weather-DXjEXObs.js"),"../../views/home/index.vue":()=>import("./index-Pwp1Fcf3.js"),"../../views/log/logLogin/index.vue":()=>import("./index-CeM9hvVS.js"),"../../views/log/logMqerror/index.vue":()=>import("./index-DQRiXlDB.js"),"../../views/log/logMqysmsg/index.vue":()=>import("./index-ClWAVNa4.js"),"../../views/log/logMsg/index.vue":()=>import("./index-BxE4jPbz.js"),"../../views/log/logQuartz/index.vue":()=>import("./index-DG93nlE2.js"),"../../views/log/operateLog/index.vue":()=>import("./index-CZkiY68g.js"),"../../views/login.vue":()=>import("./login-y-Aqemx7.js"),"../../views/redirect/index.vue":()=>import("./index-DQnikhDQ.js"),"../../views/system/dept-manage/index.vue":()=>import("./index-CgKtXQ-Y.js"),"../../views/system/dept-manage/lazyTree.vue":()=>import("./lazyTree-CN7_yMu4.js"),"../../views/system/dict-manage/col.vue":()=>import("./col-BTgiN6LO.js"),"../../views/system/dict-manage/data.vue":()=>import("./data-ooGBGt4a.js"),"../../views/system/dict-manage/index.vue":()=>import("./index-bdmzAPlf.js"),"../../views/system/grid-manage/grid-table.vue":()=>import("./grid-table-TUX7yeBL.js"),"../../views/system/grid-manage/index.vue":()=>import("./index-DWtSXHEH.js"),"../../views/system/grid-manage/maparea.vue":()=>import("./maparea-DDBYwvfS.js"),"../../views/system/gridtype-manage/data.vue":()=>import("./data-D1nsPn3O.js"),"../../views/system/gridtype-manage/index.vue":()=>import("./index-DXU0nxXp.js"),"../../views/system/menu-manage/index.vue":()=>import("./index-Bk82LxfN.js"),"../../views/system/menu-manage/sysright-manage.vue":()=>import("./sysright-manage-DwIiENDE.js"),"../../views/system/notice-manage/index.vue":()=>import("./index-COGkFRS6.js"),"../../views/system/noticetype-manage/index.vue":()=>import("./index-BcMYLZgY.js"),"../../views/system/regions-manage/index.vue":()=>import("./index-BqWn7SPi.js"),"../../views/system/regionstype-manage/index.vue":()=>import("./index-uu4kxOEu.js"),"../../views/system/role-manage/index.vue":()=>import("./index-BON_Bgzs.js"),"../../views/system/sysholidays/index.vue":()=>import("./index-Di6SoWC9.js"),"../../views/system/system-config/index.vue":()=>import("./index-B7csk0Sn.js"),"../../views/system/user-manage/index.vue":()=>import("./index-Bn0u6dtT.js"),"../../views/xuncha/taskfx/index.vue":()=>import("./index-BW16ut3M.js"),"../../views/xuncha/taskfxday/index.vue":()=>import("./index-DglhTEbT.js"),"../../views/xuncha/taskfxmonth/index.vue":()=>import("./index-Cqq2LaK3.js"),"../../views/xuncha/taskfxweek/index.vue":()=>import("./index-BAO47B40.js"),"../../views/xuncha/taskfxyear/index.vue":()=>import("./index-TMF-g2xI.js"),"../../views/xuncha/taskmatter/index.vue":()=>import("./index-D_jn99Wj.js"),"../../views/xuncha/tasknode/index.vue":()=>import("./index-DVwJgj07.js"),"../../views/xuncha/tasknodelog/index.vue":()=>import("./index-_cIbwvYL.js"),"../../views/xuncha/tasktype/index.vue":()=>import("./index-ByYYUAHn.js")});const Ne=re("permission",{state:()=>({routes:[],addRoutes:[],defaultRoutes:[],topbarRouters:[],sidebarRouters:[]}),actions:{setRoutes(e){this.addRoutes=e,this.routes=J.concat(e)},setDefaultRoutes(e){this.defaultRoutes=J.concat(e)},setTopbarRoutes(e){this.topbarRouters=e},setSidebarRouters(e){this.sidebarRouters=e},generateRoutes(e){return new Promise(t=>{$.forEach(t=>{e.addRoute(t)}),Be({appsid:1}).then(e=>{if("208"==e.code)ne({message:"需要配置appsid-01的菜单",type:"error"}),t([]);else{const i=JSON.parse(JSON.stringify(e)),a=JSON.parse(JSON.stringify(e)),n=JSON.parse(JSON.stringify(e)),s=qe(i),l=qe(a,!1,!0),o=qe(n);this.setRoutes(l),this.setSidebarRouters(J.concat(s)),this.setDefaultRoutes(s),this.setTopbarRoutes(o),t(l)}})})}}});function qe(e,t=!1,i=!1){return e.filter(e=>{let t=function(e){if(!e)return{path:"",url:""};if(e.split("").includes(":")){let t=[],i=[];return e.split("/").forEach(e=>{if(0===e.indexOf(":")){if(e.indexOf("=")>0){let a=e.split("=");t.push(a[0]),i.push(a[1])}}else t.push(e),i.push(e)}),{path:t.join("/"),url:i.join("/")}}return{path:e,url:e}}(e.menu_url);return e.menu_json&&Object.assign(e,e.menu_json),e.path=t.path,e.menu_url=t.url,e.hidden=void 0!==e.menu_isshow&&!e.menu_isshow,e.name=e.menu_no,e.component=e.menu_component,e.meta={title:e.menu_name||"暂无名字",icon:e.icon||"tree",noCache:e.menu_json.noCache||!1,breadcrumb:e.menu_json.breadcrumb||!0,activeMenu:e.menu_json.activeMenu||void 0},i&&e.children&&(e.children=De(e.children)),e.component&&("Layout"===e.component?e.component=Rt:"ParentView"===e.component?e.component=Ce:"InnerLink"===e.component?e.component=Se:e.component=He(e.component)),null!=e.children&&e.children&&e.children.length?e.children=qe(e.children,e,i):(delete e.children,delete e.redirect),!0})}function De(e,t=!1){var i=[];return e.forEach(e=>{e.path=t?t.path+"/"+e.path:e.path,e.children&&e.children.length&&"ParentView"===e.component?i=i.concat(De(e.children,e)):i.push(e)}),i}const He=e=>{let t;for(const i in Fe){i.split("views/")[1].split(".vue")[0]===e&&(t=()=>Fe[i]())}return t},ze=e=>{Fe={...e,...Fe},console.log("%c 更新目录文件成功"," color:violet;font-size:20px",Fe)};var Ae=/* @__PURE__ */ie({__name:"index",setup(a){e(e=>({"5cbe82be":t(_),"319de2b4":t(O)}));const c=le(),m=ae(),f=A(),v=Ne(),g=i(()=>v.sidebarRouters),w=i(()=>f.sidebarLogo),x=i(()=>f.sideTheme),y=i(()=>f.theme),b=i(()=>!m.sidebar.opened),_=i(()=>f.isDark?"var(--sidebar-bg)":"theme-dark"===x.value?de:ue),O=i(()=>f.isDark?"var(--sidebar-text)":"theme-dark"===x.value?ce:me),C=i(()=>{const{meta:e,path:t}=c;return e.activeMenu?e.activeMenu:t});return(e,i)=>{const a=n("el-menu"),c=n("el-scrollbar");return l(),s("div",{class:o([{"has-logo":t(w)},"sidebar-container"])},[t(w)?(l(),u(t(ge),{key:0,collapse:t(b)},null,8,["collapse"])):p("",!0),r(c,{"wrap-class":"scrollbar-wrapper"},{default:d(()=>[r(a,{"default-active":t(C),collapse:t(b),"background-color":t(_),"text-color":t(O),"unique-opened":!0,"active-text-color":t(y),"collapse-transition":!1,mode:"vertical",class:o(t(x))},{default:d(()=>[(l(!0),s(k,null,j(t(g),(e,i)=>(l(),u(t(Oe),{key:e.path+i,item:e,"base-path":e.menu_url},null,8,["item","base-path"]))),128))]),_:1},8,["default-active","collapse","background-color","text-color","active-text-color","class"])]),_:1})],2)}}},[["__scopeId","data-v-12c49710"]]);const Ee={key:0,class:"copyright"};var Ue=/* @__PURE__ */ie({__name:"index",setup(e){const a=A(),n=i(()=>a.footerVisible),o=i(()=>a.footerContent);return(e,i)=>t(n)?(l(),s("footer",Ee,[f("span",null,m(t(o)),1)])):p("",!0)}},[["__scopeId","data-v-467168fe"]]);const Ge={__name:"index",setup(e){const i=le(),a=W();function n(e,t){if(Object.keys(t).length>0){return e+"?"+Object.keys(t).map(e=>e+"="+t[e]).join("&")}return e}return(e,o)=>(l(!0),s(k,null,j(t(a).iframeViews,(e,a)=>V((l(),u(t(Se),{key:e.path,iframeId:"iframe"+a,src:n(e.meta.link,e.query)},null,8,["iframeId","src"])),[[B,t(i).path===e.path]])),128))}},$e={class:"app-main"};var Je=/* @__PURE__ */ie({__name:"AppMain",setup(e){const i=le(),a=W();function o(){i.meta.link&&W().addIframeView(i)}return O(()=>{o()}),M(()=>{o()}),(e,i)=>{const o=n("router-view");return l(),s("section",$e,[r(o,null,{default:d(({Component:e,route:i})=>[r(c,{name:"fade-transform",mode:"out-in"},{default:d(()=>[(l(),u(L,{include:t(a).cachedViews},[i.meta.link?p("",!0):(l(),u(g(e),{key:i.path}))],1032,["include"]))]),_:2},1024)]),_:1}),r(t(Ge)),r(t(Ue))])}}},[["__scopeId","data-v-4c1adf3f"]]);const We={key:0,class:"no-redirect"},Qe=["onClick"];var Ye=/* @__PURE__ */ie({__name:"index",setup(e){const i=le(),a=oe(),o=Ne(),c=b([]);function p(){let e=[];if(function(e,t="/"){let i=e.indexOf(t),a=0;for(;-1!==i;)a++,i=e.indexOf(t,i+1);return a}(i.path)>2){const t=/\/\w+/gi;f(i.path.match(t).map((e,t)=>(0!==t&&(e=e.slice(1)),e)),o.defaultRoutes,e)}else e=i.matched.filter(e=>e.meta&&e.meta.title);(function(e){const t=e&&e.name;if(!t)return!1;return"Index"===t.trim()})(e[0])||(e=[{path:"/index",meta:{title:"首页"}}].concat(e)),c.value=e.filter(e=>e.meta&&e.meta.title&&!1!==e.meta.breadcrumb)}function f(e,t,i){let a=t.find(t=>t.path==e[0]||(t.name+="").toLowerCase()==e[0]);a&&(i.push(a),a.children&&e.length&&(e.shift(),f(e,a.children,i)))}return M(()=>{i.path.startsWith("/redirect/")||p()}),p(),(e,i)=>{const o=n("el-breadcrumb-item"),p=n("el-breadcrumb");return l(),u(p,{class:"app-breadcrumb",separator:"/"},{default:d(()=>[r(R,{name:"breadcrumb"},{default:d(()=>[(l(!0),s(k,null,j(t(c),(e,i)=>(l(),u(o,{key:e.path},{default:d(()=>["noRedirect"===e.redirect||i==t(c).length-1?(l(),s("span",We,m(e.meta.title),1)):(l(),s("a",{key:1,onClick:P(t=>function(e){const{redirect:t,path:i}=e;t?a.push(t):a.push(i)}(e),["prevent"])},m(e.meta.title),9,Qe))]),_:2},1024))),128))]),_:1})]),_:1})}}},[["__scopeId","data-v-94905345"]]);const Ke={__name:"index",setup(e){const a=b(null),o=b(null),r=["/index","/user/profile"],c=ae(),f=A(),v=Ne(),g=le(),w=oe(),x=i(()=>f.theme),y=i(()=>v.topbarRouters),_=i(()=>{let e=[];return y.value.map(t=>{!0!==t.hidden&&("/"===t.path&&t.children?e.push(t.children[0]):e.push(t))}),e}),C=i(()=>{let e=[];return y.value.map(t=>{for(let i in t.children)void 0===t.children[i].parentPath&&("/"===t.path?t.children[i].path="/"+t.children[i].path:Q(t.children[i].path)||(t.children[i].path=t.path+"/"+t.children[i].path),t.children[i].parentPath=t.path),e.push(t.children[i])}),J.concat(e)}),V=i(()=>{const e=g.path;let t=e;if(void 0!==e&&e.lastIndexOf("/")>0&&-1===r.indexOf(e)){const i=e.substring(1,e.length);g.meta.link||(t="/"+i.substring(0,i.indexOf("/")),c.toggleSideBarHide(!1))}else g.children||(t=e,c.toggleSideBarHide(!0));return L(t),t});function B(){const e=document.body.getBoundingClientRect().width/3;a.value=parseInt(e/85)}function M(e,t){o.value=e;const i=y.value.find(t=>t.path===e);if(Q(e))window.open(e,"_blank");else if(i&&i.children)L(e),c.toggleSideBarHide(!1);else{const t=C.value.find(t=>t.path===e);if(t&&t.query){let i=JSON.parse(t.query);w.push({path:e,query:i})}else w.push({path:e});c.toggleSideBarHide(!0)}}function L(e){let t=[];return C.value&&C.value.length>0&&C.value.map(i=>{(e==i.parentPath||"index"==e&&""==i.path)&&t.push(i)}),t.length>0?v.setSidebarRouters(t):c.toggleSideBarHide(!0),t}return O(()=>{window.addEventListener("resize",B)}),I(()=>{window.removeEventListener("resize",B)}),O(()=>{B()}),(e,i)=>{const o=ye,r=n("el-menu-item"),c=n("el-sub-menu"),f=n("el-menu");return l(),u(f,{"default-active":t(V),mode:"horizontal",onSelect:M,ellipsis:!1},{default:d(()=>[(l(!0),s(k,null,j(t(_),(e,i)=>(l(),s(k,null,[i<t(a)?(l(),u(r,{style:S({"--theme":t(x)}),index:e.path,key:i},{default:d(()=>[e.meta&&e.meta.icon&&"#"!==e.meta.icon?(l(),u(o,{key:0,"icon-class":e.meta.icon},null,8,["icon-class"])):p("",!0),T(" "+m(e.meta.title),1)]),_:2},1032,["style","index"])):p("",!0)],64))),256)),t(_).length>t(a)?(l(),u(c,{key:0,style:S({"--theme":t(x)}),index:"more"},{title:d(()=>[...i[0]||(i[0]=[T("更多菜单",-1)])]),default:d(()=>[(l(!0),s(k,null,j(t(_),(e,i)=>(l(),s(k,null,[i>=t(a)?(l(),u(r,{index:e.path,key:i},{default:d(()=>[e.meta&&e.meta.icon&&"#"!==e.meta.icon?(l(),u(o,{key:0,"icon-class":e.meta.icon},null,8,["icon-class"])):p("",!0),T(" "+m(e.meta.title),1)]),_:2},1032,["index"])):p("",!0)],64))),256))]),_:1},8,["style"])):p("",!0)]),_:1},8,["default-active"])}}};var Xe=/* @__PURE__ */ie({__name:"index",props:{isActive:{type:Boolean,default:!1}},setup(e,{emit:t}){const i=t,a=()=>{i("toggleClick")};return(t,i)=>(l(),s("div",{style:{padding:"0 15px"},onClick:a},[(l(),s("svg",{class:o([{"is-active":e.isActive},"hamburger"]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",fill:"currentColor"},[...i[0]||(i[0]=[f("path",{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"},null,-1)])],2))]))}},[["__scopeId","data-v-32bc4ae5"]]);var Ze=/* @__PURE__ */ie({__name:"index",setup(e){const{isFullscreen:i,toggle:a}=Y();return(e,n)=>{const o=ye;return l(),s("div",null,[r(o,{"icon-class":t(i)?"exit-fullscreen":"fullscreen",onClick:t(a)},null,8,["icon-class","onClick"])])}}},[["__scopeId","data-v-084812ae"]]);const et={class:"navbar"},tt={class:"right-menu"},it={class:"avatar-wrapper"},at={class:"user-nickname"};var nt=/* @__PURE__ */ie({__name:"Navbar",emits:["setLayout"],setup(e,{emit:a}){const o=ae(),c=K(),v=A();function g(){o.toggleSideBar()}const w=i(()=>c.loginAreaDeptList.map(e=>({label:e.areaname+"-"+e.deptname,value:e.areaid+"-"+e.deptid}))),x=i(()=>{let e=c.loginAreaDeptSelect;return e.areaid+"-"+e.deptid});function y(e){const[t,i]=e.split("-");c.setSelected(t,i)}function b(e){switch(e){case"setLayout":O();break;case"logout":se.confirm("确定注销并退出系统吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{c.logOut().then(()=>{location.href="/index"})}).catch(()=>{})}}const _=a;function O(){_("setLayout")}function C(){v.toggleTheme()}return(e,i)=>{const a=ye,_=n("el-tooltip"),V=n("el-option"),S=n("el-select"),B=n("el-avatar"),M=n("el-dropdown-item"),L=n("router-link"),R=n("el-dropdown-menu"),P=n("el-dropdown");return l(),s("div",et,[r(t(Xe),{id:"hamburger-container","is-active":t(o).sidebar.opened,class:"hamburger-container",onToggleClick:g},null,8,["is-active"]),t(v).topNav?p("",!0):(l(),u(t(Ye),{key:0,id:"breadcrumb-container",class:"breadcrumb-container"})),t(v).topNav?(l(),u(t(Ke),{key:1,id:"topmenu-container",class:"topmenu-container"})):p("",!0),f("div",tt,["mobile"!==t(o).device?(l(),s(k,{key:0},[r(t(Ze),{id:"screenfull",class:"right-menu-item hover-effect"}),r(_,{content:"主题模式",effect:"dark",placement:"bottom"},{default:d(()=>[f("div",{class:"right-menu-item hover-effect theme-switch-wrapper",onClick:C},[t(v).isDark?(l(),u(a,{key:0,"icon-class":"sunny"})):p("",!0),t(v).isDark?p("",!0):(l(),u(a,{key:1,"icon-class":"moon"}))])]),_:1})],64)):p("",!0),r(S,{class:"right-menu-item userchange","model-value":t(x),onChange:y},{default:d(()=>[(l(!0),s(k,null,j(t(w),e=>(l(),u(V,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["model-value"]),r(P,{onCommand:b,class:"avatar-container right-menu-item hover-effect",trigger:"hover"},{dropdown:d(()=>[r(R,null,{default:d(()=>[r(L,{to:"/user/profile"},{default:d(()=>[r(M,null,{default:d(()=>[...i[0]||(i[0]=[T("个人中心",-1)])]),_:1})]),_:1}),r(M,{divided:"",command:"logout"},{default:d(()=>[...i[1]||(i[1]=[f("span",null,"退出登录",-1)])]),_:1})]),_:1})]),default:d(()=>[f("div",it,[r(B,null,{default:d(()=>[T(m(t(c).name.split("")[0]),1)]),_:1}),f("span",at,m(t(c).name),1)])]),_:1}),t(v).showSettings?(l(),s("div",{key:1,class:"right-menu-item hover-effect setting",onClick:O},[r(a,{"icon-class":"more-up"})])):p("",!0)])])}}},[["__scopeId","data-v-6f7e3581"]]);const st={class:"setting-drawer-block-checbox"},lt={key:0,class:"setting-drawer-block-checbox-selectIcon",style:{display:"block"}},ot={"aria-label":"图标: check",class:"anticon anticon-check"},rt=["fill"],ct={key:0,class:"setting-drawer-block-checbox-selectIcon",style:{display:"block"}},dt={"aria-label":"图标: check",class:"anticon anticon-check"},ut=["fill"],mt={class:"drawer-item"},pt={class:"comp-style"},ht={class:"drawer-item"},ft={class:"comp-style"},vt={class:"drawer-item"},gt={class:"comp-style"},wt={class:"drawer-item"},xt={class:"comp-style"},yt={class:"drawer-item"},bt={class:"comp-style"},kt={class:"drawer-item"},_t={class:"comp-style"},jt={class:"drawer-item"},Ot={class:"comp-style"},Ct={class:"drawer-item"},Vt={class:"comp-style"};var St=/* @__PURE__ */ie({__name:"index",setup(e,{expose:a}){const o=ae(),c=A(),m=Ne(),v=b(!1),g=b(c.theme),w=b(c.sideTheme),x=i(()=>c),y=b(["#409EFF","#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585"]);function k(e){e||(o.toggleSideBarHide(!1),m.setSidebarRouters(m.defaultRoutes))}function _(){A().setTitle(A().title)}function j(e){c.theme=e,X(e)}function O(e){c.sideTheme=e,w.value=e}function C(){Z.loading("正在保存到本地,请稍候...");let e={topNav:x.value.topNav,tagsView:x.value.tagsView,tagsIcon:x.value.tagsIcon,fixedHeader:x.value.fixedHeader,sidebarLogo:x.value.sidebarLogo,dynamicTitle:x.value.dynamicTitle,footerVisible:x.value.footerVisible,sideTheme:x.value.sideTheme,theme:x.value.theme};localStorage.setItem("layout-setting",JSON.stringify(e)),setTimeout(Z.closeLoading(),1e3)}function V(){Z.loading("正在清除设置缓存并刷新,请稍候..."),localStorage.removeItem("layout-setting"),setTimeout("window.location.reload()",1e3)}return a({openSetting:function(){v.value=!0}}),(e,i)=>{const a=n("el-color-picker"),o=n("el-divider"),m=n("el-switch"),x=n("el-button"),b=n("el-drawer");return l(),u(b,{modelValue:t(v),"onUpdate:modelValue":i[10]||(i[10]=e=>F(v)?v.value=e:null),withHeader:!1,"lock-scroll":!1,direction:"rtl",size:"300px"},{default:d(()=>[i[25]||(i[25]=f("div",{class:"setting-drawer-title"},[f("h3",{class:"drawer-title"},"主题风格设置")],-1)),f("div",st,[f("div",{class:"setting-drawer-block-checbox-item",onClick:i[0]||(i[0]=e=>O("theme-dark"))},[i[12]||(i[12]=f("img",{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='52px'%20height='45px'%20viewBox='0%200%2052%2045'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cfilter%20x='-9.4%25'%20y='-6.2%25'%20width='118.8%25'%20height='122.5%25'%20filterUnits='objectBoundingBox'%20id='filter-1'%3e%3cfeOffset%20dx='0'%20dy='1'%20in='SourceAlpha'%20result='shadowOffsetOuter1'%3e%3c/feOffset%3e%3cfeGaussianBlur%20stdDeviation='1'%20in='shadowOffsetOuter1'%20result='shadowBlurOuter1'%3e%3c/feGaussianBlur%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'%20type='matrix'%20in='shadowBlurOuter1'%20result='shadowMatrixOuter1'%3e%3c/feColorMatrix%3e%3cfeMerge%3e%3cfeMergeNode%20in='shadowMatrixOuter1'%3e%3c/feMergeNode%3e%3cfeMergeNode%20in='SourceGraphic'%3e%3c/feMergeNode%3e%3c/feMerge%3e%3c/filter%3e%3crect%20id='path-2'%20x='0'%20y='0'%20width='48'%20height='40'%20rx='4'%3e%3c/rect%3e%3cfilter%20x='-4.2%25'%20y='-2.5%25'%20width='108.3%25'%20height='110.0%25'%20filterUnits='objectBoundingBox'%20id='filter-4'%3e%3cfeOffset%20dx='0'%20dy='1'%20in='SourceAlpha'%20result='shadowOffsetOuter1'%3e%3c/feOffset%3e%3cfeGaussianBlur%20stdDeviation='0.5'%20in='shadowOffsetOuter1'%20result='shadowBlurOuter1'%3e%3c/feGaussianBlur%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.1%200'%20type='matrix'%20in='shadowBlurOuter1'%3e%3c/feColorMatrix%3e%3c/filter%3e%3c/defs%3e%3cg%20id='配置面板'%20width='48'%20height='40'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='setting-copy-2'%20width='48'%20height='40'%20transform='translate(-1190.000000,%20-136.000000)'%3e%3cg%20id='Group-8'%20width='48'%20height='40'%20transform='translate(1167.000000,%200.000000)'%3e%3cg%20id='Group-5-Copy-5'%20filter='url(%23filter-1)'%20transform='translate(25.000000,%20137.000000)'%3e%3cmask%20id='mask-3'%20fill='white'%3e%3cuse%20xlink:href='%23path-2'%3e%3c/use%3e%3c/mask%3e%3cg%20id='Rectangle-18'%3e%3cuse%20fill='black'%20fill-opacity='1'%20filter='url(%23filter-4)'%20xlink:href='%23path-2'%3e%3c/use%3e%3cuse%20fill='%23F0F2F5'%20fill-rule='evenodd'%20xlink:href='%23path-2'%3e%3c/use%3e%3c/g%3e%3crect%20id='Rectangle-11'%20fill='%23FFFFFF'%20mask='url(%23mask-3)'%20x='0'%20y='0'%20width='48'%20height='10'%3e%3c/rect%3e%3crect%20id='Rectangle-18'%20fill='%23303648'%20mask='url(%23mask-3)'%20x='0'%20y='0'%20width='16'%20height='40'%3e%3c/rect%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",alt:"dark"},null,-1)),"theme-dark"===t(w)?(l(),s("div",lt,[f("i",ot,[(l(),s("svg",{viewBox:"64 64 896 896","data-icon":"check",width:"1em",height:"1em",fill:t(g),"aria-hidden":"true",focusable:"false",class:""},[...i[11]||(i[11]=[f("path",{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"},null,-1)])],8,rt))])])):p("",!0)]),f("div",{class:"setting-drawer-block-checbox-item",onClick:i[1]||(i[1]=e=>O("theme-light"))},[i[14]||(i[14]=f("img",{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='52px'%20height='45px'%20viewBox='0%200%2052%2045'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cfilter%20x='-9.4%25'%20y='-6.2%25'%20width='118.8%25'%20height='122.5%25'%20filterUnits='objectBoundingBox'%20id='filter-1'%3e%3cfeOffset%20dx='0'%20dy='1'%20in='SourceAlpha'%20result='shadowOffsetOuter1'%3e%3c/feOffset%3e%3cfeGaussianBlur%20stdDeviation='1'%20in='shadowOffsetOuter1'%20result='shadowBlurOuter1'%3e%3c/feGaussianBlur%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'%20type='matrix'%20in='shadowBlurOuter1'%20result='shadowMatrixOuter1'%3e%3c/feColorMatrix%3e%3cfeMerge%3e%3cfeMergeNode%20in='shadowMatrixOuter1'%3e%3c/feMergeNode%3e%3cfeMergeNode%20in='SourceGraphic'%3e%3c/feMergeNode%3e%3c/feMerge%3e%3c/filter%3e%3crect%20id='path-2'%20x='0'%20y='0'%20width='48'%20height='40'%20rx='4'%3e%3c/rect%3e%3cfilter%20x='-4.2%25'%20y='-2.5%25'%20width='108.3%25'%20height='110.0%25'%20filterUnits='objectBoundingBox'%20id='filter-4'%3e%3cfeOffset%20dx='0'%20dy='1'%20in='SourceAlpha'%20result='shadowOffsetOuter1'%3e%3c/feOffset%3e%3cfeGaussianBlur%20stdDeviation='0.5'%20in='shadowOffsetOuter1'%20result='shadowBlurOuter1'%3e%3c/feGaussianBlur%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.1%200'%20type='matrix'%20in='shadowBlurOuter1'%3e%3c/feColorMatrix%3e%3c/filter%3e%3c/defs%3e%3cg%20id='配置面板'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='setting-copy-2'%20transform='translate(-1254.000000,%20-136.000000)'%3e%3cg%20id='Group-8'%20transform='translate(1167.000000,%200.000000)'%3e%3cg%20id='Group-5'%20filter='url(%23filter-1)'%20transform='translate(89.000000,%20137.000000)'%3e%3cmask%20id='mask-3'%20fill='white'%3e%3cuse%20xlink:href='%23path-2'%3e%3c/use%3e%3c/mask%3e%3cg%20id='Rectangle-18'%3e%3cuse%20fill='black'%20fill-opacity='1'%20filter='url(%23filter-4)'%20xlink:href='%23path-2'%3e%3c/use%3e%3cuse%20fill='%23F0F2F5'%20fill-rule='evenodd'%20xlink:href='%23path-2'%3e%3c/use%3e%3c/g%3e%3crect%20id='Rectangle-18'%20fill='%23FFFFFF'%20mask='url(%23mask-3)'%20x='0'%20y='0'%20width='16'%20height='40'%3e%3c/rect%3e%3crect%20id='Rectangle-11'%20fill='%23FFFFFF'%20mask='url(%23mask-3)'%20x='0'%20y='0'%20width='48'%20height='10'%3e%3c/rect%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",alt:"light"},null,-1)),"theme-light"===t(w)?(l(),s("div",ct,[f("i",dt,[(l(),s("svg",{viewBox:"64 64 896 896","data-icon":"check",width:"1em",height:"1em",fill:t(g),"aria-hidden":"true",focusable:"false",class:""},[...i[13]||(i[13]=[f("path",{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"},null,-1)])],8,ut))])])):p("",!0)])]),f("div",mt,[i[15]||(i[15]=f("span",null,"主题颜色",-1)),f("span",pt,[r(a,{modelValue:t(g),"onUpdate:modelValue":i[2]||(i[2]=e=>F(g)?g.value=e:null),predefine:t(y),onChange:j},null,8,["modelValue","predefine"])])]),r(o),i[26]||(i[26]=f("h3",{class:"drawer-title"},"系统布局配置",-1)),f("div",ht,[i[16]||(i[16]=f("span",null,"开启 TopNav",-1)),f("span",ft,[r(m,{modelValue:t(c).topNav,"onUpdate:modelValue":i[3]||(i[3]=e=>t(c).topNav=e),onChange:k,class:"drawer-switch"},null,8,["modelValue"])])]),f("div",vt,[i[17]||(i[17]=f("span",null,"开启 Tags-Views",-1)),f("span",gt,[r(m,{modelValue:t(c).tagsView,"onUpdate:modelValue":i[4]||(i[4]=e=>t(c).tagsView=e),class:"drawer-switch"},null,8,["modelValue"])])]),f("div",wt,[i[18]||(i[18]=f("span",null,"显示页签图标",-1)),f("span",xt,[r(m,{modelValue:t(c).tagsIcon,"onUpdate:modelValue":i[5]||(i[5]=e=>t(c).tagsIcon=e),disabled:!t(c).tagsView,class:"drawer-switch"},null,8,["modelValue","disabled"])])]),f("div",yt,[i[19]||(i[19]=f("span",null,"固定 Header",-1)),f("span",bt,[r(m,{modelValue:t(c).fixedHeader,"onUpdate:modelValue":i[6]||(i[6]=e=>t(c).fixedHeader=e),class:"drawer-switch"},null,8,["modelValue"])])]),f("div",kt,[i[20]||(i[20]=f("span",null,"显示 Logo",-1)),f("span",_t,[r(m,{modelValue:t(c).sidebarLogo,"onUpdate:modelValue":i[7]||(i[7]=e=>t(c).sidebarLogo=e),class:"drawer-switch"},null,8,["modelValue"])])]),f("div",jt,[i[21]||(i[21]=f("span",null,"动态标题",-1)),f("span",Ot,[r(m,{modelValue:t(c).dynamicTitle,"onUpdate:modelValue":i[8]||(i[8]=e=>t(c).dynamicTitle=e),onChange:_,class:"drawer-switch"},null,8,["modelValue"])])]),f("div",Ct,[i[22]||(i[22]=f("span",null,"底部版权",-1)),f("span",Vt,[r(m,{modelValue:t(c).footerVisible,"onUpdate:modelValue":i[9]||(i[9]=e=>t(c).footerVisible=e),class:"drawer-switch"},null,8,["modelValue"])])]),r(o),r(x,{type:"primary",plain:"",icon:"DocumentAdd",onClick:C},{default:d(()=>[...i[23]||(i[23]=[T("保存配置",-1)])]),_:1}),r(x,{plain:"",icon:"Refresh",onClick:V},{default:d(()=>[...i[24]||(i[24]=[T("重置配置",-1)])]),_:1})]),_:1},8,["modelValue"])}}},[["__scopeId","data-v-4d7a1c49"]]);var Bt=/* @__PURE__ */ie({__name:"ScrollPane",setup(e,{expose:t,emit:a}){const s=b(4),{proxy:o}=N(),r=i(()=>o.$refs.scrollContainer.$refs.wrapRef);function c(e){const t=e.wheelDelta||40*-e.deltaY,i=r.value;i.scrollLeft=i.scrollLeft+t/4}O(()=>{r.value.addEventListener("scroll",p,!0)}),I(()=>{r.value.removeEventListener("scroll",p)});const m=a,p=()=>{m("scroll")},f=W(),v=i(()=>f.visitedViews);return t({moveToTarget:function(e){const t=o.$refs.scrollContainer.$el.offsetWidth,i=r.value;let a=null,n=null;if(v.value.length>0&&(a=v.value[0],n=v.value[v.value.length-1]),a===e)i.scrollLeft=0;else if(n===e)i.scrollLeft=i.scrollWidth-t;else{const a=document.getElementsByClassName("tags-view-item"),n=v.value.findIndex(t=>t===e);let l=null,o=null;for(const e in a)"length"!==e&&Object.hasOwnProperty.call(a,e)&&(a[e].dataset.path===v.value[n-1].path&&(l=a[e]),a[e].dataset.path===v.value[n+1].path&&(o=a[e]));const r=o.offsetLeft+o.offsetWidth+s.value,c=l.offsetLeft-s.value;r>i.scrollLeft+t?i.scrollLeft=r-t:c<i.scrollLeft&&(i.scrollLeft=c)}}}),(e,t)=>{const i=n("el-scrollbar");return l(),u(i,{ref:"scrollContainer",vertical:!1,class:"scroll-container",onWheel:P(c,["prevent"])},{default:d(()=>[y(e.$slots,"default",{},void 0,!0)]),_:3},512)}}},[["__scopeId","data-v-99d1ac36"]]);const Mt=["onClick"];var Lt=/* @__PURE__ */ie({__name:"index",setup(e){const c=b(!1),v=b(0),g=b(0),w=b({}),x=b([]),y=b(null),_=q(),C=le(),M=oe(),L=i(()=>W().visitedViews),R=i(()=>Ne().routes),I=i(()=>A().theme),F=i(()=>A().tagsIcon);function N(e){return e.path===C.path}function H(e){return N(e)?{"background-color":I.value,"border-color":I.value}:{}}function z(e){return e.meta&&e.meta.affix}function E(){try{return"/index"===w.value.fullPath||w.value.fullPath===L.value[1].fullPath}catch(e){return!1}}function G(){try{return w.value.fullPath===L.value[L.value.length-1].fullPath}catch(e){return!1}}function $(e,t=""){let i=[];return e.forEach(e=>{if(e.meta&&e.meta.affix){const a=U(t+"/"+e.path);i.push({fullPath:a,path:a,name:e.name,meta:{...e.meta}})}if(e.children){const t=$(e.children,e.path);t.length>=1&&(i=[...i,...t])}}),i}function J(){const{name:e}=C;e&&W().addView(C)}function Q(){D(()=>{for(const e of L.value)e.path===C.path&&(y.value.moveToTarget(e),e.fullPath!==C.fullPath&&W().updateVisitedView(C))})}function Y(e){ee.closePage(e).then(({visitedViews:t})=>{N(e)&&te(t,e)})}function K(){ee.closeRightPage(w.value).then(e=>{e.find(e=>e.fullPath===C.fullPath)||te(e)})}function X(){ee.closeLeftPage(w.value).then(e=>{e.find(e=>e.fullPath===C.fullPath)||te(e)})}function Z(){M.push(w.value).catch(()=>{}),ee.closeOtherPage(w.value).then(()=>{Q()})}function te(e,t){const i=e.slice(-1)[0];i?M.push(i.fullPath):"Dashboard"===t.name?M.replace({path:"/redirect"+t.fullPath}):M.push("/")}function ie(){c.value=!1}function ae(){ie()}return a(C,()=>{J(),Q()}),a(c,e=>{e?document.body.addEventListener("click",ie):document.body.removeEventListener("click",ie)}),O(()=>{!function(){const e=$(R.value);x.value=e;for(const t of e)t.name&&W().addVisitedView(t)}(),J()}),(e,i)=>{const a=ye,b=n("close"),O=n("router-link"),M=n("refresh-right"),R=n("circle-close"),I=n("back"),q=n("right");return l(),s("div",{ref_key:"tagsView",ref:_,id:"tags-view-container",class:"tags-view-container"},[r(t(Bt),{ref_key:"scrollPaneRef",ref:y,class:"tags-view-wrapper",onScroll:ae},{default:d(()=>[(l(!0),s(k,null,j(t(L),e=>(l(),u(O,{key:e.path,"data-path":e.path,class:o([{active:N(e),"has-icon":t(F)},"tags-view-item"]),to:{path:e.path,query:e.query,fullPath:e.fullPath},style:S(H(e)),onMouseup:P(t=>z(e)?"":Y(e),["middle"]),onContextmenu:P(t=>function(e,t){const i=_.value.getBoundingClientRect().left,a=_.value.offsetWidth-105,n=t.clientX-i+15;g.value=n>a?a:n,v.value=t.clientY,c.value=!0,w.value=e}(e,t),["prevent"])},{default:d(()=>[t(F)&&e.meta&&e.meta.icon&&"#"!==e.meta.icon?(l(),u(a,{key:0,"icon-class":e.meta.icon},null,8,["icon-class"])):p("",!0),T(" "+m(e.title)+" ",1),z(e)?p("",!0):(l(),s("span",{key:1,onClick:P(t=>Y(e),["prevent","stop"])},[r(b,{class:"el-icon-close",style:{width:"1em",height:"1em","vertical-align":"middle"}})],8,Mt))]),_:2},1032,["data-path","class","to","style","onMouseup","onContextmenu"]))),128))]),_:1},512),V(f("ul",{style:S({left:t(g)+"px",top:t(v)+"px"}),class:"contextmenu"},[f("li",{onClick:i[0]||(i[0]=e=>{return i=t(w),ee.refreshPage(i),void(C.meta.link&&W().delIframeView(C));var i})},[r(M,{style:{width:"1em",height:"1em"}}),i[3]||(i[3]=T(" 刷新页面",-1))]),z(t(w))?p("",!0):(l(),s("li",{key:0,onClick:i[1]||(i[1]=e=>Y(t(w)))},[r(b,{style:{width:"1em",height:"1em"}}),i[4]||(i[4]=T(" 关闭当前",-1))])),f("li",{onClick:Z},[r(R,{style:{width:"1em",height:"1em"}}),i[5]||(i[5]=T(" 关闭其他",-1))]),E()?p("",!0):(l(),s("li",{key:1,onClick:X},[r(I,{style:{width:"1em",height:"1em"}}),i[6]||(i[6]=T(" 关闭左侧",-1))])),G()?p("",!0):(l(),s("li",{key:2,onClick:K},[r(q,{style:{width:"1em",height:"1em"}}),i[7]||(i[7]=T(" 关闭右侧",-1))])),f("li",{onClick:i[2]||(i[2]=e=>{return i=t(w),void ee.closeAllPage().then(({visitedViews:e})=>{x.value.some(e=>e.path===C.path)||te(e,i)});var i})},[r(R,{style:{width:"1em",height:"1em"}}),i[8]||(i[8]=T(" 全部关闭",-1))])],4),[[B,t(c)]])],512)}}},[["__scopeId","data-v-913310d7"]]);var Rt=/* @__PURE__ */ie({__name:"index",setup(e){const n=A(),c=i(()=>n.theme);i(()=>n.sideTheme);const d=i(()=>ae().sidebar),m=i(()=>ae().device),v=i(()=>n.tagsView),g=i(()=>n.fixedHeader),w=i(()=>({hideSidebar:!d.value.opened,openSidebar:d.value.opened,withoutAnimation:d.value.withoutAnimation,mobile:"mobile"===m.value})),{width:x}=te();function y(){ae().closeSideBar({withoutAnimation:!1})}a(()=>m.value,()=>{"mobile"===m.value&&d.value.opened&&ae().closeSideBar({withoutAnimation:!1})}),M(()=>{x.value-1<992?(ae().toggleDevice("mobile"),ae().closeSideBar({withoutAnimation:!0})):ae().toggleDevice("desktop")});const b=H("settingRef");function k(){b.value.openSetting()}return(e,i)=>(l(),s("div",{class:o([t(w),"app-wrapper"]),style:S({"--current-color":t(c)})},["mobile"===t(m)&&t(d).opened?(l(),s("div",{key:0,class:"drawer-bg",onClick:y})):p("",!0),t(d).hide?p("",!0):(l(),u(Ae,{key:1,class:"sidebar-container"})),f("div",{class:o([{hasTagsView:t(v),sidebarHide:t(d).hide},"main-container"])},[f("div",{class:o({"fixed-header":t(g)})},[r(t(nt),{onSetLayout:k}),t(v)?(l(),u(t(Lt),{key:0})):p("",!0)],2),r(t(Je)),r(t(St),{ref_key:"settingRef",ref:b},null,512)],2)],6))}},[["__scopeId","data-v-f4cdcce4"]]),Pt=/* @__PURE__ */Object.freeze({__proto__:null,default:Rt});export{ye as _,Te as a,ze as b,Ie as c,Pe as d,Re as e,Le as f,Me as g,Pt as h,Rt as i,Ne as u};
1
+ import{useCssVars as e,unref as t,computed as i,watch as a,resolveComponent as n,createElementBlock as s,openBlock as l,normalizeClass as o,createVNode as r,Transition as c,withCtx as d,createBlock as u,toDisplayString as m,createCommentVNode as p,createElementVNode as f,defineComponent as v,resolveDynamicComponent as g,normalizeProps as w,guardReactiveProps as x,renderSlot as y,ref as b,Fragment as k,createSlots as _,renderList as j,onMounted as O,resolveDirective as C,withDirectives as V,normalizeStyle as S,vShow as B,watchEffect as M,KeepAlive as L,TransitionGroup as R,withModifiers as P,onBeforeUnmount as I,createTextVNode as T,isRef as F,getCurrentInstance as N,shallowRef as q,nextTick as D,useTemplateRef as H}from"vue";import{Q as z,a2 as A,u as E,m as U,$ as G,b7 as $,b8 as J,b9 as W,v as Q,ba as Y,a1 as K,p as X,a4 as Z,an as ee,bb as te}from"./dict-DctgteYk.js";import{_ as ie}from"./lv-DL2oi67J.js";import{u as ae}from"./app-92IGh_3f.js";import{ElMessage as ne,ElMessageBox as se}from"element-plus";import{useRoute as le,useRouter as oe}from"vue-router";import{defineStore as re}from"pinia";var ce="#bfcbd9",de="#304156",ue="#ffffff",me="#303133";const pe=["src"],he={key:1,class:"sidebar-title"},fe=["src"],ve={class:"sidebar-title"};var ge=/* @__PURE__ */ie({__name:"Logo",props:{collapse:{type:Boolean,required:!0}},setup(v){e(e=>({"576e06d8":t(j),"20d39f4c":t(O)}));const{fileIp:g,pc_backtitle:w,pc_logo:x,pc_htmltitle:y}=z("fileIp","pc-backtitle","pc-logo","pc-htmltitle"),b=i(()=>g&&x?g.value+"filesroot"+x.value:void 0);a(y,e=>{console.log("%c aaaaaaaaaaaaaaaaaaaa"," color:chartreuse;font-size:20px",e),e&&(A().setdefaultTitle(e),A().setTitle(e))});const k=A(),_=i(()=>k.sideTheme),j=i(()=>k.isDark?"var(--sidebar-bg)":"theme-dark"===_.value?de:ue),O=i(()=>k.isDark?"var(--sidebar-text)":"theme-dark"===_.value?"#fff":me);return(e,i)=>{const a=n("router-link");return l(),s("div",{class:o(["sidebar-logo-container",{collapse:v.collapse}])},[r(c,{name:"sidebarLogoFade"},{default:d(()=>[v.collapse?(l(),u(a,{key:"collapse",class:"sidebar-logo-link",to:"/"},{default:d(()=>[t(b)?(l(),s("img",{key:0,src:t(b),class:"sidebar-logo"},null,8,pe)):(l(),s("h1",he,m(t(w)),1))]),_:1})):(l(),u(a,{key:"expand",class:"sidebar-logo-link",to:"/"},{default:d(()=>[t(b)?(l(),s("img",{key:0,src:t(b),class:"sidebar-logo"},null,8,fe)):p("",!0),f("h1",ve,m(t(w)),1)]),_:1}))]),_:1})],2)}}},[["__scopeId","data-v-c2f30f3b"]]);const we=v({props:{iconClass:{type:String,required:!0},className:{type:String,default:""},color:{type:String,default:""}},setup:e=>({iconName:i(()=>`#icon-${e.iconClass}`),svgClass:i(()=>e.className?`svg-icon ${e.className}`:"svg-icon")})}),xe=["xlink:href","fill"];var ye=/* @__PURE__ */ie(we,[["render",function(e,t,i,a,n,r){return l(),s("svg",{class:o(e.svgClass),"aria-hidden":"true"},[f("use",{"xlink:href":e.iconName,fill:e.color},null,8,xe)],2)}]]);const be={__name:"Link",props:{to:{type:[String,Object],required:!0},menu_opentypeid:{type:[String,Number]}},setup(e){const a=e,n=i(()=>E(a.to)),s=i(()=>n.value||3==a.menu_opentypeid?"a":"router-link");return(e,i)=>(l(),u(g(t(s)),w(x(n.value||3==a.menu_opentypeid?{href:a.to,target:"_blank",rel:"noopener"}:{to:a.to})),{default:d(()=>[y(e.$slots,"default")]),_:3},16))}},ke={key:0},_e=["title"],je=["title"],Oe={__name:"SidebarItem",props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(e){const i=e,a=b({});function c(e=[],t){e||(e=[]);const i=e.filter(e=>!e.hidden&&(a.value=e,!0));return 1===i.length||0===i.length&&(a.value={...t,path:"",noShowingChildren:!0},!0)}function v(e,t){if(E(e))return e;if(E(i.basePath))return i.basePath;if(t){let a=JSON.parse(t);return{path:U(i.basePath+"/"+e),query:a}}return U(i.basePath+"/"+e)}function g(e){return e.length>5?e:""}return(i,w)=>{const x=ye,y=n("el-menu-item"),b=n("sidebar-item",!0),O=n("el-sub-menu");return e.item.hidden?p("",!0):(l(),s("div",ke,[!c(e.item.children,e.item)||t(a).children&&!t(a).noShowingChildren||e.item.alwaysShow?(l(),u(O,{key:1,ref:"subMenu",index:v(e.item.path),teleported:""},_({default:d(()=>[(l(!0),s(k,null,j(e.item.children,(e,t)=>(l(),u(b,{key:e.path+t,"is-nest":!0,item:e,"base-path":v(e.menu_url),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:2},[e.item.meta?{name:"title",fn:d(()=>[r(x,{"icon-class":e.item.meta&&e.item.meta.icon},null,8,["icon-class"]),f("span",{class:"menu-title",title:g(e.item.meta.title)},m(e.item.meta.title),9,je)]),key:"0"}:void 0]),1032,["index"])):(l(),s(k,{key:0},[t(a).meta?(l(),u(t(be),{key:0,to:v(t(a).path,t(a).query),menu_opentypeid:e.item.menu_opentypeid},{default:d(()=>[r(y,{index:v(t(a).path),class:o({"submenu-title-noDropdown":!e.isNest})},{title:d(()=>[f("span",{class:"menu-title",title:g(t(a).meta.title)},m(t(a).meta.title),9,_e)]),default:d(()=>[r(x,{"icon-class":t(a).meta.icon||e.item.meta&&e.item.meta.icon},null,8,["icon-class"])]),_:1},8,["index","class"])]),_:1},8,["to","menu_opentypeid"])):p("",!0)],64))]))}}};var Ce=/* @__PURE__ */ie({},[["render",function(e,t){const i=n("router-view");return l(),u(i)}]]);const Ve=["id","src"],Se={__name:"index",props:{src:{type:String,default:"/"},iframeId:{type:String}},setup(e){const i=b(!0),a=b(document.documentElement.clientHeight-94.5+"px"),n=b(null);return O(()=>{n.value&&(n.value.onload=()=>{i.value=!1})}),(o,r)=>{const c=C("loading");return V((l(),s("div",{style:S("height:"+t(a)),"element-loading-text":"正在加载页面,请稍候!"},[f("iframe",{id:e.iframeId,style:{width:"100%",height:"100%"},src:e.src,ref_key:"iframeRef",ref:n,frameborder:"no"},null,8,Ve)],4)),[[c,t(i)]])}}},Be=e=>G({url:"/sys/sysmenu/gettreemanage",method:"get",params:e}),Me=e=>G({url:"/sys/sysmenu/gettree",method:"get",params:e}),Le=e=>G({url:"/sys/sysmenu/add",method:"post",data:e}),Re=e=>G({url:"/sys/sysmenu/edit",method:"put",data:e}),Pe=e=>G({url:"/sys/sysmenu/delete",method:"delete",data:e}),Ie=e=>G({url:`/sys/sysmenu/getbyid/${e}`,method:"get"});var Te=/* @__PURE__ */Object.freeze({__proto__:null,addMenu:Le,delMenu:Pe,editMenu:Re,getMenu:Ie,getMenuTree:Me,getRouters:Be}),Fe=/* @__PURE__ */Object.assign({"../../views/error/401.vue":()=>import("./401-DnpnHhQL.js"),"../../views/error/404.vue":()=>import("./404-BE154RmJ.js"),"../../views/event/baseFx/index.vue":()=>import("./index-Bwv1jzRk.js"),"../../views/event/eventDetail/index.vue":()=>import("./index-DY1z1lk4.js"),"../../views/event/eventdone/index.vue":()=>import("./index-Bc9XpR6c.js"),"../../views/event/eventtask/index.vue":()=>import("./index-B0WDP6sq.js"),"../../views/event/performanceFx/index.vue":()=>import("./index-CxskaT_s.js"),"../../views/event/settings/eventgrade/index.vue":()=>import("./index-iMjmou2D.js"),"../../views/event/settings/eventsource/index.vue":()=>import("./index-BqWzolun.js"),"../../views/event/settings/oprtype/index.vue":()=>import("./index-BnvI01qX.js"),"../../views/event/settings/wf/detail.vue":()=>import("./detail-BOumcElN.js"),"../../views/event/settings/wf/index.vue":()=>import("./index-DPoyJPr7.js"),"../../views/event/settings/wf/nodeadd.vue":()=>import("./nodeadd-HrqJLjsz.js"),"../../views/event/settings/wf/opradd.vue":()=>import("./opradd-hxWXDm18.js"),"../../views/event/settings/wf/oprauthadd.vue":()=>import("./oprauthadd-CanbU8_l.js"),"../../views/event/settings/wf/wfyqsqcfg.vue":()=>import("./wfyqsqcfg-Czme68Rt.js"),"../../views/event/settings/wfclass/index.vue":()=>import("./index-Bv78cBsF.js"),"../../views/event/settings/wfzdy/index.vue":()=>import("./index-0t_doEXv.js"),"../../views/event/sourceFx/index.vue":()=>import("./index-Cv8gwS9M.js"),"../../views/event/typeFx/index.vue":()=>import("./index-BCvkeKcK.js"),"../../views/event/wfEventAdd/index.vue":()=>import("./index-ku_pt0z_.js"),"../../views/event/wfeventall/index.vue":()=>import("./index-C-DfJ-as.js"),"../../views/event/yqsp/index.vue":()=>import("./index-DM0m4s_Y.js"),"../../views/home/components/daibanevent.vue":()=>import("./daibanevent-C3CKH-IR.js"),"../../views/home/components/eventfb.vue":()=>import("./eventfb-Cmsd86t8.js"),"../../views/home/components/eventsource.vue":()=>import("./eventsource-D6A7ZHIH.js"),"../../views/home/components/gaopinevent.vue":()=>import("./gaopinevent-DqEc9NSo.js"),"../../views/home/components/numberbox.vue":()=>import("./numberbox-5WfxVy5K.js"),"../../views/home/components/shangbaoevent.vue":()=>import("./shangbaoevent-CjsczULv.js"),"../../views/home/components/shangbaoeventfl.vue":()=>import("./shangbaoeventfl-C4c5vB3L.js"),"../../views/home/components/title.vue":()=>import("./title-C-WVm-GN.js"),"../../views/home/components/weather.vue":()=>import("./weather-BiCEy6TX.js"),"../../views/home/index.vue":()=>import("./index-DwQgKGv3.js"),"../../views/log/logLogin/index.vue":()=>import("./index-BO_svKgP.js"),"../../views/log/logMqerror/index.vue":()=>import("./index-D2Y7K18y.js"),"../../views/log/logMqysmsg/index.vue":()=>import("./index-8C7dOS2Y.js"),"../../views/log/logMsg/index.vue":()=>import("./index-BG8kNtlJ.js"),"../../views/log/logQuartz/index.vue":()=>import("./index-DGKB9FYX.js"),"../../views/log/operateLog/index.vue":()=>import("./index-B3KGk9fq.js"),"../../views/login.vue":()=>import("./login-BeYiniIX.js"),"../../views/redirect/index.vue":()=>import("./index-DQnikhDQ.js"),"../../views/system/dept-manage/index.vue":()=>import("./index-CK7eDEwy.js"),"../../views/system/dept-manage/lazyTree.vue":()=>import("./lazyTree-CN7_yMu4.js"),"../../views/system/dict-manage/col.vue":()=>import("./col-CVCZoTpC.js"),"../../views/system/dict-manage/data.vue":()=>import("./data-BCOtaLAj.js"),"../../views/system/dict-manage/index.vue":()=>import("./index-DIkpyiFp.js"),"../../views/system/grid-manage/grid-table.vue":()=>import("./grid-table-C4bW0hYm.js"),"../../views/system/grid-manage/index.vue":()=>import("./index-D7V80Rf4.js"),"../../views/system/grid-manage/maparea.vue":()=>import("./maparea-Bu5egUJe.js"),"../../views/system/gridtype-manage/data.vue":()=>import("./data--7_Cdmcu.js"),"../../views/system/gridtype-manage/index.vue":()=>import("./index-Cbt_-PEb.js"),"../../views/system/menu-manage/index.vue":()=>import("./index-BdmbB7Dt.js"),"../../views/system/menu-manage/sysright-manage.vue":()=>import("./sysright-manage-CB8aWSRZ.js"),"../../views/system/notice-manage/index.vue":()=>import("./index-Da-IRvj4.js"),"../../views/system/noticetype-manage/index.vue":()=>import("./index-lYSvgkXd.js"),"../../views/system/regions-manage/index.vue":()=>import("./index-DKfalxrG.js"),"../../views/system/regionstype-manage/index.vue":()=>import("./index-Dt1bGl1j.js"),"../../views/system/role-manage/index.vue":()=>import("./index-GXpUONgX.js"),"../../views/system/sysholidays/index.vue":()=>import("./index-BNW11af-.js"),"../../views/system/system-config/index.vue":()=>import("./index-B7oUMJLF.js"),"../../views/system/user-manage/index.vue":()=>import("./index-D4hXxARm.js"),"../../views/xuncha/taskfx/index.vue":()=>import("./index-BH5be_-Q.js"),"../../views/xuncha/taskfxday/index.vue":()=>import("./index-5ea9DMUi.js"),"../../views/xuncha/taskfxmonth/index.vue":()=>import("./index-BZfnHYMM.js"),"../../views/xuncha/taskfxweek/index.vue":()=>import("./index-JxJIOHPU.js"),"../../views/xuncha/taskfxyear/index.vue":()=>import("./index-pnqPVw09.js"),"../../views/xuncha/taskmatter/index.vue":()=>import("./index-BiykGTjb.js"),"../../views/xuncha/tasknode/index.vue":()=>import("./index-CX3f5hI1.js"),"../../views/xuncha/tasknodelog/index.vue":()=>import("./index-_T8pK6_d.js"),"../../views/xuncha/tasktype/index.vue":()=>import("./index-BXM3HYNn.js")});const Ne=re("permission",{state:()=>({routes:[],addRoutes:[],defaultRoutes:[],topbarRouters:[],sidebarRouters:[]}),actions:{setRoutes(e){this.addRoutes=e,this.routes=J.concat(e)},setDefaultRoutes(e){this.defaultRoutes=J.concat(e)},setTopbarRoutes(e){this.topbarRouters=e},setSidebarRouters(e){this.sidebarRouters=e},generateRoutes(e){return new Promise(t=>{$.forEach(t=>{e.addRoute(t)}),Be({appsid:1}).then(e=>{if("208"==e.code)ne({message:"需要配置appsid-01的菜单",type:"error"}),t([]);else{const i=JSON.parse(JSON.stringify(e)),a=JSON.parse(JSON.stringify(e)),n=JSON.parse(JSON.stringify(e)),s=qe(i),l=qe(a,!1,!0),o=qe(n);this.setRoutes(l),this.setSidebarRouters(J.concat(s)),this.setDefaultRoutes(s),this.setTopbarRoutes(o),t(l)}})})}}});function qe(e,t=!1,i=!1){return e.filter(e=>{let t=function(e){if(!e)return{path:"",url:""};if(e.split("").includes(":")){let t=[],i=[];return e.split("/").forEach(e=>{if(0===e.indexOf(":")){if(e.indexOf("=")>0){let a=e.split("=");t.push(a[0]),i.push(a[1])}}else t.push(e),i.push(e)}),{path:t.join("/"),url:i.join("/")}}return{path:e,url:e}}(e.menu_url);return e.menu_json&&Object.assign(e,e.menu_json),e.path=t.path,e.menu_url=t.url,e.hidden=void 0!==e.menu_isshow&&!e.menu_isshow,e.name=e.menu_no,e.component=e.menu_component,e.meta={title:e.menu_name||"暂无名字",icon:e.icon||"tree",noCache:e.menu_json.noCache||!1,breadcrumb:e.menu_json.breadcrumb||!0,activeMenu:e.menu_json.activeMenu||void 0},i&&e.children&&(e.children=De(e.children)),e.component&&("Layout"===e.component?e.component=Rt:"ParentView"===e.component?e.component=Ce:"InnerLink"===e.component?e.component=Se:e.component=He(e.component)),null!=e.children&&e.children&&e.children.length?e.children=qe(e.children,e,i):(delete e.children,delete e.redirect),!0})}function De(e,t=!1){var i=[];return e.forEach(e=>{e.path=t?t.path+"/"+e.path:e.path,e.children&&e.children.length&&"ParentView"===e.component?i=i.concat(De(e.children,e)):i.push(e)}),i}const He=e=>{let t;for(const i in Fe){i.split("views/")[1].split(".vue")[0]===e&&(t=()=>Fe[i]())}return t},ze=e=>{Fe={...e,...Fe},console.log("%c 更新目录文件成功"," color:violet;font-size:20px",Fe)};var Ae=/* @__PURE__ */ie({__name:"index",setup(a){e(e=>({"5cbe82be":t(_),"319de2b4":t(O)}));const c=le(),m=ae(),f=A(),v=Ne(),g=i(()=>v.sidebarRouters),w=i(()=>f.sidebarLogo),x=i(()=>f.sideTheme),y=i(()=>f.theme),b=i(()=>!m.sidebar.opened),_=i(()=>f.isDark?"var(--sidebar-bg)":"theme-dark"===x.value?de:ue),O=i(()=>f.isDark?"var(--sidebar-text)":"theme-dark"===x.value?ce:me),C=i(()=>{const{meta:e,path:t}=c;return e.activeMenu?e.activeMenu:t});return(e,i)=>{const a=n("el-menu"),c=n("el-scrollbar");return l(),s("div",{class:o([{"has-logo":t(w)},"sidebar-container"])},[t(w)?(l(),u(t(ge),{key:0,collapse:t(b)},null,8,["collapse"])):p("",!0),r(c,{"wrap-class":"scrollbar-wrapper"},{default:d(()=>[r(a,{"default-active":t(C),collapse:t(b),"background-color":t(_),"text-color":t(O),"unique-opened":!0,"active-text-color":t(y),"collapse-transition":!1,mode:"vertical",class:o(t(x))},{default:d(()=>[(l(!0),s(k,null,j(t(g),(e,i)=>(l(),u(t(Oe),{key:e.path+i,item:e,"base-path":e.menu_url},null,8,["item","base-path"]))),128))]),_:1},8,["default-active","collapse","background-color","text-color","active-text-color","class"])]),_:1})],2)}}},[["__scopeId","data-v-12c49710"]]);const Ee={key:0,class:"copyright"};var Ue=/* @__PURE__ */ie({__name:"index",setup(e){const a=A(),n=i(()=>a.footerVisible),o=i(()=>a.footerContent);return(e,i)=>t(n)?(l(),s("footer",Ee,[f("span",null,m(t(o)),1)])):p("",!0)}},[["__scopeId","data-v-467168fe"]]);const Ge={__name:"index",setup(e){const i=le(),a=W();function n(e,t){if(Object.keys(t).length>0){return e+"?"+Object.keys(t).map(e=>e+"="+t[e]).join("&")}return e}return(e,o)=>(l(!0),s(k,null,j(t(a).iframeViews,(e,a)=>V((l(),u(t(Se),{key:e.path,iframeId:"iframe"+a,src:n(e.meta.link,e.query)},null,8,["iframeId","src"])),[[B,t(i).path===e.path]])),128))}},$e={class:"app-main"};var Je=/* @__PURE__ */ie({__name:"AppMain",setup(e){const i=le(),a=W();function o(){i.meta.link&&W().addIframeView(i)}return O(()=>{o()}),M(()=>{o()}),(e,i)=>{const o=n("router-view");return l(),s("section",$e,[r(o,null,{default:d(({Component:e,route:i})=>[r(c,{name:"fade-transform",mode:"out-in"},{default:d(()=>[(l(),u(L,{include:t(a).cachedViews},[i.meta.link?p("",!0):(l(),u(g(e),{key:i.path}))],1032,["include"]))]),_:2},1024)]),_:1}),r(t(Ge)),r(t(Ue))])}}},[["__scopeId","data-v-4c1adf3f"]]);const We={key:0,class:"no-redirect"},Qe=["onClick"];var Ye=/* @__PURE__ */ie({__name:"index",setup(e){const i=le(),a=oe(),o=Ne(),c=b([]);function p(){let e=[];if(function(e,t="/"){let i=e.indexOf(t),a=0;for(;-1!==i;)a++,i=e.indexOf(t,i+1);return a}(i.path)>2){const t=/\/\w+/gi;f(i.path.match(t).map((e,t)=>(0!==t&&(e=e.slice(1)),e)),o.defaultRoutes,e)}else e=i.matched.filter(e=>e.meta&&e.meta.title);(function(e){const t=e&&e.name;if(!t)return!1;return"Index"===t.trim()})(e[0])||(e=[{path:"/index",meta:{title:"首页"}}].concat(e)),c.value=e.filter(e=>e.meta&&e.meta.title&&!1!==e.meta.breadcrumb)}function f(e,t,i){let a=t.find(t=>t.path==e[0]||(t.name+="").toLowerCase()==e[0]);a&&(i.push(a),a.children&&e.length&&(e.shift(),f(e,a.children,i)))}return M(()=>{i.path.startsWith("/redirect/")||p()}),p(),(e,i)=>{const o=n("el-breadcrumb-item"),p=n("el-breadcrumb");return l(),u(p,{class:"app-breadcrumb",separator:"/"},{default:d(()=>[r(R,{name:"breadcrumb"},{default:d(()=>[(l(!0),s(k,null,j(t(c),(e,i)=>(l(),u(o,{key:e.path},{default:d(()=>["noRedirect"===e.redirect||i==t(c).length-1?(l(),s("span",We,m(e.meta.title),1)):(l(),s("a",{key:1,onClick:P(t=>function(e){const{redirect:t,path:i}=e;t?a.push(t):a.push(i)}(e),["prevent"])},m(e.meta.title),9,Qe))]),_:2},1024))),128))]),_:1})]),_:1})}}},[["__scopeId","data-v-94905345"]]);const Ke={__name:"index",setup(e){const a=b(null),o=b(null),r=["/index","/user/profile"],c=ae(),f=A(),v=Ne(),g=le(),w=oe(),x=i(()=>f.theme),y=i(()=>v.topbarRouters),_=i(()=>{let e=[];return y.value.map(t=>{!0!==t.hidden&&("/"===t.path&&t.children?e.push(t.children[0]):e.push(t))}),e}),C=i(()=>{let e=[];return y.value.map(t=>{for(let i in t.children)void 0===t.children[i].parentPath&&("/"===t.path?t.children[i].path="/"+t.children[i].path:Q(t.children[i].path)||(t.children[i].path=t.path+"/"+t.children[i].path),t.children[i].parentPath=t.path),e.push(t.children[i])}),J.concat(e)}),V=i(()=>{const e=g.path;let t=e;if(void 0!==e&&e.lastIndexOf("/")>0&&-1===r.indexOf(e)){const i=e.substring(1,e.length);g.meta.link||(t="/"+i.substring(0,i.indexOf("/")),c.toggleSideBarHide(!1))}else g.children||(t=e,c.toggleSideBarHide(!0));return L(t),t});function B(){const e=document.body.getBoundingClientRect().width/3;a.value=parseInt(e/85)}function M(e,t){o.value=e;const i=y.value.find(t=>t.path===e);if(Q(e))window.open(e,"_blank");else if(i&&i.children)L(e),c.toggleSideBarHide(!1);else{const t=C.value.find(t=>t.path===e);if(t&&t.query){let i=JSON.parse(t.query);w.push({path:e,query:i})}else w.push({path:e});c.toggleSideBarHide(!0)}}function L(e){let t=[];return C.value&&C.value.length>0&&C.value.map(i=>{(e==i.parentPath||"index"==e&&""==i.path)&&t.push(i)}),t.length>0?v.setSidebarRouters(t):c.toggleSideBarHide(!0),t}return O(()=>{window.addEventListener("resize",B)}),I(()=>{window.removeEventListener("resize",B)}),O(()=>{B()}),(e,i)=>{const o=ye,r=n("el-menu-item"),c=n("el-sub-menu"),f=n("el-menu");return l(),u(f,{"default-active":t(V),mode:"horizontal",onSelect:M,ellipsis:!1},{default:d(()=>[(l(!0),s(k,null,j(t(_),(e,i)=>(l(),s(k,null,[i<t(a)?(l(),u(r,{style:S({"--theme":t(x)}),index:e.path,key:i},{default:d(()=>[e.meta&&e.meta.icon&&"#"!==e.meta.icon?(l(),u(o,{key:0,"icon-class":e.meta.icon},null,8,["icon-class"])):p("",!0),T(" "+m(e.meta.title),1)]),_:2},1032,["style","index"])):p("",!0)],64))),256)),t(_).length>t(a)?(l(),u(c,{key:0,style:S({"--theme":t(x)}),index:"more"},{title:d(()=>[...i[0]||(i[0]=[T("更多菜单",-1)])]),default:d(()=>[(l(!0),s(k,null,j(t(_),(e,i)=>(l(),s(k,null,[i>=t(a)?(l(),u(r,{index:e.path,key:i},{default:d(()=>[e.meta&&e.meta.icon&&"#"!==e.meta.icon?(l(),u(o,{key:0,"icon-class":e.meta.icon},null,8,["icon-class"])):p("",!0),T(" "+m(e.meta.title),1)]),_:2},1032,["index"])):p("",!0)],64))),256))]),_:1},8,["style"])):p("",!0)]),_:1},8,["default-active"])}}};var Xe=/* @__PURE__ */ie({__name:"index",props:{isActive:{type:Boolean,default:!1}},setup(e,{emit:t}){const i=t,a=()=>{i("toggleClick")};return(t,i)=>(l(),s("div",{style:{padding:"0 15px"},onClick:a},[(l(),s("svg",{class:o([{"is-active":e.isActive},"hamburger"]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",fill:"currentColor"},[...i[0]||(i[0]=[f("path",{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"},null,-1)])],2))]))}},[["__scopeId","data-v-32bc4ae5"]]);var Ze=/* @__PURE__ */ie({__name:"index",setup(e){const{isFullscreen:i,toggle:a}=Y();return(e,n)=>{const o=ye;return l(),s("div",null,[r(o,{"icon-class":t(i)?"exit-fullscreen":"fullscreen",onClick:t(a)},null,8,["icon-class","onClick"])])}}},[["__scopeId","data-v-084812ae"]]);const et={class:"navbar"},tt={class:"right-menu"},it={class:"avatar-wrapper"},at={class:"user-nickname"};var nt=/* @__PURE__ */ie({__name:"Navbar",emits:["setLayout"],setup(e,{emit:a}){const o=ae(),c=K(),v=A();function g(){o.toggleSideBar()}const w=i(()=>c.loginAreaDeptList.map(e=>({label:e.areaname+"-"+e.deptname,value:e.areaid+"-"+e.deptid}))),x=i(()=>{let e=c.loginAreaDeptSelect;return e.areaid+"-"+e.deptid});function y(e){const[t,i]=e.split("-");c.setSelected(t,i)}function b(e){switch(e){case"setLayout":O();break;case"logout":se.confirm("确定注销并退出系统吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{c.logOut().then(()=>{location.href="/index"})}).catch(()=>{})}}const _=a;function O(){_("setLayout")}function C(){v.toggleTheme()}return(e,i)=>{const a=ye,_=n("el-tooltip"),V=n("el-option"),S=n("el-select"),B=n("el-avatar"),M=n("el-dropdown-item"),L=n("router-link"),R=n("el-dropdown-menu"),P=n("el-dropdown");return l(),s("div",et,[r(t(Xe),{id:"hamburger-container","is-active":t(o).sidebar.opened,class:"hamburger-container",onToggleClick:g},null,8,["is-active"]),t(v).topNav?p("",!0):(l(),u(t(Ye),{key:0,id:"breadcrumb-container",class:"breadcrumb-container"})),t(v).topNav?(l(),u(t(Ke),{key:1,id:"topmenu-container",class:"topmenu-container"})):p("",!0),f("div",tt,["mobile"!==t(o).device?(l(),s(k,{key:0},[r(t(Ze),{id:"screenfull",class:"right-menu-item hover-effect"}),r(_,{content:"主题模式",effect:"dark",placement:"bottom"},{default:d(()=>[f("div",{class:"right-menu-item hover-effect theme-switch-wrapper",onClick:C},[t(v).isDark?(l(),u(a,{key:0,"icon-class":"sunny"})):p("",!0),t(v).isDark?p("",!0):(l(),u(a,{key:1,"icon-class":"moon"}))])]),_:1})],64)):p("",!0),r(S,{class:"right-menu-item userchange","model-value":t(x),onChange:y},{default:d(()=>[(l(!0),s(k,null,j(t(w),e=>(l(),u(V,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["model-value"]),r(P,{onCommand:b,class:"avatar-container right-menu-item hover-effect",trigger:"hover"},{dropdown:d(()=>[r(R,null,{default:d(()=>[r(L,{to:"/user/profile"},{default:d(()=>[r(M,null,{default:d(()=>[...i[0]||(i[0]=[T("个人中心",-1)])]),_:1})]),_:1}),r(M,{divided:"",command:"logout"},{default:d(()=>[...i[1]||(i[1]=[f("span",null,"退出登录",-1)])]),_:1})]),_:1})]),default:d(()=>[f("div",it,[r(B,null,{default:d(()=>[T(m(t(c).name.split("")[0]),1)]),_:1}),f("span",at,m(t(c).name),1)])]),_:1}),t(v).showSettings?(l(),s("div",{key:1,class:"right-menu-item hover-effect setting",onClick:O},[r(a,{"icon-class":"more-up"})])):p("",!0)])])}}},[["__scopeId","data-v-6f7e3581"]]);const st={class:"setting-drawer-block-checbox"},lt={key:0,class:"setting-drawer-block-checbox-selectIcon",style:{display:"block"}},ot={"aria-label":"图标: check",class:"anticon anticon-check"},rt=["fill"],ct={key:0,class:"setting-drawer-block-checbox-selectIcon",style:{display:"block"}},dt={"aria-label":"图标: check",class:"anticon anticon-check"},ut=["fill"],mt={class:"drawer-item"},pt={class:"comp-style"},ht={class:"drawer-item"},ft={class:"comp-style"},vt={class:"drawer-item"},gt={class:"comp-style"},wt={class:"drawer-item"},xt={class:"comp-style"},yt={class:"drawer-item"},bt={class:"comp-style"},kt={class:"drawer-item"},_t={class:"comp-style"},jt={class:"drawer-item"},Ot={class:"comp-style"},Ct={class:"drawer-item"},Vt={class:"comp-style"};var St=/* @__PURE__ */ie({__name:"index",setup(e,{expose:a}){const o=ae(),c=A(),m=Ne(),v=b(!1),g=b(c.theme),w=b(c.sideTheme),x=i(()=>c),y=b(["#409EFF","#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585"]);function k(e){e||(o.toggleSideBarHide(!1),m.setSidebarRouters(m.defaultRoutes))}function _(){A().setTitle(A().title)}function j(e){c.theme=e,X(e)}function O(e){c.sideTheme=e,w.value=e}function C(){Z.loading("正在保存到本地,请稍候...");let e={topNav:x.value.topNav,tagsView:x.value.tagsView,tagsIcon:x.value.tagsIcon,fixedHeader:x.value.fixedHeader,sidebarLogo:x.value.sidebarLogo,dynamicTitle:x.value.dynamicTitle,footerVisible:x.value.footerVisible,sideTheme:x.value.sideTheme,theme:x.value.theme};localStorage.setItem("layout-setting",JSON.stringify(e)),setTimeout(Z.closeLoading(),1e3)}function V(){Z.loading("正在清除设置缓存并刷新,请稍候..."),localStorage.removeItem("layout-setting"),setTimeout("window.location.reload()",1e3)}return a({openSetting:function(){v.value=!0}}),(e,i)=>{const a=n("el-color-picker"),o=n("el-divider"),m=n("el-switch"),x=n("el-button"),b=n("el-drawer");return l(),u(b,{modelValue:t(v),"onUpdate:modelValue":i[10]||(i[10]=e=>F(v)?v.value=e:null),withHeader:!1,"lock-scroll":!1,direction:"rtl",size:"300px"},{default:d(()=>[i[25]||(i[25]=f("div",{class:"setting-drawer-title"},[f("h3",{class:"drawer-title"},"主题风格设置")],-1)),f("div",st,[f("div",{class:"setting-drawer-block-checbox-item",onClick:i[0]||(i[0]=e=>O("theme-dark"))},[i[12]||(i[12]=f("img",{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='52px'%20height='45px'%20viewBox='0%200%2052%2045'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cfilter%20x='-9.4%25'%20y='-6.2%25'%20width='118.8%25'%20height='122.5%25'%20filterUnits='objectBoundingBox'%20id='filter-1'%3e%3cfeOffset%20dx='0'%20dy='1'%20in='SourceAlpha'%20result='shadowOffsetOuter1'%3e%3c/feOffset%3e%3cfeGaussianBlur%20stdDeviation='1'%20in='shadowOffsetOuter1'%20result='shadowBlurOuter1'%3e%3c/feGaussianBlur%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'%20type='matrix'%20in='shadowBlurOuter1'%20result='shadowMatrixOuter1'%3e%3c/feColorMatrix%3e%3cfeMerge%3e%3cfeMergeNode%20in='shadowMatrixOuter1'%3e%3c/feMergeNode%3e%3cfeMergeNode%20in='SourceGraphic'%3e%3c/feMergeNode%3e%3c/feMerge%3e%3c/filter%3e%3crect%20id='path-2'%20x='0'%20y='0'%20width='48'%20height='40'%20rx='4'%3e%3c/rect%3e%3cfilter%20x='-4.2%25'%20y='-2.5%25'%20width='108.3%25'%20height='110.0%25'%20filterUnits='objectBoundingBox'%20id='filter-4'%3e%3cfeOffset%20dx='0'%20dy='1'%20in='SourceAlpha'%20result='shadowOffsetOuter1'%3e%3c/feOffset%3e%3cfeGaussianBlur%20stdDeviation='0.5'%20in='shadowOffsetOuter1'%20result='shadowBlurOuter1'%3e%3c/feGaussianBlur%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.1%200'%20type='matrix'%20in='shadowBlurOuter1'%3e%3c/feColorMatrix%3e%3c/filter%3e%3c/defs%3e%3cg%20id='配置面板'%20width='48'%20height='40'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='setting-copy-2'%20width='48'%20height='40'%20transform='translate(-1190.000000,%20-136.000000)'%3e%3cg%20id='Group-8'%20width='48'%20height='40'%20transform='translate(1167.000000,%200.000000)'%3e%3cg%20id='Group-5-Copy-5'%20filter='url(%23filter-1)'%20transform='translate(25.000000,%20137.000000)'%3e%3cmask%20id='mask-3'%20fill='white'%3e%3cuse%20xlink:href='%23path-2'%3e%3c/use%3e%3c/mask%3e%3cg%20id='Rectangle-18'%3e%3cuse%20fill='black'%20fill-opacity='1'%20filter='url(%23filter-4)'%20xlink:href='%23path-2'%3e%3c/use%3e%3cuse%20fill='%23F0F2F5'%20fill-rule='evenodd'%20xlink:href='%23path-2'%3e%3c/use%3e%3c/g%3e%3crect%20id='Rectangle-11'%20fill='%23FFFFFF'%20mask='url(%23mask-3)'%20x='0'%20y='0'%20width='48'%20height='10'%3e%3c/rect%3e%3crect%20id='Rectangle-18'%20fill='%23303648'%20mask='url(%23mask-3)'%20x='0'%20y='0'%20width='16'%20height='40'%3e%3c/rect%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",alt:"dark"},null,-1)),"theme-dark"===t(w)?(l(),s("div",lt,[f("i",ot,[(l(),s("svg",{viewBox:"64 64 896 896","data-icon":"check",width:"1em",height:"1em",fill:t(g),"aria-hidden":"true",focusable:"false",class:""},[...i[11]||(i[11]=[f("path",{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"},null,-1)])],8,rt))])])):p("",!0)]),f("div",{class:"setting-drawer-block-checbox-item",onClick:i[1]||(i[1]=e=>O("theme-light"))},[i[14]||(i[14]=f("img",{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='52px'%20height='45px'%20viewBox='0%200%2052%2045'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cfilter%20x='-9.4%25'%20y='-6.2%25'%20width='118.8%25'%20height='122.5%25'%20filterUnits='objectBoundingBox'%20id='filter-1'%3e%3cfeOffset%20dx='0'%20dy='1'%20in='SourceAlpha'%20result='shadowOffsetOuter1'%3e%3c/feOffset%3e%3cfeGaussianBlur%20stdDeviation='1'%20in='shadowOffsetOuter1'%20result='shadowBlurOuter1'%3e%3c/feGaussianBlur%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'%20type='matrix'%20in='shadowBlurOuter1'%20result='shadowMatrixOuter1'%3e%3c/feColorMatrix%3e%3cfeMerge%3e%3cfeMergeNode%20in='shadowMatrixOuter1'%3e%3c/feMergeNode%3e%3cfeMergeNode%20in='SourceGraphic'%3e%3c/feMergeNode%3e%3c/feMerge%3e%3c/filter%3e%3crect%20id='path-2'%20x='0'%20y='0'%20width='48'%20height='40'%20rx='4'%3e%3c/rect%3e%3cfilter%20x='-4.2%25'%20y='-2.5%25'%20width='108.3%25'%20height='110.0%25'%20filterUnits='objectBoundingBox'%20id='filter-4'%3e%3cfeOffset%20dx='0'%20dy='1'%20in='SourceAlpha'%20result='shadowOffsetOuter1'%3e%3c/feOffset%3e%3cfeGaussianBlur%20stdDeviation='0.5'%20in='shadowOffsetOuter1'%20result='shadowBlurOuter1'%3e%3c/feGaussianBlur%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.1%200'%20type='matrix'%20in='shadowBlurOuter1'%3e%3c/feColorMatrix%3e%3c/filter%3e%3c/defs%3e%3cg%20id='配置面板'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='setting-copy-2'%20transform='translate(-1254.000000,%20-136.000000)'%3e%3cg%20id='Group-8'%20transform='translate(1167.000000,%200.000000)'%3e%3cg%20id='Group-5'%20filter='url(%23filter-1)'%20transform='translate(89.000000,%20137.000000)'%3e%3cmask%20id='mask-3'%20fill='white'%3e%3cuse%20xlink:href='%23path-2'%3e%3c/use%3e%3c/mask%3e%3cg%20id='Rectangle-18'%3e%3cuse%20fill='black'%20fill-opacity='1'%20filter='url(%23filter-4)'%20xlink:href='%23path-2'%3e%3c/use%3e%3cuse%20fill='%23F0F2F5'%20fill-rule='evenodd'%20xlink:href='%23path-2'%3e%3c/use%3e%3c/g%3e%3crect%20id='Rectangle-18'%20fill='%23FFFFFF'%20mask='url(%23mask-3)'%20x='0'%20y='0'%20width='16'%20height='40'%3e%3c/rect%3e%3crect%20id='Rectangle-11'%20fill='%23FFFFFF'%20mask='url(%23mask-3)'%20x='0'%20y='0'%20width='48'%20height='10'%3e%3c/rect%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",alt:"light"},null,-1)),"theme-light"===t(w)?(l(),s("div",ct,[f("i",dt,[(l(),s("svg",{viewBox:"64 64 896 896","data-icon":"check",width:"1em",height:"1em",fill:t(g),"aria-hidden":"true",focusable:"false",class:""},[...i[13]||(i[13]=[f("path",{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"},null,-1)])],8,ut))])])):p("",!0)])]),f("div",mt,[i[15]||(i[15]=f("span",null,"主题颜色",-1)),f("span",pt,[r(a,{modelValue:t(g),"onUpdate:modelValue":i[2]||(i[2]=e=>F(g)?g.value=e:null),predefine:t(y),onChange:j},null,8,["modelValue","predefine"])])]),r(o),i[26]||(i[26]=f("h3",{class:"drawer-title"},"系统布局配置",-1)),f("div",ht,[i[16]||(i[16]=f("span",null,"开启 TopNav",-1)),f("span",ft,[r(m,{modelValue:t(c).topNav,"onUpdate:modelValue":i[3]||(i[3]=e=>t(c).topNav=e),onChange:k,class:"drawer-switch"},null,8,["modelValue"])])]),f("div",vt,[i[17]||(i[17]=f("span",null,"开启 Tags-Views",-1)),f("span",gt,[r(m,{modelValue:t(c).tagsView,"onUpdate:modelValue":i[4]||(i[4]=e=>t(c).tagsView=e),class:"drawer-switch"},null,8,["modelValue"])])]),f("div",wt,[i[18]||(i[18]=f("span",null,"显示页签图标",-1)),f("span",xt,[r(m,{modelValue:t(c).tagsIcon,"onUpdate:modelValue":i[5]||(i[5]=e=>t(c).tagsIcon=e),disabled:!t(c).tagsView,class:"drawer-switch"},null,8,["modelValue","disabled"])])]),f("div",yt,[i[19]||(i[19]=f("span",null,"固定 Header",-1)),f("span",bt,[r(m,{modelValue:t(c).fixedHeader,"onUpdate:modelValue":i[6]||(i[6]=e=>t(c).fixedHeader=e),class:"drawer-switch"},null,8,["modelValue"])])]),f("div",kt,[i[20]||(i[20]=f("span",null,"显示 Logo",-1)),f("span",_t,[r(m,{modelValue:t(c).sidebarLogo,"onUpdate:modelValue":i[7]||(i[7]=e=>t(c).sidebarLogo=e),class:"drawer-switch"},null,8,["modelValue"])])]),f("div",jt,[i[21]||(i[21]=f("span",null,"动态标题",-1)),f("span",Ot,[r(m,{modelValue:t(c).dynamicTitle,"onUpdate:modelValue":i[8]||(i[8]=e=>t(c).dynamicTitle=e),onChange:_,class:"drawer-switch"},null,8,["modelValue"])])]),f("div",Ct,[i[22]||(i[22]=f("span",null,"底部版权",-1)),f("span",Vt,[r(m,{modelValue:t(c).footerVisible,"onUpdate:modelValue":i[9]||(i[9]=e=>t(c).footerVisible=e),class:"drawer-switch"},null,8,["modelValue"])])]),r(o),r(x,{type:"primary",plain:"",icon:"DocumentAdd",onClick:C},{default:d(()=>[...i[23]||(i[23]=[T("保存配置",-1)])]),_:1}),r(x,{plain:"",icon:"Refresh",onClick:V},{default:d(()=>[...i[24]||(i[24]=[T("重置配置",-1)])]),_:1})]),_:1},8,["modelValue"])}}},[["__scopeId","data-v-4d7a1c49"]]);var Bt=/* @__PURE__ */ie({__name:"ScrollPane",setup(e,{expose:t,emit:a}){const s=b(4),{proxy:o}=N(),r=i(()=>o.$refs.scrollContainer.$refs.wrapRef);function c(e){const t=e.wheelDelta||40*-e.deltaY,i=r.value;i.scrollLeft=i.scrollLeft+t/4}O(()=>{r.value.addEventListener("scroll",p,!0)}),I(()=>{r.value.removeEventListener("scroll",p)});const m=a,p=()=>{m("scroll")},f=W(),v=i(()=>f.visitedViews);return t({moveToTarget:function(e){const t=o.$refs.scrollContainer.$el.offsetWidth,i=r.value;let a=null,n=null;if(v.value.length>0&&(a=v.value[0],n=v.value[v.value.length-1]),a===e)i.scrollLeft=0;else if(n===e)i.scrollLeft=i.scrollWidth-t;else{const a=document.getElementsByClassName("tags-view-item"),n=v.value.findIndex(t=>t===e);let l=null,o=null;for(const e in a)"length"!==e&&Object.hasOwnProperty.call(a,e)&&(a[e].dataset.path===v.value[n-1].path&&(l=a[e]),a[e].dataset.path===v.value[n+1].path&&(o=a[e]));const r=o.offsetLeft+o.offsetWidth+s.value,c=l.offsetLeft-s.value;r>i.scrollLeft+t?i.scrollLeft=r-t:c<i.scrollLeft&&(i.scrollLeft=c)}}}),(e,t)=>{const i=n("el-scrollbar");return l(),u(i,{ref:"scrollContainer",vertical:!1,class:"scroll-container",onWheel:P(c,["prevent"])},{default:d(()=>[y(e.$slots,"default",{},void 0,!0)]),_:3},512)}}},[["__scopeId","data-v-99d1ac36"]]);const Mt=["onClick"];var Lt=/* @__PURE__ */ie({__name:"index",setup(e){const c=b(!1),v=b(0),g=b(0),w=b({}),x=b([]),y=b(null),_=q(),C=le(),M=oe(),L=i(()=>W().visitedViews),R=i(()=>Ne().routes),I=i(()=>A().theme),F=i(()=>A().tagsIcon);function N(e){return e.path===C.path}function H(e){return N(e)?{"background-color":I.value,"border-color":I.value}:{}}function z(e){return e.meta&&e.meta.affix}function E(){try{return"/index"===w.value.fullPath||w.value.fullPath===L.value[1].fullPath}catch(e){return!1}}function G(){try{return w.value.fullPath===L.value[L.value.length-1].fullPath}catch(e){return!1}}function $(e,t=""){let i=[];return e.forEach(e=>{if(e.meta&&e.meta.affix){const a=U(t+"/"+e.path);i.push({fullPath:a,path:a,name:e.name,meta:{...e.meta}})}if(e.children){const t=$(e.children,e.path);t.length>=1&&(i=[...i,...t])}}),i}function J(){const{name:e}=C;e&&W().addView(C)}function Q(){D(()=>{for(const e of L.value)e.path===C.path&&(y.value.moveToTarget(e),e.fullPath!==C.fullPath&&W().updateVisitedView(C))})}function Y(e){ee.closePage(e).then(({visitedViews:t})=>{N(e)&&te(t,e)})}function K(){ee.closeRightPage(w.value).then(e=>{e.find(e=>e.fullPath===C.fullPath)||te(e)})}function X(){ee.closeLeftPage(w.value).then(e=>{e.find(e=>e.fullPath===C.fullPath)||te(e)})}function Z(){M.push(w.value).catch(()=>{}),ee.closeOtherPage(w.value).then(()=>{Q()})}function te(e,t){const i=e.slice(-1)[0];i?M.push(i.fullPath):"Dashboard"===t.name?M.replace({path:"/redirect"+t.fullPath}):M.push("/")}function ie(){c.value=!1}function ae(){ie()}return a(C,()=>{J(),Q()}),a(c,e=>{e?document.body.addEventListener("click",ie):document.body.removeEventListener("click",ie)}),O(()=>{!function(){const e=$(R.value);x.value=e;for(const t of e)t.name&&W().addVisitedView(t)}(),J()}),(e,i)=>{const a=ye,b=n("close"),O=n("router-link"),M=n("refresh-right"),R=n("circle-close"),I=n("back"),q=n("right");return l(),s("div",{ref_key:"tagsView",ref:_,id:"tags-view-container",class:"tags-view-container"},[r(t(Bt),{ref_key:"scrollPaneRef",ref:y,class:"tags-view-wrapper",onScroll:ae},{default:d(()=>[(l(!0),s(k,null,j(t(L),e=>(l(),u(O,{key:e.path,"data-path":e.path,class:o([{active:N(e),"has-icon":t(F)},"tags-view-item"]),to:{path:e.path,query:e.query,fullPath:e.fullPath},style:S(H(e)),onMouseup:P(t=>z(e)?"":Y(e),["middle"]),onContextmenu:P(t=>function(e,t){const i=_.value.getBoundingClientRect().left,a=_.value.offsetWidth-105,n=t.clientX-i+15;g.value=n>a?a:n,v.value=t.clientY,c.value=!0,w.value=e}(e,t),["prevent"])},{default:d(()=>[t(F)&&e.meta&&e.meta.icon&&"#"!==e.meta.icon?(l(),u(a,{key:0,"icon-class":e.meta.icon},null,8,["icon-class"])):p("",!0),T(" "+m(e.title)+" ",1),z(e)?p("",!0):(l(),s("span",{key:1,onClick:P(t=>Y(e),["prevent","stop"])},[r(b,{class:"el-icon-close",style:{width:"1em",height:"1em","vertical-align":"middle"}})],8,Mt))]),_:2},1032,["data-path","class","to","style","onMouseup","onContextmenu"]))),128))]),_:1},512),V(f("ul",{style:S({left:t(g)+"px",top:t(v)+"px"}),class:"contextmenu"},[f("li",{onClick:i[0]||(i[0]=e=>{return i=t(w),ee.refreshPage(i),void(C.meta.link&&W().delIframeView(C));var i})},[r(M,{style:{width:"1em",height:"1em"}}),i[3]||(i[3]=T(" 刷新页面",-1))]),z(t(w))?p("",!0):(l(),s("li",{key:0,onClick:i[1]||(i[1]=e=>Y(t(w)))},[r(b,{style:{width:"1em",height:"1em"}}),i[4]||(i[4]=T(" 关闭当前",-1))])),f("li",{onClick:Z},[r(R,{style:{width:"1em",height:"1em"}}),i[5]||(i[5]=T(" 关闭其他",-1))]),E()?p("",!0):(l(),s("li",{key:1,onClick:X},[r(I,{style:{width:"1em",height:"1em"}}),i[6]||(i[6]=T(" 关闭左侧",-1))])),G()?p("",!0):(l(),s("li",{key:2,onClick:K},[r(q,{style:{width:"1em",height:"1em"}}),i[7]||(i[7]=T(" 关闭右侧",-1))])),f("li",{onClick:i[2]||(i[2]=e=>{return i=t(w),void ee.closeAllPage().then(({visitedViews:e})=>{x.value.some(e=>e.path===C.path)||te(e,i)});var i})},[r(R,{style:{width:"1em",height:"1em"}}),i[8]||(i[8]=T(" 全部关闭",-1))])],4),[[B,t(c)]])],512)}}},[["__scopeId","data-v-913310d7"]]);var Rt=/* @__PURE__ */ie({__name:"index",setup(e){const n=A(),c=i(()=>n.theme);i(()=>n.sideTheme);const d=i(()=>ae().sidebar),m=i(()=>ae().device),v=i(()=>n.tagsView),g=i(()=>n.fixedHeader),w=i(()=>({hideSidebar:!d.value.opened,openSidebar:d.value.opened,withoutAnimation:d.value.withoutAnimation,mobile:"mobile"===m.value})),{width:x}=te();function y(){ae().closeSideBar({withoutAnimation:!1})}a(()=>m.value,()=>{"mobile"===m.value&&d.value.opened&&ae().closeSideBar({withoutAnimation:!1})}),M(()=>{x.value-1<992?(ae().toggleDevice("mobile"),ae().closeSideBar({withoutAnimation:!0})):ae().toggleDevice("desktop")});const b=H("settingRef");function k(){b.value.openSetting()}return(e,i)=>(l(),s("div",{class:o([t(w),"app-wrapper"]),style:S({"--current-color":t(c)})},["mobile"===t(m)&&t(d).opened?(l(),s("div",{key:0,class:"drawer-bg",onClick:y})):p("",!0),t(d).hide?p("",!0):(l(),u(Ae,{key:1,class:"sidebar-container"})),f("div",{class:o([{hasTagsView:t(v),sidebarHide:t(d).hide},"main-container"])},[f("div",{class:o({"fixed-header":t(g)})},[r(t(nt),{onSetLayout:k}),t(v)?(l(),u(t(Lt),{key:0})):p("",!0)],2),r(t(Je)),r(t(St),{ref_key:"settingRef",ref:b},null,512)],2)],6))}},[["__scopeId","data-v-f4cdcce4"]]),Pt=/* @__PURE__ */Object.freeze({__proto__:null,default:Rt});export{ye as _,Te as a,ze as b,Ie as c,Pe as d,Re as e,Le as f,Me as g,Pt as h,Rt as i,Ne as u};
@@ -1 +1 @@
1
- import{d as e}from"./dayjs.min-ryYW0VOo.js";import{ref as a,reactive as l,toRefs as d,resolveComponent as t,resolveDirective as o,createElementBlock as r,openBlock as u,createVNode as n,withDirectives as i,unref as p,withCtx as s,createBlock as c,createCommentVNode as m,isRef as f,Fragment as v,renderList as y,createTextVNode as Y}from"vue";import{G as _,d as w}from"./dict-PRQalw5b.js";import{g as k,a as g,b as V,c as b}from"./taskfx-BtfTog8F.js";import{g as M}from"./tasktype-CGwdFfYE.js";import{g as z}from"./regions-B532MbGT.js";import{g as D}from"./Dept-BrNZrI_Y.js";import{_ as x}from"./lv-DL2oi67J.js";const U={class:"app-container"};var $=/* @__PURE__ */x({__name:"index",setup(x){const $=e;e.en.weekStart=1;const j=a("year"),S=a(!1),q=a([]),O=a([]),P=a(),B=a(null),C=l({queryParams:{areaid_sign:1,deptid_sign:1}}),{queryParams:E}=d(C),L=a($().format("YYYY-MM")),N=a($().startOf("week").format("YYYY-MM-DD")),R=a($().format("YYYY-MM-DD")),G=a($().format("YYYY"));function I(){S.value=!0;const e=w({..."year"===j.value?{year:G.value}:"month"===j.value?{month:L.value}:"week"===j.value?{weekday:N.value}:{day:R.value},...E.value});let a;switch(j.value){case"year":a=b(e);break;case"month":a=V(e);break;case"week":a=g(e);break;case"day":a=k(e)}a.then(e=>{if(e&&0!=e.length)if(B.value){const a=e.map(e=>({...e,zs:e[`${B.value}`]?.zs||e[`zs${B.value}`]||0,ycwdd:e[`${B.value}`]?.ycwdd||e[`ycwdd${B.value}`]||0,ycydd:e[`${B.value}`]?.ycydd||e[`ycydd${B.value}`]||0,zcwdd:e[`${B.value}`]?.zcwdd||e[`zcwdd${B.value}`]||0,zcydd:e[`${B.value}`]?.zcydd||e[`zcydd${B.value}`]||0}));q.value=W(a)}else q.value=W(e);else q.value=[];S.value=!1})}function W(e){const a={},l=[];e.forEach(e=>{a[e.areaid]={...e,children:[]}});const d=Math.min(...e.map(e=>e.area_parentid));return e.forEach(e=>{const t=a[e.areaid];e.area_parentid==d?l.push(t):a[e.area_parentid]&&a[e.area_parentid].children.push(t)}),l}function A(){I()}function F(){E.value.areaid_sign=1,E.value.deptid_sign=1,L.value=$().format("YYYY-MM"),N.value=$().startOf("week").format("YYYY-MM-DD"),R.value=$().format("YYYY-MM-DD"),G.value=$().format("YYYY"),B.value=null,_(P.value),I()}async function H(e,a){const l=e.data.areaid?e.data.areaid:void 0,d=await z({pageNo:1,pageSize:1e4,area_parentid:l}),t=d.records?.map(e=>({...e,leaf:!e.area_isexistschild}));a(t)}async function J(e,a){const l=e.data.deptid?e.data.deptid:null,d=await D({pageNo:1,pageSize:1e4,dept_parentid:l}),t=d.records?.map(e=>({...e,leaf:!e.dept_isexistschild}));a(t)}return M({pageSize:1e4}).then(e=>{e.records&&0!=e.records.length?O.value=e.records:O.value=[]}),I(),(e,a)=>{const l=t("el-tree-select"),d=t("el-checkbox"),_=t("el-form-item"),w=t("el-date-picker"),k=t("el-option"),g=t("el-select"),V=t("el-button"),b=t("el-form"),M=t("el-table-column"),z=t("el-table"),D=o("loading");return u(),r("div",U,[n(b,{model:p(E),ref_key:"queryRef",ref:P,inline:!0},{default:s(()=>[n(_,{label:"行政区划",prop:"areaid",class:"areadeptSearchBox"},{default:s(()=>[n(l,{modelValue:p(E).areaid,"onUpdate:modelValue":a[0]||(a[0]=e=>p(E).areaid=e),"node-key":"areaid",lazy:"","check-strictly":"",load:H,props:{label:"area_name",children:"children",isLeaf:"leaf"},clearable:"",style:{width:"250px"},placeholder:"请选择行政区划"},null,8,["modelValue"]),n(d,{modelValue:p(E).areaid_sign,"onUpdate:modelValue":a[1]||(a[1]=e=>p(E).areaid_sign=e),"true-value":1,"false-value":0,label:"含下级"},null,8,["modelValue"])]),_:1}),n(_,{label:"部门",prop:"deptid",class:"areadeptSearchBox"},{default:s(()=>[n(l,{modelValue:p(E).deptid,"onUpdate:modelValue":a[2]||(a[2]=e=>p(E).deptid=e),"node-key":"deptid",lazy:"","check-strictly":"",load:J,props:{label:"dept_name",children:"children",isLeaf:"leaf"},clearable:"",style:{width:"250px"},placeholder:"请选择部门"},null,8,["modelValue"]),n(d,{modelValue:p(E).deptid_sign,"onUpdate:modelValue":a[3]||(a[3]=e=>p(E).deptid_sign=e),"true-value":1,"false-value":0,label:"含下级"},null,8,["modelValue"])]),_:1}),"year"===p(j)?(u(),c(_,{key:0},{default:s(()=>[n(w,{modelValue:p(G),"onUpdate:modelValue":a[4]||(a[4]=e=>f(G)?G.value=e:null),type:"year","value-format":"YYYY",placeholder:"请选择年"},null,8,["modelValue"])]),_:1})):m("",!0),"month"===p(j)?(u(),c(_,{key:1},{default:s(()=>[n(w,{modelValue:p(L),"onUpdate:modelValue":a[5]||(a[5]=e=>f(L)?L.value=e:null),type:"month","value-format":"YYYY-MM",placeholder:"请选择月份"},null,8,["modelValue"])]),_:1})):m("",!0),"week"===p(j)?(u(),c(_,{key:2},{default:s(()=>[n(w,{modelValue:p(N),"onUpdate:modelValue":a[6]||(a[6]=e=>f(N)?N.value=e:null),type:"week",format:"YYYY-ww周","value-format":"YYYY-MM-DD","picker-options":{firstDayOfWeek:1},placeholder:"请选择周"},null,8,["modelValue"])]),_:1})):m("",!0),"day"===p(j)?(u(),c(_,{key:3},{default:s(()=>[n(w,{modelValue:p(R),"onUpdate:modelValue":a[7]||(a[7]=e=>f(R)?R.value=e:null),type:"date","value-format":"YYYY-MM-DD",placeholder:"请选择日期"},null,8,["modelValue"])]),_:1})):m("",!0),n(_,null,{default:s(()=>[n(g,{modelValue:p(B),"onUpdate:modelValue":a[8]||(a[8]=e=>f(B)?B.value=e:null),placeholder:"请选择类型",clearable:"",style:{width:"200px"}},{default:s(()=>[(u(!0),r(v,null,y(p(O),e=>(u(),c(k,{key:e.typeid,label:e.type_name,value:e.type_no},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),n(_,null,{default:s(()=>[n(V,{type:"primary",icon:"Search",onClick:A},{default:s(()=>[...a[9]||(a[9]=[Y("搜索",-1)])]),_:1}),n(V,{icon:"Refresh",onClick:F},{default:s(()=>[...a[10]||(a[10]=[Y("重置",-1)])]),_:1})]),_:1})]),_:1},8,["model"]),i((u(),c(z,{border:"","row-key":"areaid",data:p(q),"default-expand-all":""},{default:s(()=>[n(M,{label:"行政区划",align:"center",prop:"area_name","show-overflow-tooltip":!0}),n(M,{label:"总数",align:"center",prop:"zs","show-overflow-tooltip":!0}),n(M,{label:"异常未到达",align:"center",prop:"ycwdd","show-overflow-tooltip":!0}),n(M,{label:"异常已到达",align:"center",prop:"ycydd","show-overflow-tooltip":!0}),n(M,{label:"正常未到达",align:"center",prop:"zcwdd","show-overflow-tooltip":!0}),n(M,{label:"正常已到达",align:"center",prop:"zcydd","show-overflow-tooltip":!0})]),_:1},8,["data"])),[[D,p(S)]])])}}},[["__scopeId","data-v-22188a68"]]);export{$ as default};
1
+ import{d as e}from"./dayjs.min-Ctgn_bP1.js";import{ref as a,reactive as l,toRefs as d,resolveComponent as t,resolveDirective as o,createElementBlock as r,openBlock as u,createVNode as n,withDirectives as i,unref as p,withCtx as s,createBlock as c,createCommentVNode as m,isRef as f,Fragment as v,renderList as y,createTextVNode as Y}from"vue";import{G as _,d as w}from"./dict-DctgteYk.js";import{g as k,a as g,b as V,c as b}from"./taskfx-B0H7YWvy.js";import{g as M}from"./tasktype-DadVnKcK.js";import{g as z}from"./regions-Deb_EzJc.js";import{g as D}from"./Dept-U5NSeIas.js";import{_ as x}from"./lv-DL2oi67J.js";const U={class:"app-container"};var $=/* @__PURE__ */x({__name:"index",setup(x){const $=e;e.en.weekStart=1;const j=a("year"),S=a(!1),q=a([]),O=a([]),P=a(),B=a(null),C=l({queryParams:{areaid_sign:1,deptid_sign:1}}),{queryParams:E}=d(C),L=a($().format("YYYY-MM")),N=a($().startOf("week").format("YYYY-MM-DD")),R=a($().format("YYYY-MM-DD")),G=a($().format("YYYY"));function I(){S.value=!0;const e=w({..."year"===j.value?{year:G.value}:"month"===j.value?{month:L.value}:"week"===j.value?{weekday:N.value}:{day:R.value},...E.value});let a;switch(j.value){case"year":a=b(e);break;case"month":a=V(e);break;case"week":a=g(e);break;case"day":a=k(e)}a.then(e=>{if(e&&0!=e.length)if(B.value){const a=e.map(e=>({...e,zs:e[`${B.value}`]?.zs||e[`zs${B.value}`]||0,ycwdd:e[`${B.value}`]?.ycwdd||e[`ycwdd${B.value}`]||0,ycydd:e[`${B.value}`]?.ycydd||e[`ycydd${B.value}`]||0,zcwdd:e[`${B.value}`]?.zcwdd||e[`zcwdd${B.value}`]||0,zcydd:e[`${B.value}`]?.zcydd||e[`zcydd${B.value}`]||0}));q.value=W(a)}else q.value=W(e);else q.value=[];S.value=!1})}function W(e){const a={},l=[];e.forEach(e=>{a[e.areaid]={...e,children:[]}});const d=Math.min(...e.map(e=>e.area_parentid));return e.forEach(e=>{const t=a[e.areaid];e.area_parentid==d?l.push(t):a[e.area_parentid]&&a[e.area_parentid].children.push(t)}),l}function A(){I()}function F(){E.value.areaid_sign=1,E.value.deptid_sign=1,L.value=$().format("YYYY-MM"),N.value=$().startOf("week").format("YYYY-MM-DD"),R.value=$().format("YYYY-MM-DD"),G.value=$().format("YYYY"),B.value=null,_(P.value),I()}async function H(e,a){const l=e.data.areaid?e.data.areaid:void 0,d=await z({pageNo:1,pageSize:1e4,area_parentid:l}),t=d.records?.map(e=>({...e,leaf:!e.area_isexistschild}));a(t)}async function J(e,a){const l=e.data.deptid?e.data.deptid:null,d=await D({pageNo:1,pageSize:1e4,dept_parentid:l}),t=d.records?.map(e=>({...e,leaf:!e.dept_isexistschild}));a(t)}return M({pageSize:1e4}).then(e=>{e.records&&0!=e.records.length?O.value=e.records:O.value=[]}),I(),(e,a)=>{const l=t("el-tree-select"),d=t("el-checkbox"),_=t("el-form-item"),w=t("el-date-picker"),k=t("el-option"),g=t("el-select"),V=t("el-button"),b=t("el-form"),M=t("el-table-column"),z=t("el-table"),D=o("loading");return u(),r("div",U,[n(b,{model:p(E),ref_key:"queryRef",ref:P,inline:!0},{default:s(()=>[n(_,{label:"行政区划",prop:"areaid",class:"areadeptSearchBox"},{default:s(()=>[n(l,{modelValue:p(E).areaid,"onUpdate:modelValue":a[0]||(a[0]=e=>p(E).areaid=e),"node-key":"areaid",lazy:"","check-strictly":"",load:H,props:{label:"area_name",children:"children",isLeaf:"leaf"},clearable:"",style:{width:"250px"},placeholder:"请选择行政区划"},null,8,["modelValue"]),n(d,{modelValue:p(E).areaid_sign,"onUpdate:modelValue":a[1]||(a[1]=e=>p(E).areaid_sign=e),"true-value":1,"false-value":0,label:"含下级"},null,8,["modelValue"])]),_:1}),n(_,{label:"部门",prop:"deptid",class:"areadeptSearchBox"},{default:s(()=>[n(l,{modelValue:p(E).deptid,"onUpdate:modelValue":a[2]||(a[2]=e=>p(E).deptid=e),"node-key":"deptid",lazy:"","check-strictly":"",load:J,props:{label:"dept_name",children:"children",isLeaf:"leaf"},clearable:"",style:{width:"250px"},placeholder:"请选择部门"},null,8,["modelValue"]),n(d,{modelValue:p(E).deptid_sign,"onUpdate:modelValue":a[3]||(a[3]=e=>p(E).deptid_sign=e),"true-value":1,"false-value":0,label:"含下级"},null,8,["modelValue"])]),_:1}),"year"===p(j)?(u(),c(_,{key:0},{default:s(()=>[n(w,{modelValue:p(G),"onUpdate:modelValue":a[4]||(a[4]=e=>f(G)?G.value=e:null),type:"year","value-format":"YYYY",placeholder:"请选择年"},null,8,["modelValue"])]),_:1})):m("",!0),"month"===p(j)?(u(),c(_,{key:1},{default:s(()=>[n(w,{modelValue:p(L),"onUpdate:modelValue":a[5]||(a[5]=e=>f(L)?L.value=e:null),type:"month","value-format":"YYYY-MM",placeholder:"请选择月份"},null,8,["modelValue"])]),_:1})):m("",!0),"week"===p(j)?(u(),c(_,{key:2},{default:s(()=>[n(w,{modelValue:p(N),"onUpdate:modelValue":a[6]||(a[6]=e=>f(N)?N.value=e:null),type:"week",format:"YYYY-ww周","value-format":"YYYY-MM-DD","picker-options":{firstDayOfWeek:1},placeholder:"请选择周"},null,8,["modelValue"])]),_:1})):m("",!0),"day"===p(j)?(u(),c(_,{key:3},{default:s(()=>[n(w,{modelValue:p(R),"onUpdate:modelValue":a[7]||(a[7]=e=>f(R)?R.value=e:null),type:"date","value-format":"YYYY-MM-DD",placeholder:"请选择日期"},null,8,["modelValue"])]),_:1})):m("",!0),n(_,null,{default:s(()=>[n(g,{modelValue:p(B),"onUpdate:modelValue":a[8]||(a[8]=e=>f(B)?B.value=e:null),placeholder:"请选择类型",clearable:"",style:{width:"200px"}},{default:s(()=>[(u(!0),r(v,null,y(p(O),e=>(u(),c(k,{key:e.typeid,label:e.type_name,value:e.type_no},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),n(_,null,{default:s(()=>[n(V,{type:"primary",icon:"Search",onClick:A},{default:s(()=>[...a[9]||(a[9]=[Y("搜索",-1)])]),_:1}),n(V,{icon:"Refresh",onClick:F},{default:s(()=>[...a[10]||(a[10]=[Y("重置",-1)])]),_:1})]),_:1})]),_:1},8,["model"]),i((u(),c(z,{border:"","row-key":"areaid",data:p(q),"default-expand-all":""},{default:s(()=>[n(M,{label:"行政区划",align:"center",prop:"area_name","show-overflow-tooltip":!0}),n(M,{label:"总数",align:"center",prop:"zs","show-overflow-tooltip":!0}),n(M,{label:"异常未到达",align:"center",prop:"ycwdd","show-overflow-tooltip":!0}),n(M,{label:"异常已到达",align:"center",prop:"ycydd","show-overflow-tooltip":!0}),n(M,{label:"正常未到达",align:"center",prop:"zcwdd","show-overflow-tooltip":!0}),n(M,{label:"正常已到达",align:"center",prop:"zcydd","show-overflow-tooltip":!0})]),_:1},8,["data"])),[[D,p(S)]])])}}},[["__scopeId","data-v-22188a68"]]);export{$ as default};
@@ -1 +1 @@
1
- import{ref as e,createElementBlock as o,openBlock as a,createElementVNode as t,renderSlot as r,withModifiers as s}from"vue";import{A as n}from"./index-WJoZQPpQ.js";import l from"color";import{C as i,az as p}from"./dict-PRQalw5b.js";import{_ as m}from"./lv-DL2oi67J.js";const u=["AMap.DistrictSearch","AMap.MouseTool","AMap.CircleEditor","AMap.PolygonEditor","AMap.Geocoder","AMap.ElasticMarker","AMap.Map3D","AMap.GraspRoad","AMap.Driving","AMap.Walking","AMap.Riding","AMap.TruckDriving","AMap.Transfer","AMap.Geolocation","AMap.CustomLayer","AMap.MoveAnimation","AMap.AutoComplete"];class c{_syamap;_key="";_version;_plugins;_mouseTool;_markResult;_polylineResult;_polygonResult;_polygoneditor;_geoLocation;polygonLevel=10;constructor({version:e="2.0",plugins:o=u,key:a=""}={key:""}){this._version=e,this._key=a||"",Number(e)>=2?o.push("AMap.AutoComplete"):o.push("AMap.Autocomplete"),this._plugins=o}creatAMap(e=[]){if(window.AMap)return Promise.resolve(window.AMap);let o={key:this._key,version:this._version,plugins:this._plugins,AMapUI:{version:"1.1",plugins:e||[]}};try{return new Promise((e,a)=>{n.load(o).then(o=>{e(o)}).catch(e=>{console.error(e)})})}catch(a){console.warn(a)}}async amapLngLat(e,o){return new window.AMap.LngLat(e,o)}async amaplocation(){return this._geoLocation&&this._geoLocation.hasOwnProperty("CLASS_NAME")&&"AMap.Geolocation"===this._geoLocation.CLASS_NAME||(this._geoLocation=new window.AMap.Geolocation({showMarker:!1,panToLocation:!0,zoomToAccuracy:!1,getCityWhenFail:!0})),Promise.resolve(this._geoLocation)}amapGeocontrol(e){this.amaplocation().then(o=>{e&&this._syamap.addControl(o)})}computedPointAddress(e){return new Promise((o,a)=>{this.getposition(o,a,e)})}async getposition(e,o,a){const t=new window.AMap.Geocoder;try{t.getAddress(a,(o,a)=>{if(console.log("根据经纬度查询地址:",o,a),"complete"===o&&a.regeocode){const o=a.regeocode.formattedAddress;e(o)}else console.error("根据经纬度查询地址失败")})}catch(r){o(r)}}drawHotzoneByData(e){let o;return e&&e.grid&&(o=this.drawPolygonByData(e.grid)),o}drawGridByData(e){let o,a;return e&&e.grid&&(o=this.drawPolygonByData(e.grid)),e&&e.name&&e.position&&(a=this.drawTextByData(e.name,e.position,e.namestyle,e.namestyle.bubble)),o.Text=a,o.on("mouseover",o=>{this.mouseover(o.target,e.grid)}),o.on("mouseout",o=>{this.mouseout(o.target,e.grid)}),o.Text.eachOverlay(a=>{a.on("mouseover",a=>{this.mouseover(o,e.grid)}),a.on("mouseout",a=>{this.mouseout(o,e.grid)})}),o}mouseover(e,o){e.setOptions({fillColor:o.fillColor?l(o.fillColor).saturate(.5).hex():"3e0",strokeColor:o.strokeColor?l(o.strokeColor).saturate(.5).hex():"3e0",fillOpacity:o.fillOpacity?Number(o.fillOpacity)+.2>1?1:Number(o.fillOpacity)+.2:.25,strokeOpacity:o.strokeOpacity?Number(o.strokeOpacity)+.2>1?1:Number(o.strokeOpacity)+.2:.7})}mouseout(e,o){e.setOptions({fillColor:o.fillColor,strokeColor:o.strokeColor,fillOpacity:o.fillOpacity,strokeOpacity:o.strokeOpacity})}drawTextByData(e,o,a,t){""===e&&console.warn("name是空字符串"),o.type&&o.coordinates||console.warn("网格名字有问题");let r=new window.AMap.OverlayGroup;return"Point"===o.type?r.addOverlay(new window.AMap.Text({text:e,anchor:"center",position:i.WGS84ToGCJ02(...o.coordinates),draggable:!1,bubble:t,style:a})):"MultiPoint"===o.type&&o.coordinates.forEach(o=>{r.addOverlay(new window.AMap.Text({text:e,anchor:"center",position:i.WGS84ToGCJ02(...o),draggable:!1,style:a}))}),r}drawPolygonByData(e){return e&&e.hasOwnProperty("path")||console.warn("没有多边形路径"),new window.AMap.Polygon(e)}mousetoolClose(e){this._mouseTool&&this._mouseTool.hasOwnProperty("CLASS_NAME")&&"AMap.MouseTool"===this._mouseTool.CLASS_NAME?(this._mouseTool.clearEvents(),this._mouseTool&&this._mouseTool.MeasureAreaTemp&&this._syamap.remove(this._mouseTool.MeasureAreaTemp.obj),this._mouseTool&&this._mouseTool.polygonTemp&&this._syamap.remove(this._mouseTool.polygonTemp.obj),this._mouseTool&&this._mouseTool.polylineTemp&&this._syamap.remove(this._mouseTool.polylineTemp.obj),e&&void 0!==e?(this._mouseTool.close(!0),this._markResult&&this._markResult.clearOverlays(),this._polylineResult&&this._polylineResult.clearOverlays()):this._mouseTool.close()):console.warn("未检测到鼠标工具!")}makeMouseTool(e=this._syamap,o){if(e)return new Promise((a,t)=>{this._mouseTool&&this._mouseTool.hasOwnProperty("CLASS_NAME")&&"AMap.MouseTool"===this._mouseTool.CLASS_NAME?(this.mousetoolClose(o),a(this._mouseTool)):(this._mouseTool=new window.AMap.MouseTool(e),a(this._mouseTool))});console.warn("没有地图对象")}amapsetMark(e){e.map||(e.map=this._syamap);let o=Object.assign({},{zIndex:105},e.option);isNaN(Number(e.maxnum))||Number(e.maxnum)<1?e.maxnum=1:e.maxnum=Number(e.maxnum)>100?100:Number(e.maxnum),1===e.maxnum&&(o=Object.assign(o,{draggable:!0})),this.makeMouseTool(e.map,e.clear).then(a=>{a.marker(o),a.on("draw",o=>{if(this._markResult||(this._markResult=new window.AMap.OverlayGroup),1===e.maxnum&&o.obj.on("dragend",o=>{e.callback&&e.callback(this._markResult)}),1===e.maxnum&&this._markResult.getOverlays().length>0)e.map.remove(this._markResult.getOverlays()),this._markResult.clearOverlays();else if(this._markResult.getOverlays().length>e.maxnum-1)return"function"==typeof e.errback?e.errback({errorCode:"001"}):console.warn("标点异常回调is not a function!"),console.warn("可标点数量已达上限"),e.map.remove(o.obj),void(e.callback&&e.callback(this._markResult));this._markResult.addOverlay(o.obj),e.callback&&e.callback(this._markResult)})})}amapsetPolygon(e){e||(e={}),e.map||(e.map=this._syamap),this.makeMouseTool(e.map,e.clear).then(o=>{o.polygon({zIndex:105}),o.on("draw",o=>{this._polygonResult||(this._polygonResult=new window.AMap.OverlayGroup),this._polygonResult.addOverlay(o.obj),e.callback&&e.callback(o.obj,this._polygonResult)})})}amapsetPolyline(e){e||(e={}),e.map||(e.map=this._syamap),this.makeMouseTool(e.map,e.clear).then(o=>{o.polyline({zIndex:105}),o.on("draw",o=>{this._polylineResult||(this._polylineResult=new window.AMap.OverlayGroup),this._polylineResult.addOverlay(o.obj),e.callback&&e.callback(this._polylineResult)})})}amapRule(e,o=this._syamap){if(!o)return console.warn("没有地图对象");this.makeMouseTool(o,e).then(e=>{e.hasOwnProperty("ruler")&&null!==e.ruler?e.hasOwnProperty("ruler")&&null!==e.ruler&&e.ruler.turnOn():e.rule({lineOptions:{zIndex:200,strokeColor:"#000000"}})})}amapmeasureArea(e,o=this._syamap){if(!o)return console.warn("没有地图对象");this.makeMouseTool(o,e).then(e=>{e.measureArea({strokeColor:"#80d8ff",fillColor:"#80d8ff",fillOpacity:.3,zIndex:200})})}async creatPolygonEditor(){return this._polygoneditor||(this._polygoneditor=new window.AMap.PolygonEditor(this._syamap)),this._polygoneditor}getTheAreaCenter(e){let o=e.length,a=0,t=0,r=0;e.forEach(e=>{let o,s,n,l=e.lng*Math.PI/180,i=e.lat*Math.PI/180;o=Math.cos(i)*Math.cos(l),s=Math.cos(i)*Math.sin(l),n=Math.sin(i),a+=o,t+=s,r+=n}),a/=o,t/=o,r/=o;let s=Math.atan2(t,a),n=Math.sqrt(a*a+t*t),l=Math.atan2(r,n);return[180*s/Math.PI,180*l/Math.PI]}getCurrentPosition(e){this.amaplocation().then(o=>{o.getCurrentPosition((o,a)=>{"complete"===o?e(a.position):console.warn(`%c ${a.info}`," color:chartreuse;font-size:20px",a.message)})})}async drawMarkerByData(e){if(e.map||(e.map=this._syamap),!e.map)return void console.warn("没有地图对象");let o=null,a=null;console.log("option.data",e.data);for(const t of Object.keys(e.data))if(console.log("option.data",e.data),t.indexOf("_x")===t.length-2||"longitude"===t?o=e.data[t]:t.indexOf("_y")!==t.length-2&&"latitude"!==t||(a=e.data[t]),o&&a)break;if(null!==o&&null!==a&&!isNaN(Number(o))&&!isNaN(Number(a))&&Number(o)&&Number(a)){return new window.AMap.Marker({map:e.map,position:await this.amapLngLat(o,a)})}console.warn("点位坐标数据出错111111")}async drawMarkerByDataForWf(e){if(e.map||(e.map=this._syamap),!e.map)return void console.warn("没有地图对象");let o=null,a=null;for(const t of Object.keys(e.data))if(t.indexOf("_x")===t.length-2?o=e.data[t]:t.indexOf("_y")===t.length-2&&(a=e.data[t]),o&&a)break;if(null!==o&&null!==a&&!isNaN(Number(o))&&!isNaN(Number(a))&&Number(o)&&Number(a)){return new window.AMap.Marker({map:e.map,position:await this.amapLngLat(o,a),icon:e.icon,extData:e.extData})}console.warn("点位坐标数据出错")}async drawCircleByDataForWf(e){if(e.map||(e.map=this._syamap),!e.map)return void console.warn("没有地图对象");let o=null,a=null;for(const t of Object.keys(e.data))if(t.indexOf("_x")===t.length-2?o=e.data[t]:t.indexOf("_y")===t.length-2&&(a=e.data[t]),o&&a)break;if(null!==o&&null!==a&&!isNaN(Number(o))&&!isNaN(Number(a))&&Number(o)&&Number(a)){const t=new window.AMap.Circle({center:await this.amapLngLat(o,a),radius:0,strokeColor:"#66cdaa",strokeOpacity:0,strokeWeight:3,fillColor:"#66cdaa",fillOpacity:.3});return e.map.add(t),t}console.warn("点位坐标数据出错")}async drawTextByDataWorkFlow(e){if(e.map||(e.map=this._syamap),!e.map)return void console.warn("没有地图对象");let o=null,a=null;for(const t of Object.keys(e.data))if(t.indexOf("_x")===t.length-2?o=e.data[t]:t.indexOf("_y")===t.length-2&&(a=e.data[t]),o&&a)break;if(null!==o&&null!==a&&!isNaN(Number(o))&&!isNaN(Number(a))&&Number(o)&&Number(a))return new window.AMap.Text({position:[o,a],text:" ",anchor:"center",zIndex:11,style:e.style,extData:e.extData});console.warn("点位坐标数据出错")}set syamap(e){this._syamap=e}get syamap(){return this._syamap}get mouseTool(){return this._mouseTool}get geoLocation(){return this._geoLocation}get markResult(){return this._markResult}get polylineResult(){return this._polylineResult}get polygonEditor(){return this._polygoneditor}}const y={class:"amap-body",style:{height:"100%",position:"relative",background:"#091f3a"}},d=["id"];var g=/* @__PURE__ */m({__name:"index",props:{id:{type:String,default:"container"},viewMode:{type:String,default:"2D"},mapStyle:String,banben:{type:String,default:"2.0"},locationbutton:!1,currentlocation:!1},setup(n,{emit:l}){var i=null;const m=e(null),u=n,g=l;return p(["map-center","map-key"]).then(e=>{m.value=e,(i=new c({version:u.banben,key:JSON.parse(m.value["map-key"]).key})).creatAMap().then(()=>{try{let e=new AMap.Map(document.querySelector(`#${u.id}`),{resizeEnable:!0,showIndoorMap:!1,rotateEnable:!0,pitchEnable:!0,pitch:2,viewMode:u.viewMode,mapStyle:u.mapStyle,animateEnable:!0,zoom:16.94,zooms:[2,18],layers:[]});i.syamap=e,e.on("complete",({type:e})=>{i.amapGeocontrol(u.locationbutton),u.currentlocation?i.getCurrentPosition(e=>{i.syamap.setCenter(e),g("amapcomplete",i)}):(i.syamap.setCenter(JSON.parse(m.value["map-center"])),g("amapcomplete",i))})}catch(e){}}).catch(e=>{})}),(e,l)=>(a(),o("div",y,[t("div",{onContextmenu:l[0]||(l[0]=s(()=>{},["prevent"])),id:n.id,style:{height:"100%",margin:"0 auto","max-width":"7200px"}},null,40,d),r(e.$slots,"topleft",{},void 0,!0)]))}},[["__scopeId","data-v-d16e1181"]]);export{g as _};
1
+ import{ref as e,createElementBlock as o,openBlock as a,createElementVNode as t,renderSlot as r,withModifiers as s}from"vue";import{A as n}from"./index-CD5E8008.js";import l from"color";import{C as i,az as p}from"./dict-DctgteYk.js";import{_ as m}from"./lv-DL2oi67J.js";const u=["AMap.DistrictSearch","AMap.MouseTool","AMap.CircleEditor","AMap.PolygonEditor","AMap.Geocoder","AMap.ElasticMarker","AMap.Map3D","AMap.GraspRoad","AMap.Driving","AMap.Walking","AMap.Riding","AMap.TruckDriving","AMap.Transfer","AMap.Geolocation","AMap.CustomLayer","AMap.MoveAnimation","AMap.AutoComplete"];class c{_syamap;_key="";_version;_plugins;_mouseTool;_markResult;_polylineResult;_polygonResult;_polygoneditor;_geoLocation;polygonLevel=10;constructor({version:e="2.0",plugins:o=u,key:a=""}={key:""}){this._version=e,this._key=a||"",Number(e)>=2?o.push("AMap.AutoComplete"):o.push("AMap.Autocomplete"),this._plugins=o}creatAMap(e=[]){if(window.AMap)return Promise.resolve(window.AMap);let o={key:this._key,version:this._version,plugins:this._plugins,AMapUI:{version:"1.1",plugins:e||[]}};try{return new Promise((e,a)=>{n.load(o).then(o=>{e(o)}).catch(e=>{console.error(e)})})}catch(a){console.warn(a)}}async amapLngLat(e,o){return new window.AMap.LngLat(e,o)}async amaplocation(){return this._geoLocation&&this._geoLocation.hasOwnProperty("CLASS_NAME")&&"AMap.Geolocation"===this._geoLocation.CLASS_NAME||(this._geoLocation=new window.AMap.Geolocation({showMarker:!1,panToLocation:!0,zoomToAccuracy:!1,getCityWhenFail:!0})),Promise.resolve(this._geoLocation)}amapGeocontrol(e){this.amaplocation().then(o=>{e&&this._syamap.addControl(o)})}computedPointAddress(e){return new Promise((o,a)=>{this.getposition(o,a,e)})}async getposition(e,o,a){const t=new window.AMap.Geocoder;try{t.getAddress(a,(o,a)=>{if(console.log("根据经纬度查询地址:",o,a),"complete"===o&&a.regeocode){const o=a.regeocode.formattedAddress;e(o)}else console.error("根据经纬度查询地址失败")})}catch(r){o(r)}}drawHotzoneByData(e){let o;return e&&e.grid&&(o=this.drawPolygonByData(e.grid)),o}drawGridByData(e){let o,a;return e&&e.grid&&(o=this.drawPolygonByData(e.grid)),e&&e.name&&e.position&&(a=this.drawTextByData(e.name,e.position,e.namestyle,e.namestyle.bubble)),o.Text=a,o.on("mouseover",o=>{this.mouseover(o.target,e.grid)}),o.on("mouseout",o=>{this.mouseout(o.target,e.grid)}),o.Text.eachOverlay(a=>{a.on("mouseover",a=>{this.mouseover(o,e.grid)}),a.on("mouseout",a=>{this.mouseout(o,e.grid)})}),o}mouseover(e,o){e.setOptions({fillColor:o.fillColor?l(o.fillColor).saturate(.5).hex():"3e0",strokeColor:o.strokeColor?l(o.strokeColor).saturate(.5).hex():"3e0",fillOpacity:o.fillOpacity?Number(o.fillOpacity)+.2>1?1:Number(o.fillOpacity)+.2:.25,strokeOpacity:o.strokeOpacity?Number(o.strokeOpacity)+.2>1?1:Number(o.strokeOpacity)+.2:.7})}mouseout(e,o){e.setOptions({fillColor:o.fillColor,strokeColor:o.strokeColor,fillOpacity:o.fillOpacity,strokeOpacity:o.strokeOpacity})}drawTextByData(e,o,a,t){""===e&&console.warn("name是空字符串"),o.type&&o.coordinates||console.warn("网格名字有问题");let r=new window.AMap.OverlayGroup;return"Point"===o.type?r.addOverlay(new window.AMap.Text({text:e,anchor:"center",position:i.WGS84ToGCJ02(...o.coordinates),draggable:!1,bubble:t,style:a})):"MultiPoint"===o.type&&o.coordinates.forEach(o=>{r.addOverlay(new window.AMap.Text({text:e,anchor:"center",position:i.WGS84ToGCJ02(...o),draggable:!1,style:a}))}),r}drawPolygonByData(e){return e&&e.hasOwnProperty("path")||console.warn("没有多边形路径"),new window.AMap.Polygon(e)}mousetoolClose(e){this._mouseTool&&this._mouseTool.hasOwnProperty("CLASS_NAME")&&"AMap.MouseTool"===this._mouseTool.CLASS_NAME?(this._mouseTool.clearEvents(),this._mouseTool&&this._mouseTool.MeasureAreaTemp&&this._syamap.remove(this._mouseTool.MeasureAreaTemp.obj),this._mouseTool&&this._mouseTool.polygonTemp&&this._syamap.remove(this._mouseTool.polygonTemp.obj),this._mouseTool&&this._mouseTool.polylineTemp&&this._syamap.remove(this._mouseTool.polylineTemp.obj),e&&void 0!==e?(this._mouseTool.close(!0),this._markResult&&this._markResult.clearOverlays(),this._polylineResult&&this._polylineResult.clearOverlays()):this._mouseTool.close()):console.warn("未检测到鼠标工具!")}makeMouseTool(e=this._syamap,o){if(e)return new Promise((a,t)=>{this._mouseTool&&this._mouseTool.hasOwnProperty("CLASS_NAME")&&"AMap.MouseTool"===this._mouseTool.CLASS_NAME?(this.mousetoolClose(o),a(this._mouseTool)):(this._mouseTool=new window.AMap.MouseTool(e),a(this._mouseTool))});console.warn("没有地图对象")}amapsetMark(e){e.map||(e.map=this._syamap);let o=Object.assign({},{zIndex:105},e.option);isNaN(Number(e.maxnum))||Number(e.maxnum)<1?e.maxnum=1:e.maxnum=Number(e.maxnum)>100?100:Number(e.maxnum),1===e.maxnum&&(o=Object.assign(o,{draggable:!0})),this.makeMouseTool(e.map,e.clear).then(a=>{a.marker(o),a.on("draw",o=>{if(this._markResult||(this._markResult=new window.AMap.OverlayGroup),1===e.maxnum&&o.obj.on("dragend",o=>{e.callback&&e.callback(this._markResult)}),1===e.maxnum&&this._markResult.getOverlays().length>0)e.map.remove(this._markResult.getOverlays()),this._markResult.clearOverlays();else if(this._markResult.getOverlays().length>e.maxnum-1)return"function"==typeof e.errback?e.errback({errorCode:"001"}):console.warn("标点异常回调is not a function!"),console.warn("可标点数量已达上限"),e.map.remove(o.obj),void(e.callback&&e.callback(this._markResult));this._markResult.addOverlay(o.obj),e.callback&&e.callback(this._markResult)})})}amapsetPolygon(e){e||(e={}),e.map||(e.map=this._syamap),this.makeMouseTool(e.map,e.clear).then(o=>{o.polygon({zIndex:105}),o.on("draw",o=>{this._polygonResult||(this._polygonResult=new window.AMap.OverlayGroup),this._polygonResult.addOverlay(o.obj),e.callback&&e.callback(o.obj,this._polygonResult)})})}amapsetPolyline(e){e||(e={}),e.map||(e.map=this._syamap),this.makeMouseTool(e.map,e.clear).then(o=>{o.polyline({zIndex:105}),o.on("draw",o=>{this._polylineResult||(this._polylineResult=new window.AMap.OverlayGroup),this._polylineResult.addOverlay(o.obj),e.callback&&e.callback(this._polylineResult)})})}amapRule(e,o=this._syamap){if(!o)return console.warn("没有地图对象");this.makeMouseTool(o,e).then(e=>{e.hasOwnProperty("ruler")&&null!==e.ruler?e.hasOwnProperty("ruler")&&null!==e.ruler&&e.ruler.turnOn():e.rule({lineOptions:{zIndex:200,strokeColor:"#000000"}})})}amapmeasureArea(e,o=this._syamap){if(!o)return console.warn("没有地图对象");this.makeMouseTool(o,e).then(e=>{e.measureArea({strokeColor:"#80d8ff",fillColor:"#80d8ff",fillOpacity:.3,zIndex:200})})}async creatPolygonEditor(){return this._polygoneditor||(this._polygoneditor=new window.AMap.PolygonEditor(this._syamap)),this._polygoneditor}getTheAreaCenter(e){let o=e.length,a=0,t=0,r=0;e.forEach(e=>{let o,s,n,l=e.lng*Math.PI/180,i=e.lat*Math.PI/180;o=Math.cos(i)*Math.cos(l),s=Math.cos(i)*Math.sin(l),n=Math.sin(i),a+=o,t+=s,r+=n}),a/=o,t/=o,r/=o;let s=Math.atan2(t,a),n=Math.sqrt(a*a+t*t),l=Math.atan2(r,n);return[180*s/Math.PI,180*l/Math.PI]}getCurrentPosition(e){this.amaplocation().then(o=>{o.getCurrentPosition((o,a)=>{"complete"===o?e(a.position):console.warn(`%c ${a.info}`," color:chartreuse;font-size:20px",a.message)})})}async drawMarkerByData(e){if(e.map||(e.map=this._syamap),!e.map)return void console.warn("没有地图对象");let o=null,a=null;console.log("option.data",e.data);for(const t of Object.keys(e.data))if(console.log("option.data",e.data),t.indexOf("_x")===t.length-2||"longitude"===t?o=e.data[t]:t.indexOf("_y")!==t.length-2&&"latitude"!==t||(a=e.data[t]),o&&a)break;if(null!==o&&null!==a&&!isNaN(Number(o))&&!isNaN(Number(a))&&Number(o)&&Number(a)){return new window.AMap.Marker({map:e.map,position:await this.amapLngLat(o,a)})}console.warn("点位坐标数据出错111111")}async drawMarkerByDataForWf(e){if(e.map||(e.map=this._syamap),!e.map)return void console.warn("没有地图对象");let o=null,a=null;for(const t of Object.keys(e.data))if(t.indexOf("_x")===t.length-2?o=e.data[t]:t.indexOf("_y")===t.length-2&&(a=e.data[t]),o&&a)break;if(null!==o&&null!==a&&!isNaN(Number(o))&&!isNaN(Number(a))&&Number(o)&&Number(a)){return new window.AMap.Marker({map:e.map,position:await this.amapLngLat(o,a),icon:e.icon,extData:e.extData})}console.warn("点位坐标数据出错")}async drawCircleByDataForWf(e){if(e.map||(e.map=this._syamap),!e.map)return void console.warn("没有地图对象");let o=null,a=null;for(const t of Object.keys(e.data))if(t.indexOf("_x")===t.length-2?o=e.data[t]:t.indexOf("_y")===t.length-2&&(a=e.data[t]),o&&a)break;if(null!==o&&null!==a&&!isNaN(Number(o))&&!isNaN(Number(a))&&Number(o)&&Number(a)){const t=new window.AMap.Circle({center:await this.amapLngLat(o,a),radius:0,strokeColor:"#66cdaa",strokeOpacity:0,strokeWeight:3,fillColor:"#66cdaa",fillOpacity:.3});return e.map.add(t),t}console.warn("点位坐标数据出错")}async drawTextByDataWorkFlow(e){if(e.map||(e.map=this._syamap),!e.map)return void console.warn("没有地图对象");let o=null,a=null;for(const t of Object.keys(e.data))if(t.indexOf("_x")===t.length-2?o=e.data[t]:t.indexOf("_y")===t.length-2&&(a=e.data[t]),o&&a)break;if(null!==o&&null!==a&&!isNaN(Number(o))&&!isNaN(Number(a))&&Number(o)&&Number(a))return new window.AMap.Text({position:[o,a],text:" ",anchor:"center",zIndex:11,style:e.style,extData:e.extData});console.warn("点位坐标数据出错")}set syamap(e){this._syamap=e}get syamap(){return this._syamap}get mouseTool(){return this._mouseTool}get geoLocation(){return this._geoLocation}get markResult(){return this._markResult}get polylineResult(){return this._polylineResult}get polygonEditor(){return this._polygoneditor}}const y={class:"amap-body",style:{height:"100%",position:"relative",background:"#091f3a"}},d=["id"];var g=/* @__PURE__ */m({__name:"index",props:{id:{type:String,default:"container"},viewMode:{type:String,default:"2D"},mapStyle:String,banben:{type:String,default:"2.0"},locationbutton:!1,currentlocation:!1},setup(n,{emit:l}){var i=null;const m=e(null),u=n,g=l;return p(["map-center","map-key"]).then(e=>{m.value=e,(i=new c({version:u.banben,key:JSON.parse(m.value["map-key"]).key})).creatAMap().then(()=>{try{let e=new AMap.Map(document.querySelector(`#${u.id}`),{resizeEnable:!0,showIndoorMap:!1,rotateEnable:!0,pitchEnable:!0,pitch:2,viewMode:u.viewMode,mapStyle:u.mapStyle,animateEnable:!0,zoom:16.94,zooms:[2,18],layers:[]});i.syamap=e,e.on("complete",({type:e})=>{i.amapGeocontrol(u.locationbutton),u.currentlocation?i.getCurrentPosition(e=>{i.syamap.setCenter(e),g("amapcomplete",i)}):(i.syamap.setCenter(JSON.parse(m.value["map-center"])),g("amapcomplete",i))})}catch(e){}}).catch(e=>{})}),(e,l)=>(a(),o("div",y,[t("div",{onContextmenu:l[0]||(l[0]=s(()=>{},["prevent"])),id:n.id,style:{height:"100%",margin:"0 auto","max-width":"7200px"}},null,40,d),r(e.$slots,"topleft",{},void 0,!0)]))}},[["__scopeId","data-v-d16e1181"]]);export{g as _};
@@ -1 +1 @@
1
- import{$ as o}from"./dict-PRQalw5b.js";const g=g=>o({url:"/log/loglogin/getpagination",method:"get",params:g});var t=/* @__PURE__ */Object.freeze({__proto__:null,getByIdLogLogin:g=>o({url:`/log/loglogin/getbyid//${g}`,method:"get"}),getLogLoginPagination:g});export{t as _,g};
1
+ import{$ as o}from"./dict-DctgteYk.js";const g=g=>o({url:"/log/loglogin/getpagination",method:"get",params:g});var t=/* @__PURE__ */Object.freeze({__proto__:null,getByIdLogLogin:g=>o({url:`/log/loglogin/getbyid//${g}`,method:"get"}),getLogLoginPagination:g});export{t as _,g};
@@ -1 +1 @@
1
- import{$ as o}from"./dict-PRQalw5b.js";const t=t=>o({url:"/log/logmqysmsg/getpagination",method:"get",params:t});var g=/* @__PURE__ */Object.freeze({__proto__:null,getLogMQysmsgPagination:t});export{g as _,t as g};
1
+ import{$ as o}from"./dict-DctgteYk.js";const t=t=>o({url:"/log/logmqysmsg/getpagination",method:"get",params:t});var g=/* @__PURE__ */Object.freeze({__proto__:null,getLogMQysmsgPagination:t});export{g as _,t as g};
@@ -1 +1 @@
1
- import{$ as g}from"./dict-PRQalw5b.js";const o=o=>g({url:"/log/logmsg/getpagination",method:"get",params:o}),t=o=>g({url:`/log/logmsg/getbyid//${o}`,method:"get"});var e=/* @__PURE__ */Object.freeze({__proto__:null,getByIdLogMsg:t,getLogMsgPagination:o});export{e as _,t as a,o as g};
1
+ import{$ as g}from"./dict-DctgteYk.js";const o=o=>g({url:"/log/logmsg/getpagination",method:"get",params:o}),t=o=>g({url:`/log/logmsg/getbyid//${o}`,method:"get"});var e=/* @__PURE__ */Object.freeze({__proto__:null,getByIdLogMsg:t,getLogMsgPagination:o});export{e as _,t as a,o as g};
@@ -1 +1 @@
1
- import{$ as t}from"./dict-PRQalw5b.js";const a=a=>t({url:"/log/logquartz/getpagination",method:"get",params:a});var o=/* @__PURE__ */Object.freeze({__proto__:null,getLogQuartzPagination:a});export{o as _,a as g};
1
+ import{$ as t}from"./dict-DctgteYk.js";const a=a=>t({url:"/log/logquartz/getpagination",method:"get",params:a});var o=/* @__PURE__ */Object.freeze({__proto__:null,getLogQuartzPagination:a});export{o as _,a as g};
@@ -1 +1 @@
1
- import{_ as e}from"./Verify-aep_Ijek.js";import{_ as l,u as o}from"./index-zkAK7p-W.js";import{getCurrentInstance as a,ref as t,computed as r,watchEffect as s,watch as i,resolveComponent as n,createElementBlock as u,openBlock as c,createElementVNode as p,createVNode as d,unref as m,withCtx as f,toDisplayString as g,withKeys as v,createTextVNode as y,withModifiers as _}from"vue";import{Q as b,a1 as x,a2 as k,a5 as w,Y as V,D as z,E as j,v as q}from"./dict-PRQalw5b.js";import{useRoute as R,useRouter as I}from"vue-router";import{_ as M}from"./lv-DL2oi67J.js";const S={class:"login"},E=["src"],T={class:"title"},B={key:0},C={key:1};var O=/* @__PURE__ */M({__name:"login",setup(M){const{fileIp:O,pc_logintitle:U,pc_htmltitle:J,pc_loginbackground:N,pc_logo:A}=b("fileIp","pc-logintitle","pc-htmltitle","pc-loginbackground","pc-logo");console.log("%c fileIp, pc_logintitle, pc_htmltitle, pc_loginbackground"," color:violet;font-size:20px",O,U,J,N);const D=x(),F=R(),K=I(),{proxy:P}=a(),Q=t(null),Y=t("向右滑动验证");t();const $=t(""),G=r(()=>O&&A?O.value+"filesroot"+A.value:void 0);s(()=>{if(O&&N&&($.value=O.value+"filesroot"+N.value),J&&(k().setdefaultTitle(J.value),k().setTitle(J.value)),G){let e=document.querySelector('link[rel="icon"]');e?e.href=G.value:(e=document.createElement("link"),e.rel="icon",e.href=G.value,document.head.appendChild(e))}});const H=e=>{Y.value="验证成功",setTimeout(()=>{Q.value.closeBox()},200),function(e){P.$refs.loginRef.validate(l=>{if(l){ee.value=!0,console.log("%c loginForm.value"," color:violet;font-size:20px",W.value);let l=j(JSON.stringify({...W.value,captcha:JSON.stringify(e)}),"sykj8557sykj5700");D.login(l).then(()=>{ee.value=!1;const e=F.query,l=Object.keys(e).reduce((l,o)=>("redirect"!==o&&(l[o]=e[o]),l),{});x().getRights(),o().generateRoutes(K).then(e=>{e.forEach(e=>{if(!q(e.path))try{K.addRoute(e)}catch(l){console.error(l)}})}),K.push({path:oe.value||"/",query:l})}).catch(()=>{ee.value=!1,le.value&&te()})}})}(e)},L=()=>{Q.value.show()},W=t({username:"",password:"",rememberMe:!1}),X={username:[{required:!0,trigger:"blur",message:"请输入您的账号"}],password:[{required:!0,trigger:"blur",message:"请输入您的密码"}]},Z=t(""),ee=t(!1),le=t(!0);t(!1);const oe=t(void 0);function ae(){Q.value.refresh()}function te(){console.log("%c "," color:violet;font-size:20px"),w().then(e=>{Z.value="data:image/gif;base64,"+e.originalImageBase64,W.value.captchakey=e.captchakey})}return i(F,e=>{oe.value=e.query&&e.query.redirect},{immediate:!0}),te(),function(){const e=V.get("username"),l=V.get("password"),o=V.get("rememberMe");W.value={username:void 0===e?W.value.username:e,password:void 0===l?W.value.password:z(l),rememberMe:void 0!==o&&Boolean(o)}}(),(o,a)=>{const t=l,r=n("el-input"),s=n("el-form-item"),i=n("el-checkbox"),b=n("el-button"),x=n("el-form"),k=e;return c(),u("div",S,[p("img",{class:"bg_beijing",src:m($),alt:""},null,8,E),d(x,{ref:"loginRef",model:m(W),rules:X,class:"login-form"},{default:f(()=>[p("h3",T,g(m(U)),1),d(s,{prop:"username"},{default:f(()=>[d(r,{modelValue:m(W).username,"onUpdate:modelValue":a[0]||(a[0]=e=>m(W).username=e),type:"text",size:"large","auto-complete":"off",placeholder:"账号"},{prefix:f(()=>[d(t,{"icon-class":"user",class:"el-input__icon input-icon"})]),_:1},8,["modelValue"])]),_:1}),d(s,{prop:"password"},{default:f(()=>[d(r,{modelValue:m(W).password,"onUpdate:modelValue":a[1]||(a[1]=e=>m(W).password=e),type:"password",size:"large","auto-complete":"off",placeholder:"密码",onKeyup:v(L,["enter"])},{prefix:f(()=>[d(t,{"icon-class":"password",class:"el-input__icon input-icon"})]),_:1},8,["modelValue"])]),_:1}),d(i,{modelValue:m(W).rememberMe,"onUpdate:modelValue":a[2]||(a[2]=e=>m(W).rememberMe=e),style:{margin:"0px 0px 25px 0px"}},{default:f(()=>[...a[3]||(a[3]=[y("记住密码",-1)])]),_:1},8,["modelValue"]),d(s,{style:{width:"100%"}},{default:f(()=>[d(b,{loading:m(ee),size:"large",type:"primary",style:{width:"100%"},onClick:_(L,["prevent"])},{default:f(()=>[m(ee)?(c(),u("span",C,"登 录 中...")):(c(),u("span",B,"登 录"))]),_:1},8,["loading"])]),_:1})]),_:1},8,["model"]),a[4]||(a[4]=p("div",{class:"el-login-footer"},[p("span",null,"Copyright © All Rights Reserved.")],-1)),d(k,{mode:"pop",captchaType:"blockPuzzle",imgSize:{width:"400px",height:"200px"},ref_key:"verify",ref:Q,onSuccess:H,onError:ae},null,512)])}}},[["__scopeId","data-v-89b62628"]]);export{O as default};
1
+ import{_ as e}from"./Verify-C8YwTN8Z.js";import{_ as l,u as o}from"./index-mKbiWJUP.js";import{getCurrentInstance as a,ref as t,computed as r,watchEffect as s,watch as i,resolveComponent as n,createElementBlock as u,openBlock as c,createElementVNode as p,createVNode as d,unref as m,withCtx as f,toDisplayString as g,withKeys as v,createTextVNode as y,withModifiers as _}from"vue";import{Q as b,a1 as x,a2 as k,a5 as w,Y as V,D as z,E as j,v as q}from"./dict-DctgteYk.js";import{useRoute as R,useRouter as I}from"vue-router";import{_ as M}from"./lv-DL2oi67J.js";const S={class:"login"},E=["src"],T={class:"title"},B={key:0},C={key:1};var O=/* @__PURE__ */M({__name:"login",setup(M){const{fileIp:O,pc_logintitle:U,pc_htmltitle:J,pc_loginbackground:N,pc_logo:A}=b("fileIp","pc-logintitle","pc-htmltitle","pc-loginbackground","pc-logo");console.log("%c fileIp, pc_logintitle, pc_htmltitle, pc_loginbackground"," color:violet;font-size:20px",O,U,J,N);const D=x(),F=R(),K=I(),{proxy:P}=a(),Q=t(null),Y=t("向右滑动验证");t();const $=t(""),G=r(()=>O&&A?O.value+"filesroot"+A.value:void 0);s(()=>{if(O&&N&&($.value=O.value+"filesroot"+N.value),J&&(k().setdefaultTitle(J.value),k().setTitle(J.value)),G){let e=document.querySelector('link[rel="icon"]');e?e.href=G.value:(e=document.createElement("link"),e.rel="icon",e.href=G.value,document.head.appendChild(e))}});const H=e=>{Y.value="验证成功",setTimeout(()=>{Q.value.closeBox()},200),function(e){P.$refs.loginRef.validate(l=>{if(l){ee.value=!0,console.log("%c loginForm.value"," color:violet;font-size:20px",W.value);let l=j(JSON.stringify({...W.value,captcha:JSON.stringify(e)}),"sykj8557sykj5700");D.login(l).then(()=>{ee.value=!1;const e=F.query,l=Object.keys(e).reduce((l,o)=>("redirect"!==o&&(l[o]=e[o]),l),{});x().getRights(),o().generateRoutes(K).then(e=>{e.forEach(e=>{if(!q(e.path))try{K.addRoute(e)}catch(l){console.error(l)}})}),K.push({path:oe.value||"/",query:l})}).catch(()=>{ee.value=!1,le.value&&te()})}})}(e)},L=()=>{Q.value.show()},W=t({username:"",password:"",rememberMe:!1}),X={username:[{required:!0,trigger:"blur",message:"请输入您的账号"}],password:[{required:!0,trigger:"blur",message:"请输入您的密码"}]},Z=t(""),ee=t(!1),le=t(!0);t(!1);const oe=t(void 0);function ae(){Q.value.refresh()}function te(){console.log("%c "," color:violet;font-size:20px"),w().then(e=>{Z.value="data:image/gif;base64,"+e.originalImageBase64,W.value.captchakey=e.captchakey})}return i(F,e=>{oe.value=e.query&&e.query.redirect},{immediate:!0}),te(),function(){const e=V.get("username"),l=V.get("password"),o=V.get("rememberMe");W.value={username:void 0===e?W.value.username:e,password:void 0===l?W.value.password:z(l),rememberMe:void 0!==o&&Boolean(o)}}(),(o,a)=>{const t=l,r=n("el-input"),s=n("el-form-item"),i=n("el-checkbox"),b=n("el-button"),x=n("el-form"),k=e;return c(),u("div",S,[p("img",{class:"bg_beijing",src:m($),alt:""},null,8,E),d(x,{ref:"loginRef",model:m(W),rules:X,class:"login-form"},{default:f(()=>[p("h3",T,g(m(U)),1),d(s,{prop:"username"},{default:f(()=>[d(r,{modelValue:m(W).username,"onUpdate:modelValue":a[0]||(a[0]=e=>m(W).username=e),type:"text",size:"large","auto-complete":"off",placeholder:"账号"},{prefix:f(()=>[d(t,{"icon-class":"user",class:"el-input__icon input-icon"})]),_:1},8,["modelValue"])]),_:1}),d(s,{prop:"password"},{default:f(()=>[d(r,{modelValue:m(W).password,"onUpdate:modelValue":a[1]||(a[1]=e=>m(W).password=e),type:"password",size:"large","auto-complete":"off",placeholder:"密码",onKeyup:v(L,["enter"])},{prefix:f(()=>[d(t,{"icon-class":"password",class:"el-input__icon input-icon"})]),_:1},8,["modelValue"])]),_:1}),d(i,{modelValue:m(W).rememberMe,"onUpdate:modelValue":a[2]||(a[2]=e=>m(W).rememberMe=e),style:{margin:"0px 0px 25px 0px"}},{default:f(()=>[...a[3]||(a[3]=[y("记住密码",-1)])]),_:1},8,["modelValue"]),d(s,{style:{width:"100%"}},{default:f(()=>[d(b,{loading:m(ee),size:"large",type:"primary",style:{width:"100%"},onClick:_(L,["prevent"])},{default:f(()=>[m(ee)?(c(),u("span",C,"登 录 中...")):(c(),u("span",B,"登 录"))]),_:1},8,["loading"])]),_:1})]),_:1},8,["model"]),a[4]||(a[4]=p("div",{class:"el-login-footer"},[p("span",null,"Copyright © All Rights Reserved.")],-1)),d(k,{mode:"pop",captchaType:"blockPuzzle",imgSize:{width:"400px",height:"200px"},ref_key:"verify",ref:Q,onSuccess:H,onError:ae},null,512)])}}},[["__scopeId","data-v-cd134148"]]);export{O as default};
@@ -1 +1 @@
1
- import{$ as o}from"./dict-PRQalw5b.js";const r=r=>o({url:"/log/logmqerror/getpagination",method:"get",params:r});var t=/* @__PURE__ */Object.freeze({__proto__:null,getLogMQErrorPagination:r});export{t as _,r as g};
1
+ import{$ as o}from"./dict-DctgteYk.js";const r=r=>o({url:"/log/logmqerror/getpagination",method:"get",params:r});var t=/* @__PURE__ */Object.freeze({__proto__:null,getLogMQErrorPagination:r});export{t as _,r as g};
@@ -1 +1 @@
1
- import{$ as e}from"./dict-PRQalw5b.js";const t=t=>e({url:"/log/logoperate/getpagination",method:"get",params:t}),o=t=>e({url:`/log/logoperate/getbyid/${t}`,method:"get"});var a=/* @__PURE__ */Object.freeze({__proto__:null,addLogOperate:t=>e({url:"/log/logoperate/add",method:"post",data:t}),delLogOperate:t=>e({url:"/log/logoperate/delete",method:"delete",data:t}),editLogOperate:t=>e({url:"/log/logoperate/edit",method:"put",data:t}),getByIdLogoperate:o,getLogOperatePagination:t});export{a as _,o as a,t as g};
1
+ import{$ as e}from"./dict-DctgteYk.js";const t=t=>e({url:"/log/logoperate/getpagination",method:"get",params:t}),o=t=>e({url:`/log/logoperate/getbyid/${t}`,method:"get"});var a=/* @__PURE__ */Object.freeze({__proto__:null,addLogOperate:t=>e({url:"/log/logoperate/add",method:"post",data:t}),delLogOperate:t=>e({url:"/log/logoperate/delete",method:"delete",data:t}),editLogOperate:t=>e({url:"/log/logoperate/edit",method:"put",data:t}),getByIdLogoperate:o,getLogOperatePagination:t});export{a as _,o as a,t as g};
@@ -1 +1 @@
1
- import{_ as e}from"./index-WEx3jez-.js";import{_ as l}from"./index-CwlWcOTQ.js";import{ref as o,inject as a,reactive as t,toRefs as r,resolveComponent as i,resolveDirective as n,createElementBlock as d,openBlock as s,Fragment as u,createVNode as g,createElementVNode as c,withCtx as m,withDirectives as p,createBlock as _,createTextVNode as f,unref as v,isRef as y,createCommentVNode as k,renderList as b,toDisplayString as z,normalizeClass as C}from"vue";import{a1 as V,o as w,h as S,a4 as P,G as x,C as j}from"./dict-PRQalw5b.js";import{u as O}from"./dict-BW1VOoR1.js";import{useRouter as U}from"vue-router";import{g as $,d as F,b as B,c as E,u as A}from"./gridgrid-CKem1qEc.js";import{g as W}from"./regions-B532MbGT.js";import{_ as D}from"./lv-DL2oi67J.js";const L={class:"map-box"},G={class:"dialog-footer"};var I=/* @__PURE__ */D({__name:"maparea",props:{hotzone:{type:Boolean,default:!1},gridtypeList:{type:Array,default:()=>[]}},emits:["success"],setup(D,{expose:I,emit:R}){const{grid_gridgrid_state:T}=O("grid_grid@grid_state"),M=V().permissions,N=U(),J=D,Q=o(!1),q=o(!1),H=o(!0),K=o(),X=R;var Y=null,Z={editing:{value:!1}};const ee=a("init"),le=t({griddata:{},hotzonedata:{},drawOption:{visible:!1,title:""},gridstyle:{},form:{},rules:[],signs:[{id:1,label:"点"},{id:2,label:"线"},{id:3,label:"多边形"}]}),{drawOption:oe,griddata:ae,hotzonedata:te,gridstyle:re,form:ie,rules:ne}=r(le);function de(){N.push("gridmanage/grid-table")}function se(){ae.value.grid_sign,Z.setPolygonEditor({createOptions:ue(),editOptions:ue()})}function ue(){return{strokeColor:Z.getColor(re.value.gridStrokecolor),fillColor:Z.getColor(re.value.gridFillcolor),fillOpacity:Z.getOpacity(re.value.gridFillcolor),strokeWeight:re.value.gridStrokewidth,strokeOpacity:Z.getOpacity(re.value.gridStrokecolor)}}function ge(){return ae.value}function ce(){return te.value}function me(){return{color:re.value.nameColor,background:re.value.nameBackground,padding:"6px 20px",border:"none",borderRadius:"14px",fontSize:re.value.nameSize+"px",fontWeight:"600"}}function pe(){P.confirm(`是否删除网${J.hotzone?"热区":"网格"}:${ae.value.grid_name}`).then(()=>F([ae.value.gridid])).then(e=>{P.msgSuccess(e.message||"删除成功"),ke(!0)}).catch(e=>{console.error("error:",e)})}async function _e(e){Ce();const l=await B(e.gridid,{tosrid:9999001});l.faild||(Object.keys(ae.value).forEach(e=>{ae.value[e]=l[e]}),ae.value.catchdata=[{areaid:l.grid_areaid,area_name:l.area_name}],l.grid_json&&l.grid_json.grid_style&&l.grid_json.grid_style.gridStrokecolor&&(re.value={nameColor:l.grid_json.grid_style.nameColor,nameSize:l.grid_json.grid_style.nameSize,nameBackground:l.grid_json.grid_style.nameBackground,gridFillcolor:l.grid_json.grid_style.gridFillcolor,gridStrokecolor:l.grid_json.grid_style.gridStrokecolor,gridStrokewidth:l.grid_json.grid_style.gridStrokewidth}),oe.value.title="网格编辑",q.value=!0,oe.value.visible=!0)}async function he(e){Ce(),Object.keys(te.value).forEach(l=>{te.value[l]=e[l]}),this.$refs.antform.formset(this.formdata.map(l=>{const o=deepClone(l);return l.slot||(o.default=e[l.key],"hotzone_typeid"===l.key&&(o.namekeydefault=e.hotzone_typemc)),o})),oe.value.title="热区编辑",q.value=!0,oe.value.visible=!0}function fe(){Z.sectionOver(),X("success"),Ce(),q.value=!0,oe.value.title="新增网格",oe.value.visible=!0}function ve(){K.value.validate(e=>{e&&(ae.value.grid_sign,ye())})}function ye(){if(!Z.get_tempPolygons()&&!Z.get_polygonEditorTool())return P.msgWarning("请画好网格");{var e;if(Z.editing.value&&Z.drawover(),!Z.get_tempPolygons()||0===Z.get_tempPolygons().getPath().length)return P.msgWarning("请画好网格");let o=Z.get_textOverlay().getOverlays().map(e=>j.GCJ02ToWGS84(...e.getPosition().toArray()));try{e={...ae.value,grid_json:{grid_style:re.value,center:{type:1===o.length?"Point":"MultiPoint",coordinates:1===o.length?o[0]:o},grid_sign:ae.value.grid_sign},grid_geom:{fromsrid:9999001,type:Z.get_tempPolygons().getPath().length>1?"MultiPolygon":"Polygon",coordinates:Z.get_tempPolygons().getPath().length>1?Z.pathsformat(Z.get_tempPolygons().getPath()):Z.pathsformat(Z.get_tempPolygons().getPath()[0])}}}catch(l){console.warn("%c errorerrorerror"," color:chartreuse;font-size:20px",l,Z.get_tempPolygons())}}e.gridid?A(e).then(e=>{console.log("%c 编辑完成"," color:violet;font-size:20px",e),P.msgSuccess("编辑成功"),ke()}):E(e).then(e=>{console.log("%c 提交完成"," color:violet;font-size:20px",e),P.msgSuccess("添加成功"),ke()})}function ke(e=!1){if(oe.value.visible=!1,Z.sectionOver(),J.hotzone&&te.value.hotzoneid){let l=Z.get_hotzoneOverlays().getOverlays().find(e=>e.getExtData().hotzoneid===te.value.hotzoneid);Z.get_hotzoneOverlays.removeOverlay(l),e||Z.sethotzone([l.getExtData()]),l.destroy()}X("success"),Z.get_tempmenu()&&Z.get_tempmenu().close()}I({getList:ze});const be=async e=>{console.log("%c tooltooltool"," color:violet;font-size:20px",e),Y=e.syamap,Z=w({tool:e,permissions:M,drawOption:oe.value,hotzone:J.hotzone,getgriddata:ge,getgridstyle:ue,getgridnamestyle:me,gethotzonedata:ce,gridformedit:_e,hotzoneformedit:he}),await ee()};function ze(e){Q.value=!0,$({...e,tosrid:9999001}).then(e=>{Q.value=!1,Z.setgrids(e.faild?[]:e.records).then(e=>{Y.setFitView()})})}function Ce(){x(K.value),re.value={nameColor:Z.$predefineColors.value.default.namecolor,nameSize:Z.$predefineColors.value.default.namesize,nameBackground:Z.$predefineColors.value.default.namebgcolor,gridFillcolor:Z.$predefineColors.value.default.gridfillcolor,gridStrokecolor:Z.$predefineColors.value.default.gridstrokecolor,gridStrokewidth:Z.$predefineColors.value.default.gridstrokewidth},J.hotzone?(ae.value.grid_sign=3,te.value={hotzoneid:null,hotzone_typeid:null,hotzone_typemc:"",hotzone_areaid:null,hotzone_areano:"",hotzone_areaname:"",hotzone_name:"",hotzone_nox:null,hotzone_noy:null}):ae.value={gridid:null,grid_name:"",grid_areaid:void 0,grid_typeid:void 0,grid_no:void 0,grid_state:1,grid_sort:0,grid_note:"",grid_sign:3,catchdata:[]}}async function Ve(e,l){const o=e.data.areaid?e.data.areaid:void 0,a=await W({pageNo:1,pageSize:1e4,area_parentid:o}),t=a.records?.map(e=>({...e,leaf:!e.area_isexistschild}));l(t)}function we(){J.hotzone?void 0!==te.value.hotzone_name&&null!==te.value.hotzone_name?te.value.hotzone_name=S(te.value.hotzone_name):te.value.hotzone_name="":void 0!==ae.value.grid_name&&null!==ae.value.grid_name?ae.value.grid_name=S(ae.value.grid_name):ae.value.grid_name="",Z.setnamestyle()}return(o,a)=>{const t=i("el-button"),r=i("el-col"),V=l,w=i("el-row"),S=e,P=i("EditPen"),x=i("el-tooltip"),j=i("DArrowRight"),O=i("DArrowLeft"),U=i("el-icon"),$=i("el-tree-select"),F=i("el-form-item"),B=i("el-option"),E=i("el-select"),A=i("el-input"),W=i("el-radio"),I=i("el-radio-group"),R=i("el-color-picker"),M=i("el-input-number"),N=i("el-form"),X=i("Warning"),Y=i("el-drawer"),ee=n("hasPermi"),le=n("loading");return s(),d(u,null,[g(w,{gutter:10,class:"mb8"},{default:m(()=>[g(r,{span:1.5},{default:m(()=>[p((s(),_(t,{type:"primary",plain:"",icon:"Plus",onClick:fe},{default:m(()=>[...a[17]||(a[17]=[f("新增",-1)])]),_:1})),[[ee,["gridAdd"]]])]),_:1}),g(r,{span:1.5},{default:m(()=>[g(t,{type:"primary",onClick:de,plain:""},{default:m(()=>[...a[18]||(a[18]=[f("网格列表",-1)])]),_:1})]),_:1}),g(V,{showSearch:v(H),"onUpdate:showSearch":a[0]||(a[0]=e=>y(H)?H.value=e:null),onQueryTable:ze},null,8,["showSearch"])]),_:1}),c("div",L,[p(g(S,{currentlocation:!1,locationbutton:!0,onAmapcomplete:be,id:"gridmanage"},null,512),[[le,v(Q)]]),g(Y,{onClose:a[15]||(a[15]=e=>ke(!1)),"modal-class":!v(q)&&v(oe).visible?"grid-draw noshow":"grid-draw","header-class":"grid-draw-header",modelValue:v(oe).visible,"onUpdate:modelValue":a[16]||(a[16]=e=>v(oe).visible=e),modal:!1,"modal-penetrable":"","destroy-on-close":"","append-to-body":!1},{header:m(({close:e,titleId:l,titleClass:o})=>[c("span",null,[f(z(v(oe).title)+" ",1),g(x,{content:v(Z).editing.value?"绘制开启":"绘制关闭",effect:"dark",placement:"top"},{default:m(()=>[g(P,{style:{height:"1em",width:"1em","margin-left":"15px"},class:C({editing:v(Z).editing.value})},null,8,["class"])]),_:1},8,["content"]),f(" "+z(v(Z).editing.value?"画图中,部分功能被禁止":""),1)]),v(Z).editing.value?(s(),_(t,{key:0,onClick:v(Z).drawover},{default:m(()=>[...a[19]||(a[19]=[f("暂停绘制",-1)])]),_:1},8,["onClick"])):k("",!0)]),footer:m(()=>[c("div",G,[v(ae).gridid&&!D.hotzone?p((s(),_(t,{key:0,type:"danger",onClick:pe},{default:m(()=>[...a[20]||(a[20]=[f("删除",-1)])]),_:1})),[[ee,["gridDel"]]]):k("",!0),g(t,{type:"primary",onClick:ve},{default:m(()=>[...a[21]||(a[21]=[f("确 定",-1)])]),_:1}),g(t,{onClick:se},{default:m(()=>[...a[22]||(a[22]=[f("绘制",-1)])]),_:1}),v(Z).editing.value?(s(),_(t,{key:1,onClick:v(Z).drawover},{default:m(()=>[...a[23]||(a[23]=[f("暂停绘制",-1)])]),_:1},8,["onClick"])):k("",!0),g(x,{style:{"margin-left":"15px"},content:"在图形上右键可删除或编辑"},{default:m(()=>[g(U,null,{default:m(()=>[g(X)]),_:1})]),_:1})])]),default:m(()=>[c("div",{class:"formshowbutton",onClick:a[1]||(a[1]=e=>q.value=!v(q))},[g(U,null,{default:m(()=>[v(q)&&v(oe).visible?(s(),_(j,{key:0})):k("",!0),!v(q)&&v(oe).visible?(s(),_(O,{key:1})):k("",!0)]),_:1})]),g(N,{model:v(ae),rules:v(ne),ref_key:"gridRef",ref:K,"label-width":"80"},{default:m(()=>[g(F,{label:"行政区划",props:"grid_areaid"},{default:m(()=>[g($,{modelValue:v(ae).grid_areaid,"onUpdate:modelValue":a[2]||(a[2]=e=>v(ae).grid_areaid=e),"node-key":"areaid",lazy:"","check-strictly":"",load:Ve,"cache-data":v(ae).catchdata,props:{label:"area_name",children:"children",isLeaf:"leaf"}},null,8,["modelValue","cache-data"])]),_:1}),g(F,{label:"网格类型",prop:"grid_typeid"},{default:m(()=>[g(E,{modelValue:v(ae).grid_typeid,"onUpdate:modelValue":a[3]||(a[3]=e=>v(ae).grid_typeid=e),placeholder:"请选择网格类型"},{default:m(()=>[(s(!0),d(u,null,b(J.gridtypeList,e=>(s(),_(B,{key:e.typeid,label:e.type_name,value:e.typeid},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),g(F,{label:"网格名称",prop:"grid_name"},{default:m(()=>[g(A,{modelValue:v(ae).grid_name,"onUpdate:modelValue":a[4]||(a[4]=e=>v(ae).grid_name=e),placeholder:"请输入网格名称",onInput:we},null,8,["modelValue"])]),_:1}),g(F,{label:"网格编号",prop:"grid_no"},{default:m(()=>[g(A,{modelValue:v(ae).grid_no,"onUpdate:modelValue":a[5]||(a[5]=e=>v(ae).grid_no=e),placeholder:"请输入网格编号"},null,8,["modelValue"])]),_:1}),g(F,{label:"状态",prop:"grid_state"},{default:m(()=>[g(I,{modelValue:v(ae).grid_state,"onUpdate:modelValue":a[6]||(a[6]=e=>v(ae).grid_state=e)},{default:m(()=>[(s(!0),d(u,null,b(v(T),e=>(s(),_(W,{key:e.value,value:e.value},{default:m(()=>[f(z(e.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1}),g(F,{label:"名称字色"},{default:m(()=>[g(R,{"popper-class":"gridcolorpick",modelValue:v(re).nameColor,"onUpdate:modelValue":a[7]||(a[7]=e=>v(re).nameColor=e),onChange:v(Z).setnamestyle,"show-alpha":""},null,8,["modelValue","onChange"])]),_:1}),g(F,{label:"名字背景"},{default:m(()=>[g(R,{"popper-class":"gridcolorpick",modelValue:v(re).nameBackground,"onUpdate:modelValue":a[8]||(a[8]=e=>v(re).nameBackground=e),onChange:v(Z).setnamestyle,"show-alpha":""},null,8,["modelValue","onChange"])]),_:1}),g(F,{label:"名称字号"},{default:m(()=>[g(M,{modelValue:v(re).nameSize,"onUpdate:modelValue":a[9]||(a[9]=e=>v(re).nameSize=e),"controls-position":"right",min:14,onChange:v(Z).setnamestyle},null,8,["modelValue","onChange"])]),_:1}),g(F,{label:"填充颜色"},{default:m(()=>[g(R,{disabled:v(Z).editing.value,"popper-class":"gridcolorpick",modelValue:v(re).gridFillcolor,"onUpdate:modelValue":a[10]||(a[10]=e=>v(re).gridFillcolor=e),onChange:v(Z).setstyle,"show-alpha":""},null,8,["disabled","modelValue","onChange"])]),_:1}),g(F,{label:"边线颜色"},{default:m(()=>[g(R,{disabled:v(Z).editing.value,"popper-class":"gridcolorpick",modelValue:v(re).gridStrokecolor,"onUpdate:modelValue":a[11]||(a[11]=e=>v(re).gridStrokecolor=e),"show-alpha":"",onChange:v(Z).setstyle},null,8,["disabled","modelValue","onChange"])]),_:1}),g(F,{label:"边界宽度"},{default:m(()=>[g(M,{disabled:v(Z).editing.value,modelValue:v(re).gridStrokewidth,"onUpdate:modelValue":a[12]||(a[12]=e=>v(re).gridStrokewidth=e),onChange:v(Z).setstyle,"controls-position":"right",min:1,step:.5},null,8,["disabled","modelValue","onChange"])]),_:1}),g(F,{label:"显示排序"},{default:m(()=>[g(M,{modelValue:v(ie).grid_sort,"onUpdate:modelValue":a[13]||(a[13]=e=>v(ie).grid_sort=e),"controls-position":"right",min:0},null,8,["modelValue"])]),_:1}),g(F,{label:"备注"},{default:m(()=>[g(A,{modelValue:v(ie).grid_note,"onUpdate:modelValue":a[14]||(a[14]=e=>v(ie).grid_note=e),type:"textarea",placeholder:"请输入内容"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modal-class","modelValue"])])],64)}}},[["__scopeId","data-v-197b8155"]]);export{I as default};
1
+ import{_ as e}from"./index-xJvC4qZl.js";import{_ as l}from"./index-CwlWcOTQ.js";import{ref as o,inject as a,reactive as t,toRefs as r,resolveComponent as i,resolveDirective as n,createElementBlock as d,openBlock as s,Fragment as u,createVNode as g,createElementVNode as c,withCtx as m,withDirectives as p,createBlock as _,createTextVNode as f,unref as v,isRef as y,createCommentVNode as k,renderList as b,toDisplayString as z,normalizeClass as C}from"vue";import{a1 as V,o as w,h as S,a4 as P,G as x,C as j}from"./dict-DctgteYk.js";import{u as O}from"./dict-CVpUarJ1.js";import{useRouter as U}from"vue-router";import{g as $,d as F,b as B,c as E,u as A}from"./gridgrid-BG1YKOZd.js";import{g as W}from"./regions-Deb_EzJc.js";import{_ as D}from"./lv-DL2oi67J.js";const L={class:"map-box"},G={class:"dialog-footer"};var I=/* @__PURE__ */D({__name:"maparea",props:{hotzone:{type:Boolean,default:!1},gridtypeList:{type:Array,default:()=>[]}},emits:["success"],setup(D,{expose:I,emit:R}){const{grid_gridgrid_state:T}=O("grid_grid@grid_state"),M=V().permissions,N=U(),J=D,Q=o(!1),q=o(!1),H=o(!0),K=o(),X=R;var Y=null,Z={editing:{value:!1}};const ee=a("init"),le=t({griddata:{},hotzonedata:{},drawOption:{visible:!1,title:""},gridstyle:{},form:{},rules:[],signs:[{id:1,label:"点"},{id:2,label:"线"},{id:3,label:"多边形"}]}),{drawOption:oe,griddata:ae,hotzonedata:te,gridstyle:re,form:ie,rules:ne}=r(le);function de(){N.push("gridmanage/grid-table")}function se(){ae.value.grid_sign,Z.setPolygonEditor({createOptions:ue(),editOptions:ue()})}function ue(){return{strokeColor:Z.getColor(re.value.gridStrokecolor),fillColor:Z.getColor(re.value.gridFillcolor),fillOpacity:Z.getOpacity(re.value.gridFillcolor),strokeWeight:re.value.gridStrokewidth,strokeOpacity:Z.getOpacity(re.value.gridStrokecolor)}}function ge(){return ae.value}function ce(){return te.value}function me(){return{color:re.value.nameColor,background:re.value.nameBackground,padding:"6px 20px",border:"none",borderRadius:"14px",fontSize:re.value.nameSize+"px",fontWeight:"600"}}function pe(){P.confirm(`是否删除网${J.hotzone?"热区":"网格"}:${ae.value.grid_name}`).then(()=>F([ae.value.gridid])).then(e=>{P.msgSuccess(e.message||"删除成功"),ke(!0)}).catch(e=>{console.error("error:",e)})}async function _e(e){Ce();const l=await B(e.gridid,{tosrid:9999001});l.faild||(Object.keys(ae.value).forEach(e=>{ae.value[e]=l[e]}),ae.value.catchdata=[{areaid:l.grid_areaid,area_name:l.area_name}],l.grid_json&&l.grid_json.grid_style&&l.grid_json.grid_style.gridStrokecolor&&(re.value={nameColor:l.grid_json.grid_style.nameColor,nameSize:l.grid_json.grid_style.nameSize,nameBackground:l.grid_json.grid_style.nameBackground,gridFillcolor:l.grid_json.grid_style.gridFillcolor,gridStrokecolor:l.grid_json.grid_style.gridStrokecolor,gridStrokewidth:l.grid_json.grid_style.gridStrokewidth}),oe.value.title="网格编辑",q.value=!0,oe.value.visible=!0)}async function he(e){Ce(),Object.keys(te.value).forEach(l=>{te.value[l]=e[l]}),this.$refs.antform.formset(this.formdata.map(l=>{const o=deepClone(l);return l.slot||(o.default=e[l.key],"hotzone_typeid"===l.key&&(o.namekeydefault=e.hotzone_typemc)),o})),oe.value.title="热区编辑",q.value=!0,oe.value.visible=!0}function fe(){Z.sectionOver(),X("success"),Ce(),q.value=!0,oe.value.title="新增网格",oe.value.visible=!0}function ve(){K.value.validate(e=>{e&&(ae.value.grid_sign,ye())})}function ye(){if(!Z.get_tempPolygons()&&!Z.get_polygonEditorTool())return P.msgWarning("请画好网格");{var e;if(Z.editing.value&&Z.drawover(),!Z.get_tempPolygons()||0===Z.get_tempPolygons().getPath().length)return P.msgWarning("请画好网格");let o=Z.get_textOverlay().getOverlays().map(e=>j.GCJ02ToWGS84(...e.getPosition().toArray()));try{e={...ae.value,grid_json:{grid_style:re.value,center:{type:1===o.length?"Point":"MultiPoint",coordinates:1===o.length?o[0]:o},grid_sign:ae.value.grid_sign},grid_geom:{fromsrid:9999001,type:Z.get_tempPolygons().getPath().length>1?"MultiPolygon":"Polygon",coordinates:Z.get_tempPolygons().getPath().length>1?Z.pathsformat(Z.get_tempPolygons().getPath()):Z.pathsformat(Z.get_tempPolygons().getPath()[0])}}}catch(l){console.warn("%c errorerrorerror"," color:chartreuse;font-size:20px",l,Z.get_tempPolygons())}}e.gridid?A(e).then(e=>{console.log("%c 编辑完成"," color:violet;font-size:20px",e),P.msgSuccess("编辑成功"),ke()}):E(e).then(e=>{console.log("%c 提交完成"," color:violet;font-size:20px",e),P.msgSuccess("添加成功"),ke()})}function ke(e=!1){if(oe.value.visible=!1,Z.sectionOver(),J.hotzone&&te.value.hotzoneid){let l=Z.get_hotzoneOverlays().getOverlays().find(e=>e.getExtData().hotzoneid===te.value.hotzoneid);Z.get_hotzoneOverlays.removeOverlay(l),e||Z.sethotzone([l.getExtData()]),l.destroy()}X("success"),Z.get_tempmenu()&&Z.get_tempmenu().close()}I({getList:ze});const be=async e=>{console.log("%c tooltooltool"," color:violet;font-size:20px",e),Y=e.syamap,Z=w({tool:e,permissions:M,drawOption:oe.value,hotzone:J.hotzone,getgriddata:ge,getgridstyle:ue,getgridnamestyle:me,gethotzonedata:ce,gridformedit:_e,hotzoneformedit:he}),await ee()};function ze(e){Q.value=!0,$({...e,tosrid:9999001}).then(e=>{Q.value=!1,Z.setgrids(e.faild?[]:e.records).then(e=>{Y.setFitView()})})}function Ce(){x(K.value),re.value={nameColor:Z.$predefineColors.value.default.namecolor,nameSize:Z.$predefineColors.value.default.namesize,nameBackground:Z.$predefineColors.value.default.namebgcolor,gridFillcolor:Z.$predefineColors.value.default.gridfillcolor,gridStrokecolor:Z.$predefineColors.value.default.gridstrokecolor,gridStrokewidth:Z.$predefineColors.value.default.gridstrokewidth},J.hotzone?(ae.value.grid_sign=3,te.value={hotzoneid:null,hotzone_typeid:null,hotzone_typemc:"",hotzone_areaid:null,hotzone_areano:"",hotzone_areaname:"",hotzone_name:"",hotzone_nox:null,hotzone_noy:null}):ae.value={gridid:null,grid_name:"",grid_areaid:void 0,grid_typeid:void 0,grid_no:void 0,grid_state:1,grid_sort:0,grid_note:"",grid_sign:3,catchdata:[]}}async function Ve(e,l){const o=e.data.areaid?e.data.areaid:void 0,a=await W({pageNo:1,pageSize:1e4,area_parentid:o}),t=a.records?.map(e=>({...e,leaf:!e.area_isexistschild}));l(t)}function we(){J.hotzone?void 0!==te.value.hotzone_name&&null!==te.value.hotzone_name?te.value.hotzone_name=S(te.value.hotzone_name):te.value.hotzone_name="":void 0!==ae.value.grid_name&&null!==ae.value.grid_name?ae.value.grid_name=S(ae.value.grid_name):ae.value.grid_name="",Z.setnamestyle()}return(o,a)=>{const t=i("el-button"),r=i("el-col"),V=l,w=i("el-row"),S=e,P=i("EditPen"),x=i("el-tooltip"),j=i("DArrowRight"),O=i("DArrowLeft"),U=i("el-icon"),$=i("el-tree-select"),F=i("el-form-item"),B=i("el-option"),E=i("el-select"),A=i("el-input"),W=i("el-radio"),I=i("el-radio-group"),R=i("el-color-picker"),M=i("el-input-number"),N=i("el-form"),X=i("Warning"),Y=i("el-drawer"),ee=n("hasPermi"),le=n("loading");return s(),d(u,null,[g(w,{gutter:10,class:"mb8"},{default:m(()=>[g(r,{span:1.5},{default:m(()=>[p((s(),_(t,{type:"primary",plain:"",icon:"Plus",onClick:fe},{default:m(()=>[...a[17]||(a[17]=[f("新增",-1)])]),_:1})),[[ee,["gridAdd"]]])]),_:1}),g(r,{span:1.5},{default:m(()=>[g(t,{type:"primary",onClick:de,plain:""},{default:m(()=>[...a[18]||(a[18]=[f("网格列表",-1)])]),_:1})]),_:1}),g(V,{showSearch:v(H),"onUpdate:showSearch":a[0]||(a[0]=e=>y(H)?H.value=e:null),onQueryTable:ze},null,8,["showSearch"])]),_:1}),c("div",L,[p(g(S,{currentlocation:!1,locationbutton:!0,onAmapcomplete:be,id:"gridmanage"},null,512),[[le,v(Q)]]),g(Y,{onClose:a[15]||(a[15]=e=>ke(!1)),"modal-class":!v(q)&&v(oe).visible?"grid-draw noshow":"grid-draw","header-class":"grid-draw-header",modelValue:v(oe).visible,"onUpdate:modelValue":a[16]||(a[16]=e=>v(oe).visible=e),modal:!1,"modal-penetrable":"","destroy-on-close":"","append-to-body":!1},{header:m(({close:e,titleId:l,titleClass:o})=>[c("span",null,[f(z(v(oe).title)+" ",1),g(x,{content:v(Z).editing.value?"绘制开启":"绘制关闭",effect:"dark",placement:"top"},{default:m(()=>[g(P,{style:{height:"1em",width:"1em","margin-left":"15px"},class:C({editing:v(Z).editing.value})},null,8,["class"])]),_:1},8,["content"]),f(" "+z(v(Z).editing.value?"画图中,部分功能被禁止":""),1)]),v(Z).editing.value?(s(),_(t,{key:0,onClick:v(Z).drawover},{default:m(()=>[...a[19]||(a[19]=[f("暂停绘制",-1)])]),_:1},8,["onClick"])):k("",!0)]),footer:m(()=>[c("div",G,[v(ae).gridid&&!D.hotzone?p((s(),_(t,{key:0,type:"danger",onClick:pe},{default:m(()=>[...a[20]||(a[20]=[f("删除",-1)])]),_:1})),[[ee,["gridDel"]]]):k("",!0),g(t,{type:"primary",onClick:ve},{default:m(()=>[...a[21]||(a[21]=[f("确 定",-1)])]),_:1}),g(t,{onClick:se},{default:m(()=>[...a[22]||(a[22]=[f("绘制",-1)])]),_:1}),v(Z).editing.value?(s(),_(t,{key:1,onClick:v(Z).drawover},{default:m(()=>[...a[23]||(a[23]=[f("暂停绘制",-1)])]),_:1},8,["onClick"])):k("",!0),g(x,{style:{"margin-left":"15px"},content:"在图形上右键可删除或编辑"},{default:m(()=>[g(U,null,{default:m(()=>[g(X)]),_:1})]),_:1})])]),default:m(()=>[c("div",{class:"formshowbutton",onClick:a[1]||(a[1]=e=>q.value=!v(q))},[g(U,null,{default:m(()=>[v(q)&&v(oe).visible?(s(),_(j,{key:0})):k("",!0),!v(q)&&v(oe).visible?(s(),_(O,{key:1})):k("",!0)]),_:1})]),g(N,{model:v(ae),rules:v(ne),ref_key:"gridRef",ref:K,"label-width":"80"},{default:m(()=>[g(F,{label:"行政区划",props:"grid_areaid"},{default:m(()=>[g($,{modelValue:v(ae).grid_areaid,"onUpdate:modelValue":a[2]||(a[2]=e=>v(ae).grid_areaid=e),"node-key":"areaid",lazy:"","check-strictly":"",load:Ve,"cache-data":v(ae).catchdata,props:{label:"area_name",children:"children",isLeaf:"leaf"}},null,8,["modelValue","cache-data"])]),_:1}),g(F,{label:"网格类型",prop:"grid_typeid"},{default:m(()=>[g(E,{modelValue:v(ae).grid_typeid,"onUpdate:modelValue":a[3]||(a[3]=e=>v(ae).grid_typeid=e),placeholder:"请选择网格类型"},{default:m(()=>[(s(!0),d(u,null,b(J.gridtypeList,e=>(s(),_(B,{key:e.typeid,label:e.type_name,value:e.typeid},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),g(F,{label:"网格名称",prop:"grid_name"},{default:m(()=>[g(A,{modelValue:v(ae).grid_name,"onUpdate:modelValue":a[4]||(a[4]=e=>v(ae).grid_name=e),placeholder:"请输入网格名称",onInput:we},null,8,["modelValue"])]),_:1}),g(F,{label:"网格编号",prop:"grid_no"},{default:m(()=>[g(A,{modelValue:v(ae).grid_no,"onUpdate:modelValue":a[5]||(a[5]=e=>v(ae).grid_no=e),placeholder:"请输入网格编号"},null,8,["modelValue"])]),_:1}),g(F,{label:"状态",prop:"grid_state"},{default:m(()=>[g(I,{modelValue:v(ae).grid_state,"onUpdate:modelValue":a[6]||(a[6]=e=>v(ae).grid_state=e)},{default:m(()=>[(s(!0),d(u,null,b(v(T),e=>(s(),_(W,{key:e.value,value:e.value},{default:m(()=>[f(z(e.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1}),g(F,{label:"名称字色"},{default:m(()=>[g(R,{"popper-class":"gridcolorpick",modelValue:v(re).nameColor,"onUpdate:modelValue":a[7]||(a[7]=e=>v(re).nameColor=e),onChange:v(Z).setnamestyle,"show-alpha":""},null,8,["modelValue","onChange"])]),_:1}),g(F,{label:"名字背景"},{default:m(()=>[g(R,{"popper-class":"gridcolorpick",modelValue:v(re).nameBackground,"onUpdate:modelValue":a[8]||(a[8]=e=>v(re).nameBackground=e),onChange:v(Z).setnamestyle,"show-alpha":""},null,8,["modelValue","onChange"])]),_:1}),g(F,{label:"名称字号"},{default:m(()=>[g(M,{modelValue:v(re).nameSize,"onUpdate:modelValue":a[9]||(a[9]=e=>v(re).nameSize=e),"controls-position":"right",min:14,onChange:v(Z).setnamestyle},null,8,["modelValue","onChange"])]),_:1}),g(F,{label:"填充颜色"},{default:m(()=>[g(R,{disabled:v(Z).editing.value,"popper-class":"gridcolorpick",modelValue:v(re).gridFillcolor,"onUpdate:modelValue":a[10]||(a[10]=e=>v(re).gridFillcolor=e),onChange:v(Z).setstyle,"show-alpha":""},null,8,["disabled","modelValue","onChange"])]),_:1}),g(F,{label:"边线颜色"},{default:m(()=>[g(R,{disabled:v(Z).editing.value,"popper-class":"gridcolorpick",modelValue:v(re).gridStrokecolor,"onUpdate:modelValue":a[11]||(a[11]=e=>v(re).gridStrokecolor=e),"show-alpha":"",onChange:v(Z).setstyle},null,8,["disabled","modelValue","onChange"])]),_:1}),g(F,{label:"边界宽度"},{default:m(()=>[g(M,{disabled:v(Z).editing.value,modelValue:v(re).gridStrokewidth,"onUpdate:modelValue":a[12]||(a[12]=e=>v(re).gridStrokewidth=e),onChange:v(Z).setstyle,"controls-position":"right",min:1,step:.5},null,8,["disabled","modelValue","onChange"])]),_:1}),g(F,{label:"显示排序"},{default:m(()=>[g(M,{modelValue:v(ie).grid_sort,"onUpdate:modelValue":a[13]||(a[13]=e=>v(ie).grid_sort=e),"controls-position":"right",min:0},null,8,["modelValue"])]),_:1}),g(F,{label:"备注"},{default:m(()=>[g(A,{modelValue:v(ie).grid_note,"onUpdate:modelValue":a[14]||(a[14]=e=>v(ie).grid_note=e),type:"textarea",placeholder:"请输入内容"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modal-class","modelValue"])])],64)}}},[["__scopeId","data-v-197b8155"]]);export{I as default};
@@ -1 +1 @@
1
- import{ref as e,reactive as l,toRefs as a,shallowRef as t,inject as o,resolveComponent as u,createBlock as d,openBlock as n,unref as s,isRef as i,withCtx as v,createVNode as r,createCommentVNode as f,createTextVNode as c,toDisplayString as _,createElementBlock as m,Fragment as p,renderList as $,createElementVNode as g}from"vue";import{u as b}from"./dict-BW1VOoR1.js";import{d as y,g as V,u as w,a as x}from"./wfnode-dX8p_TWL.js";import{t as j,G as k,a4 as C,J as D}from"./dict-PRQalw5b.js";const U={class:"dialog-footer"},S={__name:"nodeadd",props:{wfdef:Object},emits:["addsuccess","addfail"],setup(S,{expose:z,emit:E}){const J=S,O=e("node"),A=l({open:!1,title:"",form:{},rules:{[`${O.value}_name`]:[{required:!0,message:"节点名称不能为空",trigger:"blur"}]},cellid:void 0}),{open:N,title:B,form:I,rules:q,cellid:G}=a(A),{wf_nodenode_typeid:H,wf_nodenode_state:R}=b("wf_node@node_typeid","wf_node@node_state"),F=t({add:x,edit:w,detail:V,delete:y}),K=e(),L=E;z({handleAdd:function(e){G.value=e.id,T(e),N.value=!0,B.value="添加工作流节点"},handleUpdate:function(e){T(),G.value=e.id;const l=e?.getData()[`${O.value}id`];F.value.detail(l).then(e=>{j(e[`${O.value}_json`])||(e[`${O.value}_json`]=JSON.stringify(e[`${O.value}_json`])),I.value=e,N.value=!0,B.value="修改节点"})},handleDelete:function(e){console.log("%c node"," color:violet;font-size:20px",e);const l=[e?.getData()[`${O.value}id`]];C.confirm('是否确认删除节点id为"'+l+'"的数据项?').then(function(){return F.value.delete(l)}).then(()=>{console.log("%c getConnectedEdges"," color:chartreuse;font-size:20px",P.value.getConnectedEdges(e)),P.value.getConnectedEdges(e).forEach(e=>{e.remove()}),e.remove(),C.msgSuccess("删除成功")}).catch(()=>{})}});const M=o("funcs"),P=o("graph");function Q(){I.value[`${O.value}id`]||L("addfail"),N.value=!1,G.value=void 0,T()}function T(e){k(K.value),console.log("%c 123"," color:violet;font-size:20px"),I.value={[`${O.value}id`]:e?.getData()[`${O.value}id`]||void 0,[`${O.value}_defid`]:J.wfdef.defid,[`${O.value}_no`]:void 0,[`${O.value}_name`]:void 0,[`${O.value}_typeid`]:e?.getData().value||2,[`${O.value}_sort`]:0,[`${O.value}_state`]:1,[`${O.value}_note`]:void 0}}function W(){K.value.validate(e=>{e&&(null!=I.value[`${O.value}id`]?F.value.edit(X()).then(e=>{C.msgSuccess("修改成功");let l=M.getCellById(G.value);l.setAttrs({label:{text:`${I.value[`${O.value}_name`]}\n${H.value.find(({value:e})=>e===I.value[`${O.value}_typeid`]).label}\n${R.value.find(({value:l})=>l===e[`${O.value}_state`]).label}`}}),l.setData(e),L("addsuccess"),N.value=!1}):F.value.add(X()).then(e=>{if(M.cleanHistory(),C.msgSuccess("新增成功"),console.log("%c 节点添加结束"," color:violet;font-size:20px",e),G.value){let l=M.getCellById(G.value);l.setAttrs({label:{text:`${I.value[`${O.value}_name`]}\n${H.value.find(({value:e})=>e===I.value[`${O.value}_typeid`]).label}\n${R.value.find(({value:l})=>l===e[`${O.value}_state`]).label}`}}),l.setData(e)}L("addsuccess"),N.value=!1}))})}function X(){let e=JSON.parse(JSON.stringify(I.value));return j(e[`${O.value}_json`])||(e[`${O.value}_json`]=D(e[`${O.value}_json`])),e}return(e,l)=>{const a=u("el-form-item"),t=u("el-input"),o=u("el-radio"),b=u("el-radio-group"),y=u("el-input-number"),V=u("el-form"),w=u("el-button"),x=u("el-dialog");return n(),d(x,{title:s(B),modelValue:s(N),"onUpdate:modelValue":l[5]||(l[5]=e=>i(N)?N.value=e:null),width:"500px","align-center":"","append-to-body":"",draggable:"","show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1},{footer:v(()=>[g("div",U,[r(w,{type:"primary",onClick:W},{default:v(()=>[...l[6]||(l[6]=[c("确 定",-1)])]),_:1}),r(w,{onClick:Q},{default:v(()=>[...l[7]||(l[7]=[c("取 消",-1)])]),_:1})])]),default:v(()=>[r(V,{ref_key:"dataRef",ref:K,model:s(I),rules:s(q),"label-width":"110px"},{default:v(()=>[S.wfdef.def_name?(n(),d(a,{key:0,label:"工作流名称"},{default:v(()=>[c(_(S.wfdef.def_name),1)]),_:1})):f("",!0),r(a,{label:"节点名称",prop:`${s(O)}_name`},{default:v(()=>[r(t,{modelValue:s(I)[`${s(O)}_name`],"onUpdate:modelValue":l[0]||(l[0]=e=>s(I)[`${s(O)}_name`]=e),placeholder:"请输入工作流名称"},null,8,["modelValue"])]),_:1},8,["prop"]),r(a,{label:"节点类型"},{default:v(()=>[r(b,{modelValue:s(I)[`${s(O)}_typeid`],"onUpdate:modelValue":l[1]||(l[1]=e=>s(I)[`${s(O)}_typeid`]=e)},{default:v(()=>[(n(!0),m(p,null,$(s(H),e=>(n(),d(o,{key:e.value,value:e.value},{default:v(()=>[c(_(e.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(a,{label:"状态"},{default:v(()=>[r(b,{modelValue:s(I)[`${s(O)}_state`],"onUpdate:modelValue":l[2]||(l[2]=e=>s(I)[`${s(O)}_state`]=e)},{default:v(()=>[(n(!0),m(p,null,$(s(R),e=>(n(),d(o,{key:e.value,value:e.value},{default:v(()=>[c(_(e.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(a,{label:"显示排序"},{default:v(()=>[r(y,{modelValue:s(I)[`${s(O)}_sort`],"onUpdate:modelValue":l[3]||(l[3]=e=>s(I)[`${s(O)}_sort`]=e),"controls-position":"right",min:0},null,8,["modelValue"])]),_:1}),r(a,{label:"备注"},{default:v(()=>[r(t,{modelValue:s(I)[`${s(O)}_note`],"onUpdate:modelValue":l[4]||(l[4]=e=>s(I)[`${s(O)}_note`]=e),type:"textarea",placeholder:"请输入内容"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])}}};export{S as default};
1
+ import{ref as e,reactive as l,toRefs as a,shallowRef as t,inject as o,resolveComponent as u,createBlock as d,openBlock as n,unref as s,isRef as i,withCtx as v,createVNode as r,createCommentVNode as f,createTextVNode as c,toDisplayString as _,createElementBlock as m,Fragment as p,renderList as $,createElementVNode as g}from"vue";import{u as b}from"./dict-CVpUarJ1.js";import{d as y,g as V,u as w,a as x}from"./wfnode-84CAeFmU.js";import{t as j,G as k,a4 as C,J as D}from"./dict-DctgteYk.js";const U={class:"dialog-footer"},S={__name:"nodeadd",props:{wfdef:Object},emits:["addsuccess","addfail"],setup(S,{expose:z,emit:E}){const J=S,O=e("node"),A=l({open:!1,title:"",form:{},rules:{[`${O.value}_name`]:[{required:!0,message:"节点名称不能为空",trigger:"blur"}]},cellid:void 0}),{open:N,title:B,form:I,rules:q,cellid:G}=a(A),{wf_nodenode_typeid:H,wf_nodenode_state:R}=b("wf_node@node_typeid","wf_node@node_state"),F=t({add:x,edit:w,detail:V,delete:y}),K=e(),L=E;z({handleAdd:function(e){G.value=e.id,T(e),N.value=!0,B.value="添加工作流节点"},handleUpdate:function(e){T(),G.value=e.id;const l=e?.getData()[`${O.value}id`];F.value.detail(l).then(e=>{j(e[`${O.value}_json`])||(e[`${O.value}_json`]=JSON.stringify(e[`${O.value}_json`])),I.value=e,N.value=!0,B.value="修改节点"})},handleDelete:function(e){console.log("%c node"," color:violet;font-size:20px",e);const l=[e?.getData()[`${O.value}id`]];C.confirm('是否确认删除节点id为"'+l+'"的数据项?').then(function(){return F.value.delete(l)}).then(()=>{console.log("%c getConnectedEdges"," color:chartreuse;font-size:20px",P.value.getConnectedEdges(e)),P.value.getConnectedEdges(e).forEach(e=>{e.remove()}),e.remove(),C.msgSuccess("删除成功")}).catch(()=>{})}});const M=o("funcs"),P=o("graph");function Q(){I.value[`${O.value}id`]||L("addfail"),N.value=!1,G.value=void 0,T()}function T(e){k(K.value),console.log("%c 123"," color:violet;font-size:20px"),I.value={[`${O.value}id`]:e?.getData()[`${O.value}id`]||void 0,[`${O.value}_defid`]:J.wfdef.defid,[`${O.value}_no`]:void 0,[`${O.value}_name`]:void 0,[`${O.value}_typeid`]:e?.getData().value||2,[`${O.value}_sort`]:0,[`${O.value}_state`]:1,[`${O.value}_note`]:void 0}}function W(){K.value.validate(e=>{e&&(null!=I.value[`${O.value}id`]?F.value.edit(X()).then(e=>{C.msgSuccess("修改成功");let l=M.getCellById(G.value);l.setAttrs({label:{text:`${I.value[`${O.value}_name`]}\n${H.value.find(({value:e})=>e===I.value[`${O.value}_typeid`]).label}\n${R.value.find(({value:l})=>l===e[`${O.value}_state`]).label}`}}),l.setData(e),L("addsuccess"),N.value=!1}):F.value.add(X()).then(e=>{if(M.cleanHistory(),C.msgSuccess("新增成功"),console.log("%c 节点添加结束"," color:violet;font-size:20px",e),G.value){let l=M.getCellById(G.value);l.setAttrs({label:{text:`${I.value[`${O.value}_name`]}\n${H.value.find(({value:e})=>e===I.value[`${O.value}_typeid`]).label}\n${R.value.find(({value:l})=>l===e[`${O.value}_state`]).label}`}}),l.setData(e)}L("addsuccess"),N.value=!1}))})}function X(){let e=JSON.parse(JSON.stringify(I.value));return j(e[`${O.value}_json`])||(e[`${O.value}_json`]=D(e[`${O.value}_json`])),e}return(e,l)=>{const a=u("el-form-item"),t=u("el-input"),o=u("el-radio"),b=u("el-radio-group"),y=u("el-input-number"),V=u("el-form"),w=u("el-button"),x=u("el-dialog");return n(),d(x,{title:s(B),modelValue:s(N),"onUpdate:modelValue":l[5]||(l[5]=e=>i(N)?N.value=e:null),width:"500px","align-center":"","append-to-body":"",draggable:"","show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1},{footer:v(()=>[g("div",U,[r(w,{type:"primary",onClick:W},{default:v(()=>[...l[6]||(l[6]=[c("确 定",-1)])]),_:1}),r(w,{onClick:Q},{default:v(()=>[...l[7]||(l[7]=[c("取 消",-1)])]),_:1})])]),default:v(()=>[r(V,{ref_key:"dataRef",ref:K,model:s(I),rules:s(q),"label-width":"110px"},{default:v(()=>[S.wfdef.def_name?(n(),d(a,{key:0,label:"工作流名称"},{default:v(()=>[c(_(S.wfdef.def_name),1)]),_:1})):f("",!0),r(a,{label:"节点名称",prop:`${s(O)}_name`},{default:v(()=>[r(t,{modelValue:s(I)[`${s(O)}_name`],"onUpdate:modelValue":l[0]||(l[0]=e=>s(I)[`${s(O)}_name`]=e),placeholder:"请输入工作流名称"},null,8,["modelValue"])]),_:1},8,["prop"]),r(a,{label:"节点类型"},{default:v(()=>[r(b,{modelValue:s(I)[`${s(O)}_typeid`],"onUpdate:modelValue":l[1]||(l[1]=e=>s(I)[`${s(O)}_typeid`]=e)},{default:v(()=>[(n(!0),m(p,null,$(s(H),e=>(n(),d(o,{key:e.value,value:e.value},{default:v(()=>[c(_(e.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(a,{label:"状态"},{default:v(()=>[r(b,{modelValue:s(I)[`${s(O)}_state`],"onUpdate:modelValue":l[2]||(l[2]=e=>s(I)[`${s(O)}_state`]=e)},{default:v(()=>[(n(!0),m(p,null,$(s(R),e=>(n(),d(o,{key:e.value,value:e.value},{default:v(()=>[c(_(e.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(a,{label:"显示排序"},{default:v(()=>[r(y,{modelValue:s(I)[`${s(O)}_sort`],"onUpdate:modelValue":l[3]||(l[3]=e=>s(I)[`${s(O)}_sort`]=e),"controls-position":"right",min:0},null,8,["modelValue"])]),_:1}),r(a,{label:"备注"},{default:v(()=>[r(t,{modelValue:s(I)[`${s(O)}_note`],"onUpdate:modelValue":l[4]||(l[4]=e=>s(I)[`${s(O)}_note`]=e),type:"textarea",placeholder:"请输入内容"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])}}};export{S as default};