You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
39 KiB
JavaScript
1 line
39 KiB
JavaScript
"use strict";(self["webpackChunkcacfrontend"]=self["webpackChunkcacfrontend"]||[]).push([[950],{7950:function(e,t,n){n.r(t),n.d(t,{default:function(){return an}});var r={};n.r(r),n.d(r,{hasBrowserEnv:function(){return je},hasStandardBrowserEnv:function(){return Pe},hasStandardBrowserWebWorkerEnv:function(){return Fe}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"dataReport"},[t("div",{staticClass:"leftTree"},[t("h3",[e._v("设备列表")]),t("div",{staticClass:"treeBox"},[t("div",{staticClass:"searchBar"},[t("el-input",{attrs:{placeholder:"输入关键字进行过滤","prefix-icon":"el-icon-search",clearable:""},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}})],1),t("el-tree",{ref:"tree",attrs:{data:e.treeData,props:e.defaultProps,"node-key":"id","filter-node-method":e.filterNode,"default-expanded-keys":e.defaultExpandedKeys,"highlight-current":"","current-node-key":e.currentNodekey,"expand-on-click-node":!0},on:{"node-click":e.handleNodeClick},scopedSlots:e._u([{key:"default",fn:function({node:n,data:r}){return[1===n.level?t("span",[t("span",[e._v(e._s(n.label)+" ")])]):2===n.level?t("span",[t("span",{staticClass:"el-icon-document",staticStyle:{"margin-right":"6px"}}),t("span",{attrs:{title:n.label}},[e._v(e._s(n.label)+" ")])]):e._e()]}}])})],1)]),t("div",{staticClass:"reportTable"},[t("div",{staticClass:"reportHead"},[t("h3",[e._v("数据展示")]),t("div",{staticClass:"searchMain"},[t("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.formdata}},[t("el-form-item",{attrs:{label:"开始日期"}},[t("el-date-picker",{attrs:{type:"date",placeholder:"开始日期"},model:{value:e.formdata.starttime,callback:function(t){e.$set(e.formdata,"starttime",t)},expression:"formdata.starttime"}})],1),t("el-form-item",{attrs:{label:"结束日期"}},[t("el-date-picker",{staticClass:"ml10",attrs:{type:"date",placeholder:"结束日期"},on:{change:e.changedate},model:{value:e.formdata.endtime,callback:function(t){e.$set(e.formdata,"endtime",t)},expression:"formdata.endtime"}})],1),t("el-form-item",[t("el-button",{staticClass:"searchBtn",attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("查询")])],1)],1)],1)]),t("div",{staticClass:"reportContain"},[t("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"数据",name:"dataTab"}},[t("div",{staticClass:"dataTabHead"},[t("h3",[e._v(e._s(e.crrrentName))])]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.tableLoading,expression:"tableLoading"}],staticClass:"tableBox"},[t("div",{staticClass:"leftTable"},[t("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")]),t("el-checkbox-group",{on:{change:e.handleCheckedCitiesChange},model:{value:e.checkedList,callback:function(t){e.checkedList=t},expression:"checkedList"}},e._l(e.optionList,(function(n){return t("el-checkbox",{key:n,attrs:{label:n}},[e._v(e._s(n))])})),1)],1),t("div",{staticClass:"rightTable"},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",stripe:"",height:"calc(100% - 40px)"}},[t("el-table-column",{attrs:{prop:"acquisitionTime",label:"采集时间"}}),e._l(e.columns,(function(e,n){return t("el-table-column",{key:n,attrs:{label:e.name,prop:e.field}})}))],2),t("div",{staticClass:"pageNation"},[t("el-pagination",{attrs:{"current-page":e.page,"page-size":e.pageSize,layout:"sizes, prev, pager, next, jumper,total",total:e.total},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)],1)])]),t("el-tab-pane",{attrs:{label:"图表",name:"chartTab"}},[t("div",{staticClass:"dataTabHead"},[t("h3",[e._v(e._s(e.crrrentName))])]),t("div",{staticClass:"echartsBox"},[0!==e.chartDataArr.total?t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.chartLoading,expression:"chartLoading"}],staticClass:"chartClass",attrs:{id:"deviceEchart"}},[t("lineChart",{attrs:{chartdata:e.chartDataArr}})],1):t("el-empty",{attrs:{description:"暂无图表数据"}})],1)])],1)],1)])])},s=[];n(4224),n(1121),n(7133),n(560);function a(e,t){return function(){return e.apply(t,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:c}=Object,l=(e=>t=>{const n=o.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),u=e=>(e=e.toLowerCase(),t=>l(t)===e),d=e=>t=>typeof t===e,{isArray:h}=Array,f=d("undefined");function p(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const m=u("ArrayBuffer");function g(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer),t}const b=d("string"),y=d("function"),w=d("number"),E=e=>null!==e&&"object"===typeof e,v=e=>!0===e||!1===e,O=e=>{if("object"!==l(e))return!1;const t=c(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},S=u("Date"),T=u("File"),C=u("Blob"),A=u("FileList"),x=e=>E(e)&&y(e.pipe),R=e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=l(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},N=u("URLSearchParams"),k=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function D(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let r,i;if("object"!==typeof e&&(e=[e]),h(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(r=0;r<s;r++)a=i[r],t.call(null,e[a],a,e)}}function L(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;while(i-- >0)if(r=n[i],t===r.toLowerCase())return r;return null}const _=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),j=e=>!f(e)&&e!==_;function P(){const{caseless:e}=j(this)&&this||{},t={},n=(n,r)=>{const i=e&&L(t,r)||r;O(t[i])&&O(n)?t[i]=P(t[i],n):O(n)?t[i]=P({},n):h(n)?t[i]=n.slice():t[i]=n};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&D(arguments[r],n);return t}const F=(e,t,n,{allOwnKeys:r}={})=>(D(t,((t,r)=>{n&&y(t)?e[r]=a(t,n):e[r]=t}),{allOwnKeys:r}),e),B=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),U=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},I=(e,t,n,r)=>{let i,s,a;const o={};if(t=t||{},null==e)return t;do{i=Object.getOwnPropertyNames(e),s=i.length;while(s-- >0)a=i[s],r&&!r(a,e,t)||o[a]||(t[a]=e[a],o[a]=!0);e=!1!==n&&c(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},M=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},z=e=>{if(!e)return null;if(h(e))return e;let t=e.length;if(!w(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},H=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&c(Uint8Array)),q=(e,t)=>{const n=e&&e[Symbol.iterator],r=n.call(e);let i;while((i=r.next())&&!i.done){const n=i.value;t.call(e,n[0],n[1])}},$=(e,t)=>{let n;const r=[];while(null!==(n=e.exec(t)))r.push(n);return r},K=u("HTMLFormElement"),J=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),Y=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),W=u("RegExp"),V=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};D(n,((n,i)=>{let s;!1!==(s=t(n,i,e))&&(r[i]=s||n)})),Object.defineProperties(e,r)},G=e=>{V(e,((t,n)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];y(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},X=(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return h(e)?r(e):r(String(e).split(t)),n},Z=()=>{},Q=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ee="abcdefghijklmnopqrstuvwxyz",te="0123456789",ne={DIGIT:te,ALPHA:ee,ALPHA_DIGIT:ee+ee.toUpperCase()+te},re=(e=16,t=ne.ALPHA_DIGIT)=>{let n="";const{length:r}=t;while(e--)n+=t[Math.random()*r|0];return n};function ie(e){return!!(e&&y(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const se=e=>{const t=new Array(10),n=(e,r)=>{if(E(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=h(e)?[]:{};return D(e,((e,t)=>{const s=n(e,r+1);!f(s)&&(i[t]=s)})),t[r]=void 0,i}}return e};return n(e,0)},ae=u("AsyncFunction"),oe=e=>e&&(E(e)||y(e))&&y(e.then)&&y(e.catch);var ce={isArray:h,isArrayBuffer:m,isBuffer:p,isFormData:R,isArrayBufferView:g,isString:b,isNumber:w,isBoolean:v,isObject:E,isPlainObject:O,isUndefined:f,isDate:S,isFile:T,isBlob:C,isRegExp:W,isFunction:y,isStream:x,isURLSearchParams:N,isTypedArray:H,isFileList:A,forEach:D,merge:P,extend:F,trim:k,stripBOM:B,inherits:U,toFlatObject:I,kindOf:l,kindOfTest:u,endsWith:M,toArray:z,forEachEntry:q,matchAll:$,isHTMLForm:K,hasOwnProperty:Y,hasOwnProp:Y,reduceDescriptors:V,freezeMethods:G,toObjectSet:X,toCamelCase:J,noop:Z,toFiniteNumber:Q,findKey:L,global:_,isContextDefined:j,ALPHABET:ne,generateString:re,isSpecCompliantForm:ie,toJSONObject:se,isAsyncFn:ae,isThenable:oe};function le(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}ce.inherits(le,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ce.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ue=le.prototype,de={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{de[e]={value:e}})),Object.defineProperties(le,de),Object.defineProperty(ue,"isAxiosError",{value:!0}),le.from=(e,t,n,r,i,s)=>{const a=Object.create(ue);return ce.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),le.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,s&&Object.assign(a,s),a};var he=le,fe=null;function pe(e){return ce.isPlainObject(e)||ce.isArray(e)}function me(e){return ce.endsWith(e,"[]")?e.slice(0,-2):e}function ge(e,t,n){return e?e.concat(t).map((function(e,t){return e=me(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}function be(e){return ce.isArray(e)&&!e.some(pe)}const ye=ce.toFlatObject(ce,{},null,(function(e){return/^is[A-Z]/.test(e)}));function we(e,t,n){if(!ce.isObject(e))throw new TypeError("target must be an object");t=t||new(fe||FormData),n=ce.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ce.isUndefined(t[e])}));const r=n.metaTokens,i=n.visitor||u,s=n.dots,a=n.indexes,o=n.Blob||"undefined"!==typeof Blob&&Blob,c=o&&ce.isSpecCompliantForm(t);if(!ce.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(ce.isDate(e))return e.toISOString();if(!c&&ce.isBlob(e))throw new he("Blob is not supported. Use a Buffer instead.");return ce.isArrayBuffer(e)||ce.isTypedArray(e)?c&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,i){let o=e;if(e&&!i&&"object"===typeof e)if(ce.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ce.isArray(e)&&be(e)||(ce.isFileList(e)||ce.endsWith(n,"[]"))&&(o=ce.toArray(e)))return n=me(n),o.forEach((function(e,r){!ce.isUndefined(e)&&null!==e&&t.append(!0===a?ge([n],r,s):null===a?n:n+"[]",l(e))})),!1;return!!pe(e)||(t.append(ge(i,n,s),l(e)),!1)}const d=[],h=Object.assign(ye,{defaultVisitor:u,convertValue:l,isVisitable:pe});function f(e,n){if(!ce.isUndefined(e)){if(-1!==d.indexOf(e))throw Error("Circular reference detected in "+n.join("."));d.push(e),ce.forEach(e,(function(e,r){const s=!(ce.isUndefined(e)||null===e)&&i.call(t,e,ce.isString(r)?r.trim():r,n,h);!0===s&&f(e,n?n.concat(r):[r])})),d.pop()}}if(!ce.isObject(e))throw new TypeError("data must be an object");return f(e),t}var Ee=we;function ve(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Oe(e,t){this._pairs=[],e&&Ee(e,this,t)}const Se=Oe.prototype;Se.append=function(e,t){this._pairs.push([e,t])},Se.toString=function(e){const t=e?function(t){return e.call(this,t,ve)}:ve;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Te=Oe;function Ce(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ae(e,t,n){if(!t)return e;const r=n&&n.encode||Ce,i=n&&n.serialize;let s;if(s=i?i(t,n):ce.isURLSearchParams(t)?t.toString():new Te(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}class xe{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ce.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Re=xe,Ne={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ke=(n(8858),n(1318),n(3228),"undefined"!==typeof URLSearchParams?URLSearchParams:Te),De="undefined"!==typeof FormData?FormData:null,Le="undefined"!==typeof Blob?Blob:null,_e={isBrowser:!0,classes:{URLSearchParams:ke,FormData:De,Blob:Le},protocols:["http","https","file","blob","url","data"]};const je="undefined"!==typeof window&&"undefined"!==typeof document,Pe=(e=>je&&["ReactNative","NativeScript","NS"].indexOf(e)<0)("undefined"!==typeof navigator&&navigator.product),Fe=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)();var Be={...r,..._e};function Ue(e,t){return Ee(e,new Be.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Be.isNode&&ce.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function Ie(e){return ce.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function Me(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function ze(e){function t(e,n,r,i){let s=e[i++];const a=Number.isFinite(+s),o=i>=e.length;if(s=!s&&ce.isArray(r)?r.length:s,o)return ce.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!a;r[s]&&ce.isObject(r[s])||(r[s]=[]);const c=t(e,n,r[s],i);return c&&ce.isArray(r[s])&&(r[s]=Me(r[s])),!a}if(ce.isFormData(e)&&ce.isFunction(e.entries)){const n={};return ce.forEachEntry(e,((e,r)=>{t(Ie(e),r,n,0)})),n}return null}var He=ze;function qe(e,t,n){if(ce.isString(e))try{return(t||JSON.parse)(e),ce.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}const $e={transitional:Ne,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=ce.isObject(e);i&&ce.isHTMLForm(e)&&(e=new FormData(e));const s=ce.isFormData(e);if(s)return r&&r?JSON.stringify(He(e)):e;if(ce.isArrayBuffer(e)||ce.isBuffer(e)||ce.isStream(e)||ce.isFile(e)||ce.isBlob(e))return e;if(ce.isArrayBufferView(e))return e.buffer;if(ce.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Ue(e,this.formSerializer).toString();if((a=ce.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ee(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),qe(e)):e}],transformResponse:[function(e){const t=this.transitional||$e.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&ce.isString(e)&&(n&&!this.responseType||r)){const n=t&&t.silentJSONParsing,s=!n&&r;try{return JSON.parse(e)}catch(i){if(s){if("SyntaxError"===i.name)throw he.from(i,he.ERR_BAD_RESPONSE,this,null,this.response);throw i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Be.classes.FormData,Blob:Be.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ce.forEach(["delete","get","head","post","put","patch"],(e=>{$e.headers[e]={}}));var Ke=$e;const Je=ce.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Ye=e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&Je[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t};const We=Symbol("internals");function Ve(e){return e&&String(e).trim().toLowerCase()}function Ge(e){return!1===e||null==e?e:ce.isArray(e)?e.map(Ge):String(e)}function Xe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;while(r=n.exec(e))t[r[1]]=r[2];return t}const Ze=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Qe(e,t,n,r,i){return ce.isFunction(r)?r.call(this,t,n):(i&&(t=n),ce.isString(t)?ce.isString(r)?-1!==t.indexOf(r):ce.isRegExp(r)?r.test(t):void 0:void 0)}function et(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function tt(e,t){const n=ce.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}class nt{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=Ve(t);if(!i)throw new Error("header name must be a non-empty string");const s=ce.findKey(r,i);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=Ge(e))}const s=(e,t)=>ce.forEach(e,((e,n)=>i(e,n,t)));return ce.isPlainObject(e)||e instanceof this.constructor?s(e,t):ce.isString(e)&&(e=e.trim())&&!Ze(e)?s(Ye(e),t):null!=e&&i(t,e,n),this}get(e,t){if(e=Ve(e),e){const n=ce.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return Xe(e);if(ce.isFunction(t))return t.call(this,e,n);if(ce.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ve(e),e){const n=ce.findKey(this,e);return!(!n||void 0===this[n]||t&&!Qe(this,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=Ve(e),e){const i=ce.findKey(n,e);!i||t&&!Qe(n,n[i],i,t)||(delete n[i],r=!0)}}return ce.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;while(n--){const i=t[n];e&&!Qe(this,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return ce.forEach(this,((r,i)=>{const s=ce.findKey(n,i);if(s)return t[s]=Ge(r),void delete t[i];const a=e?et(i):String(i).trim();a!==i&&delete t[i],t[a]=Ge(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ce.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ce.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=this[We]=this[We]={accessors:{}},n=t.accessors,r=this.prototype;function i(e){const t=Ve(e);n[t]||(tt(r,e),n[t]=!0)}return ce.isArray(e)?e.forEach(i):i(e),this}}nt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ce.reduceDescriptors(nt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),ce.freezeMethods(nt);var rt=nt;function it(e,t){const n=this||Ke,r=t||n,i=rt.from(r.headers);let s=r.data;return ce.forEach(e,(function(e){s=e.call(n,s,i.normalize(),t?t.status:void 0)})),i.normalize(),s}function st(e){return!(!e||!e.__CANCEL__)}function at(e,t,n){he.call(this,null==e?"canceled":e,he.ERR_CANCELED,t,n),this.name="CanceledError"}ce.inherits(at,he,{__CANCEL__:!0});var ot=at;n(3429);function ct(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new he("Request failed with status code "+n.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}var lt=Be.hasStandardBrowserEnv?{write(e,t,n,r,i,s){const a=[e+"="+encodeURIComponent(t)];ce.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ce.isString(r)&&a.push("path="+r),ce.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.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 ut(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dt(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function ht(e,t){return e&&!ut(t)?dt(e,t):t}var ft=Be.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=ce.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}();function pt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function mt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,s=0,a=0;return t=void 0!==t?t:1e3,function(o){const c=Date.now(),l=r[a];i||(i=c),n[s]=o,r[s]=c;let u=a,d=0;while(u!==s)d+=n[u++],u%=e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),c-i<t)return;const h=l&&c-l;return h?Math.round(1e3*d/h):void 0}}var gt=mt;function bt(e,t){let n=0;const r=gt(50,250);return i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,o=s-n,c=r(o),l=s<=a;n=s;const u={loaded:s,total:a,progress:a?s/a:void 0,bytes:o,rate:c||void 0,estimated:c&&a&&l?(a-s)/c:void 0,event:i};u[t?"download":"upload"]=!0,e(u)}}const yt="undefined"!==typeof XMLHttpRequest;var wt=yt&&function(e){return new Promise((function(t,n){let r=e.data;const i=rt.from(e.headers).normalize();let s,a,{responseType:o,withXSRFToken:c}=e;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}if(ce.isFormData(r))if(Be.hasStandardBrowserEnv||Be.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if(!1!==(a=i.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+n))}const d=ht(e.baseURL,e.url);function h(){if(!u)return;const r=rt.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),i=o&&"text"!==o&&"json"!==o?u.response:u.responseText,s={data:i,status:u.status,statusText:u.statusText,headers:r,config:e,request:u};ct((function(e){t(e),l()}),(function(e){n(e),l()}),s),u=null}if(u.open(e.method.toUpperCase(),Ae(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(h)},u.onabort=function(){u&&(n(new he("Request aborted",he.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new he("Network Error",he.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Ne;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new he(t,r.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,e,u)),u=null},Be.hasStandardBrowserEnv&&(c&&ce.isFunction(c)&&(c=c(e)),c||!1!==c&&ft(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&<.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===r&&i.setContentType(null),"setRequestHeader"in u&&ce.forEach(i.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),ce.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),o&&"json"!==o&&(u.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&u.addEventListener("progress",bt(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",bt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=t=>{u&&(n(!t||t.type?new ot(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const f=pt(d);f&&-1===Be.protocols.indexOf(f)?n(new he("Unsupported protocol "+f+":",he.ERR_BAD_REQUEST,e)):u.send(r||null)}))};const Et={http:fe,xhr:wt};ce.forEach(Et,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const vt=e=>`- ${e}`,Ot=e=>ce.isFunction(e)||null===e||!1===e;var St={getAdapter:e=>{e=ce.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let s=0;s<t;s++){let t;if(n=e[s],r=n,!Ot(n)&&(r=Et[(t=String(n)).toLowerCase()],void 0===r))throw new he(`Unknown adapter '${t}'`);if(r)break;i[t||"#"+s]=r}if(!r){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(vt).join("\n"):" "+vt(e[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r},adapters:Et};function Tt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ot(null,e)}function Ct(e){Tt(e),e.headers=rt.from(e.headers),e.data=it.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=St.getAdapter(e.adapter||Ke.adapter);return t(e).then((function(t){return Tt(e),t.data=it.call(e,e.transformResponse,t),t.headers=rt.from(t.headers),t}),(function(t){return st(t)||(Tt(e),t&&t.response&&(t.response.data=it.call(e,e.transformResponse,t.response),t.response.headers=rt.from(t.response.headers))),Promise.reject(t)}))}const At=e=>e instanceof rt?e.toJSON():e;function xt(e,t){t=t||{};const n={};function r(e,t,n){return ce.isPlainObject(e)&&ce.isPlainObject(t)?ce.merge.call({caseless:n},e,t):ce.isPlainObject(t)?ce.merge({},t):ce.isArray(t)?t.slice():t}function i(e,t,n){return ce.isUndefined(t)?ce.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function s(e,t){if(!ce.isUndefined(t))return r(void 0,t)}function a(e,t){return ce.isUndefined(t)?ce.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function o(n,i,s){return s in t?r(n,i):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(e,t)=>i(At(e),At(t),!0)};return ce.forEach(Object.keys(Object.assign({},e,t)),(function(r){const s=c[r]||i,a=s(e[r],t[r],r);ce.isUndefined(a)&&s!==o||(n[r]=a)})),n}const Rt="1.6.2",Nt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Nt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const kt={};function Dt(e,t,n){if("object"!==typeof e)throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;while(i-- >0){const s=r[i],a=t[s];if(a){const t=e[s],n=void 0===t||a(t,s,e);if(!0!==n)throw new he("option "+s+" must be "+n,he.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new he("Unknown option "+s,he.ERR_BAD_OPTION)}}Nt.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Rt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,s)=>{if(!1===e)throw new he(r(i," has been removed"+(t?" in "+t:"")),he.ERR_DEPRECATED);return t&&!kt[i]&&(kt[i]=!0),!e||e(n,i,s)}};var Lt={assertOptions:Dt,validators:Nt};const _t=Lt.validators;class jt{constructor(e){this.defaults=e,this.interceptors={request:new Re,response:new Re}}request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=xt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&Lt.assertOptions(n,{silentJSONParsing:_t.transitional(_t.boolean),forcedJSONParsing:_t.transitional(_t.boolean),clarifyTimeoutError:_t.transitional(_t.boolean)},!1),null!=r&&(ce.isFunction(r)?t.paramsSerializer={serialize:r}:Lt.assertOptions(r,{encode:_t.function,serialize:_t.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=i&&ce.merge(i.common,i[t.method]);i&&ce.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=rt.concat(s,i);const a=[];let o=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!o){const e=[Ct.bind(this),void 0];e.unshift.apply(e,a),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);while(d<u)l=l.then(e[d++],e[d++]);return l}u=a.length;let h=t;d=0;while(d<u){const e=a[d++],t=a[d++];try{h=e(h)}catch(f){t.call(this,f);break}}try{l=Ct.call(this,h)}catch(f){return Promise.reject(f)}d=0,u=c.length;while(d<u)l=l.then(c[d++],c[d++]);return l}getUri(e){e=xt(this.defaults,e);const t=ht(e.baseURL,e.url);return Ae(t,e.params,e.paramsSerializer)}}ce.forEach(["delete","get","head","options"],(function(e){jt.prototype[e]=function(t,n){return this.request(xt(n||{},{method:e,url:t,data:(n||{}).data}))}})),ce.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(xt(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}jt.prototype[e]=t(),jt.prototype[e+"Form"]=t(!0)}));var Pt=jt;class Ft{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new ot(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new Ft((function(t){e=t}));return{token:t,cancel:e}}}var Bt=Ft;function Ut(e){return function(t){return e.apply(null,t)}}function It(e){return ce.isObject(e)&&!0===e.isAxiosError}const Mt={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(Mt).forEach((([e,t])=>{Mt[t]=e}));var zt=Mt;function Ht(e){const t=new Pt(e),n=a(Pt.prototype.request,t);return ce.extend(n,Pt.prototype,t,{allOwnKeys:!0}),ce.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Ht(xt(e,t))},n}const qt=Ht(Ke);qt.Axios=Pt,qt.CanceledError=ot,qt.CancelToken=Bt,qt.isCancel=st,qt.VERSION=Rt,qt.toFormData=Ee,qt.AxiosError=he,qt.Cancel=qt.CanceledError,qt.all=function(e){return Promise.all(e)},qt.spread=Ut,qt.isAxiosError=It,qt.mergeConfig=xt,qt.AxiosHeaders=rt,qt.formToJSON=e=>He(ce.isHTMLForm(e)?new FormData(e):e),qt.getAdapter=St.getAdapter,qt.HttpStatusCode=zt,qt.default=qt;var $t=qt;n(8499),n(1120);const Kt=$t.create({baseURL:"/cac-api",timeout:3e4});Kt.interceptors.request.use((function(e){return e}),(function(e){return Promise.reject(e)})),Kt.interceptors.response.use((function(e){return e.data}),(function(e){return Promise.reject(e)}));var Jt=Kt;function Yt(e){return Jt({url:"/sensor/getTree",method:"get",data:e})}function Wt(e){return Jt({url:"/sensor/detail",method:"get",params:e,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}})}var Vt=function(){var e=this,t=e._self._c;return t("div",{ref:"lineChart",staticClass:"lineChart"})},Gt=[],Xt={props:["chartdata"],data(){return{}},watch:{chartdata:function(e,t){this.$nextTick((()=>{0!==this.chartdata.length&&this.drawLine()}))}},mounted(){this.$nextTick((()=>{0!==this.chartdata.length&&this.drawLine()}))},methods:{drawLine(){for(var e=this.chartdata.points,t=[],n=this.chartdata.content.map((e=>e.acquisitionTime)),r=[],i=[],s=0;s<e.length;s++)r.push({name:e[s].name,type:"line",yAxisIndex:s,data:e[s].data,smooth:!0}),t.push(e[s].name),i.push({name:e[s].name,type:"value",position:s%2==0?"left":"right",offset:s+1<=2?0:40*(Math.ceil((s+1)/2)-1),axisLine:{show:!0},axisTick:{show:!0},axisLabel:{formatter:"{value}"}});let a=this.$echarts.init(this.$refs.lineChart);this.$refs.lineChart.hasAttribute("_echarts_instance_")&&this.$refs.lineChart.removeAttribute("_echarts_instance_"),a.setOption({legend:{data:t},tooltip:{trigger:"axis"},dataZoom:[{type:"inside",start:0,end:20},{start:0,end:20}],xAxis:{type:"category",name:"时间",boundaryGap:!1,data:n},yAxis:i,series:r}),window.addEventListener("resize",(()=>{a.resize()}))}}},Zt=Xt,Qt=n(1001),en=(0,Qt.Z)(Zt,Vt,Gt,!1,null,null,null),tn=en.exports,nn={name:"dataReport",components:{lineChart:tn},data(){return{filterText:"",treeData:[],defaultExpandedKeys:[],currentNodeData:[],currentId:"",crrrentName:"",currentNodekey:"",selectedNode:null,defaultProps:{children:"children",label:"name"},formdata:{},activeName:"dataTab",tableLoading:!1,checkAll:!0,optionList:[],checkedList:[],formTheadOptions:[],isIndeterminate:!1,key:1,tableData:[],columns:[],page:1,pageSize:20,total:0,tabName:"dataTab",chartDataArr:[],chartLoading:!1}},computed:{},watch:{filterText(e){this.handleFilter()},endtime(e){if(e){const t=new Date(e);t.setHours(23),t.setMinutes(59),t.setSeconds(59),this.formdata.endtime=t}},checkedList(e){this.columns=this.formTheadOptions.filter((t=>e.indexOf(t.name)>=0)),this.key=this.key+1}},created(){this.$set(this.formdata,"starttime",new Date((new Date).toLocaleDateString()));const e=new Date;e.setHours(23),e.setMinutes(59),e.setSeconds(59),this.$set(this.formdata,"endtime",e),this.treeData=[],this.getSubNodes()},methods:{handleFilter(){setTimeout((()=>{this.$refs.tree.filter(this.filterText)}),500)},filterNode(e,t,n){return!e||(this.searchName=t.name,-1!==this.searchName.indexOf(e)||void 0)},handleNodeClick(e,t){e.children?.length?this.$nextTick((()=>{this.$refs.tree.setCurrentKey(this.currentNodeKey)})):(this.currentNodeKey=e.id,this.crrrentName=e.name,this.currentId=e.id,this.page=1,this.pageSize=20,this.handleSearch())},async getSubNodes(){try{const e=await Yt();e.data&&e.data.length>0?(this.treeData=e.data,this.defaultExpandedKeys=[this.treeData[0].id],this.currentNodekey=this.treeData[0].children[0].id,this.currentNodeData=this.treeData[0].children[0],this.$nextTick((()=>{this.$refs.tree.setCurrentKey(this.currentNodekey),this.handleNodeClick(this.currentNodeData)}))):this.treeData[0].children=[]}catch(e){}},changedate(){const e=new Date(this.formdata.endtime);e.setHours(23),e.setMinutes(59),e.setSeconds(59),this.formdata.endtime=e},handleSearch(){this.formdata.starttime=this.$moment(this.formdata.starttime).format("YYYY-MM-DD HH:mm:ss"),this.formdata.endtime=this.$moment(this.formdata.endtime).format("YYYY-MM-DD HH:mm:ss"),"dataTab"==this.tabName?this.getDetailTable(this.currentId,this.formdata.starttime,this.formdata.endtime):"chartTab"==this.tabName&&this.getEchartData(this.currentId,this.formdata.starttime,this.formdata.endtime)},getDetailTable(e,t,n){this.tableLoading=!0,Wt({id:e,startTime:t,endTime:n,pageNum:this.page,pageSize:this.pageSize}).then((e=>{e.success?(this.total=e.data.total,this.tableData=e.data.content,this.columns=e.data.points,this.formTheadOptions=e.data.points,this.optionList=e.data.points.map((e=>e.name)),this.checkedList=this.optionList,this.tableLoading=!1):(this.tableLoading=!1,this.tableData=[],this.$message({showClose:!0,message:e.errorMsg,type:"error"}))})).catch((e=>{}))},handleCheckAllChange(e){this.checkedList=e?this.optionList:[],this.isIndeterminate=!1},handleCheckedCitiesChange(e){let t=e.length;this.checkAll=t===this.optionList.length,this.isIndeterminate=t>0&&t<this.optionList.length},handleClick(e,t){this.tabName=e.name,"chartTab"===this.tabName&&(this.formdata.starttime=this.$moment(this.formdata.starttime).format("YYYY-MM-DD HH:mm:ss"),this.formdata.endtime=this.$moment(this.formdata.endtime).format("YYYY-MM-DD HH:mm:ss"),this.getEchartData(this.currentId,this.formdata.starttime,this.formdata.endtime))},handleExport(){},handleCurrentChange(e){this.page=e,this.tableData=[],this.getDetailTable(this.currentId,this.formdata.starttime,this.formdata.endtime)},handleSizeChange(e){this.pageSize=e,this.tableData=[],this.getDetailTable(this.currentId,this.formdata.starttime,this.formdata.endtime)},getEchartData(e,t,n){this.chartLoading=!0,this.chartDataArr=[],Wt({id:e,startTime:t,endTime:n}).then((e=>{e.success?(this.chartLoading=!1,this.chartDataArr=e.data):(this.chartLoading=!1,this.chartDataArr=[],this.$message({showClose:!0,message:e.errorMsg,type:"error"}))})).catch((e=>{}))}}},rn=nn,sn=(0,Qt.Z)(rn,i,s,!1,null,null,null),an=sn.exports}}]);
|