(function(e){function t(t){for(var a,i,l=t[0],c=t[1],s=t[2],d=0,p=[];d1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["id","label","children"],a=[];return e.forEach((function(e){var r={};if(r[n[0]]=e[t[0]],r[n[1]]=e[t[1]],r[n[2]]=e[t[2]],r.level=e.level,e.children&&e.children.length){var o=we(e.children,["code","name","children"]);r.children=o}else r.children=[];a.push(r)})),a}var ke={data:function(){return{partitioneList:[],spaceTree:[],defaultProps:{children:"children",label:"label"},checkList:[]}},methods:{getSpaceTree:function(){var e=this;A({target:"rtn"}).then((function(t){e.spaceTree=we(t.rtn,["code","name","children"])}))},spaceZone:function(){var e=this;D({}).then((function(t){t.rtn.forEach((function(t){e.partitioneList.push({name:t.name,id:t.code})}))}))}},created:function(){this.getSpaceTree(),this.spaceZone()}},ye=ke,_e=(n("f34f"),Object(u["a"])(ye,ve,ge,!1,null,"2a5e79f4",null)),xe=_e.exports,Se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-row",[n("el-col",{attrs:{span:12}},[n("el-collapse",{attrs:{accordion:""},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.pipeList,(function(t,a){return n("el-collapse-item",{key:a,attrs:{title:t.type,name:a+1}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[e._l(e.tableHead,(function(e,t){return n("el-table-column",{key:t,attrs:{prop:e.name,label:e.label,width:e.width}})})),n("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("i",{staticClass:"el-icon-delete",on:{click:function(n){return e.handleEdit(t.$index,t.row)}}})]}}],null,!0)})],2),n("div",[n("span",[e._v("需要系统图:")]),n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1),n("div",[n("span",[e._v("精细化机房")]),n("el-checkbox-group",{model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},[e._l(e.mrList,(function(e,t){return n("el-checkbox",{key:t,staticClass:"checkList",attrs:{label:e.name}})})),n("el-checkbox",{staticClass:"checkList",attrs:{label:"复选框 A"}})],2)],1)],1)})),1)],1)],1)],1)},je=[],Ce={data:function(){return{activeName:"1",pipeList:[{type:"中央供冷系统",teble:[]},{type:"应急照明系统",teble:[]}],tableHead:[{label:"管道类型名",name:"pipeName",width:"180"},{label:"仅干管",name:"onlyMain",width:"180"},{label:"含支路管道",name:"andBranch",width:"180"},{label:"其他",name:"anthor",width:"180"}],tableData:[{date:"2016-05-02",pipeName:"王小虎",label:"上海市普陀区金沙江路 1518 弄"}],mrList:[],checkList:[]}},mounted:function(){var e=this;z({target:"rtn"}).then((function(t){e.mrList=t.rtn.map((function(e){return e.id=e.code,e}))}))}},Le=Ce,Oe=(n("8b78"),Object(u["a"])(Le,Se,je,!1,null,"16dfffb7",null)),Ve=Oe.exports,Ne=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"relation"},[n("el-row",[n("el-col",{attrs:{span:12}},[n("div",{staticClass:"top"},[n("h5",[e._v("关系范围")]),n("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-circle-plus"},on:{click:e.addItem}},[e._v("添加")])],1)])],1),n("el-row",[n("el-col",{attrs:{span:12}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[n("el-table-column",{attrs:{prop:"date",label:"日期",width:"180"}}),n("el-table-column",{attrs:{prop:"name",label:"姓名",width:"180"}}),n("el-table-column",{attrs:{prop:"address",label:"地址"}}),n("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("i",{staticClass:"el-icon-delete",on:{click:function(n){return e.handleEdit(t.$index,t.row)}}})]}}])})],1)],1)],1),n("el-dialog",{attrs:{title:"提示",visible:e.dialogVisible,width:"30%","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("span",[e._v("这是一段信息")]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("确 定")])],1)])],1)},Ee=[],Re={data:function(){return{dialogVisible:!1,tableData:[{date:"2016-05-02",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-04",name:"王小虎",address:"上海市普陀区金沙江路 1517 弄"},{date:"2016-05-01",name:"王小虎",address:"上海市普陀区金沙江路 1519 弄"},{date:"2016-05-03",name:"王小虎",address:"上海市普陀区金沙江路 1516 弄"}]}},methods:{handleClose:function(e){this.$confirm("确认关闭?").then((function(t){e()})).catch((function(e){}))},handleEdit:function(){this.dialogVisible=!0},addItem:function(){this.dialogVisible=!0},getRelation:function(){F({target:"rtn"}).then((function(e){console.log(e)}))}},mounted:function(){this.getRelation()}},Te=Re,Je=(n("a911"),Object(u["a"])(Te,Ne,Ee,!1,null,"d5bf117a",null)),Pe=Je.exports,qe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-tree",{attrs:{data:e.treeList,"show-checkbox":"","node-key":"id","default-expanded-keys":[2,3],"default-checked-keys":[5],props:e.defaultProps}})],1)},$e=[],Ie={data:function(){return{treeList:[],defaultProps:{children:"children",label:"aliasName"}}},methods:{majorSys:function(){var e=this;H({scopeFilter:!0,target:"rtn"}).then((function(t){e.treeList=t.rtn}))}},created:function(){this.majorSys()}},Ae=Ie,De=Object(u["a"])(Ae,qe,$e,!1,null,null,null),He=De.exports,ze={components:{equip:me,floorSpace:xe,pipe:Ve,relation:Pe,system:He},data:function(){return{activeName:"first"}},mounted:function(){}},Fe=ze,Ue=(n("bbda"),Object(u["a"])(Fe,se,ue,!1,null,"21a1a1c6",null)),Be=Ue.exports;a["default"].use(_["a"]);var Me=[{path:"/",name:"workscope",component:Be},{path:"/spacetask",name:"spacetask",component:X},{path:"/qrcode",name:"qrcode",component:ce},{path:"/workscope",name:"workscope",component:Be}],Qe=new _["a"]({mode:"history",base:"/poc_web/",routes:Me}),Ze=Qe,Ge=n("5c96"),Ke=n.n(Ge);n("0fae");a["default"].config.productionTip=!1,a["default"].use(Ke.a),new a["default"]({router:Ze,store:V,render:function(e){return e(y)}}).$mount("#app")},"7c55":function(e,t,n){"use strict";n("2395")},"849b":function(e,t,n){},"8b78":function(e,t,n){"use strict";n("be27")},a911:function(e,t,n){"use strict";n("1f00")},b7c7:function(e,t,n){"use strict";n("849b")},bab7:function(e,t,n){},bbda:function(e,t,n){"use strict";n("2e9c")},be27:function(e,t,n){},dd74:function(e,t,n){},f34f:function(e,t,n){"use strict";n("bab7")},fd00:function(e,t,n){"use strict";n("dd74")}}); //# sourceMappingURL=app.74628058.js.map