1 line
22 KiB
Plaintext
1 line
22 KiB
Plaintext
{"version":3,"sources":["webpack:///./src/views/operation/patrol/sonPatrol.vue?043d","webpack:///./src/views/operation/patrol/sonPatrol.vue?d6e5","webpack:///src/views/operation/patrol/sonPatrol.vue","webpack:///./src/views/operation/patrol/sonPatrol.vue?612c","webpack:///./src/views/operation/patrol/sonPatrol.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","$t","dialogTableVisible","on","$event","gridData","scopedSlots","_u","key","fn","scope","row","_v","_s","finishTime","_e","status","getOut","stop","apply","seeEq","directives","name","rawName","value","sonTotal","expression","getSonList","curPage","pageSize","$set","sonList","staticStyle","seeDialog","staticRenderFns","components","Pagination","sonEquipment","props","data","releaseName","startTime","deadline","taskType","parentId","sonPatrol","mounted","watch","val","$parent","workList","methods","handleCreate","$children","forEach","e","workBree","handleDeleteBatch","console","taskCount","confirmButtonText","cancelButtonText","type","then","batchDeleteTask","taskIdStr","title","message","duration","getTaskList","item","workStatus","res","applyAcceptanceTask","taskId","handleDelete","$confirm","deleteTask","releaseTaskBySubId","stopTaskBySubId","getTask","component"],"mappings":"kHAAA,W,kECAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,YAAY,CAACE,YAAY,YAAYC,MAAM,CAAC,MAAQP,EAAIQ,GAAG,0BAA0B,QAAUR,EAAIS,mBAAmB,OAAQ,GAAOC,GAAG,CAAC,iBAAiB,SAASC,GAAQX,EAAIS,mBAAmBE,KAAU,CAACP,EAAG,MAAM,CAACE,YAAY,mBAAmB,CAACF,EAAG,WAAW,CAACG,MAAM,CAAC,KAAOP,EAAIY,SAAS,wBAAwB,GAAG,wBAAwB,eAAe,iBAAiB,cAAc,CAACR,EAAG,kBAAkB,CAACG,MAAM,CAAC,SAAW,WAAW,MAAQ,OAAO,MAAQP,EAAIQ,GAAG,o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kBAARA,wBACQC,iBAARA,wBACQC,KAARA,YAEAC,MAAA,WACQc,eAAWA,CAAnBH,sBAAA,kBACUhB,QAAQA,IAAIA,GACZ,EAAV,UACU,EAAV,SACYQ,MAAOA,EAAnBA,oBACYC,QAASA,EAArBA,0BACYL,KAAMA,UACNM,SAAUA,aAKlBnD,OAvFJ,SAuFAP,GAAA,WACMoE,eAAmBA,CAAzB9D,SAAA0D,sBAAA,MACA,YACQ,EAAR,WACQ,EAAR,uBAIIxD,KA/FJ,SA+FAR,GAAA,WACMqE,eAAgBA,CAAtB/D,SAAA0D,sBAAA,kBACQ,EAAR,eAIItD,MArGJ,SAqGAV,GAAA,WACMgD,QAAQA,IAAIA,EAAOA,YACnBsB,eAAQA,CAAdN,sBAAA,kBACQ,EAAR,kDACQ,EAAR,mBC3RiX,I,wBCQ7WO,EAAY,eACd,EACAzF,EACA0C,GACA,EACA,KACA,WACA,MAIa,aAAA+C,E","file":"js/chunk-21eda8ed.c52db04d.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./sonPatrol.vue?vue&type=style&index=0&id=2a195f66&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-dialog',{staticClass:\"gisDialog\",attrs:{\"title\":_vm.$t('work.Subinspectiontask'),\"visible\":_vm.dialogTableVisible,\"modal\":false},on:{\"update:visible\":function($event){_vm.dialogTableVisible=$event}}},[_c('div',{staticClass:\"table-container\"},[_c('el-table',{attrs:{\"data\":_vm.gridData,\"highlight-current-row\":\"\",\"header-row-class-name\":\"table-header\",\"row-class-name\":\"table-row\"}},[_c('el-table-column',{attrs:{\"property\":\"taskName\",\"align\":\"left\",\"label\":_vm.$t('work.taskName')}}),_c('el-table-column',{attrs:{\"property\":\"receiveName\",\"align\":\"left\",\"label\":_vm.$t('work.recipient')}}),_c('el-table-column',{attrs:{\"property\":\"startTime\",\"align\":\"left\",\"label\":_vm.$t('startTime'),\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"property\":\"deadline\",\"align\":\"left\",\"label\":_vm.$t('endTime'),\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"property\":\"finishTime\",\"align\":\"left\",\"label\":_vm.$t('completionTime'),\"show-overflow-tooltip\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.finishTime)?_c('span',[_vm._v(_vm._s(scope.row.finishTime))]):_vm._e(),(!scope.row.finishTime)?_c('span',[_vm._v(\"- -\")]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"label\":_vm.$t('work.status'),\"align\":\"left\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.status === -1)?_c('span',{staticClass:\"btn yellow\"},[_vm._v(_vm._s(_vm.$t('work.unpublished')))]):_vm._e(),(scope.row.status === 0)?_c('span',{staticClass:\"btn blue\"},[_vm._v(_vm._s(_vm.$t('work.notStarted')))]):_vm._e(),(scope.row.status === 1)?_c('span',{staticClass:\"btn\"},[_vm._v(_vm._s(_vm.$t('work.inProgress')))]):_vm._e(),(scope.row.status === 2)?_c('span',{staticClass:\"btn white\"},[_vm._v(_vm._s(_vm.$t('work.suspend')))]):_vm._e(),(scope.row.status === 3)?_c('span',{staticClass:\"btn white\"},[_vm._v(_vm._s(_vm.$t('work.complete')))]):_vm._e(),(scope.row.status === 4)?_c('span',{staticClass:\"btn blue\"},[_vm._v(_vm._s(_vm.$t('work.failed')))]):_vm._e(),(scope.row.status === 5)?_c('span',{staticClass:\"btn purple\"},[_vm._v(_vm._s(_vm.$t('work.tobeAccepted')))]):_vm._e(),(scope.row.status === 6)?_c('span',{staticClass:\"btn red\"},[_vm._v(_vm._s(_vm.$t('work.timedout')))]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"label\":_vm.$t('table.operate'),\"width\":\"200\",\"align\":\"left\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.status === -1)?_c('span',{staticClass:\"btnCancel\",on:{\"click\":function($event){return _vm.getOut(scope)}}},[_c('i',{staticClass:\"iconfont icon-biaoti\"}),_vm._v(_vm._s(_vm.$t('work.release')))]):_vm._e(),(scope.row.status === 1)?_c('span',{staticClass:\"btnCancel\",on:{\"click\":function($event){return _vm.stop(scope)}}},[_c('i',{staticClass:\"iconfont icon-chakan\"}),_vm._v(_vm._s(_vm.$t('work.suspend')))]):_vm._e(),(scope.row.status === 1)?_c('span',{staticClass:\"btnCancel\",on:{\"click\":function($event){return _vm.apply(scope)}}},[_c('i',{staticClass:\"iconfont icon-biaoti\"}),_vm._v(_vm._s(_vm.$t('work.check')))]):_vm._e(),_c('span',{staticClass:\"btnCancel\",on:{\"click\":function($event){return _vm.seeEq(scope)}}},[_c('i',{staticClass:\"iconfont icon-kejian\"}),_vm._v(\" \"+_vm._s(_vm.$t('work.see')))])]}}])})],1),_c('pagination',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.sonTotal > 0),expression:\"sonTotal > 0\"}],attrs:{\"total\":_vm.sonTotal,\"page-sizes\":[1, 5, 10, 20],\"page\":_vm.getSonList.curPage,\"limit\":_vm.getSonList.pageSize},on:{\"update:page\":function($event){return _vm.$set(_vm.getSonList, \"curPage\", $event)},\"update:limit\":function($event){return _vm.$set(_vm.getSonList, \"pageSize\", $event)},\"pagination\":_vm.sonList}})],1)]),_c('el-dialog',{staticStyle:{\"height\":\"800px\"},attrs:{\"title\":_vm.$t('work.see'),\"visible\":_vm.seeDialog},on:{\"update:visible\":function($event){_vm.seeDialog=$event}}},[_c('son-equipment')],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <el-dialog\r\n :title=\"$t('work.Subinspectiontask')\"\r\n :visible.sync=\"dialogTableVisible\"\r\n :modal=\"false\"\r\n class=\"gisDialog\"\r\n >\r\n <div class=\"table-container\">\r\n <el-table\r\n :data=\"gridData\"\r\n highlight-current-row\r\n header-row-class-name=\"table-header\"\r\n row-class-name=\"table-row\"\r\n >\r\n <el-table-column\r\n property=\"taskName\"\r\n align=\"left\"\r\n :label=\"$t('work.taskName')\"\r\n />\r\n <el-table-column\r\n property=\"receiveName\"\r\n align=\"left\"\r\n :label=\"$t('work.recipient')\"\r\n />\r\n <el-table-column\r\n property=\"startTime\"\r\n align=\"left\"\r\n :label=\"$t('startTime')\"\r\n show-overflow-tooltip\r\n />\r\n <el-table-column\r\n property=\"deadline\"\r\n align=\"left\"\r\n :label=\"$t('endTime')\"\r\n show-overflow-tooltip\r\n />\r\n <el-table-column\r\n property=\"finishTime\"\r\n align=\"left\"\r\n :label=\"$t('completionTime')\"\r\n show-overflow-tooltip\r\n >\r\n <template slot-scope=\"scope\">\r\n <span v-if=\"scope.row.finishTime\">{{\r\n scope.row.finishTime\r\n }}</span>\r\n <span v-if=\"!scope.row.finishTime\">- -</span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column :label=\"$t('work.status')\" align=\"left\">\r\n <template slot-scope=\"scope\">\r\n <span v-if=\"scope.row.status === -1\" class=\"btn yellow\">{{\r\n $t('work.unpublished')\r\n }}</span>\r\n <span v-if=\"scope.row.status === 0\" class=\"btn blue\">{{\r\n $t('work.notStarted')\r\n }}</span>\r\n <span v-if=\"scope.row.status === 1\" class=\"btn\">{{\r\n $t('work.inProgress')\r\n }}</span>\r\n <span v-if=\"scope.row.status === 2\" class=\"btn white\">{{\r\n $t('work.suspend')\r\n }}</span>\r\n <span v-if=\"scope.row.status === 3\" class=\"btn white\">{{\r\n $t('work.complete')\r\n }}</span>\r\n <span v-if=\"scope.row.status === 4\" class=\"btn blue\">{{\r\n $t('work.failed')\r\n }}</span>\r\n <span v-if=\"scope.row.status === 5\" class=\"btn purple\">{{\r\n $t('work.tobeAccepted')\r\n }}</span>\r\n <span v-if=\"scope.row.status === 6\" class=\"btn red\">{{\r\n $t('work.timedout')\r\n }}</span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n :label=\"$t('table.operate')\"\r\n width=\"200\"\r\n align=\"left\"\r\n >\r\n <template slot-scope=\"scope\">\r\n <span\r\n v-if=\"scope.row.status === -1\"\r\n class=\"btnCancel\"\r\n @click=\"getOut(scope)\"\r\n ><i class=\"iconfont icon-biaoti\" />{{\r\n $t('work.release')\r\n }}</span\r\n >\r\n <span\r\n class=\"btnCancel\"\r\n @click=\"stop(scope)\"\r\n v-if=\"scope.row.status === 1\"\r\n ><i class=\"iconfont icon-chakan\" />{{\r\n $t('work.suspend')\r\n }}</span\r\n >\r\n <span\r\n class=\"btnCancel\"\r\n @click=\"apply(scope)\"\r\n v-if=\"scope.row.status === 1\"\r\n ><i class=\"iconfont icon-biaoti\" />{{ $t('work.check') }}</span\r\n >\r\n <span class=\"btnCancel\" @click=\"seeEq(scope)\">\r\n <i class=\"iconfont icon-kejian\" /> {{ $t('work.see') }}</span\r\n >\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <pagination\r\n v-show=\"sonTotal > 0\"\r\n :total=\"sonTotal\"\r\n :page-sizes=\"[1, 5, 10, 20]\"\r\n :page.sync=\"getSonList.curPage\"\r\n :limit.sync=\"getSonList.pageSize\"\r\n @pagination=\"sonList\"\r\n />\r\n </div>\r\n </el-dialog>\r\n <el-dialog\r\n :title=\"$t('work.see')\"\r\n :visible.sync=\"seeDialog\"\r\n style=\"height: 800px\"\r\n >\r\n <son-equipment></son-equipment>\r\n </el-dialog>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport {\r\n getTaskList,\r\n deleteTask,\r\n batchDeleteTask,\r\n applyAcceptanceTask,\r\n releaseTaskBySubId,\r\n stopTaskBySubId,\r\n getTask\r\n} from '@/api/work'\r\nimport { workStatus } from '@/utils/time'\r\nimport Pagination from '@/components/Pagination'\r\nimport sonEquipment from '@/components/historicalTrack/sonEquipment'\r\nexport default {\r\n components: {\r\n Pagination,\r\n sonEquipment\r\n },\r\n props: ['parentTaskId', 'parentTaskStatus'],\r\n data() {\r\n return {\r\n gridData: null,\r\n dialogTableVisible: false,\r\n sonTotal: 0,\r\n getSonList: {\r\n releaseName: localStorage.getItem('sitename2'),\r\n curPage: 1,\r\n pageSize: 5,\r\n startTime: null,\r\n deadline: null,\r\n status: null,\r\n taskType: '巡检',\r\n parentId: null\r\n },\r\n sonPatrol: 'sonPatrol',\r\n seeDialog: false\r\n }\r\n },\r\n mounted() {},\r\n watch: {\r\n dialogTableVisible(val) {\r\n if (val == false) {\r\n this.$parent.workList()\r\n }\r\n }\r\n },\r\n methods: {\r\n handleCreate() {\r\n this.$children.forEach((e) => {\r\n if (e.workBree) {\r\n e.handleCreate()\r\n }\r\n })\r\n },\r\n handleDeleteBatch() {\r\n this.$children.forEach((e) => {\r\n if (e.workBree) {\r\n console.log(e.taskCount)\r\n if (!e.taskCount) {\r\n return\r\n }\r\n this.$confirm(\r\n this.$t('title.delPointOutWork'),\r\n this.$t('title.pointOut'),\r\n {\r\n confirmButtonText: this.$t('title.delete'),\r\n cancelButtonText: this.$t('title.cancel'),\r\n type: 'warning'\r\n }\r\n ).then(() => {\r\n batchDeleteTask({ taskIdStr: e.taskCount }).then((res) => {\r\n console.log(res)\r\n e.workList()\r\n this.$notify({\r\n title: this.$t('title.success'),\r\n message: this.$t('title.deleteSuccess'),\r\n type: 'success',\r\n duration: 3000\r\n })\r\n })\r\n })\r\n }\r\n })\r\n },\r\n sonList() {\r\n getTaskList(this.getSonList).then((res) => {\r\n this.gridData = res.data.list\r\n this.sonTotal = res.data.totalRow\r\n this.gridData = this.gridData.map((item) => {\r\n item = Object.assign({}, item)\r\n if (\r\n workStatus(\r\n item.startTime,\r\n item.deadline,\r\n res.timestamp,\r\n item.status\r\n ) == 6\r\n ) {\r\n item.status = 6\r\n }\r\n return item\r\n })\r\n })\r\n console.log(this.parentTaskId, this.parentTaskStatus)\r\n },\r\n apply(scope) {\r\n applyAcceptanceTask({ taskId: scope.row.taskId }).then((res) => {\r\n this.sonList(res)\r\n })\r\n },\r\n handleDelete(scope) {\r\n // 删除\r\n this.$confirm(\r\n this.$t('title.delPointOutWork'),\r\n this.$t('title.pointOut'),\r\n {\r\n confirmButtonText: this.$t('title.delete'),\r\n cancelButtonText: this.$t('title.cancel'),\r\n type: 'warning'\r\n }\r\n ).then(() => {\r\n deleteTask({ taskId: scope.row.taskId }).then((res) => {\r\n console.log(res)\r\n this.sonList()\r\n this.$notify({\r\n title: this.$t('title.success'),\r\n message: this.$t('title.deleteSuccess'),\r\n type: 'success',\r\n duration: 3000\r\n })\r\n })\r\n })\r\n },\r\n getOut(scope) {\r\n releaseTaskBySubId({ status: 0, taskId: scope.row.taskId }).then(\r\n (res) => {\r\n this.sonList(res)\r\n this.$parent.workList()\r\n }\r\n )\r\n },\r\n stop(scope) {\r\n stopTaskBySubId({ status: 2, taskId: scope.row.taskId }).then((res) => {\r\n this.sonList(res)\r\n })\r\n },\r\n //查看设备\r\n seeEq(scope) {\r\n console.log(scope, '----2---')\r\n getTask({ taskId: scope.row.taskId }).then((res) => {\r\n this.$store.state.work.deviceAllList = res.data.deviceList\r\n this.seeDialog = true\r\n })\r\n }\r\n }\r\n}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.btnCancel {\r\n margin: 2px;\r\n}\r\n</style>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./sonPatrol.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./sonPatrol.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./sonPatrol.vue?vue&type=template&id=2a195f66&scoped=true&\"\nimport script from \"./sonPatrol.vue?vue&type=script&lang=js&\"\nexport * from \"./sonPatrol.vue?vue&type=script&lang=js&\"\nimport style0 from \"./sonPatrol.vue?vue&type=style&index=0&id=2a195f66&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2a195f66\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""} |