index.bd3e0adf.js 448 KB

12
  1. (function(e){function t(t){for(var i,o,s=t[0],l=t[1],c=t[2],d=0,p=[];d<s.length;d++)o=s[d],Object.prototype.hasOwnProperty.call(n,o)&&n[o]&&p.push(n[o][0]),n[o]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);u&&u(t);while(p.length)p.shift()();return r.push.apply(r,c||[]),a()}function a(){for(var e,t=0;t<r.length;t++){for(var a=r[t],i=!0,s=1;s<a.length;s++){var l=a[s];0!==n[l]&&(i=!1)}i&&(r.splice(t--,1),e=o(o.s=a[0]))}return e}var i={},n={index:0},r=[];function o(t){if(i[t])return i[t].exports;var a=i[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=e,o.c=i,o.d=function(e,t,a){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(a,i,function(t){return e[t]}.bind(null,i));return a},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/padm/";var s=window["webpackJsonp"]=window["webpackJsonp"]||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var c=0;c<s.length;c++)t(s[c]);var u=l;r.push([0,"chunk-vendors"]),a()})({0:function(e,t,a){e.exports=a("56d7")},"0169":function(e,t,a){},"02f9":function(e,t,a){},"074f":function(e,t,a){"use strict";a("71eb")},"09f9":function(e,t,a){"use strict";a("2561")},"0b12":function(e,t,a){},"0b17":function(e,t,a){"use strict";a("af8e")},"0b3f":function(e,t,a){"use strict";a("02f9")},"0e43":function(e,t,a){},"0eb5":function(e,t,a){},"0f2a":function(e,t,a){"use strict";a("8ab0")},"0f47":function(e,t,a){"use strict";a("c46e")},"0fc1":function(e,t,a){},"0fe0":function(e,t,a){"use strict";a("5a01")},"162e":function(e,t,a){},1774:function(e,t,a){"use strict";a("162e")},"17fb":function(e,t,a){"use strict";a("8916")},1803:function(e,t,a){"use strict";a("82ac")},1848:function(e,t,a){"use strict";a("6f15")},"1abf":function(e,t,a){},"1bfb":function(e,t,a){},"1c41":function(e,t,a){"use strict";a("7c0a")},"1c8b":function(e,t,a){"use strict";a("0fc1")},"1dd3":function(e,t,a){},"1e1d":function(e,t,a){},"209e":function(e,t,a){"use strict";var i=a("c973").default,n=a("970b").default,r=a("5bc3").default,o=a("3c96").default,s=a("8962").default,l=a("36c6").default,c=a("ed6d").default,u=a("2d0d").default,d=a("9523").default;a("96cf"),Object.defineProperty(t,"__esModule",{value:!0}),t.httpUtils=void 0;var p=a("c300"),h=a("cdd7"),f=function(e){c(a,e);var t=u(a);function a(e){var i;return n(this,a),i=t.call(this),d(o(i),"_baseUrl",""),i.baseUrl=e,i}return r(a,[{key:"baseUrl",get:function(){return this._baseUrl},set:function(e){this._baseUrl=e}},{key:"send",value:function(){var e=i(regeneratorRuntime.mark((function e(t,i,n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=h.toolUtils.getBaseHttpUrl(this.baseUrl,t),e.next=3,s(l(a.prototype),n,this).call(this,r,i);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));function t(t,a,i){return e.apply(this,arguments)}return t}()},{key:"getRequest",value:function(){var e=i(regeneratorRuntime.mark((function e(t,a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.send(t,a,"getRequest");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}()},{key:"postRequest",value:function(){var e=i(regeneratorRuntime.mark((function e(t,a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.send(t,a,"postRequest");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}()},{key:"customRequest",value:function(){var e=i(regeneratorRuntime.mark((function e(t,i,n,r){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s(l(a.prototype),"customRequest",this).call(this,t,i,n,r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t,a,i,n){return e.apply(this,arguments)}return t}()}]),a}(p.axiosUtils);t.httpUtils=f},"20e8":function(e,t,a){"use strict";var i=a("5bc3").default,n=a("970b").default,r=a("9523").default;Object.defineProperty(t,"__esModule",{value:!0});var o=i((function e(){n(this,e)}));r(o,"baseUril",window.__systemConf.baseServiceUrl),r(o,"datacenter","/datacenter"),t.default=o},"20f6":function(e,t,a){"use strict";a("d521")},2476:function(e,t,a){"use strict";a("0169")},2561:function(e,t,a){},"25af":function(e,t,a){},"25e4":function(e,t,a){},"264c":function(e,t,a){"use strict";a("f165")},"26dd":function(e,t,a){"use strict";var i=a("c973").default,n=a("970b").default,r=a("5bc3").default,o=a("9523").default;a("99af"),a("96cf"),Object.defineProperty(t,"__esModule",{value:!0});var s=a("9ab4"),l=a("ed29"),c=a("4a6c"),u=(0,s.__importDefault)(a("20e8")),d=(0,s.__importDefault)(a("9462")),p=(0,s.__importDefault)(a("88ff")),h=function(){function e(){n(this,e)}return r(e,null,[{key:"addSource",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/mep-system-calc/source/add",a);case 2:return n=t.sent,t.abrupt("return",i?i(n):n);case 4:case"end":return t.stop()}}),t)})));function a(e,a){return t.apply(this,arguments)}return a}()},{key:"sourceQuery",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/mep-system-calc/source/query?calcName=".concat(a.calcName),a);case 2:return n=t.sent,t.abrupt("return",i?i(n):n);case 4:case"end":return t.stop()}}),t)})));function a(e,a){return t.apply(this,arguments)}return a}()},{key:"blockQuery",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/graphic/connected-block-query",a);case 2:return n=t.sent,t.abrupt("return",i?i(n):n);case 4:case"end":return t.stop()}}),t)})));function a(e,a){return t.apply(this,arguments)}return a}()},{key:"blockSource",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/graphic/replace-connected-block-source",a);case 2:return n=t.sent,t.abrupt("return",i?i(n):n);case 4:case"end":return t.stop()}}),t)})));function a(e,a){return t.apply(this,arguments)}return a}()},{key:"businessSpaceAll",value:function(){var e=i(regeneratorRuntime.mark((function e(t){var a,i,n,r,o,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.relation_type,i=t.zone_type,n=t.proId,d.default.get("user_name"),p.default.get("projectId"),r=i?"?objectTypes="+i:"",o=window.__systemConf.baseServiceUrl+"".concat(u.default.datacenter,"/relation-calc/").concat(a).concat(r),s=new c.customHttpUtils,e.next=8,s.customRequest(o,{},n,"post");case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"calcSpecial",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/calc_special/sys-block?relationType=".concat(a.relationType),a);case 2:return n=t.sent,t.abrupt("return",i?i(n):n);case 4:case"end":return t.stop()}}),t)})));function a(e,a){return t.apply(this,arguments)}return a}()},{key:"graphic",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("".concat(u.default.datacenter,"/graphic/overview"),a);case 2:return n=t.sent,t.abrupt("return",i?i(n):n);case 4:case"end":return t.stop()}}),t)})));function a(e,a){return t.apply(this,arguments)}return a}()},{key:"graphicNumber",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("".concat(u.default.datacenter,"/graphic/query-count"),a);case 2:return n=t.sent,t.abrupt("return",i?i(n):n);case 4:case"end":return t.stop()}}),t)})));function a(e,a){return t.apply(this,arguments)}return a}()},{key:"sysDirection",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=a.BuildingId?"BuildingId=".concat(a.BuildingId,"&"):"",t.next=3,e.http.postRequest("".concat(u.default.datacenter,"/calc_special/sys-direction?BlockId=").concat(a.BlockId,"&").concat(n,"Domain=").concat(a.Domain,"&SystemName=").concat(a.SystemName,"&isSource=").concat(a.isSource),a);case 3:return r=t.sent,t.abrupt("return",i?i(r):r);case 5:case"end":return t.stop()}}),t)})));function a(e,a){return t.apply(this,arguments)}return a}()}]),e}();o(h,"http",new l.baseHttpUtils),t.default=h},"26e3":function(e,t,a){"use strict";var i=a("c973").default,n=a("970b").default,r=a("5bc3").default,o=a("9523").default;a("d81d"),a("d3b7"),a("3ca3"),a("ddb0"),a("159b"),a("96cf"),Object.defineProperty(t,"__esModule",{value:!0});var s=a("9ab4"),l=(0,s.__importDefault)(a("a21b")),c=a("ed29"),u=a("f842"),d=function(){function e(){n(this,e)}return r(e,null,[{key:"buildingQuery",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(this.pre+"/building/query",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"buildDataFormat",value:function(){var e=i(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.buildingQuery(t);case 3:if(a=e.sent,a.result==u.logicConfig.resultObj.success){e.next=6;break}return e.abrupt("return");case 6:return e.abrupt("return",null===a||void 0===a?void 0:a.content.map((function(e){var t,a=e.id,i=e.localName,n=null===e||void 0===e||null===(t=e.floor)||void 0===t?void 0:t.map((function(e){return{id:e.buildingId,name:e.localName,open:!1,disabled:!1,checked:"uncheck"}}));return{id:a,name:i,open:!1,disabled:!1,checked:"uncheck",children:n}})));case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getData",value:function(){var e=i(regeneratorRuntime.mark((function e(t){var a,i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i={pageNumber:1,pageSize:1e3,orders:"localName asc",projection:["id","localName"]},n={orders:"floorSequenceID desc",pageNumber:1,pageSize:1e3,projection:["buildingId","id","localName","floorSequenceID"]},Promise.all([this.buildingQuery(i),l.default.floorQuery(n)]).then((function(e){var i=e[0].content,n=e[1].content;a=i.map((function(e){return{value:e.id,label:e.localName}})),a.unshift({value:"",label:"未明确建筑"}),a.forEach((function(e){n.forEach((function(t){e.value==t.buildingId&&t.id&&t.localName&&(e.children?e.children.push({value:t.id,label:t.localName}):(e.children=[],e.children.push({value:"",label:"未明确楼层"},{value:t.id,label:t.localName})))}))})),a.forEach((function(e){e.children&&e.children.length?e.children.forEach((function(a){""!=a.value?t.push({Code:e.value+"-"+a.value,Name:e.label+"-"+a.label}):t.push({Code:e.value,Name:e.label+"-"+a.label})})):t.push({Code:e.value,Name:e.label})}))}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}();o(d,"http",new c.baseHttpUtils),o(d,"pre","/datacenter/object"),t.default=d},"2a0d":function(e,t,a){},"2c19":function(e,t,a){"use strict";a("cd4c")},"2d7a":function(e,t,a){},3232:function(e,t,a){},"33f4":function(e,t,a){"use strict";a("ba01e")},"36b5":function(e,t,a){},"3a21":function(e,t,a){"use strict";a("8aee")},"3a69":function(e,t,a){},"3c4d":function(e,t,a){"use strict";a("f510")},"3ca2":function(e,t,a){},"3cbd":function(e,t,a){},"3def":function(e,t,a){"use strict";a("3cbd")},"3e23":function(e,t,a){"use strict";a("1abf")},"3eb7":function(e,t,a){"use strict";a("7511")},"402e":function(e,t,a){},"42a4":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={namespaced:!0,state:{uploadVisible:!0},getters:{},mutations:{updata:function(e,t){for(var a in console.log({state:e,payload:t}),t)e[a]=t[a]}},actions:{}}},4360:function(e,t,a){"use strict";a.r(t);a("b0c0");var i=a("a026"),n=a("2f62"),r=a("8e08"),o=a.n(r),s=a("42a4"),l=a.n(s);i["default"].use(n["a"]),t["default"]=new n["a"].Store({state:{menus:[],user:{},fromPath:"",breadcrumbs:[],projects:[],selectProject:{},ssoToken:""},getters:{},mutations:{updateMenus:function(e,t){e.menus=t},updateUser:function(e,t){e.user=t},updateFromPath:function(e,t){e.fromPath=t},updateBreadcrumbs:function(e,t){var a=[];if(i(e.menus),a.length>0)return a.reverse(),void(e.breadcrumbs=a);function i(e){for(var n=0;n<e.length;n++){var r=e[n];if(r.url==t.to)return r;if(r.child&&r.child.length>0){var o=i(r.child);if(o)return a.push({label:o.name,to:o.url}),r}}return null}a=e.breadcrumbs,a.push(t),e.breadcrumbs=a},updateProjects:function(e,t){e.projects=t},updateSelectProject:function(e,t){e.selectProject=t},loginOut:function(e){e.menus=[],e.user={},e.fromPath="",e.breadcrumbs=[],e.projects=[],e.selectProject={}}},actions:{},modules:{layout:o.a,uploadFile:l.a}})},"45ff":function(e,t,a){"use strict";var i=a("c973").default,n=a("970b").default,r=a("5bc3").default,o=a("9523").default;a("96cf"),Object.defineProperty(t,"__esModule",{value:!0});var s=a("ed29"),l=a("f52f"),c=function(){function e(){n(this,e)}return r(e,null,[{key:"getEquipTableCon",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.equipquery_pre+"/equip-components",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryEquip",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.object_pre+"/equip/query",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"countEquip",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.object_pre+"/equip/count",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}();o(c,"http",new s.baseHttpUtils),t.default=c},"460c":function(e,t,a){"use strict";var i=a("c973").default,n=a("970b").default,r=a("5bc3").default,o=a("9523").default;a("99af"),a("96cf"),Object.defineProperty(t,"__esModule",{value:!0});var s=a("ed29"),l=a("f52f"),c=function(){function e(){n(this,e)}return r(e,null,[{key:"getFileNameById",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.model_pre+"/model-folder/get-name",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"countModel",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.model_pre+"/model-file/count",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"bindFloorModel",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.model_pre+"/model-file/bind",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryFloorList",value:function(){var e=i(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="FolderId='".concat(t.FolderId,"'"),t.FloorName&&(a="FolderId='".concat(t.FolderId,"';FloorName='").concat(t.FloorName,"';ProjectId='").concat(t.ProjectId,"'")),t.Status&&(a+=";Status in [".concat(t.Status,"]")),i={Filters:a,PageNumber:1,PageSize:500},e.next=6,this.http.postRequest(l.model_pre+"/model-file/query-list",i);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryModel",value:function(){var e=i(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=null,a=t?{Filters:"Name='".concat(t,"'"),Orders:"Name asc"}:{Orders:"Name asc"},e.next=4,this.http.postRequest(l.model_pre+"/model-folder/query",a);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}();o(c,"http",new s.baseHttpUtils),t.default=c},4678:function(e,t,a){var i={"./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-bd":"9686","./bn-bd.js":"9686","./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-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-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./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":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./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":"9609e","./ky.js":"9609e","./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","./oc-lnc":"167b","./oc-lnc.js":"167b","./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","./tk":"5aff","./tk.js":"5aff","./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-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function n(e){var t=r(e);return a(t)}function r(e){if(!a.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}n.keys=function(){return Object.keys(i)},n.resolve=r,e.exports=n,n.id="4678"},"46bf":function(e,t,a){},"492b":function(e,t,a){},"4a6c":function(e,t,a){"use strict";var i=a("c973").default,n=a("970b").default,r=a("5bc3").default,o=a("8962").default,s=a("36c6").default,l=a("ed6d").default,c=a("2d0d").default;a("96cf"),Object.defineProperty(t,"__esModule",{value:!0}),t.customHttpUtils=void 0;var u=a("209e"),d=function(e){l(a,e);var t=c(a);function a(){return n(this,a),t.call(this,"")}return r(a,[{key:"customRequest",value:function(){var e=i(regeneratorRuntime.mark((function e(t,i,n,r){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o(s(a.prototype),"customRequest",this).call(this,t,i,n,r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t,a,i,n){return e.apply(this,arguments)}return t}()}]),a}(u.httpUtils);t.customHttpUtils=d},"4d23":function(e,t,a){"use strict";a("9b24")},"4f56":function(e,t,a){"use strict";a("fd8a")},5147:function(e,t,a){},"51a4":function(e,t,a){"use strict";a("eb67")},"56d7":function(e,t,a){"use strict";a.r(t);a("e260"),a("e6cf"),a("cca6"),a("a79d");var i=a("a026"),n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"app"}},[a("router-view")],1)},r=[],o={name:"App",components:{}},s=o,l=a("2877"),c=Object(l["a"])(s,n,r,!1,null,null,null),u=c.exports,d=(a("99af"),a("b0c0"),a("8c4f")),p=a("f842"),h=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"page-main"}},[a("div",{staticClass:"leftRegion"},[a("pageLeft")],1),a("div",{staticClass:"rightRegion"},[a("pageRight")],1)])},f=[],m=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"pageLeft"}},[a("div",{staticClass:"topContainer"},[a("div",{staticClass:"logoDiv"},[a("img",{staticClass:"logoImg",attrs:{src:e.logoUrl}})]),e._m(0)]),a("div",{staticClass:"menuDiv"},[a("el-menu",{attrs:{"text-color":"#fff","active-text-color":"#ffd04b","background-color":"#364150",router:""}},e._l(e.menus,(function(t){return a("el-menu-item-group",{key:t.id},[a("template",{slot:"title"},[a("span",{domProps:{textContent:e._s(t.name)}})]),e._l(t.child,(function(e){return a("leftMenu",{key:e.id,attrs:{menu:e,index:e.id}})}))],2)})),1)],1)])},g=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"middDiv"},[a("i",{staticClass:"el-icon-fa-bars fa fa-bars"})])}],v=a("5530"),y=a("2f62"),b=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.menu.child&&e.menu.child.length>0?a("el-submenu",{attrs:{index:e.menu.orders.toString()}},[a("template",{slot:"title"},[e.menu.icon?a("i",{staticClass:"menuIcon",class:"iconfont "+e.menu.icon}):e._e(),a("span",{domProps:{textContent:e._s(e.menu.name)}})]),e._l(e.menu.child,(function(e){return a("leftMenu",{key:e.id,attrs:{menu:e}})}))],2):e._e(),e.menu.child&&0!=e.menu.child.length?e._e():a("el-menu-item",{attrs:{index:e.menu.url}},[e.menu.icon?a("i",{staticClass:"menuIcon",class:"iconfont "+e.menu.icon}):e._e(),a("span",{attrs:{slot:"title"},domProps:{textContent:e._s(e.menu.name)},slot:"title"})])],1)},w=[],C={name:"leftMenu",props:["menu"],data:function(){return{}},computed:{},methods:{},created:function(){},mounted:function(){},components:{}},I=C,x=(a("4d23"),Object(l["a"])(I,b,w,!1,null,"16d73ce0",null)),S=x.exports,k={props:[],data:function(){return{logoUrl:a("9d64")}},computed:Object(v["a"])({},Object(y["c"])(["menus"])),methods:{},created:function(){},mounted:function(){},components:{leftMenu:S}},_=k,D=(a("dbf4"),Object(l["a"])(_,m,g,!1,null,"47b1fb96",null)),j=D.exports,T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"pageRight"}},[a("div",{staticClass:"headerContainer"},[a("div",{staticClass:"projectContainer"},[a("el-select",{attrs:{"value-key":"id",filterable:"",placeholder:"请选择"},model:{value:e.selectProject,callback:function(t){e.selectProject=t},expression:"selectProject"}},e._l(e.projects,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e}})})),1)],1),a("div",{staticClass:"userContainer"},[a("el-popover",{attrs:{trigger:"hover","popper-class":"el-user-popover"}},[a("div",{staticClass:"userPropExit",on:{click:e.loginOut}},[a("i",{staticClass:"el-icon-switch-button"}),a("span",{staticClass:"user-pro-oper"},[e._v("退出登录")])]),a("div",{staticClass:"userPropLine"}),a("div",{staticClass:"userPropUpPass"},[a("i",{staticClass:"el-icon-unlock"}),a("span",{staticClass:"user-pro-oper"},[e._v("修改密码")])]),a("div",{staticClass:"userInfo",attrs:{slot:"reference"},slot:"reference"},[a("span",{domProps:{textContent:e._s(e.user.name)}}),a("i",{staticClass:"el-icon-fa-user fa fa-user"})])])],1)]),a("div",{staticClass:"breadcContainer"},[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},e._l(e.breadcrumbs,(function(t){return a("el-breadcrumb-item",{key:t.to,attrs:{to:t.to},domProps:{textContent:e._s(t.label)}})})),1)],1),a("div",{staticClass:"contentContainer"},[a("router-view",{staticClass:"page-content"})],1),a("uploadFile")],1)},A=[],N=(a("ac1f"),a("5319"),a("d69d")),P=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.uploadVisible?a("div",{staticClass:"uploadWarp"},[a("el-collapse",{staticStyle:{position:"absolute",width:"100%"},on:{change:e.handleChange},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[a("el-collapse-item",{attrs:{title:"同步中..",name:"1"}},[a("div",[e._v("已成功同步100个文件,共200个文件")]),a("el-progress",{attrs:{"text-inside":!0,"show-text":!1,"stroke-width":2,percentage:70}})],1)],1)],1):e._e()])},O=[],R={components:{},props:[],data:function(){return{activeNames:!0}},watch:{uploadVisible:function(e,t){console.log({nv:e,ov:t})}},computed:Object(v["a"])({},Object(y["c"])("uploadFile",["uploadVisible"])),mounted:function(){},methods:{}},F=R,M=(a("a142"),Object(l["a"])(F,P,O,!1,null,"1706b9a0",null)),E=M.exports,L={props:[],data:function(){return{}},computed:Object(v["a"])(Object(v["a"])({},Object(y["c"])(["breadcrumbs","projects","user"])),{},{selectProject:{set:function(e){this.$store.commit("updateSelectProject",e)},get:function(){return this.$store.state.selectProject}}}),methods:{loginOut:function(){this.$store.commit("loginOut"),N["sessionStore"].loginOut(),this.$router.replace({path:p["logicConfig"].routerNameConfig.loginRouteName})}},created:function(){},watch:{},mounted:function(){},components:{uploadFile:E}},$=L,q=(a("dd4c"),Object(l["a"])($,T,A,!1,null,"74f4f942",null)),B=q.exports,z={name:"Main",components:{pageLeft:j,pageRight:B},props:[],data:function(){return{}},computed:{},methods:{},watch:{}},V=z,U=(a("3a21"),Object(l["a"])(V,h,f,!1,null,"1a813186",null)),H=U.exports,G=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container",style:{background:"url("+e.backUrl+")"}},[a("div",{staticStyle:{flex:"1"}}),a("div",{staticStyle:{display:"flex","flex-direction":"column"}},[a("div",{staticStyle:{flex:"1"}}),a("div",{attrs:{id:"login-box"}},[a("h1",{staticClass:"title"},[e._v("ADM登录")]),a("div",{staticClass:"form"},[a("div",{staticClass:"item"},[a("i",{staticClass:"el-icon-user"}),a("input",{directives:[{name:"model",rawName:"v-model",value:e.userName,expression:"userName"}],attrs:{type:"text",placeholder:"请输入用户名"},domProps:{value:e.userName},on:{input:function(t){t.target.composing||(e.userName=t.target.value)}}})]),a("div",{staticClass:"item"},[a("i",{staticClass:"el-icon-lock"}),a("input",{directives:[{name:"model",rawName:"v-model",value:e.userPass,expression:"userPass"},{name:"loading",rawName:"v-loading.fullscreen.lock",value:e.fullscreenLoading,expression:"fullscreenLoading",modifiers:{fullscreen:!0,lock:!0}}],attrs:{type:"password",placeholder:"请输入密码"},domProps:{value:e.userPass},on:{keyup:function(t){return t.stopPropagation(),e.passTxtKeyUp(t)},input:function(t){t.target.composing||(e.userPass=t.target.value)}}})])]),a("button",{on:{click:e.startLogin}},[e._v("Login")])]),a("div",{staticStyle:{flex:"1"}})]),a("div",{staticStyle:{flex:"1"}})])},K=[],W=a("1da1"),X=(a("96cf"),a("4360")),Y=a("c2f8"),J=a("5c96"),Q=a.n(J),Z={name:"login",props:[],data:function(){return{backUrl:a("963d"),userName:"",userPass:"",fullscreenLoading:!1}},computed:{},methods:{startLogin:function(){var e=Object(W["a"])(regeneratorRuntime.mark((function e(){var t,a,i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.userName){e.next=2;break}return e.abrupt("return",J["Message"].warning("请填写用户名"));case 2:if(this.userPass){e.next=4;break}return e.abrupt("return",J["Message"].warning("请填写密码"));case 4:return this.fullscreenLoading=!0,e.prev=5,t=new Y["userController"],e.next=9,t.login(this.userName,this.userPass);case 9:if(a=e.sent,a.result==p["logicConfig"].resultObj.success){e.next=12;break}return e.abrupt("return",(this.fullscreenLoading=!1,J["Message"].error("登录失败,原因:"+a.reason)));case 12:if(i=a.content[0]||{},n=i.userId,n){e.next=16;break}return e.abrupt("return",(this.fullscreenLoading=!1,J["Message"].error("登录失败,原因:无效的用户ID")));case 16:N["sessionStore"].userId=i.userId,this.$router.replace({path:X["default"].state.fromPath}),e.next=25;break;case 20:e.prev=20,e.t0=e["catch"](5),this.fullscreenLoading=!1,console.error("登录失败:",e.t0),J["Message"].error("登录失败");case 25:case"end":return e.stop()}}),e,this,[[5,20]])})));function t(){return e.apply(this,arguments)}return t}(),passTxtKeyUp:function(e){13==e.keyCode&&this.startLogin()}},created:function(){},mounted:function(){},components:{}},ee=Z,te=(a("f17c"),Object(l["a"])(ee,G,K,!1,null,"568bc516",null)),ae=te.exports,ie=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:e.fullscreenLoading,expression:"fullscreenLoading",modifiers:{fullscreen:!0,lock:!0}}],staticClass:"container"},[a("div",{staticClass:"header"},[a("div",{staticClass:"searchInputDiv"},[a("el-input",{attrs:{placeholder:"搜索系统实例","prefix-icon":"el-icon-search"},on:{input:e.searchInputChange},model:{value:e.searchVal,callback:function(t){e.searchVal=t},expression:"searchVal"}})],1),a("div",{staticClass:"addDiv"},[a("el-button",{attrs:{type:"primary"},on:{click:e.createSystemGraph}},[e._v("新建系统图")])],1)]),a("div",{staticClass:"content"},[a("div",{staticClass:"tableContainer"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.graphArr,border:""}},[a("el-table-column",{attrs:{prop:"name",label:"系统图名称"}}),a("el-table-column",{attrs:{prop:"sysType",label:"系统类"}}),a("el-table-column",{attrs:{prop:"sysInstance",label:"系统实例名称"}}),a("el-table-column",{attrs:{prop:"sysTemplate",label:"系统图模版"}}),a("el-table-column",{attrs:{prop:"stateName",label:"状态"}}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间"}}),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.viewGraph(t.row)}}},[e._v("预览")]),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.editGraph(t.row)}}},[e._v("编辑")])]}}])})],1)],1),a("div",{staticClass:"pageContainer"},[e.dataCount>0?a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,30,50,100],"page-size":e.pageSize,layout:"total, prev, pager, next, sizes",total:e.dataCount},on:{"size-change":e.handlePageSizeChange,"current-change":e.handleCurrentPageChange}}):e._e()],1)])])},ne=[],re=(a("fb6a"),a("9224")),oe=a("c3af"),se=(a("5d77"),{props:[],data:function(){return{searchVal:"",allGraphArr:[],graphArr:[],currentPage:1,pageSize:20,dataCount:0,state:0,selDiagram:{},fullscreenLoading:!0}},computed:Object(v["a"])({},Object(y["c"])(["selectProject"])),methods:{handlePageSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getCurrPageData()},handleCurrentPageChange:function(e){this.currentPage=e,this.getCurrPageData()},createSystemGraph:function(){this.state=2,this.selDiagram={},this.openGraphPage()},viewGraph:function(e){this.state=0,this.selDiagram=e,this.openGraphPage()},editGraph:function(e){this.state=1,this.selDiagram=e,this.openGraphPage()},getCurrPageData:function(){var e=(this.currentPage-1)*this.pageSize,t=e+this.pageSize;this.graphArr=this.allGraphArr.slice(e,t)},searchInputChange:function(){this.currentPage=1,this.getData()},getData:function(){var e=Object(W["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,oe["sysGraphController"].getDiagrams(this.searchVal);case 3:this.allGraphArr=e.sent,this.dataCount=this.allGraphArr.length,this.getCurrPageData(),this.fullscreenLoading=!1,e.next=16;break;case 9:e.prev=9,e.t0=e["catch"](0),console.error(e.t0),this.allGraphArr=[],this.graphArr=[],this.dataCount=0,this.fullscreenLoading=!1;case 16:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),openGraphPage:function(){oe["sysGraphController"].openGraphPage(this.state,this.selDiagram.id,this.selectProject.groupCode,this.selectProject.id,this.selectProject.name,re.name,!0)}},created:function(){this.getData()},mounted:function(){},components:{}}),le=se,ce=(a("17fb"),Object(l["a"])(le,ie,ne,!1,null,"76ef3930",null)),ue=ce.exports,de=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:e.fullscreenLoading,expression:"fullscreenLoading",modifiers:{fullscreen:!0,lock:!0}}],attrs:{id:"divGraphEdit"}},[i("div",{staticClass:"firstRow"},[i("div",{staticClass:"firstOperDivContainer"},[i("img",{staticClass:"imgBar",attrs:{src:a("fb3b")}}),i("span",{staticClass:"headerTitle"},[e._v("系统图编辑器")]),0===e.operState?i("div",{staticClass:"operBtnDiv"},[i("span",{on:{click:e.intoEditState}},[e._v("编辑系统图")]),"Draft"==(e.graphInfo.extraProps||{}).state?i("span",{on:{click:e.publishGraph}},[e._v("上架系统图")]):e._e(),"Publish"==(e.graphInfo.extraProps||{}).state?i("span",{on:{click:e.draftGraph}},[e._v("下架系统图")]):e._e()]):e._e(),1===e.operState?i("div",{staticClass:"operBtnDiv"},[i("span",{on:{click:e.saveGraph}},[e._v("保存图纸")]),i("span",{on:{click:e.cancelClick}},[e._v("放弃编辑")])]):e._e(),i("span",{staticClass:"delBtn",on:{click:e.delGraph}},[e._v("删除图纸")])]),i("div",{staticClass:"secondOperDivContainer"},[i("img",{staticClass:"imgBar",attrs:{src:a("d5e8")},on:{click:e.toggleLeft}}),i("span",{staticClass:"sanjiaoBar",class:{"el-icon-caret-bottom":e.isVisibleLeft,"el-icon-caret-top":!e.isVisibleLeft},on:{click:e.toggleLeft}}),i("hr",{staticClass:"splitLine"}),i("el-select",{attrs:{"value-key":"value"},on:{change:e.selScaleChange},model:{value:e.selectScale,callback:function(t){e.selectScale=t},expression:"selectScale"}},e._l(e.scaleArr,(function(e){return i("el-option",{key:e.value,attrs:{label:e.name,value:e}})})),1),i("span",{staticClass:"el-icon-zoom-in zoomin",on:{click:e.scaleZoomin}}),i("span",{staticClass:"el-icon-zoom-out zoomout",on:{click:e.scaleZoomout}}),1==e.operState?i("span",{staticClass:"resetBtn"},[e._v("重置为自动出图样式")]):e._e()],1)]),i("div",{staticClass:"secondRow"},[0!==e.operState&&1!==e.operState||!e.isVisibleLeft?e._e():i("div",{staticClass:"graphInfoContainer"},[i("div",{staticClass:"graphInfoFirst"},[i("span",{staticClass:"graphInfoName"},[e._v("系统图名称")]),0===e.operState?i("span",{staticClass:"graphInfoFirstEdit",on:{click:e.intoEditState}},[e._v("编辑")]):e._e()]),i("div",{staticClass:"graphInfoContent"},[i("span",{domProps:{textContent:e._s(e.graphInfo.name)}},[e._v("高压系统1#系统图")])]),e._m(0),i("div",{staticClass:"graphInfoContent"},[i("span",{domProps:{textContent:e._s(e.graphInfo.graphTypeName)}},[e._v("高压配电")])]),e._m(1),i("div",{staticClass:"graphInfoContent"},[i("span",{domProps:{textContent:e._s(e.graphInfo.systemInstanceName)}},[e._v("实例1")])]),e._m(2),i("div",{staticClass:"graphInfoContent"},[i("span",{domProps:{textContent:e._s(e.graphInfo.templateName)}},[e._v("模版1")])]),e._m(3),i("div",{staticClass:"graphInfoContent"},[i("span",{domProps:{textContent:e._s(e.project.name)}},[e._v("银泰中心")])]),e._m(4),i("div",{staticClass:"graphInfoContent"},[i("span",{domProps:{textContent:e._s(e.graphInfo.stateName)}},[e._v("草稿")])])]),i("div",{staticClass:"graphRegion"},[i("graph",{ref:"graphc",on:{click:e.graphClickCall}})],1),-1!=e.selGraphPartType?i("div",{staticClass:"rightDetail"},[1==e.selGraphPartType?i("div",[i("div",{staticClass:"title titleMargin"},[e._v("设备类")]),i("div",{staticClass:"titleText eqName",domProps:{textContent:e._s(e.selEquip.name)}},[e._v("进线柜")]),i("div",{staticClass:"detailSplitLine"}),i("div",{staticClass:"title titleMargin"},[i("span",[e._v("x")]),i("span",{staticClass:"coridTitleText titleText",domProps:{textContent:e._s((e.selEquip.absolutePosition||{}).x)}},[e._v("100")]),i("span",{staticClass:"coridTitle2"},[e._v("y")]),i("span",{staticClass:"coridTitleText titleText",domProps:{textContent:e._s((e.selEquip.absolutePosition||{}).y)}},[e._v("100")])]),e._m(5),i("div",{staticClass:"detailSplitLine"}),i("div",{staticClass:"title titleMargin"},[e._v("锚点")]),e._l(e.selEquip.anchorArr,(function(t){return i("div",{key:t.name,staticClass:"anchorContainer"},[i("span",{domProps:{textContent:e._s(t.name)}},[e._v("T3")]),i("span",[e._v("已连接")])])}))],2):e._e(),2==e.selGraphPartType?i("div",[i("div",{staticClass:"title titleMargin"},[e._v("连线")]),i("div",{staticClass:"detailSplitLine"}),e._m(6),e._m(7),i("div",{staticClass:"detailSplitLine"}),i("div",{staticClass:"title titleMargin"},[e._v("连接关系")]),i("div",{staticClass:"titleMargin"},[i("el-select",{attrs:{"value-key":"id"},on:{change:e.selStartPointChange},model:{value:e.selLineStartPoint,callback:function(t){e.selLineStartPoint=t},expression:"selLineStartPoint"}},[i("div",{staticClass:"selectPrefix",attrs:{slot:"prefix"},slot:"prefix"},[e._v("起点")]),e._l(e.lineStartPointArr,(function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e}})}))],2)],1),i("div",{staticClass:"titleMargin"},[i("el-select",{attrs:{"value-key":"id"},on:{change:e.selEndPointChange},model:{value:e.selLineEndPoint,callback:function(t){e.selLineEndPoint=t},expression:"selLineEndPoint"}},[i("div",{staticClass:"selectPrefix",attrs:{slot:"prefix"},slot:"prefix"},[e._v("终点")]),e._l(e.lineEndPointArr,(function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e}})}))],2)],1)]):e._e(),3==e.selGraphPartType?i("div",[i("div",{staticClass:"title titleMargin"},[e._v("文字")]),i("div",{staticClass:"titleText eqName"},[e._v("1#进线柜")]),i("div",{staticClass:"detailSplitLine"}),e._m(8),i("div",{staticClass:"detailSplitLine"}),i("div",{staticClass:"title titleMargin"},[e._v("字体样式")]),i("div",{staticClass:"titleMargin fontSizeContainer"},[i("img",{staticClass:"fontStyleSvg",attrs:{src:a("eea7")}}),i("el-select",{attrs:{"value-key":"id",placeholder:""},on:{change:e.selFontSizeChange},model:{value:e.selFontSize,callback:function(t){e.selFontSize=t},expression:"selFontSize"}},e._l(e.fontSizeArr,(function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e}})})),1)],1),i("div",{staticClass:"title titleMargin"},[e._v("字体颜色")]),i("div",{staticClass:"titleMargin fontColor"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.fontColor,expression:"fontColor"}],attrs:{type:"color"},domProps:{value:e.fontColor},on:{input:function(t){t.target.composing||(e.fontColor=t.target.value)}}}),i("div",{domProps:{textContent:e._s(e.fontColor)}}),i("div",[e._v("100%")])]),i("div",{staticClass:"title titleMargin"},[e._v("背景颜色")]),i("div",{staticClass:"titleMargin fontColor"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.backColor,expression:"backColor"}],attrs:{type:"color"},domProps:{value:e.backColor},on:{input:function(t){t.target.composing||(e.backColor=t.target.value)}}}),i("div",{domProps:{textContent:e._s(e.backColor)}}),i("div",[e._v("100%")])])]):e._e(),1==e.selGraphPartType?i("div",{staticClass:"delBtn"},[e._v("删除设备")]):e._e(),2==e.selGraphPartType?i("div",{staticClass:"delBtn"},[e._v("删除管线")]):e._e(),3==e.selGraphPartType?i("div",{staticClass:"delBtn"},[e._v("删除文字")]):e._e()]):e._e()]),2==e.operState?i("addGraph",{attrs:{isVisible:2==e.operState}}):e._e()],1)},pe=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"graphInfoName"},[a("span",[e._v("系统图类型")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"graphInfoName"},[a("span",[e._v("系统实例")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"graphInfoName"},[a("span",[e._v("系统图模版")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"graphInfoName"},[a("span",[e._v("所属项目")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"graphInfoName"},[a("span",[e._v("当前状态")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"title titleMargin"},[a("span",[e._v("比例")]),a("span",{staticClass:"scaleTitleText titleText"},[e._v("100%")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"title titleMargin"},[e._v("起点")]),a("div",{staticClass:"coridGroup title"},[a("span",[e._v("x")]),a("span",{staticClass:"coridTitleText titleText"},[e._v("100")]),a("span",{staticClass:"coridTitle2"},[e._v("y")]),a("span",{staticClass:"coridTitleText titleText"},[e._v("100")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"title titleMargin"},[e._v("拐点1")]),a("div",{staticClass:"coridGroup title"},[a("span",[e._v("x")]),a("span",{staticClass:"coridTitleText titleText"},[e._v("100")]),a("span",{staticClass:"coridTitle2"},[e._v("y")]),a("span",{staticClass:"coridTitleText titleText"},[e._v("100")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"title titleMargin"},[a("span",[e._v("x")]),a("span",{staticClass:"coridTitleText titleText"},[e._v("100")]),a("span",{staticClass:"coridTitle2"},[e._v("y")]),a("span",{staticClass:"coridTitleText titleText"},[e._v("100")])])}],he=(a("e9c4"),a("999e")),fe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"divCreGraphContainer"}},[a("el-dialog",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:e.fullscreenLoading,expression:"fullscreenLoading",modifiers:{fullscreen:!0,lock:!0}}],attrs:{title:"新建系统图",visible:e.isVisible,"show-close":!1}},[a("div",{staticClass:"createConContainer"},[a("div",[e._v("系统图名称*")]),a("div",{staticClass:"createCdCon"},[a("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createGraphName,callback:function(t){e.createGraphName=t},expression:"createGraphName"}})],1),a("div",{staticClass:"createCdTitle"},[e._v("项目*")]),a("div",{staticClass:"createCdCon"},[a("el-select",{attrs:{"value-key":"id",placeholder:"请选择项目"},on:{change:e.selProjectChange},model:{value:e.selProject,callback:function(t){e.selProject=t},expression:"selProject"}},e._l(e.projects,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e}})})),1)],1),a("div",{staticClass:"createCdTitle"},[e._v("系统实例*")]),a("div",{staticClass:"createCdCon"},[a("el-cascader",{ref:"instanceCascader",attrs:{placeholder:"请选择系统图实例",options:e.systemInsArr,props:{expandTrigger:"hover"}},on:{change:e.instanceChange}})],1),a("div",{staticClass:"createCdTitle"},[e._v("系统图模板*")]),a("div",{staticClass:"createCdCon"},[a("el-cascader",{ref:"sysTemplateCascader",attrs:{placeholder:"请选择系统图模板",options:e.systemTemplateArr,props:{expandTrigger:"hover"}},on:{change:e.templateChange}})],1),a("div",{staticClass:"createFoot"},[a("el-button",{on:{click:e.cancelCreate}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.newOkEvent}},[e._v("确定")])],1)])])],1)},me=[],ge={props:["isVisible"],data:function(){return{fullscreenLoading:!1,createGraphName:"",selProject:{},systemInsArr:[],selSystemIns:{},systemTemplateArr:[],selSystemTemplate:{},selSysType:{},selSysGraphType:{}}},computed:Object(v["a"])({},Object(y["c"])(["projects"])),methods:{cancelCreate:function(){window.close()},selProjectChange:function(){var e=Object(W["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.fullscreenLoading=!0,this.systemInsArr=[],e.prev=2,e.next=5,oe["sysGraphController"].getSysInstanceByProject(this.selProject.id,this.selProject.groupCode);case 5:this.systemInsArr=e.sent,e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](2),console.error(e.t0);case 11:this.fullscreenLoading=!1;case 12:case"end":return e.stop()}}),e,this,[[2,8]])})));function t(){return e.apply(this,arguments)}return t}(),instanceChange:function(){var e=Object(W["a"])(regeneratorRuntime.mark((function e(){var t,a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.fullscreenLoading=!0,e.prev=1,t=this.$refs.instanceCascader.getCheckedNodes()[0],a=t.parent,this.selSystemIns=t.data,this.selSysType=a.data,e.next=8,oe["sysGraphController"].getTemplateBySysTypeCode(this.selSysType.code);case 8:i=e.sent,this.systemTemplateArr=i,e.next=15;break;case 12:e.prev=12,e.t0=e["catch"](1),console.error(e.t0);case 15:this.fullscreenLoading=!1;case 16:case"end":return e.stop()}}),e,this,[[1,12]])})));function t(){return e.apply(this,arguments)}return t}(),templateChange:function(){var e=this.$refs.sysTemplateCascader.getCheckedNodes()[0],t=e.parent;this.selSystemTemplate=e.data,this.selSysGraphType=t.data},newOkEvent:function(){var e=Object(W["a"])(regeneratorRuntime.mark((function e(){var t,a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.fullscreenLoading=!0,e.prev=1,t={name:this.createGraphName,type:this.selSysGraphType.code,templateId:this.selSystemTemplate.value,system:this.selSysType.code,systemId:this.selSystemIns.value,projectId:this.selProject.id,groupCode:this.selProject.groupCode},e.next=5,oe["sysGraphController"].createSysGraph(t);case 5:a=e.sent,e.t0=a.result,e.next=e.t0===p["logicConfig"].resultObj.failure?9:e.t0===p["logicConfig"].resultObj.success?11:14;break;case 9:return J["Message"].error("操作失败,原因:"+a.reason),e.abrupt("break",14);case 11:return i=a.data,oe["sysGraphController"].openGraphPage(1,i.id,this.selProject.groupCode,this.selProject.id,this.selProject.name,re.name,!1),e.abrupt("break",14);case 14:e.next=20;break;case 16:e.prev=16,e.t1=e["catch"](1),J["Message"].error("新增失败,执行异常"),console.error(e.t1);case 20:this.fullscreenLoading=!1;case 21:case"end":return e.stop()}}),e,this,[[1,16]])})));function t(){return e.apply(this,arguments)}return t}()},created:function(){},mounted:function(){},components:{}},ve=ge,ye=(a("1774"),Object(l["a"])(ve,fe,me,!1,null,null,null)),be=ye.exports,we=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"graphParentContainer",attrs:{id:e.maxContainerId}})},Ce=[],Ie=(a("d3b7"),a("25f0"),a("159b"),a("b64b"),a("4de4"),a("7aaa")),xe={props:[],data:function(){return{maxContainerId:(new Date).getTime().toString()+"_"+Math.random().toString().substring(2),nodeArr:[],lineArr:[],labelArr:[],canvasProObj:{centerPointerPx:{x:0,y:0},originalScale:1,xJiaValue:0,yJiaValue:0,textureSource:{},pixiScale:1,positionPxX:0,positionPxY:0,deep:.1,mouseState:0,prevMousePosition:{}}}},computed:{},methods:{drawEntry:function(e){var t=this.parseDataToDraw(e);this.nodeArr=t.nodeArr,this.lineArr=t.lineArr,this.labelArr=t.labelArr,this.drawGraph()},resetDraw:function(){this.drawGraph()},drawGraph:function(){var e,t=this,a=document.getElementById(this.maxContainerId);if(t.pixiApp)while(t.pixiApp.stage.children.length>0)t.pixiApp.stage.removeChildAt(0);null==t.pixiApp?(e=new Ie["a"]({width:a.clientWidth,height:a.clientHeight,antialias:!0,transparent:!0,resolution:1}),e.renderer.autoResize=!0,a.appendChild(e.view),t.pixiApp=e):e=t.pixiApp,t.computeOriginZuobPosition(),t.nodeArr.forEach((function(a){var i=new Ie["b"];i.lineStyle({width:1,color:"0x0091ff",alpha:1,alignment:.5});var n=t.convertCoordToLeftOrigina({x:a.absolutePosition.x,y:a.absolutePosition.y}),r=a.legendObj.size.width*t.canvasProObj.originalScale,o=a.legendObj.size.height*t.canvasProObj.originalScale;i.drawRect(n.x,n.y,r,o),i.hitArea=i.getBounds(),i.name=a.id,i.interactive=!0,i.on("click",(function(e){t.clickEventCall(e,1)})),e.stage.addChild(i)}))},parseDataToDraw:function(e){var t=[],a=[],i=[],n=e.template.frame.children;return r(n,e.template.frame.location),{nodeArr:t,lineArr:a,labelArr:i};function r(e,a){e.forEach((function(e){var i={x:e.location.x+a.x,y:e.location.y+a.y};switch(e.compType){case"container":r(e.children,i);break;case"equipmentNode":var n=[],o=Object.keys(e.anchorLocations||{});o.forEach((function(t){n.push({name:t,relativePosition:e.anchorLocations[t]})})),t.push({id:e.id,name:e.dataObject.localName,legendObj:{content:"图的地址或base64串",size:{width:e.size.x,height:e.size.y}},absolutePosition:i,anchorArr:n});break}}))}},computeOriginZuobPosition:function(){var e=this,t=document.getElementById(this.maxContainerId),a=t.clientWidth,i=t.clientHeight;e.canvasProObj.centerPointerPx={x:a/2,y:i/2};var n=null,r=null,o=null,s=null;u();var l=(a-r-n)/2;l=n+l<0?0-n:l;var c=(i-s-o)/2;function u(){e.nodeArr.forEach((function(e){var t=e.legendObj;n=null==n?e.absolutePosition.x:Math.min(n,e.absolutePosition.x),r=null==r?e.absolutePosition.x+t.size.width:Math.max(r,e.absolutePosition.x+t.size.width),o=null==o?e.absolutePosition.y:Math.min(o),s=null==s?e.absolutePosition.y+t.size.height:Math.max(s,e.absolutePosition.y+t.size.height)})),e.lineArr.forEach((function(e){e.path.forEach((function(e){n=null==n?e.x:Math.min(n,e.x),r=null==r?e.x:Math.max(r,e.x),o=null==o?e.y:Math.min(o,e.y),s=null==s?e.y:Math.max(s,e.y)}))}))}function d(){var t=a/(r+l),n=i/(s+c);e.canvasProObj.originalScale=Math.min(t,n),e.canvasProObj.originalScale=Math.min(1,e.canvasProObj.originalScale)}c=o+c<0?0-o:c,e.canvasProObj.xJiaValue=l,e.canvasProObj.yJiaValue=c,d()},convertCoordToLeftOrigina:function(e){return e.x=(e.x+this.canvasProObj.xJiaValue)*this.canvasProObj.originalScale,e.y=(e.y+this.canvasProObj.yJiaValue)*this.canvasProObj.originalScale,e},clickEventCall:function(e,t){var a=e.target||e.currentTarget,i=a.name,n=1==t?this.nodeArr:2==t?this.lineArr:3==t?this.labelArr:[],r=n.filter((function(e){return e.id==i}))[0];this.$emit("click",r,t)},graphScaleCompute:function(e){return this.canvasProObj.pixiScale+e},graphScale:function(e){e=Math.min(5,e),e=Math.max(.25,e),this.pixiApp.stage.scale.x=e,this.pixiApp.stage.scale.y=e,this.canvasProObj.pixiScale=e,this.canvasProObj.positionPxX=(1-e)*this.canvasProObj.centerPointerPx.x,this.canvasProObj.positionPxY=(1-e)*this.canvasProObj.centerPointerPx.y,this.pixiApp.stage.position.set(this.canvasProObj.positionPxX,this.canvasProObj.positionPxY)}},created:function(){},mounted:function(){},components:{}},Se=xe,ke=(a("c2cb"),Object(l["a"])(Se,we,Ce,!1,null,"0f1073bd",null)),_e=ke.exports,De={props:[],data:function(){return{fullscreenLoading:!1,scaleArr:[{name:"25%",value:25},{name:"50%",value:50},{name:"75%",value:75},{name:"100%",value:100},{name:"150%",value:150}],selectScale:{},operState:-1,diagramId:"",project:{},selGraphPartType:-1,lineStartPointArr:[{id:"111",name:"1#设备-B1"},{id:"222",name:"1#设备-B2"}],selLineStartPoint:{id:"111",name:"1#设备-B1"},lineEndPointArr:[{id:"111",name:"2#设备-B1"},{id:"222",name:"2#设备-B2"}],selLineEndPoint:{id:"111",name:"2#设备-B1"},fontSizeArr:[{id:12,name:"12px"},{id:14,name:"14px"},{id:16,name:"16px"}],selFontSize:{},fontColor:"#eb5757",backColor:"#ffffff",graphOriginInfo:{},graphInfo:{},selEquip:{},isVisibleLeft:!0}},computed:{},methods:{createSuccessed:function(e){this.operState=1,this.graphOriginInfo=JSON.parse(JSON.stringify(e)),this.graphInfo=e,this.$refs.graphc.drawEntry(e)},selStartPointChange:function(){console.log(this.selLineStartPoint)},selEndPointChange:function(){console.log(this.selLineEndPoint)},selFontSizeChange:function(){},getDiagramById:function(){var e=Object(W["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.fullscreenLoading=!0,e.next=3,oe["sysGraphController"].getDiagramById(this.diagramId,this.project.groupCode,this.project.id);case 3:if(t=e.sent,t.result==p["logicConfig"].resultObj.success){e.next=8;break}return this.fullscreenLoading=!1,J["Message"].error(t.reason),e.abrupt("return");case 8:this.graphOriginInfo=JSON.parse(JSON.stringify(t.data)),this.graphInfo=t.data,this.fullscreenLoading=!1;case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),intoEditState:function(){this.operState=1},graphClickCall:function(e,t){this.selGraphPartType=t,this.selEquip=e||{};var a=this;i["default"].nextTick((function(){a.$refs.graphc.resetDraw()}))},saveGraph:function(){var e=Object(W["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.fullscreenLoading=!0,e.next=3,oe["sysGraphController"].saveSysGraph(this.graphInfo);case 3:t=e.sent,this.fullscreenLoading=!1,e.t0=t.result,e.next=e.t0===p["logicConfig"].resultObj.failure?8:e.t0===p["logicConfig"].resultObj.success?10:13;break;case 8:return J["Message"].error("保存失败:"+(t.reason||"")),e.abrupt("return");case 10:return J["Message"].success("保存成功"),this.graphOriginInfo=JSON.parse(JSON.stringify(this.graphInfo)),e.abrupt("break",13);case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),cancelClick:function(){this.graphInfo=JSON.parse(JSON.stringify(this.graphOriginInfo)),this.$refs.graphc.drawEntry(this.graphInfo),this.operState=0},publishGraph:function(){var e=Object(W["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.fullscreenLoading=!0,e.next=3,oe["sysGraphController"].publishSysGraph(this.diagramId);case 3:t=e.sent,this.fullscreenLoading=!1,e.t0=t.result,e.next=e.t0===p["logicConfig"].resultObj.success?8:e.t0===p["logicConfig"].resultObj.failure?11:12;break;case 8:return this.graphOriginInfo.extraProps.state=he["graphStateEnum"].Publish,this.graphInfo.extraProps.state=he["graphStateEnum"].Publish,e.abrupt("return",J["Message"].success("上架成功"));case 11:return e.abrupt("return",J["Message"].success("上架失败,原因:"+(t.reason||"")));case 12:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),draftGraph:function(){var e=Object(W["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.fullscreenLoading=!0,e.next=3,oe["sysGraphController"].draftGraph(this.diagramId);case 3:t=e.sent,this.fullscreenLoading=!1,e.t0=t.result,e.next=e.t0===p["logicConfig"].resultObj.success?8:e.t0===p["logicConfig"].resultObj.failure?11:12;break;case 8:return this.graphOriginInfo.extraProps.state=he["graphStateEnum"].Draft,this.graphInfo.extraProps.state=he["graphStateEnum"].Draft,e.abrupt("return",J["Message"].success("下架成功"));case 11:return e.abrupt("return",J["Message"].success("下架失败,原因:"+(t.reason||"")));case 12:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),delGraph:function(){var e=this;this.$confirm("图纸删除后将不可进行查看和编辑, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(W["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.fullscreenLoading=!0,t.next=3,oe["sysGraphController"].delSysGraph(e.diagramId);case 3:a=t.sent,e.fullscreenLoading=!1,t.t0=a.result,t.next=t.t0===p["logicConfig"].resultObj.success?8:t.t0===p["logicConfig"].resultObj.failure?10:11;break;case 8:return e.$confirm("删除成功,页面将关闭","提示",{confirmButtonText:"确定",type:"success",showCancelButton:!1,closeOnClickModal:!1,showClose:!1,closeOnPressEscape:!1}).then(Object(W["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:window.close();case 1:case"end":return e.stop()}}),e)})))),t.abrupt("return");case 10:return t.abrupt("return",J["Message"].success("删除图纸失败,原因:"+(a.reason||"")));case 11:case"end":return t.stop()}}),t)})))).catch((function(){}))},toggleLeft:function(){var e=this;this.isVisibleLeft=!this.isVisibleLeft,i["default"].nextTick((function(){e.$refs.graphc.resetDraw()}))},selScaleChange:function(){this.$refs.graphc.graphScale(this.selectScale.value/100)},scaleZoomin:function(){var e=this.$refs.graphc.graphScaleCompute(.25);this.$refs.graphc.graphScale(e)},scaleZoomout:function(){var e=this.$refs.graphc.graphScaleCompute(-.25);this.$refs.graphc.graphScale(e)}},created:function(){this.operState=this.$route.query.ost?parseInt(this.$route.query.ost):-1,this.diagramId=this.$route.query.did?this.$route.query.did:-1,this.selectScale=this.scaleArr[3],this.project={id:this.$route.query.pri,groupCode:this.$route.query.gc,name:this.$route.query.prn}},mounted:function(){var e=this;Object(W["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(0!==e.operState&&1!==e.operState){t.next=4;break}return t.next=3,e.getDiagramById();case 3:e.$refs.graphc.drawEntry(e.graphInfo);case 4:case"end":return t.stop()}}),t)})))()},components:{addGraph:be,graph:_e}},je=De,Te=(a("2c19"),Object(l["a"])(je,de,pe,!1,null,null,null)),Ae=Te.exports,Ne=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"deviceList"}},[a("saga-title",{attrs:{mess:e.mess}}),a("div",{staticClass:"table-main"},[a("div",{staticClass:"search-header"},[a("floor-cascader",{on:{change:e.changeFloor}}),a("my-cascader",{ref:"cascader",on:{change:e.changeDevice}}),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"按照本地名称 | 本地编码 | 图纸编码 | 交付编码关键字搜索",placement:"top-start"}},[a("el-input",{directives:[{name:"show",rawName:"v-show",value:e.param.deviceId,expression:"param.deviceId"}],staticStyle:{width:"250px","margin-left":"10px"},attrs:{clearable:"",placeholder:"请输入关键字","prefix-icon":"el-icon-search"},on:{clear:e.handleChangeKeyWord},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleChangeKeyWord.apply(null,arguments)}},model:{value:e.param.keyWord,callback:function(t){e.$set(e.param,"keyWord",t)},expression:"param.keyWord"}})],1),a("el-dropdown",{staticClass:"deviceList-excel",on:{command:e.handleCommand}},[a("el-button",{attrs:{type:"primary"}},[e._v(" 数据导入"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"dynamic"}},[e._v("深化点表导入")]),a("el-dropdown-item",{attrs:{command:"static"}},[e._v("台账信息导入")])],1)],1)],1),a("hanson-table",{ref:"tableMain",attrs:{graphyId:e.graphyId},on:{close:e.close}})],1),a("linkassets-dialog",{attrs:{dialog:e.dialog}}),a("dynamic-dialog",{ref:"dynamicDialog",on:{upDataDevice:e.upDataDevice}}),a("static-dialog",{ref:"staticDialog",on:{upDataDevice:e.upDataDevice}})],1)},Pe=[],Oe=a("3835"),Re=(a("caad"),a("3ca3"),a("ddb0"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"listHeader"}},[a("div",{staticClass:"border-main"},[a("div",{staticClass:"card-view"},e._l(e.mess.name,(function(t,i){return a("span",{key:i,staticClass:"card"},[a("span",[e._v(e._s(1==i?"已对应":"全部")+e._s(t.key))]),a("span",{staticClass:"num"},[e._v(e._s(e._f("numFormat")(t.num)))])])})),0)])])}),Fe=[],Me=(a("1276"),a("466d"),a("a15b"),a("a9e3"),{props:{mess:{type:Object,default:function(){return{perjectName:"风雅苑",name:[{key:"测试",num:1548514},{key:"测试",num:154852145}]}}}},data:function(){return{}},methods:{},filters:{numFormat:function(e){if(e&&null!=e){e=String(e);var t=e.split(".")[0],a=e.split(".")[1];a=a?a.length>=2?"."+a.substr(0,2):"."+a+"0":"";var i=t.split("").reverse().join("").match(/(\d{1,3})/g);return(Number(e)<0?"-":"")+i.join(",").split("").reverse().join("")+a}return 0===e?"0":"--"}}}),Ee=Me,Le=(a("e7ad"),Object(l["a"])(Ee,Re,Fe,!1,null,"52623b38",null)),$e=Le.exports,qe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"buildFloor"}},[a("span",{staticClass:"buildFloor"},[e._v("建筑楼层")]),a("el-cascader",{ref:"floorCascader",style:e.isWidth?"":"width:160px;",attrs:{placeholder:"请选择建筑楼层",options:e.options,filterable:"",size:"small"},on:{change:e.changeCascader},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)},Be=[],ze=(a("d81d"),a("febd")),Ve=a("26e3"),Ue=a.n(Ve),He=a("a21b"),Ge=a.n(He),Ke={props:{isWidth:{type:Boolean,default:!0},type:{type:String,default:"yes"}},computed:Object(v["a"])({},Object(y["b"])("layout",["projectId","secret","userId"])),data:function(){return{options:[],param:{ProjId:"",secret:""},value:["all"]}},created:function(){this.param.ProjId=this.projectId,this.param.secret=this.secret,this.getData()},watch:{projectId:function(){this.value=["all"],this.options=[],this.param.ProjId=this.projectId,this.param.secret=this.secret,this.getData(),this.changeCascader(["all"])}},methods:{setValue:function(e){e&&e.length&&(this.value=e)},getData:function(){var e=this;return Object(W["a"])(regeneratorRuntime.mark((function t(){var a,i,n,r,o,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i={pageNumber:1,pageSize:1e3,orders:"localName asc",projection:["id","localName"]},n={orders:"floorSequenceID desc",pageNumber:1,pageSize:1e3},t.next=3,Promise.all([Ue.a.buildingQuery(i),Ge.a.floorQuery(n)]);case 3:r=t.sent,o=r[0].content,s=r[1].content,a=o.map((function(e){return{value:e.id,label:e.localName}})),a.unshift({value:"all",label:"全部"},{value:"noKnow",label:"未明确建筑"}),a.forEach((function(t){s.forEach((function(a){t.value==a.buildingId&&a.id&&a.localName&&"yes"==e.type&&(t.children?t.children.push({value:a.id,label:a.localName,FloorSequenceID:a.floorSequenceID,infos:a.infos||{},outline:a.outline||null}):(t.children=[],t.children.push({value:"all",label:"全部"},{value:"noKnow",label:"未明确楼层"},{value:a.id,label:a.localName,FloorSequenceID:a.floorSequenceID,infos:a.infos||{},outline:a.outline||null})))}))})),e.options=a;case 9:case"end":return t.stop()}}),t)})))()},changeCascader:function(e){var t=this.$refs.floorCascader.getCheckedNodes();t&&this.$emit("change",e,t[0].data)}}},We=Ke,Xe=(a("8260"),a("a202"),Object(l["a"])(We,qe,Be,!1,null,"3639d445",null)),Ye=Xe.exports,Je=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"cascaderMap"}},[a("span",{staticClass:"buildFloor",staticStyle:{"margin-right":"12px"}},[e._v("设备类别")]),a("el-cascader",{ref:"cascader",style:e.isWidth?"":"width:160px;",attrs:{placeholder:"请选择",filterable:"",clearable:"",props:e.props,options:e.options,size:"small","popper-class":"equip-cascader"},on:{change:e.changeVal},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)},Qe=[],Ze=a("c814"),et=a.n(Ze),tt={name:"getCode",props:{isWidth:{type:Boolean,default:!0},all:{type:Boolean,default:!1}},computed:Object(v["a"])({},Object(y["b"])("layout",["projectId"])),data:function(){return{value:[],options:[],props:{value:"code",label:"name",children:"children"}}},created:function(){this.getData()},watch:{projectId:function(){this.value="",this.getData()}},methods:{setValue:function(e){var t=this,a=!0;this.options.forEach((function(i){i.children.forEach((function(n){n.code===e&&(a=!1,t.value=[i.code,n.code])}))})),a&&(this.value=[])},changeVal:function(e){var t={};e&&e[1]&&this.options.forEach((function(a){a.children.forEach((function(a){a.code===e[1]&&(t.facility=a.name,t.code=a.code)}))})),this.$emit("change",t)},getData:function(e){var t=this;return Object(W["a"])(regeneratorRuntime.mark((function a(){var i,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i={distinct:!0,pageNumber:1,pageSize:1e3,projection:["classCode"]},e&&"all"!=e[0]&&(i.filters="","noKnow"==e[0]?i.filters+=";buildingId isNull":e[0]&&"all"!=e[0]&&(i.filters+=";buildingId='".concat(e[0],"'")),"noKnow"==e[1]?i.filters+=";floorId isNull":e[1]&&"all"!=e[1]&&(i.filters+=";floorId='".concat(e[1],"'")),i.filters=i.filters.slice(1)),a.next=4,et.a.getEquipLkSys(i);case 4:n=a.sent,n.content?t.options=n.content:t.options=[];case 6:case"end":return a.stop()}}),a)})))()}}},at=tt,it=(a("c988"),a("b19a"),Object(l["a"])(at,Je,Qe,!1,null,"5dbb2cdd",null)),nt=it.exports,rt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{height:"calc(100% - 44.5px)",padding:"0px 10px 10px","box-sizing":"border-box"}},[a("div",{staticClass:"hanson-bar"},[a("div",{staticStyle:{float:"right",overflow:"hidden"}},[a("el-checkbox",{on:{change:function(t){return e.getHeaderData(e.mess)}},model:{value:e.isShowDelivered,callback:function(t){e.isShowDelivered=t},expression:"isShowDelivered"}},[e._v("显示有值信息点")]),a("span",{staticStyle:{"margin-left":"10px"}},[e._v("当前筛选条件下共"+e._s(e.page.total||"--")+"设备")])],1),a("el-select",{staticStyle:{width:"100px","margin-right":"8px","vertical-align":"bottom"},on:{change:function(t){return e.getHeaderData(e.mess)}},model:{value:e.onlyRead,callback:function(t){e.onlyRead=t},expression:"onlyRead"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("el-select",{staticStyle:{width:"100px","margin-right":"8px","vertical-align":"bottom"},on:{change:e.handleChangeShowType},model:{value:e.showType,callback:function(t){e.showType=t},expression:"showType"}},e._l(e.showTypes,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("el-select",{directives:[{name:"show",rawName:"v-show",value:e.mess.deviceId,expression:"mess.deviceId"}],staticStyle:{width:"200px","margin-right":"8px","vertical-align":"bottom"},attrs:{filterable:"",clearable:"",multiple:"","collapse-tags":"",placeholder:"请选择信息点"},on:{change:e.initTable},model:{value:e.showInfoList,callback:function(t){e.showInfoList=t},expression:"showInfoList"}},e._l(e.headerOptions,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1),a("el-button",{staticStyle:{width:"80px"},attrs:{size:"small"},on:{click:e.addDevice}},[e._v("添加设备 ")]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:!e.onlyRead,expression:"!onlyRead"}],attrs:{size:"small",disabled:!(e.tableData&&e.tableData.length)},on:{click:e.Batch}},[e._v("批量维护信息点 ")]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],attrs:{size:"small"},on:{click:e.handleBatchEquipPoint}},[e._v("批量维护设备位置")]),a("el-button",{staticStyle:{width:"80px"},attrs:{size:"small"},on:{click:e.reset}},[e._v("刷新 ")]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:!e.onlyRead,expression:"!onlyRead"}],staticStyle:{width:"80px"},attrs:{size:"small"},on:{click:e.undo}},[e._v("撤销 ")])],1),a("qrcode",{ref:"qrcode",attrs:{dialog:e.myDialog,qrcodeUrl:e.qrcodeUrl,addBody:!0}}),a("bimDialog",{ref:"bimdialog",attrs:{dialog:e.myDialog,bimcodeobj:e.bimcodeobj,addBody:!0,read:!!e.onlyRead},on:{closeBIM:e.closeBIM}}),a("upload-files-dialog",{ref:"upload",attrs:{read:!!e.onlyRead,keysArr:e.filesArr,firmDataType:e.firmDataType,information:e.information,infoType:e.infoType,dialog:e.myDialog},on:{changeFile:e.fileChange}}),a("upload-img-dialog",{attrs:{read:!!e.onlyRead,keysArr:e.imgsArr,dialog:e.myDialog,firmDataType:e.firmDataType,information:e.information,infoType:e.infoType},on:{changeFile:e.imgChange}}),a("pic-dialog",{attrs:{read:!!e.onlyRead,dialog:e.myDialog,keysArr:e.picsArr,firmDataType:e.firmDataType,information:e.information,infoType:e.infoType},on:{change:e.changePics}}),a("div",{directives:[{name:"show",rawName:"v-show",value:!e.mess.deviceId&&(!e.tableData||!e.tableData.length),expression:"!mess.deviceId && (!tableData || !tableData.length)"}],staticClass:"middle_sty",staticStyle:{height:"91%","text-align":"center"}},[e._m(0)]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.mess.deviceId&&(!e.tableData||!e.tableData.length),expression:"mess.deviceId && (!tableData || !tableData.length)"}],staticClass:"center middle_sty",staticStyle:{height:"91%"}},[e._m(1)]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.mess.deviceId&&e.tableData&&e.tableData.length,expression:"mess.deviceId && tableData && tableData.length"}],ref:"handsontable",attrs:{id:"handsontable"}}),a("div",{directives:[{name:"show",rawName:"v-show",value:e.mess.deviceId&&e.tableData&&e.tableData.length,expression:"mess.deviceId && tableData && tableData.length"}],staticClass:"right"},[a("my-pagination",{key:e.pageKey,attrs:{page:e.page},on:{change:e.getTableData}})],1),e.myDialog.details?a("details-dialog",{attrs:{iframeSrc:e.iframeSrc,dialog:e.myDialog}}):e._e(),a("system-type",{attrs:{device:e.mess,curDevice:e.curDevice,dialog:e.myDialog,type:e.onlyRead?"read":"edit",list:e.systemList},on:{change:e.changeSystemType}}),a("change-rea",{attrs:{dialog:e.myDialog,category:e.deviceType},on:{changeProperty:e.changeProperty}}),a("menum",{attrs:{dialog:e.myDialog,updateInfoData:e.updateInfoData,updateInput:e.updateInput},on:{change:e.handleChangeMenum}}),a("look-pic",{attrs:{dialog:e.myDialog,keysArr:e.picsArr}}),a("el-dialog",{attrs:{title:"临时维护信息点",visible:e.myDialog.update,width:"670px"},on:{"update:visible":function(t){return e.$set(e.myDialog,"update",t)},close:e.handleCloseUpdate}},[a("el-row",[e._v(" 该信息点未定义对应组件,现在维护数据不确定后续是否可用。如确实需要维护,请点击 "),a("el-link",{attrs:{type:"primary",underline:!1},on:{click:function(t){e.updateInputShow=!0}}},[e._v("继续维护 ")]),e._v(" 。 ")],1),a("el-row",{directives:[{name:"show",rawName:"v-show",value:e.updateInputShow,expression:"updateInputShow"}],staticStyle:{"margin-top":"20px"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"请输入内容"},model:{value:e.updateInput,callback:function(t){e.updateInput=t},expression:"updateInput"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.myDialog.update=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.handleClickUpdate}},[e._v("确 认")])],1)],1),a("el-dialog",{attrs:{title:"确定新增设备的类型",visible:e.myDialog.addDevice,width:"670px"},on:{"update:visible":function(t){return e.$set(e.myDialog,"addDevice",t)}}},[a("el-row",[a("my-cascader",{ref:"cascader",attrs:{all:!0},on:{change:e.changeAddType}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.toAddDevice}},[e._v("下 一 步")])],1)],1),a("batchDialog",{ref:"batchDialogs",attrs:{mess:e.mess,information:e.information,newEnclosure:e.newEnclosure,tableHeader:e.tableHeader},on:{multiples:e.multiples,upDataDevice:e.upDataDevice}})],1)},ot=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[a("i",{staticClass:"icon-wushuju iconfont"}),e._v(" 请选择设备类别 ")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[a("i",{staticClass:"icon-wushuju iconfont"}),e._v(" 暂无数据 ")])}],st=(a("a434"),a("2532"),a("5700")),lt=a.n(st),ct=a("45ff"),ut=a.n(ct),dt={getParam:function(e,t,a,i){function n(e,t){var a={};return e.reduce((function(e,i){return!a[i[t]]&&(a[i[t]]=e.push(i)),e}),[])}var r=n(e,0),o="",s=a.getPlugin("columnSorting").isSorted();if(i.length&&s){var l=a.getPlugin("columnSorting").rowsMapper.__arrayMap;o=r.map((function(e){return a.getSourceDataAtRow(i[l[e[0]]])}))}else if(s){var c=a.getPlugin("columnSorting").rowsMapper.__arrayMap;o=r.map((function(e){return a.getSourceDataAtRow(c[e[0]])}))}else o=i.length?r.map((function(e){return a.getSourceDataAtRow(i[e[0]])})):r.map((function(e){return a.getSourceDataAtRow(e[0])}));return o},getUnshiftParam:function(e,t,a,i){var n=a.getPlugin("columnSorting").isSorted();if(i.length&&n){var r=a.getPlugin("columnSorting").rowsMapper.__arrayMap;return a.getSourceDataAtRow(i[r[e[0][0]-1]])}if(n){var o=a.getPlugin("columnSorting").rowsMapper.__arrayMap;return a.getSourceDataAtRow(o[e[0][0]-1])}return i.length?a.getSourceDataAtRow(i[e[0][0]-1]):a.getSourceDataAtRow(e[0][0]-1)}},pt=dt,ht=(a("7db0"),{readOnly:!1,picType:function(e,t,a,i,n,r,o){if(t.style.color="#409EFF",t.style.cursor="pointer",r instanceof Array&&r.length>0){var s=0;r.map((function(e){s++})),t.innerHTML="已上传:"+s}else t.innerHTML=ht.readOnly?"":"点击上传";return t},fileType:function(e,t,a,i,n,r,o){return t.style.color="#409EFF",t.style.cursor="pointer",r instanceof Array&&r.length>0?t.innerHTML="已上传:"+r.length:t.innerHTML=ht.readOnly?"":"点击上传",t},systemList:function(e,t,a,i,n,r,o){if(t.style.color="#409EFF",t.style.cursor="pointer",r instanceof Array&&r.length>0)if(1==r.length)t.innerHTML=r[0].localName||r[0].name?r[0].localName||r[0].name:r[0].infos.localName||r[0].infos.name||"";else{for(var s="",l=0;l<r.length;l++)r[l].localName||r[l].name?l==r.length?s+=r[l].localName||r[l].name:s=r[l].localName||r[l].name+"、"+s:l==r.length?s+=r[l].infos.localName||r[l].infos.name:s=r[l].infos.localName||r[l].infos.name+"、"+s;t.innerHTML=s.substring(0,40)+"..."}else t.innerHTML="无关联系统";return t},buildingList:function(e,t,a,i,n,r,o){if(t.style.color="#409EFF",t.style.cursor="pointer",r instanceof Array&&r.length>0)if(1==r.length)t.innerHTML=r[0].localName||r[0].name?r[0].localName||r[0].name:r[0].infos.localName||r[0].infos.name||"";else{for(var s="",l=0;l<r.length;l++)r[l].localName||r[l].name?l==r.length?s+=r[l].localName||r[l].name:s=r[l].localName||r[l].name+"、"+s:l==r.length?s+=r[l].infos.localName||r[l].infos.name:s=r[l].infos.localName||r[l].infos.name+"、"+s;t.innerHTML=s.substring(0,40)+"..."}else t.innerHTML="无所属建筑";return t},idType:function(e,t,a,i,n,r,o){var s="",l=e.getDataAtRowProp(a,"infos.manufacturer")||"空",c=e.getDataAtRowProp(a,"infos.brand")||"空",u=e.getDataAtRowProp(a,"infos.specification")||"空";switch(n){case"dpManufacturerId":s=l+"/"+c+"/"+u;break;case"dpSupplierId":s=e.getDataAtRowProp(a,"infos.supplier");break;case"dpMaintainerId":s=e.getDataAtRowProp(a,"infos.maintainer");break;case"dpInsurerId":s=e.getDataAtRowProp(a,"infos.insurer");break;default:break}return t.style.color="#409EFF",t.style.cursor="pointer",t.innerHTML=r?s:"点击选择",t},lookQRCode:function(e,t,a,i,n,r,o){return t.style.color="#409EFF",t.style.cursor="pointer",t.innerHTML="查看二维码",t},sysInBuildFloor:function(e,t,a,i,n,r,o){if(t.style.color="#409EFF",t.style.cursor="pointer",r instanceof Array&&r.length>0){for(var s="",l=0;l<r.length;l++)r[l].BuildID&&r[l].FloorID?s+="".concat(r[l].BuildLocalName||r[l].BuildName,"-").concat(r[l].FloorLocalName||r[l].FloorName,"、"):s+="".concat(r[l].BuildLocalName||r[l].BuildName,"、");s=s.substring(0,s.length-1),s.length>15&&(s=s.substring(0,15)+"..."),t.innerHTML=s}else t.innerHTML="无所属建筑楼层";return t}}),ft=ht,mt={equipment:{onlyRead:[],edit:[]},tenant:{onlyRead:[],edit:[]},shaft:{onlyRead:[],edit:[]},parts:{onlyRead:[],edit:[]},property:{onlyRead:[],edit:[]},system:{onlyRead:[],edit:[]},space:{onlyRead:["outline"],edit:["outline"]}},gt=mt,vt={STRING:"STRING",ATTACHMENT:"ATTACHMENT",DOUBLE:"DOUBLE",DATETIME:"DATETIME",ENUM:"ENUM",BOOLEAN:"BOOLEAN",MENUM:"MENUM",INTEGER:"INTEGER"},yt=vt,bt=["specification","serviceLife"],wt=["EquipQRCode","EquipID","EquipName","BIMLocation","Brand","Specification","Manufacturer","Supplier","SupplierContactor","SupplierPhone","SupplierEmail","SupplierWeb","SupplierFax","Maintainer","MaintainerContactor","MaintainerPhone","MaintainerEmail","MaintainerWeb","Principal","MaintainerFax","Insurer","InsurerContactor","InsurerPhone","InsurerEmail","InsurerWeb","InsurerFax","InsuranceFile","EquipID","EquipName","SpaceCount","SpaceList","TenantID","ShaftID"],Ct=["brand","specification","manufacturer","supplier","supplierContactor","supplierPhone","supplierEmail","supplierWeb","supplierFax","maintainer","maintainerContactor","maintainerPhone","maintainerEmail","maintainerWeb","maintainerFax","insurer","insurerContactor","insurerPhone","insurerEmail","insurerWeb","insurerFax"],It=function(){var e=[];for(var t in yt)e.push(yt[t]);return e},xt={inputModeArr:It(),cantShow:function(e){var t=!0;return wt.map((function(a){a==e&&(t=!1)})),t},fixedNoShowField:function(e,t){var a=!0;return e.map((function(e){e==t&&(a=!1)})),a},isShow:function(e){var t=!0;return bt.map((function(a){a==e&&(t=!1)})),t},arrToArr:function(e,t){var a=0,i=0,n=0,r=0;e.find((function(e,o,s){var l="Visible"!=t||e.visible;("brand"==e.code&&l||"specification"==e.code&&l||"manufacturer"==e.code&&l)&&!a&&(a=o),("supplier"==e.code&&l||"supplierContactor"==e.code&&l||"supplierEmail"==e.code&&l||"supplierWeb"==e.code&&l||"supplierFax"==e.code&&l||"supplierPhone"==e.code&&l)&&!i&&(i=o),("maintainer"==e.code&&l||"maintainerContactor"==e.code&&l||"maintainerPhone"==e.code&&l||"maintainerEmail"==e.code&&l||"maintainerWeb"==e.code&&l||"maintainerFax"==e.code&&l)&&!n&&(n=o),("insurer"==e.code&&l||"insurerContactor"==e.code&&l||"insurerPhone"==e.code&&l||"insurerEmail"==e.code&&l||"insurerWeb"==e.code&&l||"insurerFax"==e.code&&l)&&!r&&(r=o)}));var o=[a,i,n,r];return o.reverse().map((function(t,a){t&&(0==a?e.splice(t,0,{category:"STATIC",dataType:"STRING",firstName:"基本信息",aliasCode:"dpInsurerId",aliasName:"保险公司信息",name:"保险公司信息",code:"dpInsurerId",origCode:"dpInsurerId",origDataType:"Str",path:"dpInsurerId",priority:"S",editable:!0,visible:!0}):1==a?e.splice(t,0,{category:"STATIC",dataType:"STRING",firstName:"基本信息",aliasCode:"dpMaintainerId",aliasName:"维修商信息",name:"维修商信息",code:"dpMaintainerId",origCode:"dpMaintainerId",origDataType:"Str",path:"dpMaintainerId",priority:"S",editable:!0,visible:!0}):2==a?e.splice(t,0,{category:"STATIC",dataType:"STRING",firstName:"基本信息",aliasCode:"dpSupplierId",aliasName:"供应商信息",name:"供应商信息",code:"dpSupplierId",origCode:"dpSupplierId",origDataType:"Str",path:"dpSupplierId",priority:"S",editable:!0,visible:!0}):3==a&&e.splice(t,0,{category:"STATIC",dataType:"STRING",firstName:"基本信息",aliasCode:"dpManufacturerId",aliasName:"生产厂家/品牌/型号",name:"生产厂家/品牌/型号",code:"dpManufacturerId",origCode:"dpManufacturerId",origDataType:"Str",path:"dpManufacturerId",priority:"S",editable:!0,visible:!0}))})),e},headerTextFilter:function(e,t,a,i){var n=this,r=e.map((function(e){if(a){if(!n.filterUnshow(a,t,e.code))return;return"Visible"==i&&e.visible||"all"==i?n.isUnit(e):void 0}if(n.filterUnshow(a,t,e.code))return"Visible"==i&&e.visible||"all"==i?n.isUnit(e):"partInfo"==i&&e.visible&&n.isShow(e.code)?"techParam"==e.firstTag?void 0:n.isUnit(e):void 0})).filter((function(e){return e}));return r},headerTypeFilter:function(e,t,a,i){var n=this;ft.readOnly=a;var r=e.map((function(e){if(a){if(!n.filterUnshow(a,t,e.code))return;return"Visible"==i&&e.visible||"all"==i?n.textFormat(e,a):void 0}if(n.filterUnshow(a,t,e.code))return"Visible"==i&&e.visible||"all"==i?n.inputModeFilter(e,a):"partInfo"==i&&e.visible&&n.isShow(e.code)?"techParam"==e.firstTag?void 0:n.inputModeFilter(e,a):void 0})).filter((function(e){return e}));return r},isUnit:function(e){return e.unit&&""!=e.unit?e.name+"("+e.unit+")":e.name},textFormat:function(e,t){return"defaultQRCode"==e.code?{data:e.path,renderer:ft.lookQRCode,readOnly:t}:"installPic"==e.code||"nameplate"==e.code||"systemChart"==e.code||"pic"==e.code?{data:e.path,renderer:ft.picType,readOnly:t}:"insuranceFile"==e.code||"archive"==e.code||"checkReport"==e.code||"maintainManual"==e.code||"approachingAcceptance"==e.code||"acceptanceReport"==e.code||"operationManual"==e.code||"originalCertificate"==e.code||"testReport"==e.code||"productCertification"==e.code||"installInstruction"==e.code||"supplierContract"==e.code||"drawing"==e.code||"installDrawing"==e.code||"designIDGraph"==e.code||"fanCharacterCurve"==e.code?{data:e.path,renderer:ft.fileType,readOnly:t}:"STATIC"==e.category?e.dataType==yt.ENUM&&!e.multiple||e.dataType==yt.BOOLEAN&&!e.multiple?{data:e.path,renderer:ze["default"].customDropdownRenderer,editor:"chosen",readOnly:t,chosenOptions:{data:e.dataSource?ze["default"].formatDataSource(e.dataSource):""}}:e.dataType==yt.MENUM||e.dataType==yt.ENUM&&e.multiple||e.dataType==yt.BOOLEAN&&e.multiple?{data:e.path,renderer:ze["default"].multipleDropdownRenderer,readOnly:t,chosenOptions:e.dataSource?ze["default"].formatDataSource(e.dataSource):""}:e.dataType==yt.DOUBLE||e.dataType==yt.INTEGER?{data:e.path,type:"numeric",readOnly:t,numericFormat:{pattern:"0,0.00"}}:e.dataType==yt.DATETIME?{data:e.path,type:"date",dateFormat:"YYYYMMDD",readOnly:t,correctFormat:!0}:(e.dataType,yt.STRING,{data:e.path,readOnly:t}):{data:e.path,readOnly:t}},inputModeFilter:function(e,t){return"defaultQRCode"==e.code?{data:e.path,renderer:ft.lookQRCode,readOnly:t}:"installPic"==e.code||"nameplate"==e.code||"systemChart"==e.code||"pic"==e.code?{data:e.path,renderer:ft.picType,readOnly:t}:"insuranceFile"==e.code||"archive"==e.code||"checkReport"==e.code||"maintainManual"==e.code||"approachingAcceptance"==e.code||"acceptanceReport"==e.code||"operationManual"==e.code||"originalCertificate"==e.code||"testReport"==e.code||"productCertification"==e.code||"installInstruction"==e.code||"supplierContract"==e.code||"drawing"==e.code||"installDrawing"==e.code||"designIDGraph"==e.code||"fanCharacterCurve"==e.code?{data:e.path,renderer:ft.fileType,readOnly:t}:(e.category||console.log("新版字典无输入类型",e),"STATIC"==e.category?e.dataType==yt.ENUM&&!e.multiple||e.dataType==yt.BOOLEAN&&!e.multiple?{data:e.path,renderer:ze["default"].customDropdownRenderer,editor:"chosen",readOnly:t,chosenOptions:{data:e.dataSource?ze["default"].formatDataSource(e.dataSource):""}}:e.dataType==yt.MENUM||e.dataType==yt.ENUM&&e.multiple||e.dataType==yt.BOOLEAN&&e.multiple?{data:e.path,renderer:ze["default"].multipleDropdownRenderer,readOnly:t,chosenOptions:e.dataSource?ze["default"].formatDataSource(e.dataSource):""}:e.dataType==yt.DOUBLE||e.dataType==yt.INTEGER?{data:e.path,type:"numeric",readOnly:t,numericFormat:{pattern:"0,0.00"}}:e.dataType==yt.DATETIME?{data:e.path,type:"date",dateFormat:e.formater||"YYYYMMDD",readOnly:t,correctFormat:!0}:(e.dataType,yt.STRING,{data:e.path,readOnly:t}):{data:e.path,readOnly:t})},filterUnshow:function(e,t,a){var i=!0,n=gt[t];return e?(n.onlyRead.map((function(e){e==a&&(i=!1)})),i):(n.edit.map((function(e){e==a&&(i=!1)})),i)},filterFirm:function(e){var t=!0;return Ct.map((function(a){a==e&&(t=!1)})),t}},St=xt,kt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"cascaderMap"}},[a("span",{staticClass:"buildFloor",staticStyle:{"margin-right":"12px"}},[e._v("设备类别")]),e._t("default"),a("el-select",{style:e.isWidth?"":"width:160px;",attrs:{placeholder:"请选择",clearable:"",props:e.props,filterable:"",size:"small"},on:{change:e.changeVal},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e){return a("el-option",{key:e.code,attrs:{label:e.facility,value:e.code}})})),1)],2)},_t=[],Dt={name:"getCode",props:{isWidth:{type:Boolean,default:!0},all:{type:Boolean,default:!1}},computed:Object(v["a"])({},Object(y["b"])("layout",["projectId"])),data:function(){return{value:"",options:[],props:{value:"code",label:"facility"},falg:!0,content:[]}},created:function(){this.getData()},watch:{projectId:function(){this.value="",this.getData()}},methods:{setValue:function(e){this.value=e},changeVal:function(e){var t={},a=!0;this.options.map((function(i){i.code==e&&(a=!1,t=i)})),this.value=e,a&&(this.value=""),this.$emit("change",t)},getData:function(e){var t=this,a={distinct:!0,pageNumber:1,pageSize:1e3,projection:["classCode"]};e&&"all"!=e[0]&&(a.filters="","noKnow"==e[0]?a.filters+=";buildingId isNull":e[0]&&"all"!=e[0]&&(a.filters+=";buildingId='".concat(e[0],"'")),"noKnow"==e[1]?a.filters+=";floorId isNull":e[1]&&"all"!=e[1]&&(a.filters+=";floorId='".concat(e[1],"'")),a.filters=a.filters.slice(1));var i={type:"equipment"};Promise.all([ut.a.queryEquip(a),et.a.queryPhysicsAllType(i)]).then((function(e){e[0];var a=e[1];t.options=t.formatOptions(a.content),t.all||(t.content=a.content.map((function(e){return e.classCode})),t.filterForOptions()),t.value&&t.changeVal(t.value)}))},formatOptions:function(e){var t=[];return e&&e.map((function(e){var a={};a.code=e.code,a.facility=e.name===e.aliasName?e.name:"".concat(e.name,"(").concat(e.aliasName,")"),t.push(a)})),t},filterForOptions:function(){var e=this;this.options=this.options.filter((function(t){if(e.content.indexOf(t.code)>-1)return t}))}}},jt=Dt,Tt=(a("7112"),Object(l["a"])(jt,kt,_t,!1,null,"f572d33e",null)),At=Tt.exports,Nt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.dialog.qrcode?a("el-dialog",{attrs:{title:"二维码","custom-class":"custom-dialog",visible:e.dialog.qrcode,width:"500px"},on:{"update:visible":function(t){return e.$set(e.dialog,"qrcode",t)}}},[a("div",[a("div",{attrs:{id:"qrcode"}},[a("img",{staticStyle:{width:"200px",height:"200px",margin:"auto",display:"block"},attrs:{src:"/image-service/common/file_get/"+e.qrcodeUrl+"?systemId=dataPlatform",alt:"二维码"}})])])]):e._e()},Pt=[],Ot={props:{dialog:{type:Object,default:function(){return{qrcode:!1}}},qrcodeUrl:{default:""}},data:function(){return{}},created:function(){},mounted:function(){},methods:{}},Rt=Ot,Ft=(a("5a3c"),Object(l["a"])(Rt,Nt,Pt,!1,null,"13576903",null)),Mt=Ft.exports,Et=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.dialog.bimcode?a("el-dialog",{attrs:{title:"修改BIM模型中的坐标","custom-class":"custom-dialog",visible:e.dialog.bimcode,width:"900px"},on:{"update:visible":function(t){return e.$set(e.dialog,"bimcode",t)},close:e.handleClose}},[Object.keys(e.bimcodeobj).length>0?a("div",{attrs:{id:"bim-code"}},[a("div",{staticClass:"eq"},[a("span",{staticClass:"eq-name"},[e._v("设备名称   ")]),e._v(" "+e._s(e.bimcodeobj.localName||e.bimcodeobj.name||"--")+" ")]),a("div",[a("noAllDataFloor",{ref:"floors",on:{change:e.changeFloor,getFloorMap:e.getFloorMap}}),e.isShow?a("span",{staticClass:"errMsg"},[e._v("请选择设备所属建筑楼层")]):e._e()],1),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.canvasLoading,expression:"canvasLoading"}],staticClass:"canvas-box"},[a("canvas",{directives:[{name:"show",rawName:"v-show",value:e.isdata,expression:"isdata"}],ref:"canvas",attrs:{id:"floorCanvas"+e.id,width:e.cadWidth,height:e.cadHeight,tabindex:"0"}}),a("p",{directives:[{name:"show",rawName:"v-show",value:!e.isdata,expression:"!isdata"}]},[e._v("当前楼层暂无平面图,请前往“建筑楼层管理”中给楼层添加平面图")])])]):e._e(),e.read?e._e():a("div",{staticClass:"footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.handleClose}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)]):e._e()},Lt=[],$t=(a("b680"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"buildFloor"}},[a("span",{staticClass:"buildFloor"},[e._v("建筑楼层")]),a("el-cascader",{style:e.isWidth?"":"width:160px;",attrs:{placeholder:"请选择建筑楼层",options:e.options,filterable:"",size:"small"},on:{change:e.changeCascader},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)}),qt=[],Bt={props:{isWidth:{type:Boolean,default:!0},type:{type:String,default:"yes"}},computed:Object(v["a"])({},Object(y["b"])("layout",["projectId","secret","userId"])),data:function(){return{options:[],param:{ProjId:"",secret:""},value:[],floorToMap:{}}},created:function(){this.param.ProjId=this.projectId,this.param.secret=this.secret,this.getData()},watch:{projectId:function(){this.options=[],this.param.ProjId=this.projectId,this.param.secret=this.secret,this.getData(),this.changeCascader([])}},methods:{setValue:function(e){e&&e.length&&(this.value=e)},getData:function(){var e,t=this,a={pageNumber:1,pageSize:1e3,orders:"localName asc",projection:["id","localName"]},i={orders:"floorSequenceID desc",pageNumber:1,pageSize:1e3},n=new Promise((function(e,t){Ue.a.buildingQuery(a,(function(t){e(t)}))})),r=new Promise((function(e,t){Ge.a.floorQuery(i,(function(t){e(t)}))}));Promise.all([n,r]).then((function(a){var i=a[0].content,n=a[1].content;e=i.map((function(e){return{value:e.id,label:e.localName}})),e.unshift({value:"noKnow",label:"未明确建筑"}),e.forEach((function(e){n.forEach((function(a){t.floorToMap[a.id]=a,e.value==a.buildingId&&a.id&&a.localName&&"yes"==t.type&&(e.children?e.children.push({value:a.id,label:a.localName,FloorSequenceID:a.floorSequenceID}):(e.children=[],e.children.push({value:"noKnow",label:"未明确楼层"},{value:a.id,label:a.localName,FloorSequenceID:a.floorSequenceID})))}))})),t.$emit("getFloorMap",t.floorToMap),t.options=e}))},changeCascader:function(e){this.$emit("change",e)}}},zt=Bt,Vt=(a("bd4e"),a("b051"),Object(l["a"])(zt,$t,qt,!1,null,"21265392",null)),Ut=Vt.exports,Ht=a("757a"),Gt=a("4664"),Kt=a("14f9"),Wt={components:{noAllDataFloor:Ut},props:{dialog:{type:Object,default:function(){return{bimcode:!1}}},bimcodeobj:{default:{}},read:{default:!0,type:Boolean}},data:function(){return{cadWidth:800,cadHeight:400,Buildfloor:"",value:[],isdata:!0,floorData:{},canvasLoading:!1,isShow:!1,id:"ty",view:"",drawMainScene:"",floorToMap:{}}},created:function(){},mounted:function(){this.init()},methods:{init:function(){this.isShow=!0,this.$nextTick((function(){this.bimcodeobj.floorId&&(this.isShow=!1),this.$refs.floors&&this.$refs.floors.setValue([this.bimcodeobj.buildingId,this.bimcodeobj.floorId])}))},changeFloor:function(e){this.isShow=!0,e.length>1?(this.isShow=!1,this.floorData=this.floorToMap[e[1]]):(this.isShow=!1,this.floorData={}),this.getFloorData()},initGraphy:function(e,t){var a=this;if(a.clearGraphy(),a.drawMainScene=new Ht["d"],a.canvasLoading=!0,2==t)a.drawMainScene.loadUrl("/image-service/common/file_get?systemId=revit&key=".concat(e)).then((function(e){a.getGraphtSuc(e)}));else if(3==t){var i=0,n=0,r=1;if(this.floorData&&this.floorData.infos&&this.floorData.infos.floorMapRatio&&this.floorData.infos.floorMapShift)try{var o=JSON.parse(this.floorData.infos.floorMapShift);i=o.x,n=o.y,r=this.floorData.infos.floorMapRatio}catch(s){console.log(s)}a.drawMainScene.loadImg("/image-service/common/image_get?systemId=dataPlatform&key=".concat(e),(function(e){a.getGraphtSuc(e)}),i,n,r)}},getGraphtSuc:function(e){if(this.canvasLoading=!1,"error"==e)return this.FloorMap="",void console.log("数据解析异常");if("failure"==e.Result)return this.showTools=!1,void this.$message.warning(e.Message);if(this.view.scene=this.drawMainScene,this.bimcodeobj.locationJson){var t={X:this.bimcodeobj.locationJson.x,Y:-this.bimcodeobj.locationJson.y};this.drawMainScene.addMarker(t)}if(this.view.fitSceneToView(),this.drawMainScene.isSpaceSelectable=!1,this.read||this.drawMainScene.spaceClick(this,this.canvasClick),this.floorData.outline&&this.floorData.outline.length){var a=this.floorData.outline.map((function(e){return new Gt["SPoint"](e.X,e.Y)}));this.drawMainScene.addSceneMark(a)}},getFloorData:function(){if(this.floorData&&this.floorData.infos&&this.floorData.infos.floorMap){this.isdata=!0;var e=this.floorData.infos.floorMap,t=e.split(".")[1];!t||"png"!=t.toLowerCase()&&"jpg"!=t.toLowerCase()?this.initGraphy(e,2):this.initGraphy(e,3)}else this.isdata=!1,this.clearGraphy()},handleClose:function(e){this.view="",this.drawMainScene="",this.$emit("closeBIM",e)},save:function(){var e=this;if(this.drawMainScene&&this.drawMainScene.markerList.length){var t,a=this.drawMainScene.markerList[0];t=this.bimcodeobj.bimLocation&&this.bimcodeobj.bimLocation.split(",")[2]?"".concat(a.x.toFixed(2),",").concat((-1*a.y).toFixed(2),",").concat(this.bimcodeobj.bimLocation.split(",")[2]):"".concat(a.x.toFixed(2),",").concat((-1*a.y).toFixed(2),",0");var i=this.$refs.floors.value,n={content:[{id:this.bimcodeobj.id,buildingId:"noKnow"==i[0]?void 0:i[0],floorId:"noKnow"==i[1]?void 0:i[1],bimLocation:t}],projection:["bimLocation","buildingId","floorId"]};lt.a.updateEquip(n,(function(t){"success"==t.result&&(e.$message.success("保存成功"),e.handleClose("update"))}))}},clearGraphy:function(){if(this.view)this.view.scene=null;else{var e="floorCanvas".concat(this.id);this.view=new Ht["c"](e)}},getFloorMap:function(e){this.floorToMap=e,this.floorData=this.floorToMap[this.bimcodeobj.floorId],this.getFloorData()},canvasClick:function(e,t){if(e instanceof Kt["SGraphItem"]){this.clearMark();var a=e.mapToScene(t[0].x,t[0].y),i={X:a.x,Y:a.y};this.drawMainScene.addMarker(i),this.view.fitSceneToView()}},clearMark:function(){var e=this;this.drawMainScene&&(this.drawMainScene.markerList.forEach((function(t){e.drawMainScene.removeItem(t)})),this.drawMainScene.markerList=[])}},watch:{bimcodeobj:{immediate:!0,handler:function(e){this.init()}}}},Xt=Wt,Yt=(a("0b17"),a("3e23"),Object(l["a"])(Xt,Et,Lt,!1,null,"73ac698e",null)),Jt=Yt.exports,Qt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"上传文件",visible:e.dialog.uploadFiles,width:"500px"},on:{"update:visible":function(t){return e.$set(e.dialog,"uploadFiles",t)}}},[a("div",{staticClass:"max-height: 500px; overflow-y: auto;"},[a("upload-files",{attrs:{readOnly:e.read,keysArr:e.keysArr,firmDataType:e.firmDataType,max:"2"},on:{change:e.changeItem}})],1)])},Zt=[],ea=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{id:"saga-upload"}},[a("div",{attrs:{id:"uploadFile"}},[a("el-upload",{staticClass:"upload-file",attrs:{action:"",drag:"","show-file-list":!1,"http-request":e.uploadAndSubmit}},[e.readOnly?e._e():a("el-button",{attrs:{size:"small",type:"primary"}},[e._v("点击上传")]),e.readOnly?e._e():a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("请上传文件,且不大于50M")])],1),e._l(e.filesArr,(function(t,i){return a("div",{directives:[{name:"show",rawName:"v-show",value:t&&e.filesArr.length,expression:"item && filesArr.length"}],key:t.key},[a("p",{staticClass:"file-list"},[a("span",{staticClass:"file-name",attrs:{title:t.name}},[e._v(e._s(t.name))]),a("i",{staticClass:"el-icon-download",staticStyle:{"margin-left":"10px",cursor:"pointer"},attrs:{title:"下载"},on:{click:function(a){return e.download(t)}}}),e.readOnly?e._e():a("i",{staticClass:"el-icon-close delete-icon",staticStyle:{"margin-left":"10px",cursor:"pointer"},attrs:{title:"删除"},on:{click:function(a){return e.deleteFile(i,t)}}})])])}))],2)])},ta=[],aa=a("53ca"),ia={props:{keysArr:{type:[Array,String],default:function(){return[]}},readOnly:{type:Boolean,default:!1},max:{type:[Number,String],default:6},defined:null,firmDataType:{type:String},information:{type:Object},infoType:{type:String}},data:function(){return{filesArr:[],isShow:Boolean,loading:!1}},created:function(){this.fileFalg()},computed:{showFileList:function(){return"dialog"===this.firmDataType?this.isShow=!1:this.isShow=!0,this.isShow}},methods:{fileFalg:function(){var e=Object(aa["a"])(this.keysArr);this.filesArr="string"==e?[this.keysArr]:ze["default"].deepCopy(this.keysArr),this.filesArr=ze["default"].deepCopy(this.keysArr),this.keysArr||(this.filesArr=[])},resetFile:function(){this.filesArr=[]},download:function(e){if(e.key){var t=document.createElement("a");t.href="".concat(window.window.__systemConf.baseServiceUrl,"/image-service/common/file_get/").concat(e.key,"?systemId=dataPlatform"),t.download="".concat(e.name),t.click(),document.body.removeChild(t)}else this.$message({message:"无该获取该文件资源链接!",type:"error"})},deleteFile:function(e,t){this.filesArr.splice(e,1),this.$emit("change",this.filesArr,this.defined)},uploadAndSubmit:function(e){var t=e.file,a=e.file.size;if(a>52428800)return this.$message.error("文件不可大于50M,请重新上传"),!1;var i=new FileReader,n=this,r=t.name.split("."),o=r[r.length-1],s="&key="+r[0]+t.uid+"."+o,l=ze["default"].formatDate(new Date(t.lastModified));i.onloadstart=function(){},i.onprogress=function(e){e.loaded},i.onload=function(){},i.onloadend=function(){if(this.loading=!1,i.error);else{var e=new XMLHttpRequest;e.open("POST",window.window.__systemConf.baseServiceUrl+"/image-service/common/file_upload?systemId=dataPlatform&secret=9e0891a7a8c8e885&overwrite=true"+s),e.send(i.result),e.onreadystatechange=function(){if(4==e.readyState)if(console.log(e),200==e.status){var a={key:s.split("=")[1],type:o,name:t.name,createTime:l,systemId:"dataPlatform"};n.filesArr.push(a),this.loading=!1,n.$emit("change",n.filesArr,n.defined)}else this.$message.error(res.data.ResultMsg)}}},i.readAsArrayBuffer(t)}},watch:{keysArr:function(e){this.fileFalg()}}},na=ia,ra=(a("c6dc"),Object(l["a"])(na,ea,ta,!1,null,null,null)),oa=ra.exports,sa={components:{uploadFiles:oa},props:{dialog:{type:Object,default:function(){return{uploadFiles:!1}}},keysArr:{type:Array,default:function(){return[]}},read:{type:Boolean,default:!1},firmDataType:{type:String},infoType:{type:String},information:{type:Object}},data:function(){return{}},created:function(){},computed:{},mounted:function(){},methods:{changeItem:function(e){if("dialog"===this.firmDataType){var t=this.infoType;switch(t){case"archive":this.information.archive.Archive=e,this.$emit("changeFile",this.information,this.firmDataType);break;case"checkReport":this.information.checkReport.CheckReport=e,this.$emit("changeFile",this.information,this.firmDataType);break;case"insuranceFile":this.information.insuranceFile.InsuranceFile=e,this.$emit("changeFile",this.information,this.firmDataType);break;case"infos.insuranceFile":this.$emit("changeFile",t,this.firmDataType,e);break;case"infos.archive":this.$emit("changeFile",t,this.firmDataType,e);break;case"infos.checkReport":this.$emit("changeFile",t,this.firmDataType,e);break;case"infos.maintainManual":this.$emit("changeFile",t,this.firmDataType,e);break;case"infos.approachingAcceptance":this.$emit("changeFile",t,this.firmDataType,e);break;case"infos.acceptanceReport":this.$emit("changeFile",t,this.firmDataType,e);break;case"infos.operationManual":this.$emit("changeFile",t,this.firmDataType,e);break;case"infos.originalCertificate":this.$emit("changeFile",t,this.firmDataType,e);break;case"infos.testReport":this.$emit("changeFile",t,this.firmDataType,e);break;case"infos.productCertification":this.$emit("changeFile",t,this.firmDataType,e);break;case"infos.installInstruction":this.$emit("changeFile",t,this.firmDataType,e);break;case"infos.drawing":this.$emit("changeFile",t,this.firmDataType,e);break;case"infos.installDrawing":this.$emit("changeFile",t,this.firmDataType,e);break;case"infos.supplierContract":this.$emit("changeFile",t,this.firmDataType,e);break;case"infos.designIDGraph":this.$emit("changeFile",t,this.firmDataType,e);break;case"infos.fanCharacterCurve":this.$emit("changeFile",t,this.firmDataType,e);break}}else this.$emit("changeFile",e,this.firmDataType)},deepCopy:function(e){return JSON.parse(JSON.stringify(e))}}},la=sa,ca=Object(l["a"])(la,Qt,Zt,!1,null,null,null),ua=ca.exports,da=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"上传图片",visible:e.dialog.uploadImgs,width:"500px"},on:{"update:visible":function(t){return e.$set(e.dialog,"uploadImgs",t)}}},[a("div",{staticStyle:{"max-height":"500px","overflow-y":"auto"}},[a("upload-imgs",{attrs:{readOnly:e.read,keysArr:e.deepcopy(e.keysArr),max:"2"},on:{change:e.changeItem}})],1)])},pa=[],ha=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"sagaUploads"}},[a("div",{staticClass:"saga-upload-images"},[e._l(e.imagesArr,(function(t,i){return"video"!=e.type?a("div",{staticClass:"point-image"},[e.readOnly?e._e():a("i",{staticClass:"el-icon-delete",on:{click:function(a){return e.delImage(i,t)}}}),a("img",{directives:[{name:"load",rawName:"v-load"}],attrs:{src:e.imageGetUrl+"&key="+t.key,alt:""},on:{click:e.lookImg}})]):e._e()})),e._l(e.imagesArr,(function(t,i){return"video"==e.type?a("div",{staticClass:"point-image"},[e.readOnly?e._e():a("i",{staticClass:"el-icon-delete",on:{click:function(a){return e.delImage(i,t)}}}),a("video",{attrs:{width:"100%",height:"100%;",src:e.imageGetUrl+"&key="+t.key,controls:"controls"}},[e._v("您的浏览器不支持 video 标签。 ")])]):e._e()})),e.readOnly?e._e():a("div",{staticStyle:{float:"left"}},[a("el-upload",{staticClass:"avatar-uploader",staticStyle:{position:"relative"},attrs:{"http-request":e.uploadAndSubmit,"show-file-list":!1,accept:e.accept,action:"",drag:""}},[a("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),a("video",{staticStyle:{display:"none"},attrs:{id:"video",controls:""}})],1)],2),a("details-dialog",{attrs:{title:"图片",iframeSrc:e.iframeSrc,dialog:e.dialog,setData:e.imagesArr}})],1)},fa=[],ma=(a("5cc6"),a("907a"),a("9a8c"),a("a975"),a("735e"),a("c1ac"),a("d139"),a("3a7b"),a("d5d6"),a("82f8"),a("e91f"),a("60bd"),a("5f96"),a("3280"),a("3fcc"),a("ca91"),a("25a1"),a("cd26"),a("3c5d"),a("2954"),a("649e"),a("219c"),a("170b"),a("b39a"),a("72f7"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{staticClass:"iframe",attrs:{title:e.title,"append-to-body":"",visible:e.dialog.details,width:"500px"},on:{"update:visible":function(t){return e.$set(e.dialog,"details",t)}}},[a("iframe",{attrs:{id:e.id,name:"google_ads_frame2",frameborder:"0",width:"100%",height:"300px",src:e.iframeSrc,marginwidth:"0",marginheight:"0",vspace:"0",hspace:"0",allowtransparency:"true",scrolling:"no",allowfullscreen:"true"}})])}),ga=[],va={data:function(){return{id:"google_ads_frame2"+(new Date).getTime()}},props:{iframeSrc:{type:String,default:""},title:{type:String,default:"详情"},dialog:{type:Object,default:function(){return{details:!1}}},setData:{type:[Array,String],default:function(){return[]}}},methods:{setMess:function(){var e=this;this.$nextTick((function(t){var a=document.getElementById(e.id);a.onload=function(){var t=e.setData.map((function(e){return{key:e.key,name:e.name,type:e.type}}));a.contentWindow.postMessage(t,"*")}}))}},watch:{dialog:{deep:!0,handler:function(){this.dialog.details&&this.setMess()}}}},ya=va,ba=(a("cd24"),Object(l["a"])(ya,ma,ga,!1,null,"5c3bfa7c",null)),wa=ba.exports,Ca={components:{detailsDialog:wa},props:{keysArr:{type:[Array,String]},readOnly:{type:Boolean,default:!1},max:{type:[Number,String],default:6},accept:{type:String,default:"image/*"},type:{type:String,default:"image"},defined:null,videoPicArr:{type:Array,default:function(){return[]}}},data:function(){return{baseUrl:"",imageGetUrl:"/image-service/common/image_get?systemId=dataPlatform",imageUploadUrl:"/image-service/common/image_upload?systemId=dataPlatform&secret=9e0891a7a8c8e885&overwrite=true",imagesArr:[],iframeSrc:"",dialog:{details:!1}}},created:function(){this.imageFalg()},methods:{imageFalg:function(){var e=Object(aa["a"])(this.keysArr);this.imagesArr="string"==e?[this.keysArr]:ze["default"].deepCopy(this.keysArr),this.keysArr||(this.imagesArr=[])},lookImg:function(){this.dialog.details=!0,this.iframeSrc=window.__systemConf.BASE_URL+":8890/photo-View.html"},delImage:function(e,t){var a=this;"video"==this.type&&(this.videoPicArr=this.videoPicArr.map((function(t){return t.substring(0,t.length-3)==a.imagesArr[e].substring(0,a.imagesArr[e].length-3)?void 0:t})).filter((function(e){return e}))),this.imagesArr.splice(e,1),this.$emit("change",this.imagesArr,this.defined,this.videoPicArr)},uploadAndSubmit:function(e,t){var a=e.file,i=new FileReader,n=this,r=a.name.split("."),o=r[r.length-1],s=ze["default"].formatDate(new Date(a.lastModified)),l=a.uid;t&&(l=t),i.onloadstart=function(){},i.onprogress=function(e){},i.onload=function(){},i.onloadend=function(){if(i.error);else{var e=new XMLHttpRequest;e.open("POST",n.imageUploadUrl+"&key="+l+"."+o),e.send(i.result),e.onreadystatechange=function(){4==e.readyState&&200==e.status&&("image"==n.type&&n.imagesArr.push({name:l+"",key:l+"."+o,systemId:"dataPlatform",type:"image",createTime:s}),"mp4"==o&&(n.imagesArr.push({name:l+"",key:l+"."+o,systemId:"dataPlatform",type:"video",createTime:s}),n.creatImg(n.imageGetUrl+"&key="+l+"."+o,l)),console.log(n.type,o),"video"==n.type&&"png"==o&&(console.log("触发时评上传图片回调"),n.videoPicArr.push({name:l+"",key:l+"."+o,systemId:"dataPlatform",type:"image_video",createTime:s})),n.$emit("change",n.imagesArr,n.defined,n.videoPicArr))}}},i.readAsArrayBuffer(a)},dataURLtoBlob:function(e,t){for(var a=atob(e.split(",")[1]),i=[],n=0;n<a.length;n++)i.push(a.charCodeAt(n));return new Blob([new Uint8Array(i)],{type:t})},creatImg:function(e,t){var a=document.getElementById("video");a.src=e;var i=this;a.onloadeddata=function(){var e=document.createElement("canvas");e.width=300,e.height=300*this.videoHeight/this.videoWidth,e.getContext("2d").drawImage(this,0,0,e.width,e.height);var a=i.dataURLtoBlob(e.toDataURL("image/png"),"image/png"),n=new File([a],"video_image.png",{type:"image/png",lastModified:Date.now()});i.uploadAndSubmit({file:n},t)}}},watch:{keysArr:function(e){this.imageFalg()}},directives:{load:function(e){var t=document.createElement("img");t.style.position="absolute",t.style.top="-999px",t.style.opacity=0,t.src=e.src,e.src="",t.onload=function(){var a=t.width,i=t.height;a>i?(e.style.height="100%",e.style.width="auto",e.style.position="absolute",e.style.left="50%",e.style.top="0",e.style.transform="translateX(-50%)",e.style.webkitTransform="translateX(-50%) translateY(0)",e.style.MozTransform="translateX(-50%) translateY(0)",e.style.msTransform="translateX(-50%) translateY(0)",e.style.OTransform="translateX(-50%) translateY(0)"):a<i?(e.src=t.src,e.style.width="100%",e.style.height="auto",e.style.position="absolute",e.style.top="50%",e.style.left="0",e.style.transform="translateY(-50%) translateX(0)",e.style.webkitTransform="translateY(-50%) translateX(0)",e.style.MozTransform="translateY(-50%) translateX(0)",e.style.msTransform="translateY(-50%) translateX(0)",e.style.OTransform="translateY(-50%) translateX(0)"):(e.style.width="100%",e.style.height="100%",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.transform="translateY(0) translateX(0)",e.style.webkitTransform="translateY(0) translateX(0)",e.style.MozTransform="translateY(0) translateX(0)",e.style.msTransform="translateY(0) translateX(0)",e.style.OTransform="translateY(0) translateX(0)"),e.src=t.src}}}},Ia=Ca,xa=(a("0f47"),Object(l["a"])(Ia,ha,fa,!1,null,null,null)),Sa=xa.exports,ka={components:{uploadImgs:Sa},props:{dialog:{type:Object,default:function(){return{uploadImgs:!0}}},keysArr:{type:Array,default:function(){return[]}},read:{type:Boolean,default:!1},firmDataType:{type:String},information:{type:Object},infoType:{type:String}},data:function(){return{}},created:function(){},mounted:function(){},methods:{deepcopy:function(e){return JSON.parse(JSON.stringify(e))},changeItem:function(e){if("dialog"===this.firmDataType){var t=this.infoType;switch(t){case"installPic":this.information.installPic.InstallPic=e,this.$emit("changeFile",this.information,this.firmDataType);break;case"installDrawing":this.information.installDrawing.InstallDrawing=e,this.$emit("changeFile",this.information,this.firmDataType);break;case"nameplate":this.information.nameplate.Nameplate=e,this.$emit("changeFile",this.information,this.firmDataType);break;case"drawing":this.information.drawing.Drawing=e,this.$emit("changeFile",this.information,this.firmDataType);break;case"infos.installPic":this.$emit("changeFile",t,this.firmDataType,e);break;case"infos.nameplate":this.$emit("changeFile",t,this.firmDataType,e);break}}else this.$emit("changeFile",e)}}},_a=ka,Da=Object(l["a"])(_a,da,pa,!1,null,null,null),ja=Da.exports,Ta=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"上传图片",visible:e.dialog.pic,width:"500px;"},on:{"update:visible":function(t){return e.$set(e.dialog,"pic",t)}}},[a("div",{staticStyle:{"max-height":"500px","overflow-y":"auto"}},[a("div",[a("h3",[e._v("设备图片")]),a("upload-imgs",{attrs:{readOnly:e.read,keysArr:e.picArrs},on:{change:e.imageItem}})],1),a("div",[a("h3",[e._v("视频")]),a("upload-imgs",{attrs:{accept:"video/*",type:"video",keysArr:e.videoArr,videoPicArr:e.videoPicArr,readOnly:e.read},on:{change:e.videoItem}})],1)])])},Aa=[],Na=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"sagaUploads"}},[a("div",{staticClass:"saga-upload-images"},[e._l(e.imagesArr,(function(t,i){return"video"!=e.type?a("div",{staticClass:"point-view"},[a("div",{staticClass:"point-image"},[e.readOnly?e._e():a("i",{staticClass:"el-icon-delete",on:{click:function(a){return e.delImage(i,t)}}}),a("img",{directives:[{name:"load",rawName:"v-load"}],attrs:{src:e.imageGetUrl+"&key="+t.key,alt:""},on:{click:e.lookImg}})]),a("form-input",{attrs:{label:"",keys:i,value:t.name,width:10},on:{change:e.getName}})],1):e._e()})),e._l(e.imagesArr,(function(t,i){return"video"==e.type?a("div",{staticClass:"point-view"},[a("div",{staticClass:"point-image"},[e.readOnly?e._e():a("i",{staticClass:"el-icon-delete",on:{click:function(a){return e.delImage(i,t)}}}),a("video",{attrs:{width:"100%",height:"100%;",src:e.imageGetUrl+"&key="+t.key,controls:"controls"}},[e._v("您的浏览器不支持 video 标签。")])]),a("form-input",{attrs:{label:"",keys:i,value:t.name,width:10},on:{change:e.getName}})],1):e._e()})),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.uploading,expression:"uploading"}],staticStyle:{float:"left"}},[a("el-upload",{directives:[{name:"show",rawName:"v-show",value:!e.readOnly,expression:"!readOnly"}],staticClass:"avatar-uploader",staticStyle:{position:"relative"},attrs:{"http-request":e.uploadAndSubmit,"show-file-list":!1,accept:e.accept,action:"",drag:""}},[a("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),a("video",{staticStyle:{display:"none"},attrs:{id:"video",controls:""}})],1)],2),a("details-dialog",{attrs:{title:"图片",iframeSrc:e.iframeSrc,dialog:e.dialog,setData:e.imagesArr}})],1)},Pa=[],Oa=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{"label-position":"right",labelWidth:e.width+"px",model:e.formLabelAlign},nativeOn:{submit:function(e){e.preventDefault()}}},[a("el-form-item",{attrs:{label:e.label,rules:e.isRule?{required:!0,message:"不能为空"}:{}}},[e.isShow||"default"!=e.type&&"B1"!=e.type?e._e():a("el-input",{staticStyle:{width:"9rem"},attrs:{size:"small"},on:{change:e.onSubmit},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSubmit.apply(null,arguments)}},model:{value:e.formLabelAlign.name,callback:function(t){e.$set(e.formLabelAlign,"name",t)},expression:"formLabelAlign.name"}},[e.unit?a("template",{slot:"append"},[e._v(e._s(e.unit))]):e._e()],2),e.isShow||"A1"!=e.type&&"A2"!=e.type?e._e():a("el-input",{staticStyle:{width:"9rem"},attrs:{type:"number"},on:{change:e.onSubmit},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSubmit.apply(null,arguments)}},model:{value:e.formLabelAlign.name,callback:function(t){e.$set(e.formLabelAlign,"name",t)},expression:"formLabelAlign.name"}},[e.unit?a("template",{slot:"append"},[e._v(e._s(e.unit))]):e._e()],2),e.isShow||"year"!=e.type&&"C5"!=e.type?e._e():a("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",clearable:!1,placeholder:"选择日期"},on:{change:e.onSubmit},model:{value:e.formLabelAlign.name,callback:function(t){e.$set(e.formLabelAlign,"name",t)},expression:"formLabelAlign.name"}}),e.isShow||"cascader"!=e.type&&"D1"!=e.type?e._e():a("el-cascader",{attrs:{options:e.typeArr,props:e.props},on:{change:e.onSubmit},model:{value:e.formLabelAlign.name,callback:function(t){e.$set(e.formLabelAlign,"name",t)},expression:"formLabelAlign.name"}}),e.isShow||"C1"!=e.type?e._e():a("el-date-picker",{attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:MM",clearable:!1,placeholder:"选择日期"},on:{change:e.onSubmit},model:{value:e.formLabelAlign.name,callback:function(t){e.$set(e.formLabelAlign,"name",t)},expression:"formLabelAlign.name"}}),e.isShow||"B2"!=e.type?e._e():a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入内容"},on:{change:e.onSubmit},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSubmit.apply(null,arguments)}},model:{value:e.formLabelAlign.name,callback:function(t){e.$set(e.formLabelAlign,"name",t)},expression:"formLabelAlign.name"}}),e.isShow||"C6"!=e.type?e._e():a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd HH:MM",clearable:!1,placeholder:"选择日期"},on:{change:e.onSubmit},model:{value:e.formLabelAlign.name,callback:function(t){e.$set(e.formLabelAlign,"name",t)},expression:"formLabelAlign.name"}}),e.isShow||"default"!=e.type&&"B1"!=e.type?e._e():a("i",{staticClass:"el-input__icon el-icon-check hover",on:{click:e.onSubmit}}),e.isShow?a("span",{staticClass:"hover",on:{click:e.changeItem}},[e._v(" "+e._s(e.filterArr(e.formLabelAlign.name))+" "+e._s(e.unit)+" "),"X"!=e.type?a("i",{staticClass:"el-icon-edit"}):e._e()]):e._e(),e._t("mess")],2)],1)},Ra=[],Fa=a("b85c"),Ma={name:"ownerInput",props:{type:{type:String,default:"default"},value:[String,Number,Array],label:String,isRule:Boolean,keys:[String,Number],typeArr:[Array,String],unit:{type:String,default:""},width:{type:Number,default:100}},data:function(){return{formLabelAlign:{name:""},key:"",isShow:!0,props:{label:"name",value:"code",children:"content"}}},methods:{onSubmit:function(){if(""==this.formLabelAlign.name||this.formLabelAlign.name==[])this.$message.error("请确定值不为空");else if(this.isShow=!0,"cascader"==this.type||"D1"==this.type){var e=this.formLabelAlign.name;this.$emit("change",e[e.length-1],this.keys)}else this.$emit("change",this.formLabelAlign.name,this.keys)},changeItem:function(){"X"!=this.type?this.isShow=!1:this.$message("该信息点不支持编辑")},toMyNeed:function(e){var t=this;return e.map((function(e){var a={};return e.content&&0!=e.content.length&&(a.content=t.toMyNeed(e.content)),a.name=e.name,a.code=e.code,a}))},getCascaderObj:function(e,t){var a=this.getMyVal(e,t,"name");return a=a.length>1?a.join("/"):a.join(""),a},getMyVal:function(e,t,a){var i=[];if(t&&t.length)for(var n=0;n<t.length;n++){if(t[n].code==e){i.push(t[n][a]);break}if(t[n].content&&t.length)for(var r=0;r<t[n].content.length;r++){if(t[n].content[r].code==e){i.push(t[n][a]),i.push(t[n].content[r][a]);break}if(t[n].content[r].content&&t[n].content[r].content.length)for(var o=0;o<t[n].content[r].content.length;o++)if(t[n].content[r].content[o].code==e){i.push(t[n][a]),i.push(t[n].content[r][a]),i.push(t[n].content[r].content[o][a]);break}}}return i.length||(i=null),i},getMap:function(e,t){return t.map((function(e,a,i){var n,r=Object(Fa["a"])(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.code==e.code)return t=o.content,o}}catch(s){r.e(s)}finally{r.f()}return null}))},filterArr:function(e){var t="";"cascader"==this.type||this.type;return"C6"==this.type?t=""!=t?e[0]+"至"+e[1]:"--":"cascader"==this.type||"D1"==this.type?e&&e.length&&(t=this.getCascaderObj(e[e.length-1],this.typeArr,"name")||"--"):t=e||"--",t}},created:function(){Object(aa["a"])(this.typeArr)==Object&&(this.typeArr=this.toMyNeed(this.typeArr)),"cascader"==this.type||"D1"==this.type?""==this.value||void 0==this.value?this.formLabelAlign.name=[]:this.formLabelAlign.name=this.getMyVal(this.value,this.typeArr,"code"):this.formLabelAlign.name=this.value,this.key=this.label},watch:{label:function(){}}},Ea=Ma,La=(a("dcfd"),Object(l["a"])(Ea,Oa,Ra,!1,null,null,null)),$a=La.exports,qa={components:{formInput:$a,detailsDialog:wa},props:{keysArr:{type:[Array,String]},readOnly:{type:Boolean,default:!1},max:{type:[Number,String],default:6},accept:{type:String,default:"image/*"},type:{type:String,default:"image"},defined:null,videoPicArr:{type:Array,default:function(){return[]}}},data:function(){return{baseUrl:"",imageGetUrl:"/image-service/common/image_get?systemId=dataPlatform",imageUploadUrl:"/image-service/common/image_upload?systemId=dataPlatform&secret=9e0891a7a8c8e885&overwrite=true",imagesArr:[],iframeSrc:"",dialog:{details:!1},uploading:!1}},created:function(){this.imageFalg()},methods:{getName:function(e,t){this.imagesArr[t].name=e,this.$emit("change",this.imagesArr,this.defined,this.videoPicArr)},imageFalg:function(){var e=Object(aa["a"])(this.keysArr);this.imagesArr="string"==e?[this.keysArr]:ze["default"].copyArr(this.keysArr),this.keysArr||(this.imagesArr=[])},lookImg:function(){this.dialog.details=!0,this.iframeSrc=window.__systemConf.BASE_URL+":8890/photo-View.html"},delImage:function(e,t){var a=this;"video"==this.type&&(this.videoPicArr=this.videoPicArr.map((function(t){return t.key.substring(0,t.length-3)==a.imagesArr[e].key.substring(0,a.imagesArr[e].length-3)?void 0:t})).filter((function(e){return e}))),this.imagesArr.splice(e,1),this.$emit("change",this.imagesArr,this.defined,this.videoPicArr)},uploadAndSubmit:function(e,t){var a=e.file,i=new FileReader,n=this,r=a.name.split("."),o=r[r.length-1],s=ze["default"].formatDate(new Date(a.lastModified)),l=a.uid;t&&(l=t),i.onloadstart=function(){},i.onprogress=function(e){},i.onload=function(){},i.onloadend=function(){if(i.error);else{n.uploading=!0;var e=new XMLHttpRequest;e.open("POST",n.imageUploadUrl+"&key="+l+"."+o),e.send(i.result),e.onreadystatechange=function(){4==e.readyState&&200==e.status&&(n.uploading=!1,"image"==n.type&&n.imagesArr.push({name:l+"",key:l+"."+o,systemId:"dataPlatform",type:"image",createTime:s}),"mp4"==o&&(n.imagesArr.push({name:l+"",key:l+"."+o,systemId:"dataPlatform",type:"video",createTime:s}),n.creatImg(n.imageGetUrl+"&key="+l+"."+o,l)),"video"==n.type&&"png"==o&&console.log(n.videoPicArr),n.$emit("change",n.imagesArr,n.defined,n.videoPicArr))}}},i.readAsArrayBuffer(a)},dataURLtoBlob:function(e,t){for(var a=atob(e.split(",")[1]),i=[],n=0;n<a.length;n++)i.push(a.charCodeAt(n));return new Blob([new Uint8Array(i)],{type:t})},creatImg:function(e,t){var a=document.getElementById("video");a.src=e;var i=this;a.onloadeddata=function(){var e=document.createElement("canvas");e.width=300,e.height=300*this.videoHeight/this.videoWidth,e.getContext("2d").drawImage(this,0,0,e.width,e.height);var a=i.dataURLtoBlob(e.toDataURL("image/png"),"image/png"),n=new File([a],"video_image.png",{type:"image/png",lastModified:Date.now()});i.uploadAndSubmit({file:n},t)}}},watch:{keysArr:function(e){this.imageFalg()}},directives:{load:function(e){var t=document.createElement("img");t.style.position="absolute",t.style.top="-999px",t.style.opacity=0,t.src=e.src,e.src="",t.onload=function(){var a=t.width,i=t.height;a>i?(e.style.height="100%",e.style.width="auto",e.style.position="absolute",e.style.left="50%",e.style.top="0",e.style.transform="translateX(-50%)",e.style.webkitTransform="translateX(-50%) translateY(0)",e.style.MozTransform="translateX(-50%) translateY(0)",e.style.msTransform="translateX(-50%) translateY(0)",e.style.OTransform="translateX(-50%) translateY(0)"):a<i?(e.src=t.src,e.style.width="100%",e.style.height="auto",e.style.position="absolute",e.style.top="50%",e.style.left="0",e.style.transform="translateY(-50%) translateX(0)",e.style.webkitTransform="translateY(-50%) translateX(0)",e.style.MozTransform="translateY(-50%) translateX(0)",e.style.msTransform="translateY(-50%) translateX(0)",e.style.OTransform="translateY(-50%) translateX(0)"):(e.style.width="100%",e.style.height="100%",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.transform="translateY(0) translateX(0)",e.style.webkitTransform="translateY(0) translateX(0)",e.style.MozTransform="translateY(0) translateX(0)",e.style.msTransform="translateY(0) translateX(0)",e.style.OTransform="translateY(0) translateX(0)"),e.src=t.src}}}},Ba=qa,za=(a("0b3f"),Object(l["a"])(Ba,Na,Pa,!1,null,null,null)),Va=za.exports,Ua={components:{uploadImgs:Va},props:{dialog:{type:Object,default:function(){return{pic:!0}}},keysArr:{type:Array,default:function(){return[]}},read:{type:Boolean,default:!1},firmDataType:{type:String},information:{type:Object},infoType:{type:String}},data:function(){return{picArrs:[],panoramaArr:[],videoArr:[],videoPicArr:[],changeKeys:[]}},created:function(){},mounted:function(){},methods:{imageItem:function(e){this.picArrs=e,this.change()},panoramaItem:function(e){this.panoramaArr=e,this.change()},videoItem:function(e,t,a){this.videoArr=e,this.videoPicArr=a,this.change()},change:function(){var e=this.picArrs,t=this.videoArr,a=this.videoPicArr,i=this.panoramaArr;this.changeKeys=e.concat(t).concat(a).concat(i),"dialog"===this.firmDataType?this.$emit("change",this.infoType,this.firmDataType,this.changeKeys):this.$emit("change",this.changeKeys)},getArr:function(e,t,a){return e.map((function(e){return{SystemId:"dataPlatform",Name:t,Type:a,Key:e}}))},fatherTochild:function(){var e=this;this.panoramaArr=[],this.videoArr=[],this.videoPicArr=[],this.picArrs=[],this.keysArr instanceof Array?this.keysArr.map((function(t){"panorama"==t.type?e.panoramaArr.push(t):"video"==t.type?e.videoArr.push(t):"image_video"==t.type?e.videoPicArr.push(t):e.picArrs.push(t)})):(this.panoramaArr=[],this.videoArr=[],this.videoPicArr=[],this.picArrs=[])}},watch:{dialog:{deep:!0,handler:function(){this.dialog.pic&&this.fatherTochild()}}}},Ha=Ua,Ga=Object(l["a"])(Ha,Ta,Aa,!1,null,null,null),Ka=Ga.exports,Wa=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"编辑 <"+e.infoName+">",visible:e.dialog.menum,width:"670px"},on:{"update:visible":function(t){return e.$set(e.dialog,"menum",t)}}},[a("el-row",{staticStyle:{"margin-top":"20px"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e){return a("el-option",{key:e.Code,attrs:{label:e.Name,value:e.Code}})})),1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialog.menum=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.handleClickUpdate}},[e._v("确 认")])],1)],1)},Xa=[],Ya={props:{dialog:{type:Object,default:function(){return{menum:!0}}},updateInput:{type:[Array,String],default:[]},updateInfoData:{type:[Object],default:{}}},data:function(){return{value:[]}},computed:{options:function(){return this.updateInfoData.dataSource?ze["default"].formatDataSource(this.updateInfoData.dataSource):[]},infoName:function(){return this.updateInfoData.name||""}},methods:{formatValue:function(e){return e instanceof Array?JSON.parse(JSON.stringify(e)):"string"===typeof e&&""!==e?e.split(","):[]},handleClickUpdate:function(){this.$emit("change",this.value)}},watch:{dialog:{deep:!0,handler:function(){this.dialog.menum&&(this.value=this.formatValue(this.updateInput))}}}},Ja=Ya,Qa=Object(l["a"])(Ja,Wa,Xa,!1,null,null,null),Za=Qa.exports,ei=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{staticClass:"batchContainer",attrs:{title:"批量维护信息点 - "+e.mess.name,width:"65%",top:"10vh",visible:e.batchDialog},on:{"update:visible":function(t){e.batchDialog=t}}},[a("el-steps",{attrs:{active:e.active,simple:"","align-center":""}},[a("el-step",{attrs:{title:"填写需维护的信息点"},nativeOn:{click:function(t){e.active=0}}}),a("el-step",{attrs:{title:"选择批量维护的对象实例"},nativeOn:{click:function(t){e.active=1}}})],1),a("hr"),a("div",{directives:[{name:"show",rawName:"v-show",value:0===e.active,expression:"active === 0"}],staticStyle:{height:"555px",overflow:"auto"}},[a("section",[a("p",{staticClass:"text-message"},[e._v("维护多选枚举类型信息点")]),a("span",{staticClass:"small"},[e._v("请选择需维护的信息点")]),a("el-form",{ref:"ruleForm",attrs:{model:e.formData,inline:!0,"label-position":"left"}},e._l(e.tableHeader,(function(t){return a("div",{directives:[{name:"show",rawName:"v-show",value:"MENUM"===t.dataType||"ENUM"==t.dataType&&t.multiple||"BOOLEAN"==t.dataType&&t.multiple,expression:"\n item.dataType === 'MENUM' || (item.dataType == 'ENUM' && item.multiple) || (item.dataType == 'BOOLEAN' && item.multiple)\n "}],key:t.code,staticStyle:{width:"50%",display:"inline-block"}},["MENUM"===t.dataType||"ENUM"==t.dataType&&t.multiple||"BOOLEAN"==t.dataType&&t.multiple?a("el-form-item",{class:{FloorTypeSelect:"MENUM"==t.dataType||"ENUM"==t.dataType&&t.multiple||"BOOLEAN"==t.dataType&&t.multiple},attrs:{label:t.name,prop:t.code}},[a("el-select",{attrs:{"collapse-tags":"",multiple:"",placeholder:"请选择"},model:{value:e.formData[t.path],callback:function(a){e.$set(e.formData,t.path,a)},expression:"formData[item.path]"}},e._l(e.formatDataSource(t.dataSource),(function(e){return a("el-option",{key:t.code+"-"+e.Code,attrs:{label:e.Name,value:e.Code}})})),1)],1):e._e()],1)})),0)],1),a("section",[a("p",{staticClass:"text-message"},[e._v("维护有多个值的信息点")]),a("span",{staticClass:"small"},[e._v("选择值的更新方式")]),a("el-radio-group",{model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[a("el-radio",{attrs:{label:1}},[e._v("以增量方式维护")]),a("el-radio",{attrs:{label:2}},[e._v("以覆盖方式维护")])],1),a("div",{staticStyle:{margin:"15px"}}),a("div",{staticClass:"checkbox"},e._l(e.newEnclosure,(function(t){return a("p",{key:t.code},[a("el-checkbox",{model:{value:e.form[t.path],callback:function(a){e.$set(e.form,t.path,a)},expression:"form[item.path]"}}),a("span",{staticStyle:{cursor:"pointer"}},[e._v(e._s(t.name))]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.multiple(t.path)}}},[e._v("请选择")]),e._l(t.value,(function(t){return a("span",{key:t.key,staticClass:"text-color"},[e._v(e._s(e._f("filterImgName")(t.name)))])}))],2)})),0)],1)]),a("div",{directives:[{name:"show",rawName:"v-show",value:1===e.active,expression:"active === 1"}],staticClass:"all-message"},[a("el-row",{staticClass:"filters"},[a("el-col",{staticStyle:{width:"268px"},attrs:{span:7}},[a("el-input",{attrs:{placeholder:"输入设备名称、设备本地编码、数字化交付编码进行查询",clearable:""},on:{clear:e.inputMsg},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.inputMsg.apply(null,arguments)}},model:{value:e.keycode,callback:function(t){e.keycode=t},expression:"keycode"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"suffix"},on:{click:e.inputMsg},slot:"suffix"})])],1),a("el-col",{staticStyle:{padding:"0 0"},attrs:{span:8.5}},[a("floor-cascader",{ref:"buildFloor",staticStyle:{"margin-left":"15px"},on:{change:e.changeFloor}})],1)],1),a("el-table",{ref:"multipleTable",staticStyle:{width:"100%","margin-bottom":"10px"},attrs:{data:e.tableData,height:"460","tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{label:"设备本地名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.localName))]}}])}),a("el-table-column",{attrs:{prop:"localId",label:"设备本地编码"}}),a("el-table-column",{attrs:{label:"数字化交付编码","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.infos&&t.row.infos.digitalDeliveryID?t.row.infos.digitalDeliveryID:""))])]}}])}),a("el-table-column",{attrs:{prop:"build",label:"所属建筑楼层","show-overflow-tooltip":""}})],1),a("my-pagination",{attrs:{page:e.page},on:{change:e.getAllData}})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:0===e.active,expression:"active === 0"}],staticClass:"next-step",on:{click:e.next}},[e._v("下一步 ")]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1===e.active,expression:"active === 1"}],staticStyle:{"margin-right":"10px"},on:{click:function(t){e.active=0}}},[e._v("上 一 步 ")]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1===e.active,expression:"active === 1"}],attrs:{type:"primary",loading:e.loading},on:{click:e.maintenanceSelect}},[e._v("维护已选 ")])],1)],1)},ti=[],ai=a("15fd"),ii=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"current-page":e.page.currentPage,"page-sizes":e.page.sizes,"page-size":e.page.size,layout:e.isSmall?"total, sizes, prev, pager, next, jumper":"prev, pager, next",total:e.page.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentPage":function(t){return e.$set(e.page,"currentPage",t)},"update:current-page":function(t){return e.$set(e.page,"currentPage",t)}}})],1)},ni=[],ri={name:"pagination",props:{page:{type:Object},isSmall:{type:Boolean,default:!0}},methods:{handleSizeChange:function(e){this.page.size=e,this.change()},handleCurrentChange:function(e){this.page.currentPage=e,this.change()},change:function(){this.$emit("change")}}},oi=ri,si=(a("1c8b"),Object(l["a"])(oi,ii,ni,!1,null,null,null)),li=si.exports,ci=a("cdd7"),ui=["id"],di={name:"batchDialog",props:["mess","tableHeader","information","newEnclosure"],components:{myPagination:li,floorCascader:Ye},data:function(){return{formData:{},form:{},batchDialog:!1,loading:!1,active:0,radio:1,checkedFile:[],multipleSelection:[],allObject:[],deviceList:[],keycode:"",Buildfloor:["all"],page:{size:100,sizes:[100,200,500,1e3],total:0,currentPage:1},videoModel:{archive:!1,checkReport:!1,drawing:!1,installDrawing:!1,insuranceFile:!1,installPic:!1,nameplate:!1,pic:!1}}},watch:{information:function(){return this.information},newEnclosure:{immediate:!0,handler:function(e){this.newEnclosure=e}},batchDialog:{immediate:!0,handler:function(e){var t=this;e&&(this.active=0,this.page.pageSize=1,this.keycode="",this.Buildfloor=["all"],this.$nextTick((function(){t.$refs.buildFloor&&t.$refs.buildFloor.setValue(["all"])})),this.getEquipData())}}},created:function(){this.$forceUpdate()},computed:{tableData:function(){return this.allObject.map((function(e){var t="";return t=e.building&&e.floor?e.building.localName+" - "+e.floor.localName:e.building?e.building.localName:e.floor?e.floor.localName:"-",e.build=t,e})),this.allObject}},filters:{filterImgName:function(e){return e&&e.length>16?e.substring(0,12)+"...":e},filterImgNames:function(e){return e&&e.length>16?e.substring(0,16)+"...":e}},methods:{formatDataSource:function(e){return e?ze["default"].formatDataSource(e):[]},next:function(){var e=this,t=!1;if(Object.keys(this.formData).forEach((function(a){e.formData[a].length&&(t=!0)})),!t&&!Object.keys(this.form).length)return this.$message({message:"请维护信息后再操作!",type:"warning"}),!1;this.active++},getEquipData:function(){var e=this;if(this.mess.deviceId){var t={cascade:[{name:"property"},{Name:"building",Projection:["localName","name","id"]},{Name:"floor",Projection:["localName","name","id"]}],filters:"classCode='".concat(this.mess.deviceId,"'"),pageSize:this.page.size,orders:"createTime desc, id desc",pageNumber:this.page.currentPage,projection:["buildingId","floorId","classCode","localName","localID","id","bimId"]};"noKnow"==this.Buildfloor[0]?t.filters+=";buildingId isNull":this.Buildfloor[0]&&"all"!=this.Buildfloor[0]&&(t.filters+=";buildingId='".concat(this.Buildfloor[0],"'")),"noKnow"==this.Buildfloor[1]?t.filters+=";floorId isNull":this.Buildfloor[1]&&"all"!=this.Buildfloor[1]&&(t.filters+=";floorId='".concat(this.Buildfloor[1],"'")),""!=this.keycode&&(t.filters+=";localName contain '".concat(this.keycode,"' or localId contain '").concat(this.keycode,"' or infos.digitalDeliveryID contain '").concat(this.keycode,"'")),ut.a.queryEquip(t).then((function(t){e.multipleSelection=[],e.allObject=t.content,e.page.total=t.total}))}},inputMsg:function(){this.page.pageNumber=1,this.getEquipData()},changeFloor:function(e){this.Buildfloor=e,this.page.pageNumber=1,this.getEquipData()},maintenanceSelect:function(){var e=this;if(!this.multipleSelection.length)return this.$message({message:"还没有选择实例哦",type:"warning"}),!1;var t=[];this.multipleSelection.forEach((function(e){var a=e.id;t.push({id:a})}));var a={};this.newEnclosure.forEach((function(e){var t=e.path,i=e.value;return a[t]=i}));var i=[];if(this.newEnclosure.filter((function(t){return e.form[t.path]&&t.value})).forEach((function(e){var t=e.code,a=e.value;return i[t]=a})),console.log(this.radio),1===this.radio){var n=ci["toolUtils"].formatData(this.formData),r=this.deepCopy(t).map((function(e){return Object(v["a"])(Object(v["a"])({},e),n)})),o=this.deepCopy(t).map((function(e){return Object(v["a"])(Object(v["a"])({},e),i)}));this.upDataDevice(1,r,o)}else if(2===this.radio){var s={};this.newEnclosure.forEach((function(e){var t=e.path,a=e.value;return s[t]=a}));var l=Object.assign(s,this.formData);l=ci["toolUtils"].formatData(l);var c=this.deepCopy(t).map((function(e){return Object(v["a"])(Object(v["a"])({},e),l)}));this.upDataDevice(2,c)}else this.closeDialog()},upDataDevice:function(e,t,a){var i=this;this.loading=!0;var n={content:t},r={content:a};if(1===e){var o=this.filterCheck(n,"sole"),s=this.filterCheck(r,"multiple");o&&lt.a.updateEquip(n).then((function(e){"success"===e.result?(i.loading=!1,i.$emit("upDataDevice")):i.$message.error(e.message),i.closeDialog()})),s&&(r.content.map((function(e){return e.equipId=e.id,delete e.id,e})),setTimeout((function(){lt.a.queryUpdate(r).then((function(e){"success"===e.result?(i.loading=!1,i.$emit("upDataDevice")):i.$message.error(e.message),i.closeDialog()}))}))),o||s||(this.loading=!1,this.closeDialog())}else if(2===e){var l=this.filterCheck(n,"sole");l?lt.a.updateEquip(n).then((function(e){"success"===e.result?(i.loading=!1,i.$emit("upDataDevice")):i.$message.error(e.message),i.closeDialog()})):(this.loading=!1,this.closeDialog())}},filterCheck:function(e,t){if("sole"===t){var a,i=Object(Fa["a"])(e.content);try{for(i.s();!(a=i.n()).done;){var n=a.value;for(var r in n.infos)Array.isArray(n.infos[r])&&n.infos[r].length<1&&delete n.infos[r];return Object.keys(n.infos).length}}catch(u){i.e(u)}finally{i.f()}}else if("multiple"===t){var o=[];e.content.forEach((function(e){e.id;var t=Object(ai["a"])(e,ui);o.push({infos:t})}));for(var s=0,l=o;s<l.length;s++){var c=l[s];return Object.keys(c.infos).length}}},closeDialog:function(){this.batchDialog=!1,this.clearData()},clearData:function(){var e=this;for(var t in this.active=0,this.radio=1,this.formData={},this.form)this.form[t]=!1;this.newEnclosure.map((function(t){e.$set(t,"value",[])}))},handleSelectionChange:function(e){this.multipleSelection=e},getAllData:function(){this.getEquipData()},multiple:function(e){this.$emit("multiples",e)},deepCopy:function(e){return JSON.parse(JSON.stringify(e))}}},pi=di,hi=(a("ad3b"),Object(l["a"])(pi,ei,ti,!1,null,"16068254",null)),fi=hi.exports,mi=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"所属系统实例",visible:e.dialog.systemType,width:"900px"},on:{"update:visible":function(t){return e.$set(e.dialog,"systemType",t)}}},[a("div",[a("div",{attrs:{id:"systemType"}},["read"!=e.type?a("div",{staticClass:"title-search query-form",staticStyle:{padding:"10px","margin-bottom":"10px"}},[a("el-row",[a("el-col",{attrs:{span:10}},[a("span",[e._v("系统所属建筑")]),a("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getTableData},model:{value:e.buildId,callback:function(t){e.buildId=t},expression:"buildId"}},e._l(e.options,(function(e){return a("el-option",{key:e.id,attrs:{label:e.localName,value:e.id}})})),1)],1),a("el-col",{attrs:{span:14}},[a("el-input",{staticStyle:{width:"300px","margin-right":"10px"},attrs:{placeholder:"输入名称或编码进行查询",size:"small",clearable:""},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}}),a("el-button",{attrs:{size:"small"},on:{click:e.getTableData}},[e._v("查找")])],1)],1)],1):e._e(),a("el-table",{ref:"multipleTable",staticClass:"data-table",staticStyle:{width:"100%"},attrs:{border:"","row-key":"id",data:e.tableData},on:{"selection-change":e.handleSelectionChange}},["read"!=e.type?a("el-table-column",{attrs:{type:"selection","reserve-selection":!0,disabled:!0,width:"55"}}):e._e(),a("el-table-column",{attrs:{label:"系统名称","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.localName||t.row.name))]}}])}),a("el-table-column",{attrs:{label:"本地编码","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.localId||"--"))]}}])}),a("el-table-column",{attrs:{label:"系统类型",prop:"categoryName","header-align":"center"}}),a("el-table-column",{attrs:{label:"详情","header-align":"center",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookDeatils(t.row)}}},[e._v("详情")])]}}])})],1)],1)]),"read"!=e.type?a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.getChange}},[e._v("确 定")])],1):e._e(),e.iframeShow?a("el-dialog",{attrs:{title:"系统详情",visible:e.iframeShow,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.iframeShow=t}}},[a("iframe",{staticStyle:{width:"100%",height:"500px"},attrs:{id:"google_ads_frame2",name:"google_ads_frame2",frameborder:"0",src:e.iframeSrc,marginwidth:"0",marginheight:"0",vspace:"0",hspace:"0",allowtransparency:"true",scrolling:"no",allowfullscreen:"true"}})]):e._e()],1)},gi=[],vi=(a("841c"),{components:{myPagination:li},props:{dialog:{type:Object,default:function(){return{systemType:!0}}},graphyId:{type:String,default:""},device:{},curDevice:{default:""},type:{type:String,default:"read"},list:{type:[Array]}},data:function(){return{search:"",tableData:[],systemList:[],linkSystemData:[],multipleSelection:[],iframeSrc:"",iframeShow:!1,buildId:"all",options:[]}},computed:Object(v["a"])({},Object(y["b"])("layout",["projectId","secret","userId"])),mounted:function(){},methods:{getData:function(){var e=this,t={orders:"localName asc",pageNumber:1,pageSize:1e3};lt.a.buildingQuery(t,(function(t){if("success"==t.result){var a=t.content;a.unshift({id:"all",localName:"全部"},{id:"noKnow",localName:"未明确建筑的系统"}),e.options=a}else e.$message.error(t.message)}))},handleSelectionChange:function(e){this.multipleSelection=e},toggleSelection:function(e){var t=this;this.$refs.multipleTable&&this.$refs.multipleTable.clearSelection(),e.length&&this.list.length&&e.map((function(e){t.list.map((function(a){e.id==a.id&&t.$refs.multipleTable.toggleRowSelection(e)}))}))},getChange:function(){this.createRelatSys(),this.$emit("change",this.multipleSelection),this.dialog.systemType=!1,this.multipleSelection=[]},lookDeatils:function(e){this.$message("开发中...")},getTableData:function(){var e=this,t={data:{filters:'classCode="'.concat(this.device.deviceId.substring(0,4),'"'),pageNumber:1,pageSize:1e3}};"noKnow"===this.buildId?t.buildingId=1:this.buildId&&"all"!=this.buildId&&(t.buildingId=this.buildId),this.search&&(t.data.filters+=';localName contain "'.concat(this.search,'" or localId contain "').concat(this.search,'"')),lt.a.querySysLinkBuild(t,(function(t){e.tableData=t.content,e.toggleSelection(t.content)}))},getSystemTableData:function(){var e=this,t=this.linkSystemData.map((function(e){return e.id}));if(t.length){var a={data:{filters:"id in ".concat(JSON.stringify(t)),pageNumber:1,pageSize:1e3}};lt.a.querySysLinkBuild(a,(function(t){e.tableData=t.content}))}else this.tableData=[]},getLinkSystemData:function(){this.linkSystemData=this.list?JSON.parse(JSON.stringify(this.list)):[],"read"==this.type&&this.getSystemTableData()},createRelatSys:function(){var e=this;if(this.curDevice){var t={equipId:this.curDevice,sysIdList:[]};this.multipleSelection.map((function(e){t.sysIdList.push(e.id)})),lt.a.equipLinkSys(t,(function(t){e.multipleSelection=[]}))}}},watch:{dialog:{deep:!0,handler:function(){this.dialog.systemType&&(this.getData(),this.tableData=[],"read"==this.type?this.getLinkSystemData():(this.getLinkSystemData(),this.getTableData()))}},projectId:function(){this.buildId="all",this.options=[],this.getData()}}}),yi=vi,bi=(a("0fe0"),Object(l["a"])(yi,mi,gi,!1,null,null,null)),wi=bi.exports,Ci=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{staticClass:"iframe",attrs:{title:e.title,"append-to-body":"",visible:e.dialog.details,width:"500px"},on:{"update:visible":function(t){return e.$set(e.dialog,"details",t)}}},[a("iframe",{attrs:{id:"google_ads_frame2",name:"google_ads_frame2",frameborder:"0",width:"100%",height:"600px",src:e.iframeSrc,marginwidth:"0",marginheight:"0",vspace:"0",hspace:"0",allowtransparency:"true",scrolling:"no",allowfullscreen:"true"}})])},Ii=[],xi={props:{iframeSrc:{type:String,default:""},title:{type:String,default:"详情"},dialog:{type:Object,default:function(){return{details:!1}}},setData:{type:[Array,String],default:function(){return[]}}},methods:{setMess:function(){var e=this;this.$nextTick((function(t){var a=document.getElementById("google_ads_frame2");a.onload=function(){a.contentWindow.postMessage(e.setData,"*")}}))}},watch:{dialog:{deep:!0,handler:function(){this.dialog.details&&this.setMess()}}}},Si=xi,ki=(a("f413"),Object(l["a"])(Si,Ci,Ii,!1,null,"e9065004",null)),_i=ki.exports,Di=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"关联资产",visible:e.dialog.changeRea,width:"800px"},on:{"update:visible":function(t){return e.$set(e.dialog,"changeRea",t)}}},[a("div",[a("div",{attrs:{id:"changeRea"}},[a("div",{staticClass:"title-search",staticStyle:{"margin-bottom":"10px"}},[a("floor-cascader",{on:{change:e.changeFloor}}),a("el-input",{staticStyle:{width:"250px",marginLeft:"30px"},attrs:{placeholder:"输入本地名称或本地编码查询",size:"small",clearable:""},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}}),a("el-button",{attrs:{size:"small"},on:{click:e.getPropertyData}},[e._v("查找")])],1),a("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,height:"300px"}},[a("el-table-column",{attrs:{label:"资产名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{ref:t.row.id,attrs:{label:t.row.id,value:t.row.localName||t.row.name}},[e._v(" "+e._s(t.row.localName)+" ")])]}}])}),a("el-table-column",{attrs:{label:"本地编码"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.localId))]}}])}),a("el-table-column",{attrs:{prop:"name",label:"所在楼层"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.building&&t.row.building.localName?t.row.building.localName:"")+"-"+e._s(t.row.floor&&t.row.floor.localName?t.row.floor.localName:"")+" ")]}}])}),a("el-table-column",{attrs:{label:"设备族"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.equipFamilyList[0].familyName)+" ")]}}])}),a("el-table-column",{attrs:{label:"安装位置"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.infos&&t.row.infos.installLocation?t.row.infos.installLocation:"--")+" ")]}}])})],1)],1),a("my-pagination",{staticStyle:{"margin-top":"10px"},attrs:{page:e.page},on:{change:e.changed}}),a("div",{staticClass:"footer"},[a("el-button",{staticStyle:{display:"block",margin:"10px auto 0"},attrs:{type:"primary"},on:{click:e.clickTrue}},[e._v("确 定")])],1)],1)])])},ji=[],Ti={components:{myPagination:li,floorCascader:Ye},props:{dialog:{type:Object,default:function(){return{changeRea:!0}}},category:{type:Object,default:function(){return{}}}},data:function(){return{search:"",radio:"",tableData:[],page:{size:50,sizes:[10,30,50,100,150,200],total:0,currentPage:1},mess:{},codeListCode:[]}},computed:Object(v["a"])({},Object(y["b"])("layout",["projectId","secret","userId"])),mounted:function(){},methods:{clickTrue:function(){this.radio?(this.$emit("changeProperty",{propertyId:this.radio,linkEquipLocalName:this.$refs[this.radio].value}),this.dialog.changeRea=!1):this.$message("请先选择资产")},changeFloor:function(e){this.mess={buildId:e[0]||"",floorId:e[1]||""},this.getPropertyData()},changed:function(){this.getPropertyData()},changePage:function(){this.page={size:50,sizes:[10,30,50,100],total:0,currentPage:1},this.getPropertyData()},getPropertyData:function(){var e=this,t={cascade:[{name:"equipFamilyList",projection:["family","familyName"]},{name:"building",projection:["localName","name","id"]},{name:"floor",projection:["localName","name","id"]}],filters:'equipId isNull;family="'.concat(this.category.assetType,'"'),pageNumber:this.page.currentPage,pageSize:this.page.size};"noKnow"==this.mess.buildId?t.filters+=";buildingId isNull":this.mess.buildId&&"all"!=this.mess.buildId&&(t.filters+=";buildingId='".concat(this.mess.buildId,"'")),"noKnow"==this.mess.floorId?t.filters+=";floorId isNull":this.mess.floorId&&"all"!=this.mess.floorId&&(t.filters+=";floorId='".concat(this.mess.floorId,"'")),this.search&&(t.filters+=";name contain '".concat(this.search,"' || localName contain '").concat(this.search,"' || localId contain '").concat(this.search,"'")),lt.a.queryProperty(t,(function(t){e.tableData=t.content,e.page.total=t.total}))}},watch:{dialog:{deep:!0,handler:function(){this.dialog.changeRea&&(this.changePage(),this.radio="")}}}},Ai=Ti,Ni=(a("2476"),Object(l["a"])(Ai,Di,ji,!1,null,null,null)),Pi=Ni.exports,Oi=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.dialog.lookPic?a("el-dialog",{attrs:{title:"上传图片",visible:e.dialog.lookPic,width:"500px"},on:{"update:visible":function(t){return e.$set(e.dialog,"lookPic",t)}}},[a("div",{staticStyle:{"max-height":"500px","overflow-y":"auto"}},[a("el-tabs",{attrs:{type:"border-card"}},[a("el-tab-pane",[a("span",{attrs:{slot:"label"},slot:"label"},[e._v("图片")]),a("div",{staticStyle:{width:"500px","max-height":"500px"}},[e.picArrs.length?a("div",[a("iframe",{attrs:{id:"google_ads_frame3",name:"google_ads_frame3",frameborder:"0",width:"100%",height:"500px",src:e.iframeSrc,marginwidth:"0",marginheight:"0",vspace:"0",hspace:"0",allowtransparency:"true",scrolling:"no",allowfullscreen:"true"}})]):e._e(),e.picArrs.length?e._e():a("div",[e._v("暂无图片")])])]),e.videoArr.length?a("el-tab-pane",[a("span",{attrs:{slot:"label"},slot:"label"},[e._v("视频")]),a("div",{staticStyle:{width:"500px"}},e._l(e.videoArr,(function(e,t){return a("div",{key:t,staticStyle:{width:"200px",height:"200px",float:"left",margin:"5px"}},[a("video",{attrs:{width:"100%",height:"100%",src:"/image-service/common/image_get?systemId=dataPlatform&key="+e.key,controls:"",poster:"/image-service/common/image_get?systemId=dataPlatform&key="+e.key+"&width=200"}})])})),0)]):e._e()],1)],1)]):e._e()},Ri=[],Fi={components:{uploadImgs:Va},props:{dialog:{type:Object,default:function(){return{lookPic:!0}}},keysArr:{type:Array,default:function(){return[]}},read:{type:Boolean,default:!1}},data:function(){return{picArrs:[],panoramaArr:[],videoArr:[],videoPicArr:[],changeKeys:[],iframeSrc:""}},created:function(){},mounted:function(){},methods:{imageItem:function(e){this.picArrs=e,this.change()},panoramaItem:function(e){this.panoramaArr=e,this.change()},videoItem:function(e,t,a){this.videoArr=e,this.videoPicArr=a,this.change()},change:function(){var e=this.picArrs,t=this.videoArr,a=this.videoPicArr,i=this.panoramaArr;this.changeKeys=e.concat(t).concat(a).concat(i),console.log(this.changeKeys),this.$emit("change",this.changeKeys)},getArr:function(e,t,a){return e.map((function(e){return{systemId:"dataPlatform",name:t,type:a,key:e}}))},fatherTochild:function(){var e=this;this.panoramaArr=[],this.videoArr=[],this.videoPicArr=[],this.picArrs=[],this.keysArr instanceof Array?this.keysArr.map((function(t){"panorama"==t.type?e.panoramaArr.push(t):"video"==t.type?e.videoArr.push(t):"image_video"==t.type?e.videoPicArr.push(t):e.picArrs.push(t)})):(this.panoramaArr=[],this.videoArr=[],this.videoPicArr=[],this.picArrs=[]),this.picArrs.length&&this.$nextTick((function(t){e.iframeSrc=window.__systemConf.BASE_URL+":8890/photo-View.html";var a=document.getElementById("google_ads_frame3");console.log(a),a.onload=function(){console.log("onload");var t=e.picArrs.map((function(e){return{key:e.Key,name:e.Name,type:e.Type}}));a.contentWindow.postMessage(t,"*")}}))}},watch:{dialog:{deep:!0,handler:function(){this.dialog.lookPic&&this.fatherTochild()}}}},Mi=Fi,Ei=Object(l["a"])(Mi,Oi,Ri,!1,null,null,null),Li=Ei.exports,$i=a("4d9f"),qi=a.n($i),Bi=(a("176a"),a("88ff")),zi={props:["myParam"],components:{qrcode:Mt,uploadFilesDialog:ua,uploadImgDialog:ja,picDialog:Ka,myPagination:li,systemType:wi,detailsDialog:_i,changeRea:Pi,lookPic:Li,myCascader:At,batchDialog:fi,bimDialog:Jt,menum:Za},created:function(){Ue.a.getData(this.buildFloorData)},activated:function(){this.$route.meta.isBack||(this.onlyRead=!1,this.isShowDelivered=!1,this.showInfoList=[],this.showType="Visible")},computed:Object(v["a"])(Object(v["a"])({},Object(y["b"])("layout",["projectId","secret","userId","group_code"])),{},{showTypes:function(){return this.onlyRead,[{value:"Visible",label:"只看采集信息"},{value:"all",label:"全部"}]},batchDialogShow:function(){return this.$refs.batchDialogs.batchDialog}}),data:function(){return{options:[{value:!0,label:"只读模式"},{value:!1,label:"编辑模式"}],buildFloorData:[],tableData:[],mess:{},tableHeader:null,page:{size:50,sizes:[10,30,50,100,150,200],total:0,currentPage:1},pageKey:(new Date).getTime(),myDialog:{qrcode:!1,bimcode:!1,uploadFiles:!1,uploadImgs:!1,pic:!1,addDevice:!1,systemType:!1,details:!1,changeRea:!1,lookPic:!1,update:!1,menum:!1},row:null,filesArr:[],messKey:null,imgsArr:[],picsArr:[],systemList:[],copyMain:null,iframeSrc:"",id:0,onlyRead:!1,showType:"Visible",linkNameFalg:!0,qrcodeUrl:"",bimcodeobj:"",loading:!1,deviceType:{},floorData:[],curDevice:"",addData:{},showParts:!1,inputMap:{flowBuild:{editable:!0,code:"flowBuild",name:"建筑楼层",path:"flowBuild",category:"STATIC",dataType:"ENUM"}},updateInputShow:!1,updateInfoData:{},updateInfoPoint:"",updateInput:"",firmDataType:"row",information:{archive:{Archive:[],name:"设备文档",code:"infos.PhotoDoc.Archive",num:14},checkReport:{CheckReport:[],name:"安装质检报告",code:"infos.Siteinstall.CheckReport",num:18},drawing:{Drawing:[],name:"设备图纸",code:"infos.PhotoDoc.Drawing",num:13},installDrawing:{InstallDrawing:[],name:"安装图纸",code:"infos.Siteinstall.InstallDrawing",num:16},installPic:{InstallPic:[],name:"安装照片",code:"infos.Siteinstall.InstallPic",num:17},insuranceFile:{InsuranceFile:[],name:"保险文件",code:"infos.InsuranceDoc.InsuranceFile",num:11},nameplate:{Nameplate:[],name:"设备铭牌照片",code:"infos.PhotoDoc.Nameplate",num:12},pic:{Pic:[],name:"设备照片",code:"infos.PhotoDoc.Pic",num:15}},infoType:"",newEnclosure:[],headerOptions:[],showInfoList:[],isShowDelivered:!1}},methods:{getHeaderData:function(e){var t=this.$route.params;!t.used&&t.pageSize?(this.page.currentPage=Number(t.pageNo),this.page.size=Number(t.pageSize),this.onlyRead=t.readOnly,t.used=!0):this.page.currentPage=1,this.pageKey=(new Date).getTime(),this.mess=e,this.changeCader(),this.mess.deviceId?(this.showInfoList=[],this.isShowDelivered?this.getDeliveredInfos(this.mess.deviceId):this.getDataDictionary(this.mess.deviceId)):(this.tableHeader=[],this.tableData=[])},getDeliveredInfos:function(e){var t=this;return Object(W["a"])(regeneratorRuntime.mark((function a(){var i,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i={classCode:e,objType:"equipment"},"noKnow"==t.mess.buildId?i.buildingId="isNull":t.mess.buildId&&"all"!=t.mess.buildId&&(i.buildingId="".concat(t.mess.buildId)),"noKnow"==t.mess.floorId?i.floorId="isNull":t.mess.floorId&&"all"!=t.mess.floorId&&(i.floorId="".concat(t.mess.floorId)),a.next=5,et.a.deliveredInfos(i);case 5:n=a.sent,t.tableHeader=n.content,t.codeToDataSource={},t.tableHeader.forEach((function(e){if(e.path&&(t.inputMap[e.path]=e),e.dataSource)try{t.codeToDataSource[e.code]={},e.dataSource.forEach((function(a){t.codeToDataSource[e.code][a.code]=a.name}))}catch(a){console.log(a)}})),t.getTableData(),t.newEnclosure=n.content.filter((function(e){return e.dataType==yt.ATTACHMENT&&1==e.editable}));case 11:case"end":return a.stop()}}),a)})))()},getDataDictionary:function(e){var t=this;return Object(W["a"])(regeneratorRuntime.mark((function a(){var i,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i={type:e,orders:"sort asc, name desc"},a.next=3,et.a.getDataDictionary(i);case 3:n=a.sent,t.tableHeader=n.content,t.codeToDataSource={},t.tableHeader.forEach((function(e){if(e.path&&(t.inputMap[e.path]=e),e.dataSource)try{t.codeToDataSource[e.code]={},e.dataSource.forEach((function(a){t.codeToDataSource[e.code][a.code]=a.name}))}catch(a){console.log(a)}})),t.getTableData(),t.newEnclosure=n.content.filter((function(e){return e.dataType==yt.ATTACHMENT&&1==e.editable}));case 9:case"end":return a.stop()}}),a)})))()},closeBIM:function(e){this.myDialog.bimcode=!1,"update"==e&&this.getTableData()},getTableData:function(e){var t=this;if(e&&(this.mess.keyWord=e,this.page.currentPage=1),this.loading=!0,this.mess.deviceId){var a={pageSize:this.page.size,orders:"createTime desc,id desc,localId desc,localName desc",pageNumber:this.page.currentPage,filters:"classCode='".concat(this.mess.deviceId,"'")};"noKnow"==this.mess.buildId?a.filters+=";buildingId isNull":this.mess.buildId&&"all"!=this.mess.buildId&&(a.filters+=";buildingId='".concat(this.mess.buildId,"'")),"noKnow"==this.mess.floorId?a.filters+=";floorId isNull":this.mess.floorId&&"all"!=this.mess.floorId&&(a.filters+=";floorId='".concat(this.mess.floorId,"'")),this.mess.keyWord&&(a.filters+=";localName contain '".concat(this.mess.keyWord,"' || localId contain '").concat(this.mess.keyWord,"' || cADID contain '").concat(this.mess.keyWord,"' || infos.digitalDeliveryID contain '").concat(this.mess.keyWord,"'")),ut.a.getEquipTableCon(a).then((function(e){t.loading=!1,t.tableData=e.content.map((function(e){return e.hasOwnProperty("buildingId")&&e.hasOwnProperty("floorId")?e.flowBuild=e.buildingId+"-"+e.floorId:e.hasOwnProperty("buildingId")&&!e.hasOwnProperty("floorId")&&(e.flowBuild=e.buildingId),e})),t.copyMain=ze["default"].deepCopy(t.tableData),t.page.total=e.total,t.tableData&&t.tableData.length&&(t.onlyRead&&t.getBatch(t.tableData),t.initTable())}))}else this.loading=!1,this.$message.info("请选择设备类别!")},getBatch:function(e){var t=this,a={groupCode:this.group_code,appId:"datacenter",projectId:this.projectId,data:[]};this.tableHeader.map((function(t){"STATIC"!=t.category&&e.map((function(e){var i=ze["default"].dataForKey(e,t.path);i&&a.data.push({objectId:e.id,infoCode:t.code})}))})),a.data.length&&lt.a.BeatchQueryParam(a).then((function(a){if(!t.onlyRead)return!1;t.tableData=e.map((function(e){return a.data.map((function(a){e.id==a.objectId&&(a.data||0==a.data?t.tableHeader.map((function(i){if(i.code==a.infoCode){var n=a.data;t.codeToDataSource[a.infoCode]&&(n=t.codeToDataSource[a.infoCode][a.data]),ze["default"].setDataForKey(e,i.path,n)}})):t.tableHeader.map((function(t){t.code==a.infoCode&&ze["default"].setDataForKey(e,t.path,a.error?a.value?"表号功能号格式错误":"表号功能号不存在":"暂未采集到实时数据")})))})),e})),t.hot.loadData(t.tableData)}))},changeAssetsFalg:function(){var e=this;this.linkNameFalg?this.linkNameFalg=!1:this.$confirm("<p>真的要在这里修改设备关联的资产么?</p><p>真的能通过列表信息找到想关联的资产么?</p><p>在这里修改关联的资产一定是因为之前关联错了要修改么?</p>","提示",{dangerouslyUseHTMLString:!0,confirmButtonText:"没错!我要改关联的资产",cancelButtonText:"我就点开看看",confirmButtonClass:"cancelButtonClass",cancelButtonClass:"cancelButtonClass"}).then((function(t){e.linkNameFalg=!0})).catch((function(t){e.$message("取消")}))},undo:function(){this.hot.undo()},reset:function(){this.getTableData()},addDevice:function(){var e=this;this.myDialog.addDevice=!0,this.mess.deviceId&&this.$nextTick((function(){e.$refs.cascader.setValue(e.mess.deviceId),e.changeAddType({code:e.mess.deviceId,facility:e.mess.name})}))},toAddDevice:function(){this.addData.deviceId?(this.myDialog.addDevice=!1,this.$router.push({path:"/ledger/deviceadd",query:this.addData})):this.$message.info("请选择设备类别后再操作!")},changeAddType:function(e){this.addData.deviceId=e.code,this.addData.name=e.facility,this.addData.showType=this.showType},download:function(){if(this.onlyRead)this.$message("下载需在编辑状态下");else if(this.hot){var e=this.mess.name+"-页数:"+this.page.currentPage+"-个数:"+this.tableData.length+"-总个数:"+this.page.total;this.hot.getPlugin("exportFile").downloadFile("csv",{filename:e,columnHeaders:!0,exportHiddenRows:!0,exportHiddenColumns:!0,rowHeaders:!0})}else this.$message("请确定存在表格")},handleChangeShowType:function(){this.showInfoList=[],this.initTable()},formatHeaderData:function(e){var t=ze["default"].copyArr(e),a=St.headerTextFilter(t,"equipment",this.onlyRead,this.showType,!0);return this.showParts?a.unshift("操作","所属系统实例","包含的部件"):a.unshift("操作","所属系统实例"),"all"==this.showType&&this.showParts?a.splice(5,0,"所属建筑楼层"):"all"!=this.showType||this.showParts||a.splice(4,0,"所属建筑楼层"),a},formatHeaderType:function(e){var t=ze["default"].copyArr(e),a=St.headerTypeFilter(t,"equipment",this.onlyRead,this.showType,!0);return this.headerOptions="all"===this.showType?ze["default"].copyArr(this.tableHeader):this.tableHeader.filter((function(e){return e.visible})),this.showParts?a.unshift({data:"caozuo",renderer:ze["default"].lookDetails,readOnly:!0},{data:"linkSystem",renderer:ft.systemList,readOnly:!0},{data:"count",readOnly:!0,renderer:ze["default"].lookDetails}):a.unshift({data:"caozuo",renderer:ze["default"].lookDetails,readOnly:!0},{data:"linkSystem",renderer:ft.systemList,readOnly:!0}),"all"==this.showType&&this.showParts?a.splice(5,0,{data:"flowBuild",renderer:ze["default"].customDropdownRenderer,editor:"chosen",chosenOptions:{data:this.buildFloorData},readOnly:this.onlyRead}):"all"!=this.showType||this.showParts||a.splice(4,0,{data:"flowBuild",renderer:ze["default"].customDropdownRenderer,editor:"chosen",chosenOptions:{data:this.buildFloorData},readOnly:this.onlyRead}),a},filterShowInfo:function(e){var t=this.tableHeader.filter((function(t){return"localId"===t.code||"localName"===t.code||e.includes(t.code)}));return t},initTable:function(){var e=document.getElementById("handsontable"),t=document.documentElement.clientHeight;this.hot&&(this.hot.destroy(),this.hot=null),this.hot=new qi.a(e,{data:this.tableData,fixedColumnsLeft:this.showParts?5:4,colHeaders:this.formatHeaderData(this.showInfoList.length?this.filterShowInfo(this.showInfoList):this.tableHeader),columns:this.formatHeaderType(this.showInfoList.length?this.filterShowInfo(this.showInfoList):this.tableHeader),filters:!0,maxRows:this.tableData.length,height:t-335,columnSorting:!0,sortIndicator:!0,renderAllRows:!0,autoColumnSize:!0,fillHandle:"vertical",manualColumnResize:!0,manualColumnMove:!0,dropdownMenu:["filter_by_condition","filter_by_value","filter_action_bar"],contextMenu:!this.onlyRead&&{items:{remove_row:{name:"删除选中设备"}}},afterChange:this.handleUpdataTable,afterFilter:this.trimmedRows,afterRemoveRow:this.handleDeleteTableRow,afterOnCellMouseDown:this.eventClick});var a=document.getElementById("hot-display-license-info");a&&a.parentNode.removeChild(a),this.isLoading=!1},eventClick:function(e,t){if(!(t.row<0)){var a=this.trimmedRows(),i=this.hot.getPlugin("columnSorting").isSorted();if(a.length&&i){var n=this.myHotArr.getPlugin("columnSorting").rowsMapper.__arrayMap,r=this.tableData[a[n[t.row]]];this.getInfors(r,{row:n[t.row],col:t.col},e)}else if(i){var o=this.hot.getPlugin("columnSorting").rowsMapper.__arrayMap,s=this.tableData[o[t.row]];this.getInfors(s,{row:o[t.row],col:t.col},e)}else if(a.length){var l=this.tableData[a[t.row]];this.getInfors(l,{row:a[t.row],col:t.col},e)}else{var c=this.tableData[t.row];this.getInfors(c,t,e)}}},handleUpdataTable:function(e,t){if(!this.onlyRead&&"ObserveChanges.change"!=t&&e){for(var a=this.trimmedRows(),i=pt.getParam(e,t,this.hot,a),n=[],r=0;r<i.length;r++)n.push(i[r]);1==e.length&&e[0][1].indexOf("/")>0&&(e[0][1]=e[0][1].split("/").join(".")),n&&n.length&&this.updateBusiness(n,e)}},handleDeleteTableRow:function(){var e=this,t=ze["default"].differenceArr(this.tableData,this.copyMain);if(!(t.length<1)){var a=[];t.map((function(t){e.deleteCode=t.classCode,a.push({id:t.id})})),this.$confirm("此操作将删除设备,是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.removeDevice(a)})).catch((function(){e.reset(),e.$message("取消删除")}))}},removeDevice:function(e){var t=this;lt.a.deleteEquip(e).then((function(e){t.$message.success("删除成功"),t.$emit("close",{code:t.deleteCode})}))},updateBusiness:function(e,t){var a={content:[]},i=[];t.map((function(e){e[1]&&-1==i.indexOf(e[1])&&"propertyId"!=e[1]&&i.push(e[1])})),e.map((function(e,t){var n=[];if(i.map((function(t){if("flowBuild"==t){var a=ze["default"].dataForKey(e,"flowBuild");if(""==a)ze["default"].setDataForKey(e,"buildingId",null),ze["default"].setDataForKey(e,"floorId",null),n.push("buildingId","floorId");else{var i=a.split("-")[0],r=a.split("-")[1];i&&r?(ze["default"].setDataForKey(e,"buildingId",i),ze["default"].setDataForKey(e,"floorId",r)):i&&!r&&(ze["default"].setDataForKey(e,"buildingId",i),ze["default"].setDataForKey(e,"floorId",null),n.push("floorId"))}}else{var o=ze["default"].dataForKey(e,t);ze["default"].setDataForKey(e,t,""==o?null:o),o||n.push(t)}})),n.length){var r=JSON.parse(JSON.stringify(e));r.nullList=n,a.content.push(r)}else a.content.push(e)})),lt.a.updateEquip(a)},changeCader:function(){var e=this;if(this.mess.deviceId){var t={data:{filters:"equipCode='".concat(this.mess.deviceId,"'"),pageNumber:1,pageSize:50}};lt.a.getEquipBelongs(t).then((function(t){t.content.length&&(e.deviceType.assetType=t.content[0].family,e.deviceType.assetName=t.content[0].familyName)}))}},forValue:function(e,t){var a=[];return e&&e.length&&e.map((function(e){a=e.path==t?e.value:[]})),a},multiples:function(e){switch(this.firmDataType="dialog",e){case"infos.insuranceFile":this.filesArr=this.forValue(this.newEnclosure,e),this.infoType=e,this.myDialog.uploadFiles=!0;break;case"infos.archive":this.filesArr=this.forValue(this.newEnclosure,e),this.infoType=e,this.myDialog.uploadFiles=!0;break;case"infos.checkReport":this.filesArr=this.forValue(this.newEnclosure,e),this.infoType=e,this.myDialog.uploadFiles=!0;break;case"infos.maintainManual":this.filesArr=this.forValue(this.newEnclosure,e),this.infoType=e,this.myDialog.uploadFiles=!0;break;case"infos.approachingAcceptance":this.filesArr=this.forValue(this.newEnclosure,e),this.infoType=e,this.myDialog.uploadFiles=!0;break;case"infos.acceptanceReport":this.filesArr=this.forValue(this.newEnclosure,e),this.infoType=e,this.myDialog.uploadFiles=!0;break;case"infos.operationManual":this.filesArr=this.forValue(this.newEnclosure,e),this.infoType=e,this.myDialog.uploadFiles=!0;break;case"infos.originalCertificate":this.filesArr=this.forValue(this.newEnclosure,e),this.infoType=e,this.myDialog.uploadFiles=!0;break;case"infos.testReport":this.filesArr=this.forValue(this.newEnclosure,e),this.infoType=e,this.myDialog.uploadFiles=!0;break;case"infos.productCertification":this.filesArr=this.forValue(this.newEnclosure,e),this.infoType=e,this.myDialog.uploadFiles=!0;break;case"infos.installInstruction":this.filesArr=this.forValue(this.newEnclosure,e),this.infoType=e,this.myDialog.uploadFiles=!0;break;case"infos.drawing":this.filesArr=this.forValue(this.newEnclosure,e),this.infoType=e,this.myDialog.uploadFiles=!0;break;case"infos.installDrawing":this.filesArr=this.forValue(this.newEnclosure,e),this.infoType=e,this.myDialog.uploadFiles=!0;break;case"infos.supplierContract":this.filesArr=this.forValue(this.newEnclosure,e),this.infoType=e,this.myDialog.uploadFiles=!0;break;case"infos.installPic":this.imgsArr=this.forValue(this.newEnclosure,e),this.infoType=e,this.myDialog.uploadImgs=!0;break;case"infos.nameplate":this.imgsArr=this.forValue(this.newEnclosure,e),this.infoType=e,this.myDialog.uploadImgs=!0;break;case"infos.pic":this.picsArr=this.forValue(this.newEnclosure,e),this.infoType=e,this.myDialog.pic=!0;break;case"infos.designIDGraph":this.filesArr=this.forValue(this.newEnclosure,e),this.infoType=e,this.myDialog.uploadFiles=!0;break;case"infos.fanCharacterCurve":this.filesArr=this.forValue(this.newEnclosure,e),this.infoType=e,this.myDialog.uploadFiles=!0;break}},getInfors:function(e,t,a){var i=this.hot.colToProp(t.col),n=this.inputMap[i];switch(this.row=t.row,this.messKey=i,this.curDevice=e.id,this.firmDataType="row",Bi["default"].set("screen_data",{path:this.$route.path,data:{equip:e}}),i){case"caozuo":return this.$router.push({path:"deviceDetails",query:{type:this.mess.deviceId,equipId:e.id,equipName:e.localName?e.localName:e.name?e.name:"",equipCode:e.localId?e.localId:"",data:this.tableData.map((function(e){return{value:e.id,label:e.localName?e.localName:e.name?e.name:""}}))}}),!1;case"defaultQRCode":return this.qrcodeUrl=this.tableData[t.row][i],this.qrcodeUrl?this.myDialog.qrcode=!0:this.$message("此设备没有设备二维码"),!1;case"bimLocation":return this.bimcodeobj=this.tableData[t.row],Object.keys(this.bimcodeobj).length>0?this.myDialog.bimcode=!0:this.$message("此设备没有BIM模型中坐标"),!1;case"linkSystem":return this.systemList=this.tableData[t.row].linkSystem||[],this.myDialog.systemType=!0,!1;case"linkEquipLocalName":return this.onlyRead||(this.myDialog.changeRea=!0),!1;case"infos.insuranceFile":case"infos.archive":case"infos.checkReport":case"infos.maintainManual":case"infos.approachingAcceptance":case"infos.acceptanceReport":case"infos.operationManual":case"infos.originalCertificate":case"infos.testReport":case"infos.productCertification":case"infos.installInstruction":case"infos.supplierContract":case"infos.drawing":case"infos.installDrawing":case"infos.designIDGraph":case"infos.fanCharacterCurve":var r=ze["default"].dataForKey(this.tableData[t.row],i);return this.filesArr=r||[],this.onlyRead&&!this.filesArr.length||(this.myDialog.uploadFiles=!0),!1;case"infos.installPic":case"infos.nameplate":var o=ze["default"].dataForKey(this.tableData[t.row],i);return this.imgsArr=o||[],this.onlyRead&&!this.imgsArr.length||(this.myDialog.uploadImgs=!0),!1;case"infos.pic":var s=ze["default"].dataForKey(this.tableData[t.row],i);return this.picsArr=s||[],this.onlyRead&&!this.picsArr.length||(this.myDialog.pic=!0),!1;case"count":var l=this.onlyRead?"/ledger/parts":"/ledger/partsmanage";return this.$router.push({path:l,query:{deviceId:e.id,typeId:this.mess.deviceId,pageNo:this.page.currentPage,pageSize:this.page.size}}),!1;default:break}return this.onlyRead||n.editable||this.$confirm("该信息点的值为自动生成,不可人工维护!","提示",{confirmButtonText:"我知道了",showCancelButton:!1,type:"warning",center:!0}).then((function(){return!1})),!this.onlyRead&&("MENUM"==n.dataType||"ENUM"==n.dataType&&n.multiple||"BOOLEAN"==n.dataType&&n.multiple)?(this.updateInfoData=n,this.updateInfoPoint=i,this.updateInput=ze["default"].dataForKey(this.tableData[t.row],i),this.myDialog.menum=!0,!1):(this.onlyRead||!n.region&&!n.multiple||this.$confirm("该信息点为区间值/复数值,暂无组件支持输入!","提示",{confirmButtonText:"我知道了",showCancelButton:!1,type:"warning",center:!0}).then((function(){return!1})),this.onlyRead||"-1"!=St.inputModeArr.indexOf(n.dataType)?void 0:(this.updateInfoPoint=i,this.updateInput=ze["default"].dataForKey(this.tableData[t.row],i),this.myDialog.update=!0,!1))},handleCloseUpdate:function(){this.updateInputShow=!1,this.updateInfoPoint="",this.updateInput=""},handleClickUpdate:function(){ze["default"].setDataForKey(this.tableData[this.row],this.updateInfoPoint,this.updateInput),this.handleUpdataTable([[this.row,this.updateInfoPoint,null,this.updateInput]],"edit"),this.updateInputShow=!1,this.myDialog.update=!1,this.updateInput=""},handleChangeMenum:function(e){ze["default"].setDataForKey(this.tableData[this.row],this.updateInfoPoint,e),this.handleUpdataTable([[this.row,this.updateInfoPoint,null,e]],"edit"),this.myDialog.menum=!1,this.updateInput=""},trimmedRows:function(){for(var e=this.hot.getPlugin("trimRows").trimmedRows,t=this.tableData.length,a=new Array,i=0;i<t;i++)a.push(i);return a=e.length<=0?void 0:this.array_diff(a,e),a||[]},array_diff:function(e,t){for(var a=0;a<t.length;a++)for(var i=0;i<e.length;i++)e[i]==t[a]&&(e.splice(i,1),i-=1);return e},changeProperty:function(e){this.setDataToMain(e.propertyId,"propertyId",this.row),this.setDataToMain(e.linkEquipLocalName,"linkEquipLocalName",this.row)},fileChange:function(e,t,a){var i=this;"dialog"===t?this.newEnclosure.forEach((function(t){return t.path==e&&i.$set(t,"value",a),t})):this.setDataToMain(e,this.messKey,this.row)},imgChange:function(e,t,a){var i=this;"dialog"===t?this.newEnclosure.forEach((function(t){return t.path==e&&i.$set(t,"value",a),t})):this.setDataToMain(e,this.messKey,this.row)},changeSystemType:function(e){ze["default"].setDataForKey(this.tableData[this.row],"linkSystem",e)},changePics:function(e,t,a){var i=this;"dialog"===t?this.newEnclosure.forEach((function(t){return t.path==e&&i.$set(t,"value",a),t})):this.setDataToMain(e,this.messKey,this.row)},utilToKey:function(e,t,a,i){e==t&&this.setDataToMain(a[e],i,this.row)},setDataToMain:function(e,t,a){e&&"--"!=e?this.tableData[a]?(ze["default"].setDataForKey(this.tableData[a],t,e),this.handleUpdataTable([[a,t,null,e]],"edit")):(this.tableData[a]={},ze["default"].setDataForKey(this.tableData[a],t,e)):ze["default"].setDataForKey(this.tableData[a],t,"")},Batch:function(){this.firmDataType="dialog",this.$refs.batchDialogs.batchDialog=!0},handleBatchEquipPoint:function(){var e={};this.$router.push({name:"BatchPointAssets",params:e})},upDataDevice:function(){var e=this;setTimeout((function(){e.getTableData()}),1e3)}},watch:{projectId:function(){this.buildFloorData=[],Ue.a.getData(this.buildFloorData),this.tableData=[],this.mess.deviceId=null,this.page.total=0},showTypes:{handler:function(e,t){e&&e[0]&&e[0].value?this.showType=e[0].value:this.showType="Visible"},immediate:!0,deep:!0}}},Vi=zi,Ui=(a("b927"),a("ce45"),Object(l["a"])(Vi,rt,ot,!1,null,"6425fa62",null)),Hi=Ui.exports,Gi=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"批量关联资产",visible:e.dialog.linkAssets,width:"700px"},on:{"update:visible":function(t){return e.$set(e.dialog,"linkAssets",t)},open:e.handleOpenReset}},[a("el-row",[a("span",{staticClass:"condition-title"},[e._v("设备类型:")]),a("el-select",{staticStyle:{width:"350px"},attrs:{filterable:"",size:"small"},on:{change:e.handleChangeDevice},model:{value:e.deviceType,callback:function(t){e.deviceType=t},expression:"deviceType"}},e._l(e.deviceTypeList,(function(e){return a("el-option",{key:e.classCode,attrs:{label:e.name,value:e.classCode}})})),1)],1),a("el-row",{staticStyle:{"margin-top":"30px"}},[a("span",{staticClass:"condition-title"},[e._v("建筑楼层:")]),a("el-cascader",{staticStyle:{width:"350px"},attrs:{options:e.bfoptions,filterable:"",size:"small"},on:{change:e.handleChangeBf},model:{value:e.buildFloor,callback:function(t){e.buildFloor=t},expression:"buildFloor"}})],1),a("el-row",{directives:[{name:"show",rawName:"v-show",value:e.spaceShow,expression:"spaceShow"}],staticStyle:{"margin-top":"30px"}},[a("span",{staticClass:"condition-title"},[e._v("分区类型:")]),a("el-select",{staticStyle:{width:"350px"},attrs:{filterable:"",size:"small"},on:{change:e.handleChangeZone},model:{value:e.zone,callback:function(t){e.zone=t},expression:"zone"}},e._l(e.zoneList,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-row",{directives:[{name:"show",rawName:"v-show",value:e.spaceShow&&"all"!=e.zone&&"noKnow"!=e.zone,expression:"spaceShow && zone != 'all' && zone != 'noKnow'"}],staticStyle:{"margin-top":"30px"}},[a("span",{staticClass:"condition-title"},[e._v("空间实例:")]),a("el-select",{staticStyle:{width:"350px"},attrs:{multiple:"",filterable:"","collapse-tags":"",placeholder:"请选择"},model:{value:e.space,callback:function(t){e.space=t},expression:"space"}},e._l(e.spaceList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.handleClickClose}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.toLinkAssets}},[e._v("确 认")])],1)],1)},Ki=[],Wi={props:{dialog:{type:Object,default:function(){return{linkAssets:!1}}}},computed:Object(v["a"])({},Object(y["b"])("layout",["projectId","secret","userId"])),data:function(){return{bfoptions:[],buildFloor:["all"],deviceTypeList:[],deviceType:"",zone:"all",zoneList:[],spaceList:[],space:[],spaceShow:!1}},created:function(){this.getPartsDieType(),this.getBuildFloorData(),this.getSpaceData()},mounted:function(){},methods:{handleOpenReset:function(){this.deviceType="",this.buildFloor=["all"],this.zone="all",this.space=[],this.spaceShow=!1},getPartsDieType:function(){var e=this;lt.a.TypePartsDie((function(t){e.deviceTypeList=t.content}))},getBuildFloorData:function(){var e,t=this,a={pageNumber:1,pageSize:1e3,orders:"localName asc",projection:["id","localName"]},i={orders:"floorSequenceID desc",pageNumber:1,pageSize:1e3,projection:["buildingId","id","localName","floorSequenceID"]};Promise.all([Ue.a.buildingQuery(a),Ge.a.floorQuery(i)]).then((function(a){var i=a[0].content,n=a[1].content;e=i.map((function(e){return{value:e.id,label:e.localName}})),e.unshift({value:"all",label:"全部"},{value:"noKnow",label:"不在建筑内"}),e.forEach((function(e){n.forEach((function(t){e.value==t.buildingId&&t.id&&t.localName&&(e.children?e.children.push({value:t.id,label:t.localName,FloorSequenceID:t.floorSequenceID}):(e.children=[],e.children.push({value:"all",label:"全部"},{value:"noKnow",label:"不在楼层内"},{value:t.id,label:t.localName,FloorSequenceID:t.floorSequenceID})))}))})),t.bfoptions=e}))},getSpaceData:function(){var e=this,t={type:"space"};et.a.queryPhysicsAllType(t).then((function(t){t.content&&(e.zoneList=t.content.filter((function(e){if(e.name!==e.aliasName&&(e.name="".concat(e.name,"(").concat(e.aliasName,")")),"Ispace"!=e.code)return e})),e.zoneList.unshift({name:"全部",code:"all"}),e.zoneList.push({name:"不在任何业务空间内",code:"noKnow"}))}))},handleChangeDevice:function(e){this.zoneListIsShow()},handleChangeBf:function(e){this.zoneListIsShow(),this.space=[],this.spaceList=[],this.handleChangeSpaceItem()},zoneListIsShow:function(){var e=this.buildFloor.slice(-1)[0];e&&"noKnow"!=e&&"all"!=this.buildFloor[0]&&6==this.deviceType.length?this.spaceShow=!0:this.spaceShow=!1},handleChangeZone:function(){this.space=[],this.spaceList=[],this.handleChangeSpaceItem()},handleChangeSpaceItem:function(){var e=this;if("all"!=this.zone&&"noKnow"!=this.zone){var t=[],a=function a(i,n){i=i||1;var r={orders:"createTime desc, id asc",pageNumber:i,pageSize:1e3,projection:["id","name","localName","createTime"],zoneType:n};e.spaceShow&&(2==e.buildFloor.length&&"all"!=e.buildFloor[1]?(r.buildingId=e.buildFloor[0],r.floorId=e.buildFloor[1]):r.buildingId=e.buildFloor[0]),lt.a.zoneQuery(r,(function(i){t=t.concat(i.content.map((function(e){return{value:e.id,label:e.localName?e.localName:e.name}}))),i.total/(i.pageSize*i.pageNumber)>1?a(i.pageNumber+1,n):e.spaceList=t}))};a(1,this.zone)}},handleClickClose:function(){this.dialog.linkAssets=!1},toLinkAssets:function(){var e={};return this.deviceType?this.buildFloor.length?(e=this.spaceShow?"all"==this.zone?{deviceType:this.deviceType,buildFloor:this.buildFloor}:this.space.length?{deviceType:this.deviceType,buildFloor:this.buildFloor,spaceList:this.space}:{deviceType:this.deviceType,buildFloor:this.buildFloor,spaceList:this.zone}:{deviceType:this.deviceType,buildFloor:this.buildFloor},void this.$router.push({name:"batchlinkAssets",params:e})):(this.$message.info("请选择建筑楼层!"),!1):(this.$message.info("请选择设备类型!"),!1)}},watch:{}},Xi=Wi,Yi=(a("9c18"),Object(l["a"])(Xi,Gi,Ki,!1,null,"44a7f606",null)),Ji=Yi.exports,Qi=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{staticClass:"dialogFormVisible",attrs:{title:"深化点表导入",visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t},close:e.handleCloseDialog}},[a("div",{directives:[{name:"show",rawName:"v-show",value:1==e.active,expression:"active == 1"}]},[a("h5",{staticClass:"title"},[e._v("1、需要在深化点表中插入1列,表头为“反馈信息”,此列请不要填充内容。")]),a("h5",{staticClass:"title"},[e._v("2、深化点表中需含“本地编码”、“信息点编码”、“表号”、“功能号”、“反馈信息”五列,对五列的具体位置和顺序不做要求。")]),a("h5",{staticClass:"title"},[e._v(" 3、本地编码不能为空:系统从上到下逐行识别信息,若遇到本地编码的单元格为空时,系统将判定已完成信息识别,不再向下继续识别。 ")]),a("h5",{staticClass:"title"},[e._v(" 4、上传深化点表结束后,请在弹窗左下角点击“下载导入结果”,下载后查看表格“反馈信息”列,若上传失败,则根据失败原因在反馈列显示“本地编码重复”、“信息点编码不能为空”、“表号不能为空”、“功能号不能为空”等。 ")]),a("el-upload",{staticClass:"upload-demo",attrs:{drag:"",action:""+e.baseUrl+e.dataCenter+"/graphic/import/point",accept:".xlsx","show-file-list":!1,headers:e.headers,name:"file",multiple:"","on-progress":e.progress,"on-success":e.success,"on-error":e.error}},[a("i",{staticClass:"el-icon-upload"}),a("div",{staticClass:"el-upload__text"},[e._v("将Excel文件拖到此处,或"),a("em",[e._v("点击上传Excel文件")])]),a("div",{staticClass:"el-upload__tip tips",attrs:{slot:"tip"},slot:"tip"},[e._v(" 上传的Excel数据将完全覆盖当前设备信息点(原有数据不会保留) "),e.historyKey?a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:function(t){return e.download(e.historyKey)}}},[e._v("下载上一次导入结果")]):e._e()],1)])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:2==e.active,expression:"active == 2"}]},[a("div",{staticClass:"block"},[a("el-timeline",e._l(e.activities,(function(t,i){return a("el-timeline-item",{key:i,attrs:{icon:t.icon,type:t.type,color:t.color,size:t.size}},[e._v(" "+e._s(t.content)+" ")])})),1)],1),a("el-button",{attrs:{disabled:!e.messageKey},on:{click:function(t){return e.download(e.messageKey)}}},[e._v("下载导入结果")]),a("footer",{staticClass:"dialog-footer",staticStyle:{"text-align":"right"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.active=1}}},[e._v("返回")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("确认")])],1)],1)])},Zi=[],en=a("9462"),tn=a.n(en),an=a("f52f"),nn={data:function(){return{active:1,dialogFormVisible:!1,messageKey:"",historyKey:"",activities:[],baseUrl:window.__systemConf.baseServiceUrl,dataCenter:an["datacenter_pre"]}},computed:Object(v["a"])(Object(v["a"])({},Object(y["b"])("layout",["projectId"])),{},{headers:function(){return{projectId:this.projectId,Comming:"adm",Account:tn.a.get("user_name")}}}),methods:{openDialog:function(){this.dialogFormVisible=!0},getHistoryKey:function(){var e=this,t={filters:"type = 'iot'",orders:"createTime desc",pageSize:1};lt.a.queryDownloadsKey(t).then((function(t){"success"===t.result&&t.content&&t.content.length&&t.content[0].key?e.historyKey=t.content[0].key:e.historyKey=""}))},progress:function(e,t,a){this.active=2,this.activities=[{content:"数据文件处理中..",size:"large",type:"primary",icon:"el-icon-check",color:"#0bbd87"}]},success:function(e,t,a){"success"==e.result?(this.messageKey=e.message,e.content&&e.content[0]&&"0"===e.content[0].state?(this.activities=[{content:"数据文件处理中..",size:"large",type:"primary",icon:"el-icon-check",color:"#0bbd87"},{content:"全部导入成功(导入信息点:".concat(e.content[0].successCount," 条)"),color:"#0bbd87",icon:"el-icon-check",size:"large",type:"success"}],this.$emit("upDataDevice")):e.content&&e.content[0]&&"1"===e.content[0].state?(this.activities=[{content:"数据文件处理中..",size:"large",type:"primary",icon:"el-icon-check",color:"#0bbd87"},{content:"部分导入成功(导入成功:".concat(e.content[0].successCount," 条;导入失败:").concat(e.content[0].failCount," 条)"),color:"#0bbd87",icon:"el-icon-check",size:"large",type:"success"}],this.$emit("upDataDevice")):this.activities=[{content:"数据文件处理中..",size:"large",type:"primary",icon:"el-icon-check",color:"#0bbd87"},{content:"导入失败!",color:"#f56c6c",icon:"el-icon-close",size:"large",type:"primary"}]):(this.messageKey="","failure"===e.result&&e.message?this.activities=[{content:"数据文件处理中..",size:"large",type:"primary",icon:"el-icon-check",color:"#0bbd87"},{content:"导入失败!(".concat(e.message,")"),color:"#f56c6c",icon:"el-icon-close",size:"large",type:"primary"}]:this.activities=[{content:"数据文件处理中..",size:"large",type:"primary",icon:"el-icon-check",color:"#0bbd87"},{content:"导入失败!",color:"#f56c6c",icon:"el-icon-close",size:"large",type:"primary"}])},error:function(e,t,a){},download:function(e){var t="".concat(this.baseUrl).concat(an["datacenter_pre"],"/graphic/downloads/point?key=")+e,a=document.createElement("a");a.href=t,a.download="".concat(e,".xlsx"),a.click()},handleCloseDialog:function(){this.messageKey="",this.historyKey="",this.active=1,this.activities=[]}},watch:{dialogFormVisible:function(e,t){e&&this.getHistoryKey()}}},rn=nn,on=(a("618d"),Object(l["a"])(rn,Qi,Zi,!1,null,"24050cd1",null)),sn=on.exports,ln=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{staticClass:"dialogFormVisible",attrs:{title:"台账信息导入",visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t},close:e.handleCloseDialog}},[a("div",{directives:[{name:"show",rawName:"v-show",value:1==e.active,expression:"active == 1"}]},[a("h5",{staticClass:"title"},[e._v(" 1、只可导入维护数据类型为“单个-数值量(Num)、单个-字符量(Str)、单个-布尔量(Bool)、单个-单选枚举量(Eunm)、单个-日期时间量(DTime)”的静态信息点的值。 ")]),a("h5",{staticClass:"title"},[e._v("2、“单个-布尔量(Bool)、单个-单选枚举量(Eunm)”的值需填写选项的编码、“单个-日期时间量(DTime)”的值需填写YYYYMMDD。")]),a("h5",{staticClass:"title"},[e._v("3、第一列为识别设备实例的唯一标识;第二列为实例的设备类型。其他列为信息点,可任意增加信息点列。")]),a("h5",{staticClass:"title"},[e._v("4、设备唯一标识三选一:设备本地编码EquipLocalID、数字化交付编码DigitaIDeliveryID、设备类型ClassCode。")]),a("h5",{staticClass:"title"},[e._v("5、行为对象实例对应该信息点的值。值为空时不做处理,不会清空台账中已维护的值。")]),a("el-upload",{staticClass:"upload-demo",attrs:{drag:"",action:""+e.baseUrl+e.dataCenter+"/object/equip/import/",accept:".xlsx","show-file-list":!1,headers:e.headers,name:"file",multiple:"","on-progress":e.progress,"on-success":e.success,"on-error":e.error}},[a("i",{staticClass:"el-icon-upload"}),a("div",{staticClass:"el-upload__text"},[e._v("将Excel文件拖到此处,或"),a("em",[e._v("点击上传Excel文件")])]),a("div",{staticClass:"el-upload__tip tips",attrs:{slot:"tip"},slot:"tip"},[e._v(" 上传的Excel数据将完全覆盖当前设备信息点(原有数据不会保留) "),a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:function(t){return e.downloadEquipTemplate()}}},[e._v("下载模板")]),e.historyKey?a("el-button",{staticStyle:{float:"right","margin-right":"10px"},attrs:{type:"primary"},on:{click:function(t){return e.download(e.historyKey)}}},[e._v("下载上一次导入结果")]):e._e()],1)])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:2==e.active,expression:"active == 2"}]},[a("div",{staticClass:"block"},[a("el-timeline",e._l(e.activities,(function(t,i){return a("el-timeline-item",{key:i,attrs:{icon:t.icon,type:t.type,color:t.color,size:t.size}},[e._v(" "+e._s(t.content)+" ")])})),1)],1),a("el-button",{attrs:{disabled:!e.messageKey},on:{click:function(t){return e.download(e.messageKey)}}},[e._v("下载导入结果")]),a("footer",{staticClass:"dialog-footer",staticStyle:{"text-align":"right"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.active=1}}},[e._v("返回")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("确认")])],1)],1)])},cn=[],un={data:function(){return{active:1,dialogFormVisible:!1,messageKey:"",historyKey:"",activities:[],baseUrl:window.__systemConf.baseServiceUrl,dataCenter:an["datacenter_pre"]}},computed:Object(v["a"])(Object(v["a"])({},Object(y["b"])("layout",["projectId"])),{},{headers:function(){return{projectId:this.projectId,Comming:"adm",Account:tn.a.get("user_name")}}}),methods:{openDialog:function(){this.dialogFormVisible=!0},getHistoryKey:function(){var e=this,t={filters:"type = 'static'",orders:"createTimse desc",pageSize:1};lt.a.queryDownloadsKey(t).then((function(a){lt.a.queryDownloadsKey(t).then((function(t){"success"===t.result&&t.content&&t.content.length&&t.content[0].key?e.historyKey=t.content[0].key:e.historyKey=""}))}))},progress:function(e,t,a){this.active=2,this.activities=[{content:"数据文件处理中..",size:"large",type:"primary",icon:"el-icon-check",color:"#0bbd87"}]},success:function(e,t,a){"success"==e.result?(this.messageKey=e.message,e.content&&e.content[0]&&"0"===e.content[0].state?(this.activities=[{content:"数据文件处理中..",size:"large",type:"primary",icon:"el-icon-check",color:"#0bbd87"},{content:"全部导入成功(导入信息点:".concat(e.content[0].successCount," 条)"),color:"#0bbd87",icon:"el-icon-check",size:"large",type:"success"}],this.$emit("upDataDevice")):e.content&&e.content[0]&&"1"===e.content[0].state?(this.activities=[{content:"数据文件处理中..",size:"large",type:"primary",icon:"el-icon-check",color:"#0bbd87"},{content:"部分导入成功(导入成功:".concat(e.content[0].successCount," 条;导入失败:").concat(e.content[0].failCount," 条)"),color:"#0bbd87",icon:"el-icon-check",size:"large",type:"success"}],this.$emit("upDataDevice")):this.activities=[{content:"数据文件处理中..",size:"large",type:"primary",icon:"el-icon-check",color:"#0bbd87"},{content:"导入失败!",color:"#f56c6c",icon:"el-icon-close",size:"large",type:"primary"}]):(this.messageKey="","failure"===e.result&&e.message?this.activities=[{content:"数据文件处理中..",size:"large",type:"primary",icon:"el-icon-check",color:"#0bbd87"},{content:"导入失败!(".concat(e.message,")"),color:"#f56c6c",icon:"el-icon-close",size:"large",type:"primary"}]:this.activities=[{content:"数据文件处理中..",size:"large",type:"primary",icon:"el-icon-check",color:"#0bbd87"},{content:"导入失败!",color:"#f56c6c",icon:"el-icon-close",size:"large",type:"primary"}])},error:function(e,t,a){},download:function(e){var t="".concat(this.baseUrl).concat(an["datacenter_pre"],"/graphic/downloads/point?key=")+e,a=document.createElement("a");a.href=t,a.download="".concat(e,".xlsx"),a.click()},downloadEquipTemplate:function(){window.location.href=window.__systemConf.baseServiceUrl+an["graphhic_pre"]+"/downloads/equip/template"},handleCloseDialog:function(){this.messageKey="",this.historyKey="",this.active=1,this.activities=[]}},watch:{dialogFormVisible:function(e,t){e&&this.getHistoryKey()}}},dn=un,pn=(a("ce7e"),Object(l["a"])(dn,ln,cn,!1,null,"ae04942a",null)),hn=pn.exports,fn={components:{sagaTitle:$e,floorCascader:Ye,myCascader:nt,hansonTable:Hi,linkassetsDialog:Ji,staticDialog:hn,dynamicDialog:sn},data:function(){return{currentBuilding:"",mess:{perjectName:"",name:[{key:"设备",num:0},{key:"资产",num:0}]},param:{buildId:"",floorId:"",deviceId:"",keyWord:"",ProjId:"",secret:""},assetGroupList:[],graphyId:null,dialog:{linkAssets:!1}}},computed:Object(v["a"])({},Object(y["b"])("layout",["projectId","projects","secret","userId"])),created:function(){this.param.ProjId=this.projectId,this.param.secret=this.secret,this.getProjName(),this.getCount()},activated:function(){var e=this;if(!this.$route.meta.isBack){this.param.ProjId=this.projectId,this.param.secret=this.secret,this.getProjName(),this.getCount();var t=this.$route.params.deviceId;t?this.$nextTick((function(){e.$refs.cascader.setValue(t),e.changeDevice({code:t,facility:e.$route.params.facility})})):this.$nextTick((function(){e.$refs.cascader.setValue(""),e.changeDevice({code:"",facility:""})}))}this.$route.meta.isBack=!1},beforeRouteEnter:function(e,t,a){var i=["/ledger/parts","/ledger/partsmanage","/ledger/deviceDetails"];i.includes(t.path)?e.meta.isBack=!0:e.meta.isBack=!1,a()},watch:{projectId:function(){this.param.ProjId=this.projectId,this.param.secret=this.secret,this.getProjName(),this.getCount()}},methods:{getProjName:function(){var e=this;this.projects.forEach((function(t){t.id==e.projectId&&(e.mess.perjectName=t.name)}))},close:function(e){this.getCount(),this.$refs.tableMain.getTableData()},getCount:function(){var e=this;return Object(W["a"])(regeneratorRuntime.mark((function t(){var a,i,n,r,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={filters:"not propertyId isnull"},t.next=3,Promise.all([ut.a.countEquip({filters:""}),ut.a.countEquip(a)]);case 3:i=t.sent,n=Object(Oe["a"])(i,2),r=n[0],o=n[1],e.mess.name[0].num=r.count,e.mess.name[1].num=o.count;case 9:case"end":return t.stop()}}),t)})))()},changeFloor:function(e){e[0]&&(this.param.buildId=e[0]),e[1]?this.param.floorId=e[1]:this.param.floorId=null,this.param.deviceId&&this.$refs.tableMain&&this.$refs.tableMain.getHeaderData(this.param),this.currentBuilding=e,this.$refs.cascader.getData(e)},changeDevice:function(e){this.param.deviceId=e.code||"",this.param.name=e.facility||"",this.param.keyWord="",this.$refs.tableMain&&this.$refs.tableMain.getHeaderData(this.param)},handleChangeKeyWord:function(){this.$refs.tableMain&&this.$refs.tableMain.getTableData(this.param.keyWord)},upDataDevice:function(){this.$refs.tableMain.getTableData()},handleLinkAssets:function(){this.dialog.linkAssets=!0},handleCommand:function(e){"dynamic"===e?this.$refs.dynamicDialog.openDialog():"static"===e&&this.$refs.staticDialog.openDialog()}}},mn=fn,gn=(a("bcb7"),Object(l["a"])(mn,Ne,Pe,!1,null,"8de6b618",null)),vn=gn.exports,yn=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tableDisplay"},[a("div",{staticClass:"header"},[a("el-button",{staticStyle:{float:"left"},attrs:{size:"small",type:"default",icon:"el-icon-back"},on:{click:e.goBack}}),a("span",{staticClass:"details-title",attrs:{title:e.name+" - "+e.code}},[a("b",[e._v(e._s(e.name)+" - "+e._s(e.code))])])],1),a("div",{staticClass:"content"},[a("el-scrollbar",{staticStyle:{height:"100%"}},[a("div",{staticClass:"content-scrollbar"},[a("div",{staticClass:"content-left"},[a("div",{staticClass:"content-keyPoint"},[a("exhibitionCrux",{attrs:{exhibitionCrux:e.exhibitionCrux,type:e.type},on:{cruxSuccess:e.cruxSuccess}})],1),a("div",{staticClass:"content-showType"},[a("selectRadio",{attrs:{selectRadio:e.selectRadio},on:{changeRadio:e.changeRadio}})],1),a("div",{staticClass:"content-point"},[a("div",{staticClass:"content-point-left"},[a("exhibitionBaseInformation",{attrs:{exhibitionBaseInformation:e.exhibitionBaseInformation}})],1),a("div",{staticClass:"content-point-right"},[a("exhibitionEnergy",{attrs:{exhibitionEnergy:e.exhibitionEnergy}})],1)])]),a("div",{staticClass:"content-right"},[a("div",{staticClass:"content-repair"},[a("exhibitionMaintain",{attrs:{exhibitionMaintain:e.exhibitionMaintain}})],1),a("div",{staticClass:"content-media"},[a("exhibitionImage",{directives:[{name:"show",rawName:"v-show",value:e.isShowImage,expression:"isShowImage"}],attrs:{exhibitionImage:e.exhibitionImage}}),a("exhibitionVideo",{directives:[{name:"show",rawName:"v-show",value:e.isShowVideo,expression:"isShowVideo"}],attrs:{exhibitionVideo:e.exhibitionVideo}}),a("exhibitionFile",{directives:[{name:"show",rawName:"v-show",value:e.isShowFile,expression:"isShowFile"}],attrs:{exhibitionFile:e.exhibitionFile}})],1)])])])],1),a("div",{staticClass:"footer"},[a("el-button-group",{staticStyle:{float:"right",margin:"8px 10px 0 0"}},[a("el-button",{attrs:{disabled:0==e.list.findIndex((function(t){return t.value==e.id})),size:"mini",icon:"el-icon-arrow-left"},on:{click:e.handleClickPrev}},[e._v(" 上一页 ")]),a("el-select",{staticStyle:{float:"left",margin:"0 10px"},attrs:{size:"mini",placeholder:"请选择"},on:{change:e.handleChangeExample},model:{value:e.id,callback:function(t){e.id=t},expression:"id"}},e._l(e.list,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("el-button",{attrs:{disabled:e.list.findIndex((function(t){return t.value==e.id}))==e.list.length-1,size:"mini"},on:{click:e.handleClickNext}},[e._v(" 下一页 "),a("i",{staticClass:"el-icon-arrow-right el-icon--right"})])],1)],1)])},bn=[],wn=a("2909"),Cn=(a("c740"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"exhibition-baseInformation"},e._l(e.exhibitionBaseInformation.information,(function(t,i,n){return a("section",[a("h4",{staticClass:"base"},[e._v(e._s("undefined"==i?"基本信息":i))]),e._l(t.paths,(function(t,i,n){return a("div",{staticClass:"infoPoint-item"},[a("span",[e._v(" "+e._s(t.InfoPointName)+":")]),"EquipQRCode"==t.Path||"RoomQRCode"==t.Path||"ShaftQRCode"==t.Path?a("el-popover",{attrs:{placement:"right",width:"360",trigger:"hover"}},[a("p",{staticStyle:{"border-bottom":"1px solid #eee",padding:"2px 0 4px 0"}},[e._v(e._s(t.InfoPointName))]),a("div",{staticStyle:{overflow:"hidden"}},[t.Value?a("div",{staticStyle:{float:"left",width:"60%"}},[a("img",{staticStyle:{width:"200px",height:"200px"},attrs:{src:"/image-service/common/file_get/"+t.Value+"?systemId=dataPlatform",alt:"二维码"}})]):a("div",{staticStyle:{width:"100%","text-align":"center","padding-top":"10px"}},[e._v("暂无数据")]),a("div",{staticStyle:{float:"right",width:"40%","margin-top":"30px"}},[a("span",[e._v(e._s(t.Value))])])]),a("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("有")])],1):Array.isArray(t.Value)&&"ATTACHMENT"==t.dataType?a("span",[t.Value.length?a("el-popover",{attrs:{placement:"right",width:"250",trigger:"hover"}},[a("p",{staticStyle:{"border-bottom":"1px solid #eee",padding:"2px 0 4px 0"}},[e._v(e._s(t.InfoPointName))]),e._l(t.Value,(function(t,i){return a("div",[a("div",[e._v(" 图纸名称:"+e._s(t.name)+" "),a("a",{staticStyle:{cursor:"pointer",color:"#409eff"},attrs:{href:"/image-service/common/image_get?systemId=dataPlatform&key="+t.key,download:t.name}},[e._v("下载")])])])})),a("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("有")])],2):a("span",[e._v("-")])],1):t.Value&&t.Value.length&&(t.InfoPointName+":"+t.Value).length>21?a("el-popover",{attrs:{placement:"right",width:"160",trigger:"hover"}},[a("p",{staticStyle:{"border-bottom":"1px solid #eee",padding:"2px 0 4px 0"}},[e._v(e._s(t.InfoPointName))]),a("p",[e._v(e._s(t.Value))]),a("div",{staticStyle:{"text-align":"center",margin:"0"}},[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){return e.handleCopy(t.Value)}}},[e._v("复制")])],1),a("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v(e._s(e.handleName(t.InfoPointName,t.Value)))])],1):Array.isArray(t.Value)&&"MENUM"==t.dataType?a("span",[e._v(e._s(e._f("filterMenumValue")(t)))]):a("span",[e._v(e._s(t.Value))])],1)}))],2)})),0)}),In=[],xn={name:"exhibition-baseInformation",props:["exhibitionBaseInformation"],data:function(){return{}},filters:{filterMenumValue:function(e){return e.Value.map((function(t){return e.dataSource.find((function(e){return e.code===t})).name})).join(",")}},created:function(){},methods:{downloadFile:function(e){window.open("/image-service/common/file_get/"+e+"?systemId=dataPlatform")},handleCopy:function(e){var t=document.createElement("input");"string"!=typeof e&&(e=JSON.stringify(e)),t.value=e,document.body.appendChild(t),t.select(),document.execCommand("Copy"),this.$message.success("复制成功"),t.remove()},handleName:function(e,t){var a=t;Array.isArray(a)&&(a=JSON.stringify(t));var i="".concat(e,":").concat(a);return i.length>21?a.substring(0,21-"".concat(e,":").length)+"...":a}}},Sn=xn,kn=(a("759e"),Object(l["a"])(Sn,Cn,In,!1,null,"5083842e",null)),_n=kn.exports,Dn=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"exhibition-file"},[a("p",{staticClass:"title"},[a("span",{staticClass:" iconfont icon-fujian"}),e._v(" "+e._s(e.exhibitionFile.title))]),a("div",[a("lookFile",{attrs:{exhibitionFile:e.exhibitionFile}})],1)])},jn=[],Tn=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"exhibition-file"},[Object.keys(e.exhibitionFile.list).length?a("div",e._l(e.exhibitionFile.list,(function(t,i,n){return a("div",{key:n},e._l(t,(function(t,n){return a("div",{},[a("p",{staticClass:"title"},[a("span",{staticClass:"iconfont icon-juxing"}),e._v(" "+e._s(i)+" ")]),void 0!=t.fileList&&t.fileList.length?a("div",e._l(t.fileList,(function(t,i){return a("div",{key:i,staticClass:"content"},[a("div",{staticClass:"file-box"},[e._m(0,!0),a("div",{staticClass:"file-box-center"},[a("p",{staticStyle:{"margin-top":"20px"},attrs:{title:t.name}},[e._v(" "+e._s(e.delFile(t.name)))]),a("p",[e._v(" "+e._s(t.createTime))])]),a("div",{staticClass:"file-box-right "},[a("a",{staticClass:"iconfont icon-download1 df fs20",staticStyle:{height:"88px",cursor:"pointer",color:"#555"},attrs:{href:"/image-service/common/file_get/"+t.key+"?systemId=dataPlatform",download:t.name}})])])])})),0):a("div",{staticStyle:{"text-align":"center",margin:"10px auto"}},[e._v("暂无数据")])])})),0)})),0):a("div",{staticStyle:{"text-align":"center",margin:"10px auto"}},[e._v("暂无数据")])])},An=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"file-box-left "},[a("div",{staticClass:"file-box-left-content "},[a("span",{staticClass:"iconfont icon-Excel excel fs20"})])])}],Nn={props:["exhibitionFile"],data:function(){return{}},created:function(){},methods:{delFile:function(e){return e&&e.length>14?e.substring(0,14)+"...":e},deleteFile:function(e,t){this.filesArr.splice(e,1),this.$emit("change",this.filesArr,this.defined)},uploadAndSubmit:function(e){var t=e.file,a=new FileReader,i=this,n=t.name.split("."),r=n[n.length-1],o="&key="+n[0]+t.uid+"."+r,s=tools.formatDate(new Date(t.lastModified));a.onloadstart=function(){},a.onprogress=function(e){},a.onload=function(){},a.onloadend=function(){if(a.error);else{var e=new XMLHttpRequest;e.open("POST","/image-service/common/file_upload?systemId=dataPlatform&secret=9e0891a7a8c8e885&overwrite=true"+o),e.send(a.result),e.onreadystatechange=function(){if(4==e.readyState)if(console.log(e),200==e.status){var a={key:o.split("=")[1],type:r,name:t.name,createTime:s,systemId:"dataPlatform"};i.filesArr.push(a),i.$emit("change",i.filesArr,i.defined)}else this.$message.error(res.data.ResultMsg)}}},a.readAsArrayBuffer(t)}}},Pn=Nn,On=(a("264c"),Object(l["a"])(Pn,Tn,An,!1,null,"c6a0631e",null)),Rn=On.exports,Fn={name:"exhibition-file",props:["exhibitionFile"],data:function(){return{}},components:{lookFile:Rn}},Mn=Fn,En=(a("9789"),Object(l["a"])(Mn,Dn,jn,!1,null,"4f73814c",null)),Ln=En.exports,$n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"exhibition-image"},[a("p",{staticClass:"title"},[a("span",{staticClass:" icon-floorplan iconfont"}),a("span",[e._v(e._s(e.exhibitionImage.title))])]),a("div",{staticClass:"image"},[a("lookImage",{attrs:{exhibitionImage:e.exhibitionImage}})],1)])},qn=[],Bn=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"sagaUploads-look-image"}},[a("div",{staticClass:"saga-upload-images"},[Object.keys(e.exhibitionImage.list).length?a("div",e._l(e.exhibitionImage.list,(function(t,i,n){return a("div",{key:n},e._l(t,(function(t,n){return a("div",{},[a("p",{staticClass:"title"},[a("span",{staticClass:"iconfont icon-juxing"}),e._v(" "+e._s(i)+" ")]),void 0!=t.PicList&&t.PicList.length>0?a("div",[e._l(t.PicList,(function(t){return[a("div",{staticClass:"point-look-image"},[a("img",{directives:[{name:"load",rawName:"v-load"}],staticStyle:{"margin-bottom":"5px"},attrs:{src:e.handleLookImage(t.key),alt:""},on:{click:e.lookImg}}),a("p",{staticClass:"pic-name"},[e._v(e._s(e.handleName(t.name)))])])]}))],2):a("div",{staticStyle:{"text-align":"center",margin:"10px auto"}},[e._v("暂无数据")])])})),0)})),0):a("div",{staticStyle:{"text-align":"center"}},[e._v("暂无数据")])]),a("details-dialog",{attrs:{title:"图片",iframeSrc:e.iframeSrc,dialog:e.dialog,setData:e.exhibitionImage.arr}})],1)},zn=[],Vn={components:{detailsDialog:wa},props:["exhibitionImage"],data:function(){return{baseUrl:"",imageGetUrl:"/image-service/common/image_get?systemId=dataPlatform",imageUploadUrl:"/image-service/common/image_upload?systemId=dataPlatform&secret=9e0891a7a8c8e885&overwrite=true",imagesArr:[],iframeSrc:"",dialog:{details:!1}}},methods:{handleLookImage:function(e){return"/image-service/common/image_get?systemId=dataPlatform&key=".concat(e)},handleName:function(e){return e&&e.length>10?e.substring(1,10)+"...":e},lookImg:function(){this.dialog.details=!0,this.iframeSrc=window.__systemConf.BASE_URL+":8890/photo-View.html"},uploadAndSubmit:function(e,t){var a=e.file,i=new FileReader,n=this,r=a.name.split("."),o=r[r.length-1],s=tools.formatDate(new Date(a.lastModified)),l=a.uid;t&&(l=t),i.onloadstart=function(){},i.onprogress=function(e){},i.onload=function(){},i.onloadend=function(){if(i.error);else{var e=new XMLHttpRequest;e.open("POST",n.imageUploadUrl+"&key="+l+"."+o),e.send(i.result),e.onreadystatechange=function(){4==e.readyState&&200==e.status&&("image"==n.type&&n.imagesArr.push({name:l+"",key:l+"."+o,systemId:"dataPlatform",type:"image",createTime:s}),"mp4"==o&&(n.videoPicArr.push({name:l+"",key:l+"."+o,systemId:"dataPlatform",type:"video",createTime:s}),n.creatImg(n.imageGetUrl+"&key="+l+"."+o,l)),n.$emit("change",n.imagesArr,n.defined,n.videoPicArr))}}},i.readAsArrayBuffer(a)},dataURLtoBlob:function(e,t){for(var a=atob(e.split(",")[1]),i=[],n=0;n<a.length;n++)i.push(a.charCodeAt(n));return new Blob([new Uint8Array(i)],{type:t})},creatImg:function(e,t){var a=document.getElementById("video");a.src=e;var i=this;a.onloadeddata=function(){var e=document.createElement("canvas");e.width=300,e.height=300*this.videoHeight/this.videoWidth,e.getContext("2d").drawImage(this,0,0,e.width,e.height);var a=i.dataURLtoBlob(e.toDataURL("image/png"),"image/png"),n=new File([a],"video_image.png",{type:"image/png",lastModified:Date.now()});i.uploadAndSubmit({file:n},t)}}},watch:{keysArr:function(e){this.imageFalg()}},directives:{load:function(e){var t=document.createElement("img");t.style.position="absolute",t.style.top="-999px",t.style.opacity=0,t.src=e.src,e.src="",t.onload=function(){var a=t.width,i=t.height;a>i?(e.style.height="100%",e.style.width="auto",e.style.position="absolute",e.style.left="50%",e.style.top="0",e.style.transform="translateX(-50%)",e.style.webkitTransform="translateX(-50%) translateY(0)",e.style.MozTransform="translateX(-50%) translateY(0)",e.style.msTransform="translateX(-50%) translateY(0)",e.style.OTransform="translateX(-50%) translateY(0)"):a<i?(e.src=t.src,e.style.width="100%",e.style.height="auto",e.style.position="absolute",e.style.top="50%",e.style.left="0",e.style.transform="translateY(-50%) translateX(0)",e.style.webkitTransform="translateY(-50%) translateX(0)",e.style.MozTransform="translateY(-50%) translateX(0)",e.style.msTransform="translateY(-50%) translateX(0)",e.style.OTransform="translateY(-50%) translateX(0)"):(e.style.width="100%",e.style.height="100%",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.transform="translateY(0) translateX(0)",e.style.webkitTransform="translateY(0) translateX(0)",e.style.MozTransform="translateY(0) translateX(0)",e.style.msTransform="translateY(0) translateX(0)",e.style.OTransform="translateY(0) translateX(0)"),e.src=t.src}}}},Un=Vn,Hn=(a("20f6"),Object(l["a"])(Un,Bn,zn,!1,null,null,null)),Gn=Hn.exports,Kn={name:"exhibition-image",props:["exhibitionImage"],components:{lookImage:Gn},data:function(){return{}},methods:{deepcopy:function(e){return JSON.parse(JSON.stringify(e))}}},Wn=Kn,Xn=(a("0f2a"),Object(l["a"])(Wn,$n,qn,!1,null,"1cd4b3ba",null)),Yn=Xn.exports,Jn=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"exhibition-video"},[a("p",{staticClass:"title"},[a("span",{staticClass:" icon-shipin-tianchong iconfont"}),e._v(" "+e._s(e.exhibitionVideo.title))]),a("div",{staticClass:"image"},[a("lookVideo",{attrs:{exhibitionVideo:e.exhibitionVideo}})],1)])},Qn=[],Zn=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"sagaUploads-look-video"}},[a("div",{staticClass:"saga-upload-images"},[e.exhibitionVideo.list.length?a("div",[e._l(e.exhibitionVideo.list,(function(t,i){return[a("div",{staticClass:"point-look-video"},[a("video",{attrs:{width:"100%",height:"100%;",src:e.imageGetUrl+"&key="+t.key,controls:"controls"}},[e._v("您的浏览器不支持 video 标签。")])])]}))],2):a("div",{staticStyle:{"text-align":"center",margin:"10px auto"}},[e._v("暂无数据")])])])},er=[],tr={props:["exhibitionVideo"],data:function(){return{baseUrl:"",imageGetUrl:"/image-service/common/image_get?systemId=dataPlatform",imageUploadUrl:"/image-service/common/image_upload?systemId=dataPlatform&secret=9e0891a7a8c8e885&overwrite=true",imagesArr:[],iframeSrc:"",dialog:{details:!1}}},methods:{uploadAndSubmit:function(e,t){console.log("lalala",e);var a=e.file,i=new FileReader,n=this,r=a.name.split("."),o=r[r.length-1],s=tools.formatDate(new Date(a.lastModified)),l=a.uid;t&&(l=t),i.onloadstart=function(){},i.onprogress=function(e){},i.onload=function(){},i.onloadend=function(){if(i.error);else{var e=new XMLHttpRequest;e.open("POST",n.imageUploadUrl+"&key="+l+"."+o),e.send(i.result),e.onreadystatechange=function(){4==e.readyState&&200==e.status&&("image"==n.type&&n.imagesArr.push({name:l+"",key:l+"."+o,systemId:"dataPlatform",type:"image",createTime:s}),"mp4"==o&&(n.imagesArr.push({name:l+"",key:l+"."+o,systemId:"dataPlatform",type:"video",createTime:s}),n.creatImg(n.imageGetUrl+"&key="+l+"."+o,l)),"video"==n.type&&"png"==o&&n.videoPicArr.push({name:l+"",key:l+"."+o,systemId:"dataPlatform",type:"image_video",createTime:s}),n.$emit("change",n.imagesArr,n.defined,n.videoPicArr))}}},i.readAsArrayBuffer(a)},dataURLtoBlob:function(e,t){for(var a=atob(e.split(",")[1]),i=[],n=0;n<a.length;n++)i.push(a.charCodeAt(n));return new Blob([new Uint8Array(i)],{type:t})},creatImg:function(e,t){var a=document.getElementById("video");a.src=e;var i=this;a.onloadeddata=function(){var e=document.createElement("canvas");e.width=300,e.height=300*this.videoHeight/this.videoWidth,e.getContext("2d").drawImage(this,0,0,e.width,e.height);var a=i.dataURLtoBlob(e.toDataURL("image/png"),"image/png"),n=new File([a],"video_image.png",{type:"image/png",lastModified:Date.now()});i.uploadAndSubmit({file:n},t)}}},watch:{keysArr:function(e){this.imageFalg()}},directives:{load:function(e){var t=document.createElement("img");t.style.position="absolute",t.style.top="-999px",t.style.opacity=0,t.src=e.src,e.src="",t.onload=function(){var a=t.width,i=t.height;a>i?(e.style.height="100%",e.style.width="auto",e.style.position="absolute",e.style.left="50%",e.style.top="0",e.style.transform="translateX(-50%)",e.style.webkitTransform="translateX(-50%) translateY(0)",e.style.MozTransform="translateX(-50%) translateY(0)",e.style.msTransform="translateX(-50%) translateY(0)",e.style.OTransform="translateX(-50%) translateY(0)"):a<i?(e.src=t.src,e.style.width="100%",e.style.height="auto",e.style.position="absolute",e.style.top="50%",e.style.left="0",e.style.transform="translateY(-50%) translateX(0)",e.style.webkitTransform="translateY(-50%) translateX(0)",e.style.MozTransform="translateY(-50%) translateX(0)",e.style.msTransform="translateY(-50%) translateX(0)",e.style.OTransform="translateY(-50%) translateX(0)"):(e.style.width="100%",e.style.height="100%",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.transform="translateY(0) translateX(0)",e.style.webkitTransform="translateY(0) translateX(0)",e.style.MozTransform="translateY(0) translateX(0)",e.style.msTransform="translateY(0) translateX(0)",e.style.OTransform="translateY(0) translateX(0)"),e.src=t.src}}}},ar=tr,ir=(a("8efb"),Object(l["a"])(ar,Zn,er,!1,null,null,null)),nr=ir.exports,rr={name:"exhibition-video",props:["exhibitionVideo"],components:{lookVideo:nr},data:function(){return{}},methods:{deepcopy:function(e){return JSON.parse(JSON.stringify(e))}}},or=rr,sr=(a("7400"),Object(l["a"])(or,Jn,Qn,!1,null,"7572c589",null)),lr=sr.exports,cr=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"exhibition-crux"},[a("p",{staticClass:"title"},[a("span",{staticClass:"iconfont icon-juxing"}),e._v(" "+e._s(e.exhibitionCrux.title)+" "),a("span",{staticClass:"icon-shezhi iconfont setting",on:{click:e.setting}})]),a("div",[e.exhibitionCrux.cruxArray.length?a("div",e._l(e.exhibitionCrux.cruxArray,(function(t,i){return a("div",{key:i,staticClass:"crux-list"},[e._v(e._s(t.name)+": "),"equipQRCode"==t.Path||"roomQRCode"==t.Path||"shaftQRCode"==t.Path?a("el-popover",{attrs:{placement:"top",width:"360",trigger:"hover"}},[a("p",{staticStyle:{"border-bottom":"1px solid #eee",padding:"2px 0 4px 0"}},[e._v(e._s(t.InfoPointName))]),a("div",{staticStyle:{overflow:"hidden"}},[a("div",{staticStyle:{float:"left",width:"60%"}},[a("img",{staticStyle:{width:"200px",height:"200px"},attrs:{src:"/image-service/common/file_get/"+t.value+"?systemId=dataPlatform",alt:"二维码"}})]),a("div",{staticStyle:{float:"right",width:"40%","margin-top":"30px"}},[a("span",[e._v(e._s(t.value))])])]),a("div",{staticStyle:{"text-align":"center",margin:"0"}},[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){return e.handleCopy(t.value)}}},[e._v("复制")])],1),a("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v(e._s(t.value?"有":"-"))])],1):Array.isArray(t.value)&&"ATTACHMENT"==t.dataType?a("el-popover",{attrs:{placement:"right",width:"250",trigger:"hover"}},[a("p",{staticStyle:{"border-bottom":"1px solid #eee",padding:"2px 0 4px 0"}},[e._v(e._s(t.InfoPointName))]),e._l(t.value,(function(t,i){return a("div",[a("div",[e._v("图纸名称:"+e._s(t.name)+" "),a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){return e.downloadFile(t.key)}}},[e._v("下载")])],1)])})),a("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v(e._s(t.value?"有":"-"))])],2):t.value&&t.value.length&&(t.InfoPointName+":"+t.value).length>21?a("el-popover",{attrs:{placement:"top",width:"160",trigger:"hover"}},[a("p",{staticStyle:{"border-bottom":"1px solid #eee",padding:"2px 0 4px 0"}},[e._v(e._s(t.InfoPointName))]),a("p",[e._v(e._s(t.value))]),a("div",{staticStyle:{"text-align":"center",margin:"0"}},[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){return e.handleCopy(t.value)}}},[e._v("复制")])],1),a("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v(e._s(e.handleName(t.InfoPointName,t.value)))])],1):a("span",[e._v(e._s(t.value))])],1)})),0):e._e()]),a("cruxDialog",{ref:"setting",attrs:{crux:e.exhibitionCrux.allMessage,type:e.type},on:{cruxSuccess:e.cruxSuccess}})],1)},ur=[],dr=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{staticClass:"crux-dialog",attrs:{title:"关键信息点",visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[e._l(e.checkList,(function(t,i,n){return a("section",{key:n},[a("h4",{staticClass:"base"},[e._v(e._s("undefined"==i?"基本信息":i))]),e._l(t,(function(t,i){return a("el-checkbox",{key:t+i,attrs:{label:t.InfoPointName},model:{value:t.KeyWord,callback:function(a){e.$set(t,"KeyWord",a)},expression:"option.KeyWord"}})}))],2)})),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1)],2)},pr=[],hr={name:"cruxDialog",props:["crux","type"],data:function(){return{dialogFormVisible:!1,checkList:{},checkboxGroup:[]}},computed:{allChecks:function(){var e=[];for(var t in this.checkList)if(this.checkList.hasOwnProperty(t)){var a=this.checkList[t];e.push.apply(e,Object(wn["a"])(a))}return e}},watch:{crux:function(){this.changeList()}},methods:{changeList:function(){var e={};for(var t in this.crux)if(this.crux.hasOwnProperty(t)){var a=this.crux[t];e[t]=Object(wn["a"])(a.paths.map((function(e){return{InfoPointCode:e.InfoPointCode,KeyWord:e.KeyWord||!1,type:e.type,code:e.InfoPointCode,classCode:e.classCode,id:e.id,groupCode:e.groupCode,InfoPointName:e.InfoPointName}})))}this.checkList=e},dialogOpen:function(){this.dialogFormVisible=!0},save:function(){var e=this,t=this.allChecks.filter((function(e){return e.KeyWord}));if(t.length>6)return this.$message.info("不可超过6个"),!1;var a={content:[]};a.content=this.allChecks.map((function(e){return e.InfoPointName&&delete e.InfoPointName,{keyWord:e.KeyWord,type:e.type,code:e.InfoPointCode,classCode:e.classCode,id:e.id,groupCode:e.groupCode}})),et.a.setDataDictionary(a,(function(t){e.dialogFormVisible=!1,e.$emit("cruxSuccess"),e.$message.success("保存成功")}))}}},fr=hr,mr=(a("c9fe"),Object(l["a"])(fr,dr,pr,!1,null,"7b362ad8",null)),gr=mr.exports,vr={name:"exhibition-crux",props:["exhibitionCrux","type"],components:{cruxDialog:gr},data:function(){return{list:[]}},methods:{downloadFile:function(e){window.open("/image-service/common/file_get/"+e+"?systemId=dataPlatform")},setting:function(){this.$refs.setting.dialogOpen()},cruxSuccess:function(){this.$emit("cruxSuccess")},handleCopy:function(e){var t=document.createElement("input");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("Copy"),this.$message.success("复制成功"),t.remove()},handleName:function(e,t){var a=t;Array.isArray(a)&&(a=JSON.stringify(t));var i="".concat(e,":").concat(a);return i.length>21?a.substring(0,21-"".concat(e,":").length)+"...":a}}},yr=vr,br=(a("3def"),Object(l["a"])(yr,cr,ur,!1,null,"1cd70944",null)),wr=br.exports,Cr=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"exhibition-energy"},[a("div",{staticClass:"title"},e._l(e.exhibitionEnergy.list,(function(t,i,n){return a("section",[a("h4",{staticClass:"base"},[e._v(e._s(i))]),e._l(t.paths,(function(t,i,n){return a("div",{staticClass:"table-dynamic"},[a("div",{staticClass:"table-title"},[e._v(" "+e._s(t.InfoPointName)+":")]),a("p",{staticClass:"iot_data",style:{color:t.value?"":"#F56C6C"},attrs:{title:t.value?""+t.value:"未维护"}},[e._v(e._s(t.value?""+t.value:"未维护"))]),"0"==t.data||t.data?a("p",[e._v(e._s(t.data)+e._s(t.Unit))]):t.error?a("el-popover",{attrs:{placement:"right",width:"160",trigger:"hover"}},[a("p",{staticStyle:{"border-bottom":"1px solid #eee",padding:"2px 0 4px 0"}},[e._v("错误原因")]),a("p",[e._v(e._s("表号功能号不存在"))]),a("div",{staticStyle:{"text-align":"center",margin:"0"}},[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){return e.handleCopy(t.error)}}},[e._v("复制错误信息")])],1),a("el-button",{staticStyle:{color:"#F56C6C"},attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("error")])],1):a("p",[e._v("--")]),a("p",[e._v(e._s(t.receivetime?e.formatDate(t.receivetime):"--"))])],1)}))],2)})),0)])},Ir=[],xr={name:"exhibitionEnergy",props:["exhibitionEnergy"],methods:{formatDate:function(e){return e?e.includes("-")?e:e.length>8?e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2)+" "+e.substr(8,2)+":"+e.substr(10,2)+":"+e.substr(12,2):"null"===e?"--":e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2)+" "+e.substr(8,2):"--"},handleCopy:function(e){var t=document.createElement("input");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("Copy"),this.$message.success("复制成功"),t.remove()}}},Sr=xr,kr=(a("d4c2"),Object(l["a"])(Sr,Cr,Ir,!1,null,"ef204720",null)),_r=kr.exports,Dr=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"exhibition-maintain"},[a("p",{staticClass:"title disable"},[a("span",{staticClass:" iconfont icon-weixiubeijing "}),e._v(" "+e._s(e.exhibitionMaintain.title)+" "),a("span",{staticClass:"iconfont icon-right ",staticStyle:{float:"right","margin-right":"20px"}})])])},jr=[],Tr={name:"exhibitionMaintain",props:["exhibitionMaintain"]},Ar=Tr,Nr=(a("d5e1"),Object(l["a"])(Ar,Dr,jr,!1,null,"552a0238",null)),Pr=Nr.exports,Or=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"select-radio"},[a("p",{staticClass:"title"},[a("span",{staticClass:"iconfont icon-juxing"}),e._v(" "+e._s(e.selectRadio.information)+" ")]),e._l(e.selectRadio.radioList,(function(t,i){return a("el-radio-group",{key:i,staticStyle:{margin:"0 10px"},on:{change:e.changeRadio},model:{value:e.selectRadio.initRadio,callback:function(t){e.$set(e.selectRadio,"initRadio",t)},expression:"selectRadio.initRadio"}},[a("el-radio",{attrs:{label:t.label}},[e._v(e._s(t.value))])],1)}))],2)},Rr=[],Fr={name:"selectRadio",props:["selectRadio"],data:function(){return{radio:"1"}},methods:{changeRadio:function(e){this.$emit("changeRadio",e)}}},Mr=Fr,Er=(a("95cc"),Object(l["a"])(Mr,Or,Rr,!1,null,"996549b0",null)),Lr=Er.exports,$r={name:"deviceDetails",components:{exhibitionBaseInformation:_n,exhibitionFile:Ln,exhibitionVideo:lr,exhibitionImage:Yn,exhibitionMaintain:Pr,selectRadio:Lr,exhibitionCrux:wr,exhibitionEnergy:_r},created:function(){this.id=this.$route.query.equipId,this.name=this.$route.query.equipName,this.code=this.$route.query.equipCode,this.type=this.$route.query.type,this.list=this.$route.query.data,this.getData()},computed:Object(v["a"])({},Object(y["b"])("layout",["projectId","secret","userId","group_code"])),data:function(){return{id:"",name:"",code:"",type:"",list:[],pointData:[],exampleData:{},currentRadio:"1",criterias:[],criteriasArray:[],selectRadio:{information:"设备信息点",initRadio:"1",radioList:[{value:"显示需采集信息点",label:"1"},{value:"显示有值信息点",label:"2"},{value:"显示全部信息点",label:"3"}]},exhibitionBaseInformation:{information:{}},exhibitionEnergy:{title:"能耗信息",firstName:"",dynamic:[],list:{}},exhibitionMaintain:{title:"维修/维保记录"},exhibitionFile:{title:"文件",list:{}},exhibitionCrux:{title:"关键信息点:",cruxArray:[],allMessage:[]},exhibitionImage:{title:"图片",list:{},arr:[]},exhibitionVideo:{title:"视频",list:[]},instance:{},isShowImage:!1,isShowVideo:!1,isShowFile:!1}},methods:{deepCopy:function(e){return JSON.parse(JSON.stringify(e))},cruxSuccess:function(){this.getData()},getData:function(){var e=this,t={orders:"sort asc",pageNumber:1,pageSize:1e3,type:this.type},a={filters:"id='".concat(this.id,"'")},i=new Promise((function(e,a){et.a.getDataDictionary(t,(function(t){e(t)}))})),n=new Promise((function(e,t){ut.a.queryEquip(a).then((function(t){e(t)}))}));this.exhibitionEnergy.dynamic=[],this.criterias=[],Promise.all([i,n]).then((function(t){e.pointData=t[0].content,e.exampleData=t[1].content[0],e.name=e.exampleData.localName?e.exampleData.localName:e.exampleData.name?e.exampleData.name:"",e.code=e.exampleData.localId?e.exampleData.localId:"";var a=e.deepCopy(t[1].content[0]);for(var i in a=ze["default"].flattenKeys(a),a)Array.isArray(a[i])&&!a[i].length&&delete a[i];e.instance=a,e.pointData.forEach((function(t){if("STATIC"!=t.category){var a=ze["default"].dataForKey(e.exampleData,t.path);a&&e.criterias.push({objectId:e.exampleData.id,infoCode:t.code})}e.instance.hasOwnProperty(t.path)&&(t.value=e.instance[t.path])}));var n={groupCode:e.group_code,appId:"datacenter",projectId:e.projectId,data:[]};n.data=e.criterias,e.criterias.length?lt.a.BeatchQueryParam(n,(function(t){e.criteriasArray=t.data,t.data.length&&t.data.map((function(t){e.pointData.map((function(a){return a.code==t.infoCode&&(a.dataSource?a.dataSource.forEach((function(i){i.code==t.data&&e.$set(a,"data",i.name)})):e.$set(a,"data",t.data),e.$set(a,"svalue",t.infoValue),e.$set(a,"receivetime",t.time),e.$set(a,"error",t.error)),a}))})),e.handleRadios(e.currentRadio),e.handleEnclosure()})):(e.handleRadios(e.currentRadio),e.handleEnclosure())}))},handleEnclosure:function(){var e=[];e=this.pointData.filter((function(e){return e.value})),this.handlePicList(e),this.handleFileList(e)},handleRadios:function(e){var t=this,a=[];this.exhibitionCrux.cruxArray=this.pointData.filter((function(e){return e.keyWord})),this.exhibitionCrux.cruxArray.map((function(e){if(t.instance.hasOwnProperty(e.path))return Object(v["a"])(Object(v["a"])({},e),{},{value:t.instance[e.path]})})),a=1==e?this.pointData.filter((function(e){return e.visible})):2==e?this.pointData.filter((function(e){return e.value})):this.pointData,this.displayData(a)},handlePicList:function(e){var t=this,a={},i=[];e.map((function(e){if("ATTACHMENT"==e.dataType)switch(e.path){case"infos.installPic":case"infos.nameplate":case"infos.pic":t.instance.hasOwnProperty(e.path)&&(e.PicList=t.instance[e.path].filter((function(e){return"image"===e.type||"panorama"===e.type})),i=i.concat(t.instance[e.path].filter((function(e){return"video"===e.type})))),a[e.name]||(a[e.name]=[]),a[e.name].push(Object(v["a"])({},e));break}}));var n=[];for(var r in a)if(Array.isArray(a[r])){var o=a[r];o.forEach((function(e){e.PicList&&n.push.apply(n,Object(wn["a"])(e.PicList))}))}this.exhibitionImage.list=a,this.exhibitionImage.arr=n,this.exhibitionVideo.list=i,this.isShowImage=!!n.length,this.isShowVideo=!!i.length},handleFileList:function(e){var t=this,a={};e.map((function(e){if("ATTACHMENT"==e.dataType)switch(e.path){case"infos.originalCertificate":case"infos.acceptanceReport":case"infos.maintainManual":case"infos.archive":case"infos.drawing":case"infos.approachingAcceptance":case"infos.testReport":case"infos.supplierContract":case"infos.productCertification":case"infos.operationManual":case"infos.insuranceFile":case"infos.checkReport":case"infos.installDrawing":case"infos.installInstruction":case"infos.designIDGraph":case"infos.fanCharacterCurve":t.instance.hasOwnProperty(e.path)&&(e.fileList=t.instance[e.path]),a[e.name]||(a[e.name]=[]),a[e.name].push(Object(v["a"])({},e));break}})),this.exhibitionFile.list=a;var i=[];for(var n in a)if(Array.isArray(a[n])){var r=a[n];r.forEach((function(e){e.fileList&&i.push.apply(i,Object(wn["a"])(e.fileList))}))}this.isShowFile=!!i.length},changeRadio:function(e){this.handleRadios(e),this.currentRadio=e},formatDate:function(e){return e?e.includes("-")?e:e.length>8?e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2)+" "+e.substr(8,2)+":"+e.substr(10,2)+":"+e.substr(12,2):e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2)+" "+e.substr(8,2):"--"},displayData:function(e){var t=this,a={},i={};e.map((function(e){if(t.instance.hasOwnProperty(e.path)&&2!=t.currentRadio&&(e.value=t.instance[e.path]),"DATETIME"==e.dataType&&t.instance.hasOwnProperty(e.path)){var n=t.instance[e.path];e.value=t.formatDate(n)}if(e.dataSource&&e.dataSource.length){var r=e.dataSource;if("ENUM"==e.dataType){var o=ze["default"].formatDataSource(e.dataSource);o.forEach((function(a){a.code==t.instance[e.path]&&(e.value=a.name)}))}else if(("MENUM"==e.dataType||"DATETIME"==e.dataType)&&t.instance.hasOwnProperty(e.path)&&!Array.isArray(t.instance[e.path])){var s=t.instance[e.path].split(",");e.value=r.filter((function(e){return s.includes(e.code)})).map((function(e){return e.name})).join(",")}r.forEach((function(a){a.code==t.instance[e.path]&&(e.value=a.name)}))}switch(e.category){case"STATIC":a["".concat(e.firstName).concat(e.secondName?"/"+e.secondName:"")]?a["".concat(e.firstName).concat(e.secondName?"/"+e.secondName:"")].paths.push({Path:e.path,InfoPointName:e.name,InfoPointCode:e.code,Value:e.value,Visible:e.visible,KeyWord:e.keyWord,classCode:e.classCode,id:e.id,groupCode:e.groupCode,type:e.type,dataType:e.dataType,dataSource:e.dataSource}):a["".concat(e.firstName).concat(e.secondName?"/"+e.secondName:"")]={paths:[{Path:e.path,InfoPointName:e.name,InfoPointCode:e.code,Value:e.value,Visible:e.visible,KeyWord:e.keyWord,classCode:e.classCode,id:e.id,groupCode:e.groupCode,type:e.type,dataType:e.dataType,dataSource:e.dataSource}]};break;default:i["".concat(e.firstName).concat(e.secondName?"/"+e.secondName:"")]?i["".concat(e.firstName).concat(e.secondName?"/"+e.secondName:"")].paths.push({Path:e.path,InfoPointName:e.name,InfoPointCode:e.code,value:e.svalue,Visible:e.visible,KeyWord:e.keyWord,data:e.data,receivetime:e.receivetime,error:e.error,Unit:e.unit,FirstName:e.firstName,dataType:e.dataType,dataSource:e.dataSource}):i["".concat(e.firstName).concat(e.secondName?"/"+e.secondName:"")]={paths:[{Path:e.path,InfoPointName:e.name,InfoPointCode:e.code,value:e.svalue,Visible:e.visible,KeyWord:e.keyWord,data:e.data,receivetime:e.receivetime,error:e.error,Unit:e.unit,FirstName:e.firstName,dataType:e.dataType,dataSource:e.dataSource}]}}})),this.exhibitionBaseInformation.information=a,this.exhibitionCrux.allMessage=a,this.exhibitionEnergy.list=i},goBack:function(){this.$router.push({name:"facilityLedger"})},handleChangeExample:function(){this.selectRadio.initRadio="1",this.currentRadio="1",this.getData()},handleClickPrev:function(){var e=this,t=this.list.findIndex((function(t){return t.value==e.id}));this.id=this.list[t-1].value,this.handleChangeExample()},handleClickNext:function(){var e=this,t=this.list.findIndex((function(t){return t.value==e.id}));this.id=this.list[t+1].value,this.handleChangeExample()}},watch:{projectId:function(){this.$router.push({path:"/ledger/facility"})}}},qr=$r,Br=(a("b2df"),Object(l["a"])(qr,yn,bn,!1,null,"d3e43494",null)),zr=Br.exports,Vr=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"deviceList"}},[a("saga-title",{attrs:{mess:e.mess}}),a("div",{staticClass:"table-main"},[a("div",{staticClass:"search-header"},[a("floor-cascader",{on:{change:e.changeFloor}}),a("my-cascader",{ref:"cascader",on:{change:e.changeDevice}})],1),a("hanson-table",{ref:"tableMain",on:{close:e.close}})],1),a("table-transfers")],1)},Ur=[],Hr=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"cascaderMap"}},[a("span",{staticClass:"buildFloor",staticStyle:{"padding-right":"12px"}},[e._v("所属专业系统类型")]),a("el-select",{style:e.isWidth?"":"width:160px;",attrs:{placeholder:"请选择",props:e.props,filterable:"",size:"small"},on:{change:e.changeVal},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e){return a("el-option",{key:e.classCode,attrs:{label:e.categoryName,value:e.classCode}})})),1)],1)},Gr=[],Kr=et.a.queryPhysicsAllType,Wr=lt.a.queryLinkSys,Xr={name:"getCode",props:{isWidth:{type:Boolean,default:!0},all:{default:!1}},computed:Object(v["a"])({},Object(y["b"])("layout",["projectId"])),data:function(){return{value:[],options:[],props:{value:"classCode",label:"categoryName"}}},created:function(){this.init()},watch:{projectId:function(){this.value="",this.init()}},methods:{init:function(){this.all?this.getAllData():this.getData()},setValue:function(e){this.value=e},changeVal:function(e){var t={};this.options.map((function(a){a.classCode==e&&(t=a)})),this.value=e,this.$emit("change",t)},getData:function(){var e=this;return Object(W["a"])(regeneratorRuntime.mark((function t(){var a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={distinct:!0,pageNumber:1,pageSize:1e3,projection:["classCode","CategoryName"]},t.prev=1,t.next=4,Wr(a);case 4:i=t.sent,console.log({res:i}),e.options=i.content,e.value&&e.options.find((function(t){return t.classCode===e.value}))?e.changeVal(e.value):e.changeVal(""),t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](1),console.log({error:t.t0});case 13:case"end":return t.stop()}}),t,null,[[1,10]])})))()},getAllData:function(){var e=this;return Object(W["a"])(regeneratorRuntime.mark((function t(){var a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={type:"system"},t.next=3,Kr(a);case 3:i=t.sent,e.options=e.changeArr(i.content),e.value&&e.options.find((function(t){return t.classCode===e.value}))?e.changeVal(e.value):e.changeVal("");case 6:case"end":return t.stop()}}),t)})))()},changeArr:function(e){var t=[];return e.forEach((function(e){t.push({classCode:e.classCode||e.code,categoryName:e.categoryName||e.name})})),console.log(t,"data"),t}}},Yr=Xr,Jr=(a("3c4d"),Object(l["a"])(Yr,Hr,Gr,!1,null,"8cede20c",null)),Qr=Jr.exports,Zr=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{height:"calc(100% - 44.5px)",padding:"0px 10px 10px","box-sizing":"border-box"}},[a("div",{staticClass:"hanson-bar"},[a("div",{staticStyle:{float:"right",overflow:"hidden"}},[a("el-checkbox",{on:{change:function(t){return e.getHeaderData(e.mess)}},model:{value:e.isShowDelivered,callback:function(t){e.isShowDelivered=t},expression:"isShowDelivered"}},[e._v("显示有值信息点")]),a("span",{staticStyle:{"margin-left":"10px"}},[e._v("当前筛选条件下共"+e._s(e.page.total||"--")+"系统")])],1),a("el-select",{staticStyle:{width:"100px","margin-right":"20px","vertical-align":"bottom"},on:{change:function(t){return e.getHeaderData(e.mess)}},model:{value:e.onlyRead,callback:function(t){e.onlyRead=t},expression:"onlyRead"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("el-select",{staticStyle:{width:"100px","margin-right":"10px","vertical-align":"bottom"},on:{change:e.handleChangeShowType},model:{value:e.showType,callback:function(t){e.showType=t},expression:"showType"}},e._l(e.showTypes,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("el-select",{directives:[{name:"show",rawName:"v-show",value:e.mess.deviceId,expression:"mess.deviceId"}],staticStyle:{width:"200px","margin-right":"8px","vertical-align":"bottom"},attrs:{filterable:"",clearable:"",multiple:"","collapse-tags":"",placeholder:"请选择信息点"},on:{change:e.initTable},model:{value:e.showInfoList,callback:function(t){e.showInfoList=t},expression:"showInfoList"}},e._l(e.headerOptions,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1),a("el-button",{staticStyle:{width:"80px"},attrs:{size:"small",icon:"iconfont icon-tianjia"},on:{click:e.addDevice}},[e._v("添加系统")]),a("el-button",{staticStyle:{width:"80px"},attrs:{size:"small",icon:"iconfont icon-shuaxin"},on:{click:e.reset}},[e._v("刷新")]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:!e.onlyRead,expression:"!onlyRead"}],staticStyle:{width:"80px"},attrs:{size:"small",icon:"iconfont icon-undo"},on:{click:e.undo}},[e._v("撤销")])],1),a("qrcode",{ref:"qrcode",attrs:{dialog:e.myDialog,addBody:!0}}),a("upload-files-dialog",{ref:"upload",attrs:{keysArr:e.filesArr,firmDataType:"row",dialog:e.myDialog},on:{changeFile:e.fileChange}}),a("upload-img-dialog",{attrs:{read:!!e.onlyRead,keysArr:e.imgsArr,firmDataType:"row",dialog:e.myDialog},on:{changeFile:e.imgChange}}),a("pic-dialog",{attrs:{dialog:e.myDialog,keysArr:e.picsArr},on:{change:e.changePics}}),a("div",{directives:[{name:"show",rawName:"v-show",value:!e.mess.deviceId&&(!e.tableData||!e.tableData.length),expression:"!mess.deviceId && (!tableData || !tableData.length)"}],staticClass:"middle_sty",staticStyle:{height:"91%"}},[e._m(0)]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.mess.deviceId&&(!e.tableData||!e.tableData.length),expression:"mess.deviceId && (!tableData || !tableData.length)"}],staticClass:"middle_sty",staticStyle:{height:"91%"}},[e._m(1)]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.mess.deviceId&&e.tableData&&e.tableData.length,expression:"mess.deviceId && tableData && tableData.length"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"handsontable",attrs:{id:"handsontable"}}),a("div",{directives:[{name:"show",rawName:"v-show",value:e.mess.deviceId&&e.tableData&&e.tableData.length,expression:"mess.deviceId && tableData && tableData.length"}],staticClass:"right"},[a("my-pagination",{attrs:{page:e.page},on:{change:e.getTableData}})],1),e.myDialog.details?a("details-dialog",{attrs:{iframeSrc:e.iframeSrc,dialog:e.myDialog}}):e._e(),a("system-relevance",{attrs:{id:e.systemId,dialog:e.myDialog},on:{close:e.reset}}),a("menum",{attrs:{dialog:e.myDialog,updateInfoData:e.updateInfoData,updateInput:e.updateInput},on:{change:e.handleChangeMenum}}),a("el-dialog",{attrs:{title:"临时维护信息点",visible:e.myDialog.update,width:"670px"},on:{"update:visible":function(t){return e.$set(e.myDialog,"update",t)},close:e.handleCloseUpdate}},[a("el-row",[e._v(" 该信息点未定义对应组件,现在维护数据不确定后续是否可用。如确实需要维护,请点击 "),a("el-link",{attrs:{type:"primary",underline:!1},on:{click:function(t){e.updateInputShow=!0}}},[e._v("继续维护")]),e._v(" 。 ")],1),a("el-row",{directives:[{name:"show",rawName:"v-show",value:e.updateInputShow,expression:"updateInputShow"}],staticStyle:{"margin-top":"20px"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"请输入内容"},model:{value:e.updateInput,callback:function(t){e.updateInput=t},expression:"updateInput"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.myDialog.update=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.handleClickUpdate}},[e._v("确 认")])],1)],1),a("editSysfloor",{ref:"editFloor",on:{relateSuccess:e.relateSuccess}}),a("el-dialog",{attrs:{title:"确定新增系统的类型",visible:e.myDialog.addDevice,width:"30%"},on:{"update:visible":function(t){return e.$set(e.myDialog,"addDevice",t)}}},[a("el-row",[a("my-cascader",{ref:"cascader",attrs:{all:!0},on:{change:e.changeAddType}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.toAddDevice}},[e._v("下 一 步")])],1)],1)],1)},eo=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",{staticStyle:{"text-align":"center"}},[a("i",{staticClass:"icon-wushuju middle_sty iconfont"}),e._v("请选择系统类型")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",{staticStyle:{"text-align":"center"}},[a("i",{staticClass:"icon-wushuju middle_sty iconfont"}),e._v("暂无数据")])}],to={getParam:function(e,t,a,i){var n="",r=a.getPlugin("columnSorting").isSorted();if(i.length&&r){var o=a.getPlugin("columnSorting").rowsMapper.__arrayMap;n=e.map((function(e){return a.getSourceDataAtRow(i[o[e[0]]])}))}else if(r){var s=a.getPlugin("columnSorting").rowsMapper.__arrayMap;n=e.map((function(e){return a.getSourceDataAtRow(s[e[0]])}))}else n=i.length?e.map((function(e){return a.getSourceDataAtRow(i[e[0]])})):e.map((function(e){return a.getSourceDataAtRow(e[0])}));return n},getUnshiftParam:function(e,t,a,i){var n=a.getPlugin("columnSorting").isSorted();if(i.length&&n){var r=a.getPlugin("columnSorting").rowsMapper.__arrayMap;return a.getSourceDataAtRow(i[r[e[0][0]-1]])}if(n){var o=a.getPlugin("columnSorting").rowsMapper.__arrayMap;return a.getSourceDataAtRow(o[e[0][0]-1])}return i.length?a.getSourceDataAtRow(i[e[0][0]-1]):a.getSourceDataAtRow(e[0][0]-1)}},ao=to,io=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.dialog.qrcode?a("el-dialog",{attrs:{title:"二维码","custom-class":"custom-dialog",visible:e.dialog.qrcode,width:"500px"},on:{"update:visible":function(t){return e.$set(e.dialog,"qrcode",t)}}},[a("div",[a("div",{attrs:{id:"qrcode"}},[a("img",{staticStyle:{width:"200px",height:"200px",margin:"auto",display:"block"},attrs:{src:"/image-service/common/file_get/"+e.qrcodeUrl+"?systemId=dataPlatform",alt:"二维码"}})])])]):e._e()},no=[],ro={props:{dialog:{type:Object,default:function(){return{qrcode:!1}}},qrcodeUrl:{default:""}},data:function(){return{}},created:function(){},mounted:function(){},methods:{}},oo=ro,so=(a("1c41"),Object(l["a"])(oo,io,no,!1,null,"068a71cc",null)),lo=so.exports,co=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"上传图片",visible:e.dialog.pic,width:"500px"},on:{"update:visible":function(t){return e.$set(e.dialog,"pic",t)}}},[a("div",{staticStyle:{"max-height":"500px","overflow-y":"auto"}},[a("div",[a("h3",[e._v("设备图片")]),a("upload-imgs",{attrs:{readOnly:e.read,keysArr:e.picArrs,max:"6"},on:{change:e.imageItem}})],1),a("div",[a("h3",[e._v("视频")]),a("upload-imgs",{attrs:{accept:"video/*",type:"video",keysArr:e.videoArr,videoPicArr:e.videoPicArr,max:"2",readOnly:e.read},on:{change:e.videoItem}})],1)])])},uo=[],po=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:{marginLeft:e.isShow&&e.imagesArr.length>2?"157px":"",marginTop:e.isShow&&e.imagesArr.length>2?"-25px":""},attrs:{id:"sagaUploads"}},[a("div",{staticClass:"saga-upload-images"},[e._l(e.imagesArr,(function(t,i){return"video"!=e.type?a("div",{staticClass:"point-view"},[a("div",{staticClass:"point-image"},[e.readOnly?e._e():a("i",{staticClass:"el-icon-delete",on:{click:function(a){return e.delImage(i,t)}}}),a("img",{directives:[{name:"load",rawName:"v-load"}],attrs:{src:e.imageGetUrl+"&key="+t.key,alt:""},on:{click:e.lookImg}})]),e.readOnly?a("p",[e._v(e._s(t.name))]):a("form-input",{attrs:{label:"",keys:i,value:t.name,width:10},on:{change:e.getName}})],1):e._e()})),e._l(e.imagesArr,(function(t,i){return"video"==e.type?a("div",{staticClass:"point-view"},[a("div",{staticClass:"point-image"},[e.readOnly?e._e():a("i",{staticClass:"el-icon-delete",on:{click:function(a){return e.delImage(i,t)}}}),a("video",{attrs:{width:"100%",height:"100%;",src:e.imageGetUrl+"&key="+t.key,controls:"controls"}},[e._v("您的浏览器不支持 video 标签。")])]),e.readOnly?a("p",[e._v(e._s(t.name))]):a("form-input",{attrs:{label:"",keys:i,value:t.name,width:10},on:{change:e.getName}})],1):e._e()})),e.readOnly?e._e():a("div",{staticStyle:{float:"left"}},[a("el-upload",{staticClass:"avatar-uploader",staticStyle:{position:"relative"},attrs:{"http-request":e.uploadAndSubmit,"show-file-list":!1,accept:e.accept,action:"",drag:""}},[a("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),a("video",{staticStyle:{display:"none"},attrs:{id:"video",controls:""}})],1)],2),a("details-dialog",{attrs:{title:"图片",iframeSrc:e.iframeSrc,dialog:e.dialog,setData:e.imagesArr}})],1)},ho=[],fo={components:{formInput:$a,detailsDialog:wa},props:{keysArr:{type:[Array,String]},readOnly:{type:Boolean,default:!1},max:{type:[Number,String],default:6},accept:{type:String,default:"image/*"},type:{type:String,default:"image"},contextKey:{type:[String,Object]},isShow:{type:[Number,String]},defined:null,videoPicArr:{type:Array,default:function(){return[]}}},data:function(){return{baseUrl:"",imageGetUrl:"/image-service/common/image_get?systemId=dataPlatform",imageUploadUrl:"/image-service/common/image_upload?systemId=dataPlatform&secret=9e0891a7a8c8e885&overwrite=true",imagesArr:[],iframeSrc:"",dialog:{details:!1}}},created:function(){this.imageFalg()},methods:{getName:function(e,t){if(this.imagesArr[t].name=e,1===this.isShow){var a={};a[this.contextKey]=this.imagesArr,this.$emit("change",a,this.defined,this.videoPicArr)}else this.$emit("change",this.imagesArr,this.defined,this.videoPicArr)},imageFalg:function(){var e=Object(aa["a"])(this.keysArr);this.imagesArr="string"==e?[this.keysArr]:ze["default"].copyArr(this.keysArr),this.keysArr||(this.imagesArr=[])},lookImg:function(){this.dialog.details=!0,this.iframeSrc=window.__systemConf.BASE_URL+":8890/photo-View.html"},delImage:function(e,t){var a=this;"video"==this.type&&(this.videoPicArr=this.videoPicArr.map((function(t){return t.key.substring(0,t.length-3)==a.imagesArr[e].key.substring(0,a.imagesArr[e].length-3)?void 0:t})).filter((function(e){return e}))),this.imagesArr.splice(e,1),this.$emit("change",this.imagesArr,this.defined,this.videoPicArr)},uploadAndSubmit:function(e,t){var a=e.file,i=new FileReader,n=this,r=a.name.split("."),o=r[r.length-1],s=ze["default"].formatDate(new Date(a.lastModified)),l=a.uid;t&&(l=t),i.onloadstart=function(){},i.onprogress=function(e){},i.onload=function(){},i.onloadend=function(){if(i.error);else{var e=new XMLHttpRequest;e.open("POST",n.imageUploadUrl+"&key="+l+"."+o),e.send(i.result),e.onreadystatechange=function(){if(4==e.readyState&&200==e.status)if("image"==n.type&&n.imagesArr.push({name:l+"",key:l+"."+o,systemId:"dataPlatform",type:"image",createTime:s}),"mp4"==o&&(n.imagesArr.push({name:l+"",key:l+"."+o,systemId:"dataPlatform",type:"video",createTime:s}),n.creatImg(n.imageGetUrl+"&key="+l+"."+o,l)),"video"==n.type&&"png"==o&&n.videoPicArr.push({name:l+"",key:l+"."+o,systemId:"dataPlatform",type:"image_video",createTime:s}),1===n.isShow){var t={};t[n.contextKey]=n.imagesArr,n.$emit("change",t,n.defined,n.videoPicArr)}else n.$emit("change",n.imagesArr,n.defined,n.videoPicArr)}}},i.readAsArrayBuffer(a)},dataURLtoBlob:function(e,t){for(var a=atob(e.split(",")[1]),i=[],n=0;n<a.length;n++)i.push(a.charCodeAt(n));return new Blob([new Uint8Array(i)],{type:t})},creatImg:function(e,t){var a=document.getElementById("video");a.src=e;var i=this;a.onloadeddata=function(){var e=document.createElement("canvas");e.width=300,e.height=300*this.videoHeight/this.videoWidth,e.getContext("2d").drawImage(this,0,0,e.width,e.height);var a=i.dataURLtoBlob(e.toDataURL("image/png"),"image/png"),n=new File([a],"video_image.png",{type:"image/png",lastModified:Date.now()});i.uploadAndSubmit({file:n},t)}}},watch:{keysArr:function(e){this.imageFalg()}},directives:{load:function(e){var t=document.createElement("img");t.style.position="absolute",t.style.top="-999px",t.style.opacity=0,t.src=e.src,e.src="",t.onload=function(){var a=t.width,i=t.height;a>i?(e.style.height="100%",e.style.width="auto",e.style.position="absolute",e.style.left="50%",e.style.top="0",e.style.transform="translateX(-50%)",e.style.webkitTransform="translateX(-50%) translateY(0)",e.style.MozTransform="translateX(-50%) translateY(0)",e.style.msTransform="translateX(-50%) translateY(0)",e.style.OTransform="translateX(-50%) translateY(0)"):a<i?(e.src=t.src,e.style.width="100%",e.style.height="auto",e.style.position="absolute",e.style.top="50%",e.style.left="0",e.style.transform="translateY(-50%) translateX(0)",e.style.webkitTransform="translateY(-50%) translateX(0)",e.style.MozTransform="translateY(-50%) translateX(0)",e.style.msTransform="translateY(-50%) translateX(0)",e.style.OTransform="translateY(-50%) translateX(0)"):(e.style.width="100%",e.style.height="100%",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.transform="translateY(0) translateX(0)",e.style.webkitTransform="translateY(0) translateX(0)",e.style.MozTransform="translateY(0) translateX(0)",e.style.msTransform="translateY(0) translateX(0)",e.style.OTransform="translateY(0) translateX(0)"),e.src=t.src}}}},mo=fo,go=(a("8dd4"),Object(l["a"])(mo,po,ho,!1,null,null,null)),vo=go.exports,yo={components:{uploadImgs:vo},props:{dialog:{type:Object,default:function(){return{pic:!0}}},keysArr:{type:Array,default:function(){return[]}},read:{type:Boolean,default:!1}},data:function(){return{picArrs:[],panoramaArr:[],videoArr:[],videoPicArr:[],changeKeys:[]}},created:function(){},mounted:function(){},methods:{imageItem:function(e){this.picArrs=e,this.change()},panoramaItem:function(e){this.panoramaArr=e,this.change()},videoItem:function(e,t,a){this.videoArr=e,this.videoPicArr=a,this.change()},change:function(){var e=this.picArrs,t=this.videoArr,a=this.videoPicArr,i=this.panoramaArr;this.changeKeys=e.concat(t).concat(a).concat(i),this.$emit("change",this.changeKeys)},getArr:function(e,t,a){return e.map((function(e){return{systemId:"dataPlatform",name:t,type:a,key:e}}))},fatherTochild:function(){var e=this;this.panoramaArr=[],this.videoArr=[],this.videoPicArr=[],this.picArrs=[],this.keysArr instanceof Array?this.keysArr.map((function(t){"panorama"==t.type?e.panoramaArr.push(t):"video"==t.type?e.videoArr.push(t):"image_video"==t.type?e.videoPicArr.push(t):e.picArrs.push(t)})):(this.panoramaArr=[],this.videoArr=[],this.videoPicArr=[],this.picArrs=[])}},watch:{dialog:{deep:!0,handler:function(){this.dialog.pic&&this.fatherTochild()}}}},bo=yo,wo=Object(l["a"])(bo,co,uo,!1,null,null,null),Co=wo.exports,Io=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"current-page":e.page.currentPage,"page-sizes":e.page.sizes,"page-size":e.page.size,layout:e.isSmall?"total, sizes, prev, pager, next, jumper":"prev, pager, next",total:e.page.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentPage":function(t){return e.$set(e.page,"currentPage",t)},"update:current-page":function(t){return e.$set(e.page,"currentPage",t)}}})],1)},xo=[],So={name:"pagination",props:{page:{type:Object},isSmall:{type:Boolean,default:!0}},methods:{handleSizeChange:function(e){this.page.size=e,this.page.currentPage=1,this.change()},handleCurrentChange:function(e){this.page.currentPage=e,this.change()},change:function(){this.$emit("change")}}},ko=So,_o=(a("eda9"),Object(l["a"])(ko,Io,xo,!1,null,null,null)),Do=_o.exports,jo=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"关联设备","before-close":e.close,visible:e.dialog.relevance,width:"900px"},on:{"update:visible":function(t){return e.$set(e.dialog,"relevance",t)}}},[a("div",{attrs:{id:"tableTransfers"}},[a("div",{staticClass:"main-left"},[a("h4",[e._v("未关联该系统的设备")]),a("div",{staticClass:"border-view"},[a("div",{staticClass:"search"},[a("div",{staticClass:"search-small",staticStyle:{padding:"10px 10px 0 10px"}},[a("el-input",{staticStyle:{width:"300px","margin-right":"10px"},attrs:{placeholder:"输入设备名称进行查询",size:"small",clearable:""},model:{value:e.search1,callback:function(t){e.search1=t},expression:"search1"}}),a("el-button",{attrs:{size:"small"},on:{click:e.getLeftData}},[e._v("查找")])],1),a("div",{staticClass:"search-small",staticStyle:{padding:"10px"}},[a("floor-cascader",{attrs:{isWidth:!1},on:{change:e.changeBuild}}),a("cascader",{attrs:{isWidth:!1,all:!0},on:{change:e.changeCascader}})],1)]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isLoading1,expression:"isLoading1"}],ref:"multipleTable",staticClass:"data-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,height:"300px","tooltip-effect":"dark",border:""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{label:"设备名称",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.EquipLocalName||t.row.EquipName))]}}])}),a("el-table-column",{attrs:{label:"设备编号",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.EquipLocalID||"--"))]}}])}),a("el-table-column",{attrs:{label:"设备类","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.getName(t.row.Category)))]}}])}),a("el-table-column",{attrs:{prop:"address",label:"安装位置","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.InstallLocation||"--"))]}}])})],1),a("div",{staticClass:"right",staticStyle:{overflow:"hidden"}},[a("my-pagination",{attrs:{page:e.pages1},on:{change:e.changePages1}})],1)],1)]),a("div",{staticClass:"main-button"},[a("el-button",{staticClass:"top",attrs:{disabled:!e.SelectionList||!e.SelectionList.length,type:e.SelectionList&&e.SelectionList.length?"primary":"",icon:"el-icon-arrow-left",circle:""},on:{click:e.rightToLeft}}),a("el-button",{staticClass:"bottom",attrs:{disabled:!e.multipleSelection||!e.multipleSelection.length,type:e.multipleSelection&&e.multipleSelection.length?"primary":"",icon:"el-icon-arrow-right",circle:""},on:{click:e.leftToRight}})],1),a("div",{staticClass:"main-right"},[a("h4",[e._v("已关联该系统的设备")]),a("div",{staticClass:"border-view"},[a("div",{staticClass:"search"},[a("div",{staticClass:"search-big"},[a("el-input",{staticStyle:{width:"200px","margin-bottom":"10px"},attrs:{placeholder:"输入设备名称进行查询",size:"small",clearable:""},model:{value:e.search2,callback:function(t){e.search2=t},expression:"search2"}}),a("el-button",{attrs:{size:"small"},on:{click:e.getRightData}},[e._v("查找")])],1)]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isLoading2,expression:"isLoading2"}],ref:"multipleTable",staticClass:"data-table",staticStyle:{width:"100%"},attrs:{data:e.table2Data,height:"300px","tooltip-effect":"dark",border:""},on:{"selection-change":e.tableChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{label:"设备名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.EquipLocalName||t.row.EquipName))]}}])})],1),a("div",{staticClass:"right"},[a("my-pagination",{attrs:{page:e.pages2,isSmall:!1},on:{change:e.changePages2}})],1)],1)])])])},To=[],Ao={props:{dialog:{type:Object,default:function(){return{relevance:!1}}},id:{type:String}},components:{myPagination:Do,floorCascader:Ye,cascader:At},computed:Object(v["a"])({},Object(y["b"])("layout",["projectId","secret","userId"])),data:function(){return{dialogVisible:!0,pages1:{size:50,sizes:[10,20,30,50,100,200],total:0,currentPage:1},pages2:{size:50,sizes:[10,20,30,50,100,200],total:0,currentPage:1},search1:"",search2:"",buildingId:"",floorId:"",category:"",tableData:[],table2Data:[],multipleSelection:[],SelectionList:[],List:[],isLoading1:!1,isLoading2:!1}},created:function(){this.getAllData()},methods:{close:function(e){this.$emit("close"),e()},getName:function(e){var t="";return this.List.map((function(a){a.code==e&&(t=a.facility)})),t},getAllData:function(){var e=this,t={data:{distinct:!0,orders:"equipName asc",pageNumber:1,pageSize:500,projection:["equipCode","equipName"]}};lt.a.getEquipBelongs(t).then((function(t){e.List=e.formatOptions(t.content)}))},formatOptions:function(e){var t=[];return e.map((function(e){var a={};a.code=e.equipCode,a.facility=e.equipName,t.push(a)})),t},getAllTable:function(){this.pages1.currentPage=1,this.pages2.currentPage=1,this.getLeftData(),this.getRightData()},changePages1:function(e){this.pages1.PageNumber=e,this.getLeftData()},changePages2:function(e){this.pages2.PageNumber=e,this.getRightData()},changeCascader:function(e){this.category=e.code,this.getLeftData()},getLeftData:function(){var e=this;this.isLoading1=!0;var t={data:{Filters:"",Orders:"EquipID desc",PageNumber:this.pages1.currentPage,PageSize:this.pages1.size},sysId:this.id};""!=this.search1&&(t.data.Filters="EquipLocalName contain '".concat(this.search1,"' || EquipName contain '").concat(this.search1,"';")),"noKnow"==this.buildingId?t.data.Filters+="buildingId isNull;":this.buildingId&&"all"!=this.buildingId&&(t.data.Filters+="buildingId='".concat(this.buildingId,"';")),"noKnow"==this.floorId?t.data.Filters+="floorId isNull;":this.floorId&&"all"!=this.floorId&&(t.data.Filters+="floorId='".concat(this.floorId,"';")),this.category&&(t.data.Filters+="category='".concat(this.category,"';")),t.data.Filters?t.data.Filters=t.data.Filters.substring(0,t.data.Filters.length-1):delete t.data.Filters,lt.a.getEquipNotInSys(t).then((function(t){e.tableData=t.Content,e.pages1.total=t.Total,e.isLoading1=!1}))},getRightData:function(){var e=this;this.isLoading2=!0;var t={Filters:"sysId='".concat(this.id,"'"),Orders:"EquipID desc",PageNumber:this.pages2.currentPage,PageSize:this.pages2.size};""!=this.search2&&(t.Filters+=";EquipLocalName contain '".concat(this.search2,"' || EquipName contain '").concat(this.search2,"'")),lt.a.getEquipInSys(t).then((function(t){e.table2Data=t.Content,e.pages2.total=t.Total,e.isLoading2=!1}))},handleSelectionChange:function(e){this.multipleSelection=e},tableChange:function(e){this.SelectionList=e},leftToRight:function(){var e=this.multipleSelection;e=e.map((function(e){return e.EquipID||e.EquipId})),this.relationChange(e)},rightToLeft:function(){var e=this,t=this.SelectionList.map((function(e){return{EquipID:e.EquipId,SysID:e.SysID}}));lt.a.sysUnlinkEquip(t).then((function(t){e.$message.success("修改关联关系成功"),e.getAllTable()}))},relationChange:function(e){var t=this,a={sysId:this.id,equipIdList:e};lt.a.sysLinkEquip(a).then((function(e){t.$message.success("修改关联关系成功"),t.getAllTable()}))},changeBuild:function(e){this.buildingId=e[0],e[1]&&(this.floorId=e[1]),this.getLeftData()}},watch:{dialog:{deep:!0,handler:function(){this.dialog.relevance&&(this.search1="",this.search2="",this.getAllTable())}}}},No=Ao,Po=(a("33f4"),Object(l["a"])(No,jo,To,!1,null,null,null)),Oo=Po.exports,Ro=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"所属建筑楼层",visible:e.connectDialogVis,width:"50%",id:"messageDialog"},on:{"update:visible":function(t){e.connectDialogVis=t}}},[a("div",{staticClass:"cascader-row"},[a("div",{staticStyle:{"line-height":"32px"}},[e._v("添加"+e._s(e.system.SysLocalName)+"所属建筑楼层 :")]),a("div",{staticStyle:{width:"70%"}},[a("bfCascader",{ref:"bfCascader",attrs:{SysID:e.system.SysID}})],1)]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(t){e.connectDialogVis=!1}}},[e._v("取消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.save}},[e._v("确认")])],1)])},Fo=[],Mo=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-cascader",{ref:"elCascader",attrs:{options:e.options,props:e.props,clearable:""},on:{"remove-tag":e.removeTag},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},Eo=[],Lo=Ue.a.buildingQuery,$o={data:function(){return{value:[],props:{multiple:!0,checkStrictly:!0,value:"id",label:"localName",children:"floor"},options:[]}},props:{SysID:{default:""}},methods:{getCascader:function(){var e=this,t={cascade:[{name:"floor",orders:"floorSequenceID desc"}],orders:"localName asc",pageNumber:1,pageSize:50};Lo(t,(function(t){t.content.map((function(t){t.floor&&t.floor.length&&(t.floor=t.floor.map((function(t){if(t.id!=e.FloorID)return t.BuildID=t.id,t.BuildLocalName=t.localName||t.name,t})).filter((function(e){return e})))})),e.options=t.content}))},getSelectedNodes:function(){var e=this.$refs.elCascader.getCheckedNodes(),t=[],a=!1,i=[];if(e.length&&(e.map((function(e){var i={BuildName:e.pathLabels[0],BuildID:e.path[0]};e.path.length>1?(i.FloorName=e.pathLabels[1],i.FloorID=e.path[1]):a=!0,t.push(i)})),a)){for(var n=0;n<t.length;n++)for(var r=0;r<t.length;r++)!t[n].FloorID&&t[r].FloorID&&t[n].BuildID==t[r].BuildID&&i.push(n);t=t.map((function(e,t){if(!(i.indexOf(t)>-1))return e})).filter((function(e){return e}))}return t},removeTag:function(){console.log(arguments)}}},qo=$o,Bo=(a("cfd4"),Object(l["a"])(qo,Mo,Eo,!1,null,"11801cf8",null)),zo=Bo.exports,Vo=lt.a.sysRelateBuild,Uo=lt.a.sysRelateFloor,Ho={data:function(){return{buildName:"",connectDialogVis:!1,system:{}}},components:{bfCascader:zo},props:{isCreate:{default:!1}},methods:{showDialog:function(e){var t=this;this.system=e,this.connectDialogVis=!0,this.$nextTick((function(){t.$refs.bfCascader.getCascader();var e=t.system.buildingFloorInfoList||[],a=[];e.length&&e.map((function(e){e.FloorID?a.push([e.BuildID,e.FloorID]):a.push([e.BuildID])})),t.$refs.bfCascader.value=a,console.log(a)}))},save:function(){var e=this;if(this.isCreate){var t=this.$refs.bfCascader.getSelectedNodes();return this.connectDialogVis=!1,void this.$emit("relateSuccess",t)}var a=this.$refs.bfCascader.value,i=[],n=[];a.map((function(e){i.indexOf(e[0])<0&&i.push(e[0]),e.length>1&&n.indexOf(e[1])<0&&n.push(e[1])}));var r={sysId:this.system.id,buildingIdList:i},o={sysId:this.system.id,floorIdList:n},s=new Promise((function(e,t){Vo(r,(function(t){e(t)}))})),l=new Promise((function(e,t){Uo(o,(function(t){e(t)}))})),c=this.$refs.bfCascader.getSelectedNodes();Promise.all([s,l]).then((function(t){e.connectDialogVis=!1,e.$message.success("关联成功"),e.$emit("relateSuccess",c)}))}}},Go=Ho,Ko=(a("7df1"),Object(l["a"])(Go,Ro,Fo,!1,null,"30aef957",null)),Wo=Ko.exports,Xo=lt.a.BeatchQueryParam,Yo=lt.a.deleteGeneralSys,Jo=lt.a.querySysLinkBuild,Qo=lt.a.updateGeneralSys,Zo=et.a.getDataDictionary,es=et.a.deliveredInfos,ts={components:{qrcode:lo,uploadFilesDialog:ua,uploadImgDialog:ja,picDialog:Co,myPagination:Do,detailsDialog:wa,systemRelevance:Oo,myCascader:Qr,editSysfloor:Wo,menum:Za},computed:Object(v["a"])(Object(v["a"])({},Object(y["b"])("layout",["projectId","secret","userId","group_code"])),{},{showTypes:function(){return this.onlyRead,[{value:"Visible",label:"只看采集信息"},{value:"all",label:"全部"}]}}),data:function(){return{options:[{value:!0,label:"只读模式"},{value:!1,label:"编辑模式"}],tableData:[],mess:{},tableHeader:null,page:{size:50,sizes:[10,30,50,100,150,200],total:0,currentPage:1},myDialog:{qrcode:!1,uploadFiles:!1,uploadImgs:!1,pic:!1,addDevice:!1,details:!1,relevance:!1,update:!1,menum:!1},row:null,filesArr:[],messKey:null,imgsArr:[],picsArr:[],noShowList:["SysID","SysName"],copyMain:null,iframeSrc:"",systemId:"",onlyRead:!0,showType:"Visible",linkNameFalg:!1,qrcodeUrl:"",loading:!1,addData:{},inputMap:{flowBuild:{editable:!0,code:"flowBuild",name:"建筑楼层",path:"flowBuild",category:"STATIC",dataType:"ENUM"}},updateInputShow:!1,updateInfoData:{},updateInfoPoint:"",updateInput:"",headerOptions:[],showInfoList:[],isShowDelivered:!1}},created:function(){},mounted:function(){},methods:{getClose:function(e){this.$emit("close",e)},getHeaderData:function(e){this.mess=e,this.mess.deviceId&&(this.showInfoList=[],this.isShowDelivered?this.getDeliveredInfos(this.mess.deviceId):this.getDataDictionary(this.mess.deviceId))},getDeliveredInfos:function(e){var t=this,a={classCode:e,objType:"system"};"noKnow"==this.mess.buildId?a.buildingId="isNull":this.mess.buildId&&"all"!=this.mess.buildId&&(a.buildingId="".concat(this.mess.buildId)),"noKnow"==this.mess.floorId?a.floorId="isNull":this.mess.floorId&&"all"!=this.mess.floorId&&(a.floorId="".concat(this.mess.floorId)),es(a,(function(e){t.tableHeader=e.content,t.codeToDataSource={},t.tableHeader.forEach((function(e){if(e.path&&(t.inputMap[e.path]=e),e.dataSource)try{t.codeToDataSource[e.code]={},e.dataSource.forEach((function(a){t.codeToDataSource[e.code][a.code]=a.name}))}catch(a){console.log(a)}})),t.getTableData()}))},getDataDictionary:function(e){var t=this,a={type:e,orders:"sort asc, name desc"};Zo(a,(function(e){t.tableHeader=e.content,t.codeToDataSource={},t.tableHeader.forEach((function(e){if(e.path&&(t.inputMap[e.path]=e),e.dataSource)try{t.codeToDataSource[e.code]={},e.dataSource.forEach((function(a){t.codeToDataSource[e.code][a.code]=a.name}))}catch(a){console.log(a)}})),t.getTableData()}))},changeWatch:function(){this.reset()},getTableData:function(){var e=this,t=this;if(this.loading=!0,this.mess.deviceId){var a={data:{pageSize:this.page.size,orders:"createTime desc, localName desc, localId desc, id desc",pageNumber:this.page.currentPage,filters:"classCode='".concat(this.mess.deviceId,"'")}};"noKnow"==this.mess.buildId?a.buildingId=1:this.mess.buildId&&"all"!=this.mess.buildId&&(a.buildingId=this.mess.buildId),"noKnow"==this.mess.floorId?a.floorId=1:this.mess.floorId&&"all"!=this.mess.floorId&&(a.floorId=this.mess.floorId),Jo(a,(function(a){e.loading=!1,t.tableData=a.content,t.copyMain=ze["default"].deepCopy(a.content),t.page.total=a.total,a.content&&a.content.length&&(e.onlyRead&&e.getBatch(a.content),t.initTable())}))}},undo:function(){this.tableData.length&&this.hot.undo()},reset:function(){this.mess.deviceId?this.getTableData():this.$message({message:"请选择系统类型",type:"warning"})},addDevice:function(){var e=this;this.myDialog.addDevice=!0,this.mess.deviceId&&this.$nextTick((function(){e.$refs.cascader.setValue(e.mess.deviceId)}))},toAddDevice:function(){this.addData.category&&this.$router.push({path:"/ledger/systemadd",query:this.addData})},changeAddType:function(e){this.addData.category=e.classCode,this.addData.categoryName=e.categoryName,this.addData.showType=this.showType,console.log("val",e,this.addData)},handleChangeShowType:function(){this.showInfoList=[],this.initTable()},formatHeaderData:function(e){var t=ze["default"].copyArr(e),a=St.headerTextFilter(t,"system",this.onlyRead,this.showType);return a.unshift("操作"),"all"==this.showType&&a.splice(3,0,"所属建筑楼层"),a},formatHeaderType:function(e){var t=ze["default"].copyArr(e),a=St.headerTypeFilter(t,"system",this.onlyRead,this.showType);return this.headerOptions="all"===this.showType?ze["default"].copyArr(this.tableHeader):this.tableHeader.filter((function(e){return e.visible})),a.unshift({data:"caozuo",renderer:ze["default"].lookDetails,readOnly:!0}),this.onlyRead&&a.map((function(e){e.readOnly=!0})),"all"==this.showType&&a.splice(3,0,{data:"buildingFloorInfoList",renderer:ft.sysInBuildFloor,readOnly:this.onlyRead}),a},getBatch:function(e){var t=this,a={groupCode:this.group_code,appId:"datacenter",projectId:this.projectId,data:[]};this.tableHeader.map((function(t){"STATIC"!=t.category&&e.map((function(e){var i=ze["default"].dataForKey(e,t.path);i&&a.data.push({objectId:e.id,infoCode:t.code})}))})),a.data.length&&Xo(a,(function(a){if(!t.onlyRead)return!1;t.tableData=e.map((function(e){return a.data.map((function(a){e.id==a.objectId&&(a.data||0==a.data?t.tableHeader.map((function(i){if(i.code==a.infoCode){var n=a.data;t.codeToDataSource[a.infoCode]&&(n=t.codeToDataSource[a.infoCode][a.data]),ze["default"].setDataForKey(e,i.path,n)}})):t.tableHeader.map((function(t){t.code==a.infoCode&&ze["default"].setDataForKey(e,t.path,a.error?a.value?"表号功能号格式错误":"表号功能号不存在":"暂未采集到实时数据")})))})),e})),t.hot.loadData(t.tableData)}))},filterShowInfo:function(e){var t=this.tableHeader.filter((function(t){return"localId"===t.code||"localName"===t.code||e.includes(t.code)}));return t},initTable:function(){var e=document.getElementById("handsontable"),t=document.documentElement.clientHeight;this.hot&&(this.hot.destroy(),this.hot=null),this.hot=new qi.a(e,{data:this.tableData,fixedColumnsLeft:3,colHeaders:this.formatHeaderData(this.showInfoList.length?this.filterShowInfo(this.showInfoList):this.tableHeader),columns:this.formatHeaderType(this.showInfoList.length?this.filterShowInfo(this.showInfoList):this.tableHeader),filters:!0,maxRows:this.tableData.length,height:t-335,columnSorting:!0,sortIndicator:!0,renderAllRows:!0,autoColumnSize:!0,language:"zh-CN",fillHandle:"vertical",manualColumnResize:!0,manualColumnMove:!0,dropdownMenu:["filter_by_condition","filter_by_value","filter_action_bar"],contextMenu:!this.onlyRead&&{items:{remove_row:{name:"删除该系统"}}},afterChange:this.handleUpdataTable,afterFilter:this.trimmedRows,afterRemoveRow:this.handleDeleteTableRow,afterOnCellMouseDown:this.eventClick});var a=document.getElementById("hot-display-license-info");a&&a.parentNode.removeChild(a),this.isLoading=!1},eventClick:function(e,t){if(!(t.row<0)){var a=this.trimmedRows(),i=this.hot.getPlugin("columnSorting").isSorted();if(a.length&&i){var n=this.myHotArr.getPlugin("columnSorting").rowsMapper.__arrayMap,r=this.tableData[a[n[t.row]]];this.getInfors(r,{row:n[t.row],col:t.col})}else if(i){var o=this.hot.getPlugin("columnSorting").rowsMapper.__arrayMap,s=this.tableData[o[t.row]];this.getInfors(s,{row:o[t.row],col:t.col})}else if(a.length){var l=this.tableData[a[t.row]];this.getInfors(l,{row:a[t.row],col:t.col})}else{var c=this.tableData[t.row];this.getInfors(c,t)}}},handleUpdataTable:function(e,t){if(!this.onlyRead&&"ObserveChanges.change"!=t&&e){for(var a=this.trimmedRows(),i=ao.getParam(e,t,this.hot,a),n=[],r=0;r<i.length;r++)n.push(i[r]);1==e.length&&e[0][1].indexOf("/")>0&&(e[0][1]=e[0][1].split("/").join(".")),n&&n.length&&this.updateBusiness(n,e)}},handleDeleteTableRow:function(){var e=this;return Object(W["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$confirm("此操作将删除该系统, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=ze["default"].differenceArr(e.tableData,e.copyMain),a=[];t.map((function(e){a.push({id:e.id})})),e.removeSys(a)})).catch((function(){e.getTableData(),e.$message("取消删除")}));case 1:case"end":return t.stop()}}),t)})))()},removeSys:function(e){var t=this;return Object(W["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Yo(e,(function(e){t.$message.success("删除成功"),t.$emit("close",""),t.getTableData()}));case 2:case"end":return a.stop()}}),a)})))()},updateBusiness:function(e,t){var a={content:[]},i=[];t.map((function(e){e[1]&&-1==i.indexOf(e[1])&&i.push(e[1])})),e.map((function(e,t){var n=[];if(i.map((function(t){var a=ze["default"].dataForKey(e,t);ze["default"].setDataForKey(e,t,""==a?null:a),a||n.push(t)})),n.length){var r=JSON.parse(JSON.stringify(e));r.nullList=n,a.content.push(r)}else a.content.push(e)})),Qo(a,(function(e){}))},getInfors:function(e,t){var a=this.hot.colToProp(t.col),i=this.inputMap[a];switch(this.systemId=e.SysID,this.row=t.row,this.messKey=a,a){case"caozuo":return console.log(e),this.$router.push({path:"/ledger/systemDetail",query:{SysID:e.id,Name:e.localName||e.name,SysType:e.classCode}}),!1;case"defaultQRCode":return this.qrcodeUrl=this.tableData[t.row].EquipQRCode,this.qrcodeUrl?this.myDialog.qrcode=!0:this.$message("此设备没有设备二维码"),!1;case"count":return this.onlyRead||(this.myDialog.relevance=!0),!1;case"buildingFloorInfoList":return this.onlyRead||this.$refs.editFloor.showDialog(this.tableData[t.row]),!1;case"infos.systemChart":var n=ze["default"].dataForKey(this.tableData[t.row],a);return this.imgsArr=n||[],this.onlyRead&&!this.imgsArr.length||(this.myDialog.uploadImgs=!0),!1;default:break}return this.onlyRead||i.editable||this.$confirm("该信息点的值为自动生成,不可人工维护!","提示",{confirmButtonText:"我知道了",showCancelButton:!1,type:"warning",center:!0}).then((function(){return!1})),this.onlyRead||"MENUM"!=i.dataType?this.onlyRead||"-1"!=St.inputModeArr.indexOf(i.dataType)?void 0:(this.updateInfoPoint=a,this.updateInput=ze["default"].dataForKey(this.tableData[t.row],a),this.myDialog.update=!0,!1):(this.updateInfoData=i,this.updateInfoPoint=a,this.updateInput=ze["default"].dataForKey(this.tableData[t.row],a),this.myDialog.menum=!0,!1)},handleCloseUpdate:function(){this.updateInputShow=!1,this.updateInfoPoint="",this.updateInput=""},handleClickUpdate:function(){ze["default"].setDataForKey(this.tableData[this.row],this.updateInfoPoint,this.updateInput),this.handleUpdataTable([[this.row,this.updateInfoPoint,null,this.updateInput]],"edit"),this.updateInputShow=!1,this.myDialog.update=!1,this.updateInput=""},handleChangeMenum:function(e){ze["default"].setDataForKey(this.tableData[this.row],this.updateInfoPoint,e),this.handleUpdataTable([[this.row,this.updateInfoPoint,null,e]],"edit"),this.myDialog.menum=!1,this.updateInput=""},relateSuccess:function(e){this.getTableData()},trimmedRows:function(){for(var e=this.hot.getPlugin("trimRows").trimmedRows,t=this.tableData.length,a=new Array,i=0;i<t;i++)a.push(i);return a=e.length<=0?void 0:this.array_diff(a,e),a||[]},fileChange:function(e){this.setDataToMain(e,this.messKey,this.row)},imgChange:function(e){this.setDataToMain(e,this.messKey,this.row)},changePics:function(e){this.setDataToMain(e,this.messKey,this.row)},setDataToMain:function(e,t,a){e&&"--"!=e?this.tableData[a]?(ze["default"].setDataForKey(this.tableData[a],t,e),this.handleUpdataTable([[a,t,null,e]],"edit")):(this.tableData[a]={},ze["default"].setDataForKey(this.tableData[a],t,e)):ze["default"].setDataForKey(this.tableData[a],t,"")}},watch:{projectId:function(){this.tableData=[],this.mess.deviceId=null,this.page.total=0},showTypes:{handler:function(e,t){e&&e[0]&&e[0].value?this.showType=e[0].value:this.showType="Visible"},immediate:!0,deep:!0}}},as=ts,is=(a("8acd"),a("3eb7"),Object(l["a"])(as,Zr,eo,!1,null,"5b9a72ce",null)),ns=is.exports,rs=lt.a.countGeneralSys,os={components:{sagaTitle:$e,floorCascader:Ye,myCascader:Qr,hansonTable:ns,tableTransfers:Oo},data:function(){return{mess:{perjectName:"",name:[{key:"系统",num:0}]},param:{buildId:"",floorId:"",deviceId:"",ProjId:"",secret:""}}},computed:Object(v["a"])({},Object(y["b"])("layout",["projectId","secret","userId"])),created:function(){var e=this;this.param.ProjId=this.projectId,this.param.secret=this.secret,this.countGeneralSys();var t=this.$route.params.SysType;t&&this.$nextTick((function(){e.$refs.cascader.changeVal(t)}))},watch:{projectId:function(){this.param.ProjId=this.projectId,this.param.secret=this.secret,this.countGeneralSys()}},methods:{close:function(e){this.countGeneralSys(),e&&e.Category&&this.$refs.cascader&&this.$refs.cascader.changeVal(e.Category),this.$refs.cascader.getData()},countGeneralSys:function(){var e=this,t={};rs(t,(function(t){e.mess.name[0].num=t.count}))},changeFloor:function(e){e[0]&&(this.param.buildId=e[0]),e[1]?this.param.floorId=e[1]:this.param.floorId=null,this.param.deviceId&&this.$refs.tableMain&&this.$refs.tableMain.getHeaderData(this.param)},changeDevice:function(e){console.log({value:e}),this.param.deviceId=e.classCode,e&&this.$refs.tableMain&&this.$refs.tableMain.getHeaderData(this.param)}}},ss=os,ls=(a("09f9"),Object(l["a"])(ss,Vr,Ur,!1,null,"43b79e44",null)),cs=ls.exports,us=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"manageTenantZone"}},[a("el-row",{staticStyle:{margin:"5px 0 0 0"}},[a("el-button",{staticStyle:{float:"left"},attrs:{size:"small",type:"default",icon:"el-icon-back"},on:{click:e.goback}}),a("div",{attrs:{id:"buildFloor"}},[a("span",{staticClass:"buildFloor"},[e._v("建筑楼层")]),a("el-cascader",{ref:"floorCascader",attrs:{placeholder:"请选择",props:e.props,options:e.bfOptions,filterable:"",size:"small"},on:{change:e.changeFloor},model:{value:e.floorValue,callback:function(t){e.floorValue=t},expression:"floorValue"}})],1),a("my-cascader",{ref:"cascader",on:{change:e.changeDevice}}),a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:"mini",disabled:!e.isChange},on:{click:e.handleClickSave}},[e._v("确认")]),a("el-button",{staticStyle:{float:"right","margin-right":"10px"},attrs:{size:"mini"},on:{click:e.cancel}},[e._v("取消")])],1),a("el-row",{staticClass:"main-container"},[a("el-row",{staticClass:"main-container-header"},[a("el-select",{staticStyle:{width:"100px","margin-left":"10px"},attrs:{placeholder:"请选择"},on:{change:e.handleChangeIspoint},model:{value:e.isPoint,callback:function(t){e.isPoint=t},expression:"isPoint"}},e._l(e.isPointOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("el-input",{staticStyle:{width:"250px","margin-left":"10px"},attrs:{placeholder:"请输入设备标识关键字",clearable:"","suffix-icon":"el-icon-search"},on:{change:e.handleChangeKeyword},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}})],1),a("el-row",{staticClass:"main-container-box"},[a("el-col",{staticClass:"container-box-left",attrs:{span:3}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.showName,callback:function(t){e.showName=t},expression:"showName"}},e._l(e.showNameOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("div",{staticClass:"equip-list"},[a("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.equipList.length,expression:"equipList.length"}],staticStyle:{height:"100%"}},[a("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.getEquipData,expression:"getEquipData"}],attrs:{"infinite-scroll-disabled":"disabled"}},[e._l(e.equipList,(function(t){return a("li",{key:t.id,staticClass:"equip-item",class:{"equip-item-selected":t.selected},attrs:{title:t[e.showName]},on:{click:function(a){return e.handleSelectIcon(t)}}},[a("p",{staticClass:"equip-item-text"},[e._v(e._s(t[e.showName]||"--"))]),t.hasLocation?a("i",{staticClass:"iconfont icon-hook equip-item-icon",staticStyle:{color:"#67C23A","font-size":"14px"}}):a("i",{staticClass:"iconfont icon-cross equip-item-icon",staticStyle:{color:"#ccc","font-size":"14px"}})])})),e.loading?a("p",{staticStyle:{"text-align":"center"}},[e._v("加载中...")]):e._e(),e.noMore?a("p",{staticStyle:{"text-align":"center"}},[e._v("没有更多了")]):e._e()],2)]),a("div",{directives:[{name:"show",rawName:"v-show",value:!e.equipList.length,expression:"!equipList.length"}],staticClass:"no-data"},[a("div",{staticClass:"position-icon"},[a("i",{staticClass:"icon-wushuju iconfont"}),e._v(" 暂无数据 ")])])],1)],1),a("el-col",{directives:[{name:"loading",rawName:"v-loading",value:e.canvasLoading,expression:"canvasLoading"}],staticClass:"container-box-right",attrs:{id:"canvasBox",span:21}},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.showCanvas,expression:"showCanvas"}],staticStyle:{height:"100%"}},[a("canvas",{ref:"graphy",attrs:{height:e.cadHeight,width:e.cadWidth,id:"floorCanvas"}})]),a("div",{directives:[{name:"show",rawName:"v-show",value:!e.showCanvas,expression:"!showCanvas"}],staticClass:"no-data"},[a("div",{staticClass:"position-icon"},[a("i",{staticClass:"icon-wushuju iconfont"}),e._v(" 暂无数据 ")])])])],1)],1),a("el-popover",{ref:"popover",attrs:{placement:"right",trigger:"manual",width:"400"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[a("div",{staticStyle:{"text-align":"right","margin-bottom":"10px"}},[a("span",{staticStyle:{float:"left"}},[e._v("设定Z轴高度")]),a("el-link",{attrs:{icon:"el-icon-close",underline:!1},on:{click:function(t){e.visible=!1}}})],1),a("el-row",[a("p",[e._v("距地面高度:"+e._s(e.equipZ)+"mm")])]),a("div",{staticClass:"elSlider"},[a("el-slider",{attrs:{min:e.minHeight,max:e.maxHeight,step:1,marks:e.marks},model:{value:e.equipZ,callback:function(t){e.equipZ=t},expression:"equipZ"}})],1),a("el-row",{staticStyle:{"text-align":"right"}},[a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.visible=!1}}},[e._v("取消")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleUpdateZ}},[e._v("确认")])],1)],1),a("span",{directives:[{name:"popover",rawName:"v-popover:popover",arg:"popover"}],staticClass:"popStyle",style:e.popoverPosition})],1)},ds=[],ps={components:{floorCascader:Ye,myCascader:At},data:function(){return{visible:!1,equipZ:0,maxHeight:99e3,minHeight:-99e3,popoverPosition:{top:0,left:0},selectedIcon:null,floorValue:"",oldFloorValue:"",buildId:"",floorId:"",floorMap:"",floorOutline:null,classCode:"",isPoint:"all",keyword:"",showName:"localName",isIndeterminate:!1,checkAll:!1,checkedEquip:[],cadWidth:800,cadHeight:800,view:"",scene:null,showCanvas:!1,canvasLoading:!1,isPointOptions:[{value:"all",label:"全部"},{value:"yes",label:"有坐标"},{value:"no",label:"无坐标"}],showNameOptions:[{value:"localName",label:"显示设备本地名称"},{value:"localId",label:"显示设备本地编码"},{value:"cADID",label:"显示图纸编码"}],equipList:[],marks:{0:"本层地面",99e3:"本层屋顶"},loading:!1,pageNumber:1,pageSize:50,total:0,isChange:!1,isMarking:!1,props:{value:"id",label:"localName",children:"floor"},bfOptions:[],fIdToFloor:{}}},computed:Object(v["a"])(Object(v["a"])({},Object(y["b"])("layout",["projectId","projects"])),{},{noMore:function(){return this.equipList.length>=this.total},disabled:function(){return this.loading||this.noMore}}),created:function(){this.getCascader()},mounted:function(){var e=this;this.cadWidth=document.getElementById("canvasBox").offsetWidth,this.cadHeight=document.getElementById("canvasBox").offsetHeight,window.addEventListener("click",this.handlePopover,!1),this.$once("hook:beforeDestroy",(function(){window.removeEventListener("click",e.handlePopover)}))},methods:{goback:function(){var e=this;this.confirm((function(){e.$router.push({name:"facilityLedger"})}))},getCascader:function(){var e=this,t={cascade:[{name:"floor",orders:"floorSequenceID desc"}],orders:"localName asc",pageNumber:1,pageSize:50};Ue.a.buildingQuery(t).then((function(t){e.fIdToFloor={},e.bfOptions=t.content.map((function(t){return t.floor&&t.floor.length&&(t.floor=t.floor.map((function(t){return e.fIdToFloor[t.id]=t,t})).filter((function(e){return e}))),t}))}))},confirm:function(e,t){this.isChange?this.$confirm("平面图数据未保存,此操作将不会保存修改数据!","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e()})).catch((function(){t()})):e()},handleSelectIcon:function(e){var t=this;this.equipData=e,this.equipList.forEach((function(t){e.id===t.id?t.selected=!0:t.selected=!1})),e.hasLocation?(this.isMarking=!1,this.scene&&this.scene.iconList.forEach((function(a){a.data.id===e.id&&t.scene.selectContainer.setItem(a)}))):this.isMarking=!0},handleClickIcon:function(e,t){var a=this,i=t[0];this.selectedIcon=e,e.data.Z?this.equipZ=e.data.Z:this.equipZ=0,this.visible=!1,this.$nextTick((function(){a.popoverPosition.top="".concat(i.clientY,"px"),a.popoverPosition.left="".concat(i.clientX,"px"),a.visible=!0}))},handleUpdateZ:function(){if(this.selectedIcon.data.Z!==this.equipZ){this.selectedIcon.data.Z=this.equipZ,this.isChange=!0,this.visible=!1;try{var e=this.selectedIcon.textItemList[0].text.split("\n");e[2]=this.equipZ,this.selectedIcon.textItemList[0].text=e.join("\n")}catch(t){console.log(t)}}},listChange:function(e,t){t[0].length||(this.visible=!1,this.selectedIcon=null)},handlePopover:function(e){var t=this;this.$nextTick((function(){t.$refs.graphy.contains(e.target)||(t.visible=!1)}))},getEquipData:function(){var e=this;if(this.classCode&&this.floorId&&("noKnow"!=this.floorId||"all"!=this.floorId)){this.loading=!0;var t={filters:"classCode='".concat(this.classCode,"'"),pageSize:this.pageSize,orders:"createTime desc, id desc",pageNumber:this.pageNumber};"noKnow"==this.buildId?t.filters+=";buildingId isNull":this.buildId&&"all"!=this.buildId&&(t.filters+=";buildingId='".concat(this.buildId,"'")),"noKnow"==this.floorId?t.filters+=";floorId isNull":this.floorId&&"all"!=this.floorId&&(t.filters+=";floorId='".concat(this.floorId,"'")),"yes"==this.isPoint?t.filters+=";not bimLocation isNull":"no"==this.isPoint&&(t.filters+=";bimLocation isNull"),this.keyword&&(t.filters+=";localName contain'".concat(this.keyword,"' or localId contain '").concat(this.keyword,"' or cADID contain '").concat(this.keyword,"'")),this.canvasLoading=!0,ut.a.queryEquip(t).then((function(t){e.equipList=[],e.equipList=e.equipList.concat(t.content.map((function(e){return e.selected=!1,e.hasLocation=!!e.bimLocation,e}))),e.view&&e.view.scene&&(t.content.forEach((function(t){t.locationJson&&t.locationJson.x&&t.locationJson.y&&e.scene.addIconText({id:t.id,X:t.locationJson.x,Y:-t.locationJson.y,Z:t.locationJson.z,text:["".concat(t.localName||"--","\n").concat(t.localId||"--","\n").concat(t.locationJson.z||"--")]})})),e.scene.iconMove(e,e.iconMove),e.scene.spaceClick(e,e.spaceClick),e.scene.iconChangeText(e,e.handleClickIcon),e.view.update(),e.canvasLoading=!1,e.isChange=!1),e.total=t.total,e.noMore||e.pageNumber++,e.loading=!1}))}},iconMove:function(e){this.isChange=!0},spaceClick:function(e,t){if(this.isMarking){var a=e.mapToScene(t[0].x,t[0].y);this.scene.addIconText({id:this.equipData.id,X:a.x,Y:a.y,Z:0,text:["".concat(this.equipData.localName||"--","\n").concat(this.equipData.localId||"--","\n0")]}),this.isChange=!0,this.equipData.hasLocation=!0,this.scene.iconChangeText(this,this.handleClickIcon),this.isMarking=!1}this.scene&&this.scene.selectContainer.clear()},initParams:function(){this.pageNumber=1,this.total=0,this.equipList=[],this.clearIcon(),this.view&&this.view.update(),this.getEquipData()},changeFloor:function(e){var t=this;this.confirm((function(){t.oldFloorValue=e,t.isChange=!1,t.showCanvas=!1,t.clearGraphy(),e[0]&&(t.buildId=e[0]),e[1]?(t.floorId=e[1],t.floorData=t.fIdToFloor[e[1]]):(t.floorId="",t.floorData={}),t.floorData.infos&&t.floorData.infos.floorMap?(t.floorMap=t.floorData.infos.floorMap,t.showCanvas=!0,t.getGraphy()):(t.initParams(),t.floorMap=""),t.floorData.infos&&t.floorData.infos.height?(t.maxHeight=t.floorData.infos.height,t.minHeight=-t.floorData.infos.height):(t.maxHeight=99e3,t.minHeight=-99e3),t.floorData.outline&&t.floorData.outline.length?t.floorOutline=t.floorData.outline:t.floorOutline=null}),(function(){t.floorValue=t.oldFloorValue}))},changeDevice:function(e){e.code?this.classCode=e.code:this.classCode="",this.initParams()},handleChangeIspoint:function(){this.initParams()},handleChangeKeyword:function(){this.initParams()},handleClickSave:function(){var e=this;if(this.scene&&this.scene.iconList.length&&this.isChange){this.isChange=!1;var t={content:[]};this.scene.iconList.map((function(e){e.data.id&&t.content.push({id:e.data.id,bimLocation:"".concat(e.x,",").concat(-e.y,",").concat(e.data.Z)})})),lt.a.updateEquip(t).then((function(){e.$message({message:"保存成功!",type:"success"})}))}},getGraphy:function(){var e=this;this.scene=new Ht["d"],this.scene.selectContainer.connect("listChange",this,this.listChange),this.canvasLoading=!0;var t=this.floorMap.split(".")[1];if(t&&"png"==t.toString().toLowerCase()||"jpg"==t.toString().toLowerCase()){var a=0,i=0,n=1;if(this.floorData&&this.floorData.infos&&this.floorData.infos.floorMapRatio&&this.floorData.infos.floorMapShift){var r=JSON.parse(this.floorData.infos.floorMapShift);a=r.x,i=r.y,n=this.floorData.infos.floorMapRatio}this.scene.loadImg("/image-service/common/image_get?systemId=dataPlatform&key=".concat(this.floorMap),(function(t){e.getGraphtSuc(t)}),a,i,n)}else this.scene.loadUrl("/image-service/common/file_get?systemId=revit&key=".concat(this.floorMap)).then((function(t){e.getGraphtSuc(t)}))},getGraphtSuc:function(e){if(this.initParams(),this.canvasLoading=!1,"error"==e)return this.FloorMap="",void console.log("数据解析异常");if(this.view.scene=this.scene,this.floorOutline){Ht["e"].sceneMarkColor=new Gt["SColor"]("#ffffff");var t=this.floorOutline.map((function(e){return new Gt["SPoint"](e.X,e.Y)}));this.scene.addSceneMark(t)}this.scene.isSpaceSelectable=!1,this.view.fitSceneToView()},clearGraphy:function(){this.view?this.view.scene=null:this.view=new Ht["c"]("floorCanvas")},clearIcon:function(){this.scene&&this.scene.clearIcon()},cancel:function(){this.initParams()}},watch:{projectId:function(){this.$router.push({name:"facilityLedger"})}}},hs=ps,fs=(a("79b7"),Object(l["a"])(hs,us,ds,!1,null,"d744e7a6",null)),ms=fs.exports,gs=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"bd-fl-manage"}},[a("el-row",[a("div",{staticClass:"l-list"},[a("div",{staticClass:"action-box"},[a("div",[a("el-button",{attrs:{icon:"el-icon-plus",size:"small",type:"default"},on:{click:e.addBuild}}),a("el-button",{attrs:{icon:"el-icon-minus",size:"small",type:"default",disabled:!e.buildList.length},on:{click:e.delBuild}}),a("el-button",{attrs:{icon:"el-icon-edit-outline",size:"small",type:"default",disabled:!e.buildList.length},on:{click:e.editBuild}})],1)]),a("h4",[e._v("建筑")]),a("div",{staticClass:"build-list"},e._l(e.buildList,(function(t,i){return a("div",{key:t.id,class:{"floor-item":!0,active:t.active},staticStyle:{cursor:"pointer"},on:{click:function(t){return e.changeBuild(i)}}},[a("span",[e._v(" "+e._s(t.localName||t.name)+" "),t.count>0?a("el-badge",{staticClass:"mark",attrs:{value:t.count}}):e._e()],1)])})),0)]),e.buildList.length>0?a("div",{staticClass:"r-table"},[a("div",{staticClass:"action-box"},[a("el-button",{attrs:{size:"small",type:"default"},on:{click:e.addFloor}},[e._v("添加楼层 ")])],1),a("div",{staticClass:"table-box"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,"header-cell-style":e.headerStyle,height:"100%"}},[a("el-table-column",{attrs:{label:"楼层本地名"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.localName))]}}],null,!1,1893948503)}),a("el-table-column",{attrs:{label:"楼层顺序号"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.floorSequenceID))]}}],null,!1,3267156151)}),a("el-table-column",{attrs:{label:"楼层信息"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{icon:"el-icon-edit-outline",plain:"",size:"mini"},on:{click:function(a){return e.editFloorData(t.row)}}})]}}],null,!1,4074602054)}),a("el-table-column",{attrs:{label:"平面图",prop:"dataSource"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.sign>0?a("p",{on:{click:function(a){return e.checkDrawImg(t.row,2)}}},[a("el-badge",{attrs:{"is-dot":""}},[a("i",{staticClass:"iconfont icon-floorplan"})]),e._v(" 平面图重复 ")],1):t.row.infos&&t.row.infos.floorMap?a("p",{on:{click:function(a){return e.checkDrawImg(t.row,1)}}},[a("i",{staticClass:"iconfont icon-floorplan"}),e._v(" 查看平面图 ")]):a("p",{on:{click:function(a){return e.checkDrawImg(t.row,3)}}},[a("i",{staticClass:"iconfont icon-nopicture"}),e._v(" 暂无平面图 ")])]}}],null,!1,286248779)}),a("el-table-column",{attrs:{label:"楼层贯通关系",prop:"SubTypeName"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{"margin-right":"20px"}},[e._v(e._s(t.row.floorThroughList?t.row.floorThroughList.length:0))]),a("el-button",{attrs:{icon:"el-icon-edit-outline",plain:"",size:"mini"},on:{click:function(a){return e.changeConnection(t.row)}}})]}}],null,!1,1248956205)}),a("el-table-column",{attrs:{label:"操作",prop:"action"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{icon:"el-icon-delete",plain:"",size:"mini",type:"danger"},on:{click:function(a){return e.handleDelete(t.row)}}})]}}],null,!1,1247337244)})],1)],1)]):a("div",{staticClass:"r-table"},[a("div",{staticClass:"center",staticStyle:{"margin-top":"300px"}},[a("i",{staticClass:"icon-wushuju iconfont"}),e._v(" 请先在左侧创建建筑")])])]),a("addFloor",{ref:"addFloorDialog",attrs:{curBuildId:e.curBuildId,curFloorId:e.curFloorId,title:e.floorTitle},on:{refresh:e.refresh}}),a("addBuild",{ref:"addBuildDialog",attrs:{buildTitle:e.buildTitle,buildMessage:e.buildMessage},on:{handleBuild:e.handleBuild}}),a("el-dialog",{attrs:{visible:e.delDialogVis,id:"messageDialog",title:"提示",width:"20%"},on:{"update:visible":function(t){e.delDialogVis=t},close:e.handleClose}},[a("div",[e._v("确定要删除该"+e._s(e.delText)+"?")]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(t){e.delDialogVis=!1}}},[e._v("取消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmDel}},[e._v("确认")])],1)]),a("addConnectivity",{ref:"addConnectivity",on:{refresh:e.refresh}})],1)},vs=[],ys=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.title,visible:e.dialogVisible,width:"850px",id:"messageDialog"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.handleClose}},[a("el-row",[a("formItems",{ref:"formItems",attrs:{type:"floor"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirm}},[e._v("确认")])],1)],1)},bs=[],ws=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"inforsPoint"}},[a("el-form",{ref:"ruleForm",attrs:{model:e.form,"label-width":"150px",rules:e.rules,inline:!0,"label-position":"right"}},e._l(e.InforsList,(function(t){return a("div",{key:t.id,staticStyle:{width:"50%",display:"inline-block"}},[e.all||t.visible?a("el-form-item",{class:{FloorTypeSelect:"ENUM"==t.dataType||t.unit},attrs:{label:t.name,prop:t.code}},["bimLocation"==t.infoPointCode||"modelId"==t.infoPointCode?a("el-input",{attrs:{disabled:""},model:{value:e.form[t.path],callback:function(a){e.$set(e.form,t.path,"string"===typeof a?a.trim():a)},expression:"form[item.path]"}}):"DefaultQRCode"==t.infoPointCode||"QRCodePic"==t.infoPointCode?a("span",[e.form[t.path]?a("el-popover",{attrs:{placement:"right",width:"210",trigger:"click"}},[a("div",{staticStyle:{overflow:"hidden"}},[a("img",{staticStyle:{width:"200px",height:"200px"},attrs:{src:"/image-service/common/file_get/"+e.form[t.path]+"?systemId=dataPlatform",alt:"二维码"}})]),a("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("点击查看")])],1):a("el-input",{attrs:{disabled:""},model:{value:e.form[t.path],callback:function(a){e.$set(e.form,t.path,"string"===typeof a?a.trim():a)},expression:"form[item.path]"}})],1):"STRING"==t.dataType?a("span",[a("el-input",{attrs:{disabled:!t.editable,placeholder:"STRING"==t.dataType&&"localId"===t.path?"填写示例:F1、B1?":""},model:{value:e.form[t.path],callback:function(a){e.$set(e.form,t.path,"string"===typeof a?a.trim():a)},expression:"form[item.path]"}}),"STRING"==t.dataType&&"localId"===t.path&&e.isShowTitle?a("div",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(" 用于楼层平面图切换 ")]):e._e()],1):"INTEGER"==t.dataType||"DOUBLE"==t.dataType?a("el-input-number",{staticStyle:{"text-align":"right"},attrs:{controls:!1},model:{value:e.form[t.path],callback:function(a){e.$set(e.form,t.path,"string"===typeof a?a.trim():a)},expression:"form[item.path]"}},[t.unit?a("template",{slot:"append"},[e._v(e._s(t.unit))]):e._e()],2):"ENUM"==t.dataType?a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form[t.path],callback:function(a){e.$set(e.form,t.path,a)},expression:"form[item.path]"}},e._l(t.options,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.code}})})),1):a("el-input",{attrs:{disabled:!t.editable,placeholder:t.dataType?"":"字典无输入类型"},model:{value:e.form[t.path],callback:function(a){e.$set(e.form,t.path,"string"===typeof a?a.trim():a)},expression:"form[item.path]"}})],1):e._e()],1)})),0)],1)},Cs=[],Is={props:{type:{default:"floor"}},data:function(){var e=this,t=function(t,a,i){if(!a)return e.isShowTitle=!1,i(new Error("请输入楼层本地编码"));e.isShowTitle=!0,i()};return{form:{},isShowTitle:!0,InforsList:[],all:!0,rules:{localId:[{validator:t,trigger:"blur",required:!0}],localName:[{required:!0,message:"请输入楼层本地名称",trigger:"blur"}],floorSequenceID:[{required:!0,message:"请输入楼层顺序号",trigger:"blur"}]}}},created:function(){this.getInforsPoint()},methods:{getInforsPoint:function(){var e=this,t={type:this.type,pageNumber:1,pageSize:1e3,orders:"sort asc, name desc"};et.a.getDataDictionary(t).then((function(t){var a=t.content.map((function(e){var t=["ENUM","MENUM","BOOLEAN"];switch("STATIC"==e.category&&t.includes(e.dataType)&&e.dataSource&&(e.options=e.dataSource,e.options[0]&&(e.props={value:"code",label:"name",children:"content",checkStrictly:!0})),e.code){case"floorIdentity":case"relatedSchedule":case"outPeopleFlow":case"inPeopleFlow":case"exsitPeopleNum":break;default:return e}})).filter((function(e){return!!e}));e.InforsList=a,console.log("[ arr ] >",a)}))},submitForm:function(e){this.$refs.ruleForm.validate((function(t){if(!t)return!1;e()}))}}},xs=Is,Ss=(a("ac63"),Object(l["a"])(xs,ws,Cs,!1,null,"5eefb1ba",null)),ks=Ss.exports,_s={};function Ds(e,t,a){if(t.length>1){var i=t.shift();e[i]||(e[i]={}),Ds(e[i],t,a)}else{var n=t[0];e[n]=a}}_s.formatData=function(e){var t=JSON.parse(JSON.stringify(e));for(var a in t)if(a.indexOf(".")>-1){var i=a.split(".");Ds(t,i,t[a]),delete t[a]}return t},_s.desFormatData=function(e){var t={};for(var a in e)if(e[a]instanceof Object&&!(e[a]instanceof Array))for(var i in e[a]){var n="".concat(a,".").concat(i);t[n]=e[a][i]}else t[a]=e[a];return t};var js=_s,Ts={props:{title:{default:"提示"},type:{default:"Floor"},curBuildId:{default:""},curFloorId:{default:""}},components:{formItems:ks},data:function(){return{dialogVisible:!1,floorData:{}}},methods:{showDialog:function(e){this.floorData=e||{},this.floorData=js.desFormatData(this.floorData),this.floorData.outline=this.floorData.outline?JSON.stringify(this.floorData.outline):void 0,this.timeoutSetVal(),this.dialogVisible=!0},timeoutSetVal:function(){var e=this;setTimeout((function(){e.$refs.formItems?e.$refs.formItems.form=e.floorData:e.timeoutSetVal()}),500)},handleClose:function(){},confirm:function(){this.$refs.formItems.submitForm(this.save)},save:function(){var e=this,t=this.$refs.formItems.form;t.outline&&(t.outline=JSON.parse(t.outline));var a=js.formatData(t);a.buildingId=this.curBuildId;var i={content:[a]};a.id?Ge.a.manageUpdateFloor(i).then((function(t){e.$message.success("更新成功"),e.$emit("refresh"),e.dialogVisible=!1})):Ge.a.manageCreateFloor(i).then((function(t){e.$message.success("创建成功"),e.$emit("refresh"),e.dialogVisible=!1}))}},mounted:function(){},created:function(){}},As=Ts,Ns=(a("9bdb"),Object(l["a"])(As,ys,bs,!1,null,"3542fea2",null)),Ps=Ns.exports,Os=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.buildTitle,visible:e.buildDialogVis,id:"messageDialog",width:"850px"},on:{"update:visible":function(t){e.buildDialogVis=t}}},[a("el-form",{ref:"ruleForm",attrs:{inline:!0,model:e.form,"label-width":"160px","label-position":"right",rules:e.rules}},[e._l(e.buildMessage,(function(t,i){return[a("h4",{domProps:{textContent:e._s("undefined"!=i?i:"信息")}}),e._l(t,(function(t){return a("div",{key:t.InfoPointCode,class:[{"upload-file":"ATTACHMENT"==t.dataType||"infos.pic"===t.Path}],staticStyle:{width:"50%",display:"inline-block"}},[e.all||t.Visible?a("el-form-item",{class:{FloorTypeSelect:"ENUM"==t.dataType||t.Unit},attrs:{label:t.InfoPointName,prop:t.InfoPointCode}},["STRING"==t.dataType?a("el-input",{attrs:{disabled:!t.editable},model:{value:e.form[t.Path],callback:function(a){e.$set(e.form,t.Path,"string"===typeof a?a.trim():a)},expression:"form[item.Path]"}}):"INTEGER"==t.dataType||"DOUBLE"==t.dataType?a("el-input",{attrs:{type:"number"},model:{value:e.form[t.Path],callback:function(a){e.$set(e.form,t.Path,"string"===typeof a?a.trim():a)},expression:"form[item.Path]"}},[t.Unit?a("template",{slot:"append"},[e._v(e._s(t.Unit))]):e._e()],2):"ENUM"==t.dataType||"BOOLEAN"==t.dataType?a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form[t.Path],callback:function(a){e.$set(e.form,t.Path,a)},expression:"form[item.Path]"}},e._l(t.options,(function(e){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.code}})})),1):"MENUM"==t.dataType?a("el-select",{attrs:{placeholder:"请选择",multiple:"","collapse-tags":""},model:{value:e.form[t.Path],callback:function(a){e.$set(e.form,t.Path,a)},expression:"form[item.Path]"}},e._l(t.options,(function(e){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.code}})})),1):"DATETIME"==t.dataType?a("el-date-picker",{attrs:{placeholder:"选择日期",type:"date"},model:{value:e.form[t.Path],callback:function(a){e.$set(e.form,t.Path,a)},expression:"form[item.Path]"}}):"ATTACHMENT"==t.dataType&&"infos.Pic"===t.Path?a("uploadImgs",{attrs:{readOnly:!1,keysArr:Array.isArray(e.buildData[t.Path])?e.buildData[t.Path]:[],"context-key":t.Path,isShow:1},on:{change:e.changeItem},model:{value:e.form[t.Path],callback:function(a){e.$set(e.form,t.Path,a)},expression:"form[item.Path]"}}):"ATTACHMENT"==t.dataType?a("upload-files",{attrs:{readOnly:!1,isShow:1,"keys-arr":Array.isArray(e.buildData[t.Path])?e.buildData[t.Path]:[],"show-file-list":!1,"context-key":t.Path},on:{change:e.changeItem},model:{value:e.form[t.Path],callback:function(a){e.$set(e.form,t.Path,a)},expression:"form[item.Path]"}}):e._e()],1):e._e()],1)}))]}))],2),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.buildDialogVis=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary",disabled:e.buildDisabled},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确 定")])],1),a("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],1)},Rs=[],Fs=(a("4fad"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"saga-upload"}},[a("div",{attrs:{id:"uploadFile"}},[a("el-upload",{staticClass:"upload-file",attrs:{action:"",drag:"","http-request":e.uploadAndSubmit,"show-file-list":!1}},[e.readOnly?e._e():a("el-button",{attrs:{size:"small",type:1===e.isShow?"text":"primary"}},[e._v("点击上传")]),1===e.isShow&&void 0!=e.isShow||e.readOnly?e._e():a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("请上传文件,且不大于50M")])],1),e._l(e.filesArr,(function(t,i){return a("div",{directives:[{name:"show",rawName:"v-show",value:t&&e.filesArr.length,expression:"item && filesArr.length"}],key:t.key},[a("p",{staticClass:"file-list"},[a("span",{staticClass:"file-name",attrs:{title:t.name}},[e._v(e._s(t.name))]),a("i",{staticClass:"el-icon-download",staticStyle:{"margin-left":"10px",cursor:"pointer"},attrs:{title:"下载"},on:{click:function(a){return e.download(t)}}}),e.readOnly?e._e():a("i",{staticClass:"el-icon-close delete-icon",staticStyle:{"margin-left":"10px",cursor:"pointer"},attrs:{title:"删除"},on:{click:function(a){return e.deleteFile(i,t)}}})])])}))],2)])}),Ms=[],Es={props:{keysArr:{type:[Array,String],default:function(){return[]}},readOnly:{type:Boolean,default:!1},max:{type:[Number,String],default:6},isShow:{type:Number},contextKey:{type:[String,Object]},defined:null},data:function(){return{filesArr:[]}},created:function(){this.fileFalg()},methods:{fileFalg:function(){var e=Object(aa["a"])(this.keysArr);this.filesArr="string"==e?[this.keysArr]:ze["default"].deepCopy(this.keysArr),this.keysArr||(this.filesArr=[])},resetFile:function(){this.filesArr=[]},download:function(e){if(e.Key){var t=document.createElement("a");t.href="/image-service/common/file_get/".concat(e.key,"?systemId=dataPlatform"),t.download="".concat(e.name),t.click(),document.body.removeChild(t)}else this.$message({message:"无该获取该文件资源链接!",type:"error"})},deleteFile:function(e,t){this.filesArr.splice(e,1),this.$emit("change",this.filesArr,this.defined)},uploadAndSubmit:function(e){var t=e.file,a=e.file.size;if(a>52428800)return this.$message.error("文件不可大于50M,请重新上传"),!1;var i=new FileReader,n=this,r=t.name.split("."),o=r[r.length-1],s="&key="+r[0]+t.uid+"."+o,l=ze["default"].formatDate(new Date(t.lastModified));i.onloadstart=function(){},i.onprogress=function(e){},i.onUploadProgress=function(e){var t=e.loaded/e.total*100|0;uploader.onProgress({percent:t})},i.onload=function(){},i.onloadend=function(){if(i.error);else{var e=new XMLHttpRequest;e.open("POST",window.__systemConf.baseServiceUrl+"/image-service/common/file_upload?systemId=dataPlatform&secret=9e0891a7a8c8e885&overwrite=true"+s),e.send(i.result),e.onreadystatechange=function(){if(4==e.readyState)if(200==e.status){var a={key:s.split("=")[1],type:o,name:t.name,createTime:l,systemId:"dataPlatform"};if(n.filesArr.push(a),1===n.isShow){var i={};i[n.contextKey]=n.filesArr,n.$emit("change",i,n.defined)}else n.$emit("change",n.filesArr,n.defined)}else this.$message.error(res.data.ResultMsg)}}},i.readAsArrayBuffer(t)}},watch:{keysArr:function(e){this.fileFalg()}}},Ls=Es,$s=(a("cc2b"),Object(l["a"])(Ls,Fs,Ms,!1,null,null,null)),qs=$s.exports;function Bs(e){var t={};function a(e){return"object"===Object(aa["a"])(e)&&!Array.isArray(e)}function i(e,n){Object.entries(n).forEach((function(n){var r=Object(Oe["a"])(n,2),o=r[0],s=r[1],l=e?"".concat(e,".").concat(o):o;a(s)?i(l,s):t[l]=s}))}return i("",e),t}var zs={data:function(){return{buildName:"",keysArr:[],buildDialogVis:!1,form:{},dialogImageUrl:"",dialogVisible:!1,all:!0,rules:{localId:[{required:!0,message:"请输入建筑本地编码",trigger:"blur"}],localName:[{required:!0,message:"请输入建筑本地名称",trigger:"blur"}]},buildData:{},buildDisabled:!1}},components:{uploadFiles:qs,uploadImgs:vo},props:["buildTitle","buildMessage","currentBuild"],computed:{},mounted:function(){},watch:{},methods:{deepCopy:function(e){return JSON.parse(JSON.stringify(e))},showDialog:function(e){var t=e||{};t=Bs(t),this.buildData=t,this.timeoutSetVal(),this.buildDialogVis=!0},timeoutSetVal:function(){var e=this,t=this;setTimeout((function(){t.form?t.form=t.buildData:e.timeoutSetVal()}))},closeDialog:function(){this.buildDialogVis=!1},submitForm:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;t.buildDisabled=!0,t.$emit("handleBuild",t.form),setTimeout((function(){t.buildDisabled=!1}),2500)}))},changeItem:function(e){var t=Object.keys(e)[0]+"";this.form[t]=e[t]}}},Vs=zs,Us=(a("cd0c"),Object(l["a"])(Vs,Os,Rs,!1,null,"0842a1a5",null)),Hs=Us.exports,Gs=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"楼层贯通关系维护",visible:e.connectDialogVis,width:"730px",id:"messageDialog"},on:{"update:visible":function(t){e.connectDialogVis=t}}},[a("el-row",{staticStyle:{height:"80px"}},[a("div",{staticStyle:{"line-height":"32px"}},[e._v("添加与"+e._s(e.floor.FloorLocalName)+"层有贯通关系的楼层 :")]),a("div",{staticStyle:{width:"70%"}},[a("bfCascader",{ref:"bfCascader",attrs:{floorId:e.floor.id}})],1)]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(t){e.connectDialogVis=!1}}},[e._v("取消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.save}},[e._v("确认")])],1)],1)},Ks=[],Ws=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-cascader",{attrs:{options:e.options,props:e.props,clearable:""},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},Xs=[],Ys={data:function(){return{value:[],props:{multiple:!0,value:"id",label:"localName",children:"floor"},options:[]}},props:{floorId:{default:""}},created:function(){},methods:{getCascader:function(){var e=this,t={cascade:[{name:"floor",orders:"floorSequenceID desc",filters:"id != '".concat(this.floorId,"'")}],pageNumber:1,pageSize:50};Ue.a.buildingQuery(t).then((function(t){e.options=t.content.filter((function(e){return e.floor}))}))}}},Js=Ys,Qs=(a("6812"),Object(l["a"])(Js,Ws,Xs,!1,null,"a8f493b8",null)),Zs=Qs.exports,el={data:function(){return{buildName:"",connectDialogVis:!1,floor:{}}},components:{bfCascader:Zs},methods:{showDialog:function(){var e=this;this.connectDialogVis=!0,this.$nextTick((function(){e.$refs.bfCascader.getCascader();var t=e.floor.floorThroughList||[],a=[];t.length&&t.map((function(e){a.push([e.buildingId,e.id])})),e.$refs.bfCascader.value=a}))},save:function(){var e=this,t=this.$refs.bfCascader.value,a={floorId:this.floor.id,floorOtherIdList:[]};t.map((function(e){e[1]&&a.floorOtherIdList.push(e[1])})),lt.a.createRelationInFloor(a).then((function(t){e.connectDialogVis=!1,e.$message.success("关联成功"),e.$emit("refresh")}))}}},tl=el,al=(a("d540"),Object(l["a"])(tl,Gs,Ks,!1,null,"dd69ca78",null)),il=al.exports,nl={components:{addFloor:Ps,addBuild:Hs,addConnectivity:il},data:function(){return{repetitionGraphyVisible:!1,floorTitle:"添加楼层",buildTitle:"添加建筑",delDialogVis:!1,delText:"建筑",headerStyle:{backgroundColor:"#d9d9d9",color:"#2b2b2b",lineHeight:"30px"},buildList:[],tableData:[],page:{pageSize:500,pageSizes:[10,20,50,100],pageNumber:1,total:0},loading:!1,curBuildId:"",curBuildName:"",curFloorId:"",modelId:"",buildMessage:{},selectedBuildIndex:0}},computed:Object(v["a"])({},Object(y["b"])("layout",["projectId"])),mounted:function(){},created:function(){this.init(),this.handleBuildQuery(),this.handleSearchBuildKey()},methods:{init:function(){var e=this,t={orders:"localName asc",pageNumber:1,pageSize:500};lt.a.buildingQueryAndCount(t).then((function(t){e.buildList=t.content,e.buildList.length&&(e.$route.query.buildingId&&(e.selectedBuildIndex=e.buildList.findIndex((function(t){return t.id===e.$route.query.buildingId}))),e.changeBuild(e.selectedBuildIndex>e.buildList.length-1?0:e.selectedBuildIndex))}))},changeBuild:function(e){this.selectedBuildIndex=e,this.buildList.map((function(e){return e.active=!1,e})),this.buildList[e].active=!0,this.curBuildId=this.buildList[e].id,this.curBuildName=this.buildList[e].localName||this.buildList[e].name,this.getFloorTableData(),this.$forceUpdate()},addBuild:function(){this.buildTitle="添加建筑",this.$refs.addBuildDialog.showDialog(),this.handleSearchBuildKey()},handleSearchBuildKey:function(){var e=this,t={type:"building",pageNumber:1,pageSize:1e3,orders:"sort asc, name desc"};et.a.getDataDictionary(t).then((function(t){var a={},i=t.content.filter((function(e){return"工作历"!==e.firstName&&"能耗信息"!==e.firstName&&"人员信息"!==e.firstName}));i.map((function(e){var t=["ENUM","MENUM","BOOLEAN"];"STATIC"==e.category&&e.dataType.includes(t)&&e.dataSource&&(e.options=e.dataSource,e.props={value:"code",label:"name",children:"content",checkStrictly:!0}),a[e.firstName]&&a[e.firstName].length||(a[e.firstName]=[]),"infos.areaTree"!==e.path&&a[e.firstName].push({InfoPointName:e.name,InfoPointCode:e.code,Visible:e.visible,UnDisabled:e.unDisabled,SecondName:e.secondName?e.secondName:"",options:e.dataSource,props:e.props,Unit:e.unit,Path:e.path,dataType:e.dataType,category:e.category,editable:e.editable})})),e.buildMessage=a}))},delBuild:function(){this.delText="建筑",this.delDialogVis=!0},editBuild:function(){var e=this;this.buildTitle="编辑建筑",this.handleSearchBuildKey();for(var t=this.currentBuildList.filter((function(t){return t.id===e.curBuildId})),a={},i=0;i<t.length;i++)a=t[i];this.$refs.addBuildDialog.showDialog(a)},handleFile:function(e,t){},handleBuild:function(e){var t=this,a=js.formatData(e),i={content:[a]};a.id?lt.a.objectUpdateBuild(i).then((function(e){t.$message.success("更新成功"),t.$refs.addBuildDialog.closeDialog()})):lt.a.objectCreateBuild(i).then((function(e){t.$message.success("创建成功"),t.$refs.addBuildDialog.closeDialog()})),setTimeout((function(){t.handleBuildQuery(),t.init()}),500)},handleDelete:function(e){this.delText="楼层",this.delDialogVis=!0,this.curFloorId=e.id},handleClose:function(){},addFloor:function(){this.curFloorId="",this.floorTitle="添加楼层",this.$refs.addFloorDialog.showDialog()},getFloorTableData:function(){var e=this,t={cascade:[{name:"floorThroughList"}],orders:"floorSequenceID desc",pageNumber:this.page.pageNumber,pageSize:this.page.pageSize,filters:"buildingId='".concat(this.curBuildId,"'")};lt.a.floorQueryAndSign(t).then((function(t){e.tableData=t.content,e.page.total=t.total}))},refresh:function(){this.getFloorTableData()},confirmDel:function(){var e=this;if("楼层"==this.delText){var t=[{id:this.curFloorId}];this.delDialogVis=!1,lt.a.deleteFloorInfo(t).then((function(t){e.$message.success("删除成功"),e.init()}))}else if(this.tableData&&this.tableData.length)this.$message.error("当前建筑中包含楼层,不可删除"),this.delDialogVis=!1;else{var a=[{id:this.curBuildId}];this.delDialogVis=!1,lt.a.deleteBuildInfo(a).then((function(t){e.$message.success("删除成功"),e.handleBuildQuery(),e.init()}))}},editFloorData:function(e){this.floorTitle="编辑楼层信息",this.curFloorId=e.id,this.$refs.addFloorDialog.showDialog(e)},changeConnection:function(e){this.$refs.addConnectivity.showDialog(),this.$refs.addConnectivity.floor=e},checkDrawImg:function(e,t){this.modelId=3==t?"":1==t?e.infos.floorMap:e.modelId;var a={modelId:this.modelId,FloorID:e.id,BuildID:e.buildingId,BuildName:this.curBuildName,FloorName:e.localName};this.$router.push({name:"repetitionGraphy",query:a})},handleBuildQuery:function(){var e=this,t={projectId:this.projectId,orders:"localName asc",pageNumber:1,pageSize:500};lt.a.objectQueryBuild(t).then((function(t){e.currentBuildList=t.content}))}},watch:{projectId:function(){this.init()}}},rl=nl,ol=(a("5af3"),Object(l["a"])(rl,gs,vs,!1,null,"c943ccd0",null)),sl=ol.exports,ll=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"repetitionGraphy"}},[a("div",{staticClass:"buttons"},[a("el-button",{attrs:{icon:"el-icon-back",size:"mini"},on:{click:e.backRouter}}),e.hasModel?[e.isEdit?e._e():a("el-button",{attrs:{size:"mini"},on:{click:e.changeGraphy}},[e._v(e._s(e.hasGraph?"替换模型文件":"关联模型文件"))]),!e.sign&&!e.otherSign||e.isEdit?e._e():a("el-button",{attrs:{size:"mini"},on:{click:e.editGraphy}},[e._v("编辑平面图")]),e.isEdit?a("el-button",{attrs:{size:"mini"},on:{click:e.cancel}},[e._v("取消")]):e._e(),e.isEdit?a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.confirm}},[e._v("确认")]):e._e(),e.repeatFloor.length?a("span",{staticClass:"repeatTips",attrs:{title:e.repeatTextTips}},[e._v(e._s(e.repeatTextTips))]):e._e()]:[-1==e.step?a("el-upload",{staticClass:"upload-demo",attrs:{action:"string","http-request":e.uploadAndSubmit,"show-file-list":!1,accept:".jpg,.png","before-upload":e.beforeUpload}},[a("el-button",{attrs:{size:"mini"}},[e._v(e._s(e.hasGraph?"替换平面图图片":"上传平面图图片"))])],1):e._e(),0==e.step?a("el-button",{staticStyle:{float:"right"},attrs:{size:"mini",type:"primary",disabled:e.nextStepBtnDisable},on:{click:e.nextStep}},[e._v("下一步")]):e._e(),1==e.step?a("el-button",{staticStyle:{float:"right"},attrs:{size:"mini",type:"primary"},on:{click:e.nextStep}},[e._v("保存")]):e._e(),1==e.step?a("el-button",{staticStyle:{float:"right"},attrs:{size:"mini"},on:{click:e.lastStep}},[e._v("上一步")]):e._e()],e.file.FolderName?a("span",{staticStyle:{float:"right"}},[e._v("当前对应的模型文件:"+e._s(e.file.FolderName)+" - "+e._s(e.file.FloorName))]):e._e()],2),a("div",{staticClass:"drawImg"},[e.hasGraph?a("div",{staticStyle:{width:"100%",height:"100%",position:"relative"}},[a("drawFloor",{ref:"drawFloor",attrs:{isEdit:e.isEdit,showTools:!0,id:1},on:{changeSign:e.changeSign,getGraphSuc:e.getGraphSuc,handled:e.repeatHandled}}),e.step>-1?a("div",{staticClass:"stepContainer"},[a("el-steps",{attrs:{active:e.step,"align-center":"","finish-status":"success","process-status":"process"}},[a("el-step",{attrs:{title:"设定比例尺",description:e.stepDes[0]}}),a("el-step",{attrs:{title:"楼层对齐",description:e.stepDes[1]}})],1)],1):e._e(),1==e.step?a("ul",{staticClass:"floorList"},[e.floorList.length>1?[a("li",{staticStyle:{"border-bottom":"1px solid #ccc","text-align":"center",padding:"0"}},[e._v("选择对齐楼层")]),e._l(e.floorList,(function(t){return a("li",{key:t.id},[a("el-radio",{attrs:{label:t,disabled:t.id==e.FloorID},on:{change:e.changeFloor},model:{value:e.floorRadio,callback:function(t){e.floorRadio=t},expression:"floorRadio"}},[e._v(e._s(t.localId||t.localName))])],1)}))]:[a("li",{staticStyle:{"text-align":"center",padding:"0"}},[e._v(" 暂无对齐楼层 ")])]],2):e._e()],1):a("div",{staticStyle:{width:"100%",height:"100%"}},[e._m(0)])]),a("checkGraphy",{ref:"checkGraphy",attrs:{alreadyRelatedModel:e.alreadyRelatedModel},on:{refresh:e.refresh}}),a("setScaleDialog",{ref:"setScaleDialog",on:{textChange:e.scaleTextChange}}),a("backTips",{ref:"backTips",on:{back:e.runBack}})],1)},cl=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"center",staticStyle:{"padding-top":"300px"}},[a("i",{staticClass:"icon-wushuju iconfont"}),e._v("暂无平面图 ")])}],ul=(a("8a79"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.canvasLoading,expression:"canvasLoading"}],staticClass:"drawFloor",attrs:{id:"drawFloor"+e.id}},[a("canvas",{ref:"canvas",attrs:{id:"floorCanvas"+e.id,width:e.cadWidth,height:e.cadHeight,tabindex:"0"}}),e.showTools?a("div",{staticClass:"operate"},[a("canvasFun",{ref:"canvasFun",attrs:{config:e.config},on:{fit:e.fit,savePng:e.savePng,saveSvg:e.saveSvg,divide:e.divide,clearDivide:e.clearDivide,scale:e.scale,changeAbsorb:e.changeAbsorb,saveJson:e.saveJson}})],1):e._e()])}),dl=[],pl=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",{class:{isEdit:e.config.isEdit},attrs:{id:"canvas-actions-box"}},[e.config.isEdit&&e.config.groupSelect?a("div",{class:{active:"groupSelect"==e.active},on:{click:e.groupSelect}},[a("i",{staticClass:"iconfont icon-shuxingxuanze"})]):e._e(),a("div",{on:{click:e.fitToWindow}},[a("i",{staticClass:"iconfont icon-maximize"})]),e.config.isEdit?e._e():a("div",[a("el-dropdown",{attrs:{size:"mini",placement:"top-start"},on:{command:e.handleCommand}},[a("i",{staticClass:"el-icon-download",staticStyle:{"font-size":"20px",color:"#fff"}}),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"savePng"}},[e._v("保存为png")]),a("el-dropdown-item",{attrs:{command:"saveSvg"}},[e._v("保存为svg")]),a("el-dropdown-item",{attrs:{command:"saveJson"}},[e._v("保存为Json")])],1)],1)],1),e.config.isEdit&&e.config.divide?a("div",{class:{active:"divide"==e.active},on:{click:e.divide}},[a("el-dropdown",{attrs:{size:"mini",placement:"top-start","hide-on-click":!1},on:{command:e.handleDivideCommand}},[a("i",{staticClass:"iconfont icon-edit1"}),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"savePng"}},[e._v(" 吸附 "),a("el-switch",{model:{value:e.isSwitch,callback:function(t){e.isSwitch=t},expression:"isSwitch"}})],1)],1)],1)],1):e._e(),e.config.isEdit&&e.config.divide?a("div",{on:{click:e.clearDivide}},[a("i",{staticClass:"iconfont icon-Erase"})]):e._e(),a("div",{on:{click:e.reduce}},[a("i",{staticClass:"iconfont icon-narrow"})]),a("div",{staticClass:"line"},[a("el-slider",{attrs:{"tooltip-class":"tooltip-class",min:e.min,"show-tooltip":!1,max:e.max},on:{input:e.scale},model:{value:e.sliderVal,callback:function(t){e.sliderVal=t},expression:"sliderVal"}})],1),a("div",{on:{click:e.plus}},[a("i",{staticClass:"iconfont icon-zoom"})])])},hl=[],fl={data:function(){return{sliderVal:1,active:"",min:1,max:1e3,everyScale:1,isSwitch:!1}},props:{config:{type:Object,default:{isEdit:!1,divide:!0,groupSelect:!1}}},computed:{},methods:{groupSelect:function(){this.active="groupSelect",this.$emit("groupSelect")},fitToWindow:function(){this.$emit("fit")},handleCommand:function(e){this.$emit(e)},handleDivideCommand:function(e){this.$emit("changeAbsorb",this.isSwitch)},divide:function(){this.active="divide",this.$emit("divide")},clearDivide:function(){this.active="",this.$emit("clearDivide")},undo:function(){this.$emit("undo")},redo:function(){this.$emit("redo")},reduce:function(){this.sliderVal/=1.1,this.sliderVal<this.min&&(this.sliderVal=this.min),this.scale(this.sliderVal)},scale:function(e){var t=e*this.everyScale/10;this.$emit("scale",t)},plus:function(){this.sliderVal*=1.1,this.sliderVal>this.maxScale&&(this.sliderVal=this.maxScale),this.scale(this.sliderVal)}}},ml=fl,gl=(a("6411"),Object(l["a"])(ml,pl,hl,!1,null,"0a368011",null)),vl=gl.exports,yl={components:{canvasFun:vl},data:function(){return{drawMainScene:null,view:null,dataKey:"",cadWidth:800,cadHeight:600,canvasLoading:!1,FloorID:"",Outline:[],floorData:{},config:{isEdit:!1,divide:!0},shadeList:[],type:1,scaleItem:null,urlModelId:""}},props:{isEdit:{default:!1},showTools:{default:!1},id:{default:0},dialog:{default:!1}},computed:Object(v["a"])(Object(v["a"])({},Object(y["b"])("layout",["projectId","projects"])),{},{projectName:function(){var e=this,t=this.projects.find((function(t){return t.id==e.projectId}));return t?t.name?t.name:t.id:this.projectId}}),created:function(){this.FloorID=this.$route.query.FloorID,this.urlModelId=this.$route.query.modelId,Ht["e"].sceneMarkColor=new Gt["SColor"]("#00000080"),this.dialog||this.init()},mounted:function(){this.cadWidth=document.getElementById("drawFloor".concat(this.id)).offsetWidth,this.cadHeight=document.getElementById("drawFloor".concat(this.id)).offsetHeight},methods:{init:function(){this.getFloorData()},initGraphy:function(e,t){var a=this;a.type=t,a.clearGraphy(),a.drawMainScene=new Ht["a"],a.canvasLoading=!0,1==t?a.drawMainScene.getFloorData("".concat(window.__systemConf.baseServiceUrl,"/revit-algorithm/base-graph/query"),{ModelId:e}).then((function(e){a.getGraphtSuc(e)})):2==t?a.drawMainScene.loadUrl("".concat(window.__systemConf.baseServiceUrl,"/image-service/common/file_get?systemId=revit&key=").concat(e)).then((function(e){a.getGraphtSuc(e)})):3==t&&a.drawMainScene.loadImg("".concat(window.__systemConf.baseServiceUrl,"/image-service/common/image_get?systemId=dataPlatform&key=").concat(e),(function(e){a.getGraphtSuc(e)}))},getGraphtSuc:function(e){if(this.canvasLoading=!1,"error"==e)return this.FloorMap="",void console.log("数据解析异常");if("failure"==e.Result)return this.showTools=!1,void this.$message.warning(e.Message);if(this.view.scene=this.drawMainScene,this.view.fitSceneToView(),this.drawMainScene.isSpaceSelectable=!1,3==this.type&&(this.addScaleItem(this.floorData.properties),this.$emit("getGraphSuc"),this.floorData.infos&&this.floorData.infos.FloorMapShift)){var t=JSON.parse(this.floorData.infos.FloorMapShift),a=t.x,i=t.y;0==a&&0==i||this.drawMainScene.imgList[0].moveTo(a,i)}if(this.$refs.canvasFun&&(this.view.minScale=this.view.scale,this.$refs.canvasFun.everyScale=this.view.scale),this.floorData.outline&&this.floorData.outline.length){var n=this.floorData.outline.map((function(e){return new Gt["SPoint"](e.X,e.Y)}));this.drawMainScene.addSceneMark(n)}this.$emit("handled",this.floorData.outline&&this.floorData.outline.length>0)},getFloorData:function(){var e=this,t={filters:"id='".concat(this.FloorID,"'")},a=this.urlModelId&&this.urlModelId.split(".")[1];!a||"png"!=a.toLowerCase()&&"jpg"!=a.toLowerCase()?lt.a.floorQueryOutline(t).then((function(t){if(e.floorData=t.content[0],e.floorData.infos&&e.floorData.infos.floorMap){e.getOtherFloorOutLine();var a=e.floorData.infos.floorMap;e.initGraphy(a,2)}})):lt.a.floorQueryAndSign(t).then((function(t){if(e.floorData=t.content[0],e.floorData.infos&&e.floorData.infos.floorMap){var a=e.floorData.infos.floorMap;e.initGraphy(a,3)}}))},getOtherFloorOutLine:function(){var e=this,t=this.floorData.modelId;if(t){var a={filters:"modelId='".concat(t,"'"),cascade:[{name:"building"}]};this.shadeList=[],lt.a.floorQueryOutline(a).then((function(t){var a=t.content.map((function(t){if(t.id!=e.FloorID){if(t.outline&&t.outline.length){var a=t.outline.map((function(e){return new Gt["SPoint"](e.X,e.Y)}));e.shadeList.push(a)}return t}})).filter((function(e){return e}));e.drawMainScene.addAllShade(e.shadeList),e.$emit("changeSign",t.content.length>1,a)}))}},addScaleItem:function(e){this.scaleItem=new Ht["b"](null),this.scaleItem.strokeColor=Gt["SColor"].Red,this.drawMainScene.addItem(this.scaleItem),e&&e.line&&2==e.line.length&&(this.scaleItem.line=e.line,this.scaleItem.text=e.text,this.scaleItem.pointChange())},clearGraphy:function(){if(this.view)this.view.scene=null;else{var e="floorCanvas".concat(this.id);this.view=new Ht["c"](e)}},focus:function(){document.getElementById("floorCanvas".concat(this.id)).focus()},fit:function(){this.view.fitSceneToView()},savePng:function(){this.view.saveImage("".concat(this.projectName,"-").concat(this.buildFloorName,".png"),"png")},saveSvg:function(){this.view.saveSceneSvg("".concat(this.projectName,"-").concat(this.buildFloorName,".svg"),6400,4800)},saveJson:function(){this.view.saveFloorJson("".concat(this.projectName,"-").concat(this.buildFloorName,".json"))},divide:function(){this.drawMainScene.isMarking=!0},clearDivide:function(){this.drawMainScene.clearSceneMark()},changeAbsorb:function(e){this.drawMainScene.isAbsorbing=e},scale:function(e){if(this.view){var t=this.view.scale;this.view.scaleByPoint(e/t,this.cadWidth/2,this.cadHeight/2)}}},watch:{"view.scale":{handler:function(e){if(this.$refs.canvasFun){var t=10*e/this.view.minScale;this.$refs.canvasFun.sliderVal=t>1e3?1e3:t}}},isEdit:{handler:function(e){this.config.isEdit=e}}}},bl=yl,wl=(a("6097"),Object(l["a"])(bl,ul,dl,!1,null,"e3186cda",null)),Cl=wl.exports,Il=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{id:"checkGraphy",title:"添加平面图",visible:e.checkGraphyVisible,width:"500px"},on:{"update:visible":function(t){e.checkGraphyVisible=t},close:e.handleClose}},[a("div",{staticClass:"bodys"},[a("el-cascader",{attrs:{options:e.options,"show-all-levels":!1,clearable:"",placeholder:"请选择模型文件"},on:{change:e.handleChange,"active-item-change":e.handleItemChange},model:{value:e.casVal,callback:function(t){e.casVal=t},expression:"casVal"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.handleClose}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.bindGraphy}},[e._v("确 定")])],1)])},xl=[],Sl=a("460c"),kl=a.n(Sl),_l={components:{drawFloor:Cl},computed:Object(v["a"])({},Object(y["b"])("layout",["projectId"])),props:{alreadyRelatedModel:{default:[]}},data:function(){return{casVal:[],jsonKey:"",checkGraphyVisible:!1,options:[],floor:{},modelIdToFloorId:{},key:""}},methods:{showDialog:function(e){this.floor=e,this.checkGraphyVisible=!0},handleClose:function(){this.checkGraphyVisible=!1,this.casVal=[]},uploadAndSubmit:function(e){var t=e.file;console.log(t);var a=new FileReader,i=this,n=t.name.split("."),r=n[n.length-1],o=t.uid;a.onloadend=function(){if(a.error);else{var e=new XMLHttpRequest;e.open("POST","/image-service/common/image_upload?systemId=dataPlatform&secret=9e0891a7a8c8e885&overwrite=true&key="+t.uid+"."+r),e.send(a.result),e.onreadystatechange=function(){4==e.readyState&&200==e.status&&(i.key=o+"."+r,i.jsonKey="")}}},a.readAsArrayBuffer(t)},bindGraphy:function(){var e=this;if(this.jsonKey||this.key)if(this.alreadyRelatedModel.indexOf(this.modelIdToFloorId[this.jsonKey])>-1)this.$message.warning("此模型已关联该建筑下的楼层");else{var t={floorId:this.floor.FloorID,buildingId:this.floor.BuildID,cover:!0,currentModelId:this.floor.CurrentModelId};if(this.jsonKey&&(t.id=this.modelIdToFloorId[this.jsonKey],kl.a.bindFloorModel(t).then((function(a){e.$message.success("更新成功"),e.handleClose(),e.$emit("refresh",e.jsonKey,t)}))),this.key){var a={content:[{id:this.floor.FloorID,infos:{floorMap:this.key}}]};lt.a.manageUpdateFloor(a).then((function(t){e.$message.success("更新成功"),e.handleClose(),e.$emit("refresh",e.key)}))}}else this.$message.warning("请选择模型文件")},handleChange:function(e){this.jsonKey=e[1],this.key=""},handleItemChange:function(e){var t=this,a={FolderId:e[0],Status:"4",ProjectId:this.projectId};kl.a.queryFloorList(a).then((function(a){var i=a.Content.map((function(e){return t.modelIdToFloorId[e.CurrentModelId]=e.Id,{value:e.CurrentModelId,label:e.FloorName}}));t.pushChild(t.options,i,e[0])}))},pushChild:function(e,t,a){var i=this;e.map((function(e){e.value==a?e.children=t:e.children&&i.pushChild(e.children,t,a)}))},init:function(){this.getDirectory()},getDirectory:function(){var e=this;kl.a.queryModel("").then((function(t){e.options=t.Content.map((function(e){return{value:e.Id,label:e.Name,children:[]}}))}))}},created:function(){this.init()},watch:{projectId:function(){this.init()}}},Dl=_l,jl=(a("9a48"),Object(l["a"])(Dl,Il,xl,!1,null,null,null)),Tl=jl.exports,Al=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"设定比例尺",visible:e.dialogVis,width:"500px",id:"scaleDialog","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVis=t}}},[a("el-row",[a("div",{staticStyle:{"line-height":"32px"}},[e._v("设定比例尺长度 : ")]),a("div",{staticStyle:{width:"70%"}},[a("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.scaleInput,callback:function(t){e.scaleInput=t},expression:"scaleInput"}}),e._v(" mm ")],1)]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVis=!1}}},[e._v("取消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirm}},[e._v("确认")])],1)],1)},Nl=[],Pl={data:function(){return{dialogVis:!1,scaleInput:"",item:""}},methods:{showDialog:function(e){this.dialogVis=!0,this.item=e,this.scaleInput=e.text.substring(0,e.text.length-3)},confirm:function(){this.item.text=this.scaleInput+" mm",this.item.update(),this.$emit("textChange",this.scaleInput),this.dialogVis=!1}}},Ol=Pl,Rl=(a("f369"),Object(l["a"])(Ol,Al,Nl,!1,null,"031cf93c",null)),Fl=Rl.exports,Ml=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"提示",visible:e.dialogVis,width:"500px",id:"tipsDialog","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVis=t}}},[a("el-row",[a("div",{staticStyle:{"line-height":"32px"}},[e._v("上传图片未保存,退出后上传图片将失效。是否确认退出?")])]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVis=!1}}},[e._v("取消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirm}},[e._v("确认")])],1)],1)},El=[],Ll={data:function(){return{dialogVis:!1,scaleInput:"",item:""}},methods:{showDialog:function(e){this.dialogVis=!0},confirm:function(){this.dialogVis=!1,this.$emit("back")}}},$l=Ll,ql=Object(l["a"])($l,Ml,El,!1,null,null,null),Bl=ql.exports,zl=a("32e1"),Vl={components:{drawFloor:Cl,checkGraphy:Tl,setScaleDialog:Fl,backTips:Bl},data:function(){return{modelId:"",isEdit:!1,FloorID:"",file:{},alreadyRelatedModel:[],sign:!1,otherSign:!1,hasGraph:!1,hasModel:!1,step:-1,key:"",stepDes:["请在图上点击两点绘制线段并标记实际长度","请移动图片与其他楼层对齐"],floorList:[],floorRadio:"",imgService:"".concat(window.__systemConf.baseServiceUrl,"/image-service/common/image_get?systemId=dataPlatform&key="),curImgItem:null,scaleItem:null,baseImgItem:null,nextStepBtnDisable:!0,timeOut:!0,repeatFloor:[],handled:!1}},created:function(){var e=this;if(this.modelId=this.$route.query.modelId,this.FloorID=this.$route.query.FloorID,this.BuildID=this.$route.query.BuildID,this.BuildName=this.$route.query.BuildName,this.FloorName=this.$route.query.FloorName,""!=this.modelId){this.hasGraph=!0;var t=this.modelId.split(".");(!t[1]||"png"!=t[1].toLowerCase()&&"jpg"!=t[1].toLowerCase())&&this.init()}else this.init();this.getCountModel(),this.$nextTick((function(){e.$refs.drawFloor.buildFloorName="".concat(e.BuildName,"-").concat(e.FloorName)}))},computed:{repeatTextTips:function(){var e="当前楼层与".concat(this.repeatFloor.join("、"),"关联同一个平面图");return this.handled||(e+=",请通过「编辑平面图」划分当前楼层对应的平面图范围"),e}},mounted:function(){},methods:{init:function(){this.getFloorData()},backRouter:function(){this.step>-1?this.$refs.backTips.showDialog():this.runBack()},runBack:function(){this.$router.push({name:"buildFloor",query:{buildingId:this.BuildID}})},changeGraphy:function(){this.$refs.checkGraphy.showDialog({FloorID:this.FloorID,BuildID:this.BuildID,CurrentModelId:this.currentModelId})},confirm:function(){var e=this,t=this.$refs.drawFloor.drawMainScene.sceneMark,a=null;if(t){if(t.outLine.length<3)return void this.$message.warning("请添加轮廓线");if(!t.closeFlag)return this.$message.warning("请按回车闭合轮廓线"),void this.$refs.drawFloor.focus();a=this.$refs.drawFloor.drawMainScene.sceneMark.outLine,a=a.map((function(e){return{X:e.x.toFixed(2),Y:-e.y.toFixed(2)}}))}var i={content:[{id:this.FloorID,outline:a}]};a||(i.nullItems=["outline"]),lt.a.floorUpdateOutline(i).then((function(t){e.isEdit=!1,e.$message.success("更新成功"),e.handled=!!a}))},cancel:function(){this.isEdit=!1,this.$refs.drawFloor.init()},editGraphy:function(){this.isEdit=!0},refresh:function(e,t){this.modelId=e,this.hasGraph=!0;var a=this.modelId.split(".");a[1]?"png"!=a[1].toLowerCase()&&a[1].toLowerCase():(this.key="",t&&t.id&&(this.getFileName(t.id),this.currentModelId=t.id),this.initFromModelId(this.modelId))},getFileName:function(e){var t=this;if(e){var a={Id:e};kl.a.getFileNameById(a).then((function(e){t.file=e}))}},getFloorData:function(e){var t=this,a={pageSize:1e3,filters:"buildingId='".concat(this.BuildID,"'"),orders:"floorSequenceID desc"};lt.a.floorQueryAndSign(a).then((function(a){t.floorList=a.content.filter((function(e){return e.infos&&e.infos.floorMap||e.id==t.FloorID})),e&&"next"==e&&(t.floorRadio=t.floorList[0],t.floorRadio.id!=t.FloorID&&t.loadOtherImg(t.floorRadio)),t.alreadyRelatedModel=a.content.map((function(e){if(e.id!=t.FloorID)return e.modelId;t.sign=e.Sign>0,t.currentModelId=e.modelId,e.modelId&&t.getFileName(e.modelId)})).filter((function(e){return e}))}))},changeSign:function(e,t){this.otherSign=e,this.repeatFloor=t.map((function(e){return"".concat(e.building.localName||e.building.name,"-").concat(e.localName||e.name)}))},getCountModel:function(){var e=this;kl.a.countModel({Filters:"Status in [4]"}).then((function(t){e.hasModel=t.Count>0}))},uploadAndSubmit:function(e){var t=e.file,a=new FileReader,i=this,n=t.name.split("."),r=n[n.length-1],o=t.uid;a.onloadend=function(){if(a.error);else{var e=new XMLHttpRequest;e.open("POST","/image-service/common/image_upload?systemId=dataPlatform&secret=9e0891a7a8c8e885&overwrite=true&key="+o+"."+r),e.send(a.result),e.onreadystatechange=function(){4==e.readyState&&200==e.status&&(i.key=o+"."+r,i.refresh(o+"."+r),i.step=0,i.$nextTick((function(){i.initFromModelId(o+"."+r)})),this.timeOut=!0)}}},a.readAsArrayBuffer(t)},beforeUpload:function(e){var t=this.isImage(e.name);return!!t||(this.$message.error("仅支持png、jpg格式的图片"),!1)},isImage:function(e){if("string"===typeof e){var t=e.toLowerCase();return t.endsWith(".png")||t.endsWith(".jpg")}},updateFloorKey:function(){var e=this,t=this.$refs.drawFloor.scaleItem,a=t.line.map((function(t){return{x:t.x+e.baseImgItem.x,y:t.y+e.baseImgItem.y}})),i=zl["a"].pointDistance(a[0].x,a[0].y,a[1].x,a[1].y),n=t.text.substring(0,t.text.length-3),r=i/n,o={content:[{id:this.FloorID,infos:{floorMap:this.key,floorMapRatio:r,floorMapShift:JSON.stringify({x:this.baseImgItem.x,y:this.baseImgItem.y})},properties:{line:a,text:t.text}}]};lt.a.manageUpdateFloor(o).then((function(a){e.$message.success("更新成功"),e.step=-1,e.baseImgItem.globalAlpha=1,e.baseImgItem.moveable=!1,t.show(),e.removeLast(),e.$refs.drawFloor.fit()}))},initFromModelId:function(e){var t=e.split(".")[1];t?"png"==t.toLowerCase()||"jpg"==t.toLowerCase()?this.$refs.drawFloor.initGraphy(e,3):this.$refs.drawFloor.initGraphy(e,2):this.$refs.drawFloor.initGraphy(e,1)},lastStep:function(){this.step=0,this.$refs.drawFloor.scaleItem.show(),this.baseImgItem.globalAlpha=1,this.baseImgItem.moveable=!1,this.removeLast()},nextStep:function(){var e=this;this.baseImgItem=this.$refs.drawFloor.drawMainScene.imgList[0],this.baseImgItem.globalAlpha=.5,this.baseImgItem.moveable=!0,0==this.step?(this.step=1,this.$refs.drawFloor.scaleItem.hide(),this.getFloorData("next"),setTimeout((function(){e.timeOut=!1}),3e3)):1==this.step&&this.updateFloorKey()},getGraphSuc:function(){var e=this.$refs.drawFloor.scaleItem;0==this.step?(e.status=Ht["g"].Create,this.$refs.drawFloor.drawMainScene.grabItem=e,e.connect("changText",this,this.changeText),e.moveable=!0,this.clearScaleData(e)):-1==this.step&&(e.status=Ht["g"].Normal)},changeText:function(e,t){this.$refs.setScaleDialog.showDialog(e)},scaleTextChange:function(e){e>0&&(this.nextStepBtnDisable=!1)},changeFloor:function(e){this.removeLast(),this.loadOtherImg(e)},loadOtherImg:function(e){if(e.infos&&e.infos.floorMap){var t=this.modelId.split(".");if(t[1]&&("png"==t[1].toLowerCase()||"jpg"==t[1].toLowerCase())){var a=this.imgService+e.infos.floorMap;if(this.curImgItem=new Kt["SImageItem"](null,a),this.curImgItem.enabled=!1,this.curImgItem.showType=Ht["f"].AutoFit,e.properties)try{var i=JSON.parse(e.infos.floorMapShift),n=this.$refs.drawFloor.scaleItem;this.curImgItem.zOrder=n.zOrder-1;var r=this.calScaleGap(e.properties,n);1!=r&&this.$message.warning("比例尺相差较大,可以返回上一步修改比例尺"),this.curImgItem.showType,Ht["f"].Full,this.curImgItem.moveTo(i.x,i.y)}catch(o){console.log(o)}this.$refs.drawFloor.drawMainScene.addItem(this.curImgItem),this.$refs.drawFloor.fit()}}},removeLast:function(){this.curImgItem&&(this.$refs.drawFloor.drawMainScene.removeItem(this.curImgItem),this.curImgItem=null,this.$refs.drawFloor.view.update())},clearScaleData:function(e){e.line=[],e.pointChange(),e.text="0 mm"},calScaleGap:function(e,t){var a=1;if(e.line.length&&e.text)try{var i=zl["a"].pointDistance(e.line[0].x,e.line[0].y,e.line[1].x,e.line[1].y),n=e.Text.substring(0,e.text.length-3),r=i/n,o=zl["a"].pointDistance(t.line[0].x,t.line[0].y,t.line[1].x,t.line[1].y),s=t.text.substring(0,t.text.length-3),l=o/s;a=(r/l).toFixed()}catch(c){console.log(c)}return a},repeatHandled:function(e){this.handled=e}},watch:{}},Ul=Vl,Hl=(a("1803"),Object(l["a"])(Ul,ll,cl,!1,null,null,null)),Gl=Hl.exports,Kl=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{overflow:"hidden auto"}},[a("cardList",{attrs:{content:e.content,source:e.source,TableVisibleMoreLoading:e.TableVisibleMoreLoading,computingNum:e.computingNum},on:{calcSpecial:e.calcSpecial,openComputed:e.openComputed,RelationType:e.RelationType,calcSpecialUpdate:e.calcSpecialUpdate}})],1)},Wl=[],Xl=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e._l(e.content,(function(t,i){return a("div",{key:i},[a("p",{staticClass:"slave-relation-title"},[e._v(e._s(t.graphTypeName)+" "),a("span",[e._v("(主要连接对象按照标准字典显示)")])]),e._l(t.childGraphicTypeList,(function(t,i){return a("section",{key:t.graphTypeId,staticClass:"container"},[a("p",{staticClass:"relation-text"},[a("span",{staticClass:"iconfont icon-juxing"}),a("span",{staticStyle:{cursor:"pointer"},on:{click:function(a){return e.toDetail(t)}}},[e._v(" "+e._s(t.graphTypeName)+" "),a("i",{staticClass:"icon-zuzhiguanxi iconfont"})]),a("span",{staticClass:"pic-code"},[e._v("图类型编码:"+e._s(t.graphTypeCode))]),t.Note?a("el-tooltip",{attrs:{content:t.Note,placement:"top"}},[a("i",{staticClass:"icon-shuoming iconfont",on:{click:e.explain}})]):e._e()],1),a("el-row",{attrs:{gutter:24}},e._l(t.relationTypeProjectList,(function(t,i){return a("el-col",{key:t.Id,attrs:{span:8}},[a("el-card",{staticClass:"card ",staticStyle:{position:"relative"},attrs:{shadow:"hover"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:3===t.computationalState,expression:"relation.computationalState === 3 "}],staticClass:"mask"}),a("div",{staticStyle:{overflow:"hidden"}},[a("el-tooltip",{attrs:{content:t.relationTypeName,placement:"top"}},[a("p",{staticClass:"relation-title reset-test reset-title"},[e._v(e._s(t.relationTypeName))])]),a("el-tooltip",{attrs:{content:t.relationTypeCode,placement:"top"}},[a("p",{staticClass:"asc reset-title reset-test"},[e._v("边类型编码:"+e._s(t.relationTypeCode))])]),a("p",{staticClass:"relation-title-icon reset-test fr"},[t.note?a("el-tooltip",{staticStyle:{"z-index":"3",position:"relative"},attrs:{content:t.note,placement:"top"}},[a("i",{staticClass:"iconfont icon-warn icon"})]):e._e()],1)],1),a("article",[a("el-row",[a("el-col",{attrs:{span:13}},[a("div",{staticClass:"grid-content"},[a("p",{staticClass:"object"},[e._v("主要连接对象")]),a("el-tooltip",{attrs:{content:t.conneObject,placement:"top"}},[a("p",{staticClass:"group reset-title"},[e._v(e._s(t.conneObject))])])],1)]),a("el-col",{attrs:{span:2}},[a("div",{staticClass:"grid-content"},[a("p",{staticClass:"thread"})])]),a("el-col",{attrs:{span:9}},[a("div",{staticClass:"grid-content "},[a("p",{staticClass:"line-number"},[e._v("连接数量")]),a("p",{class:t.count>0?"line-number-show":"line-number-hide"},[e._v(e._s(t.count))])])])],1),a("p",{staticClass:"last-computed"},[a("span",{directives:[{name:"show",rawName:"v-show",value:3===t.computationalState,expression:"relation.computationalState === 3"}]},[e._v("关系计算中...")]),a("span",{directives:[{name:"show",rawName:"v-show",value:5===t.computationalState,expression:"relation.computationalState === 5"}]},[e._v("计算失败")]),a("span",{directives:[{name:"show",rawName:"v-show",value:3!==t.computationalState&&t.computingTime,expression:"relation.computationalState !== 3 && relation.computingTime"}]},[e._v("最后一次计算时间 "+e._s(t.computingTime))]),a("el-tooltip",{attrs:{content:2===t.computationalState?"关系变更,请重新计算":"启动计算",placement:"top"}},[a("el-badge",{staticClass:"item float-right",attrs:{"is-dot":2===t.computationalState||5===t.computationalState}},[a("el-button",{staticClass:"sm-button",attrs:{disabled:!t.source&&!t.automatic,circle:"",type:"primary",plain:"",icon:"iconfont icon-changyongtubiao-mianxing-"},on:{click:function(a){return e.computed(t)}}})],1)],1),a("el-tooltip",{attrs:{content:"手动编辑",placement:"top"}},[a("el-button",{staticClass:"float-right sm-button",style:{border:1===t.manual?"1px solid #DCDFE6":""},attrs:{disabled:1===t.manual,circle:"",type:"primary",plain:"",icon:"iconfont icon-bianji"},on:{click:function(a){return e.manual(t)}}})],1),t.source?a("el-tooltip",{attrs:{content:"设定设备对象源/末端",placement:"top"}},[a("el-button",{staticClass:"float-right sm-button",staticStyle:{transform:"rotate(90deg)"},attrs:{type:"primary",plain:"",circle:"",icon:"iconfont icon-23 "},on:{click:function(a){return e.equipment(t)}}})],1):e._e()],1)],1)])],1)})),1)],1)}))],2)})),a("RelationMaintain",{ref:"maintain",attrs:{values:e.values,source:e.source,isComputed:e.isComputed,ManualMaintenance:e.ManualMaintenance,TableVisibleMoreLoading:e.TableVisibleMoreLoading},on:{openComputed:e.openComputed,RelationType:e.RelationType,calcSpecialUpdate:e.calcSpecialUpdate}})],2)},Yl=[],Jl=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"relation-maintain"},[a("el-dialog",{attrs:{title:e.values.title,visible:e.dialogTableVisible},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[a("span",{staticClass:"font-big"},[e._v(e._s(e.values.autoComputed))]),a("footer",{staticClass:"dialog-footer ",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogTableVisible=!1}}},[e._v(e._s(e.values.cancel))]),a("el-button",{attrs:{type:"primary"},on:{click:e.promptly}},[e._v(e._s(e.values.promptly)+" ")])],1)]),a("el-dialog",{attrs:{title:e.values.title,visible:e.dialogTableVisibleMore},on:{"update:visible":function(t){e.dialogTableVisibleMore=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.TableVisibleMoreLoading,expression:"TableVisibleMoreLoading"}],staticStyle:{overflow:"hidden"}},[a("p",{staticClass:"font-big"},[e._v(e._s(e.values.existComputed))]),a("p",{staticClass:"exist-title"},[e._v(e._s(e.values.existTitle))]),a("el-row",{staticStyle:{"margin-bottom":"20px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("p",[e._v("源端设备类:")]),a("el-select",{attrs:{placeholder:"请选择",props:e.props,multiple:"",disabled:""},model:{value:e.setValue,callback:function(t){e.setValue=t},expression:"setValue"}},e._l(e.setOriginOption,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value,disabled:""}})})),1)],1),a("el-col",{attrs:{span:12}},[a("p",[e._v("末端设备类:")]),a("el-select",{attrs:{placeholder:"请选择",props:e.props},model:{value:e.setEndValue,callback:function(t){e.setEndValue=t},expression:"setEndValue"}},e._l(e.setEndOptions,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value,disabled:""}})})),1)],1)],1),a("footer",{staticClass:"dialog-footer ",staticStyle:{float:"right"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogTableVisibleMore=!1}}},[e._v(e._s(e.values.cancel))]),a("el-button",{attrs:{type:"primary"},on:{click:e.computedUpdate}},[e._v(e._s(e.values.promptly)+" ")])],1)],1)]),a("el-dialog",{attrs:{title:e.values.title,visible:e.dialogEquipment},on:{"update:visible":function(t){e.dialogEquipment=t}}},[a("h4",[e._v(e._s(e.values.equipmentSetting))]),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("p",[e._v("源端设备类:")]),a("el-tooltip",{attrs:{placement:"top",disabled:!e.sourceSideList.length}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("ul",e._l(e.sourceSideList,(function(t){return a("li",{key:t.sourceType},[e._v(" "+e._s((e.oraginOption.find((function(e){return e.value===t.sourceType}))?e.oraginOption.find((function(e){return e.value===t.sourceType})).label:"")+":"+t.sourceCount+"个")+" ")])})),0)]),a("el-select",{attrs:{placeholder:"请选择",multiple:""},on:{change:e.changeVal},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.oraginOption,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("p",[e._v("末端设备类:")]),a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.endValue,callback:function(t){e.endValue=t},expression:"endValue"}},e._l(e.endOption,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value,disabled:""}})})),1)],1)],1),a("footer",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogEquipment=!1}}},[e._v(e._s(e.values.cancel))]),a("el-button",{attrs:{type:"primary",disabled:e.disabled},on:{click:e.handleAddSource}},[e._v(e._s(e.values.preservation)+" ")])],1)],1),a("el-dialog",{attrs:{title:e.values.title,visible:e.dialogManualTip},on:{"update:visible":function(t){e.dialogManualTip=t}}},[a("p",{staticClass:"font-big"},[e._v(e._s(e.values.tips))]),e._l(e.values.device,(function(t){return a("p",{staticClass:"font-big"},[e._v(e._s(t))])})),a("footer",{staticClass:"dialog-footer ",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogManualTip=!1}}},[e._v(e._s(e.values.confirm)+" ")])],1)],2),a("el-dialog",{attrs:{title:e.values.title,visible:e.dialogManualOption},on:{"update:visible":function(t){e.dialogManualOption=t}}},[a("p",{staticClass:"option-tip"},[e._v(e._s(e.values.optionTips))]),a("el-row",{attrs:{span:24}},[a("el-col",{attrs:{span:8}},[a("p",[a("i",{staticClass:"iconfont icon-doc-line"}),e._v(" "+e._s(e.values.currentNum)+" 0 ")]),a("a",{attrs:{href:e.downloadProject("excel")}},[a("el-button",{staticClass:"mt-10",attrs:{type:"primary"}},[e._v(" "+e._s(e.values.download)+" ")])],1)]),a("el-col",{attrs:{span:10}},[e._v(" "+e._s(e.values.lastTime)+" ")])],1),a("el-upload",{staticClass:"upload-demo",attrs:{drag:"",action:""+e.baseUrl+e.dataCenter+"/graphic/import",multiple:"","show-file-list":!1,name:"file",headers:e.headers,data:e.dataId,"on-progress":e.progress,"on-success":e.success,"on-error":e.error,accept:"xlsx,xls"}},[a("i",{staticClass:"el-icon-upload"}),a("div",{staticClass:"el-upload__text",domProps:{innerHTML:e._s(e.values.uploadTxt)}}),a("div",{staticClass:"upload__tip danger",attrs:{slot:"tip"},slot:"tip"},[e._v(e._s(e.values.uploadTips))])])],1),a("el-dialog",{attrs:{title:e.values.title,visible:e.dialogProcess},on:{"update:visible":function(t){e.dialogProcess=t}}},[a("div",{staticClass:"block"},[a("el-timeline",e._l(e.activities,(function(t,i){return a("el-timeline-item",{key:i,attrs:{icon:t.icon,type:t.type,color:t.color,size:t.size}},[e._v(" "+e._s(t.content)+" ")])})),1)],1),a("a",{attrs:{href:e.downloadProject("report")}},[a("el-button",[e._v(e._s(e.values.downloadFile))])],1),a("footer",{staticClass:"dialog-footer ",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.errBack}},[e._v(e._s(e.values.back))]),a("el-button",{attrs:{type:"primary"},on:{click:e.finish}},[e._v(e._s(e.values.done)+" ")])],1)])],1)},Ql=[],Zl={"空调冷冻水供水":"ACCCCC-离心式冷水机组-true,ACCCAC-吸收式冷水机组-true,ACCCSC-螺杆式冷水机组-true,ACCCGH-地源热泵-true,ACCCWH-水源热泵-true,ACCCAH-空气源热泵-true,ACCCCP-供冷冷冻水泵,ACATFC-风机盘管,ACATAH-空调机组,ACATFU-新风机组,ACCCHE-供冷换热器,ACCHVD-真空脱气机,ACCCAD-供冷软化水装置,ACCCCL-供冷集水器,ACCCDB-供冷分水器","空调冷冻水回水":"ACCCCC-离心式冷水机组-true,ACCCAC-吸收式冷水机组,ACCCSC-螺杆式冷水机组,ACCCGH-地源热泵,ACCCWH-水源热泵,ACCCAH-空气源热泵,ACCCCP-供冷冷冻水泵,ACATFC-风机盘管-true,ACATAH-空调机组-true,ACATFU-新风机组-true,ACCCHE-供冷换热器-true,ACCCAD-供冷软化水装置,ACCCCL-供冷集水器,ACCCDB-供冷分水器,ACCHVD-真空脱气机","采暖水供水":"ACCHCB-供热燃煤锅炉-true,ACCHHE-供热换热器-true,ACCHGB-供热燃气锅炉-true,ACCHEB-供热电锅炉-true,ACCCGH-地源热泵-true,ACCCWH-水源热泵-true,ACCCAH-空气源热泵-true,ACCHHP-供热水泵,ACCHDB-供热分水器,ACCHCL-供热集水器,ACCHCF-供热定压补水装置,ACATFC-风机盘管,ACATAH-空调机组,ACATFU-新风机组,ACCHTU-供热全程水处理仪,ACCHHE-供热换热器,ACCHWT-供热水箱,ACATRD-散热器","采暖水回水":"ACCHCB-供热燃煤锅炉,ACCHHE-供热换热器-true,ACCHGB-供热燃气锅炉,ACCHEB-供热电锅炉,ACCCGH-地源热泵,ACCCWH-水源热泵,ACCCAH-空气源热泵,ACCHHP-供热水泵,ACCHDB-供热分水器,ACCHCL-供热集水器,ACCHCF-供热定压补水装置,ACATFC-风机盘管-true,ACATAH-空调机组-true,ACATFU-新风机组-true,ACCHTU-供热全程水处理仪,ACCHHE-供热换热器,ACCHWT-供热水箱,ACATRD-散热器-true","空调冷却水供水":"ACCCCC-离心式冷水机组-true,ACCCAC-吸收式冷水机组-true,ACCCSC-螺杆式冷水机组-true,ACCCGH-地源热泵-true,ACCCWH-水源热泵-true,ACCCAH-空气源热泵,ACCCOT-冷却塔,ACCCOP-冷却水","空调冷却水回水":"ACCCCC-离心式冷水机组,true,ACCCAC-吸收式冷水机组,ACCCSC-螺杆式冷水机组,ACCCGH-地源热泵,ACCCWH-水源热泵,ACCCAH-空气源热泵,ACCCOT-冷却塔-true,ACCCOP-冷却水泵","空调冷凝水排水":"ACATFC-风机盘管-true,ACATAH-空调机组-true,ACATVR-变频多联机-true,ACATVI-室内机-true,ACATVO-室外机","采暖水补水":"ACCHCB-供热燃煤锅炉,ACCHHE-供热换热器-true,ACCHGB-供热燃气锅炉,ACCHEB-供热电锅炉,ACCCGH-地源热泵,ACCCWH-水源热泵,ACCCAH-空气源热泵,ACCHHP-供热水泵,ACCHDB-供热分水器,ACCHCL-供热集水器,ACCHCF-供热定压补水装置,ACATAH-空调机组,ACATFU-新风机组,ACCHTU-供热全程水处理仪,ACCHHE-供热换热器,ACCHWT-供热水箱,ACATFC-风机盘管,ACATAH-空调机组,ACATFU-新风机组,ACATRD-散热器","多联机供回制冷剂":"ACATVR-变频多联机-true,ACATVI-室内机-true,ACATVO-室外机-true","通风送风":"ACVTSF-送风风机,ACATVA-VAVBOX ,ACATIO-空调风口,CAVTIO-通风风口-true,ACSCEF-排烟风机,ACSCIO-排烟风口,ACSCEF-正压送风风机","空调送风":"ACATVA-VAVBOX ,ACATFC-风机盘管,ACATIO-空调风口-true","空调排风":"ACATAH-空调机组,ACATIO-空调风口-true,ACVTSF-排风风机,ACSCEF-排烟风机,ACVTIO-通风风口,ACSCIO-排烟风口-true,ACKLSF-抽油烟机,ACKLIO-厨房风口-true","新风送风":"ACATFU-新风机组,ACATAH-空调机组,ACVTSF-新风机,ACATIO-空调风口-true","消防排烟":"ACSCEF-排烟风机,ACSCIO-排烟风口-true","通风排风":"ACVTSF-排风风机,ACVTIO-通风风口-true","空调回风":"ACATFC-风机盘管,ACATAH-空调机组,ACATIO-空调风口-true","生活给水供水":"WSDWPP-给水水泵,WSDWSU-生活给水供水机组-true,OTSEFL-水表,WSDWWT-水箱,WSDWPT-生活给水压力罐,ACCCOT-冷却塔","生活热水供水":"WSDHWT-生活热水储水箱,WSDHSC-生活热水太阳能集热器-true,OTSEFL-水表,WSDHHE-生活热水换热器-true","污水排水":"WSSTSP-潜污泵-true,WSSTOS-自动隔油装置-true","中水供水":"WSRWWT-中水储水箱,WSRWTU-中水处理机组-true,WSRWSU-中水供水机组,WSRWRC-雨水收集设备","直饮水供水":"WSDDTU-直饮水处理机组-true,WSDDIH-即时加热器","消防给水供水":"FFFSHP-消火栓供水加压水泵-true,FFFSPS-消防稳压装置-true,FFFSHB-消火栓箱-true,FFFSWM-消防水炮设备-true"},ec=new Object,tc=function(e){if(Zl.hasOwnProperty(e)){var t=Zl[e];ec[e]=new Array;var a=t.split(/[,,]/);a.forEach((function(t){var a=t.split("-"),i=Object(Oe["a"])(a,3),n=i[0],r=i[1],o=i[2];ec[e].push({label:r,value:n,select:o})}))}};for(var ac in Zl)tc(ac);var ic=ec,nc=a("20e8"),rc=a("26dd"),oc=a.n(rc),sc=oc.a.addSource,lc=oc.a.sourceQuery,cc={name:"RelationMaintain",props:["values","isComputed","source","TableVisibleMoreLoading","ManualMaintenance"],created:function(){},mounted:function(){},data:function(){return{dialogTableVisible:!1,dialogTableVisibleMore:!1,dialogEquipment:!1,dialogManualTip:!1,dialogManualOption:!1,dialogProcess:!1,originEquipment:[],endEquipment:[],props:{multiple:!0,label:"FamilyName",value:"lId",children:"Items"},activities:[{content:"数据文件处理中..",size:"large",type:"primary",icon:"el-icon-check",color:"#0bbd87"},{content:"数据处理成功",color:"#0bbd87",icon:"el-icon-check",size:"large",type:"primary"}],vals:[],val:[],idArr:[],secondary:[],list:[],resultOrigin:[],resultEnd:[],ops:[],filterOps:[],isResouceShow:0,RelationTypeName:"",value:[],oraginOption:[],endValue:[],endOption:[],setValue:[],setOriginOption:[],setEndValue:[],setEndOptions:[],sourceSideList:[],disabled:!1,baseUrl:nc["baseUrl"],dataCenter:nc["dataCenter"]}},computed:Object(v["a"])(Object(v["a"])({},Object(y["b"])("layout",["projectId"])),{},{headers:function(){return{projectId:this.projectId,Comming:"adm",Account:tn.a.get("user_name")}},dataId:function(){return{relType:this.ManualMaintenance.RelationType||"",zoneType:this.ManualMaintenance.ZoneType||"",projectId:this.projectId}},disOptions:function(){var e=this,t=this.list.length&&this.deepCopy(this.list).map((function(t){return t.Items.length&&t.Items.map((function(t){return e.idArr.includes(t.lId)&&(t.disabled=!0),t})),t}));return this.filterOps=t,t}}),methods:{deepCopy:function(e){return JSON.parse(JSON.stringify(e))},handleSourceQuery:function(){var e=this,t={calcName:this.RelationTypeName};lc(t,(function(t){e.value=[],e.setValue=[],e.sourceSideList=t.content?t.content:[],t.content&&t.content.forEach((function(t){var a=t.sourceType;return a&&e.value.push(a)})),t.content&&t.content.forEach((function(t){var a=t.sourceType;return a&&e.setValue.push(a)})),e.changeVal(e.value),e.setValue&&e.handleSetValue()}))},dialogEquipmentOpen:function(e){this.RelationTypeName=e.relationTypeName,this.oraginOption=ic[e.relationTypeName]&&ic[e.relationTypeName].filter((function(e){return e.select})),this.data=ic[e.relationTypeName],this.disabled=void 0==this.data,this.dialogEquipment=!0},changeVal:function(e){var t=this;this.endOption=this.data&&this.data.filter((function(t){return!e.includes(t.value)})),this.sourceList=[],e.forEach((function(e){return t.sourceList.push({sourceType:e,projectId:t.projectId,calcName:t.RelationTypeName})}))},handleAddSource:function(){var e=this,t={};t=this.sourceList.length?{content:this.sourceList}:{content:[{projectId:this.projectId,calcName:this.RelationTypeName}]},sc(t,(function(t){e.$message.success("保存成功")})),this.dialogEquipment=!1},showCascader:function(e){this.RelationTypeName=e.relationTypeName},handleSetValue:function(){var e=this,t=ic[this.RelationTypeName];this.setOriginOption=t&&t.filter((function(t){return e.setValue.includes(t.value)})),this.setEndOptions=t&&t.filter((function(t){return!e.setValue.includes(t.value)}))},downloadProject:function(e){var t,a=this.ManualMaintenance.RelationType?"&relType=".concat(this.ManualMaintenance.RelationType):"",i=this.ManualMaintenance.ZoneType?"&zoneType=".concat(this.ManualMaintenance.ZoneType):null;return"excel"===e?(a=this.ManualMaintenance.RelationType?"&relType=".concat(this.ManualMaintenance.RelationType):"",t=i?"".concat(nc["baseUrl"]).concat(nc["dataCenter"],"/graphic/export?projectId=").concat(this.projectId).concat(a).concat(i,"&code=对象ID"):"".concat(nc["baseUrl"]).concat(nc["dataCenter"],"/graphic/export?projectId=").concat(this.projectId).concat(a,"&code=对象ID")):t="".concat(nc["baseUrl"]).concat(nc["dataCenter"],"/graphic/report-downloads?projectId=").concat(this.projectId).concat(a).concat(i),t},progress:function(e,t,a){},success:function(e,t,a){this.dialogManualOption=!0,this.dialogProcess=!0},error:function(e,t,a){this.dialogManualOption=!0,this.dialogProcess=!0},errBack:function(){this.dialogProcess=!1},finish:function(){this.dialogProcess=!1,this.dialogManualOption=!1},promptly:function(){this.isComputed.automatic&&!this.isComputed.source&&this.$emit("RelationType",this.isComputed.RelationType,this.isComputed.ZoneType),this.dialogTableVisible=!1},sourceOptions:function(e){var t=this;this.idArr=e.map((function(e){return e[1]})),this.deepCopy(this.list).forEach((function(e){var a;return(a=t.secondary).push.apply(a,Object(wn["a"])(e.Items))}));var a=this.secondary.filter((function(e){return t.idArr.includes(e.lId)}));a.forEach((function(e){var a=e.BlockId,i=e.BuildingId,n=e.Domain,r=e.Id,o=e.MepSystemType,s=e.ProjectId,l=e.Type,c=e.Statistics;t.resultOrigin.push({BlockId:a,BuildingId:i,Domain:n,MepSystemType:o,ProjectId:s,Source:!0,SourceId:r,SourceType:l,Statistics:c})}))},endOptions:function(e){var t=this;this.idArr=e.map((function(e){return e[1]})),this.deepCopy(this.list).forEach((function(e){var a;return(a=t.secondary).push.apply(a,Object(wn["a"])(e.Items))}));var a=this.secondary.filter((function(e){return t.idArr.includes(e.lId)}));a.forEach((function(e){var a=e.BlockId,i=e.BuildingId,n=e.Domain,r=e.Id,o=e.MepSystemType,s=e.ProjectId,l=e.Type,c=e.Statistics;t.resultEnd.push({BlockId:a,BuildingId:i,Domain:n,MepSystemType:o,ProjectId:s,Source:!1,SourceId:r,SourceType:l,Statistics:c})}))},computedUpdate:function(){this.dialogTableVisibleMore=!1;var e={projectId:this.projectId,relationType:this.isComputed.relationType};this.$emit("calcSpecialUpdate",e)}}},uc=cc,dc=(a("8321"),Object(l["a"])(uc,Jl,Ql,!1,null,"0ae53a0d",null)),pc=dc.exports,hc={name:"cardList",props:{content:Array,source:Array,TableVisibleMoreLoading:Boolean,computingNum:Number},data:function(){return{values:{title:"关系维护",cancel:"取消",confirm:"确定",back:"返回",preservation:"保存",promptly:"立即计算",placeholder:"请选择",download:"下载模板(含数据)",done:"完成",underDesign:"高级配置页面正在设计中。。。",autoComputed:"根据现有数据自动计算",existComputed:"根据现有数据自动计算",existTitle:"计算方向使用的源端和末端如下:",originEquipment:"源端设备类:",endEquipment:"末端设备类:",device:"",tips:"",optionTips:"",currentNum:"当前关系数量:",lastTime:"",uploadTxt:"将Excel文件拖到此处,或<em>单击上传Excel文件<em>",uploadTips:"上传的Excel数据将完全覆盖当前关系表(关系表先前数据不会保留)",inHand:"数据文件处理中...",dataFailed:"数据文件验证失败",allUpdateSuccess:"xxxx全部更新成功",portionUpdateSuccess:" xxxx关系部分更新成功",downloadFile:" 下载报告文件",equipmentSetting:""},isComputed:{},ManualMaintenance:{}}},created:function(){},computed:{},methods:{explain:function(){},RelationType:function(){this.$emit("RelationType",this.isComputed.relationType,this.isComputed.zoneType,this.isComputed)},calcSpecialUpdate:function(e){this.$emit("calcSpecialUpdate",e,this.isComputed)},computed:function(e){return this.computingNum>=5?(this.$message.info("当前计算过多,稍等一下"),!1):(this.isComputed=e,e.relationType?(this.$emit("calcSpecial",e),void(e.source?(this.values.existComputed="根据现有数据自动计算 <".concat(e.relationTypeName,">"),this.$refs.maintain.dialogTableVisibleMore=!0,this.$refs.maintain.showCascader(e),this.$refs.maintain.handleSourceQuery()):(this.values.autoComputed="根据现有数据自动计算 <".concat(e.relationTypeName,">"),this.$refs.maintain.dialogTableVisible=!0))):(this.$message.warning("设计中"),!1))},equipment:function(e){this.values.equipmentSetting="".concat(e.relationTypeName," 源末端关系设置"),this.$refs.maintain.dialogEquipmentOpen(e),this.$refs.maintain.handleSourceQuery()},manual:function(e){var t=e.manual,a=e.prompting,i=e.relationTypeName,n=e.computingTime,r=a&&a.split(","),o="请前往以下功能页面维护 <".concat(i,">"),s="请下载当前最新 <".concat(i,"> 数据进行手动维护"),l="最后更新时间为 ".concat(n||"");if(2===t&&(this.values=Object(v["a"])(Object(v["a"])({},this.values),{},{device:r,tips:o}),this.$refs.maintain.dialogManualTip=!0),3===t){if(!e.relationType)return this.$message.warning("设计中"),!1;this.values=Object(v["a"])(Object(v["a"])({},this.values),{},{optionTips:s,lastTime:l}),this.$router.push({path:"relationShip"}),console.log(e,"relation"),localStorage.setItem("RelManualType",e.relManualType),localStorage.setItem("RelationTypeName",e.relationTypeName),localStorage.setItem("RelationType",e.relationType),localStorage.setItem("ZoneType",e.zoneType?e.zoneType:""),localStorage.setItem("MainObject",e.mainObject),localStorage.setItem("FromObject",e.fromObject),localStorage.setItem("count",e.count),localStorage.setItem("ComputingTime",e.computingTime?e.computingTime:"")}this.ManualMaintenance=e},openComputed:function(e){this.$emit("openComputed",e)},toDetail:function(e){}},components:{RelationMaintain:pc}},fc=hc,mc=(a("9824"),Object(l["a"])(fc,Xl,Yl,!1,null,"4373ce57",null)),gc=mc.exports,vc=(oc.a.blockQuery,oc.a.blockSource),yc=oc.a.businessSpaceAll,bc=oc.a.calcSpecial,wc=oc.a.graphic,Cc=oc.a.graphicNumber,Ic=oc.a.sysDirection,xc={data:function(){return{content:[],countNumber:[],loading:!1,source:[],currentRelationTypeName:"",TableVisibleMoreLoading:!1,computingNum:0}},created:function(){this.computingNum=0,this.init()},watch:{projectId:function(){this.init()}},computed:Object(v["a"])({},Object(y["b"])("layout",["projectId"])),mounted:function(){},components:{CardList:gc},methods:{init:function(){var e=this;this.loading=!0;var t={projectId:this.projectId},a=new Promise((function(e,a){wc(t,(function(t){e(t)}))})),i=new Promise((function(e,a){Cc(t,(function(t){e(t)}))}));Promise.all([a,i]).then((function(t){e.countNumber=t[1].content,e.content=t[0].content,e.transform(e.content,e.countNumber),e.loading=!1}))},updateState:function(){var e=this;this.loading=!0;var t={projectId:this.projectId};wc(t,(function(t){"success"===t.result?(e.content=t.content,e.transform(e.content,e.countNumber),e.loading=!1):(e.$message.error(t.message),e.loading=!1)}))},transform:function(e,t){var a={};t.forEach((function(e){a[e.graphTypeName]=a[e.graphTypeName]||{};var t=e.relationTypeProjectList;t.forEach((function(t){a[e.graphTypeName][t.id]=t.count}))}));var i=[];e.forEach((function(e){e.childGraphicTypeList&&i.push.apply(i,Object(wn["a"])(e.childGraphicTypeList))})),i.length&&i.forEach((function(e){var t=e.graphTypeName,i=e.relationTypeProjectList;i.forEach((function(e){e.count=a[t][e.id]}))}))},RelationType:function(e,t,a){var i=this,n={relation_type:e,zone_type:t,proId:{projectId:this.projectId}};this.computingNum++,yc(n).then((function(e){i.computingNum--,e.result!=p["logicConfig"].resultObj.success&&i.$message({message:"计算失败",type:"error"}),i.init()})).catch((function(e){console.log({err:e})})),a.computationalState=3,setTimeout((function(){i.updateState()}))},calcSpecialUpdate:function(e,t){var a=this;this.computingNum++,bc(e,(function(e){a.computingNum--,"failure"===e.result&&a.$message.success("计算失败"),a.init()})),t.computationalState=3,setTimeout((function(){a.updateState()}))},statusCard:function(){},calcSpecial:function(e){this.currentRelationTypeName=e.RelationTypeName},openComputed:function(e){var t=this,a={domain:"DomainPiping",mepSystemType:"冷冻水供水管",projectId:this.projectId,sourceList:e};vc(a,(function(a){e.forEach((function(e){var a=e.blockId,i=e.buildingId,n=e.domain,r=e.source;t.DataSorting(a,i,n,r)}))}))},DataSorting:function(e,t,a,i){var n=this,r={blockId:e,domain:a,source:i,buildingId:t,systemName:this.currentRelationTypeName};Ic(r,(function(e){n.init()}))}}},Sc=xc,kc=Object(l["a"])(Sc,Kl,Wl,!1,null,"cc35322e",null),_c=kc.exports,Dc=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"contentContainer"},[a("el-row",{staticClass:"h100"},[a("el-col",{staticClass:"h100",attrs:{span:4}},[a("div",{staticClass:"grid-content bg-purple bg h100",staticStyle:{"overflow-y":"scroll"}},[a("Tree",{attrs:{data:e.options},on:{change:e.selectFloorHandle}})],1)]),a("el-col",{staticClass:"h100",staticStyle:{"padding-left":"24px"},attrs:{span:20}},[a("div",{staticClass:"grid-content bg-purple-light tab-right bg h100",staticStyle:{padding:"0 16px 16px"}},[a("div",{staticClass:"tab_warp"},[a("Tabs",{attrs:{type:"first-nav",data:e.MENU_MAP},model:{value:e.currentTab,callback:function(t){e.currentTab=t},expression:"currentTab"}})],1),a("div",[a("div",{staticStyle:{display:"flex","justify-content":"space-between","margin-top":"24px"}},[a("h3",[e._v("图纸文件列表")]),a("div",[a("Button",{attrs:{type:"primary",disabled:!0,icon:"el-icon-download"}},[e._v("批量导出")]),a("el-upload",{ref:"upload",staticClass:"upload",attrs:{multiple:!0,action:"https://jsonplaceholder.typicode.com/posts/","file-list":e.fileList,"show-file-list":!1,"on-change":e.fileChange,"on-progress":e.progressHandle,"auto-upload":!1}},[a("Button",{attrs:{slot:"trigger",type:"primary",icon:"el-icon-download"},slot:"trigger"},[e._v("上传.dwg CAD文件")])],1)],1)]),a("div",{staticClass:"tableView1"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableLoading,expression:"tableLoading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableList,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{label:"文件名称",prop:"fileName"}}),a("el-table-column",{attrs:{label:"最新上传时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.modifiedTime))]}}])}),a("el-table-column",{attrs:{prop:"creator",label:"上传人"}}),a("el-table-column",{attrs:{fixed:"right",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.delHandle(t.row)}}},[e._v("删除")]),a("el-divider",{attrs:{direction:"vertical"}}),a("el-button",{attrs:{type:"text",size:"small",disabled:""}},[e._v("导出")])]}}])})],1)],1)])])])],1)],1)},jc=[],Tc=(a("b6f8"),a("6f25"),a("776f")),Ac=a.n(Tc),Nc=(a("2bef"),a("10b8")),Pc=a.n(Nc),Oc=(a("48e1"),a("b0e7")),Rc=a.n(Oc),Fc=[{name:"土建精装",id:"id1"},{name:"空调专业",id:"id2"},{name:"消防专业",id:"id3"},{name:"给排水专业",id:"id4"}],Mc=a("86ce"),Ec=a.n(Mc),Lc={components:{Tree:Rc.a,Tabs:Pc.a,Button:Ac.a},watch:{currentTab:function(e,t){console.log({nv:e,ov:t})}},data:function(){return{currentTab:"id1",MENU_MAP:Fc,options:[],tableList:[],tableLoading:!1,fileList:[],headList:[{title:"文件名称",key:"state",show:!0},{title:"最新上传时间",key:"name",show:!0,width:300},{title:"上传人",key:"job",show:!0}]}},methods:{getCascader:function(){var e=this;return Object(W["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={cascade:[{name:"floor",orders:"floorSequenceID desc",filters:"id != '".concat(e.floorId,"'")}],pageNumber:1,pageSize:50},t.next=3,Ue.a.buildDataFormat(a);case 3:e.options=t.sent;case 4:case"end":return t.stop()}}),t)})))()},selectFloorHandle:function(e){console.log({id:e})},getFileList:function(){var e=this;return Object(W["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.tableLoading=!0,t.next=3,Ec.a.queryFileList();case 3:e.tableList=t.sent,e.tableLoading=!1,console.log({res:res});case 6:case"end":return t.stop()}}),t)})))()},fileChange:function(e,t){console.log({file:e,fileList:t})},progressHandle:function(e,t,a){console.log({file:t,fileList:a})},delHandle:function(e){var t=this;this.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(W["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.tableLoading=!0,a.next=3,Ec.a.delFile(e);case 3:t.tableLoading=!1,t.getFileList(),t.$message({type:"success",message:"删除成功!"});case 6:case"end":return a.stop()}}),a)})))).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}},mounted:function(){this.getCascader(),this.getFileList()}},$c=Lc,qc=(a("074f"),Object(l["a"])($c,Dc,jc,!1,null,"17b85403",null)),Bc=qc.exports,zc=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container"},[a("div",{staticClass:"left"},[a("Anchor")],1),a("div",{staticClass:"right"},[a("Basic",{attrs:{name:"基本信息"}}),a("Geo"),a("Project"),a("Business")],1)])},Vc=[],Uc=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",e._l(e.points,(function(t){return a("div",{key:t.value,on:{click:function(a){return e.go(t.value)}}},[e._v(e._s(t.label))])})),0)},Hc=[],Gc={data:function(){return{points:[{label:"基本信息",value:"basic"},{label:"地理信息",value:"geo"},{label:"项目信息",value:"project"},{label:"商业信息",value:"business"}]}},methods:{go:function(e){this.$emit("goAnchor",e)}}},Kc=Gc,Wc=Object(l["a"])(Kc,Uc,Hc,!1,null,"288ddba4",null),Xc=Wc.exports,Yc=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"basic-container"},[a("Title",{attrs:{name:e.name}}),a("div",{staticClass:"basic-content"},[a("div",{staticClass:"basic-line"},[e._v(" 项目ID:"),a("span",[e._v(e._s("XXXXXXXXX"))])]),a("div",{staticClass:"basic-line"},[e._v(" 项目本地名称:"),a("span",[e._v(e._s("XXXXXXXXX"))])])])],1)},Jc=[],Qc=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"name"},[e._v(e._s(e.name))])},Zc=[],eu={props:{name:{type:String,default:""}}},tu=eu,au=(a("1848"),Object(l["a"])(tu,Qc,Zc,!1,null,"8c45be0e",null)),iu=au.exports,nu={components:{Title:iu},props:{name:{type:String,default:""}}},ru=nu,ou=(a("51a4"),Object(l["a"])(ru,Yc,Jc,!1,null,"10cfdf14",null)),su=ou.exports,lu=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"geo-container"},[a("Title",{attrs:{name:"地理信息"}}),a("div",{staticClass:"geo-content"},[a("div",{attrs:{id:"map-container"}}),a("div",{staticClass:"map-search-input"},[a("el-input",{attrs:{id:"tipinput",placeholder:"搜索"},model:{value:e.inputVal2,callback:function(t){e.inputVal2=t},expression:"inputVal2"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),a("div",{staticClass:"form-content"},[a("FormItem",{attrs:{label:"省市区县",initValue:e.geoFormData.district}}),a("FormItem",{attrs:{label:"详细地址",initValue:e.geoFormData.address}}),a("el-row",[a("el-col",{attrs:{span:12}},[a("FormItem",{attrs:{label:"经度",initValue:e.geoFormData.lng,formType:"input-unit",unit:"度"}})],1),a("el-col",{attrs:{span:12}},[a("FormItem",{attrs:{label:"纬度",initValue:e.geoFormData.lat,formType:"input-unit",unit:"度"}})],1)],1),a("FormItem",{attrs:{label:"抗震设防烈度",initValue:e.geoFormData.level,formType:"select"}})],1)])],1)},cu=[],uu=a("862d"),du=a.n(uu),pu=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"formitem"},[a("div",{staticClass:"label",style:{width:e.labelWidth+"px"}},[e._v(" "+e._s(e.label)+" "),e.showPop?a("Popover",{attrs:{type:"base",placement:"top-left"},scopedSlots:e._u([{key:"content",fn:function(){return[a("article",[e._v(" "+e._s(e.popText)+" ")])]},proxy:!0}],null,!1,3806895160)},[a("Icon",{staticClass:"icon",attrs:{name:"tagError"}})],1):e._e(),e._v(" : ")],1),"input"===e.formType?a("Input",{attrs:{placeholder:e.placeholder},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}):e._e(),"input-unit"===e.formType?a("Input",{attrs:{placeholder:e.placeholder,"right-button":[{id:"1",name:e.unit,checked:"checked"}]},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}):e._e(),"select"===e.formType?a("MSelect",{attrs:{width:"180",data:e.selectData},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}):e._e(),"upload"===e.formType?a("section",{staticClass:"list"},[a("ImageUpload",{attrs:{hosts:"http://47.95.122.141:8209/domita/backend",action:"/base/attachment/uploadX",defaultFileList:e.value,previewMode:!1,multiple:!0}})],1):e._e(),"textarea"===e.formType?a("Input",{attrs:{type:"textarea",rows:6,autofocus:!1,"max-length":10},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}):e._e()],1)},hu=[],fu={props:{label:String,formType:{type:String,default:"input"},initValue:[String,Number,Array,Object],placeholder:"请输入",labelWidth:{type:Number,default:100},unit:String,selectData:{type:Array,default:function(){return[]}},showPop:{type:Boolean,default:!1},popText:String},data:function(){return{value:this.initValue}},watch:{initValue:function(e,t){e!==t&&(this.value=e)}}},mu=fu,gu=(a("6665"),Object(l["a"])(mu,pu,hu,!1,null,"3e34d378",null)),vu=gu.exports,yu={components:{Title:iu,FormItem:vu},data:function(){return{map:null,inputVal2:"",autocomplete:null,markers:[],geoFormData:{district:"",address:"",lng:"",lat:"",level:null}}},mounted:function(){this.initMap()},methods:{initMap:function(){var e=this;du.a.load({key:window.__systemConf.mapKey,version:"2.0",plugins:[]}).then((function(t){e.map=new t.Map("map-container",{zoom:11,resizeEnable:!0}),t.plugin(["AMap.PlaceSearch","AMap.AutoComplete"],(function(){var a={input:"tipinput"};e.autocomplete=new t.Autocomplete(a),e.autocomplete.on("select",(function(a){console.log(a);var i=a.poi.location;if(i){e.setLocation(i),e.addMarker(t,i,a.poi.name);var n=a.poi,r=n.district,o=n.address;e.geoFormData.district=r,e.geoFormData.address=o,e.geoFormData.lng=i.lng.toString(),e.geoFormData.lat=i.lat.toString(),e.geoFormData.level=null}}))}))}))},getDicData:function(){},setLocation:function(e){e&&this.map.setCenter([e.lng,e.lat],!0)},addMarker:function(e,t,a){this.clearMarker();var i=new e.Marker({position:[t.lng,t.lat],title:a});i.setLabel({offset:new AMap.Pixel(0,0),content:"<div class='info'>".concat(a,"</div>"),direction:"right"}),this.markers.push(i),this.map.add(i)},clearMarker:function(){var e=this;this.markers.forEach((function(t){return e.map.remove(t)}))}}},bu=yu,wu=(a("4f56"),Object(l["a"])(bu,lu,cu,!1,null,"99ac7a5e",null)),Cu=wu.exports,Iu=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"project-container"},[a("Title",{attrs:{name:"项目信息"}}),a("div",{staticClass:"form-content"},[a("el-row",[a("el-col",{attrs:{span:12}},[a("FormItem",{attrs:{label:"总建筑面积",initValue:e.formData.buildArea,formType:"input-unit",unit:"m²",showPop:!0,popText:"各建筑“建筑面积”之和"}})],1),a("el-col",{attrs:{span:12}},[a("FormItem",{attrs:{label:"占地面积",initValue:e.formData.coverArea,formType:"input-unit",unit:"m²",showPop:!0,popText:"红线面积"}})],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("FormItem",{attrs:{label:"项目高度",initValue:e.formData.height,formType:"input-unit",unit:"m²"}})],1),a("el-col",{attrs:{span:12}},[a("FormItem",{attrs:{label:"耐火等级",initValue:e.formData.level,formType:"select",showPop:!0}})],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("FormItem",{attrs:{label:"项目功能类型",initValue:e.formData.type,formType:"select"}})],1),a("el-col",{attrs:{span:12}},[a("FormItem",{attrs:{label:"地下楼层数",initValue:e.formData.floor,formType:"input-unit",unit:"层"}})],1)],1),a("FormItem",{attrs:{label:"项目Logo",initValue:e.formData.logos,formType:"upload"}}),a("FormItem",{attrs:{label:"区位图(城市)",initValue:e.formData.citys,formType:"upload"}}),a("FormItem",{attrs:{label:"项目简介",initValue:e.formData.desc,formType:"textarea"}})],1)],1)},xu=[],Su={components:{Title:iu,FormItem:vu},data:function(){return{formData:{buildArea:"",coverArea:"",height:"",level:"",type:"",floor:"",logos:[],citys:[],desc:""}}}},ku=Su,_u=Object(l["a"])(ku,Iu,xu,!1,null,"c67f14ae",null),Du=_u.exports,ju=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"business-container"},[a("Title",{attrs:{name:"商业信息"}})],1)},Tu=[],Au={components:{Title:iu}},Nu=Au,Pu=Object(l["a"])(Nu,ju,Tu,!1,null,"7528487c",null),Ou=Pu.exports,Ru={components:{Anchor:Xc,Basic:su,Geo:Cu,Project:Du,Business:Ou},mounted:function(){},methods:{}},Fu=Ru,Mu=(a("7f2f"),Object(l["a"])(Fu,zc,Vc,!1,null,"6b91c335",null)),Eu=Mu.exports,Lu=[{path:p["logicConfig"].routerNameConfig.loginRouteName,name:"登录页",component:ae},{path:"/",name:"首页",component:H},{path:p["logicConfig"].routerNameConfig.systemGraphName,name:"系统图",component:H,children:[{path:"/",component:ue},{path:"/ready/buildfloor",name:"buildFloor",component:sl,meta:{keepAlive:!1,breadcrumbs:[{label:"建筑楼层管理"}]}},{path:"repetitionGraphy",name:"repetitionGraphy",component:Gl,meta:{keepAlive:!1,breadcrumbs:[{label:"建筑楼层管理",path:"/ready/buildfloor"},{label:"平面图维护"}]}},{path:"/ledger/facility",name:"facilityLedger",component:vn,meta:{keepAlive:!0,isBack:!1,breadcrumbs:[{label:"台账管理",path:"/ledger/facility"},{label:"设备台账"}]}},{path:"/ledger/batchPointAssets",name:"BatchPointAssets",component:ms,meta:{keepAlive:!1,breadcrumbs:[{label:"台账管理",path:"/ledger/facility"},{label:"设备台账",path:"/ledger/facility"},{label:"批量维护设备位置"}]}},{path:"/ledger/deviceDetails",name:"deviceDetails",component:zr,meta:{keepAlive:!1,breadcrumbs:[{label:"台账管理",path:"/ledger/facility"},{label:"设备台账",path:"/ledger/facility"},{label:"台账详情"}]}},{path:"/project/manage",name:"项目信息管理",component:Eu},{path:"/ledger/list",name:"系统台账",component:cs},{path:"/relation/overview",name:"全部关系总览",component:_c}]},{path:p["logicConfig"].routerNameConfig.systemGraphEditName,name:"系统图编辑器",component:Ae},{path:"/deliveryTools",name:"现场交付工具",component:H,children:[{path:p["logicConfig"].routerNameConfig.cadDrawingManageRoute,name:"CAD核查图纸管理",component:Bc}]}],$u=a("fb63");i["default"].use(d["a"]);var qu=[];qu=qu.concat(Lu);var Bu=new d["a"]({mode:"history",base:"/"+re.name,routes:qu});Bu.beforeEach((new $u["authUtils"]).routerBeforeEach);var zu=Bu,Vu=(a("0fae"),a("4a61"),a("6a67")),Uu=a.n(Vu),Hu=(a("aa2e"),a("d57f")),Gu=a.n(Hu),Ku=(a("0d23"),a("2dc1")),Wu=a.n(Ku),Xu=(a("cae1"),a("0bc3")),Yu=a.n(Xu),Ju=(a("ea05"),a("c2fe")),Qu=a.n(Ju);i["default"].use(Ac.a),i["default"].use(Qu.a),i["default"].use(Yu.a),i["default"].use(Wu.a),i["default"].use(Gu.a),i["default"].use(Uu.a);a("42d0"),a("90e1"),a("b9b1");i["default"].use(Q.a,{size:"small",zIndex:1e3}),i["default"].config.productionTip=!1,i["default"].config.devtools=!0,new i["default"]({el:"#app",router:zu,store:X["default"],components:{App:u},template:"<App/>"})},5700:function(e,t,a){"use strict";var i=a("c973").default,n=a("970b").default,r=a("5bc3").default,o=a("9523").default;a("99af"),a("96cf"),Object.defineProperty(t,"__esModule",{value:!0});var s=a("ed29"),l=a("f52f"),c=function(){function e(){n(this,e)}return r(e,null,[{key:"getEquipNotInSys",value:function(){var e=i(regeneratorRuntime.mark((function e(t,a){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.equipquery_pre+"/equip-sys?sysId=".concat(t.sysId),t);case 2:return i=e.sent,e.abrupt("return",a?a(i):i);case 4:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}()},{key:"BeatchQueryParam",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=a.data,t.next=3,e.http.postRequest("/rwd/iot/data/current?projectId=".concat(a.projectId,"&groupCode=").concat(a.groupCode,"&appId=").concat(a.appId),n);case 3:return r=t.sent,t.abrupt("return",i?i(r):r);case 5:case"end":return t.stop()}}),t)})));function a(e,a){return t.apply(this,arguments)}return a}()},{key:"countPartsDie",value:function(){var t=i(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/equip-component/equip-query/count",a);case 2:t.sent;case 3:case"end":return t.stop()}}),t)})));function a(e){return t.apply(this,arguments)}return a}()},{key:"createPropertys",value:function(){var t=i(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/equip-component/equip-query/creat-propertys",a);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));function a(e){return t.apply(this,arguments)}return a}()},{key:"deleteProperty",value:function(){var t=i(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/object/property/delete",a);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));function a(e){return t.apply(this,arguments)}return a}()},{key:"propertyLinkEq",value:function(){var t=i(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/equip-component/property/property-query",a);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));function a(e){return t.apply(this,arguments)}return a}()},{key:"propertyUpdate",value:function(){var t=i(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/equip-component/property/update",a);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));function a(e){return t.apply(this,arguments)}return a}()},{key:"queryProperty",value:function(){var t=i(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/object/property/query",a);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));function a(e){return t.apply(this,arguments)}return a}()},{key:"updateProperty",value:function(){var t=i(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/object/property/update",a);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));function a(e){return t.apply(this,arguments)}return a}()},{key:"deleteGeneralSys",value:function(){var t=i(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/object/general-system/delete",a);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));function a(e){return t.apply(this,arguments)}return a}()},{key:"updateGeneralSys",value:function(){var t=i(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/object/general-system/update",a);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));function a(e){return t.apply(this,arguments)}return a}()},{key:"getEquipBelongs",value:function(){var t=i(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/dict/family/query",a);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));function a(e){return t.apply(this,arguments)}return a}()},{key:"buildingQuery",value:function(){var t=i(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/object/building/query",a);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));function a(e){return t.apply(this,arguments)}return a}()},{key:"shaftLinkBuild",value:function(){var t=i(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/rel/sh-in-bd/link-bd",a);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));function a(e){return t.apply(this,arguments)}return a}()},{key:"querySysLinkBuild",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n="/datacenter/object/general-system/query-new",a.buildingId&&(n+="?buildingId=".concat(a.buildingId)),a.floorId&&(n+="&floorId=".concat(a.floorId)),t.next=5,e.http.postRequest(n,a);case 5:return r=t.sent,t.abrupt("return",i?i(r):r);case 7:case"end":return t.stop()}}),t)})));function a(e,a){return t.apply(this,arguments)}return a}()},{key:"countGeneralSys",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/object/general-system/count",a);case 2:return n=t.sent,t.abrupt("return",i?i(n):n);case 4:case"end":return t.stop()}}),t)})));function a(e,a){return t.apply(this,arguments)}return a}()},{key:"getFloorMsgByFloorID",value:function(){var t=i(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/object/floor/query",a);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));function a(e){return t.apply(this,arguments)}return a}()},{key:"queryLinkSys",value:function(){var t=i(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/object/general-system/query",a);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));function a(e){return t.apply(this,arguments)}return a}()},{key:"getAllProject",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/object/project/query/obj",a);case 2:return n=t.sent,t.abrupt("return",i?i(n):n);case 4:case"end":return t.stop()}}),t)})));function a(e,a){return t.apply(this,arguments)}return a}()},{key:"sysRelateBuild",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/rel/sy-in-bd/link-bd",a);case 2:return n=t.sent,t.abrupt("return",i?i(n):n);case 4:case"end":return t.stop()}}),t)})));function a(e,a){return t.apply(this,arguments)}return a}()},{key:"sysRelateFloor",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/rel/sy-in-fl/link-fl",a);case 2:return n=t.sent,t.abrupt("return",i?i(n):n);case 4:case"end":return t.stop()}}),t)})));function a(e,a){return t.apply(this,arguments)}return a}()},{key:"getEquipInSys",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/equip-component/equip-query/sys-equip",a);case 2:return n=t.sent,t.abrupt("return",i?i(n):n);case 4:case"end":return t.stop()}}),t)})));function a(e,a){return t.apply(this,arguments)}return a}()},{key:"sysLinkEquip",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/rel/sy-in-eq/link-sy-eq",a);case 2:return n=t.sent,t.abrupt("return",i?i(n):n);case 4:case"end":return t.stop()}}),t)})));function a(e,a){return t.apply(this,arguments)}return a}()},{key:"updateEquip",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.object_pre+"/equip/update",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"sysUnlinkEquip",value:function(){var e=i(regeneratorRuntime.mark((function e(t,a){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.datacenter_pre+"/sy-in-eq/unlinks-sy-eq",t);case 2:return i=e.sent,e.abrupt("return",a?a(i):i);case 4:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}()},{key:"zoneQuery",value:function(){var e=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"TypePartsDie",value:function(){var e=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"queryDownloadsKey",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.graphhic_pre+"/downloads/point/key",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"equipTemplate",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:window.location.href=window.__systemConf.baseServiceUrl+l.graphhic_pre+"/downloads/equip/template";case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryUpdate",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.equipquery_pre+"/update",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"equipLinkSys",value:function(){var e=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"buildingQueryAndCount",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.equipcomponent_pre+"/building/query",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"floorQueryAndSign",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.equipcomponent_pre+"/floor/query",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"deleteFloorInfo",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.floor_pre+"/single/delete",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"deleteBuildInfo",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.object_pre+"/building/single/delete",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"objectCreateBuild",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.object_pre+"/building/create",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"objectQueryBuild",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.object_pre+"/building/query",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"objectUpdateBuild",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.object_pre+"/building/update",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"createRelationInFloor",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.datacenter_pre+"/rel/fl-through-fl/link-or",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"manageUpdateFloor",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.floor_pre+"/update",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"floorUpdateOutline",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.floor_pre+"/update-outline",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"floorQueryOutline",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.http.postRequest(l.floor_pre+"/query-outline",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}();o(c,"http",new s.baseHttpUtils),t.default=c},"5a01":function(e,t,a){},"5a3c":function(e,t,a){"use strict";a("c047")},"5af3":function(e,t,a){"use strict";a("d183")},"5ca7":function(e,t,a){},"5e54":function(e,t,a){},6097:function(e,t,a){"use strict";a("25af")},"618d":function(e,t,a){"use strict";a("0eb5")},6248:function(e,t,a){},6411:function(e,t,a){"use strict";a("ffba")},6665:function(e,t,a){"use strict";a("91f4")},6812:function(e,t,a){"use strict";a("0b12")},"6f15":function(e,t,a){},"6f61":function(e,t,a){},7112:function(e,t,a){"use strict";a("d37a")},"71eb":function(e,t,a){},7222:function(e,t,a){},7400:function(e,t,a){"use strict";a("bfdd")},7511:function(e,t,a){},"759e":function(e,t,a){"use strict";a("c7cf")},"767c":function(e,t,a){},"787e":function(e,t,a){},"79b7":function(e,t,a){"use strict";a("2d7a")},"7c0a":function(e,t,a){},"7c4c":function(e,t,a){},"7df1":function(e,t,a){"use strict";a("d9dd")},"7f2f":function(e,t,a){"use strict";a("7222")},8260:function(e,t,a){"use strict";a("d783")},"82ac":function(e,t,a){},8321:function(e,t,a){"use strict";a("7c4c")},"86ce":function(e,t,a){"use strict";var i=a("c973").default,n=a("970b").default,r=a("5bc3").default,o=a("9523").default;a("99af"),a("96cf"),Object.defineProperty(t,"__esModule",{value:!0});var s=a("ed29"),l=a("4a6c"),c=a("f842"),u=function(){function e(){n(this,e)}return r(e,null,[{key:"queryFileList",value:function(){var e=i(regeneratorRuntime.mark((function e(){var t,a,i,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},a={"Content-Type":"application/json",token:"16:31eyJhbGciOiJIUzI1NiJ9.eyJkZXZpY2VUeXBlIjoxLCJhdWQiOiJ5dXNodS1zYWFzLWNsaWVudCIsInN1YiI6Inl1c2h1LXVzZXIiLCJhY2NvdW50SWQiOiIxNDc4MjcyMTQwNjU4MjAwNTc4IiwiYWNjb3VudE5hbWUiOiLmnY7mnbAiLCJpc3MiOiJ5dXNodSIsImp0aSI6ImEyYzgwYWQxLTRkZTgtNDVjMy04ODMyLTE5MzUxNWU3OWFmMCJ9.HYLA4Tc2c4TEDRXdi9dJ39zWuVmBoGoj5VrGRJk_9Ec"},e.prev=2,e.next=5,this.customHttp.customRequest("".concat(this.baseUril,"/adm-server/adm/adm-file/queryCadFiles?projectId=Pj5001120003&groupCode=XG&userId=adm"),a,t,"post");case 5:if(i=e.sent,(null===i||void 0===i?void 0:i.result)==c.logicConfig.resultObj.success){e.next=9;break}return console.log("error"),e.abrupt("return",[]);case 9:return e.abrupt("return",i.data);case 12:e.prev=12,e.t0=e["catch"](2);case 14:case"end":return e.stop()}}),e,this,[[2,12]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"delFile",value:function(){var e=i(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={"Content-Type":"application/x-www-form-urlencoded",token:"16:31eyJhbGciOiJIUzI1NiJ9.eyJkZXZpY2VUeXBlIjoxLCJhdWQiOiJ5dXNodS1zYWFzLWNsaWVudCIsInN1YiI6Inl1c2h1LXVzZXIiLCJhY2NvdW50SWQiOiIxNDc4MjcyMTQwNjU4MjAwNTc4IiwiYWNjb3VudE5hbWUiOiLmnY7mnbAiLCJpc3MiOiJ5dXNodSIsImp0aSI6ImEyYzgwYWQxLTRkZTgtNDVjMy04ODMyLTE5MzUxNWU3OWFmMCJ9.HYLA4Tc2c4TEDRXdi9dJ39zWuVmBoGoj5VrGRJk_9Ec"},e.prev=1,e.next=4,this.customHttp.customRequest("".concat(this.baseUril,"/adm-server/adm/adm-file/delete?projectId=Pj5001120003&groupCode=XG&userId=adm&id=").concat(t.id),a,{},"post");case 4:if(i=e.sent,(null===i||void 0===i?void 0:i.result)==c.logicConfig.resultObj.success){e.next=8;break}return console.log("error"),e.abrupt("return",[]);case 8:return e.abrupt("return",i.data);case 11:e.prev=11,e.t0=e["catch"](1);case 13:case"end":return e.stop()}}),e,this,[[1,11]])})));function t(t){return e.apply(this,arguments)}return t}()}]),e}();o(u,"baseUril",window.__systemConf.baseServiceUrl),o(u,"http",new s.baseHttpUtils),o(u,"customHttp",new l.customHttpUtils),t.default=u},"88ff":function(e,t,a){"use strict";a.r(t);var i=a("53ca"),n=(a("e9c4"),"_sagacloud_admin_store_"),r=window.localStorage;t["default"]={set:function(e,t,a){var i=null;try{i=JSON.stringify(t)}catch(o){i=t}r.setItem(n+e,i),a&&a()},get:function(e,t){if(!e)return null;if("object"===Object(i["a"])(e))throw new Error("key不能是一个对象。");var a=r.getItem(n+e);if(null!==a)try{return JSON.parse(a)}catch(o){}return a},remove:function(e){r.removeItem(n+e)}}},8916:function(e,t,a){},"8a63":function(e,t,a){},"8ab0":function(e,t,a){},"8acd":function(e,t,a){"use strict";a("a27a")},"8aee":function(e,t,a){},"8d43":function(e,t,a){},"8dc0":function(e,t,a){},"8dd4":function(e,t,a){"use strict";a("3232")},"8e08":function(e,t,a){"use strict";var i=a("c973").default,n=a("448a").default;a("96cf"),a("fb6a"),a("d3b7"),a("6062"),a("3ca3"),a("ddb0"),a("99af"),a("d81d"),a("b0c0"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0});var r=a("9ab4"),o=(0,r.__importDefault)(a("5700")),s=a("c2f8"),l=(0,r.__importDefault)(a("febd")),c=(0,r.__importDefault)(a("9462")),u=(0,r.__importDefault)(a("88ff")),d=(0,r.__importDefault)(a("4360")),p="menu_selected",h="global_project_selected",f="page_brandcrumb";t.default={namespaced:!0,state:{sidebarClosed:!1,sidebarSelected:"",userInfo:{userName:"yanruolan",userId:"06328a53c69a41bb8f5bb1a552c6e8d6"},permissions:{"system:role:delete":!0,"system:role:create":!0,"system:role:query":!0,"system:role:setOpts":!0},menus:[],projectId:"",projectName:"",group_code:"",projects:[],breadcrumb:[],uploaderList:[],secret:"",userId:"",rowEdit:!1,errorReport:[]},getters:{sidebarClosed:function(e){return e.sidebarClosed},secret:function(e){return e.secret},userId:function(e){return e.userId},sidebarSelected:function(e){return e.sidebarSelected},userInfo:function(e){return e.userInfo},permissions:function(e){return e.permissions},menus:function(e){return e.menus},projects:function(e){return e.projects},uploaderList:function(e){return e.uploaderList},projectId:function(e){if(!e.projectId){var t=c.default.get(h);t?e.projectId=t:e.projects&&e.projects.length&&(e.projectId=e.projects[0].id)}return e.projectId},projectName:function(e){return e.projectName},group_code:function(e){return e.group_code},breadcrumb:function(e){if(!e.breadcrumb){var t=c.default.get(f);t&&(e.breadcrumb=t)}return e.breadcrumb}},mutations:{setRowEdit:function(e,t){return e.rowEdit=t},setErrorReport:function(e,t){return e.errorReport=t},setSidebarClosed:function(e,t){return e.sidebarClosed=t},setUserInfo:function(e,t){return e.userInfo=t},setGroupCode:function(e,t){return e.group_code=t},setUserId:function(e,t){return e.userId=t},setSidebarSelected:function(e,t){e.sidebarSelected=t,c.default.set(p,t),u.default.set("screen_data",{path:t,data:{}})},setProjects:function(e,t){return e.projects=t},setprojectId:function(e,t){u.default.remove("cacheInfo");var a=u.default.get("historyInfo")?u.default.get("historyInfo"):{};e.projectId=t,u.default.set("projectId",t),a[e.userInfo.userName]?(a[e.userInfo.userName]=n(new Set([t].concat(n(a[e.userInfo.userName])))).slice(0,3),u.default.set("historyInfo",a)):(a[e.userInfo.userName]=[t],u.default.set("historyInfo",a)),c.default.set(h,t),e.projects.map((function(a){a.id==t&&(e.secret=a.pwd,e.projectName=a.name,e.group_code=a.group_code,u.default.set("group_code",a.group_code),u.default.set("secret",a.pwd))}))},setMenus:function(e,t){return e.menus=t},setUploaderList:function(e,t){e.uploaderList=t||[]}},actions:{setRowEdit:function(e,t){e.commit("setRowEdit",t)},setErrorReport:function(e,t){e.commit("setErrorReport",t)},getAllProject:function(e){var t=e.state;return new Promise((function(e,a){o.default.getAllProject({pageNumber:1,pageSize:1e3},(function(i){"success"===i.result&&i.content&&i.content.length?(t.projects=[],i.content.forEach((function(e){return t.projects.push({id:e.id,name:e.localName||e.name||"",pwd:e.secret||"",group_code:e.groupCode||""})})),e(i)):a()}))}))},loadUserInfo:function(e){var t=e.state;return new Promise(function(){var e=i(regeneratorRuntime.mark((function e(a,i){var n,r,o,p;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return d.default.state.ssoToken?d.default.state.ssoToken:u.default.get("ssoToken"),u.default.get("ssoPd"),n=new s.userController,e.next=5,n.getUserInfoById();case 5:return r=e.sent,"success"===r.result?(o=(r.content||[])[0]||{},t.userInfo={userName:o.userName,userId:o.userId},t.userId=o.userId,t.projects=[],c.default.set("user_name",o.userName),c.default.set("user_id",o.userId),o.authorizations&&o.authorizations.length?(p=l.default.formatMenu(o.authorizations),t.menus=p):t.menus=[],o.projects&&o.projects.length&&o.projects.forEach((function(e){return t.projects.push({id:e.projectId,name:e.projectLocalName,pwd:e.secret?e.secret:"",group_code:e.groupCode})})),a(r)):(t.userInfo={userName:"yanruolan",userId:"06328a53c69a41bb8f5bb1a552c6e8d6"},a(r)),e.abrupt("return");case 8:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}())},setBreadcrumb:{root:!0,handler:function(e,t){var a=e.state,i=e.commit,n=t[0].label;"消息中心"===n&&i("setSidebarSelected","message"),a.breadcrumb=[],a.breadcrumb=t,c.default.set(f,t)}}}}},"8efb":function(e,t,a){"use strict";a("8dc0")},"90e1":function(e,t,a){},"91f4":function(e,t,a){},9224:function(e){e.exports=JSON.parse('{"name":"padm","version":"0.0.0","private":true,"description":"","scripts":{"start":"vue-cli-service serve","build":"vue-cli-service build"},"dependencies":{"@amap/amap-jsapi-loader":"^1.0.1","@saga-web/base":"^2.1.28","@saga-web/cad-engine":"^2.0.595","@saga-web/draw":"^2.1.114","@saga-web/graph":"^2.1.139","font-awesome":"^4.7.0","handsontable-pro":"^3.0.0","meri-design":"^1.5.515","moment":"^2.29.1","vue-router":"^3.5.3","vuex":"^3.6.2"},"devDependencies":{"@vue/cli-plugin-babel":"~4.5.0","@vue/cli-plugin-typescript":"^4.5.13","@vue/cli-service":"~4.5.0","axios":"^0.21.1","babel-plugin-component":"^1.1.1","core-js":"^3.6.5","element-ui":"^2.15.6","less":"3.9.0","less-loader":"4.1.0","pixi.js":"^6.1.3","typescript":"^4.3.3","vue":"^2.6.11","vue-template-compiler":"^2.6.11"},"browserslist":["> 1%","last 2 versions","not dead"]}')},9462:function(e,t,a){"use strict";var i=a("7037").default,n=a("970b").default,r=a("5bc3").default,o=a("9523").default;a("e9c4"),Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(){n(this,e)}return r(e,null,[{key:"set",value:function(t,a,i){var n=null;try{n=JSON.stringify(a)}catch(r){n=a}sessionStorage.setItem(e.PREFIX+t,n),i&&i()}},{key:"get",value:function(t,a){if(!t)return null;if("object"===i(t))throw new Error("key不能是一个对象。");var n=sessionStorage.getItem(e.PREFIX+t);if(null!==n)try{return JSON.parse(n)}catch(r){}return n}},{key:"remove",value:function(t){sessionStorage.removeItem(e.PREFIX+t)}}]),e}();o(s,"PREFIX","_sagacloud_admin_store_"),t.default=s},"95cc":function(e,t,a){"use strict";a("36b5")},"963d":function(e,t,a){e.exports=a.p+"public/img/login_bg.2d60ec49.png"},"973f":function(e,t,a){},9789:function(e,t,a){"use strict";a("8a63")},9824:function(e,t,a){"use strict";a("cd260")},"999e":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.graphStateEnum=void 0,function(e){e["Draft"]="Draft",e["WaitCheck"]="WaitCheck",e["Checked"]="Checked",e["Recyle"]="Recyle",e["Publish"]="Publish"}(t.graphStateEnum||(t.graphStateEnum={}))},"9a48":function(e,t,a){"use strict";a("6248")},"9b24":function(e,t,a){},"9bdb":function(e,t,a){"use strict";a("eabc")},"9c18":function(e,t,a){"use strict";a("2a0d")},"9d64":function(e,t,a){e.exports=a.p+"public/img/logo.87be7c6e.png"},a142:function(e,t,a){"use strict";a("d7ef")},a197:function(e,t,a){},a202:function(e,t,a){"use strict";a("402e")},a21b:function(e,t,a){"use strict";var i=a("c973").default,n=a("970b").default,r=a("5bc3").default,o=a("9523").default;a("96cf"),Object.defineProperty(t,"__esModule",{value:!0});var s=a("ed29"),l=a("f52f"),c=function(){function e(){n(this,e)}return r(e,null,[{key:"floorQuery",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.http.postRequest(l.object_pre+"/floor/query",t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"manageCreateFloor",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.http.postRequest(l.object_pre+"/floor/create",t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"manageUpdateFloor",value:function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.http.postRequest(l.object_pre+"/floor/update",t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}();o(c,"http",new s.baseHttpUtils),t.default=c},a27a:function(e,t,a){},a3b4:function(e,t,a){var i={"./af":"1489","./af.js":"1489","./ar":"df53","./ar-dz":"7b8b","./ar-dz.js":"7b8b","./ar-kw":"1d03","./ar-kw.js":"1d03","./ar-ly":"81dc","./ar-ly.js":"81dc","./ar-ma":"879b","./ar-ma.js":"879b","./ar-sa":"2751","./ar-sa.js":"2751","./ar-tn":"da41","./ar-tn.js":"da41","./ar.js":"df53","./az":"f97e","./az.js":"f97e","./be":"c0c3","./be.js":"c0c3","./bg":"2c23","./bg.js":"2c23","./bm":"46dd","./bm.js":"46dd","./bn":"2bf9","./bn.js":"2bf9","./bo":"d5dc","./bo.js":"d5dc","./br":"2a3f","./br.js":"2a3f","./bs":"b87a","./bs.js":"b87a","./ca":"11da","./ca.js":"11da","./cs":"fa67","./cs.js":"fa67","./cv":"d359","./cv.js":"d359","./cy":"4c31","./cy.js":"4c31","./da":"0cbd","./da.js":"0cbd","./de":"5ff2","./de-at":"be81","./de-at.js":"be81","./de-ch":"d495","./de-ch.js":"d495","./de.js":"5ff2","./dv":"2da6","./dv.js":"2da6","./el":"e88e","./el.js":"e88e","./en-au":"dc3e","./en-au.js":"dc3e","./en-ca":"3899","./en-ca.js":"3899","./en-gb":"58b7","./en-gb.js":"58b7","./en-ie":"7ba5","./en-ie.js":"7ba5","./en-nz":"dedd","./en-nz.js":"dedd","./eo":"cb1e","./eo.js":"cb1e","./es":"0f06","./es-do":"79e9","./es-do.js":"79e9","./es-us":"7eff","./es-us.js":"7eff","./es.js":"0f06","./et":"65aa","./et.js":"65aa","./eu":"bae5","./eu.js":"bae5","./fa":"f7ae","./fa.js":"f7ae","./fi":"0fee","./fi.js":"0fee","./fo":"179b","./fo.js":"179b","./fr":"8247","./fr-ca":"c9ad","./fr-ca.js":"c9ad","./fr-ch":"f70d","./fr-ch.js":"f70d","./fr.js":"8247","./fy":"68c4","./fy.js":"68c4","./gd":"71e2","./gd.js":"71e2","./gl":"07f9","./gl.js":"07f9","./gom-latn":"d088","./gom-latn.js":"d088","./gu":"9ab1","./gu.js":"9ab1","./he":"1d28","./he.js":"1d28","./hi":"3d55","./hi.js":"3d55","./hr":"333f","./hr.js":"333f","./hu":"7bb4","./hu.js":"7bb4","./hy-am":"046f","./hy-am.js":"046f","./id":"a0cf","./id.js":"a0cf","./is":"ed2c","./is.js":"ed2c","./it":"3c3f","./it.js":"3c3f","./ja":"a598","./ja.js":"a598","./jv":"b646","./jv.js":"b646","./ka":"3ea3","./ka.js":"3ea3","./kk":"05ef","./kk.js":"05ef","./km":"11a4","./km.js":"11a4","./kn":"8c88","./kn.js":"8c88","./ko":"534b","./ko.js":"534b","./ky":"d2e7","./ky.js":"d2e7","./lb":"f3f5","./lb.js":"f3f5","./lo":"1cba","./lo.js":"1cba","./lt":"5a4b","./lt.js":"5a4b","./lv":"c92f","./lv.js":"c92f","./me":"1231","./me.js":"1231","./mi":"070b","./mi.js":"070b","./mk":"df07","./mk.js":"df07","./ml":"9afb","./ml.js":"9afb","./mr":"6109","./mr.js":"6109","./ms":"6fb2","./ms-my":"f351","./ms-my.js":"f351","./ms.js":"6fb2","./mt":"34ba","./mt.js":"34ba","./my":"2d36","./my.js":"2d36","./nb":"6851","./nb.js":"6851","./ne":"5e29","./ne.js":"5e29","./nl":"8ece","./nl-be":"8ddb","./nl-be.js":"8ddb","./nl.js":"8ece","./nn":"1f58","./nn.js":"1f58","./pa-in":"260c","./pa-in.js":"260c","./pl":"7d6e","./pl.js":"7d6e","./pt":"7313","./pt-br":"415e","./pt-br.js":"415e","./pt.js":"7313","./ro":"59ff","./ro.js":"59ff","./ru":"cc4e","./ru.js":"cc4e","./sd":"eb53","./sd.js":"eb53","./se":"8f6a","./se.js":"8f6a","./si":"f092","./si.js":"f092","./sk":"d4a8","./sk.js":"d4a8","./sl":"f7e7","./sl.js":"f7e7","./sq":"2d61","./sq.js":"2d61","./sr":"dd7d","./sr-cyrl":"877a","./sr-cyrl.js":"877a","./sr.js":"dd7d","./ss":"8855","./ss.js":"8855","./sv":"3443","./sv.js":"3443","./sw":"1b4b","./sw.js":"1b4b","./ta":"ffbc","./ta.js":"ffbc","./te":"b65d","./te.js":"b65d","./tet":"1f06","./tet.js":"1f06","./th":"068d","./th.js":"068d","./tl-ph":"b3e1","./tl-ph.js":"b3e1","./tlh":"de33","./tlh.js":"de33","./tr":"57d9","./tr.js":"57d9","./tzl":"8b99","./tzl.js":"8b99","./tzm":"17ec","./tzm-latn":"326f","./tzm-latn.js":"326f","./tzm.js":"17ec","./uk":"e50f","./uk.js":"e50f","./ur":"6e72","./ur.js":"6e72","./uz":"3c8b","./uz-latn":"f2a1","./uz-latn.js":"f2a1","./uz.js":"3c8b","./vi":"608a","./vi.js":"608a","./x-pseudo":"183e","./x-pseudo.js":"183e","./yo":"7c99","./yo.js":"7c99","./zh-cn":"1a07","./zh-cn.js":"1a07","./zh-hk":"fd71","./zh-hk.js":"fd71","./zh-tw":"b001","./zh-tw.js":"b001"};function n(e){var t=r(e);return a(t)}function r(e){if(!a.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}n.keys=function(){return Object.keys(i)},n.resolve=r,e.exports=n,n.id="a3b4"},a795:function(e,t,a){},aa77:function(e,t,a){},ac63:function(e,t,a){"use strict";a("e59b")},ad3b:function(e,t,a){"use strict";a("5147")},af8e:function(e,t,a){},b051:function(e,t,a){"use strict";a("ed99")},b19a:function(e,t,a){"use strict";a("492b")},b1d8:function(e,t,a){},b2df:function(e,t,a){"use strict";a("1dd3")},b3e7:function(e,t,a){},b4b3:function(e,t,a){},b927:function(e,t,a){"use strict";a("a795")},b9b1:function(e,t,a){},ba01e:function(e,t,a){},bcb7:function(e,t,a){"use strict";a("b1d8")},bd4e:function(e,t,a){"use strict";a("0e43")},bfdd:function(e,t,a){},c047:function(e,t,a){},c2cb:function(e,t,a){"use strict";a("c52b")},c2f8:function(e,t,a){"use strict";var i=a("c973").default,n=a("970b").default,r=a("5bc3").default;a("96cf"),a("e9c4"),Object.defineProperty(t,"__esModule",{value:!0}),t.userController=void 0;var o=a("4a6c"),s=a("d69d"),l=function(){function e(){n(this,e)}return r(e,[{key:"login",value:function(){var e=i(regeneratorRuntime.mark((function e(t,a){var i,n,r,s,l,c,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=JSON.stringify({loginName:t,password:a,loginDevice:"PC",longitude:1,latitude:1}),n=window.__systemConf.baseServiceUrl+"/login-service",r={"Content-Type":"application/x-www-form-urlencoded"},s="jsonString="+i,l="post",c=new o.customHttpUtils,e.next=8,c.customRequest(n,r,s,l);case 8:return u=e.sent,e.abrupt("return",u);case 10:case"end":return e.stop()}}),e)})));function t(t,a){return e.apply(this,arguments)}return t}()},{key:"getUserInfoById",value:function(){var e=i(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=s.sessionStore.userId,e.abrupt("return",{result:"success",content:[{userId:t,userName:"adm",projects:[{projectLocalName:"银泰中心",projName:"银泰中心",latitude:"36.5",productLine:"",projectCode:"",detailAddress:"001号",projectLocalID:"1101050031",functionType:"230",partitionAbbr:"银泰中心",projectName:"银泰中心",projectId:"Pj1101050031",liveStatus:"1",longitude:"102.12",totalArea:null,groupCode:"BR"},{projectLocalName:"博锐尚格",projName:"博锐尚格",latitude:"36.5",productLine:"1",projectCode:"",detailAddress:"北京市海淀区建材城中路27号金隅智造工场N2-3层",projectLocalID:"1101080259",functionType:"230",partitionAbbr:"博锐尚格",projectName:"博锐尚格",projectId:"Pj1101080259",liveStatus:"1",longitude:"102.12",totalArea:null,groupCode:"BR"},{projectLocalName:"禹数科技公司",projName:"禹数科技公司",latitude:"36.5",productLine:"",projectCode:null,detailAddress:"金隅智造工厂N2楼3层",projectLocalID:"1101101230",functionType:"230",partitionAbbr:"禹数科技公司",projectName:"禹数科技公司",projectId:"Pj1101101230",liveStatus:"1",longitude:"102.12",totalArea:null,groupCode:"BR"},{projectLocalName:"北京万科半岛广场",projName:"北京万科半岛广场",latitude:"36.5",productLine:"1",projectCode:"",detailAddress:"广阳新路9号院1号楼1-4层(商业部分)",projectLocalID:"1101110003",functionType:"230",partitionAbbr:"北京万科半岛广场",projectName:"北京万科半岛广场",projectId:"Pj1101110003",liveStatus:"1",longitude:"102.12",totalArea:null,groupCode:"BR"},{projectLocalName:"测试项目1",projName:null,latitude:"36.5",productLine:"",projectCode:"",detailAddress:"",projectLocalID:"1208001",functionType:"200",partitionAbbr:null,projectName:"测试项目1",projectId:"Pj1208001",liveStatus:"1",longitude:"102.12",totalArea:null,groupCode:"BR"},{projectLocalName:"测试项目2",projName:null,latitude:"36.5",productLine:"",projectCode:null,detailAddress:"",projectLocalID:"1208002",functionType:"200",partitionAbbr:null,projectName:"测试项目2",projectId:"Pj1208002",liveStatus:"0",longitude:"102.12",totalArea:null,groupCode:"BR"},{projectLocalName:"上海国际航空服务中心",projName:"上海国际航空服务中心",latitude:"36.5",productLine:null,projectCode:null,detailAddress:null,projectLocalID:"3101040002",functionType:"230",partitionAbbr:"上海国际航空服务中心",projectName:"上海国际航空服务中心",projectId:"Pj3101040002",liveStatus:"1",longitude:"102.12",totalArea:null,groupCode:"BR"},{projectLocalName:"济南印象城",projName:"济南印象城",latitude:"36.5",productLine:"1",projectCode:null,detailAddress:" 花园路136号7号楼(印象城)",projectLocalID:"3701020004",functionType:"230",partitionAbbr:"济南印象城",projectName:"济南印象城",projectId:"Pj3701020004",liveStatus:"1",longitude:"102.12",totalArea:null,groupCode:"BR"},{projectLocalName:"香港置地约克北郡",projName:"香港置地约克北郡",latitude:"36.5",productLine:"1",projectCode:"",detailAddress:"重庆市渝北区0003项目",projectLocalID:"5001120003",functionType:"230",partitionAbbr:"香港置地约克北郡",projectName:"香港置地约克北郡",projectId:"Pj5001120003",liveStatus:"1",longitude:"102.12",totalArea:null,groupCode:"BR"},{projectLocalName:"不知道做什么的2",projName:null,latitude:"36.5",productLine:"",projectCode:"",detailAddress:"",projectLocalID:"5555567890",functionType:"230",partitionAbbr:null,projectName:"不知道做什么的2",projectId:"Pj5555567890",liveStatus:"1",longitude:"102.12",totalArea:null,groupCode:"BR"},{projectLocalName:"不知道做什么的3",projName:null,latitude:"36.5",productLine:"",projectCode:null,detailAddress:"",projectLocalID:"6666667777",functionType:"230",partitionAbbr:null,projectName:"不知道做什么的3",projectId:"Pj6666667777",liveStatus:"1",longitude:"102.12",totalArea:null,groupCode:"BR"},{projectLocalName:"龙华交付测试项目",projName:"龙华模拟交付",latitude:"36.5",productLine:"",projectCode:null,detailAddress:"",projectLocalID:"8888888801",functionType:"230",partitionAbbr:"龙华模拟交付",projectName:"龙华交付测试项目",projectId:"Pj8888888801",liveStatus:"1",longitude:"102.12",totalArea:null,groupCode:"BR"},{projectLocalName:"京东测试项目",projName:"京东测试项目",latitude:"36.5",productLine:"",projectCode:null,detailAddress:"",projectLocalID:"9909990002",functionType:"230",partitionAbbr:"京东测试项目",projectName:"京东测试项目",projectId:"Pj9909990002",liveStatus:"1",longitude:"102.12",totalArea:null,groupCode:"BR"},{projectLocalName:"不知道做什么的4",projName:null,latitude:"36.5",productLine:"",projectCode:"",detailAddress:"",projectLocalID:"9909990003",functionType:"230",partitionAbbr:null,projectName:"不知道做什么的4",projectId:"Pj9909990003",liveStatus:"1",longitude:"102.12",totalArea:null,groupCode:"BR"},{projectLocalName:"京东本地测试项目",projName:"京东本地测试项目",latitude:"36.5",productLine:"",projectCode:null,detailAddress:"",projectLocalID:"9909990004",functionType:"230",partitionAbbr:"京东本地测试项目",projectName:"京东本地测试项目",projectId:"Pj9909990004",liveStatus:"1",longitude:"102.12",totalArea:null,groupCode:"BR"},{projectLocalName:"测试003",projName:null,latitude:"39.93",productLine:"",projectCode:null,detailAddress:"",projectLocalID:"test003",functionType:"111",partitionAbbr:null,projectName:"测试003",projectId:"Pj129003",liveStatus:"0",longitude:"116.42",totalArea:null,groupCode:"BR"}]}],reason:""});case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()}]),e}();t.userController=l},c300:function(e,t,a){"use strict";var i=a("c973").default,n=a("970b").default,r=a("5bc3").default;a("96cf"),a("d3b7"),a("ac1f"),a("1276"),a("b64b"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.axiosUtils=void 0;var o=a("9ab4"),s=(0,o.__importDefault)(a("bc3a")),l=(0,o.__importDefault)(a("4360")),c=a("f842"),u=s.default.CancelToken,d=s.default.create({timeout:3e6,cancelToken:new u((function(e){e}))});d.interceptors.request.use((function(e){return e}),(function(e){return Promise.reject(e)})),d.interceptors.response.use((function(e){e.data;return e}),(function(e){return console.log("axios interceptors err = ",e),Promise.reject(e)}));var p=function(){function e(){n(this,e)}return r(e,[{key:"getRequest",value:function(){var e=i(regeneratorRuntime.mark((function e(t,a){var i,n,r,o,s,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,i=t.split("?"),n=i[0],r=i[1]||"",o=Object.keys(a||{}),o.forEach((function(e){r=e+"="+a[e]+"&"+r})),s=n+"?"+r,e.next=9,this.customRequest(s,{},{},"get");case 9:return l=e.sent,e.abrupt("return",l);case 13:throw e.prev=13,e.t0=e["catch"](0),e.t0;case 16:case"end":return e.stop()}}),e,this,[[0,13]])})));function t(t,a){return e.apply(this,arguments)}return t}()},{key:"postRequest",value:function(){var e=i(regeneratorRuntime.mark((function e(t,a){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.customRequest(t,{},a,"post");case 3:return i=e.sent,e.abrupt("return",i);case 7:throw e.prev=7,e.t0=e["catch"](0),e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(t,a){return e.apply(this,arguments)}return t}()},{key:"customRequest",value:function(){var e=i(regeneratorRuntime.mark((function e(t,a,i){var n,r,o,s,u,p=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=p.length>3&&void 0!==p[3]?p[3]:"post",e.prev=1,a=a||{},a.groupCode=a.groupCode||l.default.state.selectProject.groupCode,a.projectId=a.projectId||l.default.state.selectProject.id,r=t.split("?"),o=r[0],s=r[1]||"",-1==s.indexOf("projectId=")&&(s="projectId="+l.default.state.selectProject.id+"&"+s),-1==s.indexOf("groupCode=")&&(s="groupCode="+l.default.state.selectProject.groupCode+"&"+s),t=o+"?"+s,e.next=13,d({url:t,headers:a||{},data:i,method:"post"==n?"post":"get"});case 13:return u=e.sent,e.abrupt("return",u.data);case 17:return e.prev=17,e.t0=e["catch"](1),console.error(e.t0),e.abrupt("return",{result:c.logicConfig.resultObj.failure,reason:"请求异常"});case 21:case"end":return e.stop()}}),e,null,[[1,17]])})));function t(t,a,i){return e.apply(this,arguments)}return t}()}]),e}();t.axiosUtils=p},c3af:function(e,t,a){"use strict";var i=a("c973").default,n=a("970b").default,r=a("5bc3").default,o=a("9523").default;a("96cf"),a("4de4"),a("d3b7"),a("4e82"),a("b0c0"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.sysGraphController=void 0;var s=a("9ab4"),l=a("999e"),c=a("e2b0"),u=a("f842"),d=(0,s.__importDefault)(a("c1df")),p=function(){function e(){n(this,e)}return r(e,null,[{key:"getStateNameByCode",value:function(e){return e==l.graphStateEnum.Draft?"草稿":e==l.graphStateEnum.Publish?"上架":e==l.graphStateEnum.Recyle?"回收站":""}},{key:"getDiagrams",value:function(){var t=i(regeneratorRuntime.mark((function t(a){var i,n,r,o,s,c,p,h,f,m,g,v,y,b,w,C;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return C=function(t){for(var a=0;a<e.zhuanyeArr.length;a++){for(var i=e.zhuanyeArr[a],r=i.children||[],o=!1,s=0;s<r.length;s++){var l=r[s];if(l.code==t){o=!0,n[t]=l;break}}if(o)break}},t.next=3,this.sysGraphHttpUtilsInstance.postRequest("/diagram/getDiagrams",{name:a});case 3:if(i=t.sent,i.result!=u.logicConfig.resultObj.success&&console.error(i.reason),n={},r=[],o=(i.data||[]).filter((function(e){return(e.extraProps||{}).state!=l.graphStateEnum.Recyle})),o.sort((function(e,t){return t.createTime-e.createTime})),0!=this.zhuanyeArr.length){t.next=15;break}return s="/diagram/major/system/instance",t.next=13,this.sysGraphHttpUtilsInstance.postRequest(s,{});case 13:c=t.sent,this.zhuanyeArr=c.data||[];case 15:p=0;case 16:if(!(p<o.length)){t.next=32;break}return h=o[p],f=h.extraProps,m=this.getStateNameByCode(f.state),g=(n[h.system]||{}).aliasName,g||(C(h.system),g=(n[h.system]||{}).aliasName||""),t.next=24,this.getTemplateGraphTypeBySysTypeCode(h.system,h.templateId);case 24:v=t.sent,y=((v||{}).template||{}).name||"",b=(0,d.default)(h.createTime),w=b.format("YYYY[/]MM[/]DD[ ]HH[:]mm"),r.push({id:h.id,name:h.name,sysType:g,sysInstance:f.systemInstanceName,sysTemplate:y,stateName:m,createTime:w});case 29:p++,t.next=16;break;case 32:return t.abrupt("return",r);case 34:case"end":return t.stop()}}),t,this)})));function a(e){return t.apply(this,arguments)}return a}()},{key:"getTemplateGraphTypeBySysTypeCode",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i){var n,r,o,s,l,c,u,d;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=this._tempTemplateObj[a],n){t.next=7;break}return r="/diagram/systemType/template",t.next=5,e.sysGraphHttpUtilsInstance.postRequest(r,{system:a});case 5:o=t.sent,n=o.data||[];case 7:this._tempTemplateObj[a]=n,s=0;case 9:if(!(s<n.length)){t.next=23;break}l=n[s],c=l.children||[],u=0;case 13:if(!(u<c.length)){t.next=20;break}if(d=c[u],d.id!=i){t.next=17;break}return t.abrupt("return",{template:{id:d.id,name:d.name},graphType:{id:l.id,name:l.name}});case 17:u++,t.next=13;break;case 20:s++,t.next=9;break;case 23:return t.abrupt("return",null);case 24:case"end":return t.stop()}}),t,this)})));function a(e,a){return t.apply(this,arguments)}return a}()},{key:"getSysInstanceByProject",value:function(){var e=i(regeneratorRuntime.mark((function e(t,a){var i,n,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i="/diagram/major/system/instance?projectId="+t+"&groupCode="+a,e.next=3,this.sysGraphHttpUtilsInstance.postRequest(i,{});case 3:return n=e.sent,n.result!=u.logicConfig.resultObj.success&&console.error(n.reason),r=n.data||[],this.zhuanyeArr=r,o=[],r.forEach((function(e){var t={value:e.id,label:e.label,code:e.code,children:[]},a=[];(e.children||[]).forEach((function(e){var t={value:e.id,label:e.aliasName,code:e.code,children:[]},i=[];(e.children||[]).forEach((function(e){i.push({value:e.id,label:e.name,code:e.code})})),t.children=i,a.push(t)})),t.children=a,o.push(t)})),e.abrupt("return",o);case 10:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}()},{key:"getTemplateBySysTypeCode",value:function(){var e=i(regeneratorRuntime.mark((function e(t){var a,i,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="/diagram/systemType/template",e.next=3,this.sysGraphHttpUtilsInstance.postRequest(a,{system:t});case 3:return i=e.sent,i.result!=u.logicConfig.resultObj.success&&console.error(i.reason),n=i.data||[],r=[],n.forEach((function(e){var t={value:e.id,label:e.name,code:e.code,children:[]},a=[];(e.children||[]).forEach((function(e){var t={value:e.id,label:e.name,code:e.code};a.push(t)})),t.children=a,r.push(t)})),e.abrupt("return",r);case 9:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"createSysGraph",value:function(){var e=i(regeneratorRuntime.mark((function e(t){var a,i,n,r,o,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="/diagram/newDiagram",e.next=3,this.sysGraphHttpUtilsInstance.postRequest(a,t);case 3:if(i=e.sent,i.result==u.logicConfig.resultObj.success){e.next=7;break}return i.reason="新建系统图失败:"+i.reason,e.abrupt("return",i);case 7:if(n=i.data||{},n.id){e.next=10;break}return e.abrupt("return",{result:u.logicConfig.resultObj.failure,reason:"缺少系统图ID"});case 10:return r="/diagram/loadData",e.next=13,this.sysGraphHttpUtilsInstance.postRequest(r,{id:n.id});case 13:if(o=e.sent,o.result==u.logicConfig.resultObj.success){e.next=17;break}return o.reason="加载模板数据失败:"+o.reason,e.abrupt("return",o);case 17:return e.next=19,this.saveSysGraph(o.data);case 19:if(s=e.sent,s.result==u.logicConfig.resultObj.success){e.next=23;break}return s.reason="保存系统图数据失败:"+s.reason,e.abrupt("return",s);case 23:return e.abrupt("return",o);case 24:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"saveSysGraph",value:function(){var e=i(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="/diagram/newDiagram",e.next=3,this.sysGraphHttpUtilsInstance.postRequest(a,t);case 3:return i=e.sent,e.abrupt("return",i);case 5:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getDiagramById",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i,n){var r,o,s,l,c,d,p,h;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return h=function(t){for(var a=0;a<e.zhuanyeArr.length;a++){for(var i=e.zhuanyeArr[a],n=i.children||[],r=!1,o=0;o<n.length;o++)for(var s=n[o],l=s.children||[],c=0;c<l.length;c++){var u=l[c];if(u.id==t)return u}if(r)break}},r="/diagram/getDiagram?diagramId="+a,t.next=4,this.sysGraphHttpUtilsInstance.getRequest(r,{});case 4:if(o=t.sent,o.result==u.logicConfig.resultObj.success){t.next=8;break}return console.error(o.reason),t.abrupt("return",o);case 8:if(s=o.data||{},s.id){t.next=11;break}return t.abrupt("return",{result:u.logicConfig.resultObj.failure,reason:"缺少系统图ID"});case 11:if(0!=this.zhuanyeArr.length){t.next=17;break}return l="/diagram/major/system/instance?groupCode="+i+"&projectId="+n,t.next=15,this.sysGraphHttpUtilsInstance.postRequest(l,{});case 15:c=t.sent,this.zhuanyeArr=c.data||[];case 17:return d=h(o.data.systemId),console.log(d),o.data.systemInstanceName=d.name||"",t.next=22,this.getTemplateGraphTypeBySysTypeCode(o.data.system,o.data.templateId);case 22:return p=t.sent,o.data.graphTypeName=((p||{}).graphType||{}).name,o.data.templateName=((p||{}).template||{}).name,o.data.stateName=this.getStateNameByCode(o.data.extraProps.state),t.abrupt("return",o);case 29:case"end":return t.stop()}}),t,this)})));function a(e,a,i){return t.apply(this,arguments)}return a}()},{key:"updateSysGraphState",value:function(){var e=i(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="/diagram/update/state",e.next=3,this.sysGraphHttpUtilsInstance.postRequest(a,t);case 3:return i=e.sent,e.abrupt("return",i);case 5:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"delSysGraph",value:function(){var e=i(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.updateSysGraphState({id:t,state:l.graphStateEnum.Recyle});case 2:return a=e.sent,e.abrupt("return",a);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"publishSysGraph",value:function(){var e=i(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.updateSysGraphState({id:t,state:l.graphStateEnum.Publish});case 2:return a=e.sent,e.abrupt("return",a);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"draftGraph",value:function(){var e=i(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.updateSysGraphState({id:t,state:l.graphStateEnum.Draft});case 2:return a=e.sent,e.abrupt("return",a);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"openGraphPage",value:function(e,t,a,i,n,r,o){var s="/"+r+u.logicConfig.routerNameConfig.systemGraphEditName+"?ost="+e+"&did="+(t||"")+"&gc="+(a||"")+"&pri="+(i||"")+"&prn="+encodeURIComponent(n||"");!0===o?window.open(s):window.location.href=s}}]),e}();o(p,"sysGraphHttpUtilsInstance",new c.sysGraphHttpUtils),o(p,"_tempTemplateObj",{}),o(p,"zhuanyeArr",[]),t.sysGraphController=p},c46e:function(e,t,a){},c52b:function(e,t,a){},c6dc:function(e,t,a){"use strict";a("1bfb")},c6f6:function(e,t,a){},c7cf:function(e,t,a){},c814:function(e,t,a){"use strict";var i=a("c973").default,n=a("970b").default,r=a("5bc3").default,o=a("9523").default;a("96cf"),Object.defineProperty(t,"__esModule",{value:!0});var s=a("ed29"),l=a("f52f"),c=function(){function e(){n(this,e)}return r(e,null,[{key:"getDataDictionary",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/dict/query",a);case 2:return n=t.sent,t.abrupt("return",i?i(n):n);case 4:case"end":return t.stop()}}),t)})));function a(e,a){return t.apply(this,arguments)}return a}()},{key:"deliveredInfos",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/equip-component/dict/delivered/infos",a);case 2:return n=t.sent,t.abrupt("return",i?i(n):n);case 4:case"end":return t.stop()}}),t)})));function a(e,a){return t.apply(this,arguments)}return a}()},{key:"getEquipLkSys",value:function(){var t=i(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest(l.dict_pre+"/system/equip/category",a);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));function a(e){return t.apply(this,arguments)}return a}()},{key:"queryPhysicsAllType",value:function(){var t=i(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest("/datacenter/dict/category",a);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));function a(e){return t.apply(this,arguments)}return a}()},{key:"setDataDictionary",value:function(){var t=i(regeneratorRuntime.mark((function t(a,i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.http.postRequest(l.dict_pre+"/setting-dic-project",a);case 2:return n=t.sent,t.abrupt("return",i?i(n):n);case 4:case"end":return t.stop()}}),t)})));function a(e,a){return t.apply(this,arguments)}return a}()}]),e}();o(c,"http",new s.baseHttpUtils),t.default=c},c988:function(e,t,a){"use strict";a("8d43")},c9fe:function(e,t,a){"use strict";a("5ca7")},cc2b:function(e,t,a){"use strict";a("a197")},cd0c:function(e,t,a){"use strict";a("1e1d")},cd24:function(e,t,a){"use strict";a("b4b3")},cd260:function(e,t,a){},cd4c:function(e,t,a){},cdd7:function(e,t,a){"use strict";var i=a("970b").default,n=a("5bc3").default,r=a("9523").default;a("e9c4"),a("ac1f"),a("1276"),a("99af"),Object.defineProperty(t,"__esModule",{value:!0}),t.toolUtils=void 0;var o=function(){function e(){i(this,e)}return n(e,null,[{key:"getBaseHttpUrl",value:function(e,t){e+=e.lastIndexOf("/")==e.length-1?"":"/";var a=0==t.indexOf("/")?1:0;return t=t.substring(a),e+t}},{key:"returnNewObj",value:function(e,t,a){if(t.length>1){var i=t.shift();e[i]||(e[i]={}),this.returnNewObj(e[i],t,a)}else{var n=t[0];e[n]=a}}},{key:"rKeyStrVal",value:function(e,t){var a=e;return t instanceof Object&&!(t instanceof Array)?a+"."+this.rKeyStrVal():a}},{key:"formatData",value:function(e){var t=JSON.parse(JSON.stringify(e));for(var a in t)if(a.indexOf(".")>-1){var i=a.split(".");this.returnNewObj(t,i,t[a]),delete t[a]}return t}}]),e}();r(o,"desFormatData",(function(e){var t={};for(var a in e)if(e[a]instanceof Object&&!(e[a]instanceof Array))for(var i in e[a]){var n="".concat(a,".").concat(i);t[n]=e[a][i]}else t[a]=e[a];return t})),t.toolUtils=o},ce45:function(e,t,a){"use strict";a("d277")},ce7e:function(e,t,a){"use strict";a("25e4")},cfd4:function(e,t,a){"use strict";a("6f61")},d183:function(e,t,a){},d277:function(e,t,a){},d37a:function(e,t,a){},d4c2:function(e,t,a){"use strict";a("aa77")},d521:function(e,t,a){},d540:function(e,t,a){"use strict";a("3a69")},d5e1:function(e,t,a){"use strict";a("b3e7")},d5e8:function(e,t,a){e.exports=a.p+"public/img/barController.1b36802b.svg"},d69d:function(e,t,a){"use strict";var i=a("970b").default,n=a("5bc3").default;Object.defineProperty(t,"__esModule",{value:!0}),t.sessionStore=void 0;var r=a("f842"),o=function(){function e(){i(this,e)}return n(e,null,[{key:"userId",get:function(){return sessionStorage.getItem(r.logicConfig.tokenKeyName)},set:function(e){sessionStorage.setItem(r.logicConfig.tokenKeyName,e)}},{key:"loginOut",value:function(){sessionStorage.clear()}}]),e}();t.sessionStore=o},d783:function(e,t,a){},d7ef:function(e,t,a){},d9dd:function(e,t,a){},dbf4:function(e,t,a){"use strict";a("973f")},dcfd:function(e,t,a){"use strict";a("767c")},dd4c:function(e,t,a){"use strict";a("f544")},e2b0:function(e,t,a){"use strict";var i=a("5bc3").default,n=a("970b").default,r=a("ed6d").default,o=a("2d0d").default;Object.defineProperty(t,"__esModule",{value:!0}),t.sysGraphHttpUtils=void 0;var s=a("209e"),l=function(e){r(a,e);var t=o(a);function a(){return n(this,a),t.call(this,window.__systemConf.sysGraphServiceUrl)}return i(a)}(s.httpUtils);t.sysGraphHttpUtils=l},e59b:function(e,t,a){},e7ad:function(e,t,a){"use strict";a("5e54")},eabc:function(e,t,a){},eb67:function(e,t,a){},ed29:function(e,t,a){"use strict";var i=a("5bc3").default,n=a("970b").default,r=a("ed6d").default,o=a("2d0d").default;Object.defineProperty(t,"__esModule",{value:!0}),t.baseHttpUtils=void 0;var s=a("209e"),l=function(e){r(a,e);var t=o(a);function a(){return n(this,a),t.call(this,window.__systemConf.baseServiceUrl)}return i(a)}(s.httpUtils);t.baseHttpUtils=l},ed99:function(e,t,a){},eda9:function(e,t,a){"use strict";a("3ca2")},eea7:function(e,t,a){e.exports=a.p+"public/img/fontStyle.a57fbf8b.svg"},f165:function(e,t,a){},f17c:function(e,t,a){"use strict";a("46bf")},f369:function(e,t,a){"use strict";a("c6f6")},f413:function(e,t,a){"use strict";a("787e")},f510:function(e,t,a){},f52f:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.model_pre=t.floor_pre=t.graphhic_pre=t.equipcomponentdic_pre=t.equipquery_pre=t.equipcomponent_pre=t.rwd_pre=t.object_pre=t.dict_pre=t.datacenter_pre=void 0,t.datacenter_pre="/datacenter",t.dict_pre="".concat(t.datacenter_pre,"/dict"),t.object_pre="".concat(t.datacenter_pre,"/object"),t.rwd_pre="/rwd",t.equipcomponent_pre="/equip-component",t.equipquery_pre="".concat(t.equipcomponent_pre,"/equip-query"),t.equipcomponentdic_pre="".concat(t.equipcomponent_pre,"/dict"),t.graphhic_pre="".concat(t.datacenter_pre,"/graphic"),t.floor_pre="".concat(t.object_pre,"/floor"),t.model_pre="/revit-algorithm"},f544:function(e,t,a){},f842:function(e,t,a){"use strict";var i=a("970b").default,n=a("5bc3").default,r=a("9523").default;Object.defineProperty(t,"__esModule",{value:!0}),t.logicConfig=void 0;var o=function(){function e(){i(this,e)}return n(e,null,[{key:"tokenKeyName",get:function(){return this._tokenKeyName}},{key:"routerNameConfig",get:function(){return this._routerNameConfig}},{key:"resultObj",get:function(){return this._resultObj}}]),e}();r(o,"_tokenKeyName","tokenId"),r(o,"_routerNameConfig",{loginRouteName:"/login",systemGraphName:"/systemGraph",systemGraphEditName:"/systemGraphEdit",cadDrawingManageRoute:"cadDrawingManage"}),r(o,"_resultObj",{success:"success",failure:"failure"}),t.logicConfig=o},fb3b:function(e,t,a){e.exports=a.p+"public/img/editLogo.18652260.svg"},fb63:function(e,t,a){"use strict";var i=a("c973").default,n=a("970b").default,r=a("5bc3").default;a("96cf"),a("d3b7"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.authUtils=void 0;var o=a("9ab4"),s=(0,o.__importDefault)(a("4360")),l=a("d69d"),c=a("f842"),u=a("c2f8"),d=function(){function e(){n(this,e)}return r(e,[{key:"routerBeforeEach",value:function(){var e=i(regeneratorRuntime.mark((function e(t,a,i){var n,r,o,d,p;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.path!=c.logicConfig.routerNameConfig.loginRouteName){e.next=4;break}return!s.default.state.fromPath&&s.default.commit("updateFromPath","/"),i(),e.abrupt("return");case 4:if(n=l.sessionStore.userId,n){e.next=9;break}return s.default.commit("updateFromPath",t.path),i({path:c.logicConfig.routerNameConfig.loginRouteName}),e.abrupt("return");case 9:if(!s.default.state.user.id){e.next=12;break}return s.default.commit("updateBreadcrumbs",{to:t.path}),e.abrupt("return",i());case 12:return r=new u.userController,e.next=15,r.getUserInfoById();case 15:if(o=e.sent,o.result==c.logicConfig.resultObj.success){e.next=19;break}return console.error("获取用户信息失败,原因:"+o.reason),e.abrupt("return",i({path:c.logicConfig.routerNameConfig.loginRouteName}));case 19:if(d=o.content[0]||{},d.userId){e.next=23;break}return console.error("获取用户信息失败,原因:无效的用户ID"),e.abrupt("return",i({path:c.logicConfig.routerNameConfig.loginRouteName}));case 23:s.default.commit("updateUser",{id:d.userId,name:d.userName}),s.default.commit("updateMenus",window.__systemConf.menus),s.default.commit("updateBreadcrumbs",{to:t.path}),p=[],d.projects.forEach((function(e){p.push({id:e.projectId,name:e.projectLocalName,groupCode:e.groupCode})})),s.default.commit("updateProjects",p),s.default.commit("layout/setProjects",p),s.default.commit("layout/setprojectId",p[0].id),s.default.commit("updateSelectProject",p[0]),i();case 33:case"end":return e.stop()}}),e)})));function t(t,a,i){return e.apply(this,arguments)}return t}()}]),e}();t.authUtils=d},fd8a:function(e,t,a){},febd:function(e,t,a){"use strict";a.r(t);a("2909");var i=a("3835"),n=a("53ca"),r=(a("d81d"),a("3410"),a("ac1f"),a("1276"),a("a15b"),a("c740"),a("e9c4"),a("00b4"),a("4de4"),a("d3b7"),a("99af"),a("caad"),a("2532"),a("4e82"),a("fb6a"),a("25f0"),a("b0c0"),a("b64b"),a("159b"),a("4fad"),a("a434"),a("4d9f")),o=a.n(r),s=[{id:"platform",name:"平台管理",orders:1,appId:"adm",url:"/platform",type:"menu",disabled:!0},{id:"project_manag",name:"项目管理",orders:2,parentId:"platform",appId:"adm",url:"/platform/project",type:"menu",icon:"icon-project-o"},{id:"personnel_manag",name:"人员管理",orders:3,parentId:"platform",appId:"adm",url:"/platform/user",type:"menu",icon:"icon-renyuanguanli"},{id:"role_manag",name:"角色管理",orders:4,parentId:"platform",appId:"adm",url:"/platform/role",type:"menu",icon:"icon-jiaoseguanli"},{id:"ready",name:"前期准备",orders:5,appId:"adm",type:"menu",disabled:!0},{id:"build_floor",name:"建筑楼层管理",orders:6,parentId:"ready",appId:"adm",url:"/ready/buildfloor",type:"menu",icon:"icon-jianzhu"},{id:"modelrule",name:"模型识别规则管理",orders:7,parentId:"ready",appId:"adm",url:"/ready/modelrule",type:"menu",icon:"icon-jianzhu"},{id:"appuser",name:"扫楼App用户管理",orders:8,parentId:"ready",appId:"adm",url:"/ready/appuser",type:"menu",icon:"icon-app4"},{id:"information",name:"信息收集",orders:9,appId:"adm",type:"menu",disabled:!0},{id:"model",name:"模型管理",orders:10,parentId:"information",appId:"adm",url:"/model",type:"menu",icon:"icon-moxing___",menuChildrens:[{id:"model_file",name:"模型文件管理",orders:11,parentId:"model",appId:"adm",url:"/model/file",type:"menu"},{id:"model_report",name:"模型质量报告",orders:12,parentId:"model",appId:"adm",url:"/model/report",type:"menu"}]},{id:"point",name:"系统集成",orders:13,parentId:"information",appId:"adm",url:"/point",type:"menu",icon:"icon-xitong",menuChildrens:[{id:"pointsetting",name:"子系统点位接入",orders:14,parentId:"point",appId:"adm",url:"/point/pointsetting",type:"menu"},{id:"dynamicdata",name:"配置动参从点位取值",orders:15,parentId:"point",appId:"adm",url:"/point/dynamicdata",type:"menu"},{id:"report",name:"系统集成成果管理",orders:16,parentId:"point",appId:"adm",url:"/point/report",type:"menu"},{id:"testing",name:"系统集成监测",orders:17,parentId:"point",appId:"adm",url:"/point/testing",type:"menu"},{id:"point_tool",name:"系统工具库",orders:18,parentId:"point",appId:"adm",url:"/point/tool",type:"menu"}]},{id:"scanbuilding",name:"扫楼作业",orders:19,parentId:"information",appId:"adm",url:"/floor",type:"menu",icon:"icon-shanglou",menuChildrens:[{id:"floor_task",name:"现场任务管理",orders:20,parentId:"scanbuilding",appId:"adm",url:"/floor/task",type:"menu"},{id:"floor_data",name:"现场数据整理",orders:21,parentId:"scanbuilding",appId:"adm",url:"/floor/data",type:"menu",menuChildrens:[{id:"floor_plan",name:"位置标签整理",orders:1,parentId:"floor_data",appId:"adm",url:"/floor/plan",type:"menu"}]},{id:"abnormalprop",name:"扫楼报告",orders:22,parentId:"scanbuilding",appId:"adm",url:"/floor/abnormalprop",type:"menu"},{id:"floor_log",name:"扫楼日志查看",orders:23,parentId:"scanbuilding",appId:"adm",url:"/floor/log",type:"menu"}]},{id:"ledger",name:"台账管理",orders:24,parentId:"information",appId:"adm",url:"/ledger",type:"menu",icon:"icon-taizhangzhangbushezhi",menuChildrens:[{id:"equipment",name:"设备台账",orders:25,parentId:"ledger",appId:"adm",url:"/ledger/facility",type:"menu"},{id:"system",name:"系统台账",orders:26,parentId:"ledger",appId:"adm",url:"/ledger/list",type:"menu"},{id:"space",name:"业务空间台账",orders:27,parentId:"ledger",appId:"adm",url:"/ledger/spacelist",type:"menu"},{id:"shaft",name:"竖井台账",orders:28,parentId:"ledger",appId:"adm",url:"/ledger/cenotelist",type:"menu"},{id:"tenant",name:"租户台账",orders:29,parentId:"ledger",appId:"adm",url:"/ledger/rentlist",type:"menu"},{id:"datareport",name:"数据质量报告",orders:30,parentId:"ledger",appId:"adm",url:"/ledger/datareport",type:"menu"}]},{id:"relation",name:"关系维护并计算",orders:31,appId:"adm",type:"menu",disabled:!0},{id:"overview",name:"全部关系总览",orders:32,parentId:"relation",appId:"adm",url:"/relation/overview",type:"menu",icon:"icon-jiqixuexi-"},{id:"deliver",name:"数据项目化交付",orders:33,appId:"adm",url:"/deliver",type:"menu",disabled:!0},{id:"synclog",name:"数据同步日志",orders:34,parentId:"deliver",appId:"adm",url:"/synclog",type:"menu",icon:"icon-Log"},{id:"draw",name:"绘图工具",orders:35,appId:"adm",url:"/draw",type:"menu",disabled:!0},{id:"topo",name:"拓扑图",orders:36,parentId:"draw",appId:"adm",url:"/draw/topo",type:"menu",icon:"icon-topology"},{id:"plane",name:"平面图",orders:37,parentId:"draw",appId:"adm",url:"/draw/plane",type:"menu",icon:"icon-pingmiantu"}],l={},c=[],u=[];function d(e){var t=new Date;if("object"==Object(n["a"])(e)&&"function"==typeof(new Date).getMonth)t=e;else if("string"==typeof e){var a=e.split("-");3==a.length&&(t=new Date(a[0]+"-"+a[1]+"-"+a[2]))}return t}l.getPointDetails=function(e){e.map((function(e){e.PointList&&e.PointList.length&&e.PointList.map((function(e){c.push(e.X),u.push(e.Y)}))}))},l.getPoint=function(e){for(var t in c=[],u=[],e)l.getPointDetails(e[t]);var a=Math.max.apply(null,c),i=Math.min.apply(null,c),n=Math.max.apply(null,u),r=Math.min.apply(null,u),o={maxX:a,minX:i,maxY:n,minY:r};return o},l.compareArr=function(e,t){var a=[];for(key in e){for(var i=e[key],n=0,r=0;r<t.length;r++){var o=t[r];i==o&&n++}0===n&&a.push(i)}return a},l.changeMap=function(e,t,a){var i=e.map((function(e){e[a]&&e[a].length&&e[a].map((function(e){return Array.isArray(e)?e.map((function(e){return e.Y=e.Y*t,e})):(e.Y=e.Y*t,e)}))}));return i},l.getMouseCanvas=function(e,t){var a=e.canvasView.getBoundingClientRect(),i=t.clientX-a.left,n=t.clientY-a.top;return e.mapToScene({x:i,y:n})},l.mouseInElement=function(e,t,a){for(var i=l.getMouseCanvas(e,t),n=!1,r=e.scene.root.children,o=0,s=a||3;o<r.length;o++)if(r[o].type==s&&r[o].contains(i)){n=!0;break}return{falg:n,item:r[o]||[],index:o}},l.clear=function(e,t,a,i){var n=[];if(e&&e.length){var r=0;for(r;r<e.length;r++){var o=0;for(o;o<a.length;o++)(e[r][t]=t&&e[r][i]==a[o][i])&&n.push(r)}}return n},l.getText=function(e,t){var a="";return e&&e.length&&e.map((function(e){a+=(a?"、":"")+e[t]})),a},l.cutString=function(e,t,a){return e.substring(0,t)+"..."+a},l.deepCopy=function(e){for(var t=[],a=0,i=e.length;a<i;a++)e[a]instanceof Array?t[a]=l.deepCopy(e[a]):t[a]=e[a];return t},l.copyArr=function(e){if(!e||"object"!==Object(n["a"])(e))throw new Error("error arguments","shallowClone");var t=e.constructor===Array?[]:{};for(var a in e)e.hasOwnProperty(a)&&(e[a]&&"object"===Object(n["a"])(e[a])?(t[a]=e[a].constructor===Array?[]:{},t[a]=l.copyArr(e[a])):t[a]=e[a]);return t},l.deepCopyObj=function(e){var t=e.constructor===Array?[]:{};for(var a in e)t[a]="Object"===typeof e[a]?l.deepCopyObj(e[a]):e[a];return t},l.deepClone=function(e){var t=Object.getPrototypeOf(e);return Object.assign({},Object.create(t),e)},l.customDropdownRenderer=function(e,t,a,i,n,r,s){var l=s.chosenOptions.data;if("undefined"===typeof l||"undefined"===typeof l.length||!l.length)return o.a.renderers.TextRenderer(e,t,a,i,n,r,s),t;var c=(r+"").split(",");r=[];for(var u=0;u<l.length;u++)if(l[u].content&&l[u].content.length)for(var d=0;d<l[u].content.length;d++)if(l[u].content[d]&&l[u].content[d].length)for(var p=0;p<l[u].content[d].length;p++)c.indexOf(l[u].content[d].content[p].Code+"")>-1&&(l[u].content[d].content[p].Code,r.push(l[u].content[d].content[p].Name));else c.indexOf(l[u].content[d].Code+"")>-1&&(l[u].content[d].Code,r.push(l[u].content[d].Name));else c.indexOf(l[u].Code+"")>-1&&(l[u].Code,r.push(l[u].Name));return r=r.join(", "),o.a.renderers.TextRenderer(e,t,a,i,n,r,s),t},l.multipleDropdownRenderer=function(e,t,a,i,n,r,s){var l=s.chosenOptions;if("undefined"===typeof l||"undefined"===typeof l.length||!l.length)return o.a.renderers.TextRenderer(e,t,a,i,n,r,s),t;try{for(var c=r,u=[],d=0;d<l.length;d++)if(l[d].content&&l[d].content.length)for(var p=function(e){if(l[d].content[e]&&l[d].content[e].length)for(var t=function(t){c.findIndex((function(a){return a==l[d].content[e].content[t].Code+""}))>-1&&(l[d].content[e].content[t].Code,u.push(l[d].content[e].content[t].Name))},a=0;a<l[d].content[e].length;a++)t(a);else c.findIndex((function(t){return t==l[d].content[e].Code+""}))>-1&&(l[d].content[e].Code,u.push(l[d].content[e].Name))},h=0;h<l[d].content.length;h++)p(h);else c.findIndex((function(e){return e==l[d].Code+""}))>-1&&(l[d].Code,u.push(l[d].Name));return u=u.join(","),o.a.renderers.TextRenderer(e,t,a,i,n,u,s),t}catch(f){return o.a.renderers.TextRenderer(e,t,a,i,n,"",s),t}},l.lookDetails=function(e,t,a,i,r,o,s){return t.style.color="#409EFF",t.style.cursor="pointer",o?"object"==Object(n["a"])(o)?t.innerHTML="已有值,查看":t.innerHTML=o:t.innerHTML="查看详情",t},l.hasRelation=function(e,t,a,i,n,r,o){return t.innerHTML=r?"已关联":"未关联",t},l.LinkEquipLocalName=function(e,t,a,i,n,r,o){if(r)t.innerHTML="null"==r?"":r;else{var s=e.getDataAtRowProp(a,"linkEquipName");t.innerHTML="null"==s?"":s}return t},l.num=function(e,t,a,i,n,r,o){return t.style.color="#409EFF",t.style.cursor="pointer",t.innerHTML=r,t},l.setItem=function(e,t){"string"==typeof t?localStorage.setItem(e,t):localStorage.setItem(e,JSON.stringify(t))},l.getItem=function(e){var t=/^\[|\{|\}|\]$/g,a=localStorage.getItem(e);return t.test(a)?JSON.parse(a):a},l.removeItem=function(e){localStorage.removeItem(e)},l.differenceArr=function(e,t){return e.concat(t).filter((function(a){return!e.includes(a)||!t.includes(a)}))},l.sameArr=function(e,t){return e.filter((function(e){return t.includes(e)}))},l.sortArr=function(e,t,a){function i(e){return function(t,i){var n=t[e],r=i[e];return a?n-r:r-n}}return e.sort(i(t))},l.pagination=function(e,t,a){var i=(e-1)*t;return i+t>=a.length?a.slice(i,a.length):a.slice(i,i+t)},l.getSameItems=function(e,t,a,i){var n=[];return e.map((function(e){a.map((function(a){e[t]==a[i]&&n.push(e)}))})),n},l.isIn=function(e,t,a){var i,r,o,s,l=0,c="object"==Object(n["a"])(e)?[e.x,e.y]:[e,t],u=a,d=u.length;for(i=u[0],o=1;o<=d;o++)r=u[o%d],c[0]>Math.min(i[0],r[0])&&c[0]<=Math.max(i[0],r[0])&&c[1]<=Math.max(i[1],r[1])&&i[0]!=r[0]&&(s=(c[0]-i[0])*(r[1]-i[1])/(r[0]-i[0])+i[1],(i[1]==r[1]||c[1]<=s)&&l++),i=r;return l%2!=0},l.arrayUnique=function(e,t){var a={};return e.reduce((function(e,i){return!a[i[t]]&&(a[i[t]]=e.push(i)),e}),[])},l.dateAddYear=function(e,t){var a=d(e),i=parseInt(t),n=a.getFullYear(),r=a.getMonth(),o=a.getDate(),s=n+i,l=new Date(s,r,o);while(l.getMonth()!=r)o--,l=new Date(s,r,o);var c=l.getMonth()+1,u=l.getDate();c=1==c.toString().length?"0"+c:c,u=1==u.toString().length?"0"+u:u;var p=l.getFullYear()+"-"+c+"-"+u;return p},l.formatDate=function(e){var t=e.getFullYear(),a=e.getMonth()+1,i=e.getDate(),n=e.getHours(),r=e.getMinutes(),o=e.getSeconds();return t+"-"+(a>10?a:"0"+a)+"-"+(i>10?i:"0"+i)+" "+n+":"+(r>10?r:"0"+r)+":"+(o>10?o:"0"+o)},l.formatDataSource=function(e){var t,a=[];function i(e){var t=[];return e.map((function(e){e.code&&e.name&&t.push({Code:e.code,Name:e.name}),e.content&&e.content.length&&(t=t.concat(i(e.content)))})),t}try{return t=e instanceof Array?e:JSON.parse(e),t?i(t):a}catch(n){return console.log(n),a}},l.isObjectValueEqual=function(e,t){var a=Object.keys(e),i=Object.keys(t);if(a.length!=i.length)return!1;for(var n=0;n<a.length;n++){var r=a[n];if(e[r]instanceof Object||t[r]instanceof Object){if(!l.isObjectValueEqual(e[r],t[r]))return!1}else if(e[r]!=t[r]&&(e[r]||t[r]))return!1}return!0},l.dataForKey=function(e,t){var a=t.split(".");if(a&&a[0]){for(var i=0;i<a.length;i++){if(!a[i]||!e[a[i]])return"";e=e[a[i]]}return e}},l.setDataForKey=function(e,t,a){var i=t.split(".");if(i&&i[0])for(var n=0;n<i.length;n++)i[n]&&e[i[n]]||(e[i[n]]={}),void 0!==a?n==i.length-1&&(e[i[n]]=a):n==i.length-1&&(e[i[n]]=""),e=e[i[n]]},l.flattenKeys=function(e){if(void 0!=e){var t={};return r("",e),t}function a(e){return"object"===Object(n["a"])(e)&&!Array.isArray(e)}function r(e,n){Object.entries(n).forEach((function(n){var o=Object(i["a"])(n,2),s=o[0],l=o[1],c=e?"".concat(e,".").concat(s):s;a(l)?r(c,l):t[c]=l}))}},l.formatMenu=function(e){var t=[],a=[],i=JSON.parse(JSON.stringify(s));return(e||[]).forEach((function(n){for(var r=0;r<i.length;r++){var o=i[r];if(o.name==n.authorizationName){if(-1==a.indexOf(n.productName)){var s=i.filter((function(e){return e.name==n.productName}))[0];s&&(t.push(JSON.parse(JSON.stringify(s))),a.push(n.productName))}t.push(o);for(var l=JSON.parse(JSON.stringify(o.menuChildrens||[])),c=0;c<l.length;c++){var u=l[c];0==e.filter((function(e){return e.authorizationName==u.name})).length&&(l.splice(c,1),--c)}o.menuChildrens=l,a.push(o.name);break}}})),t.sort((function(e,t){return e.orders-t.orders})),t};t["default"]=l},ffba:function(e,t,a){}});
  2. //# sourceMappingURL=index.bd3e0adf.js.map