(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-68004bea","chunk-6a58fab6"],{"01f0":function(e,t,a){e.exports=a.p+"static/img/video.aaceb580.png"},"0331":function(e,t,a){e.exports=a.p+"static/img/home.33567b37.svg"},"055e":function(e,t,a){e.exports=a.p+"static/img/home1.e4eca920.svg"},"0646":function(e,t,a){},"0784":function(e,t,a){},"0843":function(e,t,a){"use strict";a("0646")},"08e9":function(e,t,a){e.exports=a.p+"static/img/patrol-plan.9b692273.svg"},"0e8f":function(e,t,a){e.exports=a.p+"static/img/tree.59ecebc1.svg"},"0f98":function(e,t,a){},"10f6":function(e,t,a){},1330:function(e,t,a){},"14cd":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{attrs:{inline:!0}},[a("el-form-item",{attrs:{label:"操作内容:"}},[a("el-input",{attrs:{placeholder:"请输入操作内容",clearable:""},model:{value:e.operation,callback:function(t){e.operation=t},expression:"operation"}})],1),a("el-form-item",{staticClass:"right"},[a("el-button",{attrs:{plain:"",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.getList()}}},[e._v("搜索")])],1)],1),a("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.tableData,stripe:"",id:"out-table",border:""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{prop:"id",label:"序号","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"operation",label:"操作内容","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"ip",label:"请求ip","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"userName",label:"操作人员","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"creatDate",label:"操作时间","show-overflow-tooltip":""}})],1),a("el-pagination",{attrs:{background:"","page-sizes":[10,15,20,30],"current-page":e.current,"page-size":e.size,layout:"sizes,prev, pager, next",total:e.totalCount},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)},o=[],n=(a("a434"),a("e9c4"),a("21a6")),l=a.n(n),r=a("1146"),s=a.n(r),c=a("b775");function u(e){return Object(c["a"])({url:"/system/log/list",method:"get",params:e})}var d={name:"javascriptthree",data:function(){var e=this;return{tableData:[],totalCount:0,current:1,size:15,operation:void 0,multipleSelection:[],options:[{value:"1",label:"操作人1"},{value:"2",label:"操作人2"},{value:"3",label:"操作人3"}],value:"",input:"",dialogFormVisible:!1,form:{name:"",region:"",region2:"",date1:"",date2:"",delivery:!1,type:[],resource:"",desc:""},formLabelWidth:"120px",userName:void 0,formDaliog:{startTime:"",endTime:""},pickerOptions1:{disabledDate:function(t){return e.formDaliog.endTime?t.getTime()new Date(e.formDaliog.endTime).getTime():t.getTime()=10?t/2+":00:00":"0"+t/2+":00:00"),t%2=="1"&&(e[t].value=t/2>=10?(t-1)/2+":30:00":"0"+(t-1)/2+":30:00");this.implementTimeStart=e},zxtimeEnd:function(){for(var e=[],t=0;t<49;t++)e[t]={},t%2=="NaN"&&(e[t].value="00:00:00"),t%2=="0"&&(e[t].value=t/2>=10?t/2+":00:00":"0"+t/2+":00:00"),t%2=="1"&&(e[t].value=t/2>=10?(t-1)/2+":30:00":"0"+(t-1)/2+":30:00");this.implementTimeEnd=e.slice(1,e.length)},getList:function(){var e=this;this.loading=!0,d(this.queryParams).then((function(t){e.adminList=t.data.pageList,e.totalCount1=t.data.totalCount,e.loading=!1})),Object(p["c"])(this.queryParams).then((function(t){t.data.pageList.length>0&&(e.teamList=t.data.pageList)}))},getList2:function(e){var t=this;this.adminList2=[],Object(l["c"])(this.queryParams2).then((function(a){if(t.adminList2=a.data.pageList,t.totalCount2=a.data.totalCount,e){for(var i=[],o=0;o0&&(this.queryParams.endTime=this.dateRange[1]+" 00:00:00",this.queryParams.startTime=this.dateRange[0]+" 23:59:59");var t=this.queryParams;t.params=void 0,r(t).then((function(t){t.data.pageList&&(e.userList=t.data.pageList,e.totalCount=t.data.totalCount),e.loading=!1}))},getTreeselect:function(){var e=this;Object(g["f"])().then((function(t){if(e.deptOptions=[],t.data)for(var a=0;a0){e.deptOptions[a].children=[];for(var i=0;i0){e.deptOptions[a].children[i].children=[];for(var o=0;o0){for(var n=[],l=0;l0&&(t.form.roleIds=e.data.roleIds[0].roleId,t.form.roleIds&&t.roleOptions))for(var i=0;inew Date(e.formData.endDate).getTime():t.getTime()0&&(this.queryParams.startTime=this.dateRange[0],this.queryParams.endTime=this.dateRange[1]),c(this.queryParams).then((function(t){var a=t.data.pageList,i=[],o=[];a.forEach((function(e,t){-1===i.indexOf(e.planName)?(o.push({planName:e.planName,children:[e]}),i.push(e.planName)):o[i.indexOf(e.planName)].children.push(e)})),e.adminList=o,e.totalCount=t.data.totalCount,e.loading=!1})),s(this.queryParams).then((function(t){e.collectList=t.data,e.loading2=!1}))},handleExport:function(){var e=this;exportMaintianLog(this.queryParams).then((function(t){e.exportLoading=!1,document.getElementById("xz").href=BASEPATH()+t.data,document.getElementById("xz").download=t.data,document.getElementById("xz").click()}))},play:function(e){var t=Object(u["b"])(e.updateTime)-20,a=t+40,i=Number(a-t),o=e.channleId.split("$")[0],n=e.channleId.split("$")[e.channleId.split("$").length-1];this.destroyHls(),this.cameraTitle=e.dhDeviceName;var l="http://".concat(e.nvrIp,":").concat(e.hlsPort,"/vod/device/cameraid/").concat(o,"%24").concat(n,"/substream/1/recordtype/1/totallength/").concat(i,"/begintime/").concat(t,"/endtime/").concat(a,".m3u8");this.loadVideoFn(l)},destroyHls:function(){this.hls&&(this.$refs.hlsVideo.pause(),this.hls.destroy(),this.hls=null)},loadVideoFn:function(e){var t=this;this.dialogTable2=!0,setTimeout((function(){l.a.isSupported()&&(t.hls=new l.a,t.hls.loadSource(e),t.hls.attachMedia(t.$refs.hlsVideo),t.hls.on(l.a.Events.MANIFEST_PARSED,(function(){console.log("加载成功"),t.$refs.hlsVideo.play()})),t.hls.on(l.a.Events.ERROR,(function(e,t){console.log("加载失败")})))}),1e3)},closeDialog:function(){this.destroyHls()}}},m=d,p=(a("b768"),a("2877")),h=Object(p["a"])(m,i,o,!1,null,"858df7a2",null);t["default"]=h.exports},"4a95":function(e,t,a){"use strict";a("e863")},"4e37":function(e,t,a){"use strict";a("1330")},"4eb0":function(e,t,a){"use strict";a("9b3f")},5060:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{attrs:{inline:!0}},[a("el-form-item",{attrs:{label:"单位名称:"}},[a("el-input",{staticStyle:{width:"160px"},attrs:{placeholder:"请输入单位名称",clearable:""},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),a("el-form-item",{staticClass:"right"},[a("el-button",{attrs:{plain:"",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.getList()}}},[e._v("搜索")])],1),a("br"),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.add}},[e._v("新增")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"margin-top":"20px"},attrs:{data:e.tableData,stripe:"",border:""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{prop:"name",label:"单位名称","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"introduce",label:"单位介绍","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"logo",label:"公司logo"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.logo?a("el-image",{staticStyle:{width:"80px"},attrs:{"preview-src-list":[t.row.logo],src:t.row.logo}}):e._e()]}}])}),a("el-table-column",{attrs:{prop:"createBy",label:"创建者","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{staticClass:"lans",on:{click:function(a){return e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),a("el-button",{staticClass:"hongs",on:{click:function(a){return e.handleDelete(t.$index,t.row)}}},[e._v("删除")])]}}])})],1),a("el-dialog",{staticClass:"roleform roleDialog",attrs:{title:e.title,visible:e.open,width:"680px","append-to-body":"","before-close":e.cancel,"close-on-click-modal":!1},on:{"update:visible":function(t){e.open=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"单位名称",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输单位名称",maxlength:"30",width:"30%"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"单位介绍",prop:"introduce"}},[a("el-input",{attrs:{placeholder:"请输单位介绍",maxlength:"30",width:"30%"},model:{value:e.form.introduce,callback:function(t){e.$set(e.form,"introduce",t)},expression:"form.introduce"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{ref:"img",attrs:{label:"单位LOGO",prop:"logo"}},[a("el-upload",{staticClass:"upload-demo",attrs:{action:"#",limit:1,"on-change":e.handleChange,"file-list":e.fileList,"auto-upload":!1,accept:".jpg,.jpeg,.JPG,.JPEG,.PNG,.png,.GIF,.gif"}},[a("el-button",{attrs:{size:"small",type:"primary"}},[e._v("点击上传")])],1)],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.loading?a("el-button",{attrs:{loading:e.loading,type:"primary"}},[e._v("提交中...")]):a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),a("el-button",{attrs:{plain:""},on:{click:e.cancel}},[e._v("取 消")])],1)],1),a("el-pagination",{attrs:{background:"","page-sizes":[5,10,15,20],"current-page":e.pageNo,"page-size":e.pageSize,layout:"sizes,prev, pager, next",total:e.totalCount},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)},o=[],n=(a("b0c0"),a("ac1f"),a("1276"),a("e9c4"),a("b775"));function l(e){return Object(n["a"])({url:"/company",method:"post",data:e})}function r(e){return Object(n["a"])({url:"/file/delete",method:"get",params:e})}function s(e){return Object(n["a"])({url:"/company",method:"put",data:e})}function c(e){return Object(n["a"])({url:"/company/"+e,method:"delete"})}function u(e){return Object(n["a"])({url:"/company/list",method:"get",params:e})}var d=a("d3d6"),m={data:function(){return{uploadDisabled:!1,open:!1,title:void 0,loading:!0,pageNo:1,pageSize:10,totalCount:void 0,name:void 0,delImg:void 0,rules:{name:[{required:!0,message:"公司名称不能为空",trigger:"blur"}],logo:[{required:!0,message:"公司logo不能为空",trigger:"change"}]},imageUrl:"",fileList:[],dialogImageUrl:"",dialogVisible:!1,hideUploadEdit:!1,tableData:[],multipleSelection:[],value:"",input:"",dialogFormVisible:!1,form:{id:void 0,name:"",introduce:"",remark:"",logo:void 0},formData:void 0,logoUrl:void 0,num:0}},created:function(){this.getList()},mounted:function(){},methods:{handleChange:function(e){var t=this;if(this.num++,this.num>1)return this.num=0,!1;var a=new FormData;a.append("file",e.raw),a.append("multipart",e.raw),Object(d["a"])(a).then((function(e){t.$message.success("上传成功"),t.form.logo=e.data}))},resetQuery:function(){this.name=void 0,this.handleQuery()},handleQuery:function(){this.getList()},cancel:function(){this.open=!1,this.handlePicRemove()},companyUpdata:function(){var e=this;s(this.form).then((function(t){"SUCCESS"==t.status&&(e.$message.success("修改成功"),e.open=!1,e.getList())})).catch((function(){e.imgDel()}))},getList:function(){var e=this;u({current:this.pageNo,size:this.pageSize,name:this.name}).then((function(t){var a=t.data.pageList;a&&(e.tableData=a,e.totalCount=t.data.totalCount),e.loading=!1}))},companyAddData:function(){var e=this;l(this.form).then((function(t){"SUCCESS"==t.status&&(e.open=!1,e.$message.success("添加成功"),e.getList())})).catch((function(){e.imgDel()}))},imgDel:function(){var e=this;this.delImg&&r({fileName:this.delImg.split("archive/")[1]}).then((function(t){"SUCCESS"==t.status&&(e.form.logo=void 0,e.delImg=void 0)}))},companyDelData:function(e){var t=this;c(e.id).then((function(e){"SUCCESS"==e.status&&(t.open=!1,t.$message.success("删除成功"),t.form.logo&&(t.delImg=t.form.logo,t.imgDel()),t.getList())}))},handleCurrentChange:function(e){this.pageNo=e,this.getList()},handleSizeChange:function(e){this.pageSize=e,this.getList()},add:function(){this.form.id=void 0,this.form.name=void 0,this.form.introduce=void 0,this.form.logo=void 0,this.open=!0,this.title="新增"},submitForm:function(){var e=this;this.form.logo||this.$refs.img.clearValidate(),this.$refs["form"].validate((function(t){t&&(e.form.id?e.companyUpdata():e.companyAddData())}))},handleEdit:function(e,t){var a=this;t.logo?this.logoStatus=!0:this.logoStatus=!1,setTimeout((function(){a.title="修改",a.form=JSON.parse(JSON.stringify(t)),a.open=!0,setTimeout((function(){var e=document.getElementsByClassName("el-upload-list")[0];e.classList.add("yc"),a.$refs.upload.clearFiles()}),1)}),1)},handleDelete:function(e,t){var a=this;this.$confirm("确定删除该数据吗?","删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){a.companyDelData(t)})).catch((function(){a.$message.info("已取消删除")}))},handleSelectionChange:function(e){this.multipleSelection=e}}},p=m,h=(a("cd7e"),a("2877")),f=Object(h["a"])(p,i,o,!1,null,"d730332a",null);t["default"]=f.exports},5109:function(e,t,a){},5546:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"role-details inside-base"},[a("div",{staticClass:"inside-base-main clearfix"},[a("div",{staticClass:"inside-base-cont"},[a("div",{staticClass:"role-cont clearfix"},[a("div",[a("el-checkbox",{staticClass:"check-page-all",on:{change:function(t){return e.checkPageAllEv(t)}},model:{value:e.checkPageAll,callback:function(t){e.checkPageAll=t},expression:"checkPageAll"}}),a("el-table",{ref:"table",staticStyle:{width:"100%","margin-bottom":"20px"},attrs:{data:e.menuTree,"header-cell-style":{background:"#f5f5f5"},"row-key":"id","expand-row-keys":["3","4"],border:"",indent:10,"cell-class-name":e.goodsInfo,"row-class-name":e.warning,"select-on-indeterminate":!0,"tree-props":{children:"childList",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{type:"selection",width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-checkbox",{on:{change:function(a){return e.pageCheckEv(t)}},model:{value:t.row.pageCheck,callback:function(a){e.$set(t.row,"pageCheck",a)},expression:"scope.row.pageCheck"}})]}}])}),a("el-table-column",{attrs:{prop:"page",label:"菜单名称",width:"130"}}),a("el-table-column",{attrs:{label:""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.fnList.includes("查询")?a("el-checkbox",{attrs:{label:"查询"},on:{change:function(a){return e.fnCheckEv(t,"query")}},model:{value:t.row.fnCheck.query,callback:function(a){e.$set(t.row.fnCheck,"query",a)},expression:"scope.row.fnCheck.query"}}):e._e(),t.row.fnList.includes("新增")?a("el-checkbox",{attrs:{label:"新增"},on:{change:function(a){return e.fnCheckEv(t,"add")}},model:{value:t.row.fnCheck.add,callback:function(a){e.$set(t.row.fnCheck,"add",a)},expression:"scope.row.fnCheck.add"}}):e._e(),t.row.fnList.includes("修改")?a("el-checkbox",{attrs:{label:"修改"},on:{change:function(a){return e.fnCheckEv(t,"edit")}},model:{value:t.row.fnCheck.edit,callback:function(a){e.$set(t.row.fnCheck,"edit",a)},expression:"scope.row.fnCheck.edit"}}):e._e(),t.row.fnList.includes("删除")?a("el-checkbox",{attrs:{label:"删除"},on:{change:function(a){return e.fnCheckEv(t,"remove")}},model:{value:t.row.fnCheck.remove,callback:function(a){e.$set(t.row.fnCheck,"remove",a)},expression:"scope.row.fnCheck.remove"}}):e._e(),t.row.fnList.includes("导出")?a("el-checkbox",{attrs:{label:"导出"},on:{change:function(a){return e.fnCheckEv(t,"export")}},model:{value:t.row.fnCheck.export,callback:function(a){e.$set(t.row.fnCheck,"export",a)},expression:"scope.row.fnCheck.export"}}):e._e(),t.row.fnList.includes("安防管理视图")?a("el-checkbox",{attrs:{label:"安防管理视图"},on:{change:function(a){return e.fnCheckEv(t,"viewport")}},model:{value:t.row.fnCheck.viewport,callback:function(a){e.$set(t.row.fnCheck,"viewport",a)},expression:"scope.row.fnCheck.viewport"}}):e._e(),t.row.fnList.includes("实时告警")?a("el-checkbox",{attrs:{label:"实时告警"},on:{change:function(a){return e.fnCheckEv(t,"alarm")}},model:{value:t.row.fnCheck.alarm,callback:function(a){e.$set(t.row.fnCheck,"alarm",a)},expression:"scope.row.fnCheck.alarm"}}):e._e(),t.row.fnList.includes("任务管理")?a("el-checkbox",{attrs:{label:"任务管理"},on:{change:function(a){return e.fnCheckEv(t,"task")}},model:{value:t.row.fnCheck.task,callback:function(a){e.$set(t.row.fnCheck,"task",a)},expression:"scope.row.fnCheck.task"}}):e._e()]}}])})],1)],1)])])])])},o=[],n=a("b85c"),l=(a("d3b7"),a("159b"),a("a9e3"),a("ac1f"),a("1276"),a("61fd")),r={name:"RoleDetails",data:function(){return{msg:"",checkPageAll:!1,isExpansion:!0,menuTree:[]}},created:function(){},methods:{goodsInfo:function(e){return 2==e.columnIndex?"goodsInfo":0==e.row.fnList.length?"warning":void 0},warning:function(e){if(0==e.row.fnList.length)return"warning"},getMenuTree:function(e,t){var a=this,i=[],o=[],n=[];e?Object(l["h"])(e).then((function(e){if("SUCCESS"==e.status){i=e.data.menus,o=e.data.checkedKeys;for(var t=0;t-1?(n[t].childList[l].fnList.push("查询"),setTimeout(n[t].childList[l].idList.push("query-"+i[t].children[l].children[r].menuId),1),n[t].childList[l].fnCheck.query=!1):i[t].children[l].children[r].perms.indexOf(":add")>-1?(n[t].childList[l].fnList.push("新增"),setTimeout(n[t].childList[l].idList.push("add-"+i[t].children[l].children[r].menuId),1),n[t].childList[l].fnCheck.add=!1):i[t].children[l].children[r].perms.indexOf(":edit")>-1?(n[t].childList[l].fnList.push("修改"),setTimeout(n[t].childList[l].idList.push("edit-"+i[t].children[l].children[r].menuId),1),n[t].childList[l].fnCheck.edit=!1):i[t].children[l].children[r].perms.indexOf(":remove")>-1?(n[t].childList[l].fnList.push("删除"),setTimeout(n[t].childList[l].idList.push("remove-"+i[t].children[l].children[r].menuId),1),n[t].childList[l].fnCheck.remove=!1):i[t].children[l].children[r].perms.indexOf(":export")>-1?(n[t].childList[l].fnList.push("导出"),setTimeout(n[t].childList[l].idList.push("export-"+i[t].children[l].children[r].menuId),1),n[t].childList[l].fnCheck.export=!1):i[t].children[l].children[r].perms.indexOf(":resetPwd")>-1&&(n[t].childList[l].fnList.push("重置密码"),setTimeout(n[t].childList[l].idList.push("resetPwd-"+i[t].children[l].children[r].menuId),1),n[t].childList[l].fnCheck.resetPwd=!1)}}for(var s=0;s-1&&(n[c].childList[u].idList[d].indexOf("query")>-1&&(n[c].childList[u].fnCheck["query"]=!0),n[c].childList[u].idList[d].indexOf("add")>-1&&(n[c].childList[u].fnCheck["add"]=!0),n[c].childList[u].idList[d].indexOf("edit")>-1&&(n[c].childList[u].fnCheck["edit"]=!0),n[c].childList[u].idList[d].indexOf("remove")>-1&&(n[c].childList[u].fnCheck["remove"]=!0),n[c].childList[u].idList[d].indexOf("export")>-1&&(n[c].childList[u].fnCheck["export"]=!0),n[c].childList[u].idList[d].indexOf("resetPwd")>-1&&(n[c].childList[u].fnCheck["resetPwd"]=!0));a.menuTree=n}})):Object(l["j"])().then((function(e){if("SUCCESS"==e.status){i=e.data,o=e.data.checkedKeys;for(var t=0;t-1?(n[t].childList[l].fnList.push("查询"),setTimeout(n[t].childList[l].idList.push("query-"+i[t].children[l].children[r].menuId),1),n[t].childList[l].fnCheck.query=!1):i[t].children[l].children[r].perms.indexOf(":add")>-1?(n[t].childList[l].fnList.push("新增"),setTimeout(n[t].childList[l].idList.push("add-"+i[t].children[l].children[r].menuId),1),n[t].childList[l].fnCheck.add=!1):i[t].children[l].children[r].perms.indexOf(":edit")>-1?(n[t].childList[l].fnList.push("修改"),setTimeout(n[t].childList[l].idList.push("edit-"+i[t].children[l].children[r].menuId),1),n[t].childList[l].fnCheck.edit=!1):i[t].children[l].children[r].perms.indexOf(":remove")>-1?(n[t].childList[l].fnList.push("删除"),setTimeout(n[t].childList[l].idList.push("remove-"+i[t].children[l].children[r].menuId),1),n[t].childList[l].fnCheck.remove=!1):i[t].children[l].children[r].perms.indexOf(":export")>-1?(n[t].childList[l].fnList.push("导出"),setTimeout(n[t].childList[l].idList.push("export-"+i[t].children[l].children[r].menuId),1),n[t].childList[l].fnCheck.export=!1):i[t].children[l].children[r].perms.indexOf(":resetPwd")>-1&&(n[t].childList[l].fnList.push("重置密码"),setTimeout(n[t].childList[l].idList.push("resetPwd-"+i[t].children[l].children[r].menuId),1),n[t].childList[l].fnCheck.resetPwd=!1)}}a.menuTree=n}}))},getParent:function(e,t){var a=[];if(0===e.length)return t&&a.push(e),a;var i=function t(i,o){for(var n=0,l=i.length;n-1&&e.push(Number(t[a].childList[i].idList[o].split("-")[1]));if(!0===t[a].childList[i].fnCheck.add)for(var n=0;n-1&&e.push(Number(t[a].childList[i].idList[n].split("-")[1]));if(!0===t[a].childList[i].fnCheck.edit)for(var l=0;l-1&&e.push(Number(t[a].childList[i].idList[l].split("-")[1]));if(!0===t[a].childList[i].fnCheck.remove)for(var r=0;r-1&&e.push(Number(t[a].childList[i].idList[r].split("-")[1]));if(!0===t[a].childList[i].fnCheck.export)for(var s=0;s-1&&e.push(Number(t[a].childList[i].idList[s].split("-")[1]))}return e},fnCheckEv:function(e,t){var a=e.row.fnCheck,i=[],o="";if(e.row.fnCheck.hasOwnProperty("add")){if(!1===a.add&&!1===a.remove&&!1===a.edit&&!1===a.query&&!1===a.export){for(var n=0;n0){if(e.adminList=t.data.pageList,e.totalCount1=t.data.totalCount,e.zrr.length>0);else for(var a=0;a0)for(var i=0;i0){for(var i=[],o=0;o1)return this.num=0,!1;var a=new FormData;a.append("file",e.raw),a.append("multipart",e.raw),Object(r["a"])(a).then((function(e){t.msgSuccess("上传成功"),t.form.pictureRoute=e.data}))},onInput:function(){this.$forceUpdate()},cancel:function(){var e=this;this.open=!1,setTimeout((function(){e.reset()}),1e3)},resetQuery:function(){this.queryParams={name:void 0,current:1,size:15,pageSize:15,pageNo:1},this.handleQuery()},reset:function(){this.form={}},handleQuery:function(){this.queryParams.current=1,this.getList()},getList:function(){var e=this;this.loading=!0,Object(s["d"])(this.queryParams).then((function(t){e.adminList=t.data.pageList,e.totalCount=t.data.totalCount,e.loading=!1,e.getLocal()}))},handleUpdate:function(e){this.reset(),this.title="修改",this.form=JSON.parse(JSON.stringify(e)),this.form.buildId=Number(this.form.buildId),this.open=!0},handleAdd:function(){this.reset(),this.open=!0,this.title="新增",this.list=[]},submitForm:function(e){var t=this;this.$refs["form"].validate((function(e){e&&(t.form.type=1,t.loading=!0,void 0!=t.form.id?Object(s["e"])(t.form).then((function(e){t.loading=!1,t.$message.success("修改成功"),t.open=!1,t.getList()})).catch((function(){t.loading=!1})):(t.form.qrContent=(new Date).getTime(),t.creatQrCode(t.form.qrContent)))}))},addData:function(){var e=this;Object(s["a"])(this.form).then((function(t){e.loading=!1,"SUCCESS"==t.status&&(e.$message.success("新增成功"),e.open=!1,e.getList())}))},handleDelete:function(e){var t=this,a=e.id||this.ids;this.$confirm("是否确认删除","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(s["b"])(a)})).then((function(){t.getList(),t.$message.success("删除成功")})).catch((function(){}))},handleExport:function(){var e=this;Object(s["c"])(this.queryParams).then((function(t){e.exportLoading=!1,document.getElementById("xz").href=BASEPATH()+t.data,document.getElementById("xz").download=t.data,document.getElementById("xz").click()}))}}},d=u,m=a("2877"),p=Object(m["a"])(d,i,o,!1,null,null,null);t["default"]=p.exports},"9ed6":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"login-container"},[e.erp?a("div",{staticClass:"bg"},[a("img",{attrs:{src:e.bg,alt:""}})]):e._e(),e.erp?a("div",{staticClass:"logo"},[a("img",{attrs:{src:e.logo,alt:""}}),a("span",{staticClass:"logo_txt"},[e._v("东信综合安防管理系统")])]):e._e(),e.erp?a("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{"auto-complete":"on",model:e.loginForm,rules:e.loginRules}},[a("h3",{staticClass:"title"},[e._v("用户登录 "),a("span",[e._v("LOGIN")])]),a("el-form-item",{attrs:{prop:"username",width:"460px"}},[a("el-input",{ref:"username",attrs:{placeholder:"请输入用户名",name:"username",type:"text","auto-complete":"off"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.login_info()}},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}},[a("svg-icon",{staticClass:"el-input__icon input-icon",attrs:{slot:"prefix","icon-class":"user"},slot:"prefix"})],1)],1),a("el-form-item",{staticStyle:{"margin-top":"15px"},attrs:{prop:"password"}},[a("el-input",{ref:"password",staticClass:"inputs",attrs:{placeholder:"请输入密码",name:"password",type:e.passwordtxt},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.login_info()}},scopedSlots:e._u([{key:"prefix",fn:function(){return[a("svg-icon",{staticClass:"el-input__icon input-icon",attrs:{slot:"prefix","icon-class":"password"},slot:"prefix"})]},proxy:!0}],null,!1,2824352526),model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),a("div",{staticClass:"eyeWrap"},[a("svg-icon",{directives:[{name:"show",rawName:"v-show",value:"password"==e.passwordtxt,expression:"passwordtxt == 'password'"}],staticClass:"el-input__icon input-icon eye",staticStyle:{file:"currentColor"},attrs:{slot:"prefix","icon-class":"eye"},on:{click:e.eyeTab},slot:"prefix"}),a("svg-icon",{directives:[{name:"show",rawName:"v-show",value:"text"==e.passwordtxt,expression:"passwordtxt == 'text'"}],staticClass:"el-input__icon input-icon eye",staticStyle:{file:"currentColor"},attrs:{slot:"prefix","icon-class":"eye-open"},on:{click:e.eyeTab},slot:"prefix"})],1)],1),a("el-form-item",{staticStyle:{"margin-top":"-10px"},attrs:{prop:"code"}},[a("el-input",{staticStyle:{width:"61%"},attrs:{"auto-complete":"off",placeholder:"验证码"},model:{value:e.loginForm.code,callback:function(t){e.$set(e.loginForm,"code",t)},expression:"loginForm.code"}},[a("svg-icon",{staticClass:"el-input__icon input-icon",attrs:{slot:"prefix","icon-class":"validCode"},slot:"prefix"})],1),a("div",{staticClass:"login-code"},[a("img",{staticClass:"login-code-img",attrs:{src:e.codeUrl},on:{click:e.getCode}})]),a("div",{staticClass:"shuaxin",class:e.xuan?"xuanz":""},[a("svg-icon",{attrs:{slot:"prefix","icon-class":"刷新"},on:{click:e.getCode},slot:"prefix"})],1)],1),a("el-checkbox",{staticStyle:{margin:"0px 0px 25px 0px"},on:{change:e.memory},model:{value:e.loginForm.rememberMe,callback:function(t){e.$set(e.loginForm,"rememberMe",t)},expression:"loginForm.rememberMe"}},[e._v("记住密码")]),a("el-button",{attrs:{type:"primary"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.login_info()}},nativeOn:{click:function(t){return t.preventDefault(),e.login_info()}}},[e.loading?a("span",[e._v("登 录 中...")]):a("span",[e._v("登 录")])])],1):e._e(),e.ERPloading?a("div",{attrs:{id:"loader-wrapper"}},[a("div",{attrs:{id:"loader"}}),a("div",{staticClass:"loader-section section-left"}),a("div",{staticClass:"loader-section section-right"}),a("div",{staticClass:"load_title"},[e._v("正在加载系统资源,请耐心等待")])]):e._e()],1)},o=[],n=(a("b0c0"),a("ac1f"),a("5319"),a("c24f")),l=a("a369"),r=a("29d5"),s=a("1157"),c=a.n(s),u=a("e725"),d=a.n(u),m=a("a5ac"),p=a.n(m),h=a("a78e"),f=a.n(h),g=a("24e5"),b=a.n(g),v="MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKoR8mX0rGKLqzcWmOzbfj64K8ZIgOdH\nnzkXSOVOZbFu/TJhZ7rFAN+eaGkl3C4buccQd/EjEsj9ir7ijT7h96MCAwEAAQ==",y="MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAqhHyZfSsYourNxaY\n7Nt+PrgrxkiA50efORdI5U5lsW79MmFnusUA355oaSXcLhu5xxB38SMSyP2KvuKN\nPuH3owIDAQABAkAfoiLyL+Z4lf4Myxk6xUDgLaWGximj20CUf+5BKKnlrK+Ed8gA\nkM0HqoTt2UZwA5E2MzS4EI2gjfQhz5X28uqxAiEA3wNFxfrCZlSZHb0gn2zDpWow\ncSxQAgiCstxGUoOqlW8CIQDDOerGKH5OmCJ4Z21v+F25WaHYPxCFMvwxpcw99Ecv\nDQIgIdhDTIqD2jfYjPTY8Jj3EDGPbH2HHuffvflECt3Ek60CIQCFRlCkHpi7hthh\nYhovyloRYsM+IS9h/0BzlEAuO0ktMQIgSPT3aFAgJYwKpqRYKlLDVcflZFCKY7u3\nUP8iWi1Qw0Y=";function w(e){var t=new b.a;return t.setPublicKey(v),t.encrypt(e)}function k(e){var t=new b.a;return t.setPrivateKey(y),t.decrypt(e)}var x={name:"Login",components:{TimeMenu:l["a"],navHeader:r["default"]},data:function(){return{erp:!1,ERPloading:!0,loading:!1,passwordtxt:"password",bg:d.a,logo:p.a,codeUrl:"",cookiePassword:"",show_num:[],loginForm:{username:"",password:"",rememberMe:!0,code:"",uuid:""},loginRules:{username:[{required:!0,trigger:"blur",message:"请输入您的账号"}],password:[{required:!0,trigger:"blur",message:"请输入您的密码"}],code:[{required:!0,trigger:"change",message:"请输入验证码"}]},xuan:!1}},mounted:function(){c()(".el-menu").css("display","none"),c()(".right-menu").css("display","none")},created:function(){this.keyupEnter(),this.getUrl()},methods:{getUrl:function(){var e=this.$route.query;if(e.username&&e.password){var t={username:e.username,password:e.password};this.handleLoginERP(t)}else this.getCode(),this.getCookie(),this.zddl()},keyupEnter:function(){var e=this;document.onkeydown=function(t){var a=window.event.keyCode;13==a&&e.login_info()}},eyeTab:function(){"password"==this.passwordtxt?this.passwordtxt="text":this.passwordtxt="password"},getCode:function(){var e=this;this.xuan=!0,Object(n["a"])().then((function(t){e.codeUrl="data:image/gif;base64,"+t.data.img,e.loginForm.uuid=t.data.uuid,e.erp=!0,setTimeout((function(){e.ERPloading=!1})),e.xuan=!1}))},getCookie:function(){var e=f.a.get("username"),t=f.a.get("password"),a=f.a.get("rememberMe");this.loginForm={username:void 0===e?this.loginForm.username:e,password:void 0===t?this.loginForm.password:k(t),rememberMe:void 0!==a&&Boolean(a)}},login_info:function(){var e=this;this.$refs.loginForm.validate((function(t){t&&(e.loading=!0,e.$store.dispatch("login",e.loginForm).then((function(){e.$router.push("/index?name="+e.loginForm.username),e.loading=!1})).catch((function(){e.loading=!1,e.getCode()})))}))},memory:function(){this.loginForm.rememberMe?(f.a.set("username429",this.loginForm.username,{expires:300}),f.a.set("password429",w(this.loginForm.password),{expires:300}),f.a.set("rememberMe429",this.loginForm.rememberMe,{expires:300})):(f.a.remove("username429"),f.a.remove("password429"),f.a.remove("rememberMe429"))},handleLoginERP:function(e){var t=this;f.a.set("username429",e.name),this.$store.dispatch("LoginERP",e).then((function(a){t.$router.push({path:"/index?name="+e.id}).catch((function(){}))})).catch((function(e){location.href="/#/"}))},zddl:function(){f.a.get("vue_admin_template_token1708")&&localStorage.getItem("key")&&this.$router.push("/index?name="+localStorage.getItem("key"))}},watch:{password:function(){this.password=this.password.replace(/[\W]/g,"")},username:function(){this.username=this.username.replace(/[\W]/g,"")},code:function(){this.code=this.code.replace(/[\W]/g,"")}}},C=x,S=(a("4eb0"),a("77a8"),a("2877")),_=Object(S["a"])(C,i,o,!1,null,"41a2ccc8",null);t["default"]=_.exports},a019:function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"b",(function(){return n})),a.d(t,"e",(function(){return l})),a.d(t,"d",(function(){return r})),a.d(t,"f",(function(){return s})),a.d(t,"c",(function(){return c}));var i=a("b775");function o(e){return Object(i["a"])({url:"/system/dept/add",method:"post",params:e})}function n(e){return Object(i["a"])({url:"/system/dept/edit",method:"post",data:e})}function l(e){return Object(i["a"])({url:"/system/dept/list/exclude/"+e,method:"get"})}function r(e){return Object(i["a"])({url:"/system/dept/treeselect",method:"get",params:e})}function s(e){return Object(i["a"])({url:"/system/dept/treeselect",method:"get",params:e})}function c(e){return Object(i["a"])({url:"/system/dept/remove",method:"get",params:e})}},a193:function(e,t,a){"use strict";a.d(t,"c",(function(){return l})),a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return s}));var i=new Date,o=(i.getDay(),i.getDate(),i.getMonth(),i.getYear());o+=o<2e3?1900:0;var n=new Date;n.setDate(1),n.setMonth(n.getMonth()-1);n.getMonth();function l(e){var t=new Date(e),a=t.getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var o=t.getDate();o=o<10?"0"+o:o;var n=t.getHours();n=n<10?"0"+n:n;var l=t.getMinutes();l=l<10?"0"+l:l;var r=t.getSeconds();r=r<10?"0"+r:r;var s=a+"-"+i+"-"+o+" "+n+":"+l+":"+r;return s}function r(){var e=new Date,t=e.getMonth()+1,a=e.getDate(),i=e.getFullYear()+"-"+(t<10?"0"+t:t)+"-"+(a<10?"0"+a:a)+" 23:59:59";return i}function s(e){var t=new Date(e).getTime()/1e3;return t}},a1fc:function(e,t,a){"use strict";a("cea1")},a36b:function(e,t,a){e.exports=a.p+"static/img/404.a57b6f31.png"},a450:function(e,t,a){e.exports=a.p+"static/img/user-manage.35265e1b.svg"},a50f:function(e,t,a){e.exports=a.p+"static/img/unit-info-icon.aa3bc789.svg"},a5ac:function(e,t,a){e.exports=a.p+"static/img/logo-b.fd92c04e.png"},a667:function(e,t,a){e.exports=a.p+"static/img/account-manage.ab0ee8f0.svg"},a82c:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"menu-tab"},[a("el-tabs",{attrs:{type:"border-card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"菜单表",name:"menu"}},[a("div",{staticClass:"app-container"},[a("el-form",{attrs:{inline:!0}},[a("el-form-item",{attrs:{label:"菜单名称:"}},[a("el-input",{staticStyle:{width:"160px"},attrs:{placeholder:"请输入菜单名称",clearable:""},model:{value:e.menuQuery.menuName,callback:function(t){e.$set(e.menuQuery,"menuName",t)},expression:"menuQuery.menuName"}})],1),a("el-form-item",{staticClass:"right"},[a("el-button",{attrs:{plain:"",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.getMenuData()}}},[e._v("搜索")])],1),a("br"),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.menuAdd()}}},[e._v("新增")])],1),e.menuTable?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"margin-top":"20px"},attrs:{data:e.menuListData,"row-key":"menuId","tree-props":{children:"children",hasChildren:"hasChildren"},border:""}},[a("el-table-column",{attrs:{prop:"menuName",label:"菜单名称","show-overflow-tooltip":"",width:"160"}}),a("el-table-column",{attrs:{prop:"icon",label:"图标",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("svg-icon",{attrs:{"icon-class":e.row.icon}})]}}],null,!1,3094025326)}),a("el-table-column",{attrs:{prop:"orderNum",label:"排序",width:"60"}}),a("el-table-column",{attrs:{prop:"perms",label:"权限标识","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"url",label:"组件路径","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间",align:"center","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{staticClass:"lans",on:{click:function(a){return e.menuUpdate(t.row)}}},[e._v("修改")]),a("el-button",{staticClass:"hongs",on:{click:function(a){return e.menuDelete(t.row)}}},[e._v("删除")])]}}],null,!1,1645771842)})],1):e._e(),a("el-dialog",{attrs:{title:e.menutitle,visible:e.dialogFormVisible1,width:"680px"},on:{"update:visible":function(t){e.dialogFormVisible1=t}}},[a("el-form",{ref:"form",attrs:{model:e.menuForm,rules:e.menuRules,"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:18}},[a("el-form-item",{attrs:{label:"上级菜单"}},[a("treeselect",{attrs:{options:e.menuOptions,normalizer:e.normalizer,"show-count":!0,placeholder:"选择上级菜单"},model:{value:e.menuForm.parentId,callback:function(t){e.$set(e.menuForm,"parentId",t)},expression:"menuForm.parentId"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"菜单类型",prop:"menuType"}},[a("el-radio-group",{staticStyle:{"margin-top":"-10px"},model:{value:e.menuForm.menuType,callback:function(t){e.$set(e.menuForm,"menuType",t)},expression:"menuForm.menuType"}},[a("el-radio",{attrs:{label:"M"}},[e._v("目录")]),a("el-radio",{attrs:{label:"C"}},[e._v("菜单")]),a("el-radio",{attrs:{label:"F"}},[e._v("按钮")])],1)],1)],1),a("el-col",{attrs:{span:18}},["F"!=e.menuForm.menuType?a("el-form-item",{attrs:{label:"菜单图标"}},[a("el-popover",{attrs:{placement:"bottom-start",width:"460",trigger:"click"},on:{show:function(t){return e.$refs["iconSelect"].reset()}}},[a("IconSelect",{ref:"iconSelect",on:{selected:e.selected}}),a("el-input",{attrs:{slot:"reference",placeholder:"点击选择图标",readonly:""},slot:"reference",model:{value:e.menuForm.icon,callback:function(t){e.$set(e.menuForm,"icon",t)},expression:"menuForm.icon"}},[e.menuForm.icon?a("svg-icon",{staticClass:"el-input__icon",staticStyle:{height:"32px",width:"16px"},attrs:{slot:"prefix","icon-class":e.menuForm.icon},slot:"prefix"}):e._e()],1)],1)],1):e._e()],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"菜单名称",prop:"menuName"}},[a("el-input",{attrs:{placeholder:"请输入菜单名称"},model:{value:e.menuForm.menuName,callback:function(t){e.$set(e.menuForm,"menuName",t)},expression:"menuForm.menuName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"显示排序",prop:"orderNum"}},[a("el-input-number",{attrs:{"controls-position":"right",min:0,onkeypress:"javascript:return false",type:"number"},model:{value:e.menuForm.orderNum,callback:function(t){e.$set(e.menuForm,"orderNum",t)},expression:"menuForm.orderNum"}})],1)],1),a("el-col",{attrs:{span:12}},["F"!=e.menuForm.menuType?a("el-form-item",{attrs:{prop:"url",width:"120"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("el-tooltip",{attrs:{content:"访问的路由地址,如:`user`,如外网地址需内链访问则以`http(s)://`开头",placement:"top"}},[a("i",{staticClass:"el-icon-question"})]),e._v(" 路由地址 ")],1),a("el-input",{attrs:{placeholder:"请输入路由地址"},model:{value:e.menuForm.url,callback:function(t){e.$set(e.menuForm,"url",t)},expression:"menuForm.url"}})],1):e._e()],1),"C"==e.menuForm.menuType?a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"component"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("el-tooltip",{attrs:{content:"访问的组件路径,如:`system/user/index`,默认在`views`目录下",placement:"top"}},[a("i",{staticClass:"el-icon-question"})]),e._v(" 组件路径 ")],1),a("el-input",{attrs:{placeholder:"请输入组件路径"},model:{value:e.menuForm.component,callback:function(t){e.$set(e.menuForm,"component",t)},expression:"menuForm.component"}})],1)],1):e._e(),a("el-col",{attrs:{span:12}},["M"!=e.menuForm.menuType?a("el-form-item",[a("el-input",{attrs:{placeholder:"请输入权限标识",maxlength:"100"},model:{value:e.menuForm.perms,callback:function(t){e.$set(e.menuForm,"perms",t)},expression:"menuForm.perms"}}),a("span",{attrs:{slot:"label"},slot:"label"},[a("el-tooltip",{attrs:{content:"控制器中定义的权限字符,如:@PreAuthorize(`@ss.hasPermi('system:user:list')`)",placement:"top"}},[a("i",{staticClass:"el-icon-question"})]),e._v(" 权限字符 ")],1)],1):e._e()],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.loading?a("el-button",{attrs:{loading:e.loading,type:"primary"}},[e._v("提交中...")]):a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.menuSubmitForm()}}},[e._v("确 定")]),a("el-button",{attrs:{plain:""},on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)]),a("el-tab-pane",{attrs:{label:"角色表",name:"role"}},[a("div",{staticClass:"app-container"},[a("el-form",{attrs:{inline:!0}},[a("el-form-item",{attrs:{label:"角色名称:"}},[a("el-input",{staticStyle:{width:"160px"},attrs:{placeholder:"请输入角色名称",clearable:""},model:{value:e.roleListQuery.roleName,callback:function(t){e.$set(e.roleListQuery,"roleName",t)},expression:"roleListQuery.roleName"}})],1),a("el-form-item",{staticClass:"right"},[a("el-button",{attrs:{plain:"",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.roleQuery()}}},[e._v("搜索")])],1),a("br"),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.roleEditOrAdd("add")}}},[e._v("新增")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"margin-top":"20px"},attrs:{data:e.roleListAdmin,border:""}},[a("el-table-column",{attrs:{label:"角色编号",prop:"roleId"}}),a("el-table-column",{attrs:{label:"角色名称",prop:"roleName","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"权限字符",prop:"roleKey","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"显示顺序",prop:"roleSort","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-value":"0","inactive-value":"1"},on:{change:function(a){return e.handleStatusChange(t.row)}},model:{value:t.row.status,callback:function(a){e.$set(t.row,"status",a)},expression:"scope.row.status"}})]}}])}),a("el-table-column",{attrs:{label:"备注",prop:"remark","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return 1!==t.row.roleId?[a("el-button",{staticClass:"lans",on:{click:function(a){return e.roleEditOrAdd("edit",t.row)}}},[e._v("修改")]),a("el-button",{staticClass:"hongs",on:{click:function(a){return e.roleRemove(t.row)}}},[e._v("删除")])]:void 0}}],null,!0)})],1),a("el-dialog",{staticClass:"roleDialog",attrs:{title:e.roleTitle,visible:e.dialogFormVisible2,width:"680px"},on:{"update:visible":function(t){e.dialogFormVisible2=t}}},[a("el-form",{ref:"roleForm",staticClass:"roleform",attrs:{model:e.roleForm,rules:e.roleRules,"label-width":"100px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"角色名称",prop:"roleName",width:"80%"}},[a("el-input",{attrs:{placeholder:"请输入角色名称"},model:{value:e.roleForm.roleName,callback:function(t){e.$set(e.roleForm,"roleName",t)},expression:"roleForm.roleName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"roleKey"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("el-tooltip",{attrs:{content:"控制器中定义的权限字符,如:@PreAuthorize(`@ss.hasRole('admin')`)",placement:"top"}},[a("i",{staticClass:"el-icon-question"})]),e._v(" 权限字符 ")],1),a("el-input",{attrs:{placeholder:"请输入权限字符"},model:{value:e.roleForm.roleKey,callback:function(t){e.$set(e.roleForm,"roleKey",t)},expression:"roleForm.roleKey"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"角色顺序",prop:"roleSort"}},[a("el-input-number",{staticStyle:{width:"170px"},attrs:{"controls-position":"right",min:0},model:{value:e.roleForm.roleSort,callback:function(t){e.$set(e.roleForm,"roleSort",t)},expression:"roleForm.roleSort"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"状态"}},[a("el-radio-group",{staticStyle:{"margin-top":"-10px"},model:{value:e.roleForm.status,callback:function(t){e.$set(e.roleForm,"status",t)},expression:"roleForm.status"}},e._l(e.statusOptions,(function(t){return a("el-radio",{key:t.dictValue,attrs:{label:t.dictValue}},[e._v(e._s(t.dictLabel))])})),1)],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"菜单权限"}},[a("el-checkbox",{on:{change:function(t){return e.handleCheckedTreeExpand(t,"menu")}},model:{value:e.menuExpand,callback:function(t){e.menuExpand=t},expression:"menuExpand"}},[e._v("展开/折叠")]),a("el-checkbox",{on:{change:function(t){return e.handleCheckedTreeNodeAll(t,"menu")}},model:{value:e.menuNodeAll,callback:function(t){e.menuNodeAll=t},expression:"menuNodeAll"}},[e._v("全选/全不选")]),a("el-checkbox",{on:{change:function(t){return e.handleCheckedTreeConnect(t,"menu")}},model:{value:e.roleForm.menuCheckStrictly,callback:function(t){e.$set(e.roleForm,"menuCheckStrictly",t)},expression:"roleForm.menuCheckStrictly"}},[e._v("父子联动")]),a("el-tree",{ref:"menu",staticClass:"tree-border",attrs:{data:e.menuOptions,"show-checkbox":"","node-key":"id","check-strictly":!e.roleForm.menuCheckStrictly,"empty-text":"加载中,请稍后",props:e.defaultProps}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"备注"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:e.roleForm.remark,callback:function(t){e.$set(e.roleForm,"remark",t)},expression:"roleForm.remark"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.loading?a("el-button",{attrs:{loading:e.loading,type:"primary"}},[e._v("提交中...")]):a("el-button",{attrs:{type:"primary"},on:{click:e.roleSubmit}},[e._v("确 定")]),a("el-button",{attrs:{plain:""},on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)])],1)],1)])},o=[],n=(a("a434"),a("e9c4"),a("d3b7"),a("159b"),a("5546")),l=a("61fd"),r=a("61f7"),s=a("5c96"),c=a("ca17"),u=a.n(c),d=(a("542c"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"icon-body"},[a("el-input",{staticStyle:{position:"relative"},attrs:{clearable:"",placeholder:"请输入图标名称"},on:{clear:e.filterIcons},nativeOn:{input:function(t){return e.filterIcons(t)}},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}},[a("i",{staticClass:"el-icon-search el-input__icon",attrs:{slot:"suffix"},slot:"suffix"})]),a("div",{staticClass:"icon-list"},e._l(e.iconList,(function(t,i){return a("div",{key:i,on:{click:function(a){return e.selectedIcon(t)}}},[a("svg-icon",{staticStyle:{height:"30px",width:"16px"},attrs:{"icon-class":t}}),a("span",[e._v(e._s(t))])],1)})),0)],1)}),m=[],p=(a("b0c0"),a("4de4"),a("caad"),a("2532"),a("ddb0"),a("d81d"),a("ac1f"),a("466d"),a("23f1")),h=function(e){return e.keys()},f=/\.\/(.*)\.svg/,g=h(p).map((function(e){return e.match(f)[1]})),b=g,v={name:"IconSelect",data:function(){return{name:"",iconList:b}},methods:{filterIcons:function(){var e=this;this.iconList=b,this.name&&(this.iconList=this.iconList.filter((function(t){return t.includes(e.name)})))},selectedIcon:function(e){this.$emit("selected",e),document.body.click()},reset:function(){this.name="",this.iconList=b}}},y=v,w=(a("bce5"),a("2877")),k=Object(w["a"])(y,d,m,!1,null,"0273f142",null),x=k.exports,C={components:{RoleDetails:n["default"],Treeselect:u.a,IconSelect:x},data:function(){return{menuTable:!1,loading:!0,ss:!1,menuAddForm:{icon:void 0,isCache:"0",isFrame:"1",menuId:void 0,menuName:void 0,menuType:void 0,orderNum:void 0,parentId:void 0,url:void 0,status:"0",visible:"0"},menuEditForm:{},statusOptions:[{dictLabel:"正常",dictValue:"0"},{dictLabel:"停用",dictValue:"1"}],menuListData:{},roleListQuery:{pageNo:1,pageSize:15,roleKey:void 0,roleName:void 0,status:void 0},roleMenuChange:{roleId:void 0,roleKey:void 0,roleName:void 0,status:0,dataScope:1,roleSort:1,menuIds:void 0},roledialog:{title:void 0,add:void 0},activeName:"role",tableData:[],roleListAdmin:[],multipleSelection:[],multipleSelection2:[],options:[{value:"1",label:"一级"},{value:"2",label:"二级"}],value:"",input:"",dialogFormVisible3:!1,dialogFormVisible4:!1,form:{name:"",region:"",region2:"",date1:"",date2:"",delivery:!1,type:[],resource:"",desc:""},formLabelWidth:"100px",formLabelWidth2:"150px",menuOptions:[],open:!1,openDataScope:!1,menuExpand:!1,menuNodeAll:!1,deptExpand:!0,deptNodeAll:!1,dialogFormVisible2:!1,defaultProps:{children:"children",label:"label"},roleQueryForm:{roleName:void 0},roleForm:{roleId:void 0,roleName:void 0,roleKey:void 0,roleSort:0,status:"0",menuIds:[],deptIds:[],menuCheckStrictly:!0,deptCheckStrictly:!0,remark:void 0,dataScope:2},roleRules:{roleName:[{required:!0,message:"角色名称不能为空",trigger:"blur"}],roleKey:[{required:!0,message:"权限字符不能为空",trigger:"blur"}],roleSort:[{required:!0,message:"角色顺序不能为空",trigger:"blur"}]},dialogFormVisible1:!1,menuRules:{menuName:[{required:!0,message:"菜单名称为空",trigger:"blur"}],menuType:[{required:!0,message:"菜单级别为空",trigger:"blur"}],orderNum:[{required:!0,message:"菜单顺序不能为空",trigger:"blur"},{validator:r["a"],trigger:"blur"}],url:[{required:!0,message:"访问地址不能为空",trigger:"blur"}],icon:[{required:!0,message:"图标不能为空",trigger:"blur"}]},menuQuery:{menuName:void 0},menutitle:void 0,menuForm:{menuId:void 0,parentId:0,menuName:void 0,icon:void 0,menuType:"M",orderNum:0,isFrame:"1",isCache:"0",visible:"0",status:"0",children:void 0,params:void 0},menuFormHC:{},roleTitle:void 0}},watch:{activeName:function(e){this.tabChange()}},created:function(){localStorage.getItem("active")&&(this.activeName="menu",localStorage.removeItem("active")),this.tabChange()},mounted:function(){},methods:{tabChange:function(){"menu"==this.activeName?this.getMenuData():this.getRoleData()},urlShuaXin:function(){location.reload()},roleReset:function(){void 0!=this.$refs.menu&&this.$refs.menu.setCheckedKeys([]),this.menuExpand=!1,this.menuNodeAll=!1,this.deptExpand=!0,this.deptNodeAll=!1,this.roleForm={roleId:void 0,roleName:void 0,roleKey:void 0,roleSort:0,status:void 0,menuIds:[],deptIds:[],menuCheckStrictly:!0,deptCheckStrictly:!0,remark:void 0,dataScope:2,params:void 0},this.roleListQuery={pageNo:1,pageSize:15,roleKey:void 0,roleName:void 0,status:void 0}},getMenuTreeselect:function(){var e=this;Object(l["j"])().then((function(t){var a=[];if(t.data){for(var i=0;i0?(t.dhUrl=a.data.pageList.map((function(e,t){return{id:t+1,name:e.name,url:"http://"+e.nvr_ip+":"+e.hls_port+"/live/cameraid/"+e.deviceId+"%24"+e.id.split("$")[e.id.split("$").length-1]+"/substream/1.m3u8"}})),t.NoHplay=!0,t.dhUrlStatus=!0,t.playList=!0):(t.query.code=e.code,c(t.query).then((function(e){if(e.data.pageList.length>0)if(e.data.pageList[0].deviceInfo){for(var a=JSON.parse(e.data.pageList[0].deviceInfo),i=0;i0){for(var i=JSON.parse(a.data.pageList[0].deviceInfo),o=0;o0&&(e.AddOrEditForm.deviceInfo=JSON.stringify(a)),d(e.AddOrEditForm).then((function(t){"SUCCESS"==t.status&&(e.$message.success("修改成功"),e.reset(),e.getData())}))}})):this.$message.warning("请选择关联设备")):(this.AddOrEditForm.code=this.AddOrEditForm.GLcode,this.dhUrlStatus?(this.AddOrEditForm.dhCode=this.AddOrEditForm.code,this.$refs["AddOrEditForm"].validate((function(t){t&&u(e.AddOrEditForm).then((function(t){"SUCCESS"==t.status&&(e.$message.success("添加成功"),e.reset(),e.getData())}))}))):this.otherBrandStatus?(this.AddOrEditForm.dhCode=0,this.$refs["AddOrEditForm"].validate((function(t){if(t){for(var a=[],i=0;i0&&(e.AddOrEditForm.deviceInfo=JSON.stringify(a)),u(e.AddOrEditForm).then((function(t){"SUCCESS"==t.status&&(e.$message.success("添加成功"),e.reset(),e.getData())}))}}))):this.$message.warning("请选择关联设备"))},cancel:function(){this.reset()},closeDialog:function(){this.destroyHls(),this.reset()},closeDialog2:function(){this.destroyHls()},reset:function(){var e=this;this.dialogAddOrEdit=!1,this.playList=!1,this.query.code=void 0,this.query.name=void 0,this.query.unit=void 0,this.query.id=void 0,setTimeout((function(){e.dhUrl=[],e.dhUrlStatus=!1,e.title=void 0,e.playListTitle=void 0,e.otherBrand=[],e.otherBrandStatus=!1,e.NoHplay=!0,e.AddOrEditForm={address:void 0,brand:void 0,code:void 0,delFlag:void 0,deviceInfo:void 0,deviceType:void 0,dhCode:void 0,id:void 0,name:void 0,unit:void 0,GLcode:void 0}}),500)}}},g=f,b=(a("dc4c"),a("2877")),v=Object(b["a"])(g,i,o,!1,null,null,null);t["default"]=v.exports},ac3c:function(e,t,a){"use strict";a("b914")},ac4d:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{ref:"query",attrs:{model:e.query,inline:!0}},[a("el-form-item",{attrs:{label:"线路名称:"}},[a("el-input",{attrs:{placeholder:"请输入线路名称",clearable:""},model:{value:e.query.elname,callback:function(t){e.$set(e.query,"elname",t)},expression:"query.elname"}})],1),a("el-form-item",{attrs:{label:"时间:"}},[a("el-date-picker",{staticStyle:{width:"300px"},attrs:{size:"small","value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),a("el-form-item",{staticClass:"right"},[a("el-button",{attrs:{plain:"",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.getData("query")}}},[e._v("搜索")])],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"margin-top":"20px"},attrs:{data:e.tableData,stripe:"",id:"out-table",border:""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{prop:"ecreatetime",label:"实际实施创建时间",width:"130","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"edevicename",label:"实际巡检设备",width:"120","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"edflag",label:"是否报警","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s("0"==t.row.edflag?"否":"1"==t.row.edflag?"是":"")+" ")]}}])}),a("el-table-column",{attrs:{prop:"eendtime",label:"结束时间","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"eerrortime",label:"误差时间","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"elineorder",label:"线路顺序","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"elname",label:"线路名称","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"epatroltime",label:"巡更时间","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"eplacename",label:"巡更地点","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"eplanmode",label:"计划模式","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s("0"==t.row.eplanmode?"常规":"1"==t.row.eplanmode?"班组":"2"==t.row.eplanmode?"星期":"3"==t.row.eplanmode?"周期":"")+" ")]}}])}),a("el-table-column",{attrs:{prop:"eplanstate",label:"巡更状态","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"eplantype",label:"计划类型","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"estarttime",label:"开始时间","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"estaytime",label:"停留时间","show-overflow-tooltip":""}})],1),a("el-pagination",{attrs:{background:"","page-sizes":[10,15,20,30],"current-page":e.pageNo,"page-size":e.pageSize,layout:"sizes,prev, pager, next",total:e.totalCount},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)},o=[],n=(a("e9c4"),a("a434"),a("d3b7"),a("3ca3"),a("ddb0"),a("d81d"),a("4238")),l={components:{},name:"elect-partol",data:function(){return{loading:!0,cols:[],tableData:[],totalCount:0,pageSize:15,pageNo:1,eBindUser_value:"",eLName_value:"",ePlanState_value:"",query:{eTeamName:void 0,UserName:void 0,elname:void 0,pageNo:1,pageSize:15,startTime:void 0,endTime:void 0},form:{pageSize:15,pageNo:1},dateRange:[]}},mounted:function(){this.getData()},created:function(){this.getData()},methods:{resetQuery:function(){this.query={eTeamName:void 0,UserName:void 0,elname:void 0,pageNo:1,pageSize:15},this.handleQuery()},handleQuery:function(){this.getData()},getData:function(e){var t=this;this.dateRange.length>0&&(this.query.startTime=this.dateRange[0],this.query.endTime=this.dateRange[1]),e?n["a"].queryPatrollingPlanStatus(this.query).then((function(e){console.log(e),t.tableData=e.data.pageList,t.totalCount=e.data.totalCount,t.loading=!1,t.tableData.length<1&&setTimeout((function(){document.getElementsByClassName("el-table__empty-text")[0].innerHTML="您查询的巡更计划不存在"}),10)})):n["a"].queryPatrollingPlanStatus(this.form).then((function(e){console.log(e),t.tableData=e.data.pageList,t.totalCount=e.data.totalCount,t.loading=!1,t.tableData.length<1&&setTimeout((function(){document.getElementsByClassName("el-table__empty-text")[0].innerHTML="您查询的巡更计划不存在"}),10)}))},handleCurrentChange:function(e){this.pageNo=e,this.query.pageNo=this.pageNo,this.getData("query")},handleSizeChange:function(e){this.pageSize=e,this.query.pageSize=this.pageSize,this.getData("query")},handleEdit:function(e,t){},handleDelete:function(e){var t=this;this.$confirm("确定删除该数据吗?","删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){n["a"].deleteById({queryJson:e}).then((function(e){t.$message({type:e.success?"success":"error",message:e.Msg})})),t.select()})).catch((function(){}))},batchDelete:function(){for(var e=this.multipleSelection,t=this.list,a=e.length,i=t.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:20;return Object(o["a"])({url:"/team/getTeamList",method:"post",data:Object(i["a"])(Object(i["a"])({},e),{},{pageNo:t,pageSize:a})})},add:function(e){return Object(o["a"])({url:"/team/appendTeam",method:"post",data:e})},update:function(e){return Object(o["a"])({url:"/team/updateTeam",method:"post",data:e})},deleteById:function(e){return Object(o["a"])({url:"/team/deleteTeam",method:"post",data:e})},getPersonList:function(e){return Object(o["a"])({url:"/team/getPersonnelbox",method:"post"})}}},acd3:function(e,t,a){},aded:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0}},[a("el-form-item",{attrs:{label:"路线名称:",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入路线名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.name,callback:function(t){e.$set(e.queryParams,"name","string"===typeof t?t.trim():t)},expression:"queryParams.name"}})],1),a("el-form-item",{staticClass:"right"},[a("el-button",{attrs:{plain:"",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")])],1),a("br"),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"margin-top":"20px"},attrs:{data:e.adminList,border:""}},[a("el-table-column",{attrs:{label:"路线名称",align:"center",prop:"name","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"创建人",align:"center",prop:"createBy","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{staticClass:"lans",attrs:{size:"mini"},on:{click:function(a){return e.handleUpdate(t.row)}}},[e._v("修改")]),a("el-button",{staticClass:"lans",attrs:{size:"mini"},on:{click:function(a){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),a("el-dialog",{attrs:{title:e.title,visible:e.open,width:"600px","append-to-body":"","before-close":e.cancel,"close-on-click-modal":!1},on:{"update:visible":function(t){e.open=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"auto"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"路线名称",prop:"name"}},[a("el-input",{attrs:{placeholder:"请填写路线名称",maxlength:"15","show-word-limit":""},on:{input:function(t){return e.onInput()}},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),a("el-col",{staticStyle:{"font-size":"16px","font-weight":"700",margin:"10px 0 20px"}},[e._v("维保点位")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading2,expression:"loading2"}],ref:"dataTable",staticStyle:{"margin-bottom":"50px"},attrs:{data:e.adminList2,height:"200"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection"}}),a("el-table-column",{attrs:{label:"点位名称",align:"center",prop:"name","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"点位地址",align:"center",prop:"address","show-overflow-tooltip":""}})],1),a("el-pagination",{staticStyle:{bottom:"0px"},attrs:{background:"","page-sizes":[10,15,20,30],"current-page":e.queryParams2.pageNo,"page-size":e.queryParams2.pageSize,layout:"sizes,prev, pager, next",total:e.totalCount2},on:{"current-change":e.handleCurrentChange2,"size-change":e.handleSizeChange2}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),a("el-button",{attrs:{plain:""},on:{click:e.cancel}},[e._v("取 消")])],1)],1),a("el-pagination",{attrs:{background:"","page-sizes":[10,15,20,30],"current-page":e.queryParams.pageNo,"page-size":e.queryParams.pageSize,layout:"sizes,prev, pager, next",total:e.totalCount1},on:{"current-change":e.handleCurrentChange1,"size-change":e.handleSizeChange1}}),a("a",{staticStyle:{position:"absolute","z-index":"-1",opacity:"0"},attrs:{href:"",download:"",id:"xz"}})],1)},o=[],n=(a("d3b7"),a("e9c4"),a("e3a0")),l=a("2441"),r={name:"Floor",data:function(){return{loading:!0,loading2:!0,exportLoading:!1,showSearch:!0,totalCount1:void 0,totalCount2:void 0,adminList:[],adminList2:[],title:"",open:!1,queryParams:{current:1,size:15,name:void 0,dutyId:void 0,pageNo:1,pageSize:15},queryParams2:{current:1,size:15,pageNo:1,pageSize:15},form:{},rules:{name:[{required:!0,message:"线路名称不能为空",trigger:"blur"}]}}},created:function(){this.getList()},methods:{handleCurrentChange1:function(e){this.queryParams.pageNo=e,this.getList()},handleSizeChange1:function(e){this.queryParams.pageSize=e,this.getList()},handleCurrentChange2:function(e){this.queryParams2.pageNo=e,this.getList()},handleSizeChange2:function(e){this.queryParams2.pageSize=e,this.getList()},onInput:function(){this.$forceUpdate()},cancel:function(){this.open=!1,this.reset()},resetQuery:function(){this.queryParams={name:void 0,current:1,size:15,pageSize:15,pageNo:1},this.handleQuery()},reset:function(){this.form={}},handleQuery:function(){this.queryParams.current=1,this.getList()},getList:function(){var e=this;this.loading=!0,Object(l["c"])(this.queryParams).then((function(t){e.adminList=t.data.pageList,e.totalCount1=t.data.totalCount,e.loading=!1}))},getList2:function(e){var t=this;this.adminList2=[],Object(n["d"])(this.queryParams2).then((function(a){if(t.adminList2=a.data.pageList,t.totalCount2=a.data.totalCount,e&&e.pointIds.length>0){for(var i=[],o=0;o0){e.pointIds=[];for(var i=0;i0){t.from_data[1].bool=!0;for(var a=0;a0){t.from_data[2].bool=!0;for(var a=0;a0){var a=t.data.pageList;e.title2=e.form.dkAreaName;for(var i=0;i1?e.open2=!0:e.submitForm2()}})))}))},submitForm2:function(){var e=this,t=void 0;t="布防"==this.form.dkAreaStatus?1:3,r.sf({device:JSON.stringify({nMachine:Number(this.form.connId),nAreaNo:Number(this.form.dkAreaNo),operateType:t})}).then((function(e){})),r.updatePerimeterDevice(this.form).then((function(t){"SUCCESS"==t.status?(e.open1=!1,e.open2=!1,setTimeout((function(){return[e.fq=[]]}),1e3),setTimeout((function(){e.$message.success("修改成功"),e.queryPerimeterDevice({pageNo:e.pageNo,pageSize:e.pageSize})}),5e3)):(e.open1=!1,e.open2=!1,e.queryPerimeterDevice({pageNo:e.pageNo,pageSize:e.pageSize}),setTimeout((function(){return[e.fq=[]]}),1e3))}))},handleCurrentChange:function(e){this.pageNo=e,this.queryPerimeterDevice({pageNo:this.pageNo,pageSize:this.pageSize,dkAreaName:this.query.dkAreaName,dkZoneName:this.query.dkZoneName,dkZoneStatus:this.query.dkZoneStatus})},handleSizeChange:function(e){this.pageSize=e,this.queryPerimeterDevice({pageNo:this.pageNo,pageSize:this.pageSize,dkAreaName:this.query.dkAreaName,dkZoneName:this.query.dkZoneName,dkZoneStatus:this.query.dkZoneStatus})},queryPerimeterDevice:function(e){var t=this;r.queryPerimeterDevice(e).then((function(e){"SUCCESS"==e.status&&e.data.pageList&&(t.tableData=e.data.pageList,t.totalCount=e.data.totalCount,t.loading=!1)}))},handleDelete:function(e,t){var a=this;this.$confirm("确定删除该数据吗?","删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){r.perimeterAlarmDel({id:t.id}).then((function(e){a.$message.success("删除成功"),a.queryPerimeterDevice({pageNo:a.pageNo,pageSize:a.pageSize})}))})).catch((function(){a.$message.info("已取消删除")}))},exportExcel:function(){},batchDelete:function(){for(var e=this.multipleSelection,t=this.tableData,a=e.length,i=t.length,o=0;o