1 line
35 KiB
Plaintext
1 line
35 KiB
Plaintext
{"version":3,"sources":["webpack:///./src/directive/permission/permission.js","webpack:///./src/directive/permission/index.js","webpack:///./src/views/operation/workOrder/receivingWork.vue?4fe3","webpack:///src/views/operation/workOrder/receivingWork.vue","webpack:///./src/views/operation/workOrder/receivingWork.vue?9927","webpack:///./src/views/operation/workOrder/receivingWork.vue?09a9","webpack:///./src/views/operation/workOrder/receivingWork.vue?ec8b","webpack:///./src/api/deviceType.js"],"names":["inserted","el","binding","value","roles","store","getters","butPermission","console","log","Array","length","Error","permissionRoles","hasPermission","some","role","includes","state","user","permissionFlag","newnode","document","createElement","style","cursor","display","pointerEvents","parentNode","insertBefore","removeChild","appendChild","install","Vue","directive","permission","window","use","render","_vm","this","_h","$createElement","_c","_self","staticClass","_t","staticStyle","attrs","$t","nativeOn","$event","type","indexOf","_k","keyCode","key","handleFilter","apply","arguments","model","getWorkList","callback","$$v","$set","expression","on","_l","item","label","arrayTime","_v","_s","wipeCondition","directives","name","rawName","workForm","scopedSlots","_u","fn","scope","row","orderType","split","finishTime","_e","remark","status","handleSee","total","curPage","pageSize","workList","seeDialog","staticRenderFns","components","Pagination","sonEquipment","data","list","listLoading","downloadLoading","receiveName","startTime","deadline","taskType","parentId","statusNo","deviceType","search","options","pickerOptions0","disabledDate","time","getTime","Date","now","created","getTypeList","watch","val","$store","work","isSee","methods","getTask","taskId","getTaskList","workStatus","res","headClassName","rowClassName","rowIndex","component","request","url","method","params","addType","headers","deleteType","delData","typeById","updateType"],"mappings":"wKAEe,GACbA,SADa,SACJC,EAAIC,GACX,IAAQC,EAAUD,EAAVC,MAEFC,EAAQC,OAAMC,SAAWD,OAAMC,QAAQC,cAE7C,GADAC,QAAQC,IAAIL,EAAO,WACfD,GAASA,aAAiBO,OAASP,EAAMQ,OAAS,GAyBpD,MAAM,IAAIC,MAAJ,wDAxBN,IAAMC,EAAkBV,EAClBW,EAAgBV,EAAMW,MAAK,SAAAC,GAC/B,OAAOH,EAAg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C/XsW,I,wBCQjXC,EAAY,eACd,EACAhG,EACAyD,GACA,EACA,KACA,WACA,MAIa,aAAAuC,E,2CCnBf,W,kCCAA,wJAgBO,SAASf,EAAYpB,GAC1B,OAAOoC,eAAQ,CACbC,IAAK,kCACLC,OAAQ,MACRC,OAAQvC,IAKL,SAASwC,EAAQxC,GACtB,OAAOoC,eAAQ,CACbK,QAAS,CACP,eAAgB,oBAElBJ,IAAK,8BACLC,OAAQ,OACRtC,SAKG,SAAS0C,EAAW1C,GACzB,IAAM2C,EAAU,CACdC,SAAU5C,GAEZ,OAAOoC,eAAQ,CACbC,IAAK,iCACLC,OAAQ,SACRC,OAAQI,IAiBL,SAASE,EAAW7C,GACzB,OAAOoC,eAAQ,CACbK,QAAS,CACP,eAAgB,oBAElBJ,IAAK,iCACLC,OAAQ,MACRtC,W","file":"js/chunk-c6b82f14.f67eb1bb.js","sourcesContent":["import store from \"@/store\";\r\n\r\nexport default {\r\n inserted(el, binding) {\r\n const { value } = binding;\r\n // const roles = store.getters && store.getters.roles\r\n const roles = store.getters && store.getters.butPermission;\r\n console.log(roles, 'roles');\r\n if (value && value instanceof Array && value.length > 0) {\r\n const permissionRoles = value;\r\n const hasPermission = roles.some(role => {\r\n return permissionRoles.includes(role);\r\n });\r\n console.log(hasPermission, 'hasPermission');\r\n if (!hasPermission) {\r\n // el.parentNode && el.parentNode.removeChild(el) \r\n\r\n store.state.user.permissionFlag[permissionRoles] = true;\r\n\r\n\r\n console.log(store.state.user.permissionFlag[permissionRoles], 'permissionRoles');\r\n const newnode = document.createElement(\"div\");\r\n newnode.style.cursor = 'not-allowed'\r\n newnode.style.display = 'inline-block'\r\n el.style.pointerEvents = \"none\"\r\n el.parentNode.insertBefore(newnode, el)\r\n el.parentNode && el.parentNode.removeChild(el)\r\n newnode.appendChild(el);\r\n console.log(el, 'permissionRoles');\r\n } else {\r\n store.state.user.permissionFlag[permissionRoles] = false;\r\n }\r\n } else {\r\n throw new Error(`need roles! Like v-permission=\"['admin','editor']\"`);\r\n }\r\n }\r\n};","import permission from \"./permission\";\n\nconst install = function(Vue) {\n Vue.directive(\"permission\", permission);\n};\n\nif (window.Vue) {\n window[\"permission\"] = permission;\n Vue.use(install); // eslint-disable-line\n}\n\npermission.install = install;\nexport default permission;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-container\"},[_c('div',{staticClass:\"decorate\"}),_c('div',{staticClass:\"filter-container\"},[_vm._t(\"default\"),_c('el-input',{staticClass:\"filter-item\",staticStyle:{\"width\":\"150px\"},attrs:{\"placeholder\":_vm.$t('work.taskName')},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleFilter.apply(null, arguments)}},model:{value:(_vm.getWorkList.search),callback:function ($$v) {_vm.$set(_vm.getWorkList, \"search\", $$v)},expression:\"getWorkList.search\"}}),_c('el-select',{staticClass:\"filter-item\",staticStyle:{\"width\":\"150px\"},attrs:{\"placeholder\":_vm.$t('device.typeName'),\"clearable\":\"\"},on:{\"change\":function($event){return _vm.handleFilter()}},model:{value:(_vm.getWorkList.deviceType),callback:function ($$v) {_vm.$set(_vm.getWorkList, \"deviceType\", $$v)},expression:\"getWorkList.deviceType\"}},_vm._l((_vm.deviceType),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1),_c('el-select',{staticClass:\"filter-item\",staticStyle:{\"width\":\"150px\"},attrs:{\"placeholder\":_vm.$t('work.status')},on:{\"change\":function($event){return _vm.handleFilter()}},model:{value:(_vm.getWorkList.status),callback:function ($$v) {_vm.$set(_vm.getWorkList, \"status\", $$v)},expression:\"getWorkList.status\"}},_vm._l((_vm.status),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1),_c('el-select',{staticClass:\"filter-item\",staticStyle:{\"width\":\"150px\"},attrs:{\"placeholder\":_vm.$t('work.taskType')},on:{\"change\":function($event){return _vm.handleFilter()}},model:{value:(_vm.getWorkList.orderType),callback:function ($$v) {_vm.$set(_vm.getWorkList, \"orderType\", $$v)},expression:\"getWorkList.orderType\"}},_vm._l((_vm.options),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1),_c('el-date-picker',{staticClass:\"filter-item\",attrs:{\"type\":\"datetimerange\",\"start-placeholder\":_vm.$t('startTime'),\"end-placeholder\":_vm.$t('endTime'),\"value-format\":\"yyyy-MM-dd HH:mm:ss\",\"default-time\":['12:00:00'],\"editable\":false},model:{value:(_vm.arrayTime),callback:function ($$v) {_vm.arrayTime=$$v},expression:\"arrayTime\"}}),_c('span',{staticClass:\"btn-item\",on:{\"click\":_vm.handleFilter}},[_c('i',{staticClass:\"iconfont icon-sousuo\"}),_vm._v(_vm._s(_vm.$t(\"btn.search\"))+\" \")]),_c('span',{staticClass:\"btn-item\",on:{\"click\":_vm.wipeCondition}},[_c('i',{staticClass:\"el-icon-refresh-left\"}),_vm._v(_vm._s(_vm.$t(\"btn.resetting\"))+\" \")])],2),_c('div',{staticClass:\"table-container\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.listLoading),expression:\"listLoading\"}],attrs:{\"data\":_vm.workForm,\"max-height\":\"580\",\"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'),\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"property\":\"receiveName\",\"align\":\"left\",\"label\":_vm.$t('work.recipient')}}),_c('el-table-column',{attrs:{\"property\":\"orderType\",\"align\":\"left\",\"label\":_vm.$t('work.taskType')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.orderType === '1')?_c('span',{staticClass:\"use\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"work.install\")))]):(scope.row.orderType === '3')?_c('span',{staticClass:\"use\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"work.dismantle\"))+\" \")]):(scope.row.orderType === '4')?_c('span',{staticClass:\"use\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"work.faults\"))+\" \")]):(scope.row.orderType.split(',')[0] === '5')?_c('span',{staticClass:\"otherUse\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"work.other\") + \"(\" + scope.row.orderType.split(\",\")[1])+\") \")]):_c('span',{staticClass:\"use\"},[_vm._v(\" \"+_vm._s(scope.row.orderType)+\" \")])]}}])}),_c('el-table-column',{attrs:{\"property\":\"startTime\",\"align\":\"left\",\"label\":_vm.$t('startTime')}}),_c('el-table-column',{attrs:{\"property\":\"deadline\",\"align\":\"left\",\"label\":_vm.$t('endTime')}}),_c('el-table-column',{attrs:{\"property\":\"finishTime\",\"align\":\"left\",\"label\":_vm.$t('completionTime')},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:{\"property\":\"remark\",\"align\":\"left\",\"label\":_vm.$t('work.remark'),\"show-overflow-tooltip\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.remark !== null)?_c('span',[_vm._v(_vm._s(scope.row.remark))]):_vm._e(),(!scope.row.remark === null)?_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\":\"180\",\"align\":\"left\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',{staticClass:\"btnCancel\",staticStyle:{\"width\":\"58px\",\"height\":\"24px\"},on:{\"click\":function($event){return _vm.handleSee(scope.row)}}},[_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.total > 0),expression:\"total > 0\"}],attrs:{\"total\":_vm.total,\"page\":_vm.getWorkList.curPage,\"limit\":_vm.getWorkList.pageSize},on:{\"update:page\":function($event){return _vm.$set(_vm.getWorkList, \"curPage\", $event)},\"update:limit\":function($event){return _vm.$set(_vm.getWorkList, \"pageSize\", $event)},\"pagination\":_vm.workList}})],1),_c('el-dialog',{staticStyle:{\"height\":\"800px\"},attrs:{\"title\":_vm.$t('work.see'),\"visible\":_vm.seeDialog,\"width\":\"900px\"},on:{\"update:visible\":function($event){_vm.seeDialog=$event}}},[_c('son-equipment')],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"app-container\">\r\n <div class=\"decorate\"></div>\r\n <div class=\"filter-container\">\r\n <slot />\r\n <el-input\r\n v-model=\"getWorkList.search\"\r\n :placeholder=\"$t('work.taskName')\"\r\n style=\"width: 150px\"\r\n class=\"filter-item\"\r\n @keyup.enter.native=\"handleFilter\"\r\n />\r\n <el-select\r\n v-model=\"getWorkList.deviceType\"\r\n :placeholder=\"$t('device.typeName')\"\r\n style=\"width: 150px\"\r\n class=\"filter-item\"\r\n @change=\"handleFilter()\"\r\n clearable\r\n >\r\n <el-option\r\n v-for=\"item in deviceType\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n ></el-option>\r\n </el-select>\r\n <el-select\r\n v-model=\"getWorkList.status\"\r\n :placeholder=\"$t('work.status')\"\r\n style=\"width: 150px\"\r\n class=\"filter-item\"\r\n @change=\"handleFilter()\"\r\n >\r\n <el-option\r\n v-for=\"item in status\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n ></el-option>\r\n </el-select>\r\n <el-select\r\n v-model=\"getWorkList.orderType\"\r\n :placeholder=\"$t('work.taskType')\"\r\n style=\"width: 150px\"\r\n class=\"filter-item\"\r\n @change=\"handleFilter()\"\r\n >\r\n <el-option\r\n v-for=\"item in options\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n ></el-option>\r\n </el-select>\r\n <el-date-picker\r\n v-model=\"arrayTime\"\r\n class=\"filter-item\"\r\n type=\"datetimerange\"\r\n :start-placeholder=\"$t('startTime')\"\r\n :end-placeholder=\"$t('endTime')\"\r\n value-format=\"yyyy-MM-dd HH:mm:ss\"\r\n :default-time=\"['12:00:00']\"\r\n :editable=\"false\"\r\n ></el-date-picker>\r\n <span class=\"btn-item\" @click=\"handleFilter\">\r\n <i class=\"iconfont icon-sousuo\"></i>{{ $t(\"btn.search\") }}\r\n </span>\r\n <span class=\"btn-item\" @click=\"wipeCondition\">\r\n <i class=\"el-icon-refresh-left\"></i>{{ $t(\"btn.resetting\") }}\r\n </span>\r\n </div>\r\n <div class=\"table-container\">\r\n <el-table\r\n v-loading=\"listLoading\"\r\n :data=\"workForm\"\r\n max-height=\"580\"\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 show-overflow-tooltip\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=\"orderType\"\r\n align=\"left\"\r\n :label=\"$t('work.taskType')\"\r\n >\r\n <template slot-scope=\"scope\">\r\n <span v-if=\"scope.row.orderType === '1'\" class=\"use\">\r\n {{ $t(\"work.install\") }}</span\r\n >\r\n <span v-else-if=\"scope.row.orderType === '3'\" class=\"use\">\r\n {{ $t(\"work.dismantle\") }}\r\n </span>\r\n <span v-else-if=\"scope.row.orderType === '4'\" class=\"use\">\r\n {{ $t(\"work.faults\") }}\r\n </span>\r\n <span\r\n v-else-if=\"scope.row.orderType.split(',')[0] === '5'\"\r\n class=\"otherUse\"\r\n >\r\n {{ $t(\"work.other\") + \"(\" + scope.row.orderType.split(\",\")[1] }})\r\n </span>\r\n <span v-else class=\"use\"> {{ scope.row.orderType }} </span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n property=\"startTime\"\r\n align=\"left\"\r\n :label=\"$t('startTime')\"\r\n />\r\n <el-table-column\r\n property=\"deadline\"\r\n align=\"left\"\r\n :label=\"$t('endTime')\"\r\n />\r\n <el-table-column\r\n property=\"finishTime\"\r\n align=\"left\"\r\n :label=\"$t('completionTime')\"\r\n >\r\n <template slot-scope=\"scope\">\r\n <span v-if=\"scope.row.finishTime\">{{ scope.row.finishTime }}</span>\r\n <span v-if=\"!scope.row.finishTime\">- -</span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n property=\"remark\"\r\n align=\"left\"\r\n :label=\"$t('work.remark')\"\r\n show-overflow-tooltip\r\n >\r\n <template slot-scope=\"scope\">\r\n <span v-if=\"scope.row.remark !== null\">{{ scope.row.remark }}</span>\r\n <span v-if=\"!scope.row.remark === null\">- -</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 :label=\"$t('table.operate')\" width=\"180\" align=\"left\">\r\n <template slot-scope=\"scope\">\r\n <span\r\n class=\"btnCancel\"\r\n @click=\"handleSee(scope.row)\"\r\n style=\"width: 58px; height: 24px\"\r\n >\r\n <i class=\"iconfont icon-kejian\" /> {{ $t(\"work.see\") }}\r\n </span>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <pagination\r\n v-show=\"total > 0\"\r\n :total=\"total\"\r\n :page.sync=\"getWorkList.curPage\"\r\n :limit.sync=\"getWorkList.pageSize\"\r\n @pagination=\"workList\"\r\n />\r\n </div>\r\n\r\n <!-- 查看任务下的设备 -->\r\n <el-dialog\r\n :title=\"$t('work.see')\"\r\n :visible.sync=\"seeDialog\"\r\n width=\"900px\"\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<style></style>\r\n<script>\r\n// import { getDeptSubByDeptId } from '@/api/strategy'\r\nimport { getTypeList } from \"@/api/deviceType\"\r\nimport { getTaskList, getTask } from \"@/api/work\" // getUser\r\nimport Pagination from \"@/components/Pagination\"\r\nimport sonEquipment from \"@/components/historicalTrack/sonEquipment\"\r\nimport { workStatus } from \"@/utils/time\"\r\nimport permission from \"@/directive/permission/index.js\" // 权限判断指令\r\n\r\nexport default {\r\n components: { Pagination, sonEquipment },\r\n directives: { permission },\r\n data() {\r\n return {\r\n total: 0,\r\n seeDialog: false,\r\n status: [\r\n {\r\n value: -1,\r\n label: this.$t(\"work.unpublished\")\r\n },\r\n {\r\n value: 0,\r\n label: this.$t(\"work.notStarted\")\r\n },\r\n {\r\n value: 1,\r\n label: this.$t(\"work.inProgress\")\r\n },\r\n {\r\n value: 2,\r\n label: this.$t(\"work.suspend\")\r\n },\r\n {\r\n value: 3,\r\n label: this.$t(\"work.passed\")\r\n },\r\n {\r\n value: 4,\r\n label: this.$t(\"work.failed\")\r\n }\r\n ],\r\n list: null,\r\n listLoading: true,\r\n downloadLoading: false,\r\n workForm: null,\r\n getWorkList: {\r\n receiveName: localStorage.getItem(\"sitename2\"),\r\n curPage: 1,\r\n pageSize: 10,\r\n startTime: null,\r\n deadline: null,\r\n status: null,\r\n taskType: \"工单\",\r\n parentId: null,\r\n statusNo: -1,\r\n deviceType: null,\r\n search: null\r\n },\r\n deviceType: [],\r\n options: [\r\n {\r\n value: \"1\",\r\n label: this.$t(\"work.install\")\r\n },\r\n {\r\n value: \"3\",\r\n label: this.$t(\"work.dismantle\")\r\n },\r\n {\r\n value: \"4\",\r\n label: this.$t(\"work.faults\")\r\n },\r\n {\r\n value: \"5\",\r\n label: this.$t(\"work.other\")\r\n }\r\n ],\r\n arrayTime: [],\r\n pickerOptions0: {\r\n disabledDate: (time) => {\r\n return time.getTime() > Date.now() - 8.64e6\r\n }\r\n }\r\n }\r\n },\r\n created() {\r\n this.workList()\r\n getTypeList().then((res) => {\r\n this.deviceType = res.data.list.map((res) => {\r\n return {\r\n value: res.deviceTypeId,\r\n label: res.deviceTypeName\r\n }\r\n })\r\n console.log(this.deviceTypelist)\r\n })\r\n },\r\n watch: {\r\n arrayTime(val) {\r\n if (val) {\r\n this.getWorkList.startTime = val && val[0]\r\n this.getWorkList.deadline = val && val[1]\r\n } else {\r\n this.getWorkList.startTime = null\r\n this.getWorkList.deadline = null\r\n }\r\n },\r\n seeDialog(val) {\r\n if (val === true) {\r\n this.$store.state.work.isSee = \"seeEquipment\"\r\n } else if (val === false) {\r\n this.$store.state.work.isSee = \"\"\r\n }\r\n }\r\n },\r\n methods: {\r\n handleSee(row) {\r\n this.seeDialog = true\r\n getTask({ taskId: row.taskId }).then((res) => {\r\n this.$store.state.work.deviceAllList = res.data.deviceList\r\n })\r\n },\r\n workList() {\r\n this.listLoading = true\r\n getTaskList(this.getWorkList).then((res) => {\r\n this.listLoading = false\r\n this.workForm = res.data.list\r\n this.total = res.data.totalRow\r\n this.workForm = this.workForm.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 console.log(this.workForm)\r\n })\r\n },\r\n handleFilter() {\r\n // 搜索\r\n this.getWorkList.curPage = 1\r\n this.workList()\r\n },\r\n wipeCondition() {\r\n for (let key in this.getWorkList) {\r\n if (\r\n key !== \"curPage\" &&\r\n key !== \"pageSize\" &&\r\n key !== \"receiveName\" &&\r\n key !== \"taskType\" &&\r\n key !== \"statusNo\"\r\n ) {\r\n this.getWorkList[key] = null\r\n }\r\n }\r\n this.arrayTime = []\r\n this.getWorkList.curPage = 1\r\n this.workList()\r\n },\r\n headClassName() {\r\n return \"headName\"\r\n },\r\n rowClassName({ row, rowIndex }) {\r\n console.log(row, rowIndex)\r\n if ((rowIndex + 1) % 2 !== 0) {\r\n return \"cellNameOdd\"\r\n } else {\r\n return \"cellNameEven\"\r\n }\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.edit-input {\r\n padding-right: 100px;\r\n}\r\n.selectTop {\r\n margin-left: 120px;\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!./receivingWork.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!./receivingWork.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./receivingWork.vue?vue&type=template&id=6a8de856&scoped=true&\"\nimport script from \"./receivingWork.vue?vue&type=script&lang=js&\"\nexport * from \"./receivingWork.vue?vue&type=script&lang=js&\"\nimport style1 from \"./receivingWork.vue?vue&type=style&index=1&id=6a8de856&scoped=true&lang=css&\"\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 \"6a8de856\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./receivingWork.vue?vue&type=style&index=1&id=6a8de856&scoped=true&lang=css&\"","import request from '@/utils/request'\r\n// import qs from 'qs'\r\n/*\r\n 管理台-设备类型 权限操作api\r\n*/\r\n\r\n// 根据typeId查询设备类型信息\r\nexport function getTypeById(data) {\r\n return request({\r\n url: 'device-service/type/getTypeById',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 根据筛选项查询设备类型列表\r\nexport function getTypeList(data) {\r\n return request({\r\n url: 'device-service/type/getTypeList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 录入设备类型信息\r\nexport function addType(data) {\r\n return request({\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n url: 'device-service/type/addType',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 删除设备类型信息\r\nexport function deleteType(data) {\r\n const delData = {\r\n typeById: data\r\n }\r\n return request({\r\n url: 'device-service/type/deleteType',\r\n method: 'delete',\r\n params: delData\r\n })\r\n}\r\n\r\n// 批量删除设备类型信息\r\nexport function deleteTypeList(data) {\r\n const delData = {\r\n typeIds: data\r\n }\r\n return request({\r\n url: 'device-service/type/deleteTypeList',\r\n method: 'delete',\r\n params: delData\r\n })\r\n}\r\n\r\n// 修改设备类型信息\r\nexport function updateType(data) {\r\n return request({\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n url: 'device-service/type/updateType',\r\n method: 'put',\r\n data\r\n })\r\n}\r\n"],"sourceRoot":""} |