EMS2.0-Documents/7.部署文档/Window安装/项目前端文件/IEMS/js/chunk-4cc169e3.689ed2c4.js.map

1 line
47 KiB
Plaintext

{"version":3,"sources":["webpack:///./src/api/department.js","webpack:///./src/components/createWork/createWork.vue?a0c6","webpack:///./src/api/alarm.js","webpack:///./src/components/createWork/createWork.vue?01de","webpack:///src/components/createWork/createWork.vue","webpack:///./src/components/createWork/createWork.vue?6d24","webpack:///./src/components/createWork/createWork.vue?7048","webpack:///./src/api/user.js"],"names":["getDepartmentList","data","request","url","method","params","getDeptSubByDeptId","editSubmitApi","formData","qs","stringify","addSubmitApi","delSubmitApi","headers","getDeptAlarmDetails","clearAlarmStatus","alarmId","getAlarmList","getTipAlarmList","updateAlarmReadStatus","getDeviceLogList","getAlarmLevel","getAlarmStatus","getAlarmTypeLevel","getAlarmTypeStatus","render","_vm","this","_h","$createElement","_c","_self","attrs","textMap","dialogStatus","$store","state","work","addDialog","handleClose","on","$event","$set","staticStyle","directives","name","rawName","value","active","expression","ref","form","rules","$t","model","callback","$$v","flag","changeOrder","_l","item","key","label","orderType","otherRemark","index","userName","deptList","checkStrictly","emitPath","pickerOptions0","arrayTime","_e","handleClick","activeName","deviceList","changeNmae","seletedList","staticClass","slot","next","_v","_s","closed","createData","updateData","staticRenderFns","props","validateOrderType","validateTime","update","create","createStatus","options","userList","telephone","required","message","trigger","taskName","validator","startTime","checkName","receiveName","deptId","disabledDate","time","getTime","Date","now","deviceCategory","deviceCategoryList","alarmList","computed","get","set","val","watch","deadline","selectDevice","otherRemarkParent","arrayTimeParent","$nextTick","mounted","getUser","getDeptInfo","methods","Object","assign","getUserList","$refs","validate","valid","deviceCode","deviceId","deviceType","deviceName","latitude","longitude","areaId","disabled","alarmStatus","getDeviceList","console","tab","length","map","filter","resetFields","insertOrderTask","then","title","type","duration","catch","getSelectedList","i","res","addTask","isDialog","updateOrderTask","getdeptIdList","subBeanList","obj","list","done","$confirm","component","getUserByUserName","delSubmitUserApi","delData","userIds"],"mappings":"kHAA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LC,OAAQ,MACRC,OAAQqK","file":"js/chunk-4cc169e3.689ed2c4.js","sourcesContent":["import request from '@/utils/request'\r\nimport qs from 'qs'\r\n/*\r\n 系统管理-区域管理 权限操作api\r\n*/\r\n\r\n// 查询区域列表树\r\nexport function getAreaTreeList(data) {\r\n return request({\r\n url: 'user-service/area/getAreaTreeList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n\r\n// 查询所有区域树\r\nexport function getDepartmentList(data) {\r\n return request({\r\n url: 'user-service/dept/getDeptTreeList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 查询本级节点ID-直系子级节点\r\nexport function getDeptSubByDeptId(data) {\r\n return request({\r\n url: 'user-service/dept/getDeptSubByDeptId',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 查询区域列表\r\nexport function getDeptTreeByDeptId(data) {\r\n return request({\r\n url: 'user-service/dept/getDeptTreeByDeptId',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n// 修改\r\nexport function editSubmitApi(formData) {\r\n const data = qs.stringify(formData)\r\n return request({\r\n url: 'user-service/dept/updateDept',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 新增\r\nexport function addSubmitApi(formData) {\r\n const data = qs.stringify(formData)\r\n return request({\r\n url: 'user-service/dept/saveDept',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 删除\r\nexport function delSubmitApi(formData) {\r\n return request({\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n url: 'user-service/dept/removeDept',\r\n method: 'get',\r\n\r\n params: formData\r\n })\r\n}\r\n","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!./createWork.vue?vue&type=style&index=0&id=f9cc66b2&scoped=true&lang=css&\"","import request from \"@/utils/request\";\r\n\r\n\r\n// 根据告警ID获取告警历史记录/告警工单信息\r\nexport function getDeptAlarmDetails(data) {\r\n return request({\r\n url: \"trajectory-service/deptAlarm/getTaskByAlarmId\",\r\n method: \"get\",\r\n params: data,\r\n });\r\n}\r\n// 清除告警状态\r\nexport function clearAlarmStatus(alarmId) {\r\n return request({\r\n url: \"alarm-service/alarm/clearAlarmStatus?alarmId=\" + alarmId,\r\n method: \"post\",\r\n });\r\n}\r\n\r\n\r\n// 获取告警设备类型列表\r\nexport function getAlarmDeviceTypeList() {\r\n return request({\r\n url: \"alarm-service/alarm/getAlarmDeviceTypeList\",\r\n method: \"get\",\r\n });\r\n}\r\n\r\n\r\n// 获取告警列表\r\nexport function getAlarmList(data) {\r\n return request({\r\n url: \"alarm-service/alarm/getAlarmList\",\r\n method: \"get\",\r\n params: data,\r\n });\r\n}\r\n\r\n// 获取提示告警列表\r\nexport function getTipAlarmList(data) {\r\n return request({\r\n url: \"alarm-service/alarm/getTipAlarmList\",\r\n method: \"get\",\r\n params: data,\r\n });\r\n}\r\n\r\n\r\n// 更新告警阅读状态\r\nexport function updateAlarmReadStatus(data) {\r\n return request({\r\n url: \"alarm-service/alarm/updateAlarmReadStatus\",\r\n method: \"post\",\r\n params: data,\r\n });\r\n}\r\n\r\n// 根据筛选条件查询设备操作信息\r\nexport function getDeviceLogList(data) {\r\n return request({\r\n url: 'device-service/deviceLog/getDeviceLogList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n\r\n\r\n \r\n// 查询故障等级状态-告警等级占比\r\nexport function getAlarmLevel(data) {\r\n return request({\r\n url: 'alarm-service/statistics/getAlarmLevel',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n \r\n// 查询故障等级设备类型状态-告警等级分布\r\nexport function getAlarmLevelType(data) {\r\n return request({\r\n url: 'alarm-service/statistics/getAlarmLevelType',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n \r\n\r\n// 查询故障状态-告警状态占比\r\nexport function getAlarmStatus(data) {\r\n return request({\r\n url: 'alarm-service/statistics/getAlarmStatus',\r\n method: 'get',\r\n params: data\r\n })\r\n} \r\n\r\n\r\n// 查询故障设备类型等级状态-设备告警等级分布\r\nexport function getAlarmTypeLevel(data) {\r\n return request({\r\n url: 'alarm-service/statistics/getAlarmTypeLevel',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n\r\n// 查询故障设备类型状态-告警状态分布\r\nexport function getAlarmTypeStatus(data) {\r\n return request({\r\n url: 'alarm-service/statistics/getAlarmTypeStatus',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-dialog',{attrs:{\"close-on-click-modal\":false,\"title\":_vm.textMap[_vm.dialogStatus],\"visible\":_vm.$store.state.work.addDialog,\"before-close\":_vm.handleClose},on:{\"update:visible\":function($event){return _vm.$set(_vm.$store.state.work, \"addDialog\", $event)}}},[_c('el-scrollbar',{staticStyle:{\"height\":\"100%\",\"padding-bottom\":\"8px\"},attrs:{\"vertical\":true}},[_c('el-form',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.active === 0),expression:\"active === 0\"}],ref:\"form\",attrs:{\"status-icon\":\"\",\"model\":_vm.form,\"rules\":_vm.rules,\"label-width\":\"135px\",\"inline\":\"\"}},[_c('el-form-item',{attrs:{\"label\":_vm.$t('work.taskName'),\"prop\":\"taskName\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('work.taskName'),\"maxlength\":\"50\"},model:{value:(_vm.form.taskName),callback:function ($$v) {_vm.$set(_vm.form, \"taskName\", $$v)},expression:\"form.taskName\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('work.taskType'),\"prop\":\"orderType\"}},[_c('el-select',{staticStyle:{\"width\":\"150px\"},attrs:{\"clearable\":\"\",\"disabled\":_vm.flag},on:{\"change\":_vm.changeOrder},model:{value:(_vm.form.orderType),callback:function ($$v) {_vm.$set(_vm.form, \"orderType\", $$v)},expression:\"form.orderType\"}},_vm._l((_vm.options),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1),_c('el-input',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.form.orderType == '5'),expression:\"form.orderType == '5'\"}],staticStyle:{\"width\":\"100px\"},attrs:{\"type\":\"text\",\"maxlength\":\"20\",\"prop\":\"otherRemark\"},model:{value:(_vm.otherRemark),callback:function ($$v) {_vm.otherRemark=$$v},expression:\"otherRemark\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('work.recipient'),\"prop\":\"receiveName\"}},[_c('el-select',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('work.recipient'),\"clearable\":\"\"},model:{value:(_vm.form.receiveName),callback:function ($$v) {_vm.$set(_vm.form, \"receiveName\", $$v)},expression:\"form.receiveName\"}},_vm._l((_vm.userList),function(item,index){return _c('el-option',{key:index,attrs:{\"value\":item.userName}})}),1)],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('work.accepted'),\"prop\":\"checkName\"}},[_c('el-select',{attrs:{\"clearable\":\"\"},model:{value:(_vm.form.checkName),callback:function ($$v) {_vm.$set(_vm.form, \"checkName\", $$v)},expression:\"form.checkName\"}},_vm._l((_vm.userList),function(item,index){return _c('el-option',{key:index,attrs:{\"value\":item.userName}})}),1)],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('device.phone'),\"prop\":\"telephone\"}},[_c('el-input',{attrs:{\"maxlength\":\"11\",\"placeholder\":_vm.$t('pEnter') + _vm.$t('work.recipient') + ' ' + _vm.$t('device.phone')},model:{value:(_vm.form.telephone),callback:function ($$v) {_vm.$set(_vm.form, \"telephone\", $$v)},expression:\"form.telephone\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('listQuery.deptId'),\"prop\":\"deptId\"}},[_c('el-cascader',{attrs:{\"show-all-levels\":false,\"options\":_vm.deptList,\"props\":{ checkStrictly: true, emitPath: false },\"clearable\":\"\"},model:{value:(_vm.form.deptId),callback:function ($$v) {_vm.$set(_vm.form, \"deptId\", $$v)},expression:\"form.deptId\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('work.time'),\"prop\":\"startTime\"}},[_c('el-date-picker',{attrs:{\"type\":\"datetimerange\",\"start-placeholder\":_vm.$t('startTime'),\"end-placeholder\":_vm.$t('endTime'),\"picker-options\":_vm.pickerOptions0,\"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\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('work.remark'),\"prop\":\"remark\"}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"placeholder\":_vm.$t('pEnter') + _vm.$t('work.remark'),\"maxlength\":\"100\"},model:{value:(_vm.form.remark),callback:function ($$v) {_vm.$set(_vm.form, \"remark\", $$v)},expression:\"form.remark\"}})],1)],1),_c('el-form',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.active === 1),expression:\"active === 1\"}],attrs:{\"label-width\":\"125px\",\"inline\":\"\"}},[(_vm.form.orderType == 4 && !_vm.flag)?_c('el-tabs',{on:{\"tab-click\":_vm.handleClick},model:{value:(_vm.activeName),callback:function ($$v) {_vm.activeName=$$v},expression:\"activeName\"}},_vm._l((_vm.deviceCategoryList),function(item){return _c('el-tab-pane',{key:item.value,attrs:{\"label\":item.label,\"name\":item.value}})}),1):_vm._e(),_c('el-transfer',{ref:\"transfers\",staticStyle:{\"width\":\"800px\",\"margin\":\"0px auto\"},attrs:{\"filterable\":\"\",\"filter-placeholder\":_vm.$t('pEnter') + _vm.$t('device.deviceName'),\"titles\":[_vm.$t('table.optional'), _vm.$t('table.selected')],\"data\":_vm.deviceList,\"target-order\":\"unshift\"},on:{\"change\":_vm.changeNmae},model:{value:(_vm.seletedList),callback:function ($$v) {_vm.seletedList=$$v},expression:\"seletedList\"}})],1)],1),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.active === 0),expression:\"active === 0\"}],staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('span',{staticClass:\"btn-item long\",on:{\"click\":_vm.next}},[_vm._v(\" \"+_vm._s(_vm.$t('work.next'))+\" \")])]),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.active === 1),expression:\"active === 1\"}],staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('span',{staticClass:\"btn-item long\",on:{\"click\":function($event){_vm.active = 0}}},[_vm._v(_vm._s(_vm.$t('work.previous'))+\" \")]),_c('span',{staticClass:\"btn-item\",on:{\"click\":_vm.closed}},[_vm._v(_vm._s(_vm.$t('btn.cancel')))]),_c('span',{staticClass:\"btn-item\",on:{\"click\":function($event){_vm.dialogStatus == 'create' ? _vm.createData() : _vm.updateData()}}},[_vm._v(_vm._s(_vm.$t('btn.save')))])])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <el-dialog\r\n :close-on-click-modal=\"false\"\r\n :title=\"textMap[dialogStatus]\"\r\n :visible.sync=\"$store.state.work.addDialog\"\r\n :before-close=\"handleClose\"\r\n >\r\n <el-scrollbar style=\"height: 100%; padding-bottom: 8px\" :vertical=\"true\">\r\n <el-form\r\n v-show=\"active === 0\"\r\n ref=\"form\"\r\n status-icon\r\n :model=\"form\"\r\n :rules=\"rules\"\r\n label-width=\"135px\"\r\n inline\r\n >\r\n <el-form-item :label=\"$t('work.taskName')\" prop=\"taskName\">\r\n <el-input\r\n v-model=\"form.taskName\"\r\n :placeholder=\"$t('pEnter') + $t('work.taskName')\"\r\n maxlength=\"50\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('work.taskType')\" prop=\"orderType\">\r\n <el-select\r\n v-model=\"form.orderType\"\r\n @change=\"changeOrder\"\r\n clearable\r\n :disabled=\"flag\"\r\n style=\"width: 150px\"\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 />\r\n </el-select>\r\n <el-input\r\n type=\"text\"\r\n v-model=\"otherRemark\"\r\n style=\"width: 100px\"\r\n v-show=\"form.orderType == '5'\"\r\n maxlength=\"20\"\r\n prop=\"otherRemark\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('work.recipient')\" prop=\"receiveName\">\r\n <el-select\r\n v-model=\"form.receiveName\"\r\n :placeholder=\"$t('pEnter') + $t('work.recipient')\"\r\n clearable\r\n >\r\n <el-option\r\n v-for=\"(item, index) in userList\"\r\n :key=\"index\"\r\n :value=\"item.userName\"\r\n />\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item :label=\"$t('work.accepted')\" prop=\"checkName\">\r\n <el-select v-model=\"form.checkName\" clearable>\r\n <el-option\r\n v-for=\"(item, index) in userList\"\r\n :key=\"index\"\r\n :value=\"item.userName\"\r\n />\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item :label=\"$t('device.phone')\" prop=\"telephone\">\r\n <el-input\r\n v-model=\"form.telephone\"\r\n maxlength=\"11\"\r\n :placeholder=\"\r\n $t('pEnter') + $t('work.recipient') + ' ' + $t('device.phone')\r\n \"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('listQuery.deptId')\" prop=\"deptId\">\r\n <el-cascader\r\n v-model=\"form.deptId\"\r\n :show-all-levels=\"false\"\r\n :options=\"deptList\"\r\n :props=\"{ checkStrictly: true, emitPath: false }\"\r\n clearable\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('work.time')\" prop=\"startTime\">\r\n <el-date-picker\r\n v-model=\"arrayTime\"\r\n type=\"datetimerange\"\r\n :start-placeholder=\"$t('startTime')\"\r\n :end-placeholder=\"$t('endTime')\"\r\n :picker-options=\"pickerOptions0\"\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 </el-form-item>\r\n\r\n <el-form-item :label=\"$t('work.remark')\" prop=\"remark\">\r\n <el-input\r\n v-model=\"form.remark\"\r\n type=\"textarea\"\r\n :placeholder=\"$t('pEnter') + $t('work.remark')\"\r\n maxlength=\"100\"\r\n />\r\n </el-form-item>\r\n </el-form>\r\n\r\n <el-form v-show=\"active === 1\" label-width=\"125px\" inline>\r\n <el-tabs\r\n v-model=\"activeName\"\r\n @tab-click=\"handleClick\"\r\n v-if=\"form.orderType == 4 && !flag\"\r\n >\r\n <el-tab-pane\r\n :label=\"item.label\"\r\n v-for=\"item in deviceCategoryList\"\r\n :name=\"item.value\"\r\n :key=\"item.value\"\r\n >\r\n </el-tab-pane>\r\n </el-tabs>\r\n <el-transfer\r\n filterable\r\n ref=\"transfers\"\r\n :filter-placeholder=\"$t('pEnter') + $t('device.deviceName')\"\r\n :titles=\"[$t('table.optional'), $t('table.selected')]\"\r\n v-model=\"seletedList\"\r\n :data=\"deviceList\"\r\n style=\"width: 800px; margin: 0px auto\"\r\n target-order=\"unshift\"\r\n @change=\"changeNmae\"\r\n />\r\n </el-form>\r\n </el-scrollbar>\r\n <span v-show=\"active === 0\" slot=\"footer\" class=\"dialog-footer\">\r\n <span class=\"btn-item long\" @click=\"next\"> {{ $t('work.next') }} </span>\r\n </span>\r\n <span v-show=\"active === 1\" slot=\"footer\" class=\"dialog-footer\">\r\n <span class=\"btn-item long\" @click=\"active = 0\"\r\n >{{ $t('work.previous') }}\r\n </span>\r\n <span class=\"btn-item\" @click=\"closed\">{{ $t('btn.cancel') }}</span>\r\n <span\r\n class=\"btn-item\"\r\n @click=\"dialogStatus == 'create' ? createData() : updateData()\"\r\n >{{ $t('btn.save') }}</span\r\n >\r\n </span>\r\n </el-dialog>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { getUserList } from '@/api/user'\r\nimport { getAlarmList } from '@/api/alarm'\r\nimport { getDeptSubByDeptId } from '@/api/department'\r\nimport { insertOrderTask, updateOrderTask, getDeviceList } from '@/api/work'\r\nexport default {\r\n props: ['dialogStatus', 'otherRemarkParent', 'arrayTimeParent', 'flag'],\r\n data() {\r\n var validateOrderType = (rule, value, callback) => {\r\n if (value == '5' && this.otherRemark == '') {\r\n callback(new Error(this.$t('pEnter') + this.$t('work.time')))\r\n } else if (value == '' || value == null) {\r\n callback(new Error(this.$t('pEnter') + this.$t('work.taskType')))\r\n } else {\r\n callback()\r\n }\r\n }\r\n var validateTime = (rule, value, callback) => {\r\n if (this.arrayTime.length <= 0) {\r\n callback(new Error(this.$t('pEnter') + this.$t('work.time')))\r\n } else {\r\n callback()\r\n }\r\n }\r\n return {\r\n textMap: {\r\n update: this.$t('table.update'),\r\n create: this.$t('table.create')\r\n },\r\n createStatus: false,\r\n active: 0,\r\n arrayTime: [],\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 userList: [],\r\n deptList: [],\r\n otherRemark: '',\r\n rules: {\r\n telephone: [\r\n {\r\n required: true,\r\n message: this.$t('pEnter') + this.$t('device.phone'),\r\n trigger: 'blur'\r\n }\r\n ],\r\n taskName: [\r\n {\r\n required: true,\r\n message: this.$t('pEnter') + this.$t('work.taskName'),\r\n trigger: 'blur'\r\n }\r\n ],\r\n orderType: [\r\n { required: true, validator: validateOrderType, trigger: 'change' }\r\n ],\r\n startTime: [\r\n { required: true, validator: validateTime, trigger: 'change' }\r\n ],\r\n checkName: [\r\n {\r\n required: true,\r\n message: this.$t('pEnter') + this.$t('work.accepted'),\r\n trigger: 'change'\r\n }\r\n ],\r\n receiveName: [\r\n {\r\n required: true,\r\n message: this.$t('pEnter') + this.$t('work.recipient'),\r\n trigger: 'change'\r\n }\r\n ],\r\n deptId: [\r\n {\r\n required: true,\r\n message: this.$t('pEnter') + this.$t('listQuery.deptId'),\r\n trigger: 'change'\r\n }\r\n ]\r\n },\r\n pickerOptions0: {\r\n disabledDate: (time) => {\r\n return time.getTime() < Date.now() - 8.64e7\r\n }\r\n },\r\n deviceCategory: null,\r\n deviceCategoryList: [\r\n {\r\n value: 'normal',\r\n label: this.$t('work.normal')\r\n },\r\n {\r\n value: 'fault',\r\n label: this.$t('work.fault')\r\n }\r\n ],\r\n seletedList: [],\r\n deviceList: [],\r\n alarmList: [],\r\n activeName: 'fault'\r\n }\r\n },\r\n computed: {\r\n form: {\r\n get() {\r\n return this.$store.state.work.form\r\n },\r\n set(val) {\r\n this.$store.state.work.form = val\r\n }\r\n },\r\n addDialog: {\r\n get() {\r\n return this.$store.state.work.addDialog\r\n },\r\n set(val) {\r\n this.$store.state.work.addDialog = val\r\n }\r\n }\r\n },\r\n watch: {\r\n arrayTime(val) {\r\n if (val) {\r\n this.form.startTime = val && val[0]\r\n this.form.deadline = val && val[1]\r\n }\r\n },\r\n addDialog(val) {\r\n this.$store.state.work.selectDevice = []\r\n if (val === false) {\r\n this.$store.state.work.form.deviceList = []\r\n if (this.dialogStatus == 'create') {\r\n this.$store.state.work.form = {}\r\n }\r\n }\r\n if (val == true) {\r\n this.active = 0\r\n if (this.dialogStatus == 'update') {\r\n this.otherRemark = this.otherRemarkParent\r\n this.arrayTime = this.arrayTimeParent\r\n }\r\n this.$nextTick(() => {\r\n this.$refs['form'].clearValidate()\r\n })\r\n }\r\n }\r\n },\r\n mounted() {\r\n this.getUser()\r\n this.getDeptInfo()\r\n },\r\n\r\n methods: {\r\n changeOrder() {\r\n this.form = Object.assign({}, this.form)\r\n },\r\n //获取用户\r\n getUser() {\r\n getUserList().then((res) => {\r\n this.userList = res.data.list\r\n })\r\n },\r\n next() {\r\n //填选了必填项才能进入下一步\r\n let deviceList = []\r\n this.$refs.form.validate((valid) => {\r\n if (valid) {\r\n if (this.active++ > 2) {\r\n this.active = 0\r\n }\r\n this.seletedList = []\r\n this.deviceList = this.$store.state.work.deviceAllList.map((e) => {\r\n this.seletedList.push(e.alarmId ? e.alarmId - 0 : e.deviceCode)\r\n return {\r\n label: e.deviceName,\r\n key: e.alarmId ? e.alarmId - 0 : e.deviceCode,\r\n alarmId: e.alarmId,\r\n deviceCode: e.deviceCode,\r\n deviceId: e.deviceId,\r\n deviceType: e.deviceType,\r\n deviceName: e.deviceName,\r\n latitude: e.latitude,\r\n longitude: e.longitude,\r\n areaId: e.areaId,\r\n disabled: this.flag ? true : false\r\n }\r\n })\r\n if (this.flag) {\r\n return\r\n }\r\n if (this.form.orderType == 4) {\r\n this.activeName = 'fault'\r\n getAlarmList({ alarmStatus: 1 }).then((e) => {\r\n this.alarmList = e.data.list\r\n deviceList = e.data.list.map((e) => {\r\n return {\r\n label: e.deviceName,\r\n key: e.alarmId,\r\n deviceCode: e.deviceCode,\r\n deviceType: e.typeCode,\r\n deviceName: e.deviceName,\r\n alarmId: e.alarmId\r\n }\r\n })\r\n deviceList = deviceList.filter((e) => {\r\n return !this.seletedList.includes(e.key)\r\n })\r\n this.deviceList = [...deviceList, ...this.deviceList]\r\n })\r\n } else {\r\n getDeviceList().then((e) => {\r\n deviceList = e.data.list.map((e) => {\r\n return {\r\n label: e.deviceName,\r\n key: e.deviceCode,\r\n deviceId: e.deviceId,\r\n deviceType: e.deviceType,\r\n deviceName: e.deviceName,\r\n latitude: e.latitude,\r\n longitude: e.longitude,\r\n areaId: e.deptId\r\n }\r\n })\r\n deviceList = deviceList.filter((e) => {\r\n return !this.seletedList.includes(e.key)\r\n })\r\n this.deviceList = [...deviceList, ...this.deviceList]\r\n })\r\n }\r\n }\r\n })\r\n },\r\n changeNmae(val) {\r\n console.log(val)\r\n },\r\n handleClick(tab) {\r\n console.log(tab)\r\n if (this.activeName == 'fault') {\r\n let deviceList = []\r\n if (this.seletedList.length > 0) {\r\n deviceList = this.deviceList.filter((e) => {\r\n return this.seletedList.includes(e.key)\r\n })\r\n }\r\n this.deviceList = this.alarmList.map((e) => {\r\n return {\r\n label: e.deviceName,\r\n key: e.alarmId,\r\n deviceCode: e.deviceCode,\r\n deviceType: e.typeName,\r\n deviceName: e.deviceName,\r\n alarmId: e.alarmId\r\n }\r\n })\r\n this.deviceList = [...this.deviceList, ...deviceList]\r\n } else {\r\n this.getDeviceList()\r\n }\r\n },\r\n getDeviceList() {\r\n let deviceList = []\r\n if (this.seletedList.length > 0) {\r\n this.deviceList = this.deviceList.filter((e) => {\r\n return this.seletedList.includes(e.key)\r\n })\r\n }\r\n getDeviceList().then((e) => {\r\n deviceList = e.data.list.map((e) => {\r\n return {\r\n label: e.deviceName,\r\n key: e.deviceCode,\r\n deviceId: e.deviceId,\r\n deviceType: e.deviceType,\r\n deviceName: e.deviceName,\r\n latitude: e.latitude,\r\n longitude: e.longitude\r\n }\r\n })\r\n\r\n deviceList = deviceList.filter((e) => {\r\n return !this.seletedList.includes(e.key)\r\n })\r\n this.deviceList = [...this.deviceList, ...deviceList]\r\n })\r\n },\r\n closed() {\r\n this.addDialog = false\r\n this.$refs['form'].resetFields()\r\n this.active = 0\r\n },\r\n async createData() {\r\n if (this.createStatus) {\r\n return\r\n }\r\n await this.getSelectedList()\r\n if (this.form.deviceList.length > 0) {\r\n this.createStatus = true\r\n insertOrderTask(this.form)\r\n .then((res) => {\r\n this.addDialog = false\r\n this.createStatus = false\r\n this.$store.state.alarm.workDialog = false\r\n if (res.status === 200) {\r\n this.$notify({\r\n title: this.$t('title.success'),\r\n message: this.$t('title.addSuccess'),\r\n type: 'success',\r\n duration: 3000\r\n })\r\n\r\n this.$parent.getList && this.$parent.getList()\r\n this.$parent.workList && this.$parent.workList()\r\n this.arrayTime = []\r\n }\r\n })\r\n .catch(() => {\r\n this.createStatus = false\r\n })\r\n }\r\n },\r\n async getSelectedList() {\r\n let deviceList = []\r\n deviceList = this.deviceList.filter((e) => {\r\n console.log(this.seletedList.includes(e.key))\r\n return this.seletedList.includes(e.key)\r\n })\r\n console.log(deviceList, this.deviceList, deviceList.length)\r\n for (let i = 0; i < deviceList.length; i++) {\r\n console.log(deviceList[i].alarmId, '----1')\r\n if (deviceList[i].alarmId) {\r\n console.log(deviceList[i].alarmId)\r\n await getDeviceList({\r\n deviceCode: deviceList[i].deviceCode\r\n }).then((res) => {\r\n res.data.list.forEach((e) => {\r\n if (deviceList[i].deviceCode == e.deviceCode) {\r\n deviceList[i].deviceId = e.deviceId\r\n deviceList[i].deviceType = e.deviceType\r\n deviceList[i].deviceName = e.deviceName\r\n deviceList[i].latitude = e.latitude\r\n deviceList[i].longitude = e.longitude\r\n deviceList[i].areaId = e.deptId\r\n }\r\n })\r\n console.log('-----------1------')\r\n })\r\n }\r\n }\r\n this.form.deviceList = deviceList.map((e) => {\r\n return e\r\n })\r\n console.log(this.form.deviceList)\r\n },\r\n addTask() {\r\n this.$store.state.work.isDialog = true\r\n this.form.orderType !== '1' && this.form.orderType !== '3'\r\n ? (this.$store.state.work.changeName = 'alarm')\r\n : (this.$store.state.work.changeName = 'noAlarm')\r\n },\r\n async updateData() {\r\n await this.getSelectedList()\r\n if (this.form.deviceList.length > 0) {\r\n updateOrderTask(this.form).then((res) => {\r\n if (res.status === 200) {\r\n this.addDialog = false\r\n this.$store.state.alarm.workDialog = false\r\n this.$notify({\r\n title: this.$t('title.success'),\r\n message: this.$t('title.updateSuccess'),\r\n type: 'success',\r\n duration: 3000\r\n })\r\n this.$parent.getList && this.$parent.getList()\r\n this.$parent.workList && this.$parent.workList()\r\n this.arrayTime = []\r\n }\r\n })\r\n }\r\n },\r\n\r\n // 数组遍历\r\n getdeptIdList(data) {\r\n if (!data.length) {\r\n data = [data]\r\n }\r\n const list = data.map((res) => {\r\n const obj = {}\r\n if (res.subBeanList) {\r\n obj.children = this.getdeptIdList(res.subBeanList)\r\n obj.label = res.nodeBean.deptName\r\n obj.value = res.nodeBean.deptId\r\n return obj\r\n } else {\r\n obj.label = res.nodeBean.deptName\r\n obj.value = res.nodeBean.deptId\r\n return obj\r\n }\r\n })\r\n return list\r\n },\r\n getDeptInfo() {\r\n // 获取机构列表\r\n getDeptSubByDeptId().then((res) => {\r\n if (res.data) {\r\n this.deptList = this.getdeptIdList(res.data)\r\n }\r\n })\r\n },\r\n handleClose(done) {\r\n this.$confirm(this.$t('work.Confirm'))\r\n .then(() => {\r\n done()\r\n if (this.active === 0) {\r\n this.$refs['form'].clearValidate()\r\n }\r\n this.active = 0\r\n this.arrayTime = []\r\n this.$store.state.work.type = ''\r\n this.$refs['form'].resetFields()\r\n })\r\n .catch(() => {})\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.changeEqControl {\r\n text-align: right;\r\n margin-bottom: 13px;\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!./createWork.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!./createWork.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./createWork.vue?vue&type=template&id=f9cc66b2&scoped=true&\"\nimport script from \"./createWork.vue?vue&type=script&lang=js&\"\nexport * from \"./createWork.vue?vue&type=script&lang=js&\"\nimport style0 from \"./createWork.vue?vue&type=style&index=0&id=f9cc66b2&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 \"f9cc66b2\",\n null\n \n)\n\nexport default component.exports","import request from '@/utils/request'\r\n// import qs from \"qs\";\r\n\r\n/*\r\n 系统管理-用户管理 权限操作api\r\n*/\r\n\r\n\r\n// 查询用户列表\r\nexport function getUserList(data) {\r\n return request({\r\n url: 'user-service/user/getUserList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 根据userName查询用户信息\r\nexport function getUserByUserName(data) {\r\n return request({\r\n url: 'user-service/user/getUserByUserName',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 新增\r\nexport function addSubmitApi(data) {\r\n return request({\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n url: 'user-service/user/saveSysuser',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 修改\r\nexport function editSubmitApi(data) {\r\n return request({\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n url: 'user-service/user/updateSysuser',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 删除\r\nexport function delSubmitUserApi(data) {\r\n const delData = {\r\n userIds: data\r\n }\r\n return request({\r\n url: 'user-service/user/removeSysuser',\r\n method: 'get',\r\n params: delData\r\n })\r\n}\r\n\r\n\r\n// 获取用户操作记录\r\nexport function getOperationRecord(params) {\r\n\r\n return request({\r\n url: 'user-service/log/getLogList',\r\n method: 'get',\r\n params\r\n })\r\n}\r\n\r\n\r\n"],"sourceRoot":""}