EMS2.0-Documents/7.部署文档/Window安装/项目前端文件/IEMS/js/chunk-21eda8ed.c52db04d.js

2 lines
6.1 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-21eda8ed"],{"0478":function(t,e,s){"use strict";s("2e1c")},"2e1c":function(t,e,s){},d2b0:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("el-dialog",{staticClass:"gisDialog",attrs:{title:t.$t("work.Subinspectiontask"),visible:t.dialogTableVisible,modal:!1},on:{"update:visible":function(e){t.dialogTableVisible=e}}},[s("div",{staticClass:"table-container"},[s("el-table",{attrs:{data:t.gridData,"highlight-current-row":"","header-row-class-name":"table-header","row-class-name":"table-row"}},[s("el-table-column",{attrs:{property:"taskName",align:"left",label:t.$t("work.taskName")}}),s("el-table-column",{attrs:{property:"receiveName",align:"left",label:t.$t("work.recipient")}}),s("el-table-column",{attrs:{property:"startTime",align:"left",label:t.$t("startTime"),"show-overflow-tooltip":""}}),s("el-table-column",{attrs:{property:"deadline",align:"left",label:t.$t("endTime"),"show-overflow-tooltip":""}}),s("el-table-column",{attrs:{property:"finishTime",align:"left",label:t.$t("completionTime"),"show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.finishTime?s("span",[t._v(t._s(e.row.finishTime))]):t._e(),e.row.finishTime?t._e():s("span",[t._v("- -")])]}}])}),s("el-table-column",{attrs:{label:t.$t("work.status"),align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[-1===e.row.status?s("span",{staticClass:"btn yellow"},[t._v(t._s(t.$t("work.unpublished")))]):t._e(),0===e.row.status?s("span",{staticClass:"btn blue"},[t._v(t._s(t.$t("work.notStarted")))]):t._e(),1===e.row.status?s("span",{staticClass:"btn"},[t._v(t._s(t.$t("work.inProgress")))]):t._e(),2===e.row.status?s("span",{staticClass:"btn white"},[t._v(t._s(t.$t("work.suspend")))]):t._e(),3===e.row.status?s("span",{staticClass:"btn white"},[t._v(t._s(t.$t("work.complete")))]):t._e(),4===e.row.status?s("span",{staticClass:"btn blue"},[t._v(t._s(t.$t("work.failed")))]):t._e(),5===e.row.status?s("span",{staticClass:"btn purple"},[t._v(t._s(t.$t("work.tobeAccepted")))]):t._e(),6===e.row.status?s("span",{staticClass:"btn red"},[t._v(t._s(t.$t("work.timedout")))]):t._e()]}}])}),s("el-table-column",{attrs:{label:t.$t("table.operate"),width:"200",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[-1===e.row.status?s("span",{staticClass:"btnCancel",on:{click:function(s){return t.getOut(e)}}},[s("i",{staticClass:"iconfont icon-biaoti"}),t._v(t._s(t.$t("work.release")))]):t._e(),1===e.row.status?s("span",{staticClass:"btnCancel",on:{click:function(s){return t.stop(e)}}},[s("i",{staticClass:"iconfont icon-chakan"}),t._v(t._s(t.$t("work.suspend")))]):t._e(),1===e.row.status?s("span",{staticClass:"btnCancel",on:{click:function(s){return t.apply(e)}}},[s("i",{staticClass:"iconfont icon-biaoti"}),t._v(t._s(t.$t("work.check")))]):t._e(),s("span",{staticClass:"btnCancel",on:{click:function(s){return t.seeEq(e)}}},[s("i",{staticClass:"iconfont icon-kejian"}),t._v(" "+t._s(t.$t("work.see")))])]}}])})],1),s("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)]),s("el-dialog",{staticStyle:{height:"800px"},attrs:{title:t.$t("work.see"),visible:t.seeDialog},on:{"update:visible":function(e){t.seeDialog=e}}},[s("son-equipment")],1)],1)},n=[],i=(s("d3b7"),s("159b"),s("d81d"),s("9b41")),o=s("cadb"),l=s("333d"),r=s("7877"),c={components:{Pagination:l["a"],sonEquipment:r["a"]},props:["parentTaskId","parentTaskStatus"],data:function(){return{gridData:null,dialogTableVisible:!1,sonTotal:0,getSonList:{releaseName:localStorage.getItem("sitename2"),curPage:1,pageSize:5,startTime:null,deadline:null,status:null,taskType:"巡检",parentId:null},sonPatrol:"sonPatrol",seeDialog:!1}},mounted:function(){},watch:{dialogTableVisible:function(t){0==t&&this.$parent.workList()}},methods:{handleCreate:function(){this.$children.forEach((function(t){t.workBree&&t.handleCreate()}))},handleDeleteBatch: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(i["c"])({taskIdStr:e.taskCount}).then((function(s){console.log(s),e.workList(),t.$notify({title:t.$t("title.success"),message:t.$t("title.deleteSuccess"),type:"success",duration:3e3})}))}))}}))},sonList:function(){var t=this;Object(i["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(o["c"])(t.startTime,t.deadline,e.timestamp,t.status)&&(t.status=6),t}))})),console.log(this.parentTaskId,this.parentTaskStatus)},apply:function(t){var e=this;Object(i["b"])({taskId:t.row.taskId}).then((function(t){e.sonList(t)}))},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(i["e"])({taskId:t.row.taskId}).then((function(t){console.log(t),e.sonList(),e.$notify({title:e.$t("title.success"),message:e.$t("title.deleteSuccess"),type:"success",duration:3e3})}))}))},getOut:function(t){var e=this;Object(i["q"])({status:0,taskId:t.row.taskId}).then((function(t){e.sonList(t),e.$parent.workList()}))},stop:function(t){var e=this;Object(i["r"])({status:2,taskId:t.row.taskId}).then((function(t){e.sonList(t)}))},seeEq:function(t){var e=this;console.log(t,"----2---"),Object(i["j"])({taskId:t.row.taskId}).then((function(t){e.$store.state.work.deviceAllList=t.data.deviceList,e.seeDialog=!0}))}}},u=c,d=(s("0478"),s("2877")),p=Object(d["a"])(u,a,n,!1,null,"2a195f66",null);e["default"]=p.exports}}]);
//# sourceMappingURL=chunk-21eda8ed.c52db04d.js.map