diff --git a/CentralizedMonitoring/src/main/java/com/nmgs/config/ThreadPoolConfig.java b/CentralizedMonitoring/src/main/java/com/nmgs/config/ThreadPoolConfig.java index 84be00f..d714411 100644 --- a/CentralizedMonitoring/src/main/java/com/nmgs/config/ThreadPoolConfig.java +++ b/CentralizedMonitoring/src/main/java/com/nmgs/config/ThreadPoolConfig.java @@ -21,6 +21,8 @@ public class ThreadPoolConfig { executor.setQueueCapacity(300); executor.setKeepAliveSeconds(300); executor.setThreadNamePrefix("NORMAL--"); + executor.setAwaitTerminationSeconds(60); + executor.setWaitForTasksToCompleteOnShutdown(true); executor.setRejectedExecutionHandler(new ThreadPoolExecutor.AbortPolicy()); executor.initialize(); return executor; diff --git a/CentralizedMonitoring/src/main/java/com/nmgs/mapper/CarLineMapper.xml b/CentralizedMonitoring/src/main/java/com/nmgs/mapper/CarLineMapper.xml index 027975c..3ae2f13 100644 --- a/CentralizedMonitoring/src/main/java/com/nmgs/mapper/CarLineMapper.xml +++ b/CentralizedMonitoring/src/main/java/com/nmgs/mapper/CarLineMapper.xml @@ -1,96 +1,126 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/CentralizedMonitoring/src/main/java/com/nmgs/util/LogUtil.java b/CentralizedMonitoring/src/main/java/com/nmgs/util/LogUtil.java index caa5fe7..1b9b8c4 100644 --- a/CentralizedMonitoring/src/main/java/com/nmgs/util/LogUtil.java +++ b/CentralizedMonitoring/src/main/java/com/nmgs/util/LogUtil.java @@ -71,7 +71,6 @@ public class LogUtil { reader.seek(reader.length()); reader.write(sb.toString().getBytes()); - } catch (IOException e) { e.printStackTrace(); System.out.println(e.getMessage()); diff --git a/CentralizedMonitoring/src/main/resources/static/View/assets/index.881f4cc0.js b/CentralizedMonitoring/src/main/resources/static/View/assets/index.975a1f81.js similarity index 99% rename from CentralizedMonitoring/src/main/resources/static/View/assets/index.881f4cc0.js rename to CentralizedMonitoring/src/main/resources/static/View/assets/index.975a1f81.js index 5948e51..4a80b4a 100644 --- a/CentralizedMonitoring/src/main/resources/static/View/assets/index.881f4cc0.js +++ b/CentralizedMonitoring/src/main/resources/static/View/assets/index.975a1f81.js @@ -58,7 +58,7 @@ var fQ=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var tAt=fQ((ri,aa `).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&zat[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};const CI=Symbol("internals");function Vv(e){return e&&String(e).trim().toLowerCase()}function z2(e){return e===!1||e==null?e:Ye.isArray(e)?e.map(z2):String(e)}function Bat(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Fat=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function w3(e,t,n,r,a){if(Ye.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!Ye.isString(t)){if(Ye.isString(r))return t.indexOf(r)!==-1;if(Ye.isRegExp(r))return r.test(t)}}function Hat(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Wat(e,t){const n=Ye.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}class $4{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(s,l,u){const c=Vv(l);if(!c)throw new Error("header name must be a non-empty string");const d=Ye.findKey(a,c);(!d||a[d]===void 0||u===!0||u===void 0&&a[d]!==!1)&&(a[d||l]=z2(s))}const o=(s,l)=>Ye.forEach(s,(u,c)=>i(u,c,l));return Ye.isPlainObject(t)||t instanceof this.constructor?o(t,n):Ye.isString(t)&&(t=t.trim())&&!Fat(t)?o(Vat(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Vv(t),t){const r=Ye.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return Bat(a);if(Ye.isFunction(n))return n.call(this,a,r);if(Ye.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Vv(t),t){const r=Ye.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||w3(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=Vv(o),o){const s=Ye.findKey(r,o);s&&(!n||w3(r,r[s],s,n))&&(delete r[s],a=!0)}}return Ye.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||w3(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return Ye.forEach(this,(a,i)=>{const o=Ye.findKey(r,i);if(o){n[o]=z2(a),delete n[i];return}const s=t?Hat(i):String(i).trim();s!==i&&delete n[i],n[s]=z2(a),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ye.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&Ye.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[CI]=this[CI]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=Vv(o);r[s]||(Wat(a,o),r[s]=!0)}return Ye.isArray(t)?t.forEach(i):i(t),this}}$4.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ye.reduceDescriptors($4.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ye.freezeMethods($4);var Xs=$4;function S3(e,t){const n=this||HT,r=t||n,a=Xs.from(r.headers);let i=r.data;return Ye.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function KG(e){return!!(e&&e.__CANCEL__)}function tm(e,t,n){bn.call(this,e==null?"canceled":e,bn.ERR_CANCELED,t,n),this.name="CanceledError"}Ye.inherits(tm,bn,{__CANCEL__:!0});function Gat(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new bn("Request failed with status code "+n.status,[bn.ERR_BAD_REQUEST,bn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}var Uat=Qo.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];Ye.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),Ye.isString(r)&&o.push("path="+r),Ye.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Yat(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Kat(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function jG(e,t){return e&&!Yat(t)?Kat(e,t):t}var jat=Qo.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(o){const s=Ye.isString(o)?a(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function qat(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Xat(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[i];o||(o=u),n[a]=l,r[a]=u;let d=i,f=0;for(;d!==a;)f+=n[d++],d=d%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o{const i=a.loaded,o=a.lengthComputable?a.total:void 0,s=i-n,l=r(s),u=i<=o;n=i;const c={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:a};c[t?"download":"upload"]=!0,e(c)}}const Zat=typeof XMLHttpRequest!="undefined";var Jat=Zat&&function(e){return new Promise(function(n,r){let a=e.data;const i=Xs.from(e.headers).normalize();let{responseType:o,withXSRFToken:s}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(Ye.isFormData(a)){if(Qo.hasStandardBrowserEnv||Qo.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[p,...g]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([p||"multipart/form-data",...g].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+g))}const f=jG(e.baseURL,e.url);d.open(e.method.toUpperCase(),WG(f,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function h(){if(!d)return;const p=Xs.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),m={data:!o||o==="text"||o==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:p,config:e,request:d};Gat(function(b){n(b),u()},function(b){r(b),u()},m),d=null}if("onloadend"in d?d.onloadend=h:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(h)},d.onabort=function(){!d||(r(new bn("Request aborted",bn.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new bn("Network Error",bn.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||GG;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),r(new bn(g,m.clarifyTimeoutError?bn.ETIMEDOUT:bn.ECONNABORTED,e,d)),d=null},Qo.hasStandardBrowserEnv&&(s&&Ye.isFunction(s)&&(s=s(e)),s||s!==!1&&jat(f))){const p=e.xsrfHeaderName&&e.xsrfCookieName&&Uat.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}a===void 0&&i.setContentType(null),"setRequestHeader"in d&&Ye.forEach(i.toJSON(),function(g,m){d.setRequestHeader(m,g)}),Ye.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),o&&o!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",xI(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",xI(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=p=>{!d||(r(!p||p.type?new tm(null,e,d):p),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const v=qat(f);if(v&&Qo.protocols.indexOf(v)===-1){r(new bn("Unsupported protocol "+v+":",bn.ERR_BAD_REQUEST,e));return}d.send(a||null)})};const MS={http:Sat,xhr:Jat};Ye.forEach(MS,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const TI=e=>`- ${e}`,Qat=e=>Ye.isFunction(e)||e===null||e===!1;var qG={getAdapter:e=>{e=Ye.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : `+i.map(TI).join(` -`):" "+TI(i[0]):"as no adapter specified";throw new bn("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:MS};function C3(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tm(null,e)}function MI(e){return C3(e),e.headers=Xs.from(e.headers),e.data=S3.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),qG.getAdapter(e.adapter||HT.adapter)(e).then(function(r){return C3(e),r.data=S3.call(e,e.transformResponse,r),r.headers=Xs.from(r.headers),r},function(r){return KG(r)||(C3(e),r&&r.response&&(r.response.data=S3.call(e,e.transformResponse,r.response),r.response.headers=Xs.from(r.response.headers))),Promise.reject(r)})}const kI=e=>e instanceof Xs?e.toJSON():e;function Fh(e,t){t=t||{};const n={};function r(u,c,d){return Ye.isPlainObject(u)&&Ye.isPlainObject(c)?Ye.merge.call({caseless:d},u,c):Ye.isPlainObject(c)?Ye.merge({},c):Ye.isArray(c)?c.slice():c}function a(u,c,d){if(Ye.isUndefined(c)){if(!Ye.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!Ye.isUndefined(c))return r(void 0,c)}function o(u,c){if(Ye.isUndefined(c)){if(!Ye.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,c)=>a(kI(u),kI(c),!0)};return Ye.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||a,f=d(e[c],t[c],c);Ye.isUndefined(f)&&d!==s||(n[c]=f)}),n}const XG="1.6.2",WT={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{WT[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const AI={};WT.transitional=function(t,n,r){function a(i,o){return"[Axios v"+XG+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(t===!1)throw new bn(a(o," has been removed"+(n?" in "+n:"")),bn.ERR_DEPRECATED);return n&&!AI[o]&&(AI[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,s):!0}};function eit(e,t,n){if(typeof e!="object")throw new bn("options must be an object",bn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new bn("option "+i+" must be "+l,bn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new bn("Unknown option "+i,bn.ERR_BAD_OPTION)}}var kS={assertOptions:eit,validators:WT};const Ll=kS.validators;class $y{constructor(t){this.defaults=t,this.interceptors={request:new SI,response:new SI}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fh(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&kS.assertOptions(r,{silentJSONParsing:Ll.transitional(Ll.boolean),forcedJSONParsing:Ll.transitional(Ll.boolean),clarifyTimeoutError:Ll.transitional(Ll.boolean)},!1),a!=null&&(Ye.isFunction(a)?n.paramsSerializer={serialize:a}:kS.assertOptions(a,{encode:Ll.function,serialize:Ll.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&Ye.merge(i.common,i[n.method]);i&&Ye.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=Xs.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,d=0,f;if(!l){const v=[MI.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),f=v.length,c=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,s){r.reason||(r.reason=new tm(i,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new GT(function(a){t=a}),cancel:t}}}var tit=GT;function nit(e){return function(n){return e.apply(null,n)}}function rit(e){return Ye.isObject(e)&&e.isAxiosError===!0}const AS={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(AS).forEach(([e,t])=>{AS[t]=e});var ait=AS;function ZG(e){const t=new V2(e),n=IG(V2.prototype.request,t);return Ye.extend(n,V2.prototype,t,{allOwnKeys:!0}),Ye.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return ZG(Fh(e,a))},n}const br=ZG(HT);br.Axios=V2;br.CanceledError=tm;br.CancelToken=tit;br.isCancel=KG;br.VERSION=XG;br.toFormData=P4;br.AxiosError=bn;br.Cancel=br.CanceledError;br.all=function(t){return Promise.all(t)};br.spread=nit;br.isAxiosError=rit;br.mergeConfig=Fh;br.AxiosHeaders=Xs;br.formToJSON=e=>YG(Ye.isHTMLForm(e)?new FormData(e):e);br.getAdapter=qG.getAdapter;br.HttpStatusCode=ait;br.default=br;var Wi=br;Wi.defaults.baseURL="http://"+window.location.host;Wi.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8";Wi.defaults.withCredentials=!0;Wi.defaults.changeOrigin=!0;Wi.defaults.headers.post["Access-Control-Allow-Origin-Type"]="*";Wi.defaults.timeout=15e4;Wi.interceptors.request.use(e=>{const t=localStorage.getItem("token");if(t==null){try{window.parent.toLogin()}catch{pM.push("/dist/login")}Dn.error("\u8BF7\u767B\u5F55!");return}return t&&(e.headers.token=t),e},e=>Promise.error(e));Wi.interceptors.response.use(e=>e.status==200?(e.headers.token!=null&&e.headers.token!=""&&localStorage.setItem("token",e.headers.token),Promise.resolve(e)):Promise.reject(e),e=>{if(e!=null&&e.response.data.status==-1){try{window.parent.toLogin()}catch{pM.push("/dist/login")}Dn.error("\u767B\u9646\u8D85\u65F6\u8BF7\u91CD\u65B0\u767B\u5F55!")}else alert(JSON.stringify(e),"\u8BF7\u6C42\u5F02\u5E38",{confirmButtonText:"\u786E\u5B9A",callback:t=>{console.log(t)}})});var R4={post(e,t){return t==null&&(t={}),new Promise((n,r,a)=>{Wi({method:"post",url:e,data:t,crossDomain:!0,headers:{"Content-Type":"application/json;charset=UTF-8;charset=UTF-8"},responseType:a==null||a==""?"json":a}).then(i=>{n(i.data)}).catch(i=>{r(i)})})},get(e,t,n){return new Promise((r,a,i)=>{Wi({method:"get",url:e,params:t,crossDomain:!0,headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8",withCredentials:!0},responseType:n==null||n==""?"json":n}).then(o=>{r(o)}).catch(o=>{a(o)})})}};const{get:rAt,post:UT}=R4,JG=e=>UT("/CentralizedMonitoring/CarLine/getTreeData",e),iit=e=>UT("/CentralizedMonitoring/CarLine/selectPortLogs",e),oit=e=>UT("/CentralizedMonitoring/CarLine/getSelectInfo",e);var sit=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var a=42;t[n]=a;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,n);if(o.value!==a||o.enumerable!==!0)return!1}return!0},EI=typeof Symbol!="undefined"&&Symbol,lit=sit,uit=function(){return typeof EI!="function"||typeof Symbol!="function"||typeof EI("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:lit()},cit="Function.prototype.bind called on incompatible ",x3=Array.prototype.slice,dit=Object.prototype.toString,fit="[object Function]",hit=function(t){var n=this;if(typeof n!="function"||dit.call(n)!==fit)throw new TypeError(cit+n);for(var r=x3.call(arguments,1),a,i=function(){if(this instanceof a){var c=n.apply(this,r.concat(x3.call(arguments)));return Object(c)===c?c:this}else return n.apply(t,r.concat(x3.call(arguments)))},o=Math.max(0,n.length-r.length),s=[],l=0;l1&&typeof n!="boolean")throw new sh('"allowMissing" argument must be a boolean');if(Sit(/^%?[^%]*%?$/,t)===null)throw new Hh("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Tit(t),a=r.length>0?r[0]:"",i=Mit("%"+a+"%",n),o=i.name,s=i.value,l=!1,u=i.alias;u&&(a=u[0],wit(r,bit([0,1],u)));for(var c=1,d=!0;c=r.length){var p=ud(s,f);d=!!p,d&&"get"in p&&!("originalValue"in p.get)?s=p.get:s=s[f]}else d=Ry(s,f),s=s[f];d&&!l&&(lh[o]=s)}}return s},eU={exports:{}};(function(e){var t=YT,n=KT,r=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||t.call(a,r),o=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}e.exports=function(d){var f=i(t,a,arguments);if(o&&s){var h=o(f,"length");h.configurable&&s(f,"length",{value:1+l(0,d.length-(arguments.length-1))})}return f};var u=function(){return i(t,r,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u})(eU);var tU=KT,nU=eU.exports,kit=nU(tU("String.prototype.indexOf")),Ait=function(t,n){var r=tU(t,!!n);return typeof r=="function"&&kit(t,".prototype.")>-1?nU(r):r},jT=KT,sv=Ait;jT("%TypeError%");jT("%WeakMap%",!0);jT("%Map%",!0);sv("WeakMap.prototype.get",!0);sv("WeakMap.prototype.set",!0);sv("WeakMap.prototype.has",!0);sv("Map.prototype.get",!0);sv("Map.prototype.set",!0);sv("Map.prototype.has",!0);(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})();var rU="./resource/img/normal.png",aU="./resource/img/disConnect.png";const Eit={name:"TreeData",data(){return{treeHeight:"",WindowsHeight:"",radiusStyle:"",treeStyle:"",stanTreeData:[],TreeLoading:!1,portSta:{},defaultProps:{value:"treeId",children:"portList",label:"labelName"}}},methods:{loadTreeData(){this.TreeLoading=!0,JG({manNo:localStorage.getItem("mannoDe")}).then(e=>{for(let t=0;t0){this.TreeLoading=!0;for(let r=0;r0)for(let t=0;t{this.WindowsHeight=document.documentElement.clientHeight,this.radiusStyle="width: 100%;height: "+this.WindowsHeight*.9+"px",this.treeStyle=this.WindowsHeight*.9-100+"px",this.treeHeight=this.WindowsHeight*.9-100}},created(){this.WindowsHeight=document.documentElement.clientHeight,this.radiusStyle="width: 100%;height: "+this.WindowsHeight*.9+"px",this.treeStyle="height: "+(this.WindowsHeight*.9-100)+"px",this.treeHeight=this.WindowsHeight*.9-100}},Dit=e=>(zx("data-v-ef635920"),e=e(),Vx(),e),Iit=Dit(()=>L("h1",{style:{"text-align":"center",height:"50px"}},"\u7AD9\u70B9\u5217\u8868",-1)),Lit={key:0,src:rU,style:{width:"15px",height:"15px"}},Pit={key:1,src:aU,style:{width:"15px",height:"15px"}};function $it(e,t,n,r,a,i){const o=$T,s=Yi,l=kd;return A(),R("div",{class:"radius",style:We(a.radiusStyle)},[Iit,L("div",{style:We(a.treeStyle)},[H(s,null,{default:Y(()=>[ft((A(),se(o,{ref:"treeRef",data:a.stanTreeData,props:a.defaultProps,"show-checkbox":"","default-expand-all":"true","node-key":"id",height:a.treeHeight,"highlight-current":"",accordion:"","expand-on-click-node":!1,onCheckChange:i.selectChange},{default:Y(({node:u})=>[a.portSta[u.label]!=null&&a.portSta[u.label]?(A(),R("img",Lit)):le("",!0),a.portSta[u.label]!=null&&!a.portSta[u.label]?(A(),R("img",Pit)):le("",!0),L("span",null,Ie(u.label),1)]),_:1},8,["data","props","height","onCheckChange"])),[[l,a.TreeLoading]])]),_:1})],4)],4)}var Rit=gl(Eit,[["render",$it],["__scopeId","data-v-ef635920"],["__file","D:/JAVA/JAVAIDE/WorkSpace/CentralizedMonitoring/CentralizedMonitoringView/src/views/CarLine/components/TreeData.vue"]]);let t1;const Oit=new Uint8Array(16);function Nit(){if(!t1&&(t1=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!t1))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t1(Oit)}const Wr=[];for(let e=0;e<256;++e)Wr.push((e+256).toString(16).slice(1));function zit(e,t=0){return Wr[e[t+0]]+Wr[e[t+1]]+Wr[e[t+2]]+Wr[e[t+3]]+"-"+Wr[e[t+4]]+Wr[e[t+5]]+"-"+Wr[e[t+6]]+Wr[e[t+7]]+"-"+Wr[e[t+8]]+Wr[e[t+9]]+"-"+Wr[e[t+10]]+Wr[e[t+11]]+Wr[e[t+12]]+Wr[e[t+13]]+Wr[e[t+14]]+Wr[e[t+15]]}const Vit=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var LI={randomUUID:Vit};function Bit(e,t,n){if(LI.randomUUID&&!t&&!e)return LI.randomUUID();e=e||{};const r=e.random||(e.rng||Nit)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let a=0;a<16;++a)t[n+a]=r[a];return t}return zit(r)}var k3={isString:function(e){return Object.prototype.toString.call(e)==="[object String]"},isArray:function(e){return Object.prototype.toString.call(e)==="[object Array]"},isNumber:function(e){return Object.prototype.toString.call(e)==="[object Number]"},isDate:function(e){return Object.prototype.toString.call(e)==="[object Date]"},isBoolean:function(e){return Object.prototype.toString.call(e)==="[object Boolean]"},isObject:function(e){return Object.prototype.toString.call(e)==="[object Object]"},isFunction:function(e){return Object.prototype.toString.call(e)==="[object Function]"},isFile:function(e){return Object.prototype.toString.call(e)==="[object File]"},isNull:function(e){return Object.prototype.toString.call(e)==="[object Null]"},isUndefined:function(e){return Object.prototype.toString.call(e)==="[object Undefined]"},isRegExp:function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},getType:function(e){return{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"}[Object.prototype.toString.call(e)]}};let Ny={copy:function(){return function e(t){const n=k3.getType(t);let r;if(n==="array"){r=[];for(let a=0;a{n.push(r),r.children&&r.children.length>0&&n.push(...e(r.children))}),n}}(),dateFormat:function(e){const t=e;if(t!=null){var n=new Date(t),r=n.getFullYear(),a=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,i=n.getDate()<10?"0"+n.getDate():n.getDate(),o=n.getHours()<10?"0"+n.getHours():n.getHours(),s=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),l=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return r+"-"+a+"-"+i+" "+o+":"+s+":"+l}},dateFormatDay:function(e){const t=e;if(t!=null){var n=new Date(t),r=n.getFullYear(),a=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,i=n.getDate()<10?"0"+n.getDate():n.getDate();return r+"-"+a+"-"+i}},checkMonth(e){return e<10&&(e="0"+e),e},MonthAdd(e,t){let n=e;n=new Date(n);let r=n.setMonth(n.getMonth()+t);return r=new Date(r),e=r,e},YearAdd(e,t){let n=e;n=new Date(n);let r=n.setYear(n.getFullYear()+t);return r=new Date(r),e=r,e},toCamelCase:function(e){return e.replace(/([A-Z])/g,"_$1")},ensureNotNull:function(e){return k3.isNull(e)||k3.isUndefined(e)?0:e},deepLocate:function(){return function e(t,n){let r=[];return n.forEach(a=>{r.push(a),a.children&&a.children.length>0&&r.push(...e(a.children))}),r}}(),getParentNodes:function(){return function e(t,n,r={label:"name",key:"id",children:"children"}){let a=[];return(n||[]).forEach(i=>{if(a.length==0){if(t==(i[r.key]||0))a.push(i);else if(i[r.children]&&i[r.children].length>0){const o=e(i[r.children]);o.length>0&&(a.push(i),a=a.concat(o))}}}),a}}()};const Fit={name:"selectLogs",props:["staNoPortNo","labelName"],data(){return{locale:OT,tableLoading:!1,tableData:[],myHeight:500,searchForm:{startHour:0,endHour:23,staNoPortNo:"",dateTime:""},text:"",startHourList:[],endHourList:[],selectDB:!0,selectRAM:!1,rowIndex:-1}},watch:{text:function(e,t){e!=t&&(this.selectRAM=!0,this.rowIndex=-1)},searchForm:{deep:!0,handler(e,t){this.selectDB=!0}}},methods:{async network(){if(this.text=this.text.trim(),this.selectDB&&(this.tableLoading=!0,await iit(this.searchForm).then(e=>{this.tableData=e,this.rowIndex=-1,this.selectDB=!1,this.tableLoading=!1})),this.selectRAM){this.rowIndex>=this.tableData.length&&(this.rowIndex=-1);for(let e=this.rowIndex+1;e-1){this.rowIndex=e,this.$refs.scroll.wrapRef.scrollTop=e*50;break}e==this.tableData.length-1&&(this.rowIndex=-1,Dn.error("\u6211\u5DF2\u7ECF\u627E\u5230\u5E95\u4E86\uFF01\u4F46\u662F\u6CA1\u627E\u5230\u5305\u542B"+this.text+"\u7684\u65E5\u5FD7"))}}}},mounted(){this.searchForm.dateTime=Ny.dateFormatDay(new Date),this.searchForm.staNoPortNo=this.$props.staNoPortNo,this.myHeight="height:"+document.documentElement.clientHeight*.6+"px",window.onresize=()=>{this.myHeight="height:"+document.documentElement.clientHeight*.6+"px"}}},iU=e=>(zx("data-v-7d1c0b9a"),e=e(),Vx(),e),Hit={style:{padding:"10px 0",width:"100%"}},Wit=iU(()=>L("span",{style:{"vertical-align":"middle"}}," \u641C\u7D22 ",-1)),Git=iU(()=>L("div",null,null,-1)),Uit={style:{"text-align":"right"}},Yit=Lt(" ----> "),Kit={style:{"text-align":"left"}},jit={style:{"text-align":"right",color:"orange"}},qit=Lt(" ----> "),Xit={style:{"text-align":"left",color:"orange"}};function Zit(e,t,n,r,a,i){const o=nT,s=G5,l=av,u=Td,c=hs,d=Or,f=dt("search"),h=je,v=pr,p=rv,g=Yi,m=kd;return A(),se(p,null,{default:Y(()=>[H(l,{span:24},{default:Y(()=>[L("div",Hit,[H(p,null,{default:Y(()=>[H(l,{span:6},{default:Y(()=>[H(s,{label:"\u65E5\u5FD7\u65E5\u671F","label-width":"80px"},{default:Y(()=>[H(o,{modelValue:a.searchForm.dateTime,"onUpdate:modelValue":t[0]||(t[0]=y=>a.searchForm.dateTime=y),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"\u65E5\u5FD7\u65E5\u671F",style:{width:"185px","margin-left":"0.5%","margin-top":"0px"}},null,8,["modelValue"])]),_:1})]),_:1}),H(l,{span:4},{default:Y(()=>[H(s,{label:"\u5F00\u59CB\u5C0F\u65F6","label-width":"80px"},{default:Y(()=>[H(c,{modelValue:a.searchForm.startHour,"onUpdate:modelValue":t[1]||(t[1]=y=>a.searchForm.startHour=y),class:"m-2",clearable:"",placeholder:"\u5F00\u59CB\u5C0F\u65F6",style:{width:"100px","margin-left":"0.5%","margin-top":"0px"}},{default:Y(()=>[(A(!0),R(Fe,null,bt(a.searchForm.endHour==""?24:a.searchForm.endHour,y=>(A(),se(u,{label:y-1,value:y-1},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1}),H(l,{span:4},{default:Y(()=>[H(s,{label:"\u7ED3\u675F\u5C0F\u65F6","label-width":"80px"},{default:Y(()=>[H(c,{modelValue:a.searchForm.endHour,"onUpdate:modelValue":t[2]||(t[2]=y=>a.searchForm.endHour=y),class:"m-2",clearable:"",placeholder:"\u7ED3\u675F\u5C0F\u65F6",style:{width:"100px","margin-left":"0.5%","margin-top":"0px"}},{default:Y(()=>[(A(!0),R(Fe,null,bt(24-a.searchForm.startHour,y=>(A(),se(u,{label:y-1+a.searchForm.startHour,value:y-1+a.searchForm.startHour},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1}),H(l,{span:4},{default:Y(()=>[H(s,{label:"\u5185\u5BB9","label-width":"40px"},{default:Y(()=>[H(d,{style:{width:"150px","margin-left":"0.5%"},placeholder:"\u5185\u5BB9",modelValue:a.text,"onUpdate:modelValue":t[3]||(t[3]=y=>a.text=y)},null,8,["modelValue"])]),_:1})]),_:1}),H(l,{span:4},{default:Y(()=>[H(v,{type:"primary",style:{"margin-left":"0.5%","margin-top":"0px"},onClick:i.network},{default:Y(()=>[H(h,{style:{"vertical-align":"middle"}},{default:Y(()=>[H(f)]),_:1}),Wit]),_:1},8,["onClick"])]),_:1})]),_:1})]),Git,ft((A(),se(g,{ref:"scroll",style:We(a.myHeight)},{default:Y(()=>[(A(!0),R(Fe,null,bt(a.tableData,(y,b)=>(A(),R("div",{ref_for:!0,ref:"collItem",key:y,class:"scrollbar-demo-item"},[b!=a.rowIndex?(A(),se(p,{key:0,style:{width:"100%"}},{default:Y(()=>[H(l,{span:10},{default:Y(()=>[L("div",Uit,Ie(y.TIME),1)]),_:2},1024),H(l,{span:4},{default:Y(()=>[Yit]),_:1}),H(l,{span:10},{default:Y(()=>[L("div",Kit,Ie(y.TEXT),1)]),_:2},1024)]),_:2},1024)):le("",!0),b==a.rowIndex?(A(),se(p,{key:1,style:{width:"100%"}},{default:Y(()=>[H(l,{span:10},{default:Y(()=>[L("div",jit,Ie(y.TIME),1)]),_:2},1024),H(l,{span:4},{default:Y(()=>[qit]),_:1}),H(l,{span:10},{default:Y(()=>[L("div",Xit,Ie(y.TEXT),1)]),_:2},1024)]),_:2},1024)):le("",!0)]))),128))]),_:1},8,["style"])),[[m,a.tableLoading]])]),_:1})]),_:1})}var Jit=gl(Fit,[["render",Zit],["__scopeId","data-v-7d1c0b9a"],["__file","D:/JAVA/JAVAIDE/WorkSpace/CentralizedMonitoring/CentralizedMonitoringView/src/views/CarLine/components/selectLogs.vue"]]);const Qit={name:"PortInfo",components:{selectLogs:Jit},data(){return{spanStyle:"font-size: 15px;margin-top: 2px;margin-bottom: 2px",textStyle:" font-size: 14px;",rowNum:6,WindowsHeight:20,itemNum:20,socket:null,Search:u4,socketLoading:!0,baseUrl:Wi.defaults.baseURL.replaceAll("http://",""),socketId:Bit(),portInfoMap:new Map,portInfoMapIterator:null,logsDialog:!1,staNoPortNo:"",labelName:"",manNo:localStorage.getItem("mannoDe")}},watch:{rowNum:{handler(e,t){e==8?(this.textStyle="font-size: 9px;",this.spanStyle="font-size: 12px;margin-top: 2px;margin-bottom: 2px"):(this.textStyle="font-size: 14px;",this.spanStyle="font-size: 15px;margin-top: 2px;margin-bottom: 2px")}}},methods:{changeSelect(e,t){const n=this,r=e.STANO+"-"+e.PORTNO;e.key=r,e.COMLIST=[],e.imgBase64="",e.CarInfo="",t&&(e.loading=!0,this.portInfoMap.set(r,e)),this.portInfoMapIterator=this.portInfoMap.values(),this.$nextTick(()=>{n.openAutoLoadCom(r,t)})},openAutoLoadCom(e,t){const n=this,r=this.portInfoMap.get(e);t?(r.AUTOLOAD=setInterval(()=>{this.itemNum++;const a="scrollbar"+e,i="div"+e;this.$nextTick(()=>{n.$refs[a][0].setScrollTop(n.$refs[i][0].clientHeight)})},1e3),this.portInfoMap.set(e,r)):(clearInterval(r.AUTOLOAD),this.portInfoMap.delete(e)),this.portInfoMapIterator=this.portInfoMap.values(),t?this.onSend(e,"open"):this.onSend(e,"close"),this.$emit("closeTreeLoading")},initSocket(){const e="ws://"+this.baseUrl+"/CentralizedMonitoring/WebSocket?socketId="+this.socketId;this.socket=new WebSocket(e),this.socketOnClose(),this.socketOnOpen(),this.socketOnError(),this.socketOnMessage()},socketOnOpen(){this.socket.onopen=()=>{this.$emit("changeLoading",!1),this.socketLoading=!1;const e=this;this.$emit("reCheckData"),window.setInterval(()=>{setTimeout(()=>{e.sendUntitled("")},0)},1e3)}},socketOnMessage:function(){this.socket.onmessage=e=>{const t=JSON.parse(e.data),n=this.portInfoMap.get(t.staNoPortNo);if(t.type=="ComStrList"){n.loading=!1;let r=JSON.parse(t.value);n.COMLIST=r;const a=r[r.length-1].stat;a!=null&&a!=""&&this.$emit("changeTreeSta",n.labelName,a==1)}else if(t.type=="ComStr"||t.type=="ImgBase64")if(n.loading=!1,t.type=="ComStr"){let r=JSON.parse(t.value);n.COMLIST=this.addList(n.COMLIST,r),r.stat!=null&&r.stat!=""&&this.$emit("changeTreeSta",n.labelName,r.stat==1)}else t.type=="ImgBase64"&&(n.imgBase64=t.value);else t.type=="CarInfo"?n!=null&&(n.CarInfo=t.value):t.type=="Untitled"&&this.$emit("changeUntitledData",JSON.parse(t.value));(t.type=="CarInfo"||t.type=="ImgBase64"||t.type=="ComStr"||t.type=="ComStrList")&&(this.portInfoMap.set(t.staNoPortNo,n),this.portInfoMapIterator=this.portInfoMap.values())}},addList(e,t){if(e!=null&&e.length>80)for(let n=0;n{console.log("close socket")}},socketOnError(){this.socket.onerror=()=>{this.socketIsNoOpen=!0;const e=this;console.log("socket \u94FE\u63A5\u5931\u8D25 \u91CD\u65B0\u94FE\u63A5"),this.socketOnClose(),window.setTimeout(()=>{e.initSocket()},3e3),console.log("socket \u94FE\u63A5\u5931\u8D25")}},onSend(e,t){let n={staNoPortNo:e,command:t};this.socket.send(JSON.stringify(n))},startAutoLoad(e){const t=this,n=this.portInfoMap.get(e);n.AUTOLOAD=setInterval(()=>{this.itemNum++;const r="scrollbar"+e,a="div"+e;this.$nextTick(()=>{t.$refs[r][0].setScrollTop(t.$refs[a][0].clientHeight)})},1e3),this.portInfoMap.set(e,n),this.portInfoMapIterator=this.portInfoMap.values()},stopAutoLoad(e){const t=this.portInfoMap.get(e);clearInterval(t.AUTOLOAD),this.portInfoMap.set(e,t),this.portInfoMapIterator=this.portInfoMap.values()},openSelectLogs(e,t){this.staNoPortNo=e,this.labelName=t,this.logsDialog=!0},sendUntitled(e){let t={manNo:this.manNo,command:"Untitled",staNo:e};this.socket.send(JSON.stringify(t))}},mounted(){this.WindowsHeight=document.documentElement.clientHeight,window.onresize=()=>{this.WindowsHeight=document.documentElement.clientHeight},this.initSocket()},beforeUnmount(){this.socketOnClose()}},eot={class:"card-header"},tot={style:{width:"100%"}},not={class:"text item"},rot={key:0,class:"scrollbar-demo-item",style:{color:"red"}},aot={key:1,class:"scrollbar-demo-item"},iot=["innerHTML"];function oot(e,t,n,r,a,i){const o=pr,s=KH,l=rv,u=Yi,c=UF,d=av,f=dt("select-logs"),h=iT,v=kd;return A(),R(Fe,null,[H(u,{height:a.WindowsHeight*.9,style:{width:"100%"}},{default:Y(()=>[H(l,{style:{width:"100%"}},{default:Y(()=>[(A(!0),R(Fe,null,bt(a.portInfoMapIterator,p=>(A(),se(d,{span:24/a.rowNum},{default:Y(()=>[ft((A(),se(c,{class:"box-card"},{header:Y(()=>[L("div",eot,[L("span",tot,Ie(p.STANAME+"-"+p.labelName),1),H(o,{icon:a.Search,type:"primary",circle:"",style:{"margin-top":"0px","z-index":"0"},onClick:g=>i.openSelectLogs(p.STANO+"-"+p.PORTNO,p.STANAME+"-"+p.labelName)},null,8,["icon","onClick"])])]),default:Y(()=>[L("div",not,[H(l,null,{default:Y(()=>[H(l,{style:{width:"100%"}},{default:Y(()=>[H(s,{src:"data:image/png;base64,"+p.imgBase64,"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"preview-src-list":["data:image/png;base64,"+p.imgBase64],style:{"min-width":"60%",height:"120px"},fit:"cover"},null,8,["src","zoom-rate","min-scale","preview-src-list"])]),_:2},1024),H(l,{style:{width:"100%"},onMouseenter:g=>i.stopAutoLoad(p.key),onMouseleave:g=>i.startAutoLoad(p.key)},{default:Y(()=>[H(u,{ref_for:!0,ref:"scrollbar"+p.key,class:"radius",height:"180px",style:{width:"100%"}},{default:Y(()=>[L("div",{ref_for:!0,ref:"div"+p.key},[(A(!0),R(Fe,null,bt(p.COMLIST,g=>(A(),R("p",{key:p,style:We(a.spanStyle)},[g.kind==2?(A(),R("span",rot,Ie(g.text),1)):le("",!0),g.kind!=2?(A(),R("span",aot,Ie(g.text),1)):le("",!0)],4))),128))],512)]),_:2},1536)]),_:2},1032,["onMouseenter","onMouseleave"]),L("span",{class:"carinfo",innerHTML:p.CarInfo,style:We(a.textStyle)},null,12,iot)]),_:2},1024)])]),_:2},1024)),[[v,p.loading]])]),_:2},1032,["span"]))),256))]),_:1})]),_:1},8,["height"]),H(h,{modelValue:a.logsDialog,"onUpdate:modelValue":t[0]||(t[0]=p=>a.logsDialog=p),draggable:"",title:a.labelName+"\u5386\u53F2\u65E5\u5FD7","destroy-on-close":"",width:"60%"},{default:Y(()=>[H(f,{staNoPortNo:a.staNoPortNo,labelName:a.labelName},null,8,["staNoPortNo","labelName"])]),_:1},8,["modelValue","title"])],64)}var sot=gl(Qit,[["render",oot],["__scopeId","data-v-628f3857"],["__file","D:/JAVA/JAVAIDE/WorkSpace/CentralizedMonitoring/CentralizedMonitoringView/src/views/CarLine/components/PortInfo.vue"]]);const lot={name:"Untitled",data(){return{searchForm:{flagText:[],staNo:""},WindowsHeight:0,UntitledData:[],StaNameByManNo:[],FlagText:[],tableData:[],newValue:[],warningTableData:[]}},watch:{UntitledData:{deep:!0,handler(e,t){this.newValue=e,this.findData(null,e)}}},methods:{setUntitledData(e){this.UntitledData=e},dateDay(e,t){return Ny.dateFormatDay(e[t.property])},findData(e,t){let n=[],r=[],a=[];if(t==null?n=this.tableData:n=t,(n==null||n.length==0)&&(n=this.newValue),n!=null&&n.length>0&&(this.searchForm.staNo!=null&&this.searchForm.staNo!=""||this.searchForm.flagText!=null&&this.searchForm.flagText.length>0)){if(this.searchForm.staNo!=null&&this.searchForm.staNo!=""){for(let i=0;i0){n=this.tableData;for(let i=0;i0){e:for(let o=0;o-1){a[a.length]=n[i];break e}}this.warningTableData=a}}else n!=null&&n.length>0&&(this.searchForm.staNo==null||this.searchForm.staNo=="")&&(this.searchForm.flagText==null||this.searchForm.flagText.length==0)?(this.tableData=n,this.warningTableData=a):(this.tableData=[],this.warningTableData=[])}},mounted(){this.WindowsHeight=document.documentElement.clientHeight*.4,window.onresize=()=>{this.WindowsHeight=document.documentElement.clientHeight*.4},oit({manNo:localStorage.getItem("mannoDe")}).then(e=>{this.StaNameByManNo=e.StaNameByManNo,this.FlagText=e.FlagText})}},uot=L("h2",{style:{width:"50%","text-align":"right",float:"left"}},"\u6D41\u6C34",-1),cot=L("h2",{style:{width:"100%","text-align":"center"}},"\u5F02\u5E38\u6D41\u6C34",-1),dot=L("div",{style:{width:"1%",height:"110%","margin-top":"-10%",float:"left",border:"3px solid var(--el-border-color)"}},null,-1),fot={style:{width:"99%",float:"left"}};function hot(e,t,n,r,a,i){const o=Td,s=hs,l=bT,u=_T,c=av,d=rv;return A(),se(d,{style:{height:"100%"}},{default:Y(()=>[H(c,{span:14},{default:Y(()=>[uot,H(s,{style:{width:"200px","margin-right":"0.5%",float:"right"},modelValue:a.searchForm.flagText,"onUpdate:modelValue":t[0]||(t[0]=f=>a.searchForm.flagText=f),class:"m-2",clearable:"",multiple:"","max-collapse-tags":1,"collapse-tags":"","collapse-tags-tooltip":"",onChange:i.findData,placeholder:"\u8BF7\u9009\u62E9\u5F02\u5E38\u7C7B\u522B"},{default:Y(()=>[H(o,{label:"\u65E0",value:""}),(A(!0),R(Fe,null,bt(a.FlagText,f=>(A(),se(o,{label:f.TEXT,value:f.TEXT},null,8,["label","value"]))),256))]),_:1},8,["modelValue","onChange"]),H(s,{style:{width:"150px","margin-right":"0.5%",float:"right"},modelValue:a.searchForm.staNo,"onUpdate:modelValue":t[1]||(t[1]=f=>a.searchForm.staNo=f),class:"m-2",clearable:"",onChange:i.findData,placeholder:"\u6536\u8D39\u7AD9"},{default:Y(()=>[H(o,{label:"\u5168\u90E8",value:""}),(A(!0),R(Fe,null,bt(a.StaNameByManNo,f=>(A(),se(o,{label:f.STANAME,value:f.STANO},null,8,["label","value"]))),256))]),_:1},8,["modelValue","onChange"]),H(u,{data:a.tableData,stripe:"",style:{width:"100%"},border:"",height:a.WindowsHeight},{default:Y(()=>[H(l,{prop:"staname",label:"\u6536\u8D39\u7AD9",align:"center"}),H(l,{prop:"portno",label:"\u8F66\u9053",align:"center"}),H(l,{prop:"cardno",label:"\u5361\u53F7",align:"center",width:"160"}),H(l,{prop:"datemark",label:"\u8BB0\u5F55\u65F6\u95F4",align:"center",width:"170"}),H(l,{prop:"acarno",label:"\u8F66\u724C",align:"center",width:"110"}),H(l,{prop:"classnotext",label:"\u73ED\u6B21",align:"center"}),H(l,{prop:"man",label:"\u6536\u8D39\u5458\u59D3\u540D",align:"center",width:"120"}),H(l,{prop:"flagtext",label:"\u4E8B\u4EF6",align:"center",width:"120"}),H(l,{prop:"kindtext",label:"\u8F66\u79CD",align:"center"}),H(l,{prop:"incash",label:"\u5B9E\u6536",align:"center"}),H(l,{prop:"cash",label:"\u5E94\u6536\u91D1\u989D",align:"center",width:"100"}),H(l,{prop:"billno",label:"\u7968\u636E\u53F7",align:"center"}),H(l,{prop:"axiscount",label:"\u8F74\u6570",align:"center"}),H(l,{prop:"axistype",label:"\u8F74\u578B",align:"center"}),H(l,{prop:"inweight",label:"\u5B9E\u9645\u91CD\u91CF",align:"center",width:"100"}),H(l,{prop:"FEEWEIGHT",label:"\u8BA1\u8D39\u91CD\u91CF",align:"center",width:"100"}),H(l,{prop:"overweight",label:"\u8D85\u91CD\u603B\u91CF",align:"center",width:"100"}),H(l,{prop:"overratetext",label:"\u8D85\u91CD\u6BD4\u4F8B",align:"center",width:"100"}),H(l,{prop:"idt",label:"\u5165\u53E3\u65F6\u95F4",align:"center",width:"170"}),H(l,{prop:"istaname",label:"\u5165\u53E3\u7AD9",align:"center",width:"100"}),H(l,{prop:"IMANNO",label:"\u5165\u53E3\u6536\u8D39\u5458",align:"center",width:"100"}),H(l,{prop:"classdate",label:"\u65E5\u671F",align:"center",width:"110",formatter:i.dateDay},null,8,["formatter"])]),_:1},8,["data","height"])]),_:1}),H(c,{span:10,style:{width:"120%"}},{default:Y(()=>[cot,dot,L("div",fot,[H(u,{data:a.warningTableData,stripe:"",style:{"margin-left":"0px"},border:"",height:a.WindowsHeight},{default:Y(()=>[H(l,{prop:"staname",label:"\u6536\u8D39\u7AD9",align:"center"}),H(l,{prop:"portno",label:"\u8F66\u9053",align:"center"}),H(l,{prop:"cardno",label:"\u5361\u53F7",align:"center",width:"160"}),H(l,{prop:"datemark",label:"\u8BB0\u5F55\u65F6\u95F4",align:"center",width:"170"}),H(l,{prop:"acarno",label:"\u8F66\u724C",align:"center",width:"110"}),H(l,{prop:"classnotext",label:"\u73ED\u6B21",align:"center"}),H(l,{prop:"man",label:"\u6536\u8D39\u5458\u59D3\u540D",align:"center",width:"120"}),H(l,{prop:"flagtext",label:"\u4E8B\u4EF6",align:"center",width:"120"}),H(l,{prop:"kindtext",label:"\u8F66\u79CD",align:"center"}),H(l,{prop:"incash",label:"\u5B9E\u6536",align:"center"}),H(l,{prop:"cash",label:"\u5E94\u6536\u91D1\u989D",align:"center",width:"100"}),H(l,{prop:"billno",label:"\u7968\u636E\u53F7",align:"center"}),H(l,{prop:"axiscount",label:"\u8F74\u6570",align:"center"}),H(l,{prop:"axistype",label:"\u8F74\u578B",align:"center"}),H(l,{prop:"inweight",label:"\u5B9E\u9645\u91CD\u91CF",align:"center",width:"100"}),H(l,{prop:"FEEWEIGHT",label:"\u8BA1\u8D39\u91CD\u91CF",align:"center",width:"100"}),H(l,{prop:"overweight",label:"\u8D85\u91CD\u603B\u91CF",align:"center",width:"100"}),H(l,{prop:"overratetext",label:"\u8D85\u91CD\u6BD4\u4F8B",align:"center",width:"100"}),H(l,{prop:"idt",label:"\u5165\u53E3\u65F6\u95F4",align:"center",width:"170"}),H(l,{prop:"istaname",label:"\u5165\u53E3\u7AD9",align:"center",width:"100"}),H(l,{prop:"IMANNO",label:"\u5165\u53E3\u6536\u8D39\u5458",align:"center",width:"100"}),H(l,{prop:"classdate",label:"\u65E5\u671F",align:"center",width:"110",formatter:i.dateDay},null,8,["formatter"])]),_:1},8,["data","height"])])]),_:1})]),_:1})}var vot=gl(lot,[["render",hot],["__file","D:/JAVA/JAVAIDE/WorkSpace/CentralizedMonitoring/CentralizedMonitoringView/src/views/CarLine/components/Untitled.vue"]]);const pot={name:"CarLine",data(){return{rowNum:"6",WindowsHeight:"",PortInfoStyle:"",tabInfoStyle:"",socketLoading:!0,drawer:!1,UntitledData:[]}},methods:{openUntitled(){this.drawer=!0;const e=this;this.$nextTick(()=>{e.$refs.Untitled.setUntitledData(this.UntitledData)})},changeSelect(e,t){this.$refs.PortInfo.changeSelect(e,t)},changeLoading(e){this.socketLoading=e},changeTreeSta(e,t){this.$refs.TreeData.changeTreeSta(e,t)},changeUntitledData(e){const t=this;this.UntitledData=e,this.drawer&&this.$nextTick(()=>{t.$refs.Untitled.setUntitledData(e)})},sendUntitled(){const e=this;this.$nextTick(()=>{e.$refs.PortInfo.sendUntitled("")})},closeTreeLoading(){this.$refs.TreeData.TreeLoading=!1},changeRowNum(){this.$refs.PortInfo.rowNum=this.rowNum},reCheckData(){this.$refs.TreeData.reCheckData()}},mounted(){window.onresize=()=>{this.WindowsHeight=document.documentElement.clientHeight,this.PortInfoStyle="height:"+this.WindowsHeight*.9+"px",this.tabInfoStyle="height:"+this.WindowsHeight*.3+"px"}},created(){localStorage.setItem("mannoDe","0"),this.WindowsHeight=document.documentElement.clientHeight,this.PortInfoStyle="height:"+this.WindowsHeight*.9+"px",this.tabInfoStyle="height:"+this.WindowsHeight*.3+"px"},components:{TreeData:Rit,PortInfo:sot,Untitled:vot}},got={class:"radius",style:{"margin-left":"10px","margin-right":"10px"}},mot={style:{width:"100%",height:"30px"},align:"center"},yot=Lt("\u67E5\u770B\u6D41\u6C34"),_ot={style:{"margin-top":"20px"}};function bot(e,t,n,r,a,i){const o=dt("TreeData"),s=av,l=dt("PortInfo"),u=rv,c=pr,d=eF,f=sH,h=oH,v=dt("Untitled"),p=OH,g=kd;return A(),R(Fe,null,[L("div",{class:"aaa",onClick:t[0]||(t[0]=m=>a.drawer=!1)},[ft((A(),se(u,null,{default:Y(()=>[H(s,{span:4},{default:Y(()=>[H(o,{ref:"TreeData",onChangeSelect:i.changeSelect},null,8,["onChangeSelect"])]),_:1}),H(s,{span:20},{default:Y(()=>[L("div",got,[H(u,{style:We(a.PortInfoStyle)},{default:Y(()=>[H(l,{ref:"PortInfo",onChangeLoading:i.changeLoading,onChangeTreeSta:i.changeTreeSta,onCloseTreeLoading:i.closeTreeLoading,onChangeUntitledData:i.changeUntitledData,onReCheckData:i.reCheckData},null,8,["onChangeLoading","onChangeTreeSta","onCloseTreeLoading","onChangeUntitledData","onReCheckData"])]),_:1},8,["style"])])]),_:1})]),_:1})),[[g,a.socketLoading]])]),L("div",mot,[H(d,{position:"bottom",offset:0,style:{height:"0px"}},{default:Y(()=>[H(c,{type:"primary",onClick:i.openUntitled},{default:Y(()=>[yot]),_:1},8,["onClick"])]),_:1}),L("div",_ot,[H(h,{modelValue:a.rowNum,"onUpdate:modelValue":t[1]||(t[1]=m=>a.rowNum=m),onChange:i.changeRowNum,style:{"margin-right":"10px",float:"right"}},{default:Y(()=>[H(f,{label:"3"}),H(f,{label:"4"}),H(f,{label:"6"}),H(f,{label:"8"})]),_:1},8,["modelValue","onChange"])])]),H(p,{modelValue:a.drawer,"onUpdate:modelValue":t[2]||(t[2]=m=>a.drawer=m),"modal-class":"clickModal","close-on-click-modal":!0,title:"","with-header":!1,size:"50%","z-index":99,direction:"btt"},{default:Y(()=>[H(v,{ref:"Untitled"},null,512)]),_:1},8,["modelValue"])],64)}var wot=gl(pot,[["render",bot],["__scopeId","data-v-5dee4d9c"],["__file","D:/JAVA/JAVAIDE/WorkSpace/CentralizedMonitoring/CentralizedMonitoringView/src/views/CarLine/CarLineView.vue"]]),Sot="./resource/img/warning.png";const O4=e=>(zx("data-v-2745edda"),e=e(),Vx(),e),Cot=O4(()=>L("span",{style:{background:"red",width:"15px",height:"15px","border-radius":"8px"}},null,-1)),xot=O4(()=>L("img",{src:rU,style:{width:"15px",height:"15px"}},null,-1)),Tot=O4(()=>L("img",{src:aU,style:{width:"15px",height:"15px"}},null,-1)),Mot=O4(()=>L("img",{src:Sot,style:{width:"15px",height:"15px"}},null,-1)),kot=ne({__name:"test",setup(e){const t=(i,o)=>`${i}-${o}`,n=(i,o,s,l=1,u="node")=>{let c=0;return Array.from({length:s}).fill(l).map(()=>{const d=l===i?0:Math.round(Math.random()*o),f=t(u,++c);return{STANO:f,labelName:f,portList:d?n(i,o,d,l+1,f):void 0}})};let r=G([]);JG().then(i=>{r.value=i,console.log(i),console.log(n(4,30,40))});const a={children:"portList",label:"labelName"};return(i,o)=>{const s=$T;return A(),se(s,{data:_(r),props:a,height:208,"show-checkbox":""},{default:Y(({node:l})=>[Cot,xot,Tot,Mot,L("span",null,Ie(l.label),1)]),_:1},8,["data"])}}});var Aot=gl(kot,[["__scopeId","data-v-2745edda"],["__file","D:/JAVA/JAVAIDE/WorkSpace/CentralizedMonitoring/CentralizedMonitoringView/src/views/CarLine/test.vue"]]);//! moment.js +`):" "+TI(i[0]):"as no adapter specified";throw new bn("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:MS};function C3(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tm(null,e)}function MI(e){return C3(e),e.headers=Xs.from(e.headers),e.data=S3.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),qG.getAdapter(e.adapter||HT.adapter)(e).then(function(r){return C3(e),r.data=S3.call(e,e.transformResponse,r),r.headers=Xs.from(r.headers),r},function(r){return KG(r)||(C3(e),r&&r.response&&(r.response.data=S3.call(e,e.transformResponse,r.response),r.response.headers=Xs.from(r.response.headers))),Promise.reject(r)})}const kI=e=>e instanceof Xs?e.toJSON():e;function Fh(e,t){t=t||{};const n={};function r(u,c,d){return Ye.isPlainObject(u)&&Ye.isPlainObject(c)?Ye.merge.call({caseless:d},u,c):Ye.isPlainObject(c)?Ye.merge({},c):Ye.isArray(c)?c.slice():c}function a(u,c,d){if(Ye.isUndefined(c)){if(!Ye.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!Ye.isUndefined(c))return r(void 0,c)}function o(u,c){if(Ye.isUndefined(c)){if(!Ye.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,c)=>a(kI(u),kI(c),!0)};return Ye.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||a,f=d(e[c],t[c],c);Ye.isUndefined(f)&&d!==s||(n[c]=f)}),n}const XG="1.6.2",WT={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{WT[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const AI={};WT.transitional=function(t,n,r){function a(i,o){return"[Axios v"+XG+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(t===!1)throw new bn(a(o," has been removed"+(n?" in "+n:"")),bn.ERR_DEPRECATED);return n&&!AI[o]&&(AI[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,s):!0}};function eit(e,t,n){if(typeof e!="object")throw new bn("options must be an object",bn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new bn("option "+i+" must be "+l,bn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new bn("Unknown option "+i,bn.ERR_BAD_OPTION)}}var kS={assertOptions:eit,validators:WT};const Ll=kS.validators;class $y{constructor(t){this.defaults=t,this.interceptors={request:new SI,response:new SI}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fh(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&kS.assertOptions(r,{silentJSONParsing:Ll.transitional(Ll.boolean),forcedJSONParsing:Ll.transitional(Ll.boolean),clarifyTimeoutError:Ll.transitional(Ll.boolean)},!1),a!=null&&(Ye.isFunction(a)?n.paramsSerializer={serialize:a}:kS.assertOptions(a,{encode:Ll.function,serialize:Ll.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&Ye.merge(i.common,i[n.method]);i&&Ye.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=Xs.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,d=0,f;if(!l){const v=[MI.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),f=v.length,c=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,s){r.reason||(r.reason=new tm(i,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new GT(function(a){t=a}),cancel:t}}}var tit=GT;function nit(e){return function(n){return e.apply(null,n)}}function rit(e){return Ye.isObject(e)&&e.isAxiosError===!0}const AS={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(AS).forEach(([e,t])=>{AS[t]=e});var ait=AS;function ZG(e){const t=new V2(e),n=IG(V2.prototype.request,t);return Ye.extend(n,V2.prototype,t,{allOwnKeys:!0}),Ye.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return ZG(Fh(e,a))},n}const br=ZG(HT);br.Axios=V2;br.CanceledError=tm;br.CancelToken=tit;br.isCancel=KG;br.VERSION=XG;br.toFormData=P4;br.AxiosError=bn;br.Cancel=br.CanceledError;br.all=function(t){return Promise.all(t)};br.spread=nit;br.isAxiosError=rit;br.mergeConfig=Fh;br.AxiosHeaders=Xs;br.formToJSON=e=>YG(Ye.isHTMLForm(e)?new FormData(e):e);br.getAdapter=qG.getAdapter;br.HttpStatusCode=ait;br.default=br;var Wi=br;Wi.defaults.baseURL="http://"+window.location.host;Wi.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8";Wi.defaults.withCredentials=!0;Wi.defaults.changeOrigin=!0;Wi.defaults.headers.post["Access-Control-Allow-Origin-Type"]="*";Wi.defaults.timeout=15e4;Wi.interceptors.request.use(e=>{const t=localStorage.getItem("token");if(t==null){try{window.parent.toLogin()}catch{pM.push("/dist/login")}Dn.error("\u8BF7\u767B\u5F55!");return}return t&&(e.headers.token=t),e},e=>Promise.error(e));Wi.interceptors.response.use(e=>e.status==200?(e.headers.token!=null&&e.headers.token!=""&&localStorage.setItem("token",e.headers.token),Promise.resolve(e)):Promise.reject(e),e=>{if(e!=null&&e.response.data.status==-1){try{window.parent.toLogin()}catch{pM.push("/dist/login")}Dn.error("\u767B\u9646\u8D85\u65F6\u8BF7\u91CD\u65B0\u767B\u5F55!")}else alert(JSON.stringify(e),"\u8BF7\u6C42\u5F02\u5E38",{confirmButtonText:"\u786E\u5B9A",callback:t=>{console.log(t)}})});var R4={post(e,t){return t==null&&(t={}),new Promise((n,r,a)=>{Wi({method:"post",url:e,data:t,crossDomain:!0,headers:{"Content-Type":"application/json;charset=UTF-8;charset=UTF-8"},responseType:a==null||a==""?"json":a}).then(i=>{n(i.data)}).catch(i=>{r(i)})})},get(e,t,n){return new Promise((r,a,i)=>{Wi({method:"get",url:e,params:t,crossDomain:!0,headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8",withCredentials:!0},responseType:n==null||n==""?"json":n}).then(o=>{r(o)}).catch(o=>{a(o)})})}};const{get:rAt,post:UT}=R4,JG=e=>UT("/CentralizedMonitoring/CarLine/getTreeData",e),iit=e=>UT("/CentralizedMonitoring/CarLine/selectPortLogs",e),oit=e=>UT("/CentralizedMonitoring/CarLine/getSelectInfo",e);var sit=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var a=42;t[n]=a;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,n);if(o.value!==a||o.enumerable!==!0)return!1}return!0},EI=typeof Symbol!="undefined"&&Symbol,lit=sit,uit=function(){return typeof EI!="function"||typeof Symbol!="function"||typeof EI("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:lit()},cit="Function.prototype.bind called on incompatible ",x3=Array.prototype.slice,dit=Object.prototype.toString,fit="[object Function]",hit=function(t){var n=this;if(typeof n!="function"||dit.call(n)!==fit)throw new TypeError(cit+n);for(var r=x3.call(arguments,1),a,i=function(){if(this instanceof a){var c=n.apply(this,r.concat(x3.call(arguments)));return Object(c)===c?c:this}else return n.apply(t,r.concat(x3.call(arguments)))},o=Math.max(0,n.length-r.length),s=[],l=0;l1&&typeof n!="boolean")throw new sh('"allowMissing" argument must be a boolean');if(Sit(/^%?[^%]*%?$/,t)===null)throw new Hh("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Tit(t),a=r.length>0?r[0]:"",i=Mit("%"+a+"%",n),o=i.name,s=i.value,l=!1,u=i.alias;u&&(a=u[0],wit(r,bit([0,1],u)));for(var c=1,d=!0;c=r.length){var p=ud(s,f);d=!!p,d&&"get"in p&&!("originalValue"in p.get)?s=p.get:s=s[f]}else d=Ry(s,f),s=s[f];d&&!l&&(lh[o]=s)}}return s},eU={exports:{}};(function(e){var t=YT,n=KT,r=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||t.call(a,r),o=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}e.exports=function(d){var f=i(t,a,arguments);if(o&&s){var h=o(f,"length");h.configurable&&s(f,"length",{value:1+l(0,d.length-(arguments.length-1))})}return f};var u=function(){return i(t,r,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u})(eU);var tU=KT,nU=eU.exports,kit=nU(tU("String.prototype.indexOf")),Ait=function(t,n){var r=tU(t,!!n);return typeof r=="function"&&kit(t,".prototype.")>-1?nU(r):r},jT=KT,sv=Ait;jT("%TypeError%");jT("%WeakMap%",!0);jT("%Map%",!0);sv("WeakMap.prototype.get",!0);sv("WeakMap.prototype.set",!0);sv("WeakMap.prototype.has",!0);sv("Map.prototype.get",!0);sv("Map.prototype.set",!0);sv("Map.prototype.has",!0);(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})();var rU="./resource/img/normal.png",aU="./resource/img/disConnect.png";const Eit={name:"TreeData",data(){return{treeHeight:"",WindowsHeight:"",radiusStyle:"",treeStyle:"",stanTreeData:[],TreeLoading:!1,portSta:{},defaultProps:{value:"treeId",children:"portList",label:"labelName"}}},methods:{loadTreeData(){this.TreeLoading=!0,JG({manNo:localStorage.getItem("mannoDe")}).then(e=>{for(let t=0;t0){this.TreeLoading=!0;for(let r=0;r0)for(let t=0;t{this.WindowsHeight=document.documentElement.clientHeight,this.radiusStyle="width: 100%;height: "+this.WindowsHeight*.9+"px",this.treeStyle=this.WindowsHeight*.9-100+"px",this.treeHeight=this.WindowsHeight*.9-100}},created(){this.WindowsHeight=document.documentElement.clientHeight,this.radiusStyle="width: 100%;height: "+this.WindowsHeight*.9+"px",this.treeStyle="height: "+(this.WindowsHeight*.9-100)+"px",this.treeHeight=this.WindowsHeight*.9-100}},Dit=e=>(zx("data-v-ef635920"),e=e(),Vx(),e),Iit=Dit(()=>L("h1",{style:{"text-align":"center",height:"50px"}},"\u7AD9\u70B9\u5217\u8868",-1)),Lit={key:0,src:rU,style:{width:"15px",height:"15px"}},Pit={key:1,src:aU,style:{width:"15px",height:"15px"}};function $it(e,t,n,r,a,i){const o=$T,s=Yi,l=kd;return A(),R("div",{class:"radius",style:We(a.radiusStyle)},[Iit,L("div",{style:We(a.treeStyle)},[H(s,null,{default:Y(()=>[ft((A(),se(o,{ref:"treeRef",data:a.stanTreeData,props:a.defaultProps,"show-checkbox":"","default-expand-all":"true","node-key":"id",height:a.treeHeight,"highlight-current":"",accordion:"","expand-on-click-node":!1,onCheckChange:i.selectChange},{default:Y(({node:u})=>[a.portSta[u.label]!=null&&a.portSta[u.label]?(A(),R("img",Lit)):le("",!0),a.portSta[u.label]!=null&&!a.portSta[u.label]?(A(),R("img",Pit)):le("",!0),L("span",null,Ie(u.label),1)]),_:1},8,["data","props","height","onCheckChange"])),[[l,a.TreeLoading]])]),_:1})],4)],4)}var Rit=gl(Eit,[["render",$it],["__scopeId","data-v-ef635920"],["__file","D:/JAVA/JAVAIDE/WorkSpace/CentralizedMonitoring/CentralizedMonitoringView/src/views/CarLine/components/TreeData.vue"]]);let t1;const Oit=new Uint8Array(16);function Nit(){if(!t1&&(t1=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!t1))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t1(Oit)}const Wr=[];for(let e=0;e<256;++e)Wr.push((e+256).toString(16).slice(1));function zit(e,t=0){return Wr[e[t+0]]+Wr[e[t+1]]+Wr[e[t+2]]+Wr[e[t+3]]+"-"+Wr[e[t+4]]+Wr[e[t+5]]+"-"+Wr[e[t+6]]+Wr[e[t+7]]+"-"+Wr[e[t+8]]+Wr[e[t+9]]+"-"+Wr[e[t+10]]+Wr[e[t+11]]+Wr[e[t+12]]+Wr[e[t+13]]+Wr[e[t+14]]+Wr[e[t+15]]}const Vit=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var LI={randomUUID:Vit};function Bit(e,t,n){if(LI.randomUUID&&!t&&!e)return LI.randomUUID();e=e||{};const r=e.random||(e.rng||Nit)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let a=0;a<16;++a)t[n+a]=r[a];return t}return zit(r)}var k3={isString:function(e){return Object.prototype.toString.call(e)==="[object String]"},isArray:function(e){return Object.prototype.toString.call(e)==="[object Array]"},isNumber:function(e){return Object.prototype.toString.call(e)==="[object Number]"},isDate:function(e){return Object.prototype.toString.call(e)==="[object Date]"},isBoolean:function(e){return Object.prototype.toString.call(e)==="[object Boolean]"},isObject:function(e){return Object.prototype.toString.call(e)==="[object Object]"},isFunction:function(e){return Object.prototype.toString.call(e)==="[object Function]"},isFile:function(e){return Object.prototype.toString.call(e)==="[object File]"},isNull:function(e){return Object.prototype.toString.call(e)==="[object Null]"},isUndefined:function(e){return Object.prototype.toString.call(e)==="[object Undefined]"},isRegExp:function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},getType:function(e){return{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"}[Object.prototype.toString.call(e)]}};let Ny={copy:function(){return function e(t){const n=k3.getType(t);let r;if(n==="array"){r=[];for(let a=0;a{n.push(r),r.children&&r.children.length>0&&n.push(...e(r.children))}),n}}(),dateFormat:function(e){const t=e;if(t!=null){var n=new Date(t),r=n.getFullYear(),a=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,i=n.getDate()<10?"0"+n.getDate():n.getDate(),o=n.getHours()<10?"0"+n.getHours():n.getHours(),s=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),l=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return r+"-"+a+"-"+i+" "+o+":"+s+":"+l}},dateFormatDay:function(e){const t=e;if(t!=null){var n=new Date(t),r=n.getFullYear(),a=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,i=n.getDate()<10?"0"+n.getDate():n.getDate();return r+"-"+a+"-"+i}},checkMonth(e){return e<10&&(e="0"+e),e},MonthAdd(e,t){let n=e;n=new Date(n);let r=n.setMonth(n.getMonth()+t);return r=new Date(r),e=r,e},YearAdd(e,t){let n=e;n=new Date(n);let r=n.setYear(n.getFullYear()+t);return r=new Date(r),e=r,e},toCamelCase:function(e){return e.replace(/([A-Z])/g,"_$1")},ensureNotNull:function(e){return k3.isNull(e)||k3.isUndefined(e)?0:e},deepLocate:function(){return function e(t,n){let r=[];return n.forEach(a=>{r.push(a),a.children&&a.children.length>0&&r.push(...e(a.children))}),r}}(),getParentNodes:function(){return function e(t,n,r={label:"name",key:"id",children:"children"}){let a=[];return(n||[]).forEach(i=>{if(a.length==0){if(t==(i[r.key]||0))a.push(i);else if(i[r.children]&&i[r.children].length>0){const o=e(i[r.children]);o.length>0&&(a.push(i),a=a.concat(o))}}}),a}}()};const Fit={name:"selectLogs",props:["staNoPortNo","labelName"],data(){return{locale:OT,tableLoading:!1,tableData:[],myHeight:500,searchForm:{startHour:0,endHour:23,staNoPortNo:"",dateTime:""},text:"",startHourList:[],endHourList:[],selectDB:!0,selectRAM:!1,rowIndex:-1}},watch:{text:function(e,t){e!=t&&(this.selectRAM=!0,this.rowIndex=-1)},searchForm:{deep:!0,handler(e,t){this.selectDB=!0}}},methods:{async network(){if(this.text=this.text.trim(),this.selectDB&&(this.tableLoading=!0,await iit(this.searchForm).then(e=>{this.tableData=e,this.rowIndex=-1,this.selectDB=!1,this.tableLoading=!1})),this.selectRAM){this.rowIndex>=this.tableData.length&&(this.rowIndex=-1);for(let e=this.rowIndex+1;e-1){this.rowIndex=e,this.$refs.scroll.wrapRef.scrollTop=e*50;break}e==this.tableData.length-1&&(this.rowIndex=-1,Dn.error("\u6211\u5DF2\u7ECF\u627E\u5230\u5E95\u4E86\uFF01\u4F46\u662F\u6CA1\u627E\u5230\u5305\u542B"+this.text+"\u7684\u65E5\u5FD7"))}}}},mounted(){this.searchForm.dateTime=Ny.dateFormatDay(new Date),this.searchForm.staNoPortNo=this.$props.staNoPortNo,this.myHeight="height:"+document.documentElement.clientHeight*.6+"px",window.onresize=()=>{this.myHeight="height:"+document.documentElement.clientHeight*.6+"px"}}},iU=e=>(zx("data-v-7d1c0b9a"),e=e(),Vx(),e),Hit={style:{padding:"10px 0",width:"100%"}},Wit=iU(()=>L("span",{style:{"vertical-align":"middle"}}," \u641C\u7D22 ",-1)),Git=iU(()=>L("div",null,null,-1)),Uit={style:{"text-align":"right"}},Yit=Lt(" ----> "),Kit={style:{"text-align":"left"}},jit={style:{"text-align":"right",color:"orange"}},qit=Lt(" ----> "),Xit={style:{"text-align":"left",color:"orange"}};function Zit(e,t,n,r,a,i){const o=nT,s=G5,l=av,u=Td,c=hs,d=Or,f=dt("search"),h=je,v=pr,p=rv,g=Yi,m=kd;return A(),se(p,null,{default:Y(()=>[H(l,{span:24},{default:Y(()=>[L("div",Hit,[H(p,null,{default:Y(()=>[H(l,{span:6},{default:Y(()=>[H(s,{label:"\u65E5\u5FD7\u65E5\u671F","label-width":"80px"},{default:Y(()=>[H(o,{modelValue:a.searchForm.dateTime,"onUpdate:modelValue":t[0]||(t[0]=y=>a.searchForm.dateTime=y),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"\u65E5\u5FD7\u65E5\u671F",style:{width:"185px","margin-left":"0.5%","margin-top":"0px"}},null,8,["modelValue"])]),_:1})]),_:1}),H(l,{span:4},{default:Y(()=>[H(s,{label:"\u5F00\u59CB\u5C0F\u65F6","label-width":"80px"},{default:Y(()=>[H(c,{modelValue:a.searchForm.startHour,"onUpdate:modelValue":t[1]||(t[1]=y=>a.searchForm.startHour=y),class:"m-2",clearable:"",placeholder:"\u5F00\u59CB\u5C0F\u65F6",style:{width:"100px","margin-left":"0.5%","margin-top":"0px"}},{default:Y(()=>[(A(!0),R(Fe,null,bt(a.searchForm.endHour==""?24:a.searchForm.endHour,y=>(A(),se(u,{label:y-1,value:y-1},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1}),H(l,{span:4},{default:Y(()=>[H(s,{label:"\u7ED3\u675F\u5C0F\u65F6","label-width":"80px"},{default:Y(()=>[H(c,{modelValue:a.searchForm.endHour,"onUpdate:modelValue":t[2]||(t[2]=y=>a.searchForm.endHour=y),class:"m-2",clearable:"",placeholder:"\u7ED3\u675F\u5C0F\u65F6",style:{width:"100px","margin-left":"0.5%","margin-top":"0px"}},{default:Y(()=>[(A(!0),R(Fe,null,bt(24-a.searchForm.startHour,y=>(A(),se(u,{label:y-1+a.searchForm.startHour,value:y-1+a.searchForm.startHour},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1}),H(l,{span:4},{default:Y(()=>[H(s,{label:"\u5185\u5BB9","label-width":"40px"},{default:Y(()=>[H(d,{style:{width:"150px","margin-left":"0.5%"},placeholder:"\u5185\u5BB9",modelValue:a.text,"onUpdate:modelValue":t[3]||(t[3]=y=>a.text=y)},null,8,["modelValue"])]),_:1})]),_:1}),H(l,{span:4},{default:Y(()=>[H(v,{type:"primary",style:{"margin-left":"0.5%","margin-top":"0px"},onClick:i.network},{default:Y(()=>[H(h,{style:{"vertical-align":"middle"}},{default:Y(()=>[H(f)]),_:1}),Wit]),_:1},8,["onClick"])]),_:1})]),_:1})]),Git,ft((A(),se(g,{ref:"scroll",style:We(a.myHeight)},{default:Y(()=>[(A(!0),R(Fe,null,bt(a.tableData,(y,b)=>(A(),R("div",{ref_for:!0,ref:"collItem",key:y,class:"scrollbar-demo-item"},[b!=a.rowIndex?(A(),se(p,{key:0,style:{width:"100%"}},{default:Y(()=>[H(l,{span:10},{default:Y(()=>[L("div",Uit,Ie(y.TIME),1)]),_:2},1024),H(l,{span:4},{default:Y(()=>[Yit]),_:1}),H(l,{span:10},{default:Y(()=>[L("div",Kit,Ie(y.TEXT),1)]),_:2},1024)]),_:2},1024)):le("",!0),b==a.rowIndex?(A(),se(p,{key:1,style:{width:"100%"}},{default:Y(()=>[H(l,{span:10},{default:Y(()=>[L("div",jit,Ie(y.TIME),1)]),_:2},1024),H(l,{span:4},{default:Y(()=>[qit]),_:1}),H(l,{span:10},{default:Y(()=>[L("div",Xit,Ie(y.TEXT),1)]),_:2},1024)]),_:2},1024)):le("",!0)]))),128))]),_:1},8,["style"])),[[m,a.tableLoading]])]),_:1})]),_:1})}var Jit=gl(Fit,[["render",Zit],["__scopeId","data-v-7d1c0b9a"],["__file","D:/JAVA/JAVAIDE/WorkSpace/CentralizedMonitoring/CentralizedMonitoringView/src/views/CarLine/components/selectLogs.vue"]]);const Qit={name:"PortInfo",components:{selectLogs:Jit},data(){return{spanStyle:"font-size: 15px;margin-top: 2px;margin-bottom: 2px",textStyle:" font-size: 14px;",rowNum:6,WindowsHeight:20,itemNum:20,socket:null,Search:u4,socketLoading:!0,baseUrl:Wi.defaults.baseURL.replaceAll("http://",""),socketId:Bit(),portInfoMap:new Map,portInfoMapIterator:null,logsDialog:!1,staNoPortNo:"",labelName:"",manNo:localStorage.getItem("mannoDe")}},watch:{rowNum:{handler(e,t){e==8?(this.textStyle="font-size: 9px;",this.spanStyle="font-size: 12px;margin-top: 2px;margin-bottom: 2px"):(this.textStyle="font-size: 14px;",this.spanStyle="font-size: 15px;margin-top: 2px;margin-bottom: 2px")}}},methods:{changeSelect(e,t){const n=this,r=e.STANO+"-"+e.PORTNO;e.key=r,e.COMLIST=[],e.imgBase64="",e.CarInfo="",t&&(e.loading=!0,this.portInfoMap.set(r,e)),this.portInfoMapIterator=this.portInfoMap.values(),this.$nextTick(()=>{n.openAutoLoadCom(r,t)})},openAutoLoadCom(e,t){const n=this,r=this.portInfoMap.get(e);t?(r.AUTOLOAD=setInterval(()=>{this.itemNum++;const a="scrollbar"+e,i="div"+e;this.$nextTick(()=>{n.$refs[a][0].setScrollTop(n.$refs[i][0].clientHeight)})},1e3),this.portInfoMap.set(e,r)):(clearInterval(r.AUTOLOAD),this.portInfoMap.delete(e)),this.portInfoMapIterator=this.portInfoMap.values(),t?this.onSend(e,"open"):this.onSend(e,"close"),this.$emit("closeTreeLoading")},initSocket(){const e="ws://"+this.baseUrl+"/CentralizedMonitoring/WebSocket?socketId="+this.socketId;this.socket=new WebSocket(e),this.socketOnClose(),this.socketOnOpen(),this.socketOnError(),this.socketOnMessage()},socketOnOpen(){this.socket.onopen=()=>{this.$emit("changeLoading",!1),this.socketLoading=!1;const e=this;this.$emit("reCheckData"),window.setInterval(()=>{setTimeout(()=>{e.sendUntitled("")},0)},1e3)}},socketOnMessage:function(){this.socket.onmessage=e=>{const t=JSON.parse(e.data),n=this.portInfoMap.get(t.staNoPortNo);if(t.type=="ComStrList"){n.loading=!1;let r=JSON.parse(t.value);n.COMLIST=r;const a=r[r.length-1].stat;a!=null&&a!=""&&this.$emit("changeTreeSta",n.labelName,a==1)}else if(t.type=="ComStr"||t.type=="ImgBase64")if(n.loading=!1,t.type=="ComStr"){let r=JSON.parse(t.value);n.COMLIST=this.addList(n.COMLIST,r),r.stat!=null&&r.stat!=""&&this.$emit("changeTreeSta",n.labelName,r.stat==1)}else t.type=="ImgBase64"&&(n.imgBase64=t.value);else t.type=="CarInfo"?n!=null&&(n.CarInfo=t.value):t.type=="Untitled"&&this.$emit("changeUntitledData",JSON.parse(t.value));(t.type=="CarInfo"||t.type=="ImgBase64"||t.type=="ComStr"||t.type=="ComStrList")&&(this.portInfoMap.set(t.staNoPortNo,n),this.portInfoMapIterator=this.portInfoMap.values())}},addList(e,t){if(e!=null&&e.length>80)for(let n=0;n{console.log("close socket"),this.initSocket()}},socketOnError(){this.socket.onerror=()=>{this.socketIsNoOpen=!0,console.log("socket \u94FE\u63A5\u5931\u8D25 \u91CD\u65B0\u94FE\u63A5"),this.socketOnClose(),this.initSocket(),console.log("socket \u94FE\u63A5\u5931\u8D25")}},onSend(e,t){let n={staNoPortNo:e,command:t};this.socket.send(JSON.stringify(n))},startAutoLoad(e){const t=this,n=this.portInfoMap.get(e);n.AUTOLOAD=setInterval(()=>{this.itemNum++;const r="scrollbar"+e,a="div"+e;this.$nextTick(()=>{t.$refs[r][0].setScrollTop(t.$refs[a][0].clientHeight)})},1e3),this.portInfoMap.set(e,n),this.portInfoMapIterator=this.portInfoMap.values()},stopAutoLoad(e){const t=this.portInfoMap.get(e);clearInterval(t.AUTOLOAD),this.portInfoMap.set(e,t),this.portInfoMapIterator=this.portInfoMap.values()},openSelectLogs(e,t){this.staNoPortNo=e,this.labelName=t,this.logsDialog=!0},sendUntitled(e){let t={manNo:this.manNo,command:"Untitled",staNo:e};this.socket.send(JSON.stringify(t))}},mounted(){this.WindowsHeight=document.documentElement.clientHeight,window.onresize=()=>{this.WindowsHeight=document.documentElement.clientHeight},this.initSocket()},beforeUnmount(){this.socketOnClose()}},eot={class:"card-header"},tot={style:{width:"100%"}},not={class:"text item"},rot={key:0,class:"scrollbar-demo-item",style:{color:"red"}},aot={key:1,class:"scrollbar-demo-item"},iot=["innerHTML"];function oot(e,t,n,r,a,i){const o=pr,s=KH,l=rv,u=Yi,c=UF,d=av,f=dt("select-logs"),h=iT,v=kd;return A(),R(Fe,null,[H(u,{height:a.WindowsHeight*.9,style:{width:"100%"}},{default:Y(()=>[H(l,{style:{width:"100%"}},{default:Y(()=>[(A(!0),R(Fe,null,bt(a.portInfoMapIterator,p=>(A(),se(d,{span:24/a.rowNum},{default:Y(()=>[ft((A(),se(c,{class:"box-card"},{header:Y(()=>[L("div",eot,[L("span",tot,Ie(p.STANAME+"-"+p.labelName),1),H(o,{icon:a.Search,type:"primary",circle:"",style:{"margin-top":"0px","z-index":"0"},onClick:g=>i.openSelectLogs(p.STANO+"-"+p.PORTNO,p.STANAME+"-"+p.labelName)},null,8,["icon","onClick"])])]),default:Y(()=>[L("div",not,[H(l,null,{default:Y(()=>[H(l,{style:{width:"100%"}},{default:Y(()=>[H(s,{src:"data:image/png;base64,"+p.imgBase64,"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"preview-src-list":["data:image/png;base64,"+p.imgBase64],style:{"min-width":"60%",height:"120px"},fit:"cover"},null,8,["src","zoom-rate","min-scale","preview-src-list"])]),_:2},1024),H(l,{style:{width:"100%"},onMouseenter:g=>i.stopAutoLoad(p.key),onMouseleave:g=>i.startAutoLoad(p.key)},{default:Y(()=>[H(u,{ref_for:!0,ref:"scrollbar"+p.key,class:"radius",height:"180px",style:{width:"100%"}},{default:Y(()=>[L("div",{ref_for:!0,ref:"div"+p.key},[(A(!0),R(Fe,null,bt(p.COMLIST,g=>(A(),R("p",{key:p,style:We(a.spanStyle)},[g.kind==2?(A(),R("span",rot,Ie(g.text),1)):le("",!0),g.kind!=2?(A(),R("span",aot,Ie(g.text),1)):le("",!0)],4))),128))],512)]),_:2},1536)]),_:2},1032,["onMouseenter","onMouseleave"]),L("span",{class:"carinfo",innerHTML:p.CarInfo,style:We(a.textStyle)},null,12,iot)]),_:2},1024)])]),_:2},1024)),[[v,p.loading]])]),_:2},1032,["span"]))),256))]),_:1})]),_:1},8,["height"]),H(h,{modelValue:a.logsDialog,"onUpdate:modelValue":t[0]||(t[0]=p=>a.logsDialog=p),draggable:"",title:a.labelName+"\u5386\u53F2\u65E5\u5FD7","destroy-on-close":"",width:"60%"},{default:Y(()=>[H(f,{staNoPortNo:a.staNoPortNo,labelName:a.labelName},null,8,["staNoPortNo","labelName"])]),_:1},8,["modelValue","title"])],64)}var sot=gl(Qit,[["render",oot],["__scopeId","data-v-628f3857"],["__file","D:/JAVA/JAVAIDE/WorkSpace/CentralizedMonitoring/CentralizedMonitoringView/src/views/CarLine/components/PortInfo.vue"]]);const lot={name:"Untitled",data(){return{searchForm:{flagText:[],staNo:""},WindowsHeight:0,UntitledData:[],StaNameByManNo:[],FlagText:[],tableData:[],newValue:[],warningTableData:[]}},watch:{UntitledData:{deep:!0,handler(e,t){this.newValue=e,this.findData(null,e)}}},methods:{setUntitledData(e){this.UntitledData=e},dateDay(e,t){return Ny.dateFormatDay(e[t.property])},findData(e,t){let n=[],r=[],a=[];if(t==null?n=this.tableData:n=t,(n==null||n.length==0)&&(n=this.newValue),n!=null&&n.length>0&&(this.searchForm.staNo!=null&&this.searchForm.staNo!=""||this.searchForm.flagText!=null&&this.searchForm.flagText.length>0)){if(this.searchForm.staNo!=null&&this.searchForm.staNo!=""){for(let i=0;i0){n=this.tableData;for(let i=0;i0){e:for(let o=0;o-1){a[a.length]=n[i];break e}}this.warningTableData=a}}else n!=null&&n.length>0&&(this.searchForm.staNo==null||this.searchForm.staNo=="")&&(this.searchForm.flagText==null||this.searchForm.flagText.length==0)?(this.tableData=n,this.warningTableData=a):(this.tableData=[],this.warningTableData=[])}},mounted(){this.WindowsHeight=document.documentElement.clientHeight*.4,window.onresize=()=>{this.WindowsHeight=document.documentElement.clientHeight*.4},oit({manNo:localStorage.getItem("mannoDe")}).then(e=>{this.StaNameByManNo=e.StaNameByManNo,this.FlagText=e.FlagText})}},uot=L("h2",{style:{width:"50%","text-align":"right",float:"left"}},"\u6D41\u6C34",-1),cot=L("h2",{style:{width:"100%","text-align":"center"}},"\u5F02\u5E38\u6D41\u6C34",-1),dot=L("div",{style:{width:"1%",height:"110%","margin-top":"-10%",float:"left",border:"3px solid var(--el-border-color)"}},null,-1),fot={style:{width:"99%",float:"left"}};function hot(e,t,n,r,a,i){const o=Td,s=hs,l=bT,u=_T,c=av,d=rv;return A(),se(d,{style:{height:"100%"}},{default:Y(()=>[H(c,{span:14},{default:Y(()=>[uot,H(s,{style:{width:"200px","margin-right":"0.5%",float:"right"},modelValue:a.searchForm.flagText,"onUpdate:modelValue":t[0]||(t[0]=f=>a.searchForm.flagText=f),class:"m-2",clearable:"",multiple:"","max-collapse-tags":1,"collapse-tags":"","collapse-tags-tooltip":"",onChange:i.findData,placeholder:"\u8BF7\u9009\u62E9\u5F02\u5E38\u7C7B\u522B"},{default:Y(()=>[H(o,{label:"\u65E0",value:""}),(A(!0),R(Fe,null,bt(a.FlagText,f=>(A(),se(o,{label:f.TEXT,value:f.TEXT},null,8,["label","value"]))),256))]),_:1},8,["modelValue","onChange"]),H(s,{style:{width:"150px","margin-right":"0.5%",float:"right"},modelValue:a.searchForm.staNo,"onUpdate:modelValue":t[1]||(t[1]=f=>a.searchForm.staNo=f),class:"m-2",clearable:"",onChange:i.findData,placeholder:"\u6536\u8D39\u7AD9"},{default:Y(()=>[H(o,{label:"\u5168\u90E8",value:""}),(A(!0),R(Fe,null,bt(a.StaNameByManNo,f=>(A(),se(o,{label:f.STANAME,value:f.STANO},null,8,["label","value"]))),256))]),_:1},8,["modelValue","onChange"]),H(u,{data:a.tableData,stripe:"",style:{width:"100%"},border:"",height:a.WindowsHeight},{default:Y(()=>[H(l,{prop:"staname",label:"\u6536\u8D39\u7AD9",align:"center"}),H(l,{prop:"portno",label:"\u8F66\u9053",align:"center"}),H(l,{prop:"cardno",label:"\u5361\u53F7",align:"center",width:"160"}),H(l,{prop:"datemark",label:"\u8BB0\u5F55\u65F6\u95F4",align:"center",width:"170"}),H(l,{prop:"acarno",label:"\u8F66\u724C",align:"center",width:"110"}),H(l,{prop:"classnotext",label:"\u73ED\u6B21",align:"center"}),H(l,{prop:"man",label:"\u6536\u8D39\u5458\u59D3\u540D",align:"center",width:"120"}),H(l,{prop:"flagtext",label:"\u4E8B\u4EF6",align:"center",width:"120"}),H(l,{prop:"kindtext",label:"\u8F66\u79CD",align:"center"}),H(l,{prop:"incash",label:"\u5B9E\u6536",align:"center"}),H(l,{prop:"cash",label:"\u5E94\u6536\u91D1\u989D",align:"center",width:"100"}),H(l,{prop:"billno",label:"\u7968\u636E\u53F7",align:"center"}),H(l,{prop:"axiscount",label:"\u8F74\u6570",align:"center"}),H(l,{prop:"axistype",label:"\u8F74\u578B",align:"center"}),H(l,{prop:"inweight",label:"\u5B9E\u9645\u91CD\u91CF",align:"center",width:"100"}),H(l,{prop:"FEEWEIGHT",label:"\u8BA1\u8D39\u91CD\u91CF",align:"center",width:"100"}),H(l,{prop:"overweight",label:"\u8D85\u91CD\u603B\u91CF",align:"center",width:"100"}),H(l,{prop:"overratetext",label:"\u8D85\u91CD\u6BD4\u4F8B",align:"center",width:"100"}),H(l,{prop:"idt",label:"\u5165\u53E3\u65F6\u95F4",align:"center",width:"170"}),H(l,{prop:"istaname",label:"\u5165\u53E3\u7AD9",align:"center",width:"100"}),H(l,{prop:"IMANNO",label:"\u5165\u53E3\u6536\u8D39\u5458",align:"center",width:"100"}),H(l,{prop:"classdate",label:"\u65E5\u671F",align:"center",width:"110",formatter:i.dateDay},null,8,["formatter"])]),_:1},8,["data","height"])]),_:1}),H(c,{span:10,style:{width:"120%"}},{default:Y(()=>[cot,dot,L("div",fot,[H(u,{data:a.warningTableData,stripe:"",style:{"margin-left":"0px"},border:"",height:a.WindowsHeight},{default:Y(()=>[H(l,{prop:"staname",label:"\u6536\u8D39\u7AD9",align:"center"}),H(l,{prop:"portno",label:"\u8F66\u9053",align:"center"}),H(l,{prop:"cardno",label:"\u5361\u53F7",align:"center",width:"160"}),H(l,{prop:"datemark",label:"\u8BB0\u5F55\u65F6\u95F4",align:"center",width:"170"}),H(l,{prop:"acarno",label:"\u8F66\u724C",align:"center",width:"110"}),H(l,{prop:"classnotext",label:"\u73ED\u6B21",align:"center"}),H(l,{prop:"man",label:"\u6536\u8D39\u5458\u59D3\u540D",align:"center",width:"120"}),H(l,{prop:"flagtext",label:"\u4E8B\u4EF6",align:"center",width:"120"}),H(l,{prop:"kindtext",label:"\u8F66\u79CD",align:"center"}),H(l,{prop:"incash",label:"\u5B9E\u6536",align:"center"}),H(l,{prop:"cash",label:"\u5E94\u6536\u91D1\u989D",align:"center",width:"100"}),H(l,{prop:"billno",label:"\u7968\u636E\u53F7",align:"center"}),H(l,{prop:"axiscount",label:"\u8F74\u6570",align:"center"}),H(l,{prop:"axistype",label:"\u8F74\u578B",align:"center"}),H(l,{prop:"inweight",label:"\u5B9E\u9645\u91CD\u91CF",align:"center",width:"100"}),H(l,{prop:"FEEWEIGHT",label:"\u8BA1\u8D39\u91CD\u91CF",align:"center",width:"100"}),H(l,{prop:"overweight",label:"\u8D85\u91CD\u603B\u91CF",align:"center",width:"100"}),H(l,{prop:"overratetext",label:"\u8D85\u91CD\u6BD4\u4F8B",align:"center",width:"100"}),H(l,{prop:"idt",label:"\u5165\u53E3\u65F6\u95F4",align:"center",width:"170"}),H(l,{prop:"istaname",label:"\u5165\u53E3\u7AD9",align:"center",width:"100"}),H(l,{prop:"IMANNO",label:"\u5165\u53E3\u6536\u8D39\u5458",align:"center",width:"100"}),H(l,{prop:"classdate",label:"\u65E5\u671F",align:"center",width:"110",formatter:i.dateDay},null,8,["formatter"])]),_:1},8,["data","height"])])]),_:1})]),_:1})}var vot=gl(lot,[["render",hot],["__file","D:/JAVA/JAVAIDE/WorkSpace/CentralizedMonitoring/CentralizedMonitoringView/src/views/CarLine/components/Untitled.vue"]]);const pot={name:"CarLine",data(){return{rowNum:"6",WindowsHeight:"",PortInfoStyle:"",tabInfoStyle:"",socketLoading:!0,drawer:!1,UntitledData:[]}},methods:{openUntitled(){this.drawer=!0;const e=this;this.$nextTick(()=>{e.$refs.Untitled.setUntitledData(this.UntitledData)})},changeSelect(e,t){this.$refs.PortInfo.changeSelect(e,t)},changeLoading(e){this.socketLoading=e},changeTreeSta(e,t){this.$refs.TreeData.changeTreeSta(e,t)},changeUntitledData(e){const t=this;this.UntitledData=e,this.drawer&&this.$nextTick(()=>{t.$refs.Untitled.setUntitledData(e)})},sendUntitled(){const e=this;this.$nextTick(()=>{e.$refs.PortInfo.sendUntitled("")})},closeTreeLoading(){this.$refs.TreeData.TreeLoading=!1},changeRowNum(){this.$refs.PortInfo.rowNum=this.rowNum},reCheckData(){this.$refs.TreeData.reCheckData()}},mounted(){window.onresize=()=>{this.WindowsHeight=document.documentElement.clientHeight,this.PortInfoStyle="height:"+this.WindowsHeight*.9+"px",this.tabInfoStyle="height:"+this.WindowsHeight*.3+"px"}},created(){localStorage.setItem("mannoDe","0"),this.WindowsHeight=document.documentElement.clientHeight,this.PortInfoStyle="height:"+this.WindowsHeight*.9+"px",this.tabInfoStyle="height:"+this.WindowsHeight*.3+"px"},components:{TreeData:Rit,PortInfo:sot,Untitled:vot}},got={class:"radius",style:{"margin-left":"10px","margin-right":"10px"}},mot={style:{width:"100%",height:"30px"},align:"center"},yot=Lt("\u67E5\u770B\u6D41\u6C34"),_ot={style:{"margin-top":"20px"}};function bot(e,t,n,r,a,i){const o=dt("TreeData"),s=av,l=dt("PortInfo"),u=rv,c=pr,d=eF,f=sH,h=oH,v=dt("Untitled"),p=OH,g=kd;return A(),R(Fe,null,[L("div",{class:"aaa",onClick:t[0]||(t[0]=m=>a.drawer=!1)},[ft((A(),se(u,null,{default:Y(()=>[H(s,{span:4},{default:Y(()=>[H(o,{ref:"TreeData",onChangeSelect:i.changeSelect},null,8,["onChangeSelect"])]),_:1}),H(s,{span:20},{default:Y(()=>[L("div",got,[H(u,{style:We(a.PortInfoStyle)},{default:Y(()=>[H(l,{ref:"PortInfo",onChangeLoading:i.changeLoading,onChangeTreeSta:i.changeTreeSta,onCloseTreeLoading:i.closeTreeLoading,onChangeUntitledData:i.changeUntitledData,onReCheckData:i.reCheckData},null,8,["onChangeLoading","onChangeTreeSta","onCloseTreeLoading","onChangeUntitledData","onReCheckData"])]),_:1},8,["style"])])]),_:1})]),_:1})),[[g,a.socketLoading]])]),L("div",mot,[H(d,{position:"bottom",offset:0,style:{height:"0px"}},{default:Y(()=>[H(c,{type:"primary",onClick:i.openUntitled},{default:Y(()=>[yot]),_:1},8,["onClick"])]),_:1}),L("div",_ot,[H(h,{modelValue:a.rowNum,"onUpdate:modelValue":t[1]||(t[1]=m=>a.rowNum=m),onChange:i.changeRowNum,style:{"margin-right":"10px",float:"right"}},{default:Y(()=>[H(f,{label:"3"}),H(f,{label:"4"}),H(f,{label:"6"}),H(f,{label:"8"})]),_:1},8,["modelValue","onChange"])])]),H(p,{modelValue:a.drawer,"onUpdate:modelValue":t[2]||(t[2]=m=>a.drawer=m),"modal-class":"clickModal","close-on-click-modal":!0,title:"","with-header":!1,size:"50%","z-index":99,direction:"btt"},{default:Y(()=>[H(v,{ref:"Untitled"},null,512)]),_:1},8,["modelValue"])],64)}var wot=gl(pot,[["render",bot],["__scopeId","data-v-5dee4d9c"],["__file","D:/JAVA/JAVAIDE/WorkSpace/CentralizedMonitoring/CentralizedMonitoringView/src/views/CarLine/CarLineView.vue"]]),Sot="./resource/img/warning.png";const O4=e=>(zx("data-v-2745edda"),e=e(),Vx(),e),Cot=O4(()=>L("span",{style:{background:"red",width:"15px",height:"15px","border-radius":"8px"}},null,-1)),xot=O4(()=>L("img",{src:rU,style:{width:"15px",height:"15px"}},null,-1)),Tot=O4(()=>L("img",{src:aU,style:{width:"15px",height:"15px"}},null,-1)),Mot=O4(()=>L("img",{src:Sot,style:{width:"15px",height:"15px"}},null,-1)),kot=ne({__name:"test",setup(e){const t=(i,o)=>`${i}-${o}`,n=(i,o,s,l=1,u="node")=>{let c=0;return Array.from({length:s}).fill(l).map(()=>{const d=l===i?0:Math.round(Math.random()*o),f=t(u,++c);return{STANO:f,labelName:f,portList:d?n(i,o,d,l+1,f):void 0}})};let r=G([]);JG().then(i=>{r.value=i,console.log(i),console.log(n(4,30,40))});const a={children:"portList",label:"labelName"};return(i,o)=>{const s=$T;return A(),se(s,{data:_(r),props:a,height:208,"show-checkbox":""},{default:Y(({node:l})=>[Cot,xot,Tot,Mot,L("span",null,Ie(l.label),1)]),_:1},8,["data"])}}});var Aot=gl(kot,[["__scopeId","data-v-2745edda"],["__file","D:/JAVA/JAVAIDE/WorkSpace/CentralizedMonitoring/CentralizedMonitoringView/src/views/CarLine/test.vue"]]);//! moment.js //! version : 2.29.4 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT diff --git a/CentralizedMonitoring/src/main/resources/static/View/index.html b/CentralizedMonitoring/src/main/resources/static/View/index.html index 716600f..c1fbc29 100644 --- a/CentralizedMonitoring/src/main/resources/static/View/index.html +++ b/CentralizedMonitoring/src/main/resources/static/View/index.html @@ -5,7 +5,7 @@ - + diff --git a/CentralizedMonitoringView/.idea/workspace.xml b/CentralizedMonitoringView/.idea/workspace.xml index 22f81b1..df11c67 100644 --- a/CentralizedMonitoringView/.idea/workspace.xml +++ b/CentralizedMonitoringView/.idea/workspace.xml @@ -2,1037 +2,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - - - - - -