(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-34eb0d0f","chunk-24d7103e"],{"122e":function(t,e,a){},4381:function(t,e,a){"use strict";a("d3b7"),a("caad"),a("2532"),a("d9e2");var s=a("4360"),l={inserted:function(t,e){var a=e.value,l=s["a"].getters&&s["a"].getters.butPermission;if(console.log(l,"roles"),!(a&&a instanceof Array&&a.length>0))throw new Error("need roles! Like v-permission=\"['admin','editor']\"");var i=a,n=l.some((function(t){return i.includes(t)}));if(console.log(n,"hasPermission"),n)s["a"].state.user.permissionFlag[i]=!1;else{s["a"].state.user.permissionFlag[i]=!0,console.log(s["a"].state.user.permissionFlag[i],"permissionRoles");var o=document.createElement("div");o.style.cursor="not-allowed",o.style.display="inline-block",t.style.pointerEvents="none",t.parentNode.insertBefore(o,t),t.parentNode&&t.parentNode.removeChild(t),o.appendChild(t),console.log(t,"permissionRoles")}}},i=function(t){t.directive("permission",l)};window.Vue&&(window["permission"]=l,Vue.use(i)),l.install=i;e["a"]=l},"54f8":function(t,e,a){"use strict";a("a30e")},a03b:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"decorate"}),a("div",{staticClass:"filter-container",staticStyle:{border:"0"}},[t._t("default"),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:t.$t("work.status")},on:{change:function(e){return t.handleFilter()}},model:{value:t.getWorkList.status,callback:function(e){t.$set(t.getWorkList,"status",e)},expression:"getWorkList.status"}},t._l(t.status,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),a("el-date-picker",{staticClass:"filter-item",attrs:{type:"datetimerange","start-placeholder":t.$t("startTime"),"end-placeholder":t.$t("endTime"),"value-format":"yyyy-MM-dd HH:mm:ss",editable:!1},on:{change:function(e){return t.handleFilter()}},model:{value:t.arrayTimeSearch,callback:function(e){t.arrayTimeSearch=e},expression:"arrayTimeSearch"}}),a("span",{staticClass:"btn-item",on:{click:t.handleFilter}},[a("i",{staticClass:"iconfont icon-sousuo"}),t._v(t._s(t.$t("btn.search"))+" ")]),a("span",{staticClass:"btn-item",on:{click:t.wipeCondition}},[a("i",{staticClass:"el-icon-refresh-left"}),t._v(t._s(t.$t("btn.resetting"))+" ")])],2),a("div",{staticClass:"table-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.workForm,"max-height":"580","highlight-current-row":"","header-row-class-name":"table-header","row-class-name":"table-row"}},[a("el-table-column",{attrs:{type:"index",align:"left",label:"序号",width:"60"}}),a("el-table-column",{attrs:{property:"taskName",align:"left",label:t.$t("work.taskName")}}),a("el-table-column",{attrs:{property:"receiveName",align:"left",label:t.$t("work.recipient")}}),a("el-table-column",{attrs:{property:"telephone",align:"left",label:t.$t("device.phone")},scopedSlots:t._u([{key:"default",fn:function(e){return[null!==e.row.telephone?a("span",[t._v(" "+t._s(e.row.telephone)+" ")]):t._e(),null===e.row.telephone?a("span",[t._v("- -")]):t._e()]}}])}),a("el-table-column",{attrs:{property:"startTime",align:"left",label:t.$t("startTime"),width:"165"}}),a("el-table-column",{attrs:{property:"deadline",align:"left",label:t.$t("endTime"),width:"165"}}),a("el-table-column",{attrs:{property:"finishTime",align:"left",label:t.$t("completionTime"),width:"165"},scopedSlots:t._u([{key:"default",fn:function(e){return[null!==e.row.finishTime?a("span",[t._v(" "+t._s(e.row.finishTime)+" ")]):t._e(),null===e.row.finishTime?a("span",[t._v("- -")]):t._e()]}}])}),a("el-table-column",{attrs:{align:"left",label:t.$t("work.remark"),"show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[null!==e.row.remark?a("span",[t._v(t._s(e.row.remark))]):t._e(),null===e.row.remark?a("span",[t._v("- -")]):t._e()]}}])}),a("el-table-column",{attrs:{label:t.$t("work.status"),align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[-1===e.row.status?a("span",{staticClass:"btn yellow"},[t._v(t._s(t.$t("work.unpublished")))]):t._e(),0===e.row.status?a("span",{staticClass:"btn blue"},[t._v(t._s(t.$t("work.notStarted")))]):t._e(),1===e.row.status?a("span",{staticClass:"btn"},[t._v(t._s(t.$t("work.inProgress")))]):t._e(),2===e.row.status?a("span",{staticClass:"btn white"},[t._v(t._s(t.$t("work.suspend")))]):t._e(),3===e.row.status?a("span",{staticClass:"btn white"},[t._v(t._s(t.$t("work.complete")))]):t._e(),4===e.row.status?a("span",{staticClass:"btn blue"},[t._v(t._s(t.$t("work.failed")))]):t._e(),5===e.row.status?a("span",{staticClass:"btn purple"},[t._v(t._s(t.$t("work.tobeAccepted")))]):t._e(),6===e.row.status?a("span",{staticClass:"btn red"},[t._v(t._s(t.$t("work.timedout")))]):t._e()]}}])}),a("el-table-column",{attrs:{label:t.$t("table.operate"),width:"200",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"btnCancel",staticStyle:{width:"58px",height:"24px"},on:{click:function(a){return t.seeSon(e)}}},[a("i",{staticClass:"iconfont icon-kejian"}),t._v(" "+t._s(t.$t("work.see"))+" ")])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],attrs:{total:t.total,page:t.getWorkList.curPage,limit:t.getWorkList.pageSize},on:{"update:page":function(e){return t.$set(t.getWorkList,"curPage",e)},"update:limit":function(e){return t.$set(t.getWorkList,"pageSize",e)},pagination:t.workList}}),a("el-dialog",{staticClass:"gisDialog",attrs:{title:t.$t("work.Subinspectiontask"),visible:t.dialogTableVisible},on:{"update:visible":function(e){t.dialogTableVisible=e}}},[a("div",{staticClass:"table-container",staticStyle:{height:"100%"}},[a("el-table",{staticStyle:{width:"100%"},attrs:{"highlight-current-row":"","max-height":"480","header-row-class-name":"table-header","row-class-name":"table-row",data:t.gridData}},[a("el-table-column",{attrs:{property:"taskName",align:"left",label:t.$t("work.taskName")}}),a("el-table-column",{attrs:{property:"receiveName",align:"left",label:t.$t("work.recipient")}}),a("el-table-column",{attrs:{property:"taskType",align:"left",label:t.$t("work.taskType")},scopedSlots:t._u([{key:"default",fn:function(e){return["安装"===e.row.taskType?a("span",{staticClass:"use"},[t._v(" "+t._s(t.$t("work.install")))]):"拆除"===e.row.taskType?a("span",{staticClass:"use"},[t._v(" "+t._s(t.$t("work.dismantle"))+" ")]):"故障"===e.row.taskType?a("span",{staticClass:"use"},[t._v(" "+t._s(t.$t("work.faults"))+" ")]):"巡检"===e.row.taskType?a("span",{staticClass:"use"},[t._v(" "+t._s(t.$t("work.patrol"))+" ")]):"其他"===e.row.taskType.split(",")[0]?a("span",{staticClass:"otherUse"},[t._v(" "+t._s(t.$t("work.other")+"("+e.row.taskType.split(",")[1])+") ")]):a("span",{staticClass:"use"},[t._v(" "+t._s(e.row.taskType)+" ")])]}}])}),a("el-table-column",{attrs:{property:"startTime",align:"left",label:t.$t("startTime"),"show-overflow-tooltip":""}}),a("el-table-column",{attrs:{property:"deadline",label:t.$t("endTime"),align:"left","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{property:"finishTime",align:"left",label:t.$t("completionTime"),"show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[null!==e.row.finishTime?a("span",[t._v(" "+t._s(e.row.finishTime)+" ")]):t._e(),null===e.row.finishTime?a("span",[t._v("- -")]):t._e()]}}])}),a("el-table-column",{attrs:{label:t.$t("work.status"),align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[-1===e.row.status?a("span",{staticClass:"btn yellow"},[t._v(t._s(t.$t("work.unpublished")))]):t._e(),0===e.row.status?a("span",{staticClass:"btn blue"},[t._v(t._s(t.$t("work.notStarted")))]):t._e(),1===e.row.status?a("span",{staticClass:"btn"},[t._v(t._s(t.$t("work.inProgress")))]):t._e(),2===e.row.status?a("span",{staticClass:"btn white"},[t._v(t._s(t.$t("work.suspend")))]):t._e(),3===e.row.status?a("span",{staticClass:"btn white"},[t._v(t._s(t.$t("work.complete")))]):t._e(),4===e.row.status?a("span",{staticClass:"btn blue"},[t._v(t._s(t.$t("work.failed")))]):t._e(),5===e.row.status?a("span",{staticClass:"btn purple"},[t._v(t._s(t.$t("work.tobeAccepted")))]):t._e(),6===e.row.status?a("span",{staticClass:"btn red"},[t._v(t._s(t.$t("work.timedout")))]):t._e()]}}])}),a("el-table-column",{attrs:{label:t.$t("table.operate"),align:"left",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"btnCancel",on:{click:function(a){return t.seeEq(e)}}},[a("i",{staticClass:"iconfont icon-kejian"}),t._v(" "+t._s(t.$t("work.see"))+" ")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.sonTotal>0,expression:"sonTotal > 0"}],attrs:{total:t.sonTotal,"page-sizes":[1,5,10,20],page:t.getSonList.curPage,limit:t.getSonList.pageSize},on:{"update:page":function(e){return t.$set(t.getSonList,"curPage",e)},"update:limit":function(e){return t.$set(t.getSonList,"pageSize",e)},pagination:t.sonList}})],1)]),a("el-dialog",{attrs:{title:t.$t("work.see"),visible:t.seeDialog,width:"900px"},on:{"update:visible":function(e){t.seeDialog=e}}},[a("son-equipment")],1)],1)},l=[],i=(a("d3b7"),a("159b"),a("d81d"),a("cadb")),n=a("9b41"),o=a("333d"),r=a("7877"),c={components:{Pagination:o["a"],sonEquipment:r["a"]},data:function(){return{gridData:null,dialogTableVisible:!1,sonPatrol:null,total:0,list:null,listLoading:!0,downloadLoading:!1,workForm:[],arrayTimeSearch:[],getWorkList:{receiveName:localStorage.getItem("sitename2"),curPage:1,pageSize:10,startTime:null,deadline:null,status:null,taskType:"巡检",parentId:null,statusNo:-1},status:[{value:-1,label:this.$t("work.unpublished")},{value:0,label:this.$t("work.notStarted")},{value:1,label:this.$t("work.inProgress")},{value:2,label:this.$t("work.suspend")},{value:3,label:this.$t("work.passed")},{value:4,label:this.$t("work.failed")}],getSonList:{releaseName:localStorage.getItem("sitename2"),curPage:1,pageSize:5,startTime:null,deadline:null,status:null,taskType:"巡检",parentId:null},sonTotal:0,seeDialog:!1}},created:function(){this.workList()},watch:{arrayTimeSearch:function(t){this.getWorkList.startTime=t&&t[0],this.getWorkList.deadline=t&&t[1]},seeDialog:function(t){!0===t?this.$store.state.gongdan.isSee="seeEquipment":!1===t&&(this.$store.state.gongdan.isSee="")}},methods:{handleCreate:function(){this.$children.forEach((function(t){t.workBree&&t.handleCreate()}))},handleDelete:function(){var t=this;this.$children.forEach((function(e){if(e.workBree){if(console.log(e.taskCount),!e.taskCount)return;t.$confirm(t.$t("title.delPointOutWork"),t.$t("title.pointOut"),{confirmButtonText:t.$t("title.delete"),cancelButtonText:t.$t("title.cancel"),type:"warning"}).then((function(){Object(n["c"])({taskIdStr:e.taskCount}).then((function(a){console.log(a),e.workList(),t.$notify({title:t.$t("title.success"),message:t.$t("title.deleteSuccess"),type:"success",duration:3e3})}))}))}}))},seeEq:function(t){var e=this;this.seeDialog=!0,Object(n["j"])({taskId:t.row.taskId}).then((function(t){e.$store.state.partol.deviceAllList=t.data}))},sonList:function(){var t=this;Object(n["k"])(this.getSonList).then((function(e){t.gridData=e.data.list,t.sonTotal=e.data.totalRow,t.gridData=t.gridData.map((function(t){return t=Object.assign({},t),6==Object(i["c"])(t.startTime,t.deadline,e.timestamp,t.status)&&(t.status=6),t}))}))},seeSon:function(t){this.getSonList.parentId=t.row.taskId,this.dialogTableVisible=!0,this.sonList()},workList:function(){var t=this;this.listLoading=!0,Object(n["k"])(this.getWorkList).then((function(e){t.listLoading=!1,t.workForm=e.data.list,t.total=e.data.totalRow,t.workForm=t.workForm.map((function(t){return t=Object.assign({},t),6==Object(i["c"])(t.startTime,t.deadline,e.timestamp,t.status)&&(t.status=6),t}))}))},handleFilter:function(){this.getWorkList.curPage=1,this.workList()},wipeCondition:function(){for(var t in this.getWorkList)"curPage"!==t&&"pageSize"!==t&&"receiveName"!==t&&"taskType"!==t&&(this.getWorkList[t]=null);this.arrayTimeSearch=[],this.workList()},headClassName:function(t){var e=t.row,a=t.rowIndex;return console.log(e,a),"headName"},rowClassName:function(t){var e=t.row,a=t.rowIndex;return console.log(e,a),(a+1)%2!==0?"cellNameOdd":"cellNameEven"}}},u=c,d=(a("54f8"),a("2877")),p=Object(d["a"])(u,s,l,!1,null,"6edbe96c",null);e["default"]=p.exports},a30e:function(t,e,a){},c535:function(t,e,a){"use strict";a("122e")},cfd0:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return"release"==t.taskSelected?a("DispatchedWork",[a("el-select",{staticClass:"filter-item",model:{value:t.taskSelected,callback:function(e){t.taskSelected=e},expression:"taskSelected"}},t._l(t.taskList,(function(t){return a("el-option",{key:t.id,attrs:{value:t.value,label:t.name}})})),1)],1):a("ReceivingWork",[a("el-select",{staticClass:"filter-item",model:{value:t.taskSelected,callback:function(e){t.taskSelected=e},expression:"taskSelected"}},t._l(t.taskList,(function(t){return a("el-option",{key:t.id,attrs:{value:t.value,label:t.name}})})),1)],1)},l=[],i=a("dbcb"),n=a("a03b"),o=a("4381"),r={components:{DispatchedWork:i["default"],ReceivingWork:n["default"]},directives:{permission:o["a"]},data:function(){return{taskList:[{name:this.$t("work.published"),value:"release",id:2},{name:this.$t("work.received"),value:"receive",id:3}],taskSelected:"release"}},created:function(){this.taskSelected=this.taskList[0].value},methods:{}},c=r,u=(a("c535"),a("2877")),d=Object(u["a"])(c,s,l,!1,null,"4b2d2cae",null);e["default"]=d.exports}}]); //# sourceMappingURL=chunk-34eb0d0f.9b1d83c1.js.map