zhgdyunapp/unpackage/dist/build/h5/static/js/pages-markRoomManage-markRoomManage.398a2b8f.js
2023-04-03 15:52:01 +08:00

1 line
18 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-markRoomManage-markRoomManage"],{"0a7b":function(t,a,e){"use strict";var n=e("2009"),s=e.n(n);s.a},"12b6":function(t,a,e){var n=e("24fb"),s=e("1de5"),i=e("200b");a=n(!1);var o=s(i);a.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.statictisBox[data-v-692bddc4]{width:100%;height:150px;background:url('+o+");color:#fff;display:flex;align-items:center;position:relative;margin-top:10px}.statictisBox .numBox[data-v-692bddc4]{flex:1;text-align:center}.statictisBox .numBox .num[data-v-692bddc4]{font-size:30px;line-height:40px}.statictisBox .numBox .text[data-v-692bddc4]{font-size:12px}.forwardImg[data-v-692bddc4]{position:absolute;right:10px;top:50%;margin-top:-15px;opacity:.8}.statusTips[data-v-692bddc4]{position:absolute;right:0;top:2px;display:flex;align-items:center}.statusTips .kuai[data-v-692bddc4]{width:12px;height:12px;margin-left:8px}.statusTips .text[data-v-692bddc4]{font-size:12px;color:#262d47;opacity:.9;margin-left:3px}.kuai1[data-v-692bddc4]{background-color:#5181f6}.kuai2[data-v-692bddc4]{background-color:#f49006}.kuai3[data-v-692bddc4]{background-color:#ea3941}.kuai4[data-v-692bddc4]{background-color:#44d7b6}.kuaiBox[data-v-692bddc4]{display:inline-flex;align-items:center;margin-bottom:3px}.kuaiBox .kuai[data-v-692bddc4]{min-width:20px;height:20px;line-height:20px;color:#fff;font-size:12px}.avgageBox[data-v-692bddc4]{font-size:14px;display:flex;align-items:center;justify-content:space-between;margin-top:10px;color:#262d47}.avgageBox .primaryText[data-v-692bddc4]{margin-right:10px}",""]),t.exports=a},1895:function(t,a,e){"use strict";e.d(a,"b",(function(){return n})),e.d(a,"c",(function(){return s})),e.d(a,"a",(function(){}));var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"footerBox",class:5==t.userInfo.accountType||6==t.userInfo.accountType?"footerBox2":""},t._l(t.tabList,(function(a,n){return 1==a.appShow?e("v-uni-view",{key:n,staticClass:"footerItem",class:t.activeTab==a.plugin?"active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabClick(a.plugin)}}},[e("v-uni-image",{staticClass:"tabIcon tabIcon1",attrs:{src:"/static/"+a.moduleIcon2+".png"}}),e("v-uni-image",{staticClass:"tabIcon tabIcon2",attrs:{src:"/static/"+a.moduleIcon+".png"}}),e("v-uni-view",{staticClass:"desc"},[t._v(t._s(a.appName))])],1):t._e()})),1)},s=[]},"1de5":function(t,a,e){"use strict";t.exports=function(t,a){return a||(a={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),a.hash&&(t+=a.hash),/["'() \t\n]/.test(t)||a.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},2009:function(t,a,e){var n=e("4313");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var s=e("4f06").default;s("cd34fa7e",n,!0,{sourceMap:!1,shadowMode:!1})},"200b":function(t,a,e){t.exports=e.p+"static/img/bg1.fdf1d7f7.png"},2057:function(t,a,e){"use strict";e.d(a,"b",(function(){return s})),e.d(a,"c",(function(){return i})),e.d(a,"a",(function(){return n}));var n={uniIcons:e("d021").default},s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{class:t.themeType?"whiteHeaderBox":""},[e("v-uni-view",{staticClass:"statusBar",style:{height:t.mobileTopHeight+"px"}}),e("v-uni-view",{staticClass:"headerBox"},[e("uni-icons",{directives:[{name:"show",rawName:"v-show",value:t.showBack,expression:"showBack"}],staticClass:"backImg",attrs:{type:"arrowleft",size:"24"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.goBackFn.apply(void 0,arguments)}}}),t._t("default")],2)],1)},i=[]},2355:function(t,a,e){"use strict";var n=e("3b21"),s=e.n(n);s.a},3302:function(t,a,e){var n=e("12b6");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var s=e("4f06").default;s("55d990dc",n,!0,{sourceMap:!1,shadowMode:!1})},"3b21":function(t,a,e){var n=e("bad1");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var s=e("4f06").default;s("371ec1c6",n,!0,{sourceMap:!1,shadowMode:!1})},4313:function(t,a,e){var n=e("24fb");a=n(!1),a.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.statusBar[data-v-929d0930]{background-color:#2a2b5b}.whiteHeaderBox .statusBar[data-v-929d0930]{background-color:#2b8df3}',""]),t.exports=a},"50e1":function(t,a,e){"use strict";e.r(a);var n=e("ae68"),s=e.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(i);a["default"]=s.a},"561f":function(t,a,e){"use strict";e.r(a);var n=e("6a23"),s=e("ee93");for(var i in s)["default"].indexOf(i)<0&&function(t){e.d(a,t,(function(){return s[t]}))}(i);e("fa5a");var o=e("f0c5"),r=Object(o["a"])(s["default"],n["b"],n["c"],!1,null,"692bddc4",null,!1,n["a"],void 0);a["default"]=r.exports},"6a23":function(t,a,e){"use strict";e.d(a,"b",(function(){return s})),e.d(a,"c",(function(){return i})),e.d(a,"a",(function(){return n}));var n={headers:e("f9d8").default,uniIcons:e("d021").default,footers:e("897d").default},s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"fullHeight bgLightBlue"},[e("v-uni-scroll-view",{staticClass:"pageContent",attrs:{"scroll-y":"true"}},[e("headers",{attrs:{showBack:t.parentSn}},[e("v-uni-view",{staticClass:"headerName"},[t._v(t._s(t.currentCompany.companyName))])],1),5!=t.userInfo.accountType&&6!=t.userInfo.accountType?e("v-uni-scroll-view",{staticClass:"scroll-view_H",attrs:{"scroll-x":"true"}},[e("v-uni-view",{staticClass:"scroll-view-item_H",class:-1==t.activeTabIndex?"active":"",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.changeLevel(-1)}}},[e("v-uni-text",{staticClass:"name"},[t._v(t._s("集团"==t.currentCompany.companyName?t.currentCompany.companyName:"全部"))])],1),t._l(t.mapData,(function(a,n){return e("v-uni-view",{key:n,staticClass:"scroll-view-item_H",class:t.activeTabIndex==n?"active":"",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.changeLevel(n)}}},[e("v-uni-text",{staticClass:"name"},[t._v(t._s(a.name))])],1)}))],2):t._e(),e("v-uni-view",{staticClass:"statictisBox"},[e("v-uni-view",{staticClass:"numBox",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.goBackEndFn.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"num"},[t._v(t._s(t.statisticsCount.totalProjectNum))]),e("v-uni-text",{staticClass:"text"},[t._v("项目总数")])],1),e("uni-icons",{directives:[{name:"show",rawName:"v-show",value:-1!=t.activeTabIndex&&!t.mapData[t.activeTabIndex].projectSn,expression:"activeTabIndex!=-1&&!mapData[activeTabIndex].projectSn"}],staticClass:"forwardImg",attrs:{color:"white",type:"arrowright",size:"30"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.forwardFn.apply(void 0,arguments)}}})],1),e("v-uni-view",{staticClass:"blockBox"},[e("v-uni-view",{staticClass:"blockTitle"},[e("v-uni-view",{staticClass:"titleName"},[t._v("数据统计")])],1),e("v-uni-view",{staticClass:"blockContent"},[e("v-uni-view",{staticClass:"dataBox"},[e("v-uni-view",{staticClass:"dataItem"},[e("v-uni-view",{staticClass:"num primaryText"},[t._v(t._s(t.statisticsCount.devProjectNum))]),e("v-uni-view",{staticClass:"text"},[t._v("接入设备的项目数")])],1),e("v-uni-view",{staticClass:"dataItem"},[e("v-uni-view",{staticClass:"num primaryText"},[t._v(t._s(t.statisticsCount.totalDev))]),e("v-uni-view",{staticClass:"text"},[t._v("总设备数量")])],1)],1),e("v-uni-view",{staticClass:"dataBox"},[e("v-uni-view",{staticClass:"dataItem"},[e("v-uni-view",{staticClass:"num primaryText"},[t._v(t._s(t.statisticsCount.devNotOnline))]),e("v-uni-view",{staticClass:"text"},[t._v("离线设备数量")])],1),e("v-uni-view",{staticClass:"dataItem"},[e("v-uni-view",{staticClass:"num primaryText"},[t._v(t._s(t.statisticsCount.devOnline))]),e("v-uni-view",{staticClass:"text"},[t._v("在线设备数量")])],1)],1)],1)],1),e("v-uni-view",{staticClass:"blockBox"},[e("v-uni-view",{staticClass:"blockTitle"},[e("v-uni-view",{staticClass:"titleName"},[t._v("设备统计")]),e("v-uni-view",{staticClass:"statusTips"},[e("v-uni-view",{staticClass:"kuai kuai1"}),e("v-uni-view",{staticClass:"text"},[t._v("设备总数")]),e("v-uni-view",{staticClass:"kuai kuai4"}),e("v-uni-view",{staticClass:"text"},[t._v("设备在线数")]),e("v-uni-view",{staticClass:"kuai kuai2"}),e("v-uni-view",{staticClass:"text"},[t._v("设备离线数")])],1)],1),e("v-uni-view",{staticClass:"blockContent"},[e("u-charts",{ref:"ageChart",attrs:{"canvas-id":"ageChart",chartType:"column",opts:t.ageChartData}})],1)],1)],1),e("footers",{attrs:{activeTab:"markRoom"}})],1)},i=[]},"897d":function(t,a,e){"use strict";e.r(a);var n=e("1895"),s=e("50e1");for(var i in s)["default"].indexOf(i)<0&&function(t){e.d(a,t,(function(){return s[t]}))}(i);e("2355");var o=e("f0c5"),r=Object(o["a"])(s["default"],n["b"],n["c"],!1,null,"024dbb9b",null,!1,n["a"],void 0);a["default"]=r.exports},ae68:function(t,a,e){"use strict";e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("14d9");var n={props:["activeTab"],data:function(){return{tabList:[],userInfo:{accountType:1}}},mounted:function(){if(this.userInfo=JSON.parse(uni.getStorageSync("userInfo")),5==this.userInfo.accountType||6==this.userInfo.accountType)this.tabList.push({appName:"首页",moduleIcon2:"tabIcon-index",moduleIcon:"tabIcon-index-active",plugin:"projectEnd",appShow:1},{appName:"我的",moduleIcon2:"tabIcon-my2",moduleIcon:"tabIcon-my2-active",plugin:"my",appShow:1});else{for(var t=this.userInfo.menuAuthority.moduleList,a=0;a<t.length;a++)1==t[a].moduleType&&this.tabList.push(t[a]);this.tabList.push({appName:"首页总览",moduleIcon2:"sjjt_syzl",moduleIcon:"sjjt_syzl-tab",plugin:"projectManage",appShow:1},{appName:"我的",moduleIcon2:"tabIcon-my",moduleIcon:"tabIcon-my-select",plugin:"my",appShow:1})}},methods:{tabClick:function(t){switch(console.log(t),t){case"projectManage":uni.redirectTo({url:"../../pages/projectManage/projectManage"});break;case"videoManage":5==this.userInfo.accountType?uni.redirectTo({url:"../../pages/videoManage/videoList?sn="+that.userInfo.sn}):uni.redirectTo({url:"../../pages/areaTree/areaTree"});break;case"my":uni.redirectTo({url:"/pages/my/my"});break;case"personManage":uni.redirectTo({url:"../../pages/personManage/personManage"});break;case"projectEnd":uni.redirectTo({url:"/pages/projectEnd/projectIndex/projectIndex"});break;case"deviceManage":uni.redirectTo({url:"../../pages/deviceManage/deviceManage"});break;case"markRoom":uni.redirectTo({url:"../../pages/markRoomManage/markRoomManage"});break}}}};a.default=n},bad1:function(t,a,e){var n=e("24fb");a=n(!1),a.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.footerBox[data-v-024dbb9b]{background-color:#fff;display:flex;width:100%;position:fixed;bottom:0;left:0;z-index:9999;border-top:1px solid hsla(0,0%,59.2%,.15)}.footerItem[data-v-024dbb9b]{font-size:12px;flex:1;justify-content:center;text-align:center;color:#9495ad}.footerItem .tabIcon2[data-v-024dbb9b]{display:none}.footerItem.active[data-v-024dbb9b]{color:#5181f6}.footerItem.active .tabIcon2[data-v-024dbb9b]{display:inline-block}.footerItem.active .tabIcon1[data-v-024dbb9b]{display:none}.footerItem .desc[data-v-024dbb9b]{padding-bottom:5px}.tabIcon[data-v-024dbb9b]{width:26px;height:26px}.footerBox2 .desc[data-v-024dbb9b]{padding-bottom:8px}.footerBox2 .footerItem:first-child .tabIcon[data-v-024dbb9b]{padding-top:10px;width:23px;height:21px}.footerBox2 .footerItem:last-child .tabIcon[data-v-024dbb9b]{padding-top:8px;width:20px;height:23px}',""]),t.exports=a},c07a:function(t,a,e){"use strict";e("7a82");var n=e("4ea4").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var s=n(e("d021")),i={props:["showBack","themeType"],components:{uniIcons:s.default},data:function(){return{mobileTopHeight:0}},mounted:function(){var t=this;uni.getSystemInfo({success:function(a){t.mobileTopHeight=a.statusBarHeight,uni.setStorageSync("systemInfo",a),console.log(a)}}),console.log("this.mobileTopHeight",this.mobileTopHeight)},methods:{goBackFn:function(){uni.navigateBack({success:function(){}})}}};a.default=i},c69b:function(t,a,e){"use strict";e("7a82");var n=e("4ea4").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("14d9");var s=n(e("f9d8")),i=n(e("897d")),o=n(e("4db4")),r=n(e("d021")),c={components:{headers:s.default,footers:i.default,uCharts:o.default,uniIcons:r.default},data:function(){return{userInfo:null,backArr:[],searchsn:"",mapData:[],statisticsCount:{devNotOnline:0,devOnline:0,devProjectNum:0,totalDev:0,totalProjectNum:0},ageChartData:{categories:[],series:[]},activeTabIndex:-1,parentSn:"",currentCompany:{companyName:"集团"}}},onShow:function(){console.log("onShow");var t=getCurrentPages(),a=(t[t.length-1].route,t[t.length-1].options);a.sn&&(this.parentSn=a.sn,this.searchsn=a.sn),this.activeTabIndex=-1,this.userInfo=JSON.parse(uni.getStorageSync("userInfo")),this.parentSn?(this.loadData(!1),this.loadStatictisData()):this.initData(!0)},mounted:function(){},methods:{changeLevel:function(t){this.activeTabIndex=t,console.log("changeLevel",t),-1!=this.activeTabIndex?(this.searchsn=this.mapData[t].projectSn?this.mapData[t].projectSn:this.mapData[t].companySn,this.loadStatictisData()):this.parentSn?(this.searchsn=this.parentSn,this.loadStatictisData()):this.initData(!0)},forwardFn:function(){var t="area";this.mapData[this.activeTabIndex].projectSn&&(t="project"),uni.navigateTo({url:"./markRoomManage?sn="+this.searchsn+"&type="+t})},initData:function(t){switch(this.userInfo.accountType){case 2:this.searchsn=this.userInfo.headquartersSn;break;case 3:this.searchsn=this.userInfo.sn;break;case 4:this.searchsn=this.userInfo.sn;break;case 5:this.searchsn=this.userInfo.sn;break;case 6:this.searchsn=this.userInfo.sn;break;case 7:this.searchsn=this.userInfo.sn;break}this.loadData(t),this.loadStatictisData()},loadData:function(t){var a=this;this.sendRequest({url:"xmgl/company/getComapnyStatisticsList",data:{sn:this.searchsn},method:"POST",success:function(t){a.mapData=t.result.companyList?t.result.companyList:t.result.projectList,t.result.companyInfo&&(a.currentCompany=t.result.companyInfo)}})},loadStatictisData:function(){var t=this;this.sendRequest({url:"xmgl/standardDev/getStandardDevStatistics",data:{sn:this.searchsn},method:"POST",success:function(a){t.statisticsCount=a.result.count;for(var e=a.result.devList,n=[],s=[],i=[],o=[],r=0;r<e.length;r++){var c=e[r];s.push(c.name),n.push(c.totalDev),i.push(c.devOnline),o.push(c.devNotOnline)}t.ageChartData.series=[{name:"设备总数",data:n},{name:"设备在线数",data:i},{name:"设备离线数",data:o}],t.ageChartData.categories=s,t.$refs.ageChart.changeData("ageChart",t.ageChartData)}})},goBackEndFn:function(){uni.navigateTo({url:"../areaTree/areaTree?type=markRoom"})}}};a.default=c},ec82:function(t,a,e){"use strict";e.r(a);var n=e("c07a"),s=e.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(i);a["default"]=s.a},ee93:function(t,a,e){"use strict";e.r(a);var n=e("c69b"),s=e.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(i);a["default"]=s.a},f9d8:function(t,a,e){"use strict";e.r(a);var n=e("2057"),s=e("ec82");for(var i in s)["default"].indexOf(i)<0&&function(t){e.d(a,t,(function(){return s[t]}))}(i);e("0a7b");var o=e("f0c5"),r=Object(o["a"])(s["default"],n["b"],n["c"],!1,null,"929d0930",null,!1,n["a"],void 0);a["default"]=r.exports},fa5a:function(t,a,e){"use strict";var n=e("3302"),s=e.n(n);s.a}}]);