1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-device-Manage-export-export"],{2193:function(t,e,a){"use strict";var i=a("4ea4");a("99af"),a("ac1f"),a("466d"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var n=i(a("1da1")),s={data:function(){return{getExportData:[],dataRes:0,datetimerange:["",""],keyWords:"",dwtype:0}},onLoad:function(t){this.dwtype=t.dwtype,this.getData({company_code:uni.getStorageSync("selectedCode"),dwtype:this.dwtype,start_time:"",end_time:""})},watch:{datetimerange:function(t){this.getData({company_code:uni.getStorageSync("selectedCode"),dwtype:this.dwtype,start_time:t[0],end_time:t[1]})}},methods:{getData:function(){var t=arguments,e=this;return(0,n.default)(regeneratorRuntime.mark((function a(){var i,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i=t.length>0&&void 0!==t[0]?t[0]:{},a.next=3,e.$myRequest({url:"DeviceManagement/getDeviceList",data:i,showLoading:!0});case 3:n=a.sent,e.getExportData=n.data.data,e.dataRes=1;case 6:case"end":return a.stop()}}),a)})))()},exportButton:function(){var t=this.datetimerange[0]?"start_time/".concat(this.datetimerange[0],"/"):"",e=this.datetimerange[1]?"end_time/".concat(this.datetimerange[1],"/"):"",a=this.$BASE_URL+"ExportModule/getDeviceListExpor/".concat(t).concat(e,"dwtype/").concat(this.dwtype,"/company_code/").concat(uni.getStorageSync("selectedCode"),"/"),i=window.navigator.userAgent.toLowerCase();"micromessenger"==i.match(/MicroMessenger/i)?uni.showModal({showCancel:!1,content:"如需下载,请在默认浏览器中操作",success:function(t){window.location.href=a}}):window.location.href=a}}};e.default=s},3050:function(t,e,a){"use strict";a.r(e);var i=a("2193"),n=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},8432:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"processWrapper exportBody "},[a("v-uni-view",{staticStyle:{height:"98rpx"}}),a("v-uni-view",{staticClass:"ding"},[a("v-uni-view",{staticClass:"example-body"},[a("uni-datetime-picker",{attrs:{type:"daterange","start-placeholder":"请选择开始时间","end-placeholder":"请选择结束时间",start:"2000-3-20 12:00:00",end:"2025-10-20 20:00:00",rangeSeparator:"至"},model:{value:t.datetimerange,callback:function(e){t.datetimerange=e},expression:"datetimerange"}})],1)],1),[a("v-uni-view",{staticClass:"processList"},[a("v-uni-view",{staticClass:"cu-list menu-avatar"},[t._l(t.getExportData,(function(e,i){return a("v-uni-view",{key:i,staticClass:"cu-item"},[a("v-uni-view",{staticClass:"cu-avatar lg"},[a("v-uni-image",{staticClass:"image-bg",attrs:{src:(e.device_state,"/static/device-icon.png")}})],1),a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"pro-title"},[a("v-uni-view",{staticClass:"cut"},[t._v(t._s(e.owner_name))])],1),a("v-uni-view",{staticClass:"pro-des "},[a("v-uni-view",{staticClass:"text-cut"},[t._v(t._s(e.unitinfo))])],1),a("v-uni-view",{staticClass:"pro-date "},[t._v(t._s(e.install_time))])],1),a("v-uni-view",{staticClass:"nav-right num"},[a("v-uni-view",{staticClass:"text-grey"},[a("span",{class:"在线"==e.device_state?"online":"offline"},[t._v(t._s(e.device_state))]),a("v-uni-text",{staticClass:"icon iconfont margin-right-xs margin-left-lg"},[t._v("")])],1)],1)],1)})),!this.getExportData.length&&this.dataRes?a("v-uni-view",{staticClass:" text-center margin-top"},[t._v("暂无数据...")]):t._e()],2)],1)],this.getExportData.length>0?a("v-uni-view",{staticClass:"padding-lr padding-bottom-lg bg-white",staticStyle:{position:"fixed",bottom:"0",width:"100%"}},[a("v-uni-view",{staticClass:"btn-area"},[a("v-uni-button",{staticClass:"bg-blue round missReport margin-top",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.exportButton()}}},[t._v("导 出")])],1)],1):t._e()],2)},s=[]},e975:function(t,e,a){"use strict";a.r(e);var i=a("8432"),n=a("3050");for(var s in n)"default"!==s&&function(t){a.d(e,t,(function(){return n[t]}))}(s);var r,c=a("f0c5"),o=Object(c["a"])(n["default"],i["b"],i["c"],!1,null,"f9eec6f0",null,!1,i["a"],r);e["default"]=o.exports}}]);
|