EMS2.0-Documents/7.部署文档/Linux安装/项目前端文件/IEMS/js/chunk-16394674.2dccc834.js

2 lines
9.0 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-16394674"],{"14cb":function(t,e,a){"use strict";a("1a02")},"1a02":function(t,e,a){},"333d":function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pagination-container"},[a("el-pagination",t._b({attrs:{background:t.background,"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},r=[],n=(a("a9e3"),{name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:0},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[5,10,20,30,70]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t})},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize})}}}),i=n,o=(a("14cb"),a("2877")),l=Object(o["a"])(i,s,r,!1,null,"4dfad654",null);e["a"]=l.exports},7189:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return"task"===t.$store.state.work.flag?a("task"):a("equipment")},r=[],n=a("cb1a"),i=a("9aca"),o={components:{task:n["default"],equipment:i["default"]},data:function(){return{}},beforeRouteLeave:function(t,e,a){this.$store.state.work.flag="task",a()},created:function(){},methods:{}},l=o,c=a("2877"),u=Object(c["a"])(l,s,r,!1,null,"40dae57c",null);e["default"]=u.exports},cb1a: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 options"},[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("el-select",{staticClass:"filter-item",attrs:{placeholder:t.$t("work.status")},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.status,attrs:{label:t.label,value:t.status}})})),1),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"))+" ")])],1),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}},[a("el-table-column",{attrs:{property:"taskName",align:"center",label:t.$t("work.taskName")}}),a("el-table-column",{attrs:{property:"receiveName",align:"center",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"))+" ")]):e.row.orderType&&"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(t.$t("work.patrol"))+" ")])]}}])}),a("el-table-column",{attrs:{align:"center",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:{label:t.$t("work.status"),align:"center"},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.passed")))]):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 purple"},[t._v(t._s(t.$t("work.timedout")))]):t._e()]}}])}),a("el-table-column",{attrs:{property:"checkName",align:"center",label:t.$t("work.accepted")}}),a("el-table-column",{attrs:{align:"center",label:t.$t("work.createdTime"),property:"createTime"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.createTime?a("span",[t._v(t._s(e.row.createTime))]):t._e(),e.row.createTime?t._e():a("span",[t._v("- -")])]}}])}),a("el-table-column",{attrs:{align:"center",label:t.$t("work.ApplicationTime")},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.applyTime?a("span",[t._v(t._s(e.row.applyTime))]):t._e(),e.row.applyTime?t._e():a("span",[t._v("- -")])]}}])}),a("el-table-column",{attrs:{label:t.$t("table.operate"),width:"300",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"btnCancel",on:{click:function(a){return t.apply(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.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)])},r=[],n=(a("d3b7"),a("159b"),a("a15b"),a("9b41")),i=a("333d"),o=a("4381"),l={components:{Pagination:i["a"]},directives:{permission:o["a"]},data:function(){return{searchForm:{workNum:"",startTime:"",reviceName:"",finishTime:"",workName:"",deadline:"",countPatrol:"",remark:""},arrayTimeSearch:[],listQuery:{checkName:localStorage.getItem("sitename2"),curPage:1,pageSize:10,startTime:null,deadline:null,status:5,parentId:null},workForm:null,listLoading:!0,total:0,taskIdStr:"",status:[{status:3,label:this.$t("work.passed")},{status:4,label:this.$t("work.failed")},{status:5,label:this.$t("work.tobeAccepted")}]}},watch:{arrayTimeSearch:function(t){this.listQuery.startTime=t&&t[0],this.listQuery.deadline=t&&t[1]}},created:function(){this.workList()},beforeRouteLeave:function(t,e,a){this.$store.state.work.flag="task",a()},methods:{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}))},apply:function(t){var e=this;this.$store.state.work.completeList.ids=t.row.deviceId,this.$store.state.work.completeList.solveStatus=t.row.orderType,this.$store.state.work.completeList.solver=t.row.receiveName,this.$store.state.work.taskId=t.row.taskId,this.$store.state.work.applyStatus=t.row.status,Object(n["i"])({taskId:t.row.taskId,trackType:"验收"}).then((function(t){e.$store.state.work.flag="equipment",e.$store.state.work.equipmentList=t.data.deviceAcceptanceList,null==t.data.task.orderType&&(t.data.task.orderType="8"),e.$store.state.work.taskForm=t.data.task,console.log(e.$store.state.work.taskForm)}))},handleSelectionChange:function(t){var e=[];t.forEach((function(t){e.push(t.taskId)})),this.taskIdStr=e.join(","),console.log(this.taskIdStr)},handleFilter:function(){this.listQuery.curPage=1,this.workList()},wipeCondition:function(){this.listQuery.curPage=1,this.listQuery.startTime="",this.listQuery.deadline="",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"}}},c=l,u=a("2877"),p=Object(u["a"])(c,s,r,!1,null,"7b27e008",null);e["default"]=p.exports}}]);
//# sourceMappingURL=chunk-16394674.2dccc834.js.map