7 lines
25 KiB
JavaScript
7 lines
25 KiB
JavaScript
|
/*!
|
||
|
* build: vue-admin-beautiful
|
||
|
* vue-admin-beautiful author: chuzhixin 1204505056@qq.com
|
||
|
* vue-admin-beautiful QQ Group(QQ群): 972435319、1139183756
|
||
|
* time: 2024-10-10 11:14:28
|
||
|
*/
|
||
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0be98882","chunk-a186bb94","chunk-04801e49","chunk-2a99e37c","chunk-48c6c59a","chunk-bb7ffe10","chunk-bb7ffe10","chunk-bb7ffe10","chunk-bb7ffe10","chunk-bb7ffe10","chunk-bb7ffe10","chunk-bb7ffe10"],{"271a":function(e,t,a){"use strict";var o=a("cb2d"),n=a("e330"),r=a("577e"),c=a("d6d6"),i=URLSearchParams,d=i.prototype,l=n(d.getAll),s=n(d.has),u=new i("a=1");!u.has("a",2)&&u.has("a",void 0)||o(d,"has",(function(e){var t=arguments.length,a=t<2?void 0:arguments[1];if(t&&void 0===a)return s(this,e);var o=l(this,e);c(t,1);var n=r(a),i=0;while(i<o.length)if(o[i++]===n)return!0;return!1}),{enumerable:!0,unsafe:!0})},3038:function(e,t,a){"use strict";a.r(t);a("88a7"),a("271a"),a("5494");var o=a("bc3a"),n=a.n(o),r=a("4360");const c=n.a.create({baseURL:Object({NODE_ENV:"production",VUE_APP_AUTHOR:"Cc",VUE_APP_TITLE:"力鼎环保",VUE_APP_UPDATE_TIME:"2024-10-10 11:14:28",VUE_APP_VERSION:"1.0.0",BASE_URL:""}).VUE_APP_BASE_API,timeout:1e5}),i=r["default"].getters["user/token"];c.interceptors.request.use(e=>(e.headers={token:i},e),e=>Promise.reject(e));const d=async(e,t)=>{await c.get(e,{responseType:"arraybuffer"}).then(e=>u(e,t))},l=async(e,t)=>{await c.post(e,{responseType:"arraybuffer"}).then(e=>u(e,t))},s=async(e,t)=>{await c.get(e,{responseType:"blob"}).then(e=>u(e,t))},u=(e,t)=>{const a=new Blob([e.data],{type:t.fileType?t.fileType:"application/octet-binary"}),o=window.URL.createObjectURL(a);b(o,t.fileName)},b=(e,t,a)=>{const o=document.createElement("a");o.href=e,o.download=t,document.body.appendChild(o),o.click(),document.body.removeChild(o),(null==a||a)&&window.URL.revokeObjectURL(e)},h=async(e,t)=>{let a;return await c.get(e,{responseType:"blob"}).then(e=>{a=new Blob([e.data],{type:t||"application/octet-binary"})}),window.URL.createObjectURL(a)},m=async(e,t,a)=>{let o;return await c.post(e,t,{responseType:"blob"}).then(e=>{o=new Blob([e.data],{type:a||"application/octet-binary"})}),window.URL.createObjectURL(o)},f=async(e,t)=>{let a;return await c.get(e,{responseType:"blob"}).then(e=>{a=new Blob([e.data],{type:t||"application/octet-binary"})}),a};t["default"]={ajax:c,downloadFile:d,getFile:s,getDownloadFileUrl:h,downloadPostFile:l,getDownloadFileUrlByPost:m,getDownloadFileBlob:f,downloadBlob:b}},4180:function(e,t,a){"use strict";a("b584")},5494:function(e,t,a){"use strict";var o=a("83ab"),n=a("e330"),r=a("edd0"),c=URLSearchParams.prototype,i=n(c.forEach);o&&!("size"in c)&&r(c,"size",{get:function(){var e=0;return i(this,(function(){e++})),e},configurable:!0,enumerable:!0})},"5f5a":function(e,t,a){"use strict";a.r(t);var o=a("f2bf");const n={class:"manage-container"};function r(e,t,a,r,c,i){const d=Object(o["resolveComponent"])("current-data"),l=Object(o["resolveComponent"])("el-tab-pane"),s=Object(o["resolveComponent"])("history-data"),u=Object(o["resolveComponent"])("el-tabs");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",n,[Object(o["createVNode"])(u,{modelValue:c.activeName,"onUpdate:modelValue":t[0]||(t[0]=e=>c.activeName=e),onTabClick:i.handleClick},{default:Object(o["withCtx"])(()=>[Object(o["createVNode"])(l,{label:e.$t("sensor.dqsj"),name:"first"},{default:Object(o["withCtx"])(()=>[Object(o["createVNode"])(d,{ref:"current"},null,512)]),_:1},8,["label"]),Object(o["createVNode"])(l,{label:e.$t("sensor.lssj"),name:"second"},{default:Object(o["withCtx"])(()=>[Object(o["createVNode"])(s,{ref:"history"},null,512)]),_:1},8,["label"])]),_:1},8,["modelValue","onTabClick"])])}var c=a("ec65"),i=a("76c1"),d={components:{currentData:c["default"],historyData:i["default"]},data(){return{activeName:"first",dataKey:"",startDate:"",queryForm:{page:1,size:200,dataKey:"",deviceCode:"",start:"",end:""}}},computed:{height(){return 500}},created(){this.queryForm.dataKey=this.$route.query.dataKey,this.queryForm.deviceCode=this.$route.query.deviceCode},methods:{handleClick(e,t){console.log(e,t),"second"==e.paneName?this.$refs["history"].showData({dataKey:this.queryForm.dataKey,deviceCode:this.queryForm.deviceCode}):this.$refs["current"].showData({data
|