1 line
107 KiB
JavaScript
1 line
107 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8f854eda"],{"24c8":function(e,t,a){},"25b5":function(e,t,a){"use strict";a("6066")},"26fb":function(e,t,a){"use strict";a("6cd6")},"5fccc":function(e,t,a){},6066:function(e,t,a){},"6cd6":function(e,t,a){},"770a":function(e,t,a){},8345:function(e,t,a){"use strict";a("5fccc")},"86fc":function(e,t,a){"use strict";a("c54d")},"8b31":function(e,t,a){"use strict";a("24c8")},a402:function(e,t,a){},b2f2:function(e,t,a){"use strict";a("a402")},c54d:function(e,t,a){},cfb6:function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return o})),a.d(t,"e",(function(){return l})),a.d(t,"g",(function(){return r})),a.d(t,"h",(function(){return c})),a.d(t,"d",(function(){return u})),a.d(t,"f",(function(){return p}));var i=a("b775");function s(e){return Object(i["a"])({url:"/space/DangerousSourceMonitor/createBatch",method:"post",data:e})}function n(e){return Object(i["a"])({url:"/space/DangerousSourceMonitor/findById",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/space/DangerousSourceMonitor/pageList",method:"post",data:e})}function l(e){return Object(i["a"])({url:"/space/DangerousSourceMonitor/unrelatedPageList",method:"post",data:e})}function r(e){return Object(i["a"])({url:"/space/DangerousSourceMonitor/updateNextResetTime",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/space/DangerousSourceMonitor/updateStatus",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/space/DangerousSourceMonitor/relStandPageList",method:"post",data:e})}function p(e){return Object(i["a"])({url:"/space/DangerousSourceMonitor/updateMonitorStartTime",method:"post",data:e})}},d0eb: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 bgHeight"},[a("el-tabs",{staticClass:"spaceIndex",attrs:{type:"border-card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"空间网格",name:"spaceIndex"}},[a("spaceIndex")],1),e._v(" "),a("el-tab-pane",{attrs:{label:"网格码配置",name:"whiteCodeList"}},[a("whiteCodeList")],1),e._v(" "),a("el-tab-pane",{attrs:{label:"隐患信息",name:"warningList"}},[a("warningList")],1)],1)],1)},s=[],n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"网格信息",name:"spatialRegion"}},[a("spatialRegion")],1),e._v(" "),a("el-tab-pane",{attrs:{label:"网格模板",name:"locationTemplate"}},[a("locationTemplate")],1),e._v(" "),a("el-tab-pane",{attrs:{label:"模板应用",name:"templateApplication"}},[a("templateApplication",{ref:"templateApplication"})],1)],1)],1)},o=[],l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"bgHeight"},[a("div",{ref:"box",staticClass:"searchStys transition_dom"},[a("el-form",{ref:"query",attrs:{model:e.query}},[a("div",{ref:"form_box",staticClass:"searchBar"},[a("div",{staticClass:"searchInput"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{prop:"spaceUuid"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择空间名称"},model:{value:e.query.spaceUuid,callback:function(t){e.$set(e.query,"spaceUuid",t)},expression:"query.spaceUuid"}},e._l(e.spaceTypeList,(function(e){return a("el-option",{key:e.spaceUuid,attrs:{label:e.name,value:e.spaceUuid}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{prop:"location"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入网格信息"},model:{value:e.query.location,callback:function(t){e.$set(e.query,"location",t)},expression:"query.location"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{prop:"enableStatus"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择状态"},model:{value:e.query.enableStatus,callback:function(t){e.$set(e.query,"enableStatus",t)},expression:"query.enableStatus"}},e._l(e.statusList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{prop:"sceneId"}},[a("el-select",{attrs:{placeholder:"选择场景归属",clearable:""},model:{value:e.query.sceneId,callback:function(t){e.$set(e.query,"sceneId",t)},expression:"query.sceneId"}},e._l(e.sceneMenu,(function(e,t){return a("el-option",{key:t,attrs:{label:e.sceneName,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{prop:"spaceLocationTypes"}},[a("el-select",{attrs:{clearable:"",placeholder:"网格分类","collapse-tags":"",multiple:""},model:{value:e.query.spaceLocationTypes,callback:function(t){e.$set(e.query,"spaceLocationTypes",t)},expression:"query.spaceLocationTypes"}},e._l(e.gridClassList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"searchBtn"},[a("el-form-item",[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(t){return e.resetForm("query")}}},[e._v("重置")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:e.onSearch}},[e._v("查询")]),e._v(" "),e.is_show||"80px"==e.height?e._e():a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:e.upAndDown}},[e._v("展开"),a("i",{staticClass:"el-icon-arrow-down"})]),e._v(" "),e.is_show&&"80px"!=e.height?a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:e.upAndDown}},[e._v("收起"),a("i",{staticClass:"el-icon-arrow-up"})]):e._e()],1)],1)])])],1),e._v(" "),a("el-card",{staticClass:"box-card",attrs:{shadow:"never"}},[a("div",{staticClass:"planLst",attrs:{slot:"header"},slot:"header"},[a("span",{staticClass:"planTitle"},[e._v("空间网格列表")]),e._v(" "),a("div",[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary",size:"small"},on:{click:e.ruleGroupConfig}},[e._v("规则组配置")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary",size:"small"},on:{click:e.addSpace}},[e._v("新增空间")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary",size:"small"},on:{click:e.addPosition}},[e._v("新增网格")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary",size:"small"},on:{click:e.addDangerousSource}},[e._v("识别危险源")])],1)]),e._v(" "),a("div",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],staticClass:"mr10",attrs:{type:"primary",size:"small"},on:{click:e.downloadSpaceTmp}},[e._v("导出空间网格")]),e._v(" "),a("el-upload",{ref:"upload",staticClass:"importSpaceTmpBtn mr10",attrs:{loading:e.importDataBtn,"auto-upload":!0,"show-file-list":!1,accept:".xlsx","http-request":e.importSpaceTmp,action:""}},[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],staticClass:"el-icon-upload2",attrs:{type:"primary",size:"small"}},[e._v("导入空间网格")])],1),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary",size:"small"},on:{click:e.exportBatchBinding}},[e._v("导出物品批量绑定")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],staticClass:"el-icon-upload2",attrs:{type:"primary",size:"small"},on:{click:e.batchBinding}},[e._v("导入批量绑定")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary",size:"small"},on:{click:e.batchExportQr}},[e._v("批量导出已选")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary",size:"small"},on:{click:e.exportExcelList}},[e._v("下载Excel")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.exportBatchDeviceLoading,loading:e.exportBatchDeviceLoading,size:"small"},on:{click:e.exportBatchDevice}},[e._v("导出设备批量绑定")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.batchBindStandard}},[e._v("批量绑定标准")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"multipleTable",attrs:{border:"","header-cell-style":e.headClass,data:e.listData,"row-key":"qrUuid"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center","reserve-selection":!0,width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"场景","show-overflow-tooltip":"",prop:"","min-width":"160",fixed:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sceneName||"-"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"空间网格编码","show-overflow-tooltip":"",prop:"","min-width":"160",fixed:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.locationCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"空间","show-overflow-tooltip":"",fixed:"left","min-width":"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.spaceName?t.row.spaceName:"-"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"网格","show-overflow-tooltip":"","min-width":"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.location?t.row.location:"-"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"二维码编码","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.qrCode||"-"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"网格分类","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("getItemType")(t.row.spaceLocationType,e.gridClassList)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"最近更新人","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.updateUserName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"更新时间","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.updateDate))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"启停状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.enableStatus?a("el-tag",{attrs:{type:"success"}},[e._v("启用")]):e._e(),e._v(" "),1==t.row.enableStatus?a("el-tag",{attrs:{type:"info"}},[e._v("停用")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作",fixed:"right","min-width":"240"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:function(a){return e.goto(t.row)}}},[e._v("查看图片集")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:function(a){return e.editDetail(t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:function(a){return e.viewDetail(t.row)}}},[e._v("查看")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],class:1==t.row.enableStatus?"statusTrue":"statusFalse",attrs:{type:"text"},on:{click:function(a){return e.updataStatus(t.row)}}},[e._v(e._s(1==t.row.enableStatus?"启用":"停用"))])]}}])})],1),e._v(" "),a("div",{staticClass:"paginations"},[a("Pagination",{attrs:{total:e.total},on:{handleCurrentChange:e.handleCurrentChange,handleSizeChange:e.handleSizeChange}})],1)],1),e._v(" "),a("el-dialog",{staticClass:"dialogHead",attrs:{title:"新增空间",visible:e.spaceVisible,"show-close":!0,"close-on-press-escape":!1,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.spaceVisible=t}}},[a("el-form",{attrs:{model:e.add,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"选择业态"}},[a("el-select",{attrs:{placeholder:"请选择业态"},on:{change:e.selectPtId},model:{value:e.add.ptId,callback:function(t){e.$set(e.add,"ptId",t)},expression:"add.ptId"}},e._l(e.typeList,(function(e){return a("el-option",{key:e.targetId,attrs:{label:e.name,value:e.targetId}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"选择空间"}},[a("el-select",{attrs:{multiple:"",placeholder:"请选择空间"},model:{value:e.add.nameList,callback:function(t){e.$set(e.add,"nameList",t)},expression:"add.nameList"}},e._l(e.spaceList,(function(e){return a("el-option",{key:e.targetId,attrs:{label:e.name,value:e.name}})})),1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(t){e.spaceVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary",disabled:e.btnloading},on:{click:e.postSpace}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{staticClass:"dialogHead",attrs:{"show-close":!0,"close-on-press-escape":!1,"close-on-click-modal":!1,visible:e.pictureDialog,width:"630px"},on:{"update:visible":function(t){e.pictureDialog=t}}},[a("span",{attrs:{slot:"title"},slot:"title"},[a("span",{staticClass:"header-main-title"},[e._v("照片集")]),e._v(" "),a("span",{staticClass:"header-sub-title"},[e._v("注:对图片进行删除,删除后的图片再被选择为初始化图片,则这里再次显示")])]),e._v(" "),a("div",{staticClass:"imgPreview"},[e.pictureUrl.length>0?e._l(Math.ceil(e.pictureUrl.length/3),(function(t,i){return a("el-row",{key:t,staticClass:"pictureRow",attrs:{type:"flex"}},e._l(e.pictureUrl.slice(0===i?0:3*i,3*(i+1)),(function(t){return a("el-col",{key:t.src,attrs:{span:8}},[a("div",{staticClass:"imgItem",on:{click:function(a){return e.handleImg(t)}}},[a("span",{staticClass:"imgWrap"},[a("img",{staticStyle:{cursor:"pointer"},attrs:{src:t.src,alt:""}})]),e._v(" "),a("span",{staticClass:"btnWrap2"},[a("i",{staticClass:"floats"},[a("el-image",{staticClass:"bannerImg",attrs:{src:e.replaceUrl(t.src),"preview-src-list":[t.src],fit:"contain"}})],1)]),e._v(" "),t.checked?a("span",{staticClass:"btnWrap"},[a("el-button",{attrs:{type:"primary",icon:"el-icon-check",circle:""}})],1):e._e()])])})),1)})):a("div",{staticClass:"noData"},[e._v("暂无数据")]),e._v(" "),a("div",{staticClass:"picture"},[e.pictureUrl.length>0?a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:e.saveSelect}},[e._v("确定删除")]):e._e(),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(t){e.pictureDialog=!1}}},[e._v("取消")])],1)],2)]),e._v(" "),e.viewImport?a("el-dialog",{staticClass:"dialogHead",attrs:{title:"查看导入详情","show-close":!0,"close-on-press-escape":!1,"close-on-click-modal":!1,"destroy-on-close":"",visible:e.viewImport},on:{"update:visible":function(t){e.viewImport=t}}},[a("div",{staticClass:"center2"},[a("span",[e._v("上传成功!共上传")]),e._v(" "),a("span",{staticClass:"color1"},[e._v(e._s(e.totalCount))]),e._v(" "),a("span",[e._v("条,成功")]),e._v(" "),a("span",{staticClass:"color2"},[e._v(e._s(e.successCount))]),e._v(" "),a("span",[e._v("条,失败")]),e._v(" "),a("span",{staticClass:"color3"},[e._v(e._s(e.errorCount))]),e._v(" "),a("span",[e._v("条")]),e._v(" "),a("span",[a("el-button",{staticStyle:{"font-size":"16px"},attrs:{type:"text"},on:{click:e.downloadImportDetailes}},[e._v("\n 查看导入详情")])],1)]),e._v(" "),a("div",{staticClass:"btnStsy"},[a("el-button",{attrs:{type:"info"},on:{click:function(t){e.viewImport=!1}}},[e._v("取消")])],1)]):e._e(),e._v(" "),a("el-dialog",{staticClass:"dialogHead",attrs:{title:"add"==e.bindStatus?"下载批量绑定模板":"批量绑定",visible:e.bindVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"30%"},on:{"update:visible":function(t){e.bindVisible=t}}},[a("el-form",{attrs:{model:e.form,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"绑定类型"}},[a("el-select",{attrs:{placeholder:"请选择绑定类型"},model:{value:e.form.targetType,callback:function(t){e.$set(e.form,"targetType",t)},expression:"form.targetType"}},e._l(e.targetTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value,disabled:e.disabled}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"批量绑定文件"}},[3==e.form.targetType?a("el-upload",{ref:"upload",staticClass:"importChargingBtn",attrs:{"auto-upload":!0,"show-file-list":!1,accept:".xlsx","http-request":e.importBatchBindTmp,action:""}},[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],staticClass:"el-icon-upload2",attrs:{loading:e.importDataBtn,type:"primary"}},[e._v("批量绑定空间物品")])],1):e._e(),e._v(" "),1==e.form.targetType?a("el-upload",{ref:"importDevice",attrs:{"auto-upload":!0,"show-file-list":!1,accept:".xlsx","http-request":e.batchDevice,action:""}},[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],staticClass:"el-icon-upload2",attrs:{loading:e.importDeviceLoading,type:"primary"}},[e._v("批量绑定设施设备")])],1):e._e()],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(t){e.bindVisible=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("standSelect",{attrs:{show:e.standSelectShow,selectList:e.tableSelected},on:{close:e.closeSelect,callback:e.callbackSelect}})],1)},r=[],c=a("333d"),u=a("be2e"),p=a("24d2"),d=a("5f43"),m=a("e350"),h=a("1a80"),f=a("d2a7"),g=a("cfb6"),v=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:e.standDialogtitle,visible:e.show,width:"80%","before-close":e.resetstandDialog},on:{"update:visible":function(t){e.show=t}}},[a("div",{staticClass:"standQuerySearch"},[a("el-row",[a("el-col",{staticClass:"elCol",attrs:{span:4}},[a("el-input",{attrs:{type:"text",clearable:"",placeholder:"作业事项"},model:{value:e.standQuery.eventName,callback:function(t){e.$set(e.standQuery,"eventName","string"===typeof t?t.trim():t)},expression:"standQuery.eventName"}})],1),e._v(" "),a("el-col",{staticClass:"elCol",attrs:{span:4}},[a("el-select",{staticClass:"select-dom",attrs:{clearable:"",placeholder:"请选择职责归属"},model:{value:e.standQuery.jobName,callback:function(t){e.$set(e.standQuery,"jobName",t)},expression:"standQuery.jobName"}},e._l(e.jobListArr,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.name}})})),1)],1),e._v(" "),a("el-col",{staticClass:"elCol",attrs:{offset:12,span:4}},[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(t){return e.resetstandQueryForm()}}},[e._v("重置")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:e.onstandQuerySearch}},[e._v("查询")])],1)],1)],1),e._v(" "),a("el-table",{ref:"multipleTable",attrs:{border:"",size:"mini","header-cell-style":e.headClass,data:e.standList,"row-key":"standUuid"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"55","reserve-selection":!0}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"作业事项",prop:"eventName","show-overflow-tooltip":"","min-width":"200"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"作业标准",prop:"serviceDesc","show-overflow-tooltip":"","min-width":"150"}}),e._v(" "),a("el-table-column",{attrs:{align:"center","min-width":"150",label:"检查标准","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.serviceDesc||"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center","min-width":"120",label:"频次",prop:"freName","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{align:"center","min-width":"140",label:"职责归属",prop:"jobName","show-overflow-tooltip":""}})],1),e._v(" "),a("div",{staticClass:"paginations"},[a("el-pagination",{attrs:{background:"","current-page":e.standQuery.pageNumber,"page-sizes":[10],"page-size":e.standQuery.pageSize,layout:"total, prev, pager, next, jumper",total:e.standTotal},on:{"size-change":e.handlestandSizeChange,"current-change":e.handlestandCurrentChange}})],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.resetstandDialog()}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitstandDialog()}}},[e._v("确认添加")])],1)],1)],1)},b=[],y=a("f8b7"),_={props:{show:{type:Boolean,default:!1},selectList:{type:Array,default:[]}},data:function(){return{standDialogtitle:"批量绑定标准",jobListArr:[],standQuery:{eventName:"",jobName:"",pageNumber:1,pageSize:10,projectUuid:this.$store.state.community_uuid},standTotal:0,standList:[],multipleSelection:[]}},mounted:function(){this.getJobListPeople(),this.getlistData()},methods:{getJobListPeople:function(){var e=this,t={projectUuid:this.$store.state.community_uuid,flag:1};Object(y["q"])(t).then((function(t){0===t.code&&(e.jobListArr=t.data)}))},getlistData:function(){var e=this;Object(u["tb"])(this.standQuery).then((function(t){0===t.code&&(e.standList=t.data.records,e.standTotal=t.data.rowsCount)}))},handleSelectionChange:function(e){this.multipleSelection=e},handlestandSizeChange:function(e){this.standQuery.pageSize=e,this.standQuery.pageNumber=1,this.getlistData()},handlestandCurrentChange:function(e){this.standQuery.pageNumber=e,this.getlistData()},resetstandQueryForm:function(){this.standQuery.eventName="",this.standQuery.jobName="",this.standQuery.pageNumber=1,this.isQuery=1,this.getlistData()},onstandQuerySearch:function(){this.getlistData()},resetstandDialog:function(){this.standQuery.eventName="",this.standQuery.jobName="",this.standQuery.pageNumber=1,this.$refs.multipleTable.clearSelection(),this.$emit("close")},headClass:function(){return"text-align:center;background:#FAFAFA;"},submitstandDialog:function(){var e=this;console.log(this.selectList),console.log(this.multipleSelection);var t={projectUuid:this.$store.state.community_uuid,locationUuids:this.selectList.map((function(e){return e["locationUuid"]})),standDataList:this.multipleSelection.map((function(e){return{standardUuid:e["standUuid"],eventProjectName:e["eventName"],category:8}}))};console.log(t),Object(d["a"])(t).then((function(t){0==t.code&&(e.$message({type:"success",message:"标准批量绑定成功"}),e.standQuery.eventName="",e.standQuery.jobName="",e.standQuery.pageNumber=1,e.$refs.multipleTable.clearSelection(),e.$emit("callback"))}))}}},w=_,k=(a("8345"),a("829d")),S=Object(k["a"])(w,v,b,!1,null,"d4f0e4d0",null),I=S.exports,L=a("dce5"),C={components:{Pagination:c["a"],picturePreview:h["a"],standSelect:I},data:function(){return{gridClassList:L["bb"],is_show:!1,pictureDialog:!1,height:"",checkButtonsPermission:m["a"],projectId:"",spaceTypeList:[],spaceList:[],typeList:[],spaceVisible:!1,pictureUrl:[],examplesImageUrl:[],listData:[],listLoading:!1,total:0,add:{ptId:"",nameList:[]},query:{pageNumber:1,pageSize:10,spaceUuid:"",location:"",spaceLocationTypes:[],sceneId:"",enableStatus:""},sceneMenu:[],statusList:[{value:0,label:"启用"},{value:1,label:"停用"}],tableSelected:[],btnloading:!1,importDataBtn:!1,viewImport:!1,importDeviceLoading:!1,exportBatchDeviceLoading:!1,totalCount:"",successCount:"",errorCount:"",downloadInfo:null,targetTypeList:[{value:1,label:"设施设备",disabled:!1},{value:3,label:"物品",disabled:!1},{value:4,label:"房屋",disabled:!0},{value:5,label:"绿植",disabled:!0}],bindVisible:!1,form:{targetType:3},bindStatus:"add",standSelectShow:!1}},beforeRouteEnter:function(e,t,a){a((function(t){var a=e.name,i=JSON.parse(sessionStorage.getItem(a));i&&(t.query=i),t.getList()}))},mounted:function(){this.$route.path.includes("dangerousGrid")&&(this.gridClassList=this.gridClassList.filter((function(e){if("不含危险源"!==e.label)return e}))),this.getRealHeight()},created:function(){this.projectId=this.$store.state.community_uuid,this.getSpaceList(),this.getList(),this.headClass(),this.getSceneMenuList()},methods:{exportBatchDevice:function(){var e=this;this.exportBatchDeviceLoading=!0;var t={projectUuid:this.$store.state.community_uuid};Object(d["c"])(t).then((function(t){var a="application/vnd.ms-excel;charset=UTF-8",i=new Blob([t],{type:a}),s="空间网格批量绑定设备导入模板.xlsx";if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(i,s),e.exportBatchDeviceLoading=!1;else{var n=document.createElement("a");n.download=s,n.style.display="none",n.href=URL.createObjectURL(i),document.body.appendChild(n),n.click(),document.body.removeChild(n),e.exportBatchDeviceLoading=!1}}))},batchDevice:function(e){var t=this,a=e.file,i=a.size/1024/1024<20,s=a.name.lastIndexOf("."),n=a.name.length,o=a.name.substring(s+1,n);if("xls"==o||"xlsx"==o)if(i){var l=new FormData;this.fileName=a.name,l.append("file",a,a.name);var r="/".concat(this.$store.state.community_uuid,"/").concat(this.$store.state.user.userInfo.memberId);this.importDeviceLoading=!0,Object(d["x"])(l,r).then((function(e){console.log("response",e);var a=e.headers,i=e.data;if(t.downloadInfo=i,a.count)if(a.count.includes(-1))t.importDeviceLoading=!1,t.teanslateResBlob(i);else{var s=JSON.parse(a.count);s&&(0==s.code?(t.importDeviceLoading=!1,s.errorCount>0?(t.viewImport=!0,t.totalCount=s.totalCount,t.successCount=s.successCount,t.errorCount=s.errorCount):t.$message({message:"导入成功",type:"success"}),t.query.pageNumber=1,t.getList(),t.bindVisible=!1):t.importDeviceLoading=!1)}else t.importDeviceLoading=!1,t.teanslateResBlob(i)})).catch((function(){t.importDeviceLoading=!1}))}else this.$message("上传文件大小不能超过20M!");else this.$message("只能上传Excel文件!")},getSceneMenuList:function(){var e=this;Object(f["a"])().then((function(t){e.sceneMenu=t.data}))},saveSelect:function(){var e=this;0!==this.examplesImageUrl.length?(Object(d["i"])({idList:this.examplesImageUrl}).then((function(t){0==t.code&&(e.$message({message:"删除成功",type:"success"}),e.pictureDialog=!1)})).catch((function(){e.pictureDialog=!1})),this.pictureDialog=!1):this.$message({message:"请选择图片",type:"error"})},goto:function(e){this.$router.push({name:"showSatialPositionImg",query:{locationUuid:e.locationUuid}})},viewPhotos:function(e){var t=this;this.pictureUrl=[],this.examplesImageUrl=[],Object(d["z"])({locationUuid:e.locationUuid}).then((function(e){0===e.code&&e.data.records.length>0&&(t.pictureUrl=e.data.records.map((function(e,t){return{src:e.examplesImageUrl,id:e.id,checked:!1}})),console.log(t.pictureUrl,"this.pictureUrl"))})),this.pictureDialog=!0},replaceUrl:function(e){return e&&e.split(";")[0]||""},handleImg:function(e){var t=this.examplesImageUrl.indexOf(e.id);if(-1!==t)return this.examplesImageUrl.splice(t,1),void(e.checked=!1);this.examplesImageUrl.length>=6||(this.examplesImageUrl.push(e.id),e.checked=!0)},checkSelectable:function(e){return!!e.qrUuid},getList:function(){var e=this;this.query.projectUuid=this.projectId;var t=JSON.parse(JSON.stringify(this.query));this.$route.path.includes("dangerousGrid")&&0==t.spaceLocationTypes.length&&(t.spaceLocationTypes=[1,2]),Object(u["lb"])(t).then((function(t){e.listData=t.data.records,e.total=t.data.rowsCount}))},getSpaceList:function(){var e=this;Object(u["ib"])({projectId:this.projectId}).then((function(t){0==t.code?e.spaceTypeList=t.data:e.$message.error(t.message)}))},getProjectList:function(){var e=this;Object(p["d"])().then((function(t){0==t.code?(e.typeList=t.data,e.add.ptId=t.data[0].targetId,e.getAddSpaceList()):e.$message.error(t.message)}))},getAddSpaceList:function(){var e=this,t={ptId:this.add.ptId,projectId:this.projectId};Object(d["E"])(t).then((function(t){e.spaceList=t.data}))},selectPtId:function(e){this.add.nameList=[],this.getAddSpaceList()},postSpace:function(){var e=this;this.add.ptId&&this.add.nameList.length>0?(this.add.projectId=this.projectId,this.btnloading=!0,Object(d["g"])(this.add).then((function(t){e.$message({message:"添加成功",type:"success"}),e.spaceVisible=!1,e.getSpaceList(),e.btnloading=!1})).catch((function(t){e.btnloading=!1}))):this.$message("必须选择需要添加的空间")},updataStatus:function(e){var t=this,a=JSON.parse(JSON.stringify(e)),i=Object.assign(a,{enableStatus:0==a.enableStatus?1:0}),s=0==a.enableStatus?"启用":"停用";this.$confirm("确定".concat(s,"该数据吗?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"info",center:!0}).then((function(){Object(u["zb"])(i).then((function(e){0==e.code?(t.$message({message:"".concat(s,"成功"),type:"success"}),t.getList()):t.$message({message:"".concat(s,"失败"),type:"error"})})).catch((function(){}))}))},onSearch:function(){this.query.pageNumber=1,this.getList()},resetForm:function(e){this.$refs[e].resetFields(),this.query.pageNumber=1,this.getList()},addSpace:function(){this.add={ptId:"",nameList:[]},this.getProjectList(),this.spaceVisible=!this.spaceVisible},addPosition:function(){this.$router.push({name:"addSatialPosition"})},editDetail:function(e){this.$router.push({name:"editSatialPosition"}),sessionStorage.setItem("saveEditSatialPosition",JSON.stringify(e))},ruleGroupConfig:function(){this.$router.push({name:"ruleConfigList"})},handleSizeChange:function(e){this.query.pageSize=e.limit,this.query.pageNumber=1,this.getList()},headClass:function(){return"text-align:center;background:#FAFAFA;"},handleCurrentChange:function(e){this.query.pageNumber=e.currentPage,this.getList()},viewDetail:function(e){this.$router.push({name:"viewSpaceContent",query:{data:e}})},memoryChecked:function(){var e=this,t=[];this.tableSelected.forEach((function(e){t.push(e.qrUuid)})),t.length&&this.$nextTick((function(){e.listData.forEach((function(a,i){console.log(a),t.indexOf(a.qrUuid)>=0&&e.$refs.multipleTable.toggleRowSelection(a,!0)}))}))},handleSelectionChange:function(e){this.tableSelected=e},batchExportQr:function(){if(0==this.tableSelected.length)return this.$message({type:"info",message:"请选择需要导出的二维码"}),!1;var e={qrUuidList:this.tableSelected.map((function(e){return e.qrUuid}))};Object(d["m"])(e).then((function(e){var t=new Blob([e],{type:"application/zip"}),a=(new Date).valueOf(),i="空间网格二维码"+a+"-批量.zip";if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(t,i);else{var s=document.createElement("a");s.download=i,s.style.display="none",s.href=URL.createObjectURL(t),s.click(),URL.revokeObjectURL(s.href),document.body.removeChild(s)}}))},upAndDown:function(){this.is_show?this.$refs.box.style.height="80px":this.$refs.box.style.height=this.height,this.is_show=!this.is_show},getRealHeight:function(){this.$nextTick((function(){this.height=this.$refs.form_box.offsetHeight+"px"}))},importSpaceTmp:function(e){var t=this,a=e.file,i=a.size/1024/1024<20,s=a.name.lastIndexOf("."),n=a.name.length,o=a.name.substring(s+1,n);if("xls"==o||"xlsx"==o)if(i){var l=new FormData;this.fileName=a.name,l.append("file",a,a.name);var r="/".concat(this.$store.state.community_uuid,"/").concat(this.$store.state.user.userInfo.memberId);this.importDataBtn=!0,Object(d["u"])(l,r).then((function(e){var a=e.headers,i=e.data;if(t.downloadInfo=i,a.count)if(a.count.includes(-1))t.importDataBtn=!1,t.teanslateResBlob(i);else{var s=JSON.parse(a.count);s&&(0==s.code?(t.importDataBtn=!1,s.errorCount>0?(t.viewImport=!0,t.totalCount=s.totalCount,t.successCount=s.successCount,t.errorCount=s.errorCount):t.$message({message:"导入成功",type:"success"}),t.query.pageNumber=1,t.getList()):t.importDataBtn=!1)}else t.importDataBtn=!1,t.teanslateResBlob(i)})).catch((function(){t.importDataBtn=!1}))}else this.$message("上传文件大小不能超过20M!");else this.$message("只能上传Excel文件!")},teanslateResBlob:function(e){var t=this,a=new FileReader;a.readAsText(e),a.onload=function(){var e=this.result;e&&(e=JSON.parse(e),-1===e.code&&t.$message({message:e.message,type:"error"}))}},downloadImportDetailes:function(){var e="application/vnd.ms-excel;charset=UTF-8",t=new Blob([this.downloadInfo],{type:e}),a="导入失败详情.xlsx";if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(t);else{var i=document.createElement("a");i.download=a,i.style.display="none",i.href=URL.createObjectURL(t),document.body.appendChild(i),i.click(),document.body.removeChild(i)}},downloadSpaceTmp:function(){var e={projectUuid:this.$store.state.community_uuid};Object(d["o"])(e).then((function(e){var t="application/vnd.ms-excel;charset=UTF-8",a=new Blob([e],{type:t}),i="空间网格导入模板.xlsx";if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(a,i);else{var s=document.createElement("a");s.download=i,s.style.display="none",s.href=URL.createObjectURL(a),document.body.appendChild(s),s.click(),document.body.removeChild(s)}}))},batchBinding:function(){this.bindStatus="edit",this.viewImport=!1,this.totalCount="",this.successCount="",this.errorCount="",this.downloadInfo=null,this.bindVisible=!0},exportBatchBinding:function(){var e={projectUuid:this.$store.state.community_uuid};Object(d["n"])(e).then((function(e){var t="application/vnd.ms-excel;charset=UTF-8",a=new Blob([e],{type:t}),i="空间网格批量绑定物品导入模板.xlsx";if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(a,i);else{var s=document.createElement("a");s.download=i,s.style.display="none",s.href=URL.createObjectURL(a),document.body.appendChild(s),s.click(),document.body.removeChild(s)}}))},exportExcelList:function(){this.query.projectUuid=this.projectId,Object(d["k"])(this.query).then((function(e){var t=new Blob([e],{type:"application/vnd.ms-excel;charset=UTF-8"}),a=(new Date).valueOf();if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(t);else{var i=document.createElement("a");i.download="空间网格网格列表_".concat(a,".xls"),i.href=URL.createObjectURL(t),i.click(),URL.revokeObjectURL(i.href),document.body.removeChild(i)}}))},importBatchBindTmp:function(e){var t=this,a=e.file,i=a.size/1024/1024<20,s=a.name.lastIndexOf("."),n=a.name.length,o=a.name.substring(s+1,n);if("xls"==o||"xlsx"==o)if(i){var l=new FormData;this.fileName=a.name,l.append("file",a,a.name);var r="/".concat(this.$store.state.community_uuid,"/").concat(this.$store.state.user.userInfo.memberId);this.importDataBtn=!0,Object(d["t"])(l,r).then((function(e){console.log("response",e);var a=e.headers,i=e.data;if(t.downloadInfo=i,a.count)if(a.count.includes(-1))t.importDataBtn=!1,t.teanslateResBlob(i);else{var s=JSON.parse(a.count);s&&(0==s.code?(t.importDataBtn=!1,s.errorCount>0?(t.viewImport=!0,t.totalCount=s.totalCount,t.successCount=s.successCount,t.errorCount=s.errorCount):t.$message({message:"导入成功",type:"success"}),t.query.pageNumber=1,t.getList(),t.bindVisible=!1):t.importDataBtn=!1)}else t.importDataBtn=!1,t.teanslateResBlob(i)})).catch((function(){t.importDataBtn=!1}))}else this.$message("上传文件大小不能超过20M!");else this.$message("只能上传Excel文件!")},addDangerousSource:function(){var e=this;if(0==this.tableSelected.length)return this.$message({type:"warning",message:"请选择需要识别为危险源的空间网格"}),!1;var t={creatorId:this.$store.state.user.userInfo.memberId,creatorName:this.$store.state.user.userInfo.memberName,locationUuids:this.tableSelected.map((function(e){return e.locationUuid})),projectUuid:this.$store.state.community_uuid};Object(g["a"])(t).then((function(t){0===t.code?(e.$refs.multipleTable.clearSelection(),e.$message({message:"危险源识别成功",type:"success"})):e.$message({message:"危险源识别失败",type:"error"})}))},batchBindStandard:function(){if(0==this.tableSelected.length)return this.$message({type:"warning",message:"请选择需要绑定标准的空间网格"}),!1;this.standSelectShow=!0},closeSelect:function(){this.standSelectShow=!1},callbackSelect:function(){this.standSelectShow=!1,this.$refs.multipleTable.clearSelection(),this.getList()}}},x=C,N=(a("26fb"),Object(k["a"])(x,l,r,!1,null,"4500c34c",null)),T=N.exports,$=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",[a("el-form",{staticClass:"demo-form-inline",attrs:{model:e.query,inline:!0}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:16}},[a("el-form-item",[a("el-input",{staticClass:"form-item-content",attrs:{placeholder:"模板名称",clearable:""},model:{value:e.query.name,callback:function(t){e.$set(e.query,"name",t)},expression:"query.name"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{staticClass:"form-item-button"},[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:e.onSearch}},[e._v("查询")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:e.resetForm}},[e._v("重置")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:e.createPricing}},[e._v("新增模板")])],1)],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{border:"",data:e.listData,"header-cell-style":e.headClass,fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"#",align:"center","min-width":"50","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.query.pageNumber-1)*e.query.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"网格模板名称","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"网格数量",width:"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"numunderline",on:{click:function(a){return e.checkHasBindSpace(t.row)}}},[e._v(e._s(t.row.locationNum?t.row.locationNum:0))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"创建时间","min-width":"170","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createDate?t.row.createDate:"-"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"创建人","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createUserName?t.row.createUserName:"-"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"备注","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remarks?t.row.remarks:"-"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:function(a){return e.addPosition(t.row)}}},[e._v("添加网格")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:function(a){return e.editItem(t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:function(a){return e.deleteItem(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("div",{staticClass:"paginations"},[a("el-pagination",{attrs:{background:"","current-page":e.query.pageNumber,"page-sizes":[10,20,30,50],"page-size":e.query.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"update:currentPage":function(t){return e.$set(e.query,"pageNumber",t)},"update:current-page":function(t){return e.$set(e.query,"pageNumber",t)},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),e._v(" "),a("el-dialog",{staticClass:"dialogHead",attrs:{title:e.title,visible:e.partyVisible,"show-close":!0,"close-on-press-escape":!1,"close-on-click-modal":!1,"destroy-on-close":"",width:"50%"},on:{"update:visible":function(t){e.partyVisible=t},close:e.closeVisible}},[a("el-form",{ref:"infoList",attrs:{model:e.infoList,rules:e.rules,"label-width":"120px",size:"small"}},[a("el-form-item",{attrs:{label:"模板名称",prop:"name"}},[a("el-input",{staticClass:"formItemWidth",attrs:{clearable:"",placeholder:"请输入模板名称"},model:{value:e.infoList.name,callback:function(t){e.$set(e.infoList,"name",t)},expression:"infoList.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"备注",prop:"remarks"}},[a("el-input",{attrs:{type:"textarea",maxlength:"140","show-word-limit":"",clearable:"",placeholder:"请输入备注"},model:{value:e.infoList.remarks,callback:function(t){e.$set(e.infoList,"remarks",t)},expression:"infoList.remarks"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(t){e.partyVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary",disabled:e.btnloading},on:{click:function(t){return e.createTmpByCharges("infoList")}}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{staticClass:"dialogHead",attrs:{title:"空间网格",visible:e.positionVisible,"show-close":!0,"close-on-press-escape":!1,"close-on-click-modal":!1,"destroy-on-close":"",width:"70%"},on:{"update:visible":function(t){e.positionVisible=t},close:e.closeVisible}},[a("el-form",{ref:"positionForm",attrs:{model:e.positionForm,inline:!0,"label-width":"120px",size:"mini"}},[a("el-form-item",{attrs:{prop:"spaceUuid"}},[a("el-select",{staticClass:"select1",attrs:{placeholder:"请选择空间"},model:{value:e.positionForm.spaceUuid,callback:function(t){e.$set(e.positionForm,"spaceUuid",t)},expression:"positionForm.spaceUuid"}},e._l(e.spaceTypeList,(function(e){return a("el-option",{key:e.spaceUuid,attrs:{label:e.name,value:e.spaceUuid}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"location"}},[a("el-input",{attrs:{placeholder:"网格"},model:{value:e.positionForm.location,callback:function(t){e.$set(e.positionForm,"location",t)},expression:"positionForm.location"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"sceneId"}},[a("el-select",{attrs:{placeholder:"选择场景归属",clearable:""},model:{value:e.positionForm.sceneId,callback:function(t){e.$set(e.positionForm,"sceneId",t)},expression:"positionForm.sceneId"}},e._l(e.sceneMenu,(function(e,t){return a("el-option",{key:t,attrs:{label:e.sceneName,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{on:{click:e.resetPositionForm}},[e._v("重置")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.queryPositionForm}},[e._v("查询")])],1)],1),e._v(" "),a("el-table",{ref:"workPositionMultipleTable",staticStyle:{width:"100%"},attrs:{"row-key":"locationUuid",border:"",size:"small",data:e.positionTableData.slice((e.positionQuery.pageNumber-1)*e.positionQuery.pageSize,e.positionQuery.pageNumber*e.positionQuery.pageSize),"tooltip-effect":"dark","header-cell-style":e.headClass},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center","reserve-selection":!0,width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"空间网格编码",align:"center",prop:"locationCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"空间",prop:"spaceName",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"网格",prop:"location",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"场景",prop:"sceneName",align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sceneName?t.row.sceneName:"-"))])]}}])})],1),e._v(" "),a("div",{staticClass:"pagination"},[a("Pagination",{attrs:{total:e.positionPageTotal},on:{handleCurrentChange:e.handlePositionCurrentChange,handleSizeChange:e.handlePositionSizeChange}})],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(t){e.positionVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary",disabled:e.btnloading},on:{click:e.temBindPositions}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"已绑定网格",visible:e.spaceLocationDialog,"show-close":!0,"close-on-press-escape":!1,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(t){e.spaceLocationDialog=t}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.spaceLocationList.slice((e.spaceLocationQuery.pageNumber-1)*e.spaceLocationQuery.pageSize,e.spaceLocationQuery.pageNumber*e.spaceLocationQuery.pageSize),border:"",size:"small","tooltip-effect":"dark","header-cell-style":e.headClass}},[a("el-table-column",{attrs:{label:"空间网格编码",align:"center",prop:"locationCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"空间",prop:"spaceName",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"网格",prop:"location",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"场景",prop:"sceneName",align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sceneName?t.row.sceneName:"-"))])]}}])})],1),e._v(" "),a("div",{staticClass:"pagination"},[a("Pagination",{attrs:{total:e.spaceLocationTotal},on:{handleCurrentChange:e.handleSpaceLocationCurrentChange,handleSizeChange:e.handleSpaceLocationSizeChange}})],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(t){e.spaceLocationDialog=!1}}},[e._v("取 消")])],1)],1)],1)},q=[],D=a("b775");function j(e){return Object(D["a"])({url:"/appproject/SpaceTemplate/create",method:"post",data:e})}function U(e){return Object(D["a"])({url:"/appproject/SpaceTemplate/delete",method:"post",data:e})}function O(e){return Object(D["a"])({url:"/appproject/SpaceTemplate/findById",method:"post",data:e})}function z(e){return Object(D["a"])({url:"/appproject/SpaceTemplate/pageList",method:"post",data:e})}function B(e){return Object(D["a"])({url:"/appproject/SpaceTemplate/update",method:"post",data:e})}function F(e){return Object(D["a"])({url:"/appproject/HouseSpaceTemplateRel/useBatch",method:"post",data:e})}function P(e){return Object(D["a"])({url:"/appproject/HouseSpaceTemplateRel/batchDelete",method:"post",data:e})}function A(e){return Object(D["a"])({url:"/appproject/HouseSpaceTemplateRel/editHouseTemplate",method:"post",data:e})}a("8826");var Q={components:{Pagination:c["a"]},data:function(){return{listData:[],listLoading:!1,total:0,query:{name:"",pageNumber:1,pageSize:10},title:"新增模板",isEdit:0,partyVisible:!1,infoList:{name:"",remarks:""},rules:{name:[{required:!0,message:"请填写模板名称",trigger:"blur"}]},btnloading:!1,positionVisible:!1,positionTableData:[],positionPageTotal:0,positionQuery:{pageNumber:1,pageSize:10,projectUuid:""},positionForm:{spaceUuid:"",location:"",sceneId:""},spaceTypeList:[],sceneMenu:[],workPositionSelection:[],hasSelectedList:[],bindItemTem:null,spaceLocationDialog:!1,spaceLocationList:[],spaceLocationTotal:0,spaceLocationQuery:{pageNumber:1,pageSize:10}}},created:function(){this.query.projectUuid=this.$store.state.community_uuid,this.positionQuery.projectUuid=this.$store.state.community_uuid,this.projectName=this.$store.state.community_name,this.headClass()},mounted:function(){this.getSpaceTemplateList()},methods:{getSpaceTemplateList:function(){var e=this;this.listLoading=!0,z(this.query).then((function(t){t.data&&t.data.records&&(e.listData=t.data.records,e.total=t.data.rowsCount)})),this.listLoading=!1},getSpaceList:function(){var e=this;Object(u["ib"])({projectId:this.$store.state.community_uuid}).then((function(t){0==t.code?e.spaceTypeList=t.data:e.$message.error(t.message)}))},getSceneMenuList:function(){var e=this;Object(f["a"])().then((function(t){e.sceneMenu=t.data}))},getTableList:function(){var e=this,t={pageSize:-1,pageNumber:-1,projectUuid:this.$store.state.community_uuid};t=Object.assign(t,this.positionForm),Object(u["lb"])(t).then((function(t){0==t.code&&(e.positionTableData=t.data.records,e.positionPageTotal=t.data.records.length)}))},checkHasBindSpace:function(e){var t=this,a={id:e.id};Object(u["mb"])(a).then((function(e){0===e.code&&(t.spaceLocationList=e.data,t.spaceLocationTotal=e.data.length,t.spaceLocationDialog=!0)}))},handleSelectionChange:function(e){this.workPositionSelection=e},createPricing:function(){this.isEdit=0,this.title="新增模板",this.partyVisible=!0},resetPositionForm:function(){this.$refs.positionForm.resetFields(),this.getTableList()},queryPositionForm:function(){this.getTableList()},onSearch:function(){this.query.pageNumber=1,this.getSpaceTemplateList()},resetForm:function(){this.query.pageNumber=1,this.query.name="",this.getSpaceTemplateList()},handleSizeChange:function(e){this.query.pageSize=e,this.getSpaceTemplateList()},handleCurrentChange:function(e){this.query.pageNumber=e,this.getSpaceTemplateList()},handlePositionSizeChange:function(e){this.positionQuery.pageNumber=1,this.positionQuery.pageSize=e.limit},handlePositionCurrentChange:function(e){this.positionQuery.pageNumber=e.currentPage},handleSpaceLocationCurrentChange:function(e){this.spaceLocationQuery.pageNumber=e.currentPage},handleSpaceLocationSizeChange:function(e){this.spaceLocationQuery.pageNumber=1,this.spaceLocationQuery.pageSize=e.limit},headClass:function(){return"text-align:center;background:#FAFAFA;"},closeVisible:function(){this.infoList={name:"",remarks:""},this.partyVisible=!1},getSubjectType:function(e){if(null!=e&&""!=e&&void 0!=e){var t=this.salibType.filter((function(t){return t.value==e}));return t.length>0?t[0].label:"-"}return"-"},createTmpByCharges:function(e){var t=this,a=Object.assign({projectUuid:this.$store.state.community_uuid,createUserName:this.$store.state.user.userInfo.memberName,createUserId:this.$store.state.user.userInfo.memberId},this.infoList);this.$refs.infoList.validate((function(e){if(!e)return!1;0===t.isEdit?j(a).then((function(e){0===e.code?(t.$message({type:"success",message:"创建网格模板成功"}),t.partyVisible=!1,t.getSpaceTemplateList()):t.$message({type:"error",message:"创建网格模板失败"})})):B(a).then((function(e){0===e.code?(t.$message({type:"success",message:"更新网格模板成功"}),t.partyVisible=!1,t.getSpaceTemplateList()):t.$message({type:"error",message:"更新网格模板失败"})}))}))},deleteItem:function(e){var t=this;if(e.locationNum&&e.locationNum>0)return this.$message({type:"error",message:"网格模板已被应用,无法删除!"}),!1;this.$confirm("确定删除该网格模板吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"info",center:!0}).then((function(){U({id:e.id}).then((function(e){0===e.code&&(t.$message({type:"success",message:"删除成功"}),t.getSpaceTemplateList())}))})).catch((function(){}))},editItem:function(e){this.isEdit=1,this.title="编辑模板",this.infoList={id:e.id,projectUuid:e.projectUuid,name:e.name,remarks:e.remarks},this.partyVisible=!0},addPosition:function(e){var t=this;this.bindItemTem=e,this.getSceneMenuList(),this.getSpaceList(),this.getTableList(),O({id:e.id}).then((function(e){0===e.code&&(t.hasSelectedList=e.data.locationUuidList?e.data.locationUuidList:[],t.positionVisible=!0,t.setPositionSelect())}))},setPositionSelect:function(){var e=this,t=this.hasSelectedList,a=this.positionTableData.filter((function(e){return t.some((function(t){return t===e.locationUuid}))}));a.length>0?this.$nextTick((function(){a.forEach((function(t){e.$refs.workPositionMultipleTable.toggleRowSelection(t,!0)}))})):this.$nextTick((function(){e.$refs.workPositionMultipleTable.clearSelection()})),this.$forceUpdate()},temBindPositions:function(){var e=this;if(0===this.workPositionSelection.length)return this.$message({type:"error",message:"请选择网格"}),!1;var t=this.getArByKey(this.workPositionSelection,"locationUuid",0),a={id:this.bindItemTem.id,name:this.bindItemTem.name,locationUuidList:t};console.log("params",a),B(a).then((function(t){0===t.code?(e.$message({type:"success",message:"更新网格模板成功"}),e.positionVisible=!1,e.getSpaceTemplateList()):e.$message({type:"error",message:"更新网格模板失败"})}))},getArByKey:function(e,t,a,i){if(0===a)return e.map((function(e){return e[t]}));var s=void 0===i?",":i;return e.map((function(e){return e[t]})).join(s)}}},V=Q,E=(a("25b5"),Object(k["a"])(V,$,q,!1,null,"52f6c613",null)),R=E.exports,H=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.showList?a("div",[a("el-form",{staticClass:"demo-form-inline",attrs:{model:e.query,inline:!0}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:18}},[a("el-form-item",[a("el-input",{staticClass:"form-item-content",attrs:{placeholder:"请输入房间编号",clearable:""},model:{value:e.query.houseNo,callback:function(t){e.$set(e.query,"houseNo",t)},expression:"query.houseNo"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"precinctId"}},[a("el-select",{staticClass:"form-item-content",attrs:{filterable:"",clearable:"",placeholder:"管理区名称"},on:{change:e.selectChange},model:{value:e.query.precinctId,callback:function(t){e.$set(e.query,"precinctId",t)},expression:"query.precinctId"}},e._l(e.areaOptions,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"buildingId"}},[a("el-select",{staticClass:"form-item-content",attrs:{filterable:"",clearable:"",placeholder:"所有楼栋"},on:{change:e.changeBuild},model:{value:e.query.buildingId,callback:function(t){e.$set(e.query,"buildingId",t)},expression:"query.buildingId"}},e._l(e.building,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"unitId"}},[a("el-select",{staticClass:"form-item-content",attrs:{filterable:"",clearable:"",placeholder:"所有单元"},model:{value:e.query.unitId,callback:function(t){e.$set(e.query,"unitId",t)},expression:"query.unitId"}},e._l(e.unit,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"roomNum"}},[a("el-input",{staticClass:"form-item-content",attrs:{placeholder:"请输入房号",clearable:""},model:{value:e.query.roomNum,callback:function(t){e.$set(e.query,"roomNum",t)},expression:"query.roomNum"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:e.onSearch}},[e._v("查询")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:e.resetForm}},[e._v("重置")])],1),e._v(" "),a("el-form-item",[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:e.batchApplication}},[e._v("批量应用")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:e.batchApplicationDelete}},[e._v("批量取消模板应用")])],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{border:"",data:e.listData,"header-cell-style":e.headClass,fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"#",align:"center",fixed:"","min-width":"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.query.pageNumber-1)*e.query.pageSize+1)+"\n ")])]}}],null,!1,3311124033)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"房屋编号",fixed:"","min-width":"220","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.houseNo))])]}}],null,!1,4019345219)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"管理区",fixed:"","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.precinctName))])]}}],null,!1,1930010645)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"楼栋","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buildingName))])]}}],null,!1,3496157463)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"单元","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unitName))])]}}],null,!1,2151930279)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"房间号","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.roomNum))])]}}],null,!1,2917815535)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"房间类型","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("getItemType")(t.row.type,e.houseTypeList)))])]}}],null,!1,3535128942)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"网格模板","min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.houseSpaceTemplateList?e.transTmpName(t.row.houseSpaceTemplateList):"-"))])]}}],null,!1,1957437531)}),e._v(" "),a("el-table-column",{attrs:{align:"center","min-width":"100",fixed:"right",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:function(a){return e.viewItems(t.row)}}},[e._v("查看")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:function(a){return e.editItems(t.row)}}},[e._v("编辑")])]}}],null,!1,213446792)})],1),e._v(" "),a("div",{staticClass:"paginations"},[a("el-pagination",{attrs:{background:"","current-page":e.query.pageNumber,"page-sizes":[10,20,30,50],"page-size":e.query.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"update:currentPage":function(t){return e.$set(e.query,"pageNumber",t)},"update:current-page":function(t){return e.$set(e.query,"pageNumber",t)},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1):e._e(),e._v(" "),e.showDetailes?a("div",[a("tmpDetailes",{ref:"showDetailes",on:{goBackList:e.goBackList}})],1):e._e(),e._v(" "),a("el-dialog",{staticClass:"dialogHead",attrs:{title:"add"===e.batchEdit?"模板批量应用":"模板批量取消应用","modal-append-to-body":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"500px",height:"300px","destroy-on-close":"",visible:e.checkInforVisible},on:{"update:visible":function(t){e.checkInforVisible=t},close:e.closeVisible}},[a("div",{staticClass:"checkInforSelct"},[a("el-form",{ref:"checkInfor",attrs:{model:e.checkInfor,rules:e.checkInforRules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"选择管理区",prop:"precinctId"}},[a("el-select",{attrs:{multiple:"","collapse-tags":"",filterable:"",clearable:"",placeholder:"选择管理区名称"},on:{change:e.selectCheckChange},model:{value:e.checkInfor.precinctId,callback:function(t){e.$set(e.checkInfor,"precinctId",t)},expression:"checkInfor.precinctId"}},[a("el-option",{key:"allprecinctId",attrs:{label:"全部管理区",value:"allprecinctId"}}),e._v(" "),e._l(e.areaOptionsList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],2)],1),e._v(" "),1===e.checkInfor.precinctId.length&&e.chackbuilding.length>0?a("el-form-item",{attrs:{label:"选择楼栋",prop:"buildingId"}},[a("el-select",{attrs:{multiple:"","collapse-tags":"",filterable:"",clearable:"",placeholder:"选择楼栋"},on:{change:e.checkChangeBuild},model:{value:e.checkInfor.buildingId,callback:function(t){e.$set(e.checkInfor,"buildingId",t)},expression:"checkInfor.buildingId"}},[a("el-option",{key:"allbuildingId",attrs:{label:"全部楼栋",value:"allbuildingId"}}),e._v(" "),e._l(e.chackbuilding,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],2)],1):e._e(),e._v(" "),1===e.checkInfor.precinctId.length&&1===e.checkInfor.buildingId.length&&e.chackUnitList.length>0?a("el-form-item",{attrs:{label:"选择单元",prop:"unitId"}},[a("el-select",{attrs:{multiple:"","collapse-tags":"",filterable:"",clearable:"",placeholder:"选择单元"},on:{change:e.checkChangeUnit},model:{value:e.checkInfor.unitId,callback:function(t){e.$set(e.checkInfor,"unitId",t)},expression:"checkInfor.unitId"}},[a("el-option",{key:"allunitId",attrs:{label:"全部单元",value:"allunitId"}}),e._v(" "),e._l(e.chackUnitList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],2)],1):e._e(),e._v(" "),1===e.checkInfor.precinctId.length&&1===e.checkInfor.buildingId.length&&1===e.checkInfor.unitId.length&&e.houseList.length>0?a("el-form-item",{attrs:{label:"选择房间",prop:"houseId"}},[a("el-select",{attrs:{multiple:"","collapse-tags":"",filterable:"",clearable:"",placeholder:"选择房间"},on:{change:e.checkHouseChange},model:{value:e.checkInfor.houseId,callback:function(t){e.$set(e.checkInfor,"houseId",t)},expression:"checkInfor.houseId"}},[a("el-option",{key:"allhouseId",attrs:{label:"全部房间",value:"allhouseId"}}),e._v(" "),e._l(e.houseList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.roomNum,value:e.id}})}))],2)],1):e._e(),e._v(" "),0==e.checkInfor.houseId.length?a("el-form-item",{attrs:{label:"房屋状态",prop:"houseStatusList"}},[a("el-select",{attrs:{multiple:"","collapse-tags":"",filterable:"",clearable:"",placeholder:"选择房屋状态"},on:{change:e.selectHouseStatus},model:{value:e.checkInfor.houseStatusList,callback:function(t){e.$set(e.checkInfor,"houseStatusList",t)},expression:"checkInfor.houseStatusList"}},[a("el-option",{key:"allHouseStatusId",attrs:{label:"全部状态",value:"allHouseStatusId"}}),e._v(" "),e._l(e.houseStatusList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],2)],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"选择模板",prop:"houseSpaceTemplateList"}},[a("el-select",{attrs:{filterable:"",clearable:"",multiple:"",placeholder:"选择模板"},model:{value:e.checkInfor.houseSpaceTemplateList,callback:function(t){e.$set(e.checkInfor,"houseSpaceTemplateList",t)},expression:"checkInfor.houseSpaceTemplateList"}},e._l(e.templeteList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary",loading:e.checkInforbtnLoading},on:{click:function(t){return e.submitForm("checkInfor")}}},[e._v(e._s("add"===e.batchEdit?"确定":"批量取消应用")+" ")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(t){return e.resetFormDialog("checkInfor")}}},[e._v("取消")])],1)],1)],1)]),e._v(" "),a("el-dialog",{staticClass:"dialogHead",attrs:{title:"修改模板应用","modal-append-to-body":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"500px",height:"300px","destroy-on-close":"",visible:e.templateApplicationEditing},on:{"update:visible":function(t){e.templateApplicationEditing=t}}},[a("div",{staticClass:"checkInforSelct"},[a("el-form",{ref:"editInfor",attrs:{model:e.editInfor,rules:e.editInforRules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"房屋编号",prop:"houseNo"}},[a("el-input",{attrs:{disabled:""},model:{value:e.editInfor.houseNo,callback:function(t){e.$set(e.editInfor,"houseNo",t)},expression:"editInfor.houseNo"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"选择模板",prop:"houseSpaceTemplateList"}},[a("el-select",{attrs:{filterable:"",clearable:"",multiple:"",placeholder:"选择模板"},model:{value:e.editInfor.houseSpaceTemplateList,callback:function(t){e.$set(e.editInfor,"houseSpaceTemplateList",t)},expression:"editInfor.houseSpaceTemplateList"}},e._l(e.templeteList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary",loading:e.editBtnLoading},on:{click:function(t){return e.submitEditForm("editInfor")}}},[e._v("确定")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(t){return e.resetFormEditDialog("editInfor")}}},[e._v("取消")])],1)],1)],1)])],1)},M=[],J=a("2b74"),G=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-page-header",{attrs:{content:"房屋成员不感兴趣详情"},on:{back:e.goBackTop}}),e._v(" "),a("h4",[e._v("房屋:"+e._s(e.projectName)+"-"+e._s(e.houseInfor.precinctName)+"-"+e._s(e.houseInfor.buildingName)+"-"+e._s(e.houseInfor.unitName)+"-"+e._s(e.houseInfor.roomNum))]),e._v(" "),a("div",{},[a("el-table",{attrs:{border:"",data:e.residentInfoList.slice((e.currentPage-1)*e.pageSize,e.currentPage*e.pageSize),fit:"","highlight-current-row":"","header-cell-style":e.headClass}},[a("el-table-column",{attrs:{align:"center",label:"姓名",fixed:"","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.realName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"性别","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.gender?a("span",[e._v("男")]):2===t.row.gender?a("span",[e._v("女")]):a("span",[e._v("-")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"身份","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("getItemType")(t.row.identityType,e.identityList)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center","min-width":"180",label:"证件号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.idCard?t.row.idCard:"-"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"手机号码","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.mobile?t.row.mobile:"-"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center","min-width":"100",label:"缴费人"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ispayer&&1===t.row.ispayer?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"状态","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("getItemType")(t.row.status,e.houseStatusList)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center","min-width":"180",label:"认证时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center","min-width":"160",label:"失效时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.authorizeExpireTime?t.row.authorizeExpireTime:"-"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作","min-width":"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:function(a){return e.editItem(t.row)}}},[e._v("查看权限")])]}}])})],1),e._v(" "),a("div",{staticClass:"paginations"},[a("el-pagination",{attrs:{layout:"total, sizes, prev, pager, next, jumper","current-page":e.currentPage,"page-sizes":[10,30,50,100,200],"page-size":e.pageSize,total:e.residentInfoList.length},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"查看权限",visible:e.spaceLocationDialog,"show-close":!0,"close-on-press-escape":!1,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(t){e.spaceLocationDialog=t}}},[a("div",{staticClass:"spaceLocationDialogNotes"},[a("i",{staticClass:"el-icon-warning"}),e._v(" 状态开启后,该网格下作业类型的作业事项会推送至此用户;状态关闭后,该网格下作业类型的作业事项不会推送至此用户")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.spaceLocationDialogloading,expression:"spaceLocationDialogloading"}],staticStyle:{width:"100%"},attrs:{data:e.spaceLocationList,border:"",size:"small","tooltip-effect":"dark","header-cell-style":e.headClass}},[a("el-table-column",{attrs:{label:"姓名",align:"center",prop:"userName"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"身份","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("getItemType")(t.row.identityType,e.identityList)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"空间",prop:"space",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"网格",prop:"location",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"作业类型",align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("getItemType")(t.row.planModel,e.planModeLArr)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态",align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#909399","inactive-value":0,"active-value":1,"active-text":"开","inactive-text":"关"},on:{change:function(a){return e.switchChange(a,t.row)}},model:{value:t.row.type,callback:function(a){e.$set(t.row,"type",a)},expression:"scope.row.type"}})]}}])})],1),e._v(" "),a("div",{staticClass:"pagination"},[a("Pagination",{attrs:{total:e.spaceLocationTotal},on:{handleCurrentChange:e.handleSpaceLocationCurrentChange,handleSizeChange:e.handleSpaceLocationSizeChange}})],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(t){e.spaceLocationDialog=!1}}},[e._v("关闭")])],1)],1)],1)},W=[],K=a("8f53"),X={name:"tmpDetailes",components:{Pagination:c["a"]},data:function(){return{projectName:"",identityList:K["k"],planModeLArr:K["w"],houseStatusList:L["fb"],residentInfoList:[],currentPage:1,pageSize:10,spaceLocationDialog:!1,spaceLocationTotal:0,spaceLocationQuery:{pageNumber:1,pageSize:10,houseId:0,projectUuid:"",userId:""},spaceLocationList:[],houseInfor:{},spaceLocationDialogloading:!1}},methods:{goBackTop:function(){this.$emit("goBackList")},initData:function(e){this.projectName=this.$store.state.community_name,this.houseInfor=e,this.getHaouseUserList()},getHaouseUserList:function(){var e=this,t={id:this.houseInfor.id};Object(J["E"])(t).then((function(t){0===t.code&&(e.residentInfoList=t.data)}))},editItem:function(e){e.userId?(this.spaceLocationDialog=!0,this.spaceLocationQuery.houseId=e.houseId,this.spaceLocationQuery.projectUuid=e.projectCode,this.spaceLocationQuery.userId=e.userId,this.spaceLocationQuery.pageNumber=1,this.spaceLocationQuery.pageSize=10,this.gethouseTaskPageList()):this.$message({type:"error",message:"该房屋成员不是有效用户"})},gethouseTaskPageList:function(){var e=this;this.spaceLocationDialogloading=!0,Object(y["v"])(this.spaceLocationQuery).then((function(t){if(e.spaceLocationDialogloading=!1,0===t.code){var a=t.data.records?t.data.records:[];a.length>0?(e.spaceLocationList=a,e.spaceLocationTotal=t.data.rowsCount?t.data.rowsCount:0):(e.spaceLocationList=[],e.spaceLocationTotal=0,e.$message({type:"success",message:"未查询到相关权限信息"}))}})).catch((function(){e.spaceLocationDialogloading=!1}))},switchChange:function(e,t){var a=this,i={locationUuid:t.locationUuid,locationName:t.location,planModel:t.planModel,projectUuid:this.$store.state.community_uuid,userId:t.userId,userName:t.userName,operatorId:this.$store.state.user.userInfo.memberId,operatorName:this.$store.state.user.userInfo.memberName,operatorUuid:this.$store.state.user.userInfo.memberUuid,type:e};Object(y["m"])(i).then((function(e){0===e.code?(a.$message({type:"success",message:"操作成功"}),a.gethouseTaskPageList()):a.$message({type:"error",message:e.message})}))},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e},handleCurrentChange:function(e){this.currentPage=e},handleSpaceLocationCurrentChange:function(e){this.spaceLocationQuery.pageNumber=e.currentPage,this.gethouseTaskPageList()},handleSpaceLocationSizeChange:function(e){this.spaceLocationQuery.pageNumber=1,this.spaceLocationQuery.pageSize=e.limit,this.gethouseTaskPageList()},headClass:function(){return"text-align:center;background:#FAFAFA;"}}},Y=X,Z=(a("b2f2"),Object(k["a"])(Y,G,W,!1,null,"3c7635e2",null)),ee=Z.exports,te={components:{tmpDetailes:ee},data:function(){return{houseStatusList:L["fb"],houseTypeList:L["gb"],listData:[],listLoading:!1,total:0,query:{projectCode:"",houseNo:"",precinctId:"",buildingId:"",unitId:"",roomNum:"",pageNumber:1,pageSize:10,houseStatusList:[]},areaOptions:[],areaOptionsList:[],building:[],unit:[],chackbuilding:[],chackUnitList:[],houseList:[],templeteList:[],checkInforVisible:!1,checkInforbtnLoading:!1,templateApplicationEditing:!1,editBtnLoading:!1,checkInfor:{precinctId:[],buildingId:[],unitId:[],houseId:[],houseStatusList:[],houseSpaceTemplateList:[]},editInfor:{houseNo:"",roomNum:"",houseId:"",houseSpaceTemplateList:[]},editInforRules:{houseSpaceTemplateList:[{required:!0,message:"请选择模板",trigger:"change"}]},checkInforRules:{precinctId:[{required:!0,message:"请选择管理区",trigger:"change"}],houseStatusList:[{required:!0,message:"请选择房屋状态",trigger:"change"}],houseSpaceTemplateList:[{required:!0,message:"请选择模板",trigger:"change"}]},batchEdit:"add",showList:!0,showDetailes:!1}},created:function(){this.query.projectCode=this.$store.state.community_uuid,this.headClass(),this.getBuildList()},methods:{showListFun:function(){this.showList=!0,this.showDetailes=!1},getChargesTemplateApplyList:function(){var e=this;this.listLoading=!0,Object(J["M"])(this.query).then((function(t){t.data&&t.data.records&&(e.listData=t.data.records,e.total=t.data.rowsCount)})),this.listLoading=!1},selectChange:function(){this.getBuild(0)},selectCheckChange:function(e){this.chackbuilding=[],this.chackUnitList=[],this.houseList=[],this.checkInfor.buildingId="",this.checkInfor.unitId="",this.checkInfor.houseId="",e.includes("allprecinctId")?this.checkInfor.precinctId=this.areaOptionsList.map((function(e){return e["id"]})):this.getBuild(1)},getBuildList:function(){var e=this,t={projectUuid:this.$store.state.community_uuid,pageNumber:-1,pageSize:-1};Object(J["f"])(t).then((function(t){0===t.code&&(e.areaOptions=t.data,e.areaOptionsList=t.data)}))},getBuild:function(e){var t=this;if(1===e&&1!==this.checkInfor.precinctId.length)return!1;Object(J["x"])({precinctId:0===e?this.query.precinctId:this.checkInfor.precinctId[0],projectCode:this.$store.state.community_uuid,projectName:this.$store.state.community_name,pageNumber:-1,pageSize:-1}).then((function(a){0===e?t.building=a.data:t.chackbuilding=a.data}))},getUnit:function(e){var t=this;if(1===e&&1!==this.checkInfor.buildingId.length)return!1;Object(J["mb"])({pageNumber:-1,pageSize:-1,projectCode:this.$store.state.community_uuid,buildingId:0===e?this.query.buildingId:this.checkInfor.buildingId[0]}).then((function(a){0===e?t.unit=a.data.records:t.chackUnitList=a.data.records}))},changeBuild:function(e){this.query.buildingId=e,this.getUnit(0)},checkChangeBuild:function(e){this.chackUnitList=[],this.houseList=[],this.checkInfor.unitId="",this.checkInfor.houseId="",e.includes("allbuildingId")?this.checkInfor.buildingId=this.chackbuilding.map((function(e){return e["id"]})):this.getUnit(1)},checkChangeUnit:function(e){var t=this;this.houseList=[],this.checkInfor.houseId="";var a={projectCode:this.checkInfor.projectUuid,precinctId:this.checkInfor.precinctId[0],buildingId:this.checkInfor.buildingId[0],unitId:this.checkInfor.unitId[0],pageNumber:-1,pageSize:-1};if(1!==this.checkInfor.unitId.length)return!1;e.includes("allunitId")?this.checkInfor.unitId=this.chackUnitList.map((function(e){return e["id"]})):Object(J["bb"])(a).then((function(e){0===e.code&&(t.houseList=e.data.records)}))},checkHouseChange:function(e){e.includes("allhouseId")&&(this.checkInfor.houseId=this.houseList.map((function(e){return e["id"]}))),this.checkInfor.houseId.length>0&&(this.checkInfor.houseStatusList=[])},selectHouseStatus:function(e){e.includes("allHouseStatusId")&&(this.checkInfor.houseStatusList=this.houseStatusList.map((function(e){return e["value"]}))),this.checkInfor.houseStatusList.length>0&&(this.checkInfor.houseId=[])},submitForm:function(){var e=this;if(1===this.checkInfor.precinctId.length&&0===this.chackbuilding.length)return this.$message({type:"error",message:"该管理区下无楼栋,无法将模板应用到房屋"}),!1;if(1===this.checkInfor.buildingId.length&&0===this.chackUnitList.length)return this.$message({type:"error",message:"该楼栋下无单元,无法将模板应用到房屋"}),!1;if(1===this.checkInfor.unitId.length&&0===this.houseList.length)return this.$message({type:"error",message:"该单元下无房屋,无法将模板应用到房屋"}),!1;var t=0,a=null;this.checkInfor.precinctId.length===this.areaOptionsList.length&&0===this.checkInfor.buildingId.length&&0===this.checkInfor.unitId.length&&0===this.checkInfor.houseId.length?(t=1,a=null):(t=0,a=this.checkInfor.precinctId);var i=[];this.templeteList.map((function(t){e.checkInfor.houseSpaceTemplateList.map((function(e){t.id===e&&i.push({templateId:t.id,templateName:t.name})}))}));var s={projectUuid:this.$store.state.community_uuid,precinctIdList:a,buildingIdList:this.checkInfor.buildingId.length>0?this.checkInfor.buildingId:null,unitIdList:this.checkInfor.unitId.length>0?this.checkInfor.unitId:null,houseIdList:this.checkInfor.houseId.length>0?this.checkInfor.houseId:null,houseStatusList:this.checkInfor.houseStatusList.length>0?this.checkInfor.houseStatusList:null,houseSpaceTemplateList:i,operatorName:this.$store.state.user.userInfo.memberName,operatorUuid:this.$store.state.user.userInfo.memberUuid,isAll:t};console.log("params",s),this.$refs.checkInfor.validate((function(t){if(!t)return!1;"add"===e.batchEdit?F(s).then((function(t){0===t.code?(e.$message({type:"success",message:"批量应用成功"}),e.checkInforVisible=!1,e.getChargesTemplateApplyList()):e.$message({type:"error",message:"批量应用失败"})})).catch((function(e){})):P(s).then((function(t){0===t.code?(e.$message({type:"success",message:"模板批量取消应用成功"}),e.checkInforVisible=!1,e.getChargesTemplateApplyList()):e.$message({type:"error",message:"模板批量取消应用失败"})})).catch((function(e){}))}))},editItems:function(e){this.editInfor={houseNo:e.houseNo,roomNum:e.roomNum,houseId:e.id,houseSpaceTemplateList:e.houseSpaceTemplateList?e.houseSpaceTemplateList.map((function(e){return e["templateId"]})):[]},this.getChargesTemplateList(),this.templateApplicationEditing=!0},viewItems:function(e){var t=this;this.showList=!1,this.showDetailes=!0,this.$nextTick((function(){t.$refs.showDetailes.initData(e)}))},goBackList:function(){this.showList=!0,this.showDetailes=!1},closeVisible:function(){this.resetFormDialog()},resetFormDialog:function(){this.checkInfor={precinctId:[],buildingId:[],unitId:[],houseId:[],houseSpaceTemplateList:[]},this.checkInforbtnLoading=!1,this.checkInforVisible=!1,this.$refs.checkInfor.resetFields()},resetFormEditDialog:function(){this.editInfor={houseNo:"",roomNum:"",houseId:"",houseSpaceTemplateList:[]},this.editBtnLoading=!1,this.templateApplicationEditing=!1,this.$refs.editInfor.resetFields()},submitEditForm:function(){var e=this;this.editBtnLoading=!0,this.$refs.editInfor.validate((function(t){if(!t)return e.editBtnLoading=!1,!1;var a=[];e.templeteList.map((function(t){e.editInfor.houseSpaceTemplateList.map((function(e){t.id===e&&a.push({templateId:t.id,templateName:t.name})}))}));var i={houseId:e.editInfor.houseId,houseSpaceTemplateList:a,operatorName:e.$store.state.user.userInfo.memberName,operatorUuid:e.$store.state.user.userInfo.memberUuid};console.log("params",i),A(i).then((function(t){e.editBtnLoading=!1,0===t.code?(e.$message({type:"success",message:"更新模板成功"}),e.templateApplicationEditing=!1,e.getChargesTemplateApplyList()):e.$message({type:"error",message:"更新模板失败"})})).catch((function(t){e.editBtnLoading=!1}))}))},onSearch:function(){this.query.pageNumber=1,this.getChargesTemplateApplyList()},resetForm:function(){this.query.pageNumber=1,this.query.houseNo="",this.query.precinctId="",this.query.buildingId="",this.query.unitId="",this.query.roomNum="",this.getChargesTemplateApplyList()},handleSizeChange:function(e){this.query.pageSize=e,this.getChargesTemplateApplyList()},handleCurrentChange:function(e){this.query.pageNumber=e,this.getChargesTemplateApplyList()},headClass:function(){return"text-align:center;background:#FAFAFA;"},batchApplication:function(){this.batchEdit="add",this.getChargesTemplateList(),this.checkInforVisible=!0},batchApplicationDelete:function(){this.batchEdit="del",this.getChargesTemplateList(),this.checkInforVisible=!0},getChargesTemplateList:function(){var e=this,t={projectUuid:this.$store.state.community_uuid,pageNumber:-1,pageSize:-1};z(t).then((function(t){0===t.code&&(e.templeteList=t.data.records,setTimeout((function(){e.$nextTick((function(){e.checkInforVisible?e.$refs.checkInfor.clearValidate("houseSpaceTemplateList"):e.$refs.editInfor.clearValidate("houseSpaceTemplateList")})),e.$forceUpdate()}),200))}))},transTmpName:function(e){return e.length>0?e.map((function(e){return e["templateName"]})).join(","):"-"}},mounted:function(){this.getChargesTemplateApplyList()}},ae=te,ie=(a("e3df"),Object(k["a"])(ae,H,M,!1,null,"2951f10e",null)),se=ie.exports,ne={name:"spaceIndex",components:{spatialRegion:T,locationTemplate:R,templateApplication:se},data:function(){return{activeName:"spatialRegion"}},methods:{handleClick:function(){var e=this;this.$nextTick((function(){e.$refs.templateApplication&&e.$refs.templateApplication.showListFun()}))}}},oe=ne,le=Object(k["a"])(oe,n,o,!1,null,"2680b078",null),re=le.exports,ce=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container bgHeight"},[a("div",{ref:"box",staticClass:"searchStys transition_dom"},[a("el-form",{ref:"query",attrs:{model:e.query}},[a("div",{ref:"form_box",staticClass:"searchBar"},[a("div",{staticClass:"searchInput"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{prop:"spaceUuid"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择空间名称"},model:{value:e.query.spaceUuid,callback:function(t){e.$set(e.query,"spaceUuid",t)},expression:"query.spaceUuid"}},e._l(e.spaceTypeList,(function(e){return a("el-option",{key:e.spaceUuid,attrs:{label:e.name,value:e.spaceUuid}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"网格",clearable:"",maxlength:"36"},model:{value:e.query.locationName,callback:function(t){e.$set(e.query,"locationName",t)},expression:"query.locationName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"二维码编码",clearable:"",maxlength:"36"},model:{value:e.query.qrCode,callback:function(t){e.$set(e.query,"qrCode",t)},expression:"query.qrCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:""}},[a("el-select",{attrs:{clearable:"",placeholder:"启停状态"},model:{value:e.query.enableStatus,callback:function(t){e.$set(e.query,"enableStatus",t)},expression:"query.enableStatus"}},e._l(e.statusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:""}},[a("el-select",{attrs:{clearable:"",placeholder:"二维码类型"},model:{value:e.query.qrType,callback:function(t){e.$set(e.query,"qrType",t)},expression:"query.qrType"}},e._l(e.qrTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"searchBtn"},[a("el-form-item",[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(t){return e.resetForm("query")}}},[e._v("重置")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:e.onSearch}},[e._v("查询")]),e._v(" "),e.is_show||"80px"==e.height?e._e():a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:e.upAndDown}},[e._v("展开"),a("i",{staticClass:"el-icon-arrow-down"})]),e._v(" "),e.is_show&&"80px"!=e.height?a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:e.upAndDown}},[e._v("收起"),a("i",{staticClass:"el-icon-arrow-up"})]):e._e()],1)],1)])])],1),e._v(" "),a("el-card",{staticClass:"box-card",attrs:{shadow:"never"}},[a("div",{staticClass:"planLst",attrs:{slot:"header"},slot:"header"},[a("span",{staticClass:"planTitle"},[e._v("二维码列表")]),e._v(" "),a("div",[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:e.ruleGroupConfig}},[e._v("规则组配置")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:e.addQrCode}},[e._v("批量创建二维码")])],1)]),e._v(" "),a("div",[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],staticStyle:{"margin-bottom":"22px"},attrs:{type:"primary"},on:{click:e.batchExportQr}},[e._v("批量导出已选")])],1),e._v(" "),a("el-table",{ref:"multipleTable",attrs:{border:"",data:e.listTable,"header-cell-style":e.headClass,"tooltip-effect":"dark","row-key":"qrUuid"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",fixed:"left","reserve-selection":!0,width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"#",align:"center",width:"50",fixed:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.query.pageNumber-1)*e.query.pageSize+1)+" ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",prop:"qrCode",label:"二维码编码","min-width":"180",fixed:"left"}}),e._v(" "),a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"二维码类型","min-width":"100",fixed:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(1===t.row.qrType?"空间码":"物码"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"空间网格编码","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.locationCode?t.row.locationCode:"-"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"空间","min-width":"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.spaceName?t.row.spaceName:"-"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"网格",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.locationName?t.row.locationName:"-"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"createUserName",label:"创建人","min-width":"130"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"createDate",label:"创建时间","min-width":"180"}}),e._v(" "),a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"状态","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{style:{color:0===t.row.enableStatus?"#70B603":"#FF0000"}},[e._v(e._s(0===t.row.enableStatus?"启用":"关闭"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作",fixed:"right","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:function(a){return e.getQRC(t.row)}}},[e._v("预览")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:function(a){return e.viewDetail(t.row)}}},[e._v("查看")])]}}])})],1),e._v(" "),a("div",{staticClass:"paginations"},[a("Pagination",{attrs:{total:e.pageTotal},on:{handleCurrentChange:e.handleCurrentChange,handleSizeChange:e.handleSizeChange}})],1)],1),e._v(" "),e.centerDialogVisible?a("el-dialog",{staticClass:"dialogHead",attrs:{visible:e.centerDialogVisible,"modal-append-to-body":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0,width:"600px",title:"新增二维码"},on:{"update:visible":function(t){e.centerDialogVisible=t},closed:function(t){return e.closeDialog("form")}}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"二维码数量:",prop:"createNum"}},[a("el-input",{attrs:{maxlength:"5",placeholder:"请输入需要创建的二维码数量"},model:{value:e.form.createNum,callback:function(t){e.$set(e.form,"createNum",t)},expression:"form.createNum"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"二维码类型:",prop:"qrType"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"二维码类型"},model:{value:e.form.qrType,callback:function(t){e.$set(e.form,"qrType",t)},expression:"form.qrType"}},e._l(e.qrTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"备注:"}},[a("el-input",{attrs:{type:"textarea",rows:"5",maxlength:"512"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"状态:"}},[a("el-switch",{model:{value:e.form.enableStatus,callback:function(t){e.$set(e.form,"enableStatus",t)},expression:"form.enableStatus"}})],1),e._v(" "),a("el-form-item",[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(t){return e.closeDialog("form")}}},[e._v("取消")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary",loading:e.btnLoading},on:{click:function(t){return e.onSubmit("form")}}},[e._v("立即创建")])],1)],1)],1):e._e(),e._v(" "),e.qrcodeVisible?a("el-dialog",{staticClass:"dialogHead",attrs:{title:"查看二维码",visible:e.qrcodeVisible,width:"30%"},on:{"update:visible":function(t){e.qrcodeVisible=t}}},[a("div",{staticClass:"viewSet"},[a("el-image",{attrs:{src:e.QRcodeUrl,fit:"fill"}})],1)]):e._e()],1)},ue=[];function pe(e){return Object(D["a"])({url:"/appproject/QrInfo/pageList",method:"POST",data:e})}function de(e){return Object(D["a"])({url:"/appproject/QrInfo/createBatch",method:"POST",data:e})}function me(e){return Object(D["a"])({url:"/appproject/QrInfo/exportQRCode",method:"POST",responseType:"blob",data:e})}var he={components:{Pagination:c["a"]},data:function(){return{is_show:!1,height:0,uuid:"",name:"",pageTotal:0,listLoading:!1,spaceTypeList:[],listTable:[],tableSelected:[],statusList:[{id:0,name:"启用"},{id:1,name:"停用"}],qrTypeList:[{id:2,name:"物码"},{id:1,name:"空间码"}],qrcodeVisible:!1,query:{pageNumber:1,pageSize:10,spaceUuid:"",locationName:"",qrCode:"",enableStatus:"",qrType:""},form:{createNum:"",qrType:2,enableStatus:!0,remark:""},rules:{createNum:[{required:!0,message:"请输入需要创建的二维码数量",trigger:"blur"}],qrType:[{required:!0,message:"请选择活动区域",trigger:"change"}]},btnLoading:!1,centerDialogVisible:!1,userInfors:null}},beforeRouteEnter:function(e,t,a){a((function(t){var a=e.name,i=JSON.parse(sessionStorage.getItem(a));i&&(t.query=i),t.getlistData()}))},created:function(){this.uuid=this.$store.state.community_uuid,this.name=this.$store.state.community_name,this.userInfors=JSON.parse(localStorage.getItem("C_userInfo")),this.headClass()},mounted:function(){this.getRealHeight(),this.getSpaceList(),this.getlistData()},methods:{checkSelectable:function(e){return!!e.qrUuid},getSpaceList:function(){var e=this;Object(u["ib"])({projectId:this.uuid}).then((function(t){0==t.code?e.spaceTypeList=t.data:e.$message.error(t.message)}))},getlistData:function(){var e=this;this.listLoading=!0,this.query.projectUuid=this.uuid,pe(this.query).then((function(t){0==t.code&&(e.listTable=t.data.records,e.pageTotal=t.data.rowsCount),sessionStorage.setItem(e.$route.name,JSON.stringify(e.query))})),this.listLoading=!1},memoryChecked:function(){var e=this,t=[];this.tableSelected.forEach((function(e){t.push(e.qrUuid)})),t.length&&this.$nextTick((function(){e.listData.forEach((function(a,i){console.log(a),t.indexOf(a.qrUuid)>=0&&e.$refs.multipleTable.toggleRowSelection(a,!0)}))}))},handleSelectionChange:function(e){this.tableSelected=e.map((function(e){return e.qrUuid}))},batchExportQr:function(){if(0==this.tableSelected.length)return this.$message({type:"info",message:"请选择需要导出的二维码"}),!1;var e={projectUuid:this.uuid,qrUuidList:this.tableSelected};me(e).then((function(e){var t=new Blob([e],{type:"application/zip"}),a=(new Date).valueOf(),i="空间网格二维码"+a+"-批量.zip";if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(t,i);else{var s=document.createElement("a");s.download=i,s.style.display="none",s.href=URL.createObjectURL(t),s.click(),URL.revokeObjectURL(s.href),document.body.removeChild(s)}}))},editDetail:function(e){this.$router.push({name:"editSatialPosition"}),sessionStorage.setItem("saveEditSatialPosition",JSON.stringify(e))},viewDetail:function(e){1===e.qrType?this.$router.push({path:"/viewInfo/viewSpaceContent",query:{data:e}}):this.$router.push({path:"/viewInfo/whiteCodeContent",query:{data:e}})},getQRC:function(e){var t=this;e.qrUuid?Object(d["I"])({qrUuid:e.qrUuid}).then((function(e){t.QRcodeUrl=e.data,t.qrcodeVisible=!0})):this.$message({message:"二维码UUID无效,无法预览",type:"warning"})},ruleGroupConfig:function(){this.$router.push({path:"/projectProfile/ruleConfigList"})},addQrCode:function(){this.form.qrType=2,this.centerDialogVisible=!0},onSubmit:function(e){var t=this;this.$refs[e].validate((function(a){if(!a)return!1;t.btnLoading=!0;var i=JSON.parse(t.userInfors.targetInfo),s=Object.assign({projectUuid:t.uuid,projectName:t.name,createUserId:i.id,createUserName:i.memberName},t.form);s.enableStatus=t.form.enableStatus?0:1,de(s).then((function(a){0==a.code&&(t.$message({message:"添加成功",type:"success"}),t.getlistData(),t.closeDialog(e),t.btnLoading=!1)})).catch((function(e){t.btnLoading=!1}))}))},closeDialog:function(e){this.form={createNum:"",qrType:"",enableStatus:!0,remark:""},this.$refs[e].resetFields(),this.centerDialogVisible=!1,this.getlistData()},submitDialog:function(){this.$refs[formName].resetFields(),this.centerDialogVisible=!1,this.getlistData()},onSearch:function(){this.query.pageNumber=1,this.getlistData()},handleSizeChange:function(e){this.query.pageSize=e.limit,this.query.pageNumber=1,this.getlistData()},handleCurrentChange:function(e){this.query.pageNumber=e.currentPage,this.getlistData()},resetForm:function(e){this.query={pageNumber:1,pageSize:10,spaceUuid:"",locationName:"",qrCode:"",enableStatus:"",qrType:""},this.dateTimer="",this.$refs[e].resetFields(),this.getlistData()},headClass:function(){return"text-align:center;background:#FAFAFA;"},upAndDown:function(){this.is_show?this.$refs.box.style.height="80px":this.$refs.box.style.height=this.height,this.is_show=!this.is_show},getRealHeight:function(){this.$nextTick((function(){this.height=this.$refs.form_box.offsetHeight+"px"}))}}},fe=he,ge=(a("86fc"),Object(k["a"])(fe,ce,ue,!1,null,"31d5c26e",null)),ve=ge.exports,be=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container bgHeight"},[a("div",{ref:"box",staticClass:"searchStys transition_dom"},[a("el-form",{ref:"query",attrs:{model:e.query}},[a("div",{ref:"form_box",staticClass:"searchBar"},[a("div",{staticClass:"searchInput"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"空间",clearable:"",maxlength:"36"},model:{value:e.query.alarmSpaceName,callback:function(t){e.$set(e.query,"alarmSpaceName",t)},expression:"query.alarmSpaceName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"网格",clearable:"",maxlength:"36"},model:{value:e.query.alarmLocationName,callback:function(t){e.$set(e.query,"alarmLocationName",t)},expression:"query.alarmLocationName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"设备编码",clearable:"",maxlength:"36"},model:{value:e.query.deviceCode,callback:function(t){e.$set(e.query,"deviceCode",t)},expression:"query.deviceCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"设备负责人",clearable:"",maxlength:"36"},model:{value:e.query.personLiableName,callback:function(t){e.$set(e.query,"personLiableName",t)},expression:"query.personLiableName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:""}},[a("el-select",{attrs:{clearable:"",placeholder:"状态"},model:{value:e.query.status,callback:function(t){e.$set(e.query,"status",t)},expression:"query.status"}},e._l(e.statusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",[a("el-date-picker",{attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.dateTimerChange},model:{value:e.dateTimer,callback:function(t){e.dateTimer=t},expression:"dateTimer"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:""}},[a("el-select",{attrs:{clearable:"",placeholder:"报警类型"},model:{value:e.query.alarmType,callback:function(t){e.$set(e.query,"alarmType",t)},expression:"query.alarmType"}},e._l(e.AIAlearmType,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"searchBtn"},[a("el-form-item",[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(t){return e.resetForm("query")}}},[e._v("重置")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:e.onSearch}},[e._v("查询")]),e._v(" "),e.is_show||"80px"==e.height?e._e():a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:e.upAndDown}},[e._v("展开"),a("i",{staticClass:"el-icon-arrow-down"})]),e._v(" "),e.is_show&&"80px"!=e.height?a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:e.upAndDown}},[e._v("收起"),a("i",{staticClass:"el-icon-arrow-up"})]):e._e()],1)],1)])])],1),e._v(" "),a("el-card",{staticClass:"box-card",attrs:{shadow:"never"}},[a("div",{staticClass:"planLst",attrs:{slot:"header"},slot:"header"},[a("span",{staticClass:"planTitle"},[e._v("报警信息列表")])]),e._v(" "),a("el-table",{attrs:{border:"",data:e.listTable,"header-cell-style":e.headClass,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"#",align:"center",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.query.pageNumber-1)*e.query.pageSize+1)+" ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"deviceCode",label:"设备编号","min-width":"160"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"deviceName",label:"设备名称","min-width":"120","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"alarmSpaceName",label:"空间","min-width":"120","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"alarmLocationName",label:"网格","min-width":"120","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"报警类型",width:"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("getAIAlearmType")(t.row.alarmType)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"personLiableName","show-overflow-tooltip":"",label:"设备负责人","min-width":"130"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-image",{staticClass:"bannerImg",attrs:{src:t.row.images,fit:"contain","preview-src-list":t.row.list}},[a("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("加载中"),a("span",{staticClass:"dot"},[e._v("...")])]),e._v(" "),a("div",{staticClass:"image-error-slot",attrs:{slot:"error"},slot:"error"},[e._v("-")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"AI判断",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{placeholder:"请选择",disabled:!!t.row.aiSign},on:{change:function(a){e.aiSelectChange(a,t.row,t.$index)}},model:{value:t.row.aiSign,callback:function(a){e.$set(t.row,"aiSign",a)},expression:"scope.row.aiSign"}},e._l(e.AICheckLIst,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"createDate",label:"报警时间",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(1===t.row.status?"未处理":2===t.row.status?"处理中":3===t.row.status?"已修复":4===t.row.status?"已忽略":"AI自动处理"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center","min-width":"230",label:"工单单号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{attrs:{type:"text"}},[e._v(e._s(t.row.postponeOrderNo))])]}}])})],1),e._v(" "),a("div",{staticClass:"paginations"},[a("Pagination",{attrs:{total:e.pageTotal},on:{handleCurrentChange:e.handleCurrentChange,handleSizeChange:e.handleSizeChange}})],1)],1),e._v(" "),e.centerDialogVisible?a("el-dialog",{staticClass:"dialogHead",attrs:{visible:e.centerDialogVisible,"modal-append-to-body":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0,width:"70%",center:""},on:{"update:visible":function(t){e.centerDialogVisible=t},closed:e.closeDialog}},[a("work-order-edit",{ref:"workorderedit",attrs:{editInfor:e.editInfor},on:{handleClose:e.closeDialog,handleSubmit:e.submitDialog}})],1):e._e()],1)},ye=[],_e=a("ed5f"),we=a("055f"),ke={components:{Pagination:c["a"],WorkOrderEdit:we["a"]},data:function(){return{is_show:!1,height:0,uuid:"",name:"",pageTotal:0,listLoading:!1,AIAlearmType:L["a"],listTable:[],statusList:[{id:1,name:"未处理"},{id:2,name:"处理中"},{id:3,name:"已修复"},{id:4,name:"已忽略"},{id:5,name:"AI自动处理"}],time:"",query:{pageNumber:1,pageSize:10,alarmType:"",alarmLocationName:"",alarmSpaceName:"",deviceCode:"",personLiableName:"",status:"",startTime:"",endTime:""},aiStatus:"",dateTimer:"",AICheckLIst:[{id:1,name:"是"},{id:2,name:"不是"}],centerDialogVisible:!1,editInfor:null}},beforeRouteEnter:function(e,t,a){a((function(t){var a=e.name,i=JSON.parse(sessionStorage.getItem(a));i&&(t.query=i),t.getlistData()}))},created:function(){this.uuid=this.$store.state.community_uuid,this.name=this.$store.state.community_name,this.headClass()},mounted:function(){this.getRealHeight(),this.getlistData()},methods:{getlistData:function(){var e=this;this.listLoading=!0,this.query.projectUuid=this.uuid,Object(_e["e"])(this.query).then((function(t){0==t.code&&(e.listTable=t.data.records,e.pageTotal=t.data.rowsCount,e.getDrawerTableList()),sessionStorage.setItem(e.$route.name,JSON.stringify(e.query))})),this.listLoading=!1},aiSelectChange:function(e,t,a){1===e?(this.editInfor=t,this.centerDialogVisible=!0):this.updataStatus(t)},updataStatus:function(e){var t=this,a={id:e.id,aiSign:2};Object(_e["h"])(a).then((function(e){0===e.code&&(t.$message({type:"success",message:"更新成功"}),t.getlistData())}))},dateTimerChange:function(e){console.log("val",e),e.length>0&&(this.query.startTime=e[0]+" 00:00:00",this.query.endTime=e[1]+" 23:59:59")},closeDialog:function(e){this.editInfor=null,this.centerDialogVisible=!1,this.getlistData()},submitDialog:function(){this.editInfor=null,this.centerDialogVisible=!1,this.getlistData()},getDrawerTableList:function(e){this.list=[];for(var t=0;t<this.listTable.length;t++)this.list.push(this.listTable[t].images);for(t=0;t<this.listTable.length;t++){var a=this.list,i=a.slice(0,t),s=a.slice(t,this.listTable.length),n=s.concat(i);this.listTable[t].list=n}},onSearch:function(){this.query.pageNumber=1,this.getlistData()},handleSizeChange:function(e){this.query.pageSize=e.limit,this.query.pageNumber=1,this.getlistData()},handleCurrentChange:function(e){this.query.pageNumber=e.currentPage,this.getlistData()},resetForm:function(e){this.query={pageNumber:1,pageSize:10,deviceCode:"",alarmLocationName:"",alarmSpaceName:"",personLiableName:"",status:"",startTime:"",endTime:""},this.dateTimer="",this.$refs[e].resetFields(),this.getlistData()},headClass:function(){return"text-align:center;background:#FAFAFA;"},upAndDown:function(){this.is_show?this.$refs.box.style.height="80px":this.$refs.box.style.height=this.height,this.is_show=!this.is_show},getRealHeight:function(){this.$nextTick((function(){this.height=this.$refs.form_box.offsetHeight+"px"}))}}},Se=ke,Ie=(a("8b31"),Object(k["a"])(Se,be,ye,!1,null,"00f72ac2",null)),Le=Ie.exports,Ce={name:"spatialRegionInfo",components:{spaceIndex:re,whiteCodeList:ve,warningList:Le},data:function(){return{activeName:"spaceIndex"}}},xe=Ce,Ne=Object(k["a"])(xe,i,s,!1,null,"b569ba38",null);t["default"]=Ne.exports},e350:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var i=a("4360");function s(e){var t=i["a"].getters.buttonsPermission;return t[e]}},e3df:function(e,t,a){"use strict";a("770a")}}]); |