| 1 |
- import{c as l,A as _,d as S,u as re,a as w,r as g,o as f,b as p,w as o,e as c,f as i,t as B,g as le,h as d,i as x,p as oe,j as ce,_ as ee,k as L,P as ie,l as se,m as ue,K as de,n as N}from"./index-3b8b93f4.js";var fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244 244 109.2 244 244-109.2 244-244 244z"}},{tag:"path",attrs:{d:"M512 392c-32.1 0-62.1 12.4-84.8 35.2-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8A118.57 118.57 0 00512 392z"}}]},name:"aim",theme:"outlined"};const pe=fe;function Y(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){me(n,r,t[r])})}return n}function me(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var z=function(e,t){var a=Y({},e,t.attrs);return l(_,Y({},a,{icon:pe}),null)};z.displayName="AimOutlined";z.inheritAttrs=!1;const ge=z;var he={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"};const ve=he;function E(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){_e(n,r,t[r])})}return n}function _e(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var j=function(e,t){var a=E({},e,t.attrs);return l(_,E({},a,{icon:ve}),null)};j.displayName="BellOutlined";j.inheritAttrs=!1;const be=j;var Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M380 704h264c4.4 0 8-3.6 8-8v-84c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v36H428v-36c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v84c0 4.4 3.6 8 8 8zm340-123a40 40 0 1080 0 40 40 0 10-80 0zm239-167.6L935.3 372a8 8 0 00-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 00-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 00-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 003-10.8zM840 517v237H184V517l15.6-43h624.8l15.6 43zM292.7 218.1l.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220l72.7-199.9zM224 581a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"car",theme:"outlined"};const ye=Oe;function U(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){$e(n,r,t[r])})}return n}function $e(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var C=function(e,t){var a=U({},e,t.attrs);return l(_,U({},a,{icon:ye}),null)};C.displayName="CarOutlined";C.inheritAttrs=!1;const xe=C;var Pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"};const Se=Pe;function I(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){we(n,r,t[r])})}return n}function we(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var H=function(e,t){var a=I({},e,t.attrs);return l(_,I({},a,{icon:Se}),null)};H.displayName="DatabaseOutlined";H.inheritAttrs=!1;const ze=H;var je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}}]},name:"desktop",theme:"outlined"};const Ce=je;function R(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){He(n,r,t[r])})}return n}function He(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var M=function(e,t){var a=R({},e,t.attrs);return l(_,R({},a,{icon:Ce}),null)};M.displayName="DesktopOutlined";M.inheritAttrs=!1;const Me=M;var De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 00-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"file-done",theme:"outlined"};const Ae=De;function q(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Fe(n,r,t[r])})}return n}function Fe(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var D=function(e,t){var a=q({},e,t.attrs);return l(_,q({},a,{icon:Ae}),null)};D.displayName="FileDoneOutlined";D.inheritAttrs=!1;const Q=D;var Te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};const ke=Te;function W(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Ve(n,r,t[r])})}return n}function Ve(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var A=function(e,t){var a=W({},e,t.attrs);return l(_,W({},a,{icon:ke}),null)};A.displayName="FileTextOutlined";A.inheritAttrs=!1;const Be=A;var Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"};const Ne=Le;function G(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Ye(n,r,t[r])})}return n}function Ye(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var F=function(e,t){var a=G({},e,t.attrs);return l(_,G({},a,{icon:Ne}),null)};F.displayName="HomeOutlined";F.inheritAttrs=!1;const Ee=F;var Ue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};const Ie=Ue;function J(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Re(n,r,t[r])})}return n}function Re(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var T=function(e,t){var a=J({},e,t.attrs);return l(_,J({},a,{icon:Ie}),null)};T.displayName="LogoutOutlined";T.inheritAttrs=!1;const qe=T;var Qe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}}]},name:"team",theme:"outlined"};const We=Qe;function X(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Ge(n,r,t[r])})}return n}function Ge(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var k=function(e,t){var a=X({},e,t.attrs);return l(_,X({},a,{icon:We}),null)};k.displayName="TeamOutlined";k.inheritAttrs=!1;const Je=k;var Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};const Ze=Xe;function Z(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Ke(n,r,t[r])})}return n}function Ke(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var V=function(e,t){var a=Z({},e,t.attrs);return l(_,Z({},a,{icon:Ze}),null)};V.displayName="UserOutlined";V.inheritAttrs=!1;const te=V,et={style:{height:"100%",display:"flex","align-items":"center"}},tt={style:{height:"25px",padding:"0px 13px 0px 19px",width:"126px",overflow:"hidden"}},nt=c("div",{style:{"font-size":"19px","font-weight":"bold","font-family":"'Microsoft YaHei', '微软雅黑', sans-serif"}},"驼人物联网平台",-1),at=c("div",{style:{"flex-grow":"1"}},null,-1),rt={style:{padding:"0px 16px",display:"flex",height:"100%","align-items":"center"}},lt={style:{"margin-right":"30px"}},ot={style:{color:"initial"},href:"#/large-screen",target:"_blank"},ct={style:{"margin-right":"40px"}},it=c("div",{style:{width:"1px","background-color":"#ccc",height:"100%","margin-right":"20px"}},null,-1),st={style:{"text-align":"right","margin-right":"14px","font-family":"PingFangSC, PingFang SC"}},ut={style:{"font-size":"14px",color:"#333333","font-weight":"bold"}},dt={style:{"font-size":"12px",color:"#999999"}},ft=c("span",null,"退出登录",-1),pt=S({__name:"CusHeader",setup(n){const e=re(),t=w(),a=r=>{console.log(r),t.push("/login")};return(r,b)=>{const O=g("a-image"),h=g("a-avatar"),u=g("a-menu-item"),s=g("a-menu"),y=g("a-dropdown"),P=g("a-layout-header");return f(),p(P,{style:{background:"#fff",padding:"0",height:"55px","line-height":"normal","border-bottom":"1px solid #eee"}},{default:o(()=>[c("div",et,[c("div",tt,[l(O,{style:{"max-height":"100%",width:"auto"},height:"100%",preview:!1,src:"/static/images/logo.png"})]),nt,at,c("div",rt,[c("div",lt,[c("a",ot,[l(i(Me),{style:{"font-size":"20px"}})])]),c("div",ct,[l(i(be),{style:{"font-size":"20px"}})]),it,c("div",st,[c("div",ut,[c("span",null,B(i(e).username),1)]),c("div",dt,[c("span",null,B(i(e).mobile),1)])]),c("div",null,[l(y,{trigger:"click",placement:"bottomLeft"},{overlay:o(()=>[l(s,null,{default:o(()=>[l(u,{onClick:a},{icon:o(()=>[l(i(qe))]),default:o(()=>[ft]),_:1})]),_:1})]),default:o(()=>[l(h,{size:35,style:{"background-color":"#1890ff"}},{icon:o(()=>[l(i(te))]),_:1})]),_:1})])])])]),_:1})}}}),v=n=>(oe("data-v-4cc272fc"),n=n(),ce(),n),mt=v(()=>c("div",{style:{height:"12px"}},null,-1)),gt=v(()=>c("span",null,"首页",-1)),ht=v(()=>c("div",{style:{padding:"23px 0px 11px 20px","font-family":"PingFangSC, PingFang SC","font-weight":"400","font-size":"12px",color:"#939393","line-height":"17px","text-align":"justify","font-style":"normal"}},[c("span",null,"设备接入")],-1)),vt=v(()=>c("span",null,"产品",-1)),_t=v(()=>c("span",null,"设备",-1)),bt=v(()=>c("span",null,"设备日志",-1)),Ot=v(()=>c("div",{style:{padding:"23px 0px 11px 20px","font-family":"PingFangSC, PingFang SC","font-weight":"400","font-size":"12px",color:"#939393","line-height":"17px","text-align":"justify","font-style":"normal"}},[c("span",null,"系统管理")],-1)),yt=v(()=>c("span",null,"用户管理",-1)),$t=v(()=>c("span",null,"角色管理",-1)),xt=v(()=>c("span",null,"资源管理",-1)),Pt=v(()=>c("span",null,"操作日志",-1)),St=v(()=>c("span",null,"基站管理",-1)),wt=S({__name:"CusMenu",props:["path"],setup(n){const e=n;le(()=>e.path,(h,u)=>{console.log("menu watch",h,u);let s=h;h.includes("/"+d+"/device/detail")?s="/"+d+"/device":h.includes("/"+d+"/product/detail")?s="/"+d+"/product":h.includes("/"+d+"/product/common")&&(s="/"+d+"/product"),r.value=[s]});const t=w(),a=x([]),r=x([]),b=x(!1),O=h=>{const u=h.key;console.log(u),t.push(u)};return(h,u)=>{const s=g("a-menu-item"),y=g("a-menu"),P=g("a-layout-sider");return f(),p(P,{collapsed:b.value,"onUpdate:collapsed":u[2]||(u[2]=$=>b.value=$),trigger:null,collapsible:"",style:{"background-color":"#FAFAFA","border-right":"1px solid #eee"}},{default:o(()=>[l(y,{openKeys:a.value,"onUpdate:openKeys":u[0]||(u[0]=$=>a.value=$),selectedKeys:r.value,"onUpdate:selectedKeys":u[1]||(u[1]=$=>r.value=$),mode:"inline",onSelect:O},{default:o(()=>[mt,(f(),p(s,{key:"/"+i(d)},{icon:o(()=>[l(i(Ee))]),default:o(()=>[gt]),_:1})),ht,(f(),p(s,{key:"/"+i(d)+"/product"},{icon:o(()=>[l(i(Q))]),default:o(()=>[vt]),_:1})),(f(),p(s,{key:"/"+i(d)+"/device"},{icon:o(()=>[l(i(xe))]),default:o(()=>[_t]),_:1})),(f(),p(s,{key:"/"+i(d)+"/device/log"},{icon:o(()=>[l(i(Q))]),default:o(()=>[bt]),_:1})),Ot,(f(),p(s,{key:"/"+i(d)+"/user"},{icon:o(()=>[l(i(te))]),default:o(()=>[yt]),_:1})),(f(),p(s,{key:"/"+i(d)+"/role"},{icon:o(()=>[l(i(Je))]),default:o(()=>[$t]),_:1})),(f(),p(s,{key:"/"+i(d)+"/menu"},{icon:o(()=>[l(i(ze))]),default:o(()=>[xt]),_:1})),(f(),p(s,{key:"/"+i(d)+"/operate/log"},{icon:o(()=>[l(i(Be))]),default:o(()=>[Pt]),_:1})),(f(),p(s,{key:"/"+i(d)+"/station"},{icon:o(()=>[l(i(ge))]),default:o(()=>[St]),_:1}))]),_:1},8,["openKeys","selectedKeys"])]),_:1},8,["collapsed"])}}});const zt=ee(wt,[["__scopeId","data-v-4cc272fc"]]);var jt={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};const Ct=jt;var Ht={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};const ne=Ht;var ae={lang:L({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Ct),timePickerLocale:L({},ne)};ae.lang.ok="确定";const K=ae;var m="${label}不是一个有效的${type}",Mt={locale:"zh-cn",Pagination:ie,DatePicker:K,TimePicker:ne,Calendar:K,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:m,method:m,array:m,object:m,number:m,date:m,boolean:m,integer:m,float:m,regexp:m,email:m,url:m,hex:m},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"}};const Dt=Mt,At=S({__name:"BasicLayout",setup(n){const e=w(),t=x();return se(()=>{console.log("layout mounted"),t.value=e.currentRoute.value.path}),ue(()=>{console.log("layout updated"),t.value=e.currentRoute.value.path}),(a,r)=>{const b=g("router-view"),O=g("a-config-provider"),h=g("a-layout-content"),u=g("a-layout");return f(),p(u,{style:{height:"100vh",overflow:"hidden"}},{default:o(()=>[l(i(pt)),l(u,{id:"components-layout"},{default:o(()=>[l(i(zt),{path:t.value},null,8,["path"]),l(u,{style:{"background-color":"#fff"}},{default:o(()=>[l(h,{class:"tr-content",style:{flex:"1","overflow-y":"auto","overflow-x":"hidden",background:"#fff"}},{default:o(()=>[l(O,{locale:i(Dt)},{default:o(()=>[l(b,null,{default:o(({Component:s,route:y})=>[y.meta.keepAlive?(f(),p(de,{key:0},[(f(),p(N(s)))],1024)):(f(),p(N(s),{key:1}))]),_:1})]),_:1},8,["locale"])]),_:1})]),_:1})]),_:1})]),_:1})}}});const Tt=ee(At,[["__scopeId","data-v-5c801f26"]]);export{Tt as default};
|