1.修改前端页面,替换logo

This commit is contained in:
帐篷
2024-01-16 23:26:32 +08:00
parent 488a8a3e59
commit 3d44f4674c
305 changed files with 310 additions and 937 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-03fb653e"],{a035:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return r}));var i=a("b775");function n(t){return Object(i["a"])({url:"/iot/deviceLog/list",method:"get",params:t})}function r(t){return Object(i["a"])({url:"/iot/deviceLog/monitor",method:"get",params:t})}},f14e:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{"padding-left":"20px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"queryForm",attrs:{model:t.queryParams,inline:!0,"label-width":"75px"}},[a("el-form-item",{attrs:{label:"时间范围"}},[a("el-date-picker",{staticStyle:{width:"240px"},attrs:{size:"small","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.daterangeTime,callback:function(e){t.daterangeTime=e},expression:"daterangeTime"}})],1),a("el-form-item",{attrs:{label:"最大数量"}},[a("el-input",{model:{value:t.queryParams.total,callback:function(e){t.$set(t.queryParams,"total",e)},expression:"queryParams.total"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:t.getStatisticData}},[t._v("查询")])],1)],1)],1),a("el-col",{attrs:{span:23}},t._l(t.monitorThings,(function(e,i){return a("div",{key:i,staticStyle:{"margin-bottom":"30px"}},[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{shadow:"hover","body-style":{padding:"10px 0px",overflow:"auto"}}},[a("div",{ref:"statisticMap",refInFor:!0,staticStyle:{height:"300px",width:"1080px"}})])],1)})),0)],1)],1)},n=[],r=a("c7eb"),o=a("1da1"),s=(a("3ca3"),a("ddb0"),a("b0c0"),a("a035")),c={name:"device-statistic",props:{device:{type:Object,default:null}},watch:{device:function(t,e){this.deviceInfo=t,this.deviceInfo&&0!=this.deviceInfo.deviceId&&(this.monitorThings=this.deviceInfo.monitorList,this.$nextTick((function(){this.getStatistic(),this.getStatisticData(this.monitorThings)})))}},data:function(){return{loading:!1,deviceInfo:{},monitorThings:[],chart:[],daterangeTime:[],queryParams:{serialNumber:null,identity:"",total:200},arrayData:[]}},mounted:function(){},methods:{getStatisticData:function(){var t=this;return Object(o["a"])(Object(r["a"])().mark((function e(){var a,i;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.loading=!0,a=Object(r["a"])().mark((function e(a){return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.queryParams.serialNumber=t.deviceInfo.serialNumber,t.queryParams.identity=t.monitorThings[a].id,null!=t.daterangeTime&&""!=t.daterangeTime&&(t.queryParams.beginTime=t.daterangeTime[0],t.queryParams.endTime=t.daterangeTime[1]+" 23:59"),String(t.monitorThings[a].id)&&Object(s["b"])(t.queryParams).then((function(e){for(var i=e.rows,n=[],r=0;r<i.length;r++){var o=[];o[0]=i[r].time,o[1]=i[r].value,n.push(o)}t.chart[a].setOption({series:[{data:n}]}),t.loading=!1}));case 4:case"end":return e.stop()}}),e)})),i=0;case 3:if(!(i<t.monitorThings.length)){e.next=8;break}return e.delegateYield(a(i),"t0",5);case 5:i++,e.next=3;break;case 8:case"end":return e.stop()}}),e)})))()},getStatistic:function(){for(var t=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],e=0;e<this.monitorThings.length;e++){var a;this.$refs.statisticMap[e].style.width=document.documentElement.clientWidth-510+"px",this.chart[e]=this.$echarts.init(this.$refs.statisticMap[e]),a={animationDurationUpdate:3e3,tooltip:{trigger:"axis"},title:{left:"center",text:this.monitorThings[e].name+"统计 (单位 "+(void 0!=this.monitorThings[e].dataType.unit?this.monitorThings[e].dataType.unit:"无")+""},grid:{top:"80px",left:"40px",right:"20px",bottom:"60px",containLabel:!0},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"time"},yAxis:{type:"value"},dataZoom:[{type:"inside",start:0,end:100},{start:0,end:100}],series:[{name:this.monitorThings[e].name,type:"line",symbol:"none",sampling:"lttb",itemStyle:{color:e>9?t[0]:t[e]},areaStyle:{},data:[]}]},a&&this.chart[e].setOption(a)}}}},l=c,d=a("2877"),m=Object(d["a"])(l,i,n,!1,null,null,null);e["default"]=m.exports}}]);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-09798080"],{"01ca":function(t,e,i){"use strict";i.d(e,"f",(function(){return a})),i.d(e,"d",(function(){return r})),i.d(e,"a",(function(){return o})),i.d(e,"e",(function(){return s})),i.d(e,"g",(function(){return c})),i.d(e,"c",(function(){return d})),i.d(e,"b",(function(){return l}));var n=i("b775");function a(t){return Object(n["a"])({url:"/iot/model/list",method:"get",params:t})}function r(t){return Object(n["a"])({url:"/iot/model/"+t,method:"get"})}function o(t){return Object(n["a"])({url:"/iot/model",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/iot/model/import",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/iot/model",method:"put",data:t})}function d(t){return Object(n["a"])({url:"/iot/model/"+t,method:"delete"})}function l(t){return Object(n["a"])({url:"/iot/model/cache/"+t,method:"get"})}},a035:function(t,e,i){"use strict";i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return r}));var n=i("b775");function a(t){return Object(n["a"])({url:"/iot/deviceLog/list",method:"get",params:t})}function r(t){return Object(n["a"])({url:"/iot/deviceLog/monitor",method:"get",params:t})}},f14e:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{"padding-left":"20px"}},[i("el-row",[i("el-col",{attrs:{span:24}},[i("el-form",{ref:"queryForm",attrs:{model:t.queryParams,inline:!0,"label-width":"75px"}},[i("el-form-item",{attrs:{label:"时间范围"}},[i("el-date-picker",{staticStyle:{width:"240px"},attrs:{size:"small","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.daterangeTime,callback:function(e){t.daterangeTime=e},expression:"daterangeTime"}})],1),i("el-form-item",{attrs:{label:"最大数量"}},[i("el-input",{model:{value:t.queryParams.total,callback:function(e){t.$set(t.queryParams,"total",e)},expression:"queryParams.total"}})],1),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:t.getStatisticData}},[t._v("查询")])],1)],1)],1),i("el-col",{attrs:{span:23}},t._l(t.monitorThings,(function(e,n){return i("div",{key:n,staticStyle:{"margin-bottom":"30px"}},[i("el-card",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{shadow:"hover","body-style":{padding:"10px 0px",overflow:"auto"}}},[i("div",{ref:"statisticMap",refInFor:!0,staticStyle:{height:"300px",width:"1080px"}})])],1)})),0)],1)],1)},a=[],r=(i("b64b"),i("4de4"),i("d3b7"),i("b0c0"),i("313e")),o=i("01ca"),s=i("a035"),c={name:"device-statistic",props:{device:{type:Object,default:null}},watch:{device:function(t,e){this.deviceInfo=t,this.deviceInfo&&0!=this.deviceInfo.deviceId&&this.getCacheThingsModdel(this.deviceInfo.productId)}},data:function(){return{loading:!1,deviceInfo:{},monitorThings:[],chart:[],daterangeTime:[],queryParams:{deviceId:0,identity:"",total:1e3}}},mounted:function(){},methods:{getCacheThingsModdel:function(t){var e=this;Object(o["b"])(t).then((function(t){var i=JSON.parse(t.data);e.monitorThings=i.properties.filter((function(t){return 1==t.isMonitor})),e.$nextTick((function(){this.getStatistic(),this.getStatisticData(this.monitorThings)}))}))},getStatisticData:function(){var t=this;this.loading=!0;for(var e=function(e){t.queryParams.deviceId=t.deviceInfo.deviceId,t.queryParams.identity=t.monitorThings[e].id,null!=t.daterangeTime&&""!=t.daterangeTime&&(t.queryParams.beginTime=t.daterangeTime[0],t.queryParams.endTime=t.daterangeTime[1]+" 23:59"),Object(s["b"])(t.queryParams).then((function(i){for(var n=i.rows,a=[],r=0;r<n.length;r++){var o=[];o[0]=n[r].time,o[1]=n[r].value,a.push(o)}t.chart[e].setOption({series:[{data:a}]}),t.loading=!1}))},i=0;i<this.monitorThings.length;i++)e(i)},getStatistic:function(){for(var t=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],e=0;e<this.monitorThings.length;e++){var i;this.$refs.statisticMap[e].style.width=document.documentElement.clientWidth-510+"px",console.log(this.$refs.statisticMap[e]),this.chart[e]=r["init"](this.$refs.statisticMap[e]),i={animationDurationUpdate:3e3,tooltip:{trigger:"axis"},title:{left:"center",text:this.monitorThings[e].name+"统计 (单位 "+(void 0!=this.monitorThings[e].datatype.unit?this.monitorThings[e].datatype.unit:"无")+""},grid:{top:"80px",left:"40px",right:"20px",bottom:"60px",containLabel:!0},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"time"},yAxis:{type:"value"},dataZoom:[{type:"inside",start:0,end:100},{start:0,end:100}],series:[{name:this.monitorThings[e].name,type:"line",symbol:"none",sampling:"lttb",itemStyle:{color:e>9?t[0]:t[e]},areaStyle:{},data:[]}]},i&&this.chart[e].setOption(i)}}}},d=c,l=i("2877"),u=Object(l["a"])(d,n,a,!1,null,null,null);e["default"]=u.exports}}]);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0fa9f06a"],{4990:function(t,n,e){"use strict";e.r(n);var o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"kong"},[t._t("default")],2)},u=[],c={components:{},data:function(){return{}},props:{data:{type:Array,default:function(){return[]}}},computed:{},methods:{init:function(){}},created:function(){},mounted:function(){},beforeDestroy:function(){}},a=c,i=(e("9b3d"),e("2877")),r=Object(i["a"])(a,o,u,!1,null,"6a6476da",null);n["default"]=r.exports},"9b3d":function(t,n,e){"use strict";e("e1d0")},e1d0:function(t,n,e){}}]);

View File

@@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1348daec","chunk-2d238605"],{"0a5c":function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:e.className,style:{height:e.height,width:e.width}})},a=[],r=i("313e"),n=i("feb2");i("817d");var l=3e3,s={mixins:[n["default"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=r["default"].init(this.$el,"macarons"),this.chart.setOption({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},radar:{radius:"66%",center:["50%","42%"],splitNumber:8,splitArea:{areaStyle:{color:"rgba(127,95,132,.3)",opacity:1,shadowBlur:45,shadowColor:"rgba(0,0,0,.5)",shadowOffsetX:0,shadowOffsetY:15}},indicator:[{name:"Sales",max:1e4},{name:"Administration",max:2e4},{name:"Information Techology",max:2e4},{name:"Customer Support",max:2e4},{name:"Development",max:2e4},{name:"Marketing",max:2e4}]},legend:{left:"center",bottom:"10",data:["Allocated Budget","Expected Spending","Actual Spending"]},series:[{type:"radar",symbolSize:0,areaStyle:{normal:{shadowBlur:13,shadowColor:"rgba(0,0,0,.2)",shadowOffsetX:0,shadowOffsetY:10,opacity:1}},data:[{value:[5e3,7e3,12e3,11e3,15e3,14e3],name:"Allocated Budget"},{value:[4e3,9e3,15e3,15e3,13e3,11e3],name:"Expected Spending"},{value:[5500,11e3,12e3,15e3,12e3,12e3],name:"Actual Spending"}],animationDuration:l}]})}}},c=s,d=i("2877"),h=Object(d["a"])(c,o,a,!1,null,null,null);t["default"]=h.exports},"817d":function(e,t,i){var o,a,r;(function(n,l){a=[t,i("313e")],o=l,r="function"===typeof o?o.apply(t,a):o,void 0===r||(e.exports=r)})(0,(function(e,t){var i=function(e){"undefined"!==typeof console&&console&&console.error&&console.error(e)};if(t){var o=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],a={color:o,title:{textStyle:{fontWeight:"normal",color:"#008acd"}},visualMap:{itemWidth:15,color:["#5ab1ef","#e0ffff"]},toolbox:{iconStyle:{borderColor:o[0]}},tooltip:{borderWidth:0,backgroundColor:"rgba(50,50,50,0.5)",textStyle:{color:"#FFF"},axisPointer:{type:"line",lineStyle:{color:"#008acd"},crossStyle:{color:"#008acd"},shadowStyle:{color:"rgba(200,200,200,0.2)"}}},dataZoom:{dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd"},grid:{borderColor:"#eee"},categoryAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#008acd"},controlStyle:{color:"#008acd",borderColor:"#008acd"},symbol:"emptyCircle",symbolSize:3},line:{smooth:!0,symbol:"emptyCircle",symbolSize:3},candlestick:{itemStyle:{color:"#d87a80",color0:"#2ec7c9"},lineStyle:{width:1,color:"#d87a80",color0:"#2ec7c9"},areaStyle:{color:"#2ec7c9",color0:"#b6a2de"}},scatter:{symbol:"circle",symbolSize:4},map:{itemStyle:{color:"#ddd"},areaStyle:{color:"#fe994e"},label:{color:"#d87a80"}},graph:{itemStyle:{color:"#d87a80"},linkStyle:{color:"#2ec7c9"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#2ec7c9"],[.8,"#5ab1ef"],[1,"#d87a80"]],width:10}},axisTick:{splitNumber:10,length:15,lineStyle:{color:"auto"}},splitLine:{length:22,lineStyle:{color:"auto"}},pointer:{width:5}}};t.registerTheme("macarons",a)}else i("ECharts is not Loaded")}))},feb2:function(e,t,i){"use strict";i.r(t);var o=i("ed08");t["default"]={data:function(){return{$_sidebarElm:null,$_resizeHandler:null}},mounted:function(){this.initListener()},activated:function(){this.$_resizeHandler||this.initListener(),this.resize()},beforeDestroy:function(){this.destroyListener()},deactivated:function(){this.destroyListener()},methods:{$_sidebarResizeHandler:function(e){"width"===e.propertyName&&this.$_resizeHandler()},initListener:function(){var e=this;this.$_resizeHandler=Object(o["c"])((function(){e.resize()}),100),window.addEventListener("resize",this.$_resizeHandler),this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},destroyListener:function(){window.removeEventListener("resize",this.$_resizeHandler),this.$_resizeHandler=null,this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)},resize:function(){var e=this.chart;e&&e.resize()}}}}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1537fc93"],{4252:function(t,e,s){"use strict";s("4f12")},"4f12":function(t,e,s){},cc6c:function(t,e,s){t.exports=s.p+"static/img/401.089007e7.gif"},ec55:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"errPage-container"},[s("el-button",{staticClass:"pan-back-btn",attrs:{icon:"arrow-left"},on:{click:t.back}},[t._v(" 返回 ")]),s("el-row",[s("el-col",{attrs:{span:12}},[s("h1",{staticClass:"text-jumbo text-ginormous"},[t._v(" 401错误! ")]),s("h2",[t._v("您没有访问权限!")]),s("h6",[t._v("对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面")]),s("ul",{staticClass:"list-unstyled"},[s("li",{staticClass:"link-type"},[s("router-link",{attrs:{to:"/"}},[t._v(" 回首页 ")])],1)])]),s("el-col",{attrs:{span:12}},[s("img",{attrs:{src:t.errGif,width:"313",height:"428",alt:"Girl has dropped her ice cream."}})])],1)],1)},c=[],n=s("cc6c"),r=s.n(n),i={name:"Page401",data:function(){return{errGif:r.a+"?"+ +new Date}},methods:{back:function(){this.$route.query.noGoBack?this.$router.push({path:"/"}):this.$router.go(-1)}}},o=i,l=(s("4252"),s("2877")),u=Object(l["a"])(o,a,c,!1,null,"f2e02586",null);e["default"]=u.exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-17b3a1ca","chunk-2d238605"],{eab4:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.className,style:{height:t.height,width:t.width}})},a=[],s=i("feb2"),r={mixins:[s["default"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},chartData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{chartData:{deep:!0,handler:function(t){this.setOptions(t)}}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=this.$echarts.init(this.$el,"macarons"),this.setOptions(this.chartData)},setOptions:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.expectedData,i=t.actualData;this.chart.setOption({xAxis:{data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],boundaryGap:!1,axisTick:{show:!1}},grid:{left:10,right:10,bottom:20,top:30,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"cross"},padding:[5,10]},yAxis:{axisTick:{show:!1}},legend:{data:["expected","actual"]},series:[{name:"expected",itemStyle:{normal:{color:"#FF005A",lineStyle:{color:"#FF005A",width:2}}},smooth:!0,type:"line",data:e,animationDuration:2800,animationEasing:"cubicInOut"},{name:"actual",smooth:!0,type:"line",itemStyle:{normal:{color:"#3888fa",lineStyle:{color:"#3888fa",width:2},areaStyle:{color:"#f3f8ff"}}},data:i,animationDuration:2800,animationEasing:"quadraticOut"}]})}}},o=r,d=i("2877"),l=Object(d["a"])(o,n,a,!1,null,null,null);e["default"]=l.exports},feb2:function(t,e,i){"use strict";i.r(e);var n=i("ed08");e["default"]={data:function(){return{$_sidebarElm:null,$_resizeHandler:null}},mounted:function(){this.initListener()},activated:function(){this.$_resizeHandler||this.initListener(),this.resize()},beforeDestroy:function(){this.destroyListener()},deactivated:function(){this.destroyListener()},methods:{$_sidebarResizeHandler:function(t){"width"===t.propertyName&&this.$_resizeHandler()},initListener:function(){var t=this;this.$_resizeHandler=Object(n["c"])((function(){t.resize()}),100),window.addEventListener("resize",this.$_resizeHandler),this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},destroyListener:function(){window.removeEventListener("resize",this.$_resizeHandler),this.$_resizeHandler=null,this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)},resize:function(){var t=this.chart;t&&t.resize()}}}}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-200cb24a"],{"584f":function(t,e,i){"use strict";i.d(e,"l",(function(){return r})),i.d(e,"j",(function(){return c})),i.d(e,"k",(function(){return o})),i.d(e,"i",(function(){return u})),i.d(e,"e",(function(){return a})),i.d(e,"c",(function(){return d})),i.d(e,"f",(function(){return l})),i.d(e,"h",(function(){return s})),i.d(e,"g",(function(){return f})),i.d(e,"a",(function(){return v})),i.d(e,"m",(function(){return h})),i.d(e,"b",(function(){return g})),i.d(e,"d",(function(){return p}));var n=i("b775");function r(t){return Object(n["a"])({url:"/iot/device/unAuthlist",method:"get",params:t})}function c(t){return Object(n["a"])({url:"/iot/device/listByGroup",method:"get",params:t})}function o(t){return Object(n["a"])({url:"/iot/device/shortList",method:"get",params:t})}function u(){return Object(n["a"])({url:"/iot/device/all",method:"get"})}function a(t){return Object(n["a"])({url:"/iot/device/"+t,method:"get"})}function d(t){return Object(n["a"])({url:"/iot/device/synchronization/"+t,method:"get"})}function l(t){return Object(n["a"])({url:"/iot/device/getDeviceBySerialNumber/"+t,method:"get"})}function s(){return Object(n["a"])({url:"/iot/device/statistic",method:"get"})}function f(t){return Object(n["a"])({url:"/iot/device/runningStatus/"+t,method:"get"})}function v(t){return Object(n["a"])({url:"/iot/device",method:"post",data:t})}function h(t){return Object(n["a"])({url:"/iot/device",method:"put",data:t})}function g(t){return Object(n["a"])({url:"/iot/device/"+t,method:"delete"})}function p(){return Object(n["a"])({url:"/iot/device/generator",method:"get"})}},6647:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{display:"flex","margin-top":"60px"}},[i("div",{staticStyle:{"margin-left":"10px",color:"#32c5e9"}},[i("dv-decoration-9",{staticStyle:{width:"90px",height:"90px","font-weight":"600"},attrs:{dur:10,color:["#32c5e9","#238aa4"]}},[t._v(t._s(t.deviceStatistic.deviceCount))]),i("div",{staticStyle:{"text-align":"center","margin-top":"25px"}},[t._v("设备总数")])],1),i("div",{staticStyle:{margin:"0 30px",color:"#9fe6b8"}},[i("dv-decoration-9",{staticStyle:{width:"90px",height:"90px","font-weight":"600"},attrs:{dur:10,color:["#9fe6b8","#70a181"]}},[t._v(t._s(t.deviceStatistic.deviceOnlineCount))]),i("div",{staticStyle:{"text-align":"center","margin-top":"25px","font-weight":"400"}},[t._v("在线设备")])],1),i("div",{staticStyle:{"margin-right":"30px",color:"#ffdb5c"}},[i("dv-decoration-9",{staticStyle:{width:"90px",height:"90px","font-weight":"600"},attrs:{dur:10,color:["#ffdb5c","#b39a41"]}},[t._v(t._s(t.deviceStatistic.deviceCount-t.deviceStatistic.deviceOnlineCount))]),i("div",{staticStyle:{"text-align":"center","margin-top":"25px","font-weight":"400"}},[t._v("离线设备")])],1),i("div",{staticStyle:{color:"#fb7293"}},[i("dv-decoration-9",{staticStyle:{width:"90px",height:"90px","font-weight":"600"},attrs:{dur:10,color:["#fb7293","#ad4f65"]}},[t._v(t._s(t.deviceStatistic.alertCount))]),i("div",{staticStyle:{"text-align":"center","margin-top":"25px","font-weight":"400"}},[t._v("告警数量")])],1)])},r=[],c=i("584f"),o={data:function(){return{deviceStatistic:{deviceCount:100,productCount:100,eventCount:100,alertCount:100,deviceOnlineCount:100},timer:null}},created:function(){this.getDeviceStatic()},beforeDestroy:function(){this.clearData()},methods:{clearData:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},getDeviceStatic:function(){var t=this;Object(c["h"])().then((function(e){200==e.code&&(t.deviceStatistic=e.data,t.switper())}))},switper:function(){var t=this;if(!this.timer){var e=function(e){t.getDeviceStatic()};this.timer=setInterval(e,6e4)}}}},u=o,a=i("2877"),d=Object(a["a"])(u,n,r,!1,null,null,null);e["default"]=d.exports}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-20128fdd","chunk-2d0a3715"],{"01ca":function(t,e,o){"use strict";o.d(e,"f",(function(){return a})),o.d(e,"d",(function(){return r})),o.d(e,"a",(function(){return i})),o.d(e,"e",(function(){return l})),o.d(e,"g",(function(){return c})),o.d(e,"c",(function(){return u})),o.d(e,"b",(function(){return d}));var n=o("b775");function a(t){return Object(n["a"])({url:"/iot/model/list",method:"get",params:t})}function r(t){return Object(n["a"])({url:"/iot/model/"+t,method:"get"})}function i(t){return Object(n["a"])({url:"/iot/model",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/iot/model/import",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/iot/model",method:"put",data:t})}function u(t){return Object(n["a"])({url:"/iot/model/"+t,method:"delete"})}function d(t){return Object(n["a"])({url:"/iot/model/cache/"+t,method:"get"})}},1464:function(t,e,o){"use strict";o("7a34")},"7a34":function(t,e,o){},bbfb:function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticStyle:{"padding-left":"20px"}},[o("el-row",{attrs:{gutter:10}},[o("el-col",{attrs:{span:14}},[o("el-row",{staticClass:"mb8",attrs:{gutter:10}},[o("el-col",{attrs:{span:1.5}},[o("el-button",{attrs:{type:"warning",plain:"",icon:"el-icon-refresh",size:"mini"},on:{click:t.getList}},[t._v("刷新")])],1),o("el-tag",{staticStyle:{"margin-left":"15px"},attrs:{type:"danger"}},[t._v("该功能暂不可用,后面版本发布")])],1),o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-bottom":"60px","margin-top":"20px"},attrs:{data:t.modelList,border:"",size:"small"}},[o("el-table-column",{attrs:{label:"名称",align:"center",prop:"modelName"}}),o("el-table-column",{attrs:{label:"标识符",align:"center",prop:"identifier"}}),o("el-table-column",{attrs:{label:"物模型类别",align:"center",prop:"type"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("dict-tag",{attrs:{options:t.dict.type.iot_things_type,value:e.row.type}})]}}])}),o("el-table-column",{attrs:{label:"数据类型",align:"center",prop:"datatype"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("dict-tag",{attrs:{options:t.dict.type.iot_data_type,value:e.row.datatype}})]}}])}),o("el-table-column",{attrs:{label:"部件",align:"center",prop:"part"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.part)+" 系统定义的部件 ")]}}])})],1),o("el-divider",[t._v("高级功能")]),o("el-form",{ref:"form",attrs:{model:t.form,"label-width":"100px"}},[o("el-form-item",{attrs:{label:"自定义页面",prop:"page"}},[o("el-input",{attrs:{placeholder:"请输入自定义页面"},model:{value:t.form.page,callback:function(e){t.$set(t.form,"page",e)},expression:"form.page"}})],1)],1)],1),o("el-col",{attrs:{span:8,offset:2}},[o("div",{staticClass:"phone"},[o("div",{staticClass:"phone-container"})]),o("div",{staticStyle:{"text-align":"center","margin-top":"15px",width:"370px"}},[t._v("界面展示")])])],1)],1)},a=[],r=o("01ca"),i={name:"device-log",dicts:["iot_things_type","iot_data_type","iot_yes_no"],props:{product:{type:Object,default:null}},data:function(){return{loading:!1,modelList:[],title:"",queryParams:{productId:0,type:4},form:{},productInfo:{}}},watch:{product:function(t,e){this.productInfo=t,this.productInfo&&0!=this.productInfo.productId&&(this.queryParams.productId=this.productInfo.productId,this.getList())}},created:function(){},methods:{getList:function(){var t=this;this.loading=!0,Object(r["f"])(this.queryParams).then((function(e){t.modelList=e.rows,t.total=e.total,t.loading=!1}))}}},l=i,c=(o("1464"),o("2877")),u=Object(c["a"])(l,n,a,!1,null,"acd2e2f8",null);e["default"]=u.exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2bb7b688","chunk-2d238605"],{"817d":function(e,t,i){var o,r,a;(function(n,l){r=[t,i("313e")],o=l,a="function"===typeof o?o.apply(t,r):o,void 0===a||(e.exports=a)})(0,(function(e,t){var i=function(e){"undefined"!==typeof console&&console&&console.error&&console.error(e)};if(t){var o=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],r={color:o,title:{textStyle:{fontWeight:"normal",color:"#008acd"}},visualMap:{itemWidth:15,color:["#5ab1ef","#e0ffff"]},toolbox:{iconStyle:{borderColor:o[0]}},tooltip:{borderWidth:0,backgroundColor:"rgba(50,50,50,0.5)",textStyle:{color:"#FFF"},axisPointer:{type:"line",lineStyle:{color:"#008acd"},crossStyle:{color:"#008acd"},shadowStyle:{color:"rgba(200,200,200,0.2)"}}},dataZoom:{dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd"},grid:{borderColor:"#eee"},categoryAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#008acd"},controlStyle:{color:"#008acd",borderColor:"#008acd"},symbol:"emptyCircle",symbolSize:3},line:{smooth:!0,symbol:"emptyCircle",symbolSize:3},candlestick:{itemStyle:{color:"#d87a80",color0:"#2ec7c9"},lineStyle:{width:1,color:"#d87a80",color0:"#2ec7c9"},areaStyle:{color:"#2ec7c9",color0:"#b6a2de"}},scatter:{symbol:"circle",symbolSize:4},map:{itemStyle:{color:"#ddd"},areaStyle:{color:"#fe994e"},label:{color:"#d87a80"}},graph:{itemStyle:{color:"#d87a80"},linkStyle:{color:"#2ec7c9"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#2ec7c9"],[.8,"#5ab1ef"],[1,"#d87a80"]],width:10}},axisTick:{splitNumber:10,length:15,lineStyle:{color:"auto"}},splitLine:{length:22,lineStyle:{color:"auto"}},pointer:{width:5}}};t.registerTheme("macarons",r)}else i("ECharts is not Loaded")}))},9488:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:e.className,style:{height:e.height,width:e.width}})},r=[],a=i("313e"),n=i("feb2");i("817d");var l=6e3,s={mixins:[n["default"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=a["default"].init(this.$el,"macarons"),this.chart.setOption({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:10,left:"2%",right:"2%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],axisTick:{alignWithLabel:!0}}],yAxis:[{type:"value",axisTick:{show:!1}}],series:[{name:"pageA",type:"bar",stack:"vistors",barWidth:"60%",data:[79,52,200,334,390,330,220],animationDuration:l},{name:"pageB",type:"bar",stack:"vistors",barWidth:"60%",data:[80,52,200,334,390,330,220],animationDuration:l},{name:"pageC",type:"bar",stack:"vistors",barWidth:"60%",data:[30,52,200,334,390,330,220],animationDuration:l}]})}}},c=s,d=i("2877"),h=Object(d["a"])(c,o,r,!1,null,null,null);t["default"]=h.exports},feb2:function(e,t,i){"use strict";i.r(t);var o=i("ed08");t["default"]={data:function(){return{$_sidebarElm:null,$_resizeHandler:null}},mounted:function(){this.initListener()},activated:function(){this.$_resizeHandler||this.initListener(),this.resize()},beforeDestroy:function(){this.destroyListener()},deactivated:function(){this.destroyListener()},methods:{$_sidebarResizeHandler:function(e){"width"===e.propertyName&&this.$_resizeHandler()},initListener:function(){var e=this;this.$_resizeHandler=Object(o["c"])((function(){e.resize()}),100),window.addEventListener("resize",this.$_resizeHandler),this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},destroyListener:function(){window.removeEventListener("resize",this.$_resizeHandler),this.$_resizeHandler=null,this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)},resize:function(){var e=this.chart;e&&e.resize()}}}}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a3715"],{"01ca":function(t,n,e){"use strict";e.d(n,"f",(function(){return u})),e.d(n,"d",(function(){return r})),e.d(n,"a",(function(){return c})),e.d(n,"e",(function(){return d})),e.d(n,"g",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"b",(function(){return f}));var o=e("b775");function u(t){return Object(o["a"])({url:"/iot/model/list",method:"get",params:t})}function r(t){return Object(o["a"])({url:"/iot/model/"+t,method:"get"})}function c(t){return Object(o["a"])({url:"/iot/model",method:"post",data:t})}function d(t){return Object(o["a"])({url:"/iot/model/import",method:"post",data:t})}function i(t){return Object(o["a"])({url:"/iot/model",method:"put",data:t})}function a(t){return Object(o["a"])({url:"/iot/model/"+t,method:"delete"})}function f(t){return Object(o["a"])({url:"/iot/model/cache/"+t,method:"get"})}}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c0844"],{"41b3":function(t,e,n){"use strict";n.r(e);var o=n("5530"),c=(n("d3b7"),n("2b0e")),r=n("7c32"),u=n("53ca");n("25f0"),n("ac1f"),n("00b4");function a(t,e){return hasOwnProperty.call(t,e)}function i(t){return null!==t&&"object"===Object(u["a"])(t)&&a(t,"componentOptions")}function d(t){return"[object Object]"===Object.prototype.toString.call(t)}var l,f=c["default"].extend(r["default"]),b=function(t){if(!c["default"].prototype.$isServer)return l||(l=new f({data:Object(o["a"])({},t)}),l.$mount()),l.destroy=function(){return document.body.removeChild(l.$el),l&&l.$destroy(),l=null,null},l.init(t),document.body.appendChild(l.$el),l};["success","warning","info","error"].forEach((function(t){b[t]=function(e){return d(e)&&!i(e)?b(Object(o["a"])(Object(o["a"])({},e),{},{type:t})):b({type:t,text:e})}}));e["default"]=b}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c0844"],{"41b3":function(t,e,n){"use strict";n.r(e);var o=n("5530"),c=(n("d3b7"),n("2b0e")),r=n("7c32"),u=n("53ca");n("ac1f"),n("00b4");function a(t,e){return hasOwnProperty.call(t,e)}function i(t){return null!==t&&"object"===Object(u["a"])(t)&&a(t,"componentOptions")}function d(t){return"[object Object]"===Object.prototype.toString.call(t)}var l,b=c["default"].extend(r["default"]),f=function(t){if(!c["default"].prototype.$isServer)return l||(l=new b({data:Object(o["a"])({},t)}),l.$mount()),l.destroy=function(){return document.body.removeChild(l.$el),l&&l.$destroy(),l=null,null},l.init(t),document.body.appendChild(l.$el),l};["success","warning","info","error"].forEach((function(t){f[t]=function(e){return d(e)&&!i(e)?f(Object(o["a"])(Object(o["a"])({},e),{},{type:t})):f({type:t,text:e})}}));e["default"]=f}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e1ec7"],{"7d04":function(t,n,o){"use strict";o.r(n);var e=function(){var t=this,n=t.$createElement,o=t._self._c||n;return o("span")},c=[],i=(o("b0c0"),o("d3b7"),o("25f0"),o("a15b"),o("b64b"),o("e7fc")),s=o.n(i),l=o("5f87"),r={name:"mqttClient",props:{publish:{type:Object,default:null},subscribes:{type:Array,default:null}},watch:{publish:function(t,n){this.mqttPublish(t.topic,t.message,t.name)},subscribes:function(t,n){this.connectMqtt(t)}},data:function(){return{}},created:function(){},methods:{connectMqtt:function(t){var n=this,o="web-"+Math.random().toString(16).substr(2),e={username:"wumei-smart",password:Object(l["a"])(),cleanSession:!1,keepAlive:30,clientId:o,connectTimeout:1e4};console.log("mqtt地址","ws://localhost:8083/mqtt"),this.client=s.a.connect("ws://localhost:8083/mqtt",e),this.client.on("connect",(function(e){console.log("客户端:"+o+",成功连接服务器:",e),""!=t&&t.length>0&&n.client.subscribe(t,{qos:1},(function(n){n?console.log("消息订阅失败!"):(console.log("订阅成功"),console.log(t.join(", ")))}))})),this.reconnectMqtt(),this.mqttError(),this.mqttSubscribe()},mqttPublish:function(t,n,o){var e=this;if(!this.client.connected)return console.log("客户端未连接"),void this.$modal.notifyError("Mqtt客户端未连接");this.client.publish(t,n,{qos:1},(function(c){c||(console.log("成功发布主题:"+t),console.log("主题内容:"+n),t.indexOf("offline")>0?e.$modal.notify("[ "+o+" ] 影子指令发送成功"):e.$modal.notifySuccess("[ "+o+" ] 指令发送成功"))}))},mqttSubscribe:function(){var t=this;this.client.on("message",(function(n,o){console.log("收到来自",n,"的信息",o.toString());var e={};e.topic=n,e.message=JSON.parse(o.toString()),t.$emit("callbackEvent",e)}))},mqttError:function(){var t=this;this.client.on("error",(function(n){console.log("连接失败:",n),t.$modal.notifyError("Mqtt客户端连接失败"),t.client.end()}))},unsubscribeMqtt:function(){var t=this;this.client.unsubscribe(this.mtopic,(function(n){console.log("主题为"+t.mtopic+"取消订阅成功",n)}))},unconnectMqtt:function(){this.client.end(),this.client=null,console.log("服务器已断开连接!"),this.$modal.notifyError("Mqtt服务器已断开连接")},reconnectMqtt:function(){this.client.on("reconnect",(function(t){console.log("正在重连:",t)}))}}},u=r,a=o("2877"),h=Object(a["a"])(u,e,c,!1,null,null,null);n["default"]=h.exports}}]);

View File

@@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0f08a0"],{"9d98":function(n,t,e){"use strict";e.r(t);var u=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div")},c=[],o={data:function(){return{}},created:function(){},mounted:function(){},methods:{}},a=o,d=e("2877"),r=Object(d["a"])(a,u,c,!1,null,"6195e8fd",null);t["default"]=r.exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-81a2a40e"],{"26fc":function(t,s,i){t.exports=i.p+"static/img/404_cloud.0f4bc32b.png"},2754:function(t,s,i){"use strict";i.r(s);var a=function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"wscn-http404-container"},[i("div",{staticClass:"wscn-http404"},[t._m(0),i("div",{staticClass:"bullshit"},[i("div",{staticClass:"bullshit__oops"},[t._v(" 404错误! ")]),i("div",{staticClass:"bullshit__headline"},[t._v(" "+t._s(t.message)+" ")]),i("div",{staticClass:"bullshit__info"},[t._v(" 对不起您正在寻找的页面不存在。尝试检查URL的错误然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。 ")]),i("router-link",{staticClass:"bullshit__return-home",attrs:{to:"/"}},[t._v(" 返回首页 ")])],1)])])},c=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"pic-404"},[a("img",{staticClass:"pic-404__parent",attrs:{src:i("a36b"),alt:"404"}}),a("img",{staticClass:"pic-404__child left",attrs:{src:i("26fc"),alt:"404"}}),a("img",{staticClass:"pic-404__child mid",attrs:{src:i("26fc"),alt:"404"}}),a("img",{staticClass:"pic-404__child right",attrs:{src:i("26fc"),alt:"404"}})])}],l={name:"Page404",computed:{message:function(){return"找不到网页!"}}},n=l,e=(i("bddb"),i("2877")),r=Object(e["a"])(n,a,c,!1,null,"279ea4b2",null);s["default"]=r.exports},a057:function(t,s,i){},a36b:function(t,s,i){t.exports=i.p+"static/img/404.a57b6f31.png"},bddb:function(t,s,i){"use strict";i("a057")}}]);
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-46f2cf5c"],{"26fc":function(t,s,i){t.exports=i.p+"static/img/404_cloud.0f4bc32b.png"},2754:function(t,s,i){"use strict";i.r(s);var c=function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"wscn-http404-container"},[i("div",{staticClass:"wscn-http404"},[t._m(0),i("div",{staticClass:"bullshit"},[i("div",{staticClass:"bullshit__oops"},[t._v(" 404错误! ")]),i("div",{staticClass:"bullshit__headline"},[t._v(" "+t._s(t.message)+" ")]),i("div",{staticClass:"bullshit__info"},[t._v(" 对不起您正在寻找的页面不存在。尝试检查URL的错误然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。 ")]),i("router-link",{staticClass:"bullshit__return-home",attrs:{to:"/"}},[t._v(" 返回首页 ")])],1)])])},a=[function(){var t=this,s=t.$createElement,c=t._self._c||s;return c("div",{staticClass:"pic-404"},[c("img",{staticClass:"pic-404__parent",attrs:{src:i("a36b"),alt:"404"}}),c("img",{staticClass:"pic-404__child left",attrs:{src:i("26fc"),alt:"404"}}),c("img",{staticClass:"pic-404__child mid",attrs:{src:i("26fc"),alt:"404"}}),c("img",{staticClass:"pic-404__child right",attrs:{src:i("26fc"),alt:"404"}})])}],l={name:"Page404",computed:{message:function(){return"找不到网页!"}}},n=l,e=(i("44bf"),i("2877")),r=Object(e["a"])(n,c,a,!1,null,"279ea4b2",null);s["default"]=r.exports},"3f38":function(t,s,i){},"44bf":function(t,s,i){"use strict";i("3f38")},a36b:function(t,s,i){t.exports=i.p+"static/img/404.a57b6f31.png"}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-47058647"],{3021:function(t,e,r){"use strict";r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){return s})),r.d(e,"d",(function(){return a})),r.d(e,"b",(function(){return n}));var o=r("b775");function i(t,e){return Object(o["a"])({url:"/sip/sipconfig/"+t+"/"+e,method:"get"})}function s(t){return Object(o["a"])({url:"/sip/sipconfig",method:"post",data:t})}function a(t){return Object(o["a"])({url:"/sip/sipconfig",method:"put",data:t})}function n(t){return Object(o["a"])({url:"/sip/sipconfig/product/"+t,method:"delete"})}},"447d":function(t,e,r){},b690:function(t,e,r){"use strict";r("447d")},f155:function(t,e,r){"use strict";r.r(e);var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticStyle:{padding:"6px"}},[r("el-form",{ref:"form",attrs:{model:t.form,"label-width":"100px"}},[r("el-row",{attrs:{gutter:100}},[r("el-col",{attrs:{xs:24,sm:24,md:12,lg:12,xl:8}},[r("el-form-item",{attrs:{label:"接入方式"}},[r("el-input",{attrs:{disabled:""},model:{value:t.accessWay,callback:function(e){t.accessWay=e},expression:"accessWay"}})],1),r("el-form-item",{attrs:{label:"服务器域",prop:"domain"}},[r("el-input",{attrs:{disabled:""},model:{value:t.form.domain,callback:function(e){t.$set(t.form,"domain",e)},expression:"form.domain"}})],1),r("el-form-item",{attrs:{label:"服务器ID",prop:"serverSipid"}},[r("el-input",{attrs:{disabled:""},model:{value:t.form.serverSipid,callback:function(e){t.$set(t.form,"serverSipid",e)},expression:"form.serverSipid"}})],1)],1),r("el-col",{attrs:{xs:24,sm:24,md:12,lg:12,xl:8}},[r("el-form-item",{attrs:{label:"服务器地址",prop:"ip"}},[r("el-input",{attrs:{disabled:""},model:{value:t.form.ip,callback:function(e){t.$set(t.form,"ip",e)},expression:"form.ip"}})],1),r("el-form-item",{attrs:{label:"服务器端口",prop:"port"}},[r("el-input",{attrs:{type:"number",disabled:""},model:{value:t.form.port,callback:function(e){t.$set(t.form,"port",e)},expression:"form.port"}})],1),r("el-form-item",{attrs:{label:"认证密码",prop:"password"}},[r("el-input",{attrs:{placeholder:"请输入认证密码"},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1)],1),r("el-col",{attrs:{xs:23,sm:23,md:23,lg:23,xl:15}},[r("el-form-item",{staticStyle:{"text-align":"center","margin-top":"20px"}},[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["iot:product:edit"],expression:"['iot:product:edit']"},{name:"show",rawName:"v-show",value:t.form.id&&2!=t.productInfo.status,expression:"form.id && productInfo.status!=2"}],attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("修 改")]),r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["iot:product:add"],expression:"['iot:product:add']"},{name:"show",rawName:"v-show",value:!t.form.id&&2!=t.productInfo.status,expression:"!form.id && productInfo.status!=2"}],attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("新 增")])],1)],1)],1)],1)],1)},i=[],s=r("3021"),a={name:"config-sip",props:{product:{type:Object,default:null}},watch:{product:function(t,e){this.productInfo=t,this.productInfo&&0!=this.productInfo.productId&&(this.form.id||this.getSipconfig(!0))}},data:function(){return{accessWay:"国标GB28181",loading:!0,ids:[],total:0,sipconfigList:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,productId:null},form:{},rules:{domain:[{required:!0,message:"服务器域不能为空",trigger:"blur"}],serverSipid:[{required:!0,message:"服务器sipid不能为空",trigger:"blur"}],password:[{required:!0,message:"sip认证密码不能为空",trigger:"blur"}]}}},created:function(){this.productInfo=this.product,this.productInfo&&0!=this.productInfo.productId&&this.getSipconfig(!1)},methods:{getSipconfig:function(t){var e=this;Object(s["c"])(this.productInfo.productId,t).then((function(r){e.form=r.data,t&&e.submitForm()}))},submitForm:function(){var t=this;this.$refs["form"].validate((function(e){e&&(t.form.tenantId=t.product.tenantId,t.form.productId=t.product.productId,t.form.isdefault=1,null!=t.form.id?Object(s["d"])(t.form).then((function(e){t.$modal.msgSuccess("修改成功")})):Object(s["a"])(t.form).then((function(e){t.$modal.msgSuccess("新增成功"),t.form=e.data})))}))}}},n=a,d=(r("b690"),r("2877")),u=Object(d["a"])(n,o,i,!1,null,null,null);e["default"]=u.exports}}]);

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4ae4dd80"],{1833:function(n,e,t){},"3b3a":function(n,e,t){"use strict";t.r(e);var i=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{ref:"container",staticStyle:{width:"100%",height:"100%","background-color":"#000000",margin:"0 auto"},on:{dblclick:n.fullscreenSwich}},[t("div",{staticClass:"buttons-box",attrs:{id:"buttonsBox"}},[t("div",{staticClass:"buttons-box-left"},[n.playing?n._e():t("el-button",{staticStyle:{padding:"5px",margin:"5px 20px"},attrs:{size:"small",icon:"el-icon-video-play"},on:{click:n.playBtnClick}}),n.playing?t("el-button",{staticStyle:{padding:"5px",margin:"5px 20px"},attrs:{size:"small",icon:"el-icon-video-pause"},on:{click:n.pause}}):n._e()],1),t("div",{staticClass:"buttons-box-right"},[t("span",{staticClass:"jessibuca-btn"},[n._v(n._s(n.kBps)+" kb/s")]),t("el-button",{staticStyle:{padding:"5px",margin:"5px 20px 5px 20px"},attrs:{size:"small",icon:"el-icon-video-camera"},on:{click:function(e){return n.jessibuca.screenshot("截图","png",.5)}}}),n.playing?t("el-button",{staticStyle:{padding:"5px",margin:"5px 20px 5px 0"},attrs:{size:"small",icon:"el-icon-full-screen"},on:{click:n.fullscreenSwich}}):n._e()],1)])])},o=[],s={},c={name:"jessibuca",data:function(){return{playing:!1,isNotMute:!1,quieting:!1,fullscreen:!1,loaded:!1,speed:0,performance:"",kBps:0,btnDom:null,videoInfo:null,volume:1,rotate:0,vod:!0,forceNoOffscreen:!1}},props:["videoUrl","error","hasAudio","height"],mounted:function(){var n=this;window.onerror=function(n){},console.log(this._uid);var e=decodeURIComponent(this.$route.params.url);this.$nextTick((function(){n.updatePlayerDomSize(),window.onresize=function(){n.updatePlayerDomSize()},"undefined"==typeof n.videoUrl&&(n.videoUrl=e),n.btnDom=document.getElementById("buttonsBox"),console.log("初始化时的地址为: "+n.videoUrl),n.play(n.videoUrl)}))},watch:{videoUrl:function(n,e){this.play(n)},immediate:!0},methods:{updatePlayerDomSize:function(){var n=this.$refs.container,e=n.parentNode.clientWidth,t=9/16*e,i=Math.min(document.body.clientHeight,document.documentElement.clientHeight);console.log("clientHeight: "+i),console.log("height: "+t),t>i&&(t=i,e=16/9*t),console.log("width: "+e),n.style.width=e+"px",n.style.height=t+"px"},create:function(){var n={};console.log("hasAudio "+this.hasAudio),s[this._uid]=new window.Jessibuca(Object.assign({container:this.$refs.container,videoBuffer:.2,isResize:!0,decoder:"/js/jessibuca/decoder.js",useMSE:!1,showBandwidth:!1,isFlv:!0,loadingText:"加载中",hasAudio:"undefined"==typeof this.hasAudio||this.hasAudio,debug:!1,supportDblclickFullscreen:!1,operateBtns:{fullscreen:!1,screenshot:!1,play:!1,audio:!1,recorder:!1},record:"record",vod:this.vod,forceNoOffscreen:this.forceNoOffscreen,isNotMute:this.isNotMute},n));var e=s[this._uid],t=this;e.on("load",(function(){})),e.on("log",(function(n){})),e.on("record",(function(n){})),e.on("pause",(function(){t.playing=!1})),e.on("play",(function(){t.playing=!0})),e.on("fullscreen",(function(n){t.fullscreen=n})),e.on("mute",(function(n){t.isNotMute=!n})),e.on("audioInfo",(function(n){})),e.on("videoInfo",(function(n){})),e.on("bps",(function(n){}));e.on("timeUpdate",(function(n){n})),e.on("videoInfo",(function(n){})),e.on("error",(function(n){})),e.on("timeout",(function(){})),e.on("start",(function(){})),e.on("performance",(function(n){var e="卡顿";2===n?e="非常流畅":1===n&&(e="流畅"),t.performance=e})),e.on("buffer",(function(n){})),e.on("stats",(function(n){})),e.on("kBps",(function(n){t.kBps=Math.round(n)})),e.on("videoFrame",(function(){})),e.on("metadata",(function(){}))},playBtnClick:function(n){this.play(this.videoUrl)},play:function(n){var e=this;console.log(n),s[this._uid]&&this.destroy(),this.create(),s[this._uid].on("play",(function(){e.playing=!0,e.loaded=!0,e.quieting=jessibuca.quieting})),s[this._uid].hasLoaded()?s[this._uid].play(n):s[this._uid].on("load",(function(){console.log("load 播放"),s[e._uid].play(n)}))},pause:function(){s[this._uid]&&s[this._uid].pause(),this.playing=!1,this.err="",this.performance=""},mute:function(){s[this._uid]&&s[this._uid].mute()},cancelMute:function(){s[this._uid]&&s[this._uid].cancelMute()},destroy:function(){s[this._uid]&&s[this._uid].destroy(),null==document.getElementById("buttonsBox")&&this.$refs.container.appendChild(this.btnDom),s[this._uid]=null,this.playing=!1,this.err="",this.performance=""},eventcallbacK:function(n,e){},fullscreenSwich:function(){var n=this.isFullscreen();s[this._uid].setFullscreen(!n),this.fullscreen=!n},isFullscreen:function(){return document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||!1}},destroyed:function(){s[this._uid]&&s[this._uid].destroy(),this.playing=!1,this.loaded=!1,this.performance=""}},u=c,l=(t("c7ba"),t("2877")),a=Object(l["a"])(u,i,o,!1,null,null,null);e["default"]=a.exports},c7ba:function(n,e,t){"use strict";t("1833")}}]);

View File

@@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b1e4dca","chunk-2d238605"],{"817d":function(e,t,i){var o,a,r;(function(n,l){a=[t,i("313e")],o=l,r="function"===typeof o?o.apply(t,a):o,void 0===r||(e.exports=r)})(0,(function(e,t){var i=function(e){"undefined"!==typeof console&&console&&console.error&&console.error(e)};if(t){var o=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],a={color:o,title:{textStyle:{fontWeight:"normal",color:"#008acd"}},visualMap:{itemWidth:15,color:["#5ab1ef","#e0ffff"]},toolbox:{iconStyle:{borderColor:o[0]}},tooltip:{borderWidth:0,backgroundColor:"rgba(50,50,50,0.5)",textStyle:{color:"#FFF"},axisPointer:{type:"line",lineStyle:{color:"#008acd"},crossStyle:{color:"#008acd"},shadowStyle:{color:"rgba(200,200,200,0.2)"}}},dataZoom:{dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd"},grid:{borderColor:"#eee"},categoryAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#008acd"},controlStyle:{color:"#008acd",borderColor:"#008acd"},symbol:"emptyCircle",symbolSize:3},line:{smooth:!0,symbol:"emptyCircle",symbolSize:3},candlestick:{itemStyle:{color:"#d87a80",color0:"#2ec7c9"},lineStyle:{width:1,color:"#d87a80",color0:"#2ec7c9"},areaStyle:{color:"#2ec7c9",color0:"#b6a2de"}},scatter:{symbol:"circle",symbolSize:4},map:{itemStyle:{color:"#ddd"},areaStyle:{color:"#fe994e"},label:{color:"#d87a80"}},graph:{itemStyle:{color:"#d87a80"},linkStyle:{color:"#2ec7c9"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#2ec7c9"],[.8,"#5ab1ef"],[1,"#d87a80"]],width:10}},axisTick:{splitNumber:10,length:15,lineStyle:{color:"auto"}},splitLine:{length:22,lineStyle:{color:"auto"}},pointer:{width:5}}};t.registerTheme("macarons",a)}else i("ECharts is not Loaded")}))},eab4:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:e.className,style:{height:e.height,width:e.width}})},a=[],r=i("313e"),n=i("feb2");i("817d");var l={mixins:[n["default"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},chartData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{chartData:{deep:!0,handler:function(e){this.setOptions(e)}}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=r["default"].init(this.$el,"macarons"),this.setOptions(this.chartData)},setOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.expectedData,i=e.actualData;this.chart.setOption({xAxis:{data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],boundaryGap:!1,axisTick:{show:!1}},grid:{left:10,right:10,bottom:20,top:30,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"cross"},padding:[5,10]},yAxis:{axisTick:{show:!1}},legend:{data:["expected","actual"]},series:[{name:"expected",itemStyle:{normal:{color:"#FF005A",lineStyle:{color:"#FF005A",width:2}}},smooth:!0,type:"line",data:t,animationDuration:2800,animationEasing:"cubicInOut"},{name:"actual",smooth:!0,type:"line",itemStyle:{normal:{color:"#3888fa",lineStyle:{color:"#3888fa",width:2},areaStyle:{color:"#f3f8ff"}}},data:i,animationDuration:2800,animationEasing:"quadraticOut"}]})}}},s=l,c=i("2877"),d=Object(c["a"])(s,o,a,!1,null,null,null);t["default"]=d.exports},feb2:function(e,t,i){"use strict";i.r(t);var o=i("ed08");t["default"]={data:function(){return{$_sidebarElm:null,$_resizeHandler:null}},mounted:function(){this.initListener()},activated:function(){this.$_resizeHandler||this.initListener(),this.resize()},beforeDestroy:function(){this.destroyListener()},deactivated:function(){this.destroyListener()},methods:{$_sidebarResizeHandler:function(e){"width"===e.propertyName&&this.$_resizeHandler()},initListener:function(){var e=this;this.$_resizeHandler=Object(o["c"])((function(){e.resize()}),100),window.addEventListener("resize",this.$_resizeHandler),this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},destroyListener:function(){window.removeEventListener("resize",this.$_resizeHandler),this.$_resizeHandler=null,this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)},resize:function(){var e=this.chart;e&&e.resize()}}}}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-50e312d8","chunk-2d238605"],{"817d":function(e,t,i){var o,r,n;(function(a,l){r=[t,i("313e")],o=l,n="function"===typeof o?o.apply(t,r):o,void 0===n||(e.exports=n)})(0,(function(e,t){var i=function(e){"undefined"!==typeof console&&console&&console.error&&console.error(e)};if(t){var o=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],r={color:o,title:{textStyle:{fontWeight:"normal",color:"#008acd"}},visualMap:{itemWidth:15,color:["#5ab1ef","#e0ffff"]},toolbox:{iconStyle:{borderColor:o[0]}},tooltip:{borderWidth:0,backgroundColor:"rgba(50,50,50,0.5)",textStyle:{color:"#FFF"},axisPointer:{type:"line",lineStyle:{color:"#008acd"},crossStyle:{color:"#008acd"},shadowStyle:{color:"rgba(200,200,200,0.2)"}}},dataZoom:{dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd"},grid:{borderColor:"#eee"},categoryAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#008acd"},controlStyle:{color:"#008acd",borderColor:"#008acd"},symbol:"emptyCircle",symbolSize:3},line:{smooth:!0,symbol:"emptyCircle",symbolSize:3},candlestick:{itemStyle:{color:"#d87a80",color0:"#2ec7c9"},lineStyle:{width:1,color:"#d87a80",color0:"#2ec7c9"},areaStyle:{color:"#2ec7c9",color0:"#b6a2de"}},scatter:{symbol:"circle",symbolSize:4},map:{itemStyle:{color:"#ddd"},areaStyle:{color:"#fe994e"},label:{color:"#d87a80"}},graph:{itemStyle:{color:"#d87a80"},linkStyle:{color:"#2ec7c9"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#2ec7c9"],[.8,"#5ab1ef"],[1,"#d87a80"]],width:10}},axisTick:{splitNumber:10,length:15,lineStyle:{color:"auto"}},splitLine:{length:22,lineStyle:{color:"auto"}},pointer:{width:5}}};t.registerTheme("macarons",r)}else i("ECharts is not Loaded")}))},d153:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:e.className,style:{height:e.height,width:e.width}})},r=[],n=i("313e"),a=i("feb2");i("817d");var l={mixins:[a["default"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n["default"].init(this.$el,"macarons"),this.chart.setOption({tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{left:"center",bottom:"10",data:["Industries","Technology","Forex","Gold","Forecasts"]},series:[{name:"WEEKLY WRITE ARTICLES",type:"pie",roseType:"radius",radius:[15,95],center:["50%","38%"],data:[{value:320,name:"Industries"},{value:240,name:"Technology"},{value:149,name:"Forex"},{value:100,name:"Gold"},{value:59,name:"Forecasts"}],animationEasing:"cubicInOut",animationDuration:2600}]})}}},s=l,c=i("2877"),d=Object(c["a"])(s,o,r,!1,null,null,null);t["default"]=d.exports},feb2:function(e,t,i){"use strict";i.r(t);var o=i("ed08");t["default"]={data:function(){return{$_sidebarElm:null,$_resizeHandler:null}},mounted:function(){this.initListener()},activated:function(){this.$_resizeHandler||this.initListener(),this.resize()},beforeDestroy:function(){this.destroyListener()},deactivated:function(){this.destroyListener()},methods:{$_sidebarResizeHandler:function(e){"width"===e.propertyName&&this.$_resizeHandler()},initListener:function(){var e=this;this.$_resizeHandler=Object(o["c"])((function(){e.resize()}),100),window.addEventListener("resize",this.$_resizeHandler),this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},destroyListener:function(){window.removeEventListener("resize",this.$_resizeHandler),this.$_resizeHandler=null,this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)},resize:function(){var e=this.chart;e&&e.resize()}}}}}]);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-52211010"],{"01ca":function(t,e,o){"use strict";o.d(e,"f",(function(){return a})),o.d(e,"d",(function(){return r})),o.d(e,"a",(function(){return i})),o.d(e,"e",(function(){return l})),o.d(e,"g",(function(){return c})),o.d(e,"c",(function(){return u})),o.d(e,"b",(function(){return s}));var n=o("b775");function a(t){return Object(n["a"])({url:"/iot/model/list",method:"get",params:t})}function r(t){return Object(n["a"])({url:"/iot/model/"+t,method:"get"})}function i(t){return Object(n["a"])({url:"/iot/model",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/iot/model/import",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/iot/model",method:"put",data:t})}function u(t){return Object(n["a"])({url:"/iot/model/"+t,method:"delete"})}function s(t){return Object(n["a"])({url:"/iot/model/cache/"+t,method:"get"})}},"3c10":function(t,e,o){},bbfb:function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticStyle:{"padding-left":"20px"}},[o("el-row",{attrs:{gutter:10}},[o("el-col",{attrs:{span:14}},[o("el-row",{staticClass:"mb8",attrs:{gutter:10}},[o("el-col",{attrs:{span:1.5}},[o("el-button",{attrs:{type:"warning",plain:"",icon:"el-icon-refresh",size:"mini"},on:{click:t.getList}},[t._v("刷新")])],1),o("el-tag",{staticStyle:{"margin-left":"15px"},attrs:{type:"danger"}},[t._v("该功能暂不可用,后面版本发布")])],1),o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-bottom":"60px","margin-top":"20px"},attrs:{data:t.modelList,border:"",size:"small"}},[o("el-table-column",{attrs:{label:"名称",align:"center",prop:"modelName"}}),o("el-table-column",{attrs:{label:"标识符",align:"center",prop:"identifier"}}),o("el-table-column",{attrs:{label:"物模型类别",align:"center",prop:"type"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("dict-tag",{attrs:{options:t.dict.type.iot_things_type,value:e.row.type}})]}}])}),o("el-table-column",{attrs:{label:"数据类型",align:"center",prop:"datatype"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("dict-tag",{attrs:{options:t.dict.type.iot_data_type,value:e.row.datatype}})]}}])}),o("el-table-column",{attrs:{label:"部件",align:"center",prop:"part"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.part)+" 系统定义的部件 ")]}}])})],1),o("el-divider",[t._v("高级功能")]),o("el-form",{ref:"form",attrs:{model:t.form,"label-width":"100px"}},[o("el-form-item",{attrs:{label:"自定义页面",prop:"page"}},[o("el-input",{attrs:{placeholder:"请输入自定义页面"},model:{value:t.form.page,callback:function(e){t.$set(t.form,"page",e)},expression:"form.page"}})],1)],1)],1),o("el-col",{attrs:{span:8,offset:2}},[o("div",{staticClass:"phone"},[o("div",{staticClass:"phone-container"})]),o("div",{staticStyle:{"text-align":"center","margin-top":"15px",width:"370px"}},[t._v("界面展示")])])],1)],1)},a=[],r=o("01ca"),i={name:"device-log",dicts:["iot_things_type","iot_data_type","iot_yes_no"],props:{product:{type:Object,default:null}},data:function(){return{loading:!1,modelList:[],title:"",queryParams:{productId:0,type:4},form:{},productInfo:{}}},watch:{product:function(t,e){this.productInfo=t,this.productInfo&&0!=this.productInfo.productId&&(this.queryParams.productId=this.productInfo.productId,this.getList())}},created:function(){},methods:{getList:function(){var t=this;this.loading=!0,Object(r["f"])(this.queryParams).then((function(e){t.modelList=e.rows,t.total=e.total,t.loading=!1}))}}},l=i,c=(o("ca7c"),o("2877")),u=Object(c["a"])(l,n,a,!1,null,"acd2e2f8",null);e["default"]=u.exports},ca7c:function(t,e,o){"use strict";o("3c10")}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5526dd39"],{"478b":function(e,t,r){},"7fbd":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"center_bottom"},[r("Echart",{staticClass:"echarts_bottom",attrs:{options:e.options,id:"bottomLeftChart"}})],1)},n=[],o=(r("b0c0"),r("d3b7"),r("159b"),r("e100")),c={data:function(){return{options:{}}},props:{},mounted:function(){this.getData()},methods:{getData:function(){var e=this;this.pageflag=!0,Object(o["a"])("big6",{companyName:this.companyName}).then((function(t){console.log("安装计划",t),t.success?e.init(t.data):(e.pageflag=!1,e.$Message({text:t.msg,type:"warning"}))}))},init:function(e){this.options={tooltip:{trigger:"axis",backgroundColor:"rgba(0,0,0,.6)",borderColor:"rgba(147, 235, 248, .8)",textStyle:{color:"#FFF"},formatter:function(e){var t=e[0].name+"<br>";return e.forEach((function(e){e.value?"安装率"==e.seriesName?t+=e.marker+" "+e.seriesName+" : "+e.value+"%</br>":t+=e.marker+" "+e.seriesName+" : "+e.value+"个</br>":t+=e.marker+" "+e.seriesName+" : - </br>"})),t}},legend:{data:["已安装","计划安装","安装率"],textStyle:{color:"#B4B4B4"},top:"0"},grid:{left:"50px",right:"40px",bottom:"30px",top:"20px"},xAxis:{data:e.category,axisLine:{lineStyle:{color:"#B4B4B4"}},axisTick:{show:!1}},yAxis:[{splitLine:{show:!1},axisLine:{lineStyle:{color:"#B4B4B4"}},axisLabel:{formatter:"{value}"}},{splitLine:{show:!1},axisLine:{lineStyle:{color:"#B4B4B4"}},axisLabel:{formatter:"{value}% "}}],series:[{name:"已安装",type:"bar",barWidth:10,itemStyle:{normal:{barBorderRadius:5,color:new echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#956FD4"},{offset:1,color:"#3EACE5"}])}},data:e.barData},{name:"计划安装",type:"bar",barGap:"-100%",barWidth:10,itemStyle:{normal:{barBorderRadius:5,color:new echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(156,107,211,0.8)"},{offset:.2,color:"rgba(156,107,211,0.5)"},{offset:1,color:"rgba(156,107,211,0.2)"}])}},z:-12,data:e.lineData},{name:"安装率",type:"line",smooth:!0,showAllSymbol:!0,symbol:"emptyCircle",symbolSize:8,yAxisIndex:1,itemStyle:{normal:{color:"#F02FC2"}},data:e.rateData}]}}}},s=c,i=(r("9300"),r("2877")),u=Object(i["a"])(s,a,n,!1,null,"3786acd1",null);t["default"]=u.exports},9300:function(e,t,r){"use strict";r("478b")},"93bb":function(e,t,r){"use strict";r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return f})),r.d(t,"c",(function(){return m}));r("5530");var a=r("c7eb"),n=r("1da1"),o=(r("d3b7"),r("99af"),r("bc3a")),c=r.n(o),s={ENC:!1,baseUrl:"http://locolhost:8888",code:401},i=s,u=(r("a18c"),i.baseUrl);c.a.CancelToken;c.a.interceptors.request.use((function(e){var t=localStorage.getItem("token");return e.headers.common["Content-Type"]="application/json;charset=utf-8",e.headers.common["token"]=t,e}),(function(e){return console.log(e),Promise.reject(e)})),c.a.interceptors.response.use((function(e){return 200!==e.status?Promise.reject(e):(e.data.code,i.code,e.data)}),(function(e){var t={success:!1,msg:"未知异常,请联系管理员!"};return Promise.reject(t)}));var l={headers:{enc:i.ENC}},b=function(e){return e},p=function(){var e=Object(n["a"])(Object(a["a"])().mark((function e(t,r){var n;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,r=b(r),e.next=4,c.a.get("".concat(u).concat(t),{params:r,headers:l.headers},l);case 4:return n=e.sent,e.abrupt("return",n);case 8:return e.prev=8,e.t0=e["catch"](0),e.abrupt("return",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t,r){return e.apply(this,arguments)}}(),f=function(){var e=Object(n["a"])(Object(a["a"])().mark((function e(t,r){var n;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c.a.get(t,{params:r});case 3:return n=e.sent,e.abrupt("return",n);case 7:return e.prev=7,e.t0=e["catch"](0),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t,r){return e.apply(this,arguments)}}(),m=function(){var e=Object(n["a"])(Object(a["a"])().mark((function e(t,r){var n;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,r=b(r),e.next=4,c.a.post("".concat(u).concat(t),r,l);case 4:return n=e.sent,e.abrupt("return",n);case 8:return e.prev=8,e.t0=e["catch"](0),e.abrupt("return",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t,r){return e.apply(this,arguments)}}()},e100:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var a=r("93bb"),n={big1:"/bigscreen/countUserNum",big2:"/bigscreen/countDeviceNum",big3:"/bigscreen/sbtx",big4:"/bigscreen/alarmNum",big5:"/bigscreen/ssyj",big6:"/bigscreen/installationPlan",big7:"/bigscreen/ranking",big8:"/bigscreen/centermap"},o=function(e,t){return a["a"](n[e],t)}}}]);

Some files were not shown because too many files have changed in this diff Show More