mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-11 01:10:29 +08:00
0c56a3e599
Made-with: Cursor Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
1 line
40 KiB
JavaScript
1 line
40 KiB
JavaScript
(window["webpackJsonp_heat-analysis-portal"]=window["webpackJsonp_heat-analysis-portal"]||[]).push([["chunk-2987f41e"],{1:function(e,t){},2:function(e,t){},"21fb":function(e,t,r){e.exports={elInputWidth:"200px",elInputNumberWidth:"200px",elTextareaWidth:"300px",elSelectWidth:"200px",appHeaderBg:"#014051",appIconBg:"#31b89a",appIconColor:"#fff",appIconSize:"30px",appNameColor:"#fff",appNameSize:"30px"}},3:function(e,t){},"313b":function(e,t,r){"use strict";r("d3b7"),r("96cf");var a=r("1da1"),n=r("d4ec"),i=r("bee2"),s=r("99de"),o=r("7e84"),c=r("262e"),l=r("9ab4"),u=r("60a3"),d=r("9dba"),p=r("6fc5"),h=function(e){function t(){var e;return Object(n["a"])(this,t),e=Object(s["a"])(this,Object(o["a"])(t).apply(this,arguments)),e.orgTreeData=[],e.orgId="",e}return Object(c["a"])(t,e),Object(i["a"])(t,[{key:"fetchOrganizationTree",value:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,r,a,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,t=[],!this.userInfo.orgId){e.next=7;break}return e.next=5,this.service.organizationDetail(this.userInfo.orgId);case 5:r=e.sent,r&&r.data&&t.push(r.data);case 7:return a={parentId:this.userInfo.orgId,businessId:this.userInfo.businessId},e.next=10,this.service.organizationTree(a);case 10:return n=e.sent,i=n.data,i&&i.length>0&&(t&&t.length>0?(t[0].children=[],t[0].children=i):t=i),t&&t.length>0&&(this.orgId=t[0].id),this.orgTreeData=t,e.abrupt("return",Promise.resolve());case 18:return e.prev=18,e.t0=e["catch"](0),e.abrupt("return",Promise.resolve());case 21:case"end":return e.stop()}}),e,this,[[0,18]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"userInfo",get:function(){return Object(p["e"])(d["a"],this.$store).userInfo}}]),t}(u["e"]);h=l["a"]([Object(u["a"])({name:"OrgTreeMixins",components:{}})],h),t["a"]=h},4678:function(e,t,r){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-SG":"cdab","./en-SG.js":"cdab","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-nz":"6f50","./en-nz.js":"6f50","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df48","./fa.js":"8df48","./fi":"81e9","./fi.js":"81e9","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b46","./gd.js":"f6b46","./gl":"8840","./gl.js":"8840","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-tw":"90ea","./zh-tw.js":"90ea"};function n(e){var t=i(e);return r(t)}function i(e){if(!r.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}n.keys=function(){return Object.keys(a)},n.resolve=i,e.exports=n,n.id="4678"},8930: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:"app-main setting-wrp flex"},[r("div",{staticClass:"lf-wrapper"},[r("el-input",{attrs:{placeholder:"搜索","prefix-icon":"el-icon-search",maxlength:32},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}}),r("el-tree",{ref:"orgTreeRef",staticClass:"tree",attrs:{data:e.orgTreeData,props:e.treeProps,"node-key":"id","default-expand-all":!0,"expand-on-click-node":!1,"highlight-current":!0,"filter-node-method":e.filterNode},on:{"node-click":e.handleNodeClick},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node;return[a.label&&a.label.length>12?r("el-tooltip",{staticClass:"item",attrs:{effect:"dark","open-delay":500,content:a.label,placement:"right"}},[r("span",{staticClass:"el-tree-node__label"},[e._v(e._s(a.label))])]):r("span",{staticClass:"el-tree-node__label"},[e._v(e._s(a.label))])]}}])})],1),r("div",{staticClass:"rt-wrapper"},[r("h3",{staticClass:"title"},[e._v(e._s(e.orgDetail.name))]),r("el-divider"),r("div",{staticClass:"base-info sub-head"},[e._m(0),r("div",{staticClass:"panel-main"},[r("el-row",{attrs:{gutter:32}},[r("el-col",{attrs:{span:8}},[r("label",{staticClass:"label"},[e._v("机构名称:")]),e._v(" "+e._s(e.orgDetail.name||"-")+" ")]),r("el-col",{attrs:{span:8}},[r("label",{staticClass:"label"},[e._v("机构类型:")]),e._v(" "+e._s(e.orgDetail.type||"-")+" ")])],1)],1)]),[r("relative-device",{attrs:{orgId:e.orgId},on:{refreshROIList:e.onRefreshROIList}}),r("map-setting",{ref:"mapSettingRef",attrs:{orgId:e.orgId}})]],2)])},n=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"sub-head"},[r("span",{staticClass:"sub-title"},[e._v("基本信息")])])}],i=(r("4de4"),r("c740"),r("c975"),r("b0c0"),r("96cf"),r("1da1")),s=r("d4ec"),o=r("bee2"),c=r("99de"),l=r("7e84"),u=r("262e"),d=r("9ab4"),p=r("60a3"),h=r("313b"),f=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"panel"},[e._m(0),r("el-button",{staticStyle:{margin:"4px 0 16px"},attrs:{type:"primary"},on:{click:e.onAddDevice}},[e._v("添加设备")]),r("el-table",{attrs:{data:e.deviceList,height:"300px"}},[r("el-table-column",{attrs:{label:"编号",prop:"deviceCode"}}),r("el-table-column",{attrs:{label:"名称",prop:"deviceName"}}),r("el-table-column",{attrs:{label:"类型",prop:"deviceTypeName"}}),r("el-table-column",{attrs:{label:"区位",prop:"areaName"}}),r("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.status?r("span",[e._v(" "+e._s(2===t.row.onlineStatus?"在线":3===t.row.onlineStatus?"离线":""))]):r("span",[e._v("停用")])]}}])}),r("el-table-column",{attrs:{label:"最近在线时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("dateFormatter")(t.row.lastHeartbeatTime))+" ")]}}])}),r("el-table-column",{attrs:{label:"操作",width:"180px",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.onRemoveDevice(t.row)}}},[e._v("移除设备")]),r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.onOpenROI(t.row)}}},[e._v("视觉围栏设置")])]}}])})],1),r("pager",{attrs:{pager:e.pager,align:"right"},on:{pagerChange:e.onPagerChange}}),r("device-dialog",{ref:"deviceDialog",on:{onRresh:e.fetchRelativeDeviceList}}),r("el-dialog",{attrs:{title:"设置ROI",visible:e.showROI,"before-close":e.onBeforeCloseDialog,width:"900px"},on:{"update:visible":function(t){e.showROI=t}}},[e.showROI?r("RoiLayout",{ref:"roiLayout",attrs:{width:800,device:e.roiDevice,mode:"live",formComponent:e.formComponent,customizeAreaName:!0,roiName:"围栏区域"},on:{select:e.roiChange,confirm:e.onROIConfirm,remove:e.onROIRemove},scopedSlots:e._u([{key:"player",fn:function(t){var a=t.stream;return[r("qz-player",{ref:"qzPlayer",attrs:{type:"live",mode:"live",devices:e.playerDeviceList,"player-server":e.playServer,"basic-config":e.playerConfig,"plugin-url":e.pluginUrl},on:{onStreamStatus:function(t){return e.onStreamStatus(t,a)}}})]}}],null,!1,112649890),model:{value:e.roiData,callback:function(t){e.roiData=t},expression:"roiData"}}):e._e()],1)],1)},v=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"sub-head"},[r("span",{staticClass:"sub-title"},[e._v("关联设备")])])}],m=(r("a4d3"),r("99af"),r("7db0"),r("4160"),r("caad"),r("d81d"),r("e439"),r("dbb4"),r("b64b"),r("2532"),r("159b"),r("ade3")),g=r("2de2"),b=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{title:"添加设备",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[r("el-form",{attrs:{inline:!0}},[r("el-form-item",[r("el-input",{attrs:{placeholder:"请输入设备名称",maxlength:32},model:{value:e.deviceForm.deviceName,callback:function(t){e.$set(e.deviceForm,"deviceName",t)},expression:"deviceForm.deviceName"}})],1),r("el-form-item",[r("el-input",{attrs:{placeholder:"请输入设备编号",maxlength:32},model:{value:e.deviceForm.deviceCode,callback:function(t){e.$set(e.deviceForm,"deviceCode",t)},expression:"deviceForm.deviceCode"}})],1),r("el-form-item",[r("el-cascader",{attrs:{placeholder:"请选择设备类型",maxlength:32,options:e.deviceTypeOptions,props:{value:"id",label:"name"},filterable:"",clearable:""},model:{value:e.deviceForm.deviceTypeId,callback:function(t){e.$set(e.deviceForm,"deviceTypeId",t)},expression:"deviceForm.deviceTypeId"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:e.onSearchDevice}},[e._v("查询")])],1)],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.deviceList,height:"400px"},on:{"selection-change":e.onSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55"}}),r("el-table-column",{attrs:{label:"编号",prop:"deviceCode"}}),r("el-table-column",{attrs:{label:"名称",prop:"deviceName"}}),r("el-table-column",{attrs:{label:"类型",prop:"deviceTypeName"}}),r("el-table-column",{attrs:{label:"区位",prop:"areaAddr"}}),r("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.status?r("span",[e._v(" "+e._s(2===t.row.onlineStatus?"在线":3===t.row.onlineStatus?"离线":""))]):r("span",[e._v("停用")])]}}])})],1),r("pager",{attrs:{pager:e.pager,align:"center"},on:{pagerChange:e.onPagerChange}}),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.onConfirm}},[e._v("确定")])],1)],1)},j=[],y=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-pagination",{staticClass:"pager",attrs:{"hide-on-single-page":"","current-page":e.pageObj.currentPage,"page-sizes":[10,20,50,100],"page-size":e.pageObj.rowsOfPage,layout:"total, sizes, prev, pager, next, jumper",total:e.pageObj.total},on:{"size-change":e.onSizeChange,"current-change":e.onCurrPageChange}})},O=[],I=function(e){function t(){var e;return Object(s["a"])(this,t),e=Object(c["a"])(this,Object(l["a"])(t).apply(this,arguments)),e.pageObj={rowsOfPage:10,currentPage:1,total:0},e}return Object(u["a"])(t,e),Object(o["a"])(t,[{key:"pagerChange",value:function(e){var t=this;this.$nextTick((function(){t.pageObj=e}))}},{key:"onSizeChange",value:function(e){this.pager.rowsOfPage=e,this.$emit("pagerChange",this.pager)}},{key:"onCurrPageChange",value:function(e){this.pager.currentPage=e,this.$emit("pagerChange",this.pager)}}]),t}(p["e"]);d["a"]([Object(p["c"])({type:Object,default:{currentPage:1,rowsOfPage:10,total:0}})],I.prototype,"pager",void 0),d["a"]([Object(p["f"])("pager",{immediate:!0,deep:!0})],I.prototype,"pagerChange",null),I=d["a"]([Object(p["a"])({name:"Pager",components:{}})],I);var w=I,k=w,x=(r("8cd4"),r("2877")),R=Object(x["a"])(k,y,O,!1,null,null,null),C=R.exports;function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){Object(m["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var S=function(e){function t(){var e;return Object(s["a"])(this,t),e=Object(c["a"])(this,Object(l["a"])(t).apply(this,arguments)),e.deviceList=[],e.deviceForm={deviceName:"",deviceCode:"",deviceTypeId:[],status:0},e.deviceTypeOptions=[],e.show=!1,e.selectDeviceIds=[],e.orgId="",e.pager={currentPage:1,rowsOfPage:10,total:0},e.loading=!1,e}return Object(u["a"])(t,e),Object(o["a"])(t,[{key:"created",value:function(){this.fetchDeviceTypes()}},{key:"showDialog",value:function(e){var t=this;this.deviceForm={deviceName:"",deviceCode:"",deviceTypeId:[],status:0},this.orgId=e,this.fetchNotRelativeDeviceList(),setTimeout((function(){t.show=!0}),500)}},{key:"fetchNotRelativeDeviceList",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,this.loading=!0,t=this.deviceForm.deviceTypeId,t&&(this.deviceForm.deviceTypeId=t[t.length-1]),e.next=6,this.service.notRelatedDevices(_({serviceCode:g["a"]},this.deviceForm,{},this.pager));case 6:r=e.sent,a=r.data,this.deviceList=a.datas,this.pager.total=a.totalRows,this.loading=!1,e.next=16;break;case 13:e.prev=13,e.t0=e["catch"](0),this.loading=!1;case 16:case"end":return e.stop()}}),e,this,[[0,13]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"onPagerChange",value:function(e){this.pager=e,this.fetchNotRelativeDeviceList()}},{key:"fetchDeviceTypes",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.service.deviceTypes();case 3:t=e.sent,r=t.data,this.deviceTypeOptions=r,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"onSearchDevice",value:function(){this.pager.rowsOfPage=10,this.pager.currentPage=1,this.fetchNotRelativeDeviceList()}},{key:"onSelectionChange",value:function(e){e&&e.length>0?this.selectDeviceIds=e.map((function(e){return e.id})):this.selectDeviceIds=[]}},{key:"onConfirm",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(0!==this.selectDeviceIds.length){e.next=3;break}return this.$message.error("请选择设备"),e.abrupt("return");case 3:return t=this.selectDeviceIds.map((function(e){return{deviceId:e,orgId:r.orgId,serviceCode:g["a"]}})),e.prev=4,e.next=7,this.service.batchAddDevice({params:t});case 7:this.$message.success("添加成功"),this.show=!1,this.$emit("onRresh"),e.next=14;break;case 12:e.prev=12,e.t0=e["catch"](4);case 14:case"end":return e.stop()}}),e,this,[[4,12]])})));function t(){return e.apply(this,arguments)}return t}()}]),t}(p["e"]);S=d["a"]([Object(p["a"])({name:"DeviceDialog",components:{Pager:C}})],S);var P=S,N=P,$=Object(x["a"])(N,b,j,!1,null,null,null),F=$.exports,z=r("aea8"),T=r("fca5"),L=r.n(T),U=(r("d3b7"),r("25f0"),r("3452")),B=r.n(U),A="cloudwalk202107!",E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A,r=B.a.enc.Hex.parse(e),a=B.a.enc.Base64.stringify(r),n=B.a.enc.Utf8.parse(t),i=B.a.AES.decrypt(a,n,{mode:B.a.mode.ECB,padding:B.a.pad.Pkcs7}),s=i.toString(B.a.enc.Utf8);return s.toString()},W=r("5c96");function V(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach((function(t){Object(m["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var M=function(e){function t(){var e;return Object(s["a"])(this,t),e=Object(c["a"])(this,Object(l["a"])(t).apply(this,arguments)),e.formComponent={button:W["Button"],input:W["Input"]},e.roiDevice={rtspUrl:"",deviceName:"",deviceCode:""},e.pluginUrl="./heat-analysis-portal/player/DCSPlugin-1.2.0.exe",e.playerConfig={row:1,cols:1,combines:{},autoPlay:!0,autofitView:!0,theme:"light-theme",button:W["Button"]},e.playServer="",e.playerDeviceList=[],e.playServerSave="",e.deviceList=[],e.roiConfig={deviceId:"",width:800,deviceName:"",deviceCode:"",rtspUrl:""},e.showROI=!1,e.roiData=[],e.tempRoiData=[],e.pager={currentPage:1,rowsOfPage:10,total:0},e.tempOrgId="",e.deletedROIIds=[],e}return Object(u["a"])(t,e),Object(o["a"])(t,[{key:"orgIdChange",value:function(e){this.tempOrgId=e,e&&this.fetchRelativeDeviceList()}},{key:"validate",value:function(){return!0}},{key:"roiChange",value:function(){this.validate()}},{key:"onStreamStatus",value:function(e,t){t.listen(e,this.$refs.qzPlayer)}},{key:"fetchDcsAccount",value:function(e){e&&(this.playServerSave="".concat(e.cameraUserName,":").concat(E(e.cameraPassword),"@").concat(e.cameraIp,":2015"))}},{key:"deviceSelectChange",value:function(e){this.roiDevice={rtspUrl:e.cameraMainRtspUrl,deviceName:e.deviceName,deviceCode:e.deviceCode},this.playerDeviceList=[].concat({rtspUrl:e.cameraMainRtspUrl,dcs:0===e.fromDcm,playerServer:0===e.fromDcm?this.playServerSave:""}),this.playServer=0===e.fromDcm?this.playServerSave:"",e.cameraMainRtspUrl||this.$message.warning("当前设备暂无视频流地址,请选择其他设备进行绘制")}},{key:"fetchRelativeDeviceList",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.service.relatedDevices(q({orgId:this.tempOrgId,serviceCode:g["a"]},this.pager));case 3:t=e.sent,r=t.data,this.deviceList=r.datas,this.pager.total=r.totalRows,e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"onPagerChange",value:function(e){this.pager=e,this.fetchRelativeDeviceList()}},{key:"onRemoveDevice",value:function(e){var t=this;this.$confirm("确定删除设备?").then(Object(i["a"])(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,a={deviceId:e.id,deviceCode:e.deviceCode,orgId:t.tempOrgId},r.next=4,t.service.deleteROI(a);case 4:t.fetchRelativeDeviceList(),t.$emit("refreshROIList"),t.$message.success("删除成功"),r.next=11;break;case 9:r.prev=9,r.t0=r["catch"](0);case 11:case"end":return r.stop()}}),r,null,[[0,9]])}))))}},{key:"onAddDevice",value:function(){this.$refs.deviceDialog.showDialog(this.tempOrgId)}},{key:"onBeforeCloseDialog",value:function(){this.roiConfig.deviceId="",this.roiConfig.deviceCode="",this.showROI=!1}},{key:"onOpenROI",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.fetchDcsAccount(t),this.deviceSelectChange(t),e.prev=2,this.roiConfig.deviceId=t.id,this.roiConfig.deviceCode=t.deviceCode,this.roiConfig.deviceName=t.deviceName,e.next=8,this.service.queryROI({deviceId:t.deviceCode});case 8:r=e.sent,a=r.data,[],a&&a.length>0?this.roiData=a.map((function(e){return{custom:{id:e.id},roiId:e.roiId,name:e.roiName,points:JSON.parse(e.roiPointInfoWeb)}})):this.roiData=[],this.tempRoiData=this.roiData,this.showROI=!0,this.$refs.roiLayout&&this.$refs.roiLayout.refresh(),e.next=19;break;case 17:e.prev=17,e.t0=e["catch"](2);case 19:case"end":return e.stop()}}),e,this,[[2,17]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onROIRemove",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,r=this.tempRoiData.find((function(e){return e.name===t.name})),r&&(t=r),t.custom.id){e.next=6;break}return this.$emit("refreshROIList"),e.abrupt("return");case 6:return e.next=8,this.service.deleteROI({roiIds:[t.custom.id],orgId:this.tempOrgId});case 8:this.deletedROIIds.push(t.custom.id),this.$emit("refreshROIList"),this.$message.success("删除成功"),e.next=15;break;case 13:e.prev=13,e.t0=e["catch"](0);case 15:case"end":return e.stop()}}),e,this,[[0,13]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onROIConfirm",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var r,a,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,r=this.$refs.roiLayout.getImage(),a=[],t.length>0&&(a=t.map((function(e){return n.transROIParam(e,r.width,r.height)}))),a=a.filter((function(e){return!n.deletedROIIds.includes(e.roiId)})),e.next=7,this.service.batchAddROI({roiData:a});case 7:this.$message.success("保存成功"),this.showROI=!1,this.$emit("refreshROIList"),e.next=14;break;case 12:e.prev=12,e.t0=e["catch"](0);case 14:case"end":return e.stop()}}),e,this,[[0,12]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"transROIParam",value:function(e,t,r){return{orgId:this.tempOrgId,deviceId:this.roiConfig.deviceCode,roiId:e.custom.id||null,roiWidth:t,roiHeight:r,roiName:e.name,roiPointInfoWeb:JSON.stringify(e.points),roiHeightWeb:r,roiWidthWeb:t,count:e.points.length}}}]),t}(p["e"]);d["a"]([Object(p["c"])({default:"",type:String})],M.prototype,"orgId",void 0),d["a"]([Object(p["f"])("orgId",{immediate:!0})],M.prototype,"orgIdChange",null),M=d["a"]([Object(p["a"])({name:"",components:{Pager:C,DeviceDialog:F,RoiLayout:z["a"],QzPlayer:L.a}})],M);var H=M,J=H,G=Object(x["a"])(J,f,v,!1,null,null,null),K=G.exports,Q=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"panel map-setting"},[r("div",{staticClass:"sub-head flex-middle"},[r("span",{staticClass:"sub-title"},[e._v("地图管理")]),r("el-upload",{ref:"updateUpload",staticClass:"upload-btn",attrs:{action:"image/*",accept:"","before-upload":e.onBeforeUpload,"http-request":e.onUploadImage,"show-file-list":!1,limit:1}},[r("el-button",{attrs:{type:"primary"}},[e._v(e._s(e.orgBg.src?"更新地图":"上传地图"))])],1)],1),r("div",{ref:"mapRef"},[r("empty-map",{directives:[{name:"show",rawName:"v-show",value:!e.orgBg.src,expression:"!orgBg.src"}],on:{onUploadImage:e.onUploadImage}}),e.loaded?r("RoiLayout",{directives:[{name:"show",rawName:"v-show",value:e.orgBg.src,expression:"orgBg.src"}],ref:"areaROIRef",attrs:{width:e.roiConfig.width,image:e.orgBg.src,device:{deviceName:e.roiConfig.deviceName,deviceCode:e.roiConfig.deviceCode},customizeAreaName:!0,limit:100,roiName:"业务区域",mode:"image",formComponent:e.formComponent},on:{select:e.onROISelect,remove:e.onROIRemove,confirm:e.onROIConfirm},model:{value:e.areaData,callback:function(t){e.areaData=t},expression:"areaData"}},[r("div",{staticClass:"flex-1",attrs:{slot:"button"},slot:"button"},[r("span",{staticStyle:{"padding-right":"16px"}},[e._v("区域地图")])]),r("div",{attrs:{slot:"bottom"},slot:"bottom"},[r("span",[e._v("视觉围栏")]),r("el-select",{staticStyle:{margin:"0 12px"},attrs:{placeholder:"选择视觉围栏区域",filterable:"",clearable:""},model:{value:e.areaForm.roiId,callback:function(t){e.$set(e.areaForm,"roiId",t)},expression:"areaForm.roiId"}},e._l(e.roiList,(function(e){return r("el-option",{key:e.roiId,attrs:{label:e.roiName,value:e.roiId}})})),1)],1)]):e._e()],1),r("el-dialog",{attrs:{title:"业务区域设置教学视频",visible:e.showVideoDialog,width:"840px"},on:{"update:visible":function(t){e.showVideoDialog=t}}},[r("CWVideoPlayer")],1)],1)},X=[],Y=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"flex map-wrapper"},[r("div",{staticClass:"map-lf"},[e._m(0),r("el-divider"),r("div",{staticClass:"map-box flex-middle"},[r("div",{staticClass:"empty"},[r("div",{staticClass:"empty-text"},[e._v("您还没有上传区域地图哦~")]),r("el-upload",{ref:"addUpload",staticClass:"upload-btn",attrs:{action:"image/*",accept:"","http-request":e.onUpload,"show-file-list":!1,limit:1}},[r("el-button",{attrs:{type:"primary"}},[e._v("点击上传")]),r("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("图片大小不要超过500kb")])],1)],1)])],1),r("div",{staticClass:"map-rt"},[r("div",{staticClass:"map-head"},[e._v("已配置业务区域列表")]),r("el-divider"),e._m(1)],1)])},Z=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"map-head flex-between-middle"},[r("span",[e._v("区域地图")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"flex-middle tip-wrp"},[r("span",{staticClass:"tip"},[e._v("请先在左侧上传地图,"),r("br"),e._v("然后设置业务区域哦~")])])}],ee=function(e){function t(){return Object(s["a"])(this,t),Object(c["a"])(this,Object(l["a"])(t).apply(this,arguments))}return Object(u["a"])(t,e),Object(o["a"])(t,[{key:"onUpload",value:function(e){this.$emit("onUploadImage",e)}}]),t}(p["e"]);ee=d["a"]([Object(p["a"])({name:"EmptyMap",components:{}})],ee);var te=ee,re=te,ae=Object(x["a"])(re,Y,Z,!1,null,null,null),ne=ae.exports,ie=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("video",{attrs:{src:e.videoSrc,controls:"controls",width:"800px",height:"450px"}})])},se=[],oe=function(e){function t(){var e;return Object(s["a"])(this,t),e=Object(c["a"])(this,Object(l["a"])(t).apply(this,arguments)),e.videoSrc="",e}return Object(u["a"])(t,e),Object(o["a"])(t,[{key:"created",value:function(){this.fetchVideoUrl()}},{key:"fetchVideoUrl",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.service.videoUrl();case 3:t=e.sent,r=t.data,this.videoSrc=r,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()}]),t}(p["e"]);oe=d["a"]([Object(p["a"])({name:"CWVideoPlayer",components:{}})],oe);var ce=oe,le=ce,ue=Object(x["a"])(le,ie,se,!1,null,null,null),de=ue.exports,pe=500,he=function(e){function t(){var e;return Object(s["a"])(this,t),e=Object(c["a"])(this,Object(l["a"])(t).apply(this,arguments)),e.urlPrefix="",e.orgBg={id:"",src:""},e.roiConfig={deviceCode:"",width:1100,deviceName:""},e.formComponent={button:W["Button"],input:W["Input"]},e.areaData=[],e.loaded=!1,e.showROI=!1,e.roiList=[],e.areaForm={id:"",name:"",roiId:"",points:[]},e.showVideoDialog=!1,e.tempOrgId="",e.loading=!1,e}return Object(u["a"])(t,e),Object(o["a"])(t,[{key:"orgIdChange",value:function(e){this.tempOrgId=e,e&&(this.loaded=!1,this.areaForm={id:"",name:"",roiId:"",points:[]},this.fetchBgAndArea(),this.fetchROIs())}},{key:"onOpenVideoDialog",value:function(){this.showVideoDialog=!0}},{key:"fetchBgAndArea",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,r,a,n,i,s,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,this.loading=!0,e.next=4,this.service.orgBgSrc(this.tempOrgId);case 4:if(t=e.sent,r=t.data,!(r&&r.length>0)){e.next=17;break}if(this.urlPrefix){e.next=12;break}return e.next=10,this.service.imgUrlPrefix();case 10:a=e.sent,this.urlPrefix=a.data;case 12:n=window.location.protocol,i=window.location.host,this.orgBg={id:r[0].id,src:"".concat(n,"//").concat(i).concat(this.urlPrefix).concat(r[0].orgImage)},e.next=18;break;case 17:this.orgBg={id:"",src:""};case 18:return s=[],e.next=21,this.service.businessAreas(this.tempOrgId);case 21:o=e.sent,o.data&&o.data.length>0&&(s=o.data.map((function(e){return{custom:{roiId:e.roiId,id:e.id},name:e.name,points:e.coordinate?JSON.parse(e.coordinate).points:[]}}))),this.areaData=s,this.loaded=!0,this.roiConfig.deviceCode="http:"+(new Date).getTime(),this.loading=!1,e.next=32;break;case 29:e.prev=29,e.t0=e["catch"](0),this.loading=!1;case 32:case"end":return e.stop()}}),e,this,[[0,29]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"fetchROIs",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,this.tempOrgId){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this.service.queryROI({orgId:this.tempOrgId});case 5:return t=e.sent,r=t.data,this.roiList=r,e.abrupt("return",Promise.resolve());case 11:return e.prev=11,e.t0=e["catch"](0),e.abrupt("return",Promise.resolve());case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"onBeforeUpload",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("当前地图上存在业务区域,更新地图将清除当前已设置区域,是否确定清空?");case 3:return e.abrupt("return",Promise.resolve());case 6:return e.prev=6,e.t0=e["catch"](0),e.abrupt("return",Promise.reject());case 9:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"onUploadImage",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var r,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,!(t.file.size/1024>pe)){e.next=5;break}return this.$message.warning("图片大小不能超过500kb!"),this.clearFiles(),e.abrupt("return");case 5:return r=new FormData,r.append("orgId",this.tempOrgId),r.append("orgImage",t.file),e.next=10,this.service.uploadBg(r);case 10:return a=e.sent,n=a.data,this.orgBg.id=n.id,this.orgBg.src=this.urlPrefix+n.orgImage,this.loaded=!1,e.next=17,this.fetchAreaData();case 17:this.onResetAreaForm(),this.onRefreshROIComponent(),this.$message.success("上传成功"),this.loaded=!0,this.clearFiles(),e.next=27;break;case 24:e.prev=24,e.t0=e["catch"](0),this.clearFiles();case 27:case"end":return e.stop()}}),e,this,[[0,24]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"fetchAreaData",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=[],e.next=4,this.service.businessAreas(this.tempOrgId);case 4:return r=e.sent,r.data&&r.data.length>0&&(t=r.data.map((function(e){return{custom:{roiId:e.roiId,id:e.id},name:e.name,points:e.coordinate?JSON.parse(e.coordinate).points:[]}}))),this.areaData=t,e.abrupt("return",Promise.resolve());case 10:return e.prev=10,e.t0=e["catch"](0),e.abrupt("return",Promise.resolve());case 13:case"end":return e.stop()}}),e,this,[[0,10]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"clearFiles",value:function(){this.$refs.addUpload&&this.$refs.addUpload.clearFiles(),this.$refs.updateUpload&&this.$refs.updateUpload.clearFiles()}},{key:"onResetAreaForm",value:function(){this.areaForm={id:"",name:"",roiId:"",points:[]}}},{key:"onROISelect",value:function(e){var t=this.roiList.findIndex((function(t){return t.roiId===e.custom.roiId}))>-1?e.custom.roiId:"";this.areaForm={id:e.custom.id,roiId:t,name:e.name,points:e.points}}},{key:"onROIRemove",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,!this.areaForm.id){e.next=9;break}return r={ids:[this.areaForm.id],orgId:this.tempOrgId},this.loaded=!1,e.next=6,this.service.deleteArea(r);case 6:this.onResetAreaForm(),this.$message.success("删除成功"),this.loaded=!0;case 9:e.next=13;break;case 11:e.prev=11,e.t0=e["catch"](0);case 13:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onROIConfirm",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,this.areaForm&&0!==this.areaForm.points.length){e.next=4;break}return this.$message.warning("请选择业务区域"),e.abrupt("return");case 4:if(this.areaForm.name){e.next=7;break}return this.$message.warning("请输入业务区域名称"),e.abrupt("return");case 7:if(this.areaForm.roiId){e.next=10;break}return this.$message.warning("请选择视觉围栏区域"),e.abrupt("return");case 10:if(r=this.areaROIRef.getImage(),a={name:this.areaForm.name,orgId:this.tempOrgId,coordinate:JSON.stringify({count:this.areaForm.points.length,points:this.areaForm.points,width:r.width,height:r.height}),orgImgId:this.orgBg.id,roiId:this.areaForm.roiId,id:this.areaForm.id},!this.areaForm.id){e.next=23;break}return this.loaded=!1,e.next=16,this.service.updateArea(a);case 16:return e.next=18,this.fetchAreaData();case 18:this.onRefreshROIComponent(),this.$message.success("保存成功"),this.loaded=!0,e.next=31;break;case 23:return this.loaded=!1,e.next=26,this.service.addArea(a);case 26:return e.next=28,this.fetchAreaData();case 28:this.onRefreshROIComponent(),this.$message.success("保存成功"),this.loaded=!0;case 31:e.next=35;break;case 33:e.prev=33,e.t0=e["catch"](0);case 35:case"end":return e.stop()}}),e,this,[[0,33]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onRefreshROIComponent",value:function(){this.roiConfig.deviceCode="http:"+(new Date).getTime()}}]),t}(p["e"]);d["a"]([Object(p["d"])()],he.prototype,"areaROIRef",void 0),d["a"]([Object(p["d"])()],he.prototype,"mapRef",void 0),d["a"]([Object(p["c"])({default:"",type:String})],he.prototype,"orgId",void 0),d["a"]([Object(p["f"])("orgId",{immediate:!0})],he.prototype,"orgIdChange",null),he=d["a"]([Object(p["a"])({name:"MapSetting",components:{CWVideoPlayer:de,EmptyMap:ne,RoiLayout:z["a"]}})],he);var fe=he,ve=fe,me=(r("8fe3"),Object(x["a"])(ve,Q,X,!1,null,null,null)),ge=me.exports,be=function(e){function t(){var e;return Object(s["a"])(this,t),e=Object(c["a"])(this,Object(l["a"])(t).apply(this,arguments)),e.treeProps={value:"id",label:"name",children:"children"},e.keyword="",e.orgId="",e.orgDetail={name:"",type:""},e}return Object(u["a"])(t,e),Object(o["a"])(t,[{key:"filterTextChange",value:function(e){this.orgTreeRef.filter(e)}},{key:"created",value:function(){this.orgId=this.userInfo.orgId,this.fetchOrgDetail()}},{key:"mounted",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.fetchOrganizationTree();case 2:this.$nextTick((function(){t.initTreeChecked()}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"initTreeChecked",value:function(){this.orgTreeRef&&this.orgId&&this.orgTreeRef.setCurrentKey(this.orgId)}},{key:"filterNode",value:function(e,t){return!e||-1!==t.name.indexOf(e)}},{key:"handleNodeClick",value:function(e){this.orgId=e[this.treeProps.value],this.fetchOrgDetail()}},{key:"fetchOrgDetail",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,this.orgId){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this.service.organizationDetail(this.orgId);case 5:t=e.sent,r=t.data,this.orgDetail=r,e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](0);case 12:case"end":return e.stop()}}),e,this,[[0,10]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"onRefreshROIList",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.mapSettingRef.fetchROIs();case 2:return e.next=4,this.mapSettingRef.fetchBgAndArea();case 4:this.mapSettingRef.areaForm.roiId&&(this.mapSettingRef.areaForm.roiId=this.mapSettingRef.roiList.findIndex((function(e){return e.roiId===t.mapSettingRef.areaForm.roiId}))>-1?this.mapSettingRef.areaForm.roiId:"");case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),t}(Object(p["b"])(h["a"]));d["a"]([Object(p["d"])()],be.prototype,"orgTreeRef",void 0),d["a"]([Object(p["d"])()],be.prototype,"mapSettingRef",void 0),d["a"]([Object(p["f"])("keyword")],be.prototype,"filterTextChange",null),be=d["a"]([Object(p["a"])({name:"SettingIndex",components:{MapSetting:ge,RelativeDevice:K}})],be);var je=be,ye=je,Oe=(r("b229"),Object(x["a"])(ye,a,n,!1,null,null,null));t["default"]=Oe.exports},"8cd4":function(e,t,r){"use strict";var a=r("21fb"),n=r.n(a);n.a},"8fe3":function(e,t,r){"use strict";var a=r("aa1d"),n=r.n(a);n.a},"970d":function(e,t,r){e.exports={elInputWidth:"200px",elInputNumberWidth:"200px",elTextareaWidth:"300px",elSelectWidth:"200px",appHeaderBg:"#014051",appIconBg:"#31b89a",appIconColor:"#fff",appIconSize:"30px",appNameColor:"#fff",appNameSize:"30px"}},aa1d:function(e,t,r){e.exports={elInputWidth:"200px",elInputNumberWidth:"200px",elTextareaWidth:"300px",elSelectWidth:"200px",appHeaderBg:"#014051",appIconBg:"#31b89a",appIconColor:"#fff",appIconSize:"30px",appNameColor:"#fff",appNameSize:"30px"}},b229:function(e,t,r){"use strict";var a=r("970d"),n=r.n(a);n.a}}]); |