EMS2.0-Documents/7.部署文档/Window安装/项目前端文件/IEMS/js/chunk-c6770f14.7726bfd3.js

2 lines
24 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c6770f14","chunk-c6b82f14","chunk-30dcbc0b"],{"19d9":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"},[t._t("default"),a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:t.$t("work.taskName")},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleFilter.apply(null,arguments)}},model:{value:t.listQuery.search,callback:function(e){t.$set(t.listQuery,"search",e)},expression:"listQuery.search"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:t.$t("device.typeName")},on:{change:t.handleFilter},model:{value:t.listQuery.deviceType,callback:function(e){t.$set(t.listQuery,"deviceType",e)},expression:"listQuery.deviceType"}},t._l(t.deviceType,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:t.$t("work.status"),clearable:""},on:{change:t.handleFilter},model:{value:t.listQuery.status,callback:function(e){t.$set(t.listQuery,"status",e)},expression:"listQuery.status"}},t._l(t.status,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:t.$t("work.taskType"),clearable:""},on:{change:t.handleFilter},model:{value:t.listQuery.orderType,callback:function(e){t.$set(t.listQuery,"orderType",e)},expression:"listQuery.orderType"}},t._l(t.options,(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: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"))+" ")]),a("div",{staticClass:"control-container"},[a("span",{staticClass:"btn-item",on:{click:t.handleCreate}},[a("i",{staticClass:"iconfont icon-a-"}),t._v(t._s(t.$t("btn.add")))]),a("span",{staticClass:"btn-item delete",on:{click:t.handleDeletes}},[a("i",{staticClass:"iconfont icon-shanchu"}),t._v(t._s(t.$t("btn.delete")))])])],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"},on:{"selection-change":t.handleSelectionChange,"row-dblclick":t.handleUpdates}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),a("el-table-column",{attrs:{property:"taskName",align:"left",label:t.$t("work.taskName"),"show-overflow-tooltip":""}}),a("el-table-column",{attrs:{property:"receiveName",align:"left",label:t.$t("work.recipient")}}),a("el-table-column",{attrs:{property:"orderType",align:"left",label:t.$t("work.taskType")},scopedSlots:t._u([{key:"default",fn:function(e){return["1"===e.row.orderType?a("span",{staticClass:"use"},[t._v(" "+t._s(t.$t("work.install")))]):"3"===e.row.orderType?a("span",{staticClass:"use"},[t._v(" "+t._s(t.$t("work.dismantle"))+" ")]):"4"===e.row.orderType?a("span",{staticClass:"use"},[t._v(" "+t._s(t.$t("work.faults"))+" ")]):"5"===e.row.orderType.split(",")[0]?a("span",{staticClass:"otherUse"},[t._v(" "+t._s(t.$t("work.other")+"("+e.row.orderType.split(",")[1])+") ")]):a("span",{staticClass:"use"},[t._v(" "+t._s(e.row.orderType)+" ")])]}}])}),a("el-table-column",{attrs:{property:"startTime",align:"left",label:t.$t("startTime")}}),a("el-table-column",{attrs:{property:"deadline",align:"left",label:t.$t("endTime")}}),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:{align:"left",label:t.$t("completionTime")},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.finishTime?t._e():a("span",[t._v("- -")]),e.row.finishTime?a("span",[t._v(t._s(e.row.finishTime))]):t._e()]}}])}),a("el-table-column",{attrs:{property:"remark",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("table.operate"),width:"350",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[-1===e.row.status?a("span",{staticClass:"btnCancel",attrs:{title:t.$t("table.update")},on:{click:function(a){return t.handleUpdate(e.row)}}},[a("i",{staticClass:"iconfont icon-bianji"}),t._v(t._s(t.$t("table.update"))+" ")]):t._e(),a("span",{staticClass:"btnCancel",attrs:{title:t.$t("work.see")},on:{click:function(a){return t.handleSee(e.row)}}},[a("i",{staticClass:"iconfont icon-kejian"}),t._v(" "+t._s(t.$t("work.see"))+" ")]),a("span",{staticClass:"btnCancel delete",attrs:{title:t.$t("table.delete")},on:{click:function(a){return t.handleDelete(e)}}},[a("i",{staticClass:"iconfont icon-a--"}),t._v(t._s(t.$t("table.delete"))+" ")]),-1===e.row.status?a("span",{staticClass:"btnCancel",on:{click:function(a){return t.getOut(e)}}},[a("i",{staticClass:"iconfont icon-biaoti"}),t._v(t._s(t.$t("work.release"))+" ")]):t._e(),1===e.row.status?a("span",{staticClass:"btnCancel",on:{click:function(a){return t.stop(e)}}},[a("i",{staticClass:"iconfont icon-chakan"}),t._v(t._s(t.$t("work.suspend"))+" ")]):t._e(),1===e.row.status?a("span",{staticClass:"btnCancel",on:{click:function(a){return t.apply(e)}}},[a("i",{staticClass:"iconfont icon-biaoti"}),t._v(t._s(t.$t("work.check"))+" ")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],attrs:{total:t.total,page:t.listQuery.curPage,limit:t.listQuery.pageSize},on:{"update:page":function(e){return t.$set(t.listQuery,"curPage",e)},"update:limit":function(e){return t.$set(t.listQuery,"pageSize",e)},pagination:t.workList}})],1),a("create-work",{ref:"from",attrs:{dialogStatus:t.dialogStatus,otherRemarkParent:t.otherRemarkParent,arrayTimeParent:t.arrayTimeParent}}),a("el-dialog",{staticStyle:{height:"800px"},attrs:{title:t.$t("work.see"),visible:t.seeDialog,width:"900px"},on:{"update:visible":function(e){t.seeDialog=e}}},[a("son-equipment")],1)],1)},i=[],l=(a("d81d"),a("d3b7"),a("159b"),a("a15b"),a("ac1f"),a("1276"),a("a219")),n=a("9b41"),r=a("7930"),o=a("333d"),c=a("7877"),u=a("cadb"),d={components:{Pagination:o["a"],sonEquipment:c["a"],createWork:l["a"]},filters:{statusFilter:function(t){return 0===t?"禁用":"启用"}},data:function(){return{arrayTimeSearch:[],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")}],deviceType:[],addDialog:!1,seeDialog:!1,dialogStatus:"",deptList:[],total:0,listQuery:{releaseName:localStorage.getItem("sitename2"),curPage:1,pageSize:10,startTime:null,deadline:null,status:null,taskType:"工单",parentId:null,deviceType:null,search:null},otherRemarkParent:"",arrayTimeParent:[],list:null,listLoading:!0,downloadLoading:!1,light:!1,workForm:null,options:[{value:"1",label:this.$t("work.install")},{value:"3",label:this.$t("work.dismantle")},{value:"4",label:this.$t("work.faults")},{value:"5",label:this.$t("work.other")}],taskCount:null,workFly:"workFly",deviceList:[],pickerOptions0:{disabledDate:function(t){return t.getTime()<Date.now()-864e5}},pickerOptions1:{disabledDate:function(t){return t.getTime()>Date.now()-864e4}}}},computed:{form:function(){return this.$store.state.work.form},isDialog:function(){return this.$store.state.work.isDialog}},watch:{arrayTimeSearch:function(t){this.listQuery.startTime=t&&t[0],this.listQuery.deadline=t&&t[1]},isDialog:function(t){!1===t&&(this.$store.state.work.devList=[])},seeDialog:function(t){!0===t?this.$store.state.work.isSee="seeEquipment":!1===t&&(this.$store.state.work.isSee="")}},created:function(){var t=this;this.workList(),Object(r["c"])().then((function(e){t.deviceType=e.data.list.map((function(t){return{value:t.typeId,label:t.typeName}}))}))},methods:{handleSelectionChange:function(t){var e=[];t.forEach((function(t){e.push(t.taskId)})),this.taskCount=e.join(",")},getOut:function(t){var e=this;Object(n["p"])({status:0,taskId:t.row.taskId}).then((function(t){console.log(t),e.workList()}))},stop:function(t){var e=this;Object(n["p"])({status:2,taskId:t.row.taskId}).then((function(t){200===t.status&&e.$notify({title:e.$t("title.success"),message:"终止成功",type:"success",duration:3e3}),e.workList()}))},apply:function(t){var e=this;Object(n["b"])({taskId:t.row.taskId}).then((function(t){console.log(t),e.workList()}))},workList:function(){var t=this;this.listLoading=!0,Object(n["k"])(this.listQuery).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(u["c"])(t.startTime,t.deadline,e.timestamp,t.status)&&(t.status=6),t}))}))},resetForm:function(){for(var t in this.form)"deviceList"!==t&&(this.form[t]=null);this.arrayTimeSearch=[],this.otherRemark="",this.arrayTime=[]},handleCreate:function(){this.resetForm(),this.$store.state.work.deviceAllList=[],this.$store.state.work.addDialog=!0,this.dialogStatus="create"},handleUpdates:function(t){this.handleUpdate(t)},handleUpdate:function(t){var e=this;this.resetForm(),Object(n["j"])({taskId:t.taskId}).then((function(t){e.$store.state.work.deviceAllList=t.data.deviceList})),this.$store.state.work.form=Object.assign({},t),console.log(this.$store.state.work.form,t,"-------`-----"),this.$store.state.work.form.orderType=t.orderType.split(",")[0],this.dialogStatus="update",this.otherRemarkParent=t.orderType.split(",")[1],this.arrayTimeParent=[t.startTime,t.deadline],this.$store.state.work.addDialog=!0},handleDeletes:function(){var t=this;this.taskCount&&this.$confirm(this.$t("title.delPointOutWork"),this.$t("title.pointOut"),{confirmButtonText:this.$t("title.delete"),cancelButtonText:this.$t("title.cancel"),type:"warning"}).then((function(){Object(n["c"])({taskIdStr:t.taskCount}).then((function(e){console.log(e),t.workList(),t.$notify({title:t.$t("title.success"),message:t.$t("title.deleteSuccess"),type:"success",duration:3e3})}))}))},handleSee:function(t){var e=this;this.seeDialog=!0,Object(n["j"])({taskId:t.taskId}).then((function(t){e.$store.state.work.deviceAllList=t.data.deviceList}))},handleDelete:function(t){var e=this;this.$confirm(this.$t("title.delPointOutWork"),this.$t("title.pointOut"),{confirmButtonText:this.$t("title.delete"),cancelButtonText:this.$t("title.cancel"),type:"warning"}).then((function(){Object(n["e"])({taskId:t.row.taskId}).then((function(t){console.log(t),e.workList(),e.$notify({title:e.$t("title.success"),message:e.$t("title.deleteSuccess"),type:"success",duration:3e3})}))}))},handleFilter:function(){this.listQuery.curPage=1,this.workList()},wipeCondition:function(){for(var t in this.arrayTimeSearch=[],this.listQuery)"curPage"!==t&&"pageSize"!==t&&"releaseName"!==t&&"taskType"!==t&&(this.listQuery[t]=null,delete this.listQuery.orderType);this.workList()},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return e[t]}))}))}}},p=d,h=a("2877"),k=Object(h["a"])(p,s,i,!1,null,null,null);e["default"]=k.exports},"2e19":function(t,e,a){},3712: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)},i=[],l=a("19d9"),n=a("5d1f"),r={components:{DispatchedWork:l["default"],ReceivingWork:n["default"]},data:function(){return{taskList:[{name:this.$t("work.published"),value:"release",id:2},{name:this.$t("work.received"),value:"receive",id:3}],taskSelected:""}},created:function(){this.taskSelected=this.taskList[0].value},methods:{}},o=r,c=(a("5c39"),a("2877")),u=Object(c["a"])(o,s,i,!1,null,"9b79f46e",null);e["default"]=u.exports},4381:function(t,e,a){"use strict";a("d3b7"),a("caad"),a("2532"),a("d9e2");var s=a("4360"),i={inserted:function(t,e){var a=e.value,i=s["a"].getters&&s["a"].getters.butPermission;if(console.log(i,"roles"),!(a&&a instanceof Array&&a.length>0))throw new Error("need roles! Like v-permission=\"['admin','editor']\"");var l=a,n=i.some((function(t){return l.includes(t)}));if(console.log(n,"hasPermission"),n)s["a"].state.user.permissionFlag[l]=!1;else{s["a"].state.user.permissionFlag[l]=!0,console.log(s["a"].state.user.permissionFlag[l],"permissionRoles");var r=document.createElement("div");r.style.cursor="not-allowed",r.style.display="inline-block",t.style.pointerEvents="none",t.parentNode.insertBefore(r,t),t.parentNode&&t.parentNode.removeChild(t),r.appendChild(t),console.log(t,"permissionRoles")}}},l=function(t){t.directive("permission",i)};window.Vue&&(window["permission"]=i,Vue.use(l)),i.install=l;e["a"]=i},"5c39":function(t,e,a){"use strict";a("2e19")},"5d1f":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"},[t._t("default"),a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:t.$t("work.taskName")},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleFilter.apply(null,arguments)}},model:{value:t.getWorkList.search,callback:function(e){t.$set(t.getWorkList,"search",e)},expression:"getWorkList.search"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:t.$t("device.typeName"),clearable:""},on:{change:function(e){return t.handleFilter()}},model:{value:t.getWorkList.deviceType,callback:function(e){t.$set(t.getWorkList,"deviceType",e)},expression:"getWorkList.deviceType"}},t._l(t.deviceType,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),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-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:t.$t("work.taskType")},on:{change:function(e){return t.handleFilter()}},model:{value:t.getWorkList.orderType,callback:function(e){t.$set(t.getWorkList,"orderType",e)},expression:"getWorkList.orderType"}},t._l(t.options,(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","default-time":["12:00:00"],editable:!1},model:{value:t.arrayTime,callback:function(e){t.arrayTime=e},expression:"arrayTime"}}),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:{property:"taskName",align:"left",label:t.$t("work.taskName"),"show-overflow-tooltip":""}}),a("el-table-column",{attrs:{property:"receiveName",align:"left",label:t.$t("work.recipient")}}),a("el-table-column",{attrs:{property:"orderType",align:"left",label:t.$t("work.taskType")},scopedSlots:t._u([{key:"default",fn:function(e){return["1"===e.row.orderType?a("span",{staticClass:"use"},[t._v(" "+t._s(t.$t("work.install")))]):"3"===e.row.orderType?a("span",{staticClass:"use"},[t._v(" "+t._s(t.$t("work.dismantle"))+" ")]):"4"===e.row.orderType?a("span",{staticClass:"use"},[t._v(" "+t._s(t.$t("work.faults"))+" ")]):"5"===e.row.orderType.split(",")[0]?a("span",{staticClass:"otherUse"},[t._v(" "+t._s(t.$t("work.other")+"("+e.row.orderType.split(",")[1])+") ")]):a("span",{staticClass:"use"},[t._v(" "+t._s(e.row.orderType)+" ")])]}}])}),a("el-table-column",{attrs:{property:"startTime",align:"left",label:t.$t("startTime")}}),a("el-table-column",{attrs:{property:"deadline",align:"left",label:t.$t("endTime")}}),a("el-table-column",{attrs:{property:"finishTime",align:"left",label:t.$t("completionTime")},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.finishTime?a("span",[t._v(t._s(e.row.finishTime))]):t._e(),e.row.finishTime?t._e():a("span",[t._v("- -")])]}}])}),a("el-table-column",{attrs:{property:"remark",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:"180",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.handleSee(e.row)}}},[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.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}})],1),a("el-dialog",{staticStyle:{height:"800px"},attrs:{title:t.$t("work.see"),visible:t.seeDialog,width:"900px"},on:{"update:visible":function(e){t.seeDialog=e}}},[a("son-equipment")],1)],1)},i=[],l=(a("d81d"),a("7930")),n=a("9b41"),r=a("333d"),o=a("7877"),c=a("cadb"),u=a("4381"),d={components:{Pagination:r["a"],sonEquipment:o["a"]},directives:{permission:u["a"]},data:function(){return{total:0,seeDialog:!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")}],list:null,listLoading:!0,downloadLoading:!1,workForm:null,getWorkList:{receiveName:localStorage.getItem("sitename2"),curPage:1,pageSize:10,startTime:null,deadline:null,status:null,taskType:"工单",parentId:null,statusNo:-1,deviceType:null,search:null},deviceType:[],options:[{value:"1",label:this.$t("work.install")},{value:"3",label:this.$t("work.dismantle")},{value:"4",label:this.$t("work.faults")},{value:"5",label:this.$t("work.other")}],arrayTime:[],pickerOptions0:{disabledDate:function(t){return t.getTime()>Date.now()-864e4}}}},created:function(){var t=this;this.workList(),Object(l["c"])().then((function(e){t.deviceType=e.data.list.map((function(t){return{value:t.deviceTypeId,label:t.deviceTypeName}})),console.log(t.deviceTypelist)}))},watch:{arrayTime:function(t){t?(this.getWorkList.startTime=t&&t[0],this.getWorkList.deadline=t&&t[1]):(this.getWorkList.startTime=null,this.getWorkList.deadline=null)},seeDialog:function(t){!0===t?this.$store.state.work.isSee="seeEquipment":!1===t&&(this.$store.state.work.isSee="")}},methods:{handleSee:function(t){var e=this;this.seeDialog=!0,Object(n["j"])({taskId:t.taskId}).then((function(t){e.$store.state.work.deviceAllList=t.data.deviceList}))},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(c["c"])(t.startTime,t.deadline,e.timestamp,t.status)&&(t.status=6),t})),console.log(t.workForm)}))},handleFilter:function(){this.getWorkList.curPage=1,this.workList()},wipeCondition:function(){for(var t in this.getWorkList)"curPage"!==t&&"pageSize"!==t&&"receiveName"!==t&&"taskType"!==t&&"statusNo"!==t&&(this.getWorkList[t]=null);this.arrayTime=[],this.getWorkList.curPage=1,this.workList()},headClassName:function(){return"headName"},rowClassName:function(t){var e=t.row,a=t.rowIndex;return console.log(e,a),(a+1)%2!==0?"cellNameOdd":"cellNameEven"}}},p=d,h=(a("6828"),a("2877")),k=Object(h["a"])(p,s,i,!1,null,"6a8de856",null);e["default"]=k.exports},6828:function(t,e,a){"use strict";a("b3ab")},7930:function(t,e,a){"use strict";a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return l})),a.d(e,"b",(function(){return n})),a.d(e,"d",(function(){return r}));var s=a("b775");function i(t){return Object(s["a"])({url:"device-service/type/getTypeList",method:"get",params:t})}function l(t){return Object(s["a"])({headers:{"Content-Type":"application/json"},url:"device-service/type/addType",method:"post",data:t})}function n(t){var e={typeById:t};return Object(s["a"])({url:"device-service/type/deleteType",method:"delete",params:e})}function r(t){return Object(s["a"])({headers:{"Content-Type":"application/json"},url:"device-service/type/updateType",method:"put",data:t})}},b3ab:function(t,e,a){}}]);
//# sourceMappingURL=chunk-c6770f14.7726bfd3.js.map