1 line
60 KiB
Plaintext
1 line
60 KiB
Plaintext
{"version":3,"sources":["webpack:///./src/components/Pagination/index.vue?31f0","webpack:///./src/components/Pagination/index.vue?8e6f","webpack:///src/components/Pagination/index.vue","webpack:///./src/components/Pagination/index.vue?6c75","webpack:///./src/components/Pagination/index.vue?0d87","webpack:///./src/views/operation/alarm.vue?91e1","webpack:///./src/directive/permission/permission.js","webpack:///./src/directive/permission/index.js","webpack:///./src/utils/validate.js","webpack:///./src/api/work.js","webpack:///./src/views/operation/alarm.vue?7251","webpack:///src/views/operation/alarm.vue","webpack:///./src/views/operation/alarm.vue?bc1b","webpack:///./src/views/operation/alarm.vue","webpack:///./node_modules/core-js/modules/es.json.stringify.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_b","attrs","background","currentPage","pageSize","layout","pageSizes","total","on","$event","handleSizeChange","handleCurrentChange","$attrs","staticRenderFns","name","props","required","type","page","default","limit","hidden","computed","get","set","val","$emit","methods","component","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","validatePhone","rule","callback","test","filterNull","valReplace","replace","switchTimeFormat","time","dateTime","Date","year","getFullYear","month","getMonth","date","getDate","hour","getHours","minute","getMinutes","second","getSeconds","addZero","v","getDeviceList","data","request","url","method","params","insertOrderTask","dataForm","JSON","stringify","headers","updateOrderTask","releaseTask","getTask","getTaskList","getNeedAcceptanceDeviceList","releaseTaskBySubId","qs","stopTaskBySubId","applyAcceptanceTask","acceptanceTask","deleteTask","batchDeleteTask","getTrajectoryList","insertTrajectoryTask","deleteFileByUrl","dismantleList","dismantleInfo","insertInspectionTask","updateInspectionTask","staticStyle","$t","handleFilter","model","listQuery","$$v","$set","expression","_l","item","key","label","nativeOn","indexOf","_k","keyCode","apply","arguments","pickerOptions0","arrayTime","_v","_s","wipeCondition","directives","rawName","list","scopedSlots","_u","fn","scope","_f","row","deviceName","typeName","alarmInfo","getLevel","alarmLevel","uploadTime","alarmStatus","orderStatus","_e","clearAlarmStatus","createWork","seeWork","curPage","getList","workDialog","workForm","status","dialogStatus","components","Pagination","isActive","listLoading","scopes","deviceId","buildId","deviceTypeId","endTime","startTime","alarmFlag","disabledDate","getTime","now","created","watch","filters","validateVal","validatenull","children","$store","work","form","orderType","deviceAllList","deviceTypeName","deviceCode","alarmId","deviceType","taskType","longitude","latitude","areaId","addDialog","getDeptAlarmDetails","alarmIds","getAlarmList","e","updateAlarmReadStatus","alarmIdStr","btnChange","$","global","getBuiltIn","uncurryThis","fails","$stringify","exec","charAt","charCodeAt","numberToString","toString","tester","low","hi","fix","match","offset","string","prev","next","FORCED","target","stat","forced","it","replacer","space","i","l","args","result"],"mappings":"kHAAA,W,6DCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,wBAAwB,CAACF,EAAG,gBAAgBJ,EAAIO,GAAG,CAACC,MAAM,CAAC,WAAaR,EAAIS,WAAW,eAAeT,EAAIU,YAAY,YAAYV,EAAIW,SAAS,OAASX,EAAIY,OAAO,aAAaZ,EAAIa,UAAU,MAAQb,EAAIc,OAAOC,GAAG,CAAC,qBAAqB,SAASC,GAAQhB,EAAIU,YAAYM,GAAQ,sBAAsB,SAASA,GAAQhB,EAAIU,YAAYM,GAAQ,kBAAkB,SAASA,GAAQhB,EAAIW,SAASK,GAAQ,mBAAmB,SAASA,GAAQhB,EAAIW,SAASK,GAAQ,cAAchB,EAAIiB,iBAAiB,iBAAiBjB,EAAIkB,sBAAsB,gBAAgBlB,EAAImB,QAAO,KAAS,IACvqBC,EAAkB,GCgBP,G,UAAA,CACbC,KAAMA,aACNC,MAAOA,CACLR,MAAOA,CACLS,UAAUA,EACVC,KAAMA,QAERC,KAAMA,CACJD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","sourcesContent":["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!./index.vue?vue&type=style&index=0&id=4dfad654&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"pagination-container\"},[_c('el-pagination',_vm._b({attrs:{\"background\":_vm.background,\"current-page\":_vm.currentPage,\"page-size\":_vm.pageSize,\"layout\":_vm.layout,\"page-sizes\":_vm.pageSizes,\"total\":_vm.total},on:{\"update:currentPage\":function($event){_vm.currentPage=$event},\"update:current-page\":function($event){_vm.currentPage=$event},\"update:pageSize\":function($event){_vm.pageSize=$event},\"update:page-size\":function($event){_vm.pageSize=$event},\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}},'el-pagination',_vm.$attrs,false))],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"pagination-container\">\r\n <el-pagination\r\n :background=\"background\"\r\n :current-page.sync=\"currentPage\"\r\n :page-size.sync=\"pageSize\"\r\n :layout=\"layout\"\r\n :page-sizes=\"pageSizes\"\r\n :total=\"total\"\r\n v-bind=\"$attrs\"\r\n @size-change=\"handleSizeChange\"\r\n @current-change=\"handleCurrentChange\"\r\n />\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'Pagination',\r\n props: {\r\n total: {\r\n required: true,\r\n type: Number\r\n },\r\n page: {\r\n type: Number,\r\n default: 0\r\n },\r\n limit: {\r\n type: Number,\r\n default: 20\r\n },\r\n pageSizes: {\r\n type: Array,\r\n default() {\r\n return [5, 10, 20, 30, 70]\r\n }\r\n },\r\n layout: {\r\n type: String,\r\n default: 'total, sizes, prev, pager, next, jumper'\r\n },\r\n background: {\r\n type: Boolean,\r\n default: true\r\n },\r\n hidden: {\r\n type: Boolean,\r\n default: false\r\n }\r\n },\r\n computed: {\r\n currentPage: {\r\n get() {\r\n return this.page\r\n },\r\n set(val) {\r\n this.$emit('update:page', val)\r\n }\r\n },\r\n pageSize: {\r\n get() {\r\n return this.limit\r\n },\r\n set(val) {\r\n this.$emit('update:limit', val)\r\n }\r\n }\r\n },\r\n methods: {\r\n handleSizeChange(val) {\r\n this.$emit('pagination', { page: this.currentPage, limit: val })\r\n },\r\n handleCurrentChange(val) {\r\n this.$emit('pagination', { page: val, limit: this.pageSize })\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.pagination-container {\r\n background: none;\r\n position: relative;\r\n margin-top: 30px;\r\n}\r\n.el-pagination {\r\n text-align: center;\r\n}\r\n.pagination-container.hidden {\r\n display: none;\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!./index.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!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=4dfad654&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=4dfad654&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 \"4dfad654\",\n null\n \n)\n\nexport default component.exports","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!./alarm.vue?vue&type=style&index=0&rel=stylesheet%2Fscss&lang=scss&\"","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","/**\r\n * Created by jiachenpan on 16/11/18.\r\n */\r\n\r\n/**\r\n * @param {string} path\r\n * @returns {Boolean}\r\n */\r\nexport function isExternal(path) {\r\n return /^(https?:|mailto:|tel:)/.test(path)\r\n}\r\n/* 小写字母*/\r\nexport function validLowerCase(str) {\r\n const reg = /^[a-z]+$/\r\n return reg.test(str)\r\n}\r\n\r\n/* 大写字母*/\r\nexport function validUpperCase(str) {\r\n const reg = /^[A-Z]+$/\r\n return reg.test(str)\r\n}\r\n\r\n/* 大小写字母*/\r\nexport function validAlphabets(str) {\r\n const reg = /^[A-Za-z]+$/\r\n return reg.test(str)\r\n}\r\n\r\n/*8位16进制*/\r\nexport function validHexadecimal(rule, value, callback) {\r\n if (/^[0-9A-F]{8}$/.test(value)) {\r\n callback()\r\n } else {\r\n callback(new Error(\"请输入8位16进制数\"))\r\n }\r\n}\r\n\r\nexport function validateNumber(rule, value, callback) {\r\n console.log(!/^\\d+$|^\\d*\\.\\d+$/g.test(value), value)\r\n if (value === \"\") {\r\n callback(new Error(\"不能为空\"))\r\n } else if (!/^\\d+$|^\\d*\\.\\d+$/g.test(value)) {\r\n callback(new Error(\"只能输入数字\"))\r\n } else {\r\n callback()\r\n }\r\n}\r\n\r\nexport function validatePhone(rule, value, callback) {\r\n if (value === \"\") {\r\n callback(new Error(\"请输入手机号码\"))\r\n } else if (!/^[0-9-]+$/.test(value)) {\r\n\r\n\r\n callback(new Error(\"手机号码格式不对\"))\r\n } else {\r\n callback()\r\n }\r\n}\r\n\r\nexport function validateLong(rule, value, callback) {\r\n if (value === \"\") {\r\n callback(new Error(\"经度不能为空\"))\r\n } else if (Number(value) > 180) {\r\n callback(new Error(\"经度不能大于180\"))\r\n } else if (!/^\\d+$|^\\d*\\.\\d+$/g.test(value)) {\r\n callback(new Error(\"只允许输入数字\"))\r\n } else if (Number(value) < 0) {\r\n callback(new Error(\"数值不能小于0\"))\r\n } else {\r\n callback()\r\n }\r\n}\r\n\r\nexport function validateLat(rule, value, callback) {\r\n if (value === \"\") {\r\n callback(new Error(\"纬度不能为空\"))\r\n } else if (Number(value) > 90) {\r\n callback(new Error(\"纬度不能大于90\"))\r\n } else if (!/^\\d+$|^\\d*\\.\\d+$/g.test(value)) {\r\n callback(new Error(\"只允许输入数字\"))\r\n } else if (Number(value) < 0) {\r\n callback(new Error(\"数值不能小于0\"))\r\n } else {\r\n callback()\r\n }\r\n}\r\n\r\nexport function temperature(rule, value, callback) {\r\n if (value > 100) {\r\n callback(new Error(\"温度不能超过100\"))\r\n } else if (value < 0) {\r\n callback(new Error(\"温度不能小于0\"))\r\n } else if (value == \"\") {\r\n callback(new Error(\"数据必填\"))\r\n } else {\r\n callback()\r\n }\r\n}\r\n\r\nexport function humity(rule, value, callback) {\r\n if (value > 99) {\r\n callback(new Error(\"湿度不能超过99\"))\r\n } else if (value < 20) {\r\n callback(new Error(\"湿度不能小于20\"))\r\n } else if (value == \"\") {\r\n callback(new Error(\"数据必填\"))\r\n } else {\r\n callback()\r\n }\r\n}\r\n\r\n// 验证是否为空\r\nexport function filterNull(val) {\r\n if (val || val === 0) {\r\n if (val.length > 0) {\r\n var valReplace = val.replace(/(^\\s*)|(\\s*$)/g, \"\") // 去除字符串左右两端的空格\r\n if (valReplace) {\r\n return valReplace\r\n } else {\r\n return \"--\"\r\n }\r\n } else {\r\n return val\r\n }\r\n } else {\r\n return \"--\"\r\n }\r\n}\r\n\r\n// 验证是否为空,为空则为0\r\nexport function filterNull0(val) {\r\n if (val || val === 0) {\r\n if (val.length > 0) {\r\n var valReplace = val.replace(/(^\\s*)|(\\s*$)/g, \"\") // 去除字符串左右两端的空格\r\n if (valReplace) {\r\n return valReplace\r\n } else {\r\n return 0\r\n }\r\n } else {\r\n return val\r\n }\r\n } else {\r\n return 0\r\n }\r\n}\r\n\r\n// 验证开关状态\r\nexport function filterOpenCloseStatus(val) {\r\n if (parseInt(val) === 0) {\r\n return \"关\"\r\n } else if (parseInt(val) === 1) {\r\n return \"开\"\r\n } else {\r\n return \"--\"\r\n }\r\n}\r\n\r\n// UTC:世界标准时间转换为正常格式 \"yyyy-MM-dd' 'HH:mm:ss'\r\nexport function switchTimeFormat(time) {\r\n if (!time) {\r\n return \"\"\r\n }\r\n const dateTime = new Date(time)\r\n const year = dateTime.getFullYear()\r\n const month = dateTime.getMonth() + 1\r\n const date = dateTime.getDate()\r\n const hour = dateTime.getHours()\r\n const minute = dateTime.getMinutes()\r\n const second = dateTime.getSeconds()\r\n return (\r\n year +\r\n \"-\" +\r\n addZero(month) +\r\n \"-\" +\r\n addZero(date) +\r\n `\\n` +\r\n addZero(hour) +\r\n \":\" +\r\n addZero(minute) +\r\n \":\" +\r\n addZero(second)\r\n )\r\n}\r\n\r\nfunction addZero(v) {\r\n return v < 10 ? \"0\" + v : v\r\n}","import request from \"@/utils/request\";\r\nimport qs from \"qs\";\r\n\r\n/*\r\n 系统管理-用户管理 权限操作api 运维中心\r\n*/\r\n\r\n// 根据条件查询平台所有的设备列表信息\r\nexport function getDeviceList(data) {\r\n return request({\r\n url: 'device-service/cabinet/getDeviceList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 工单新建(告警)\r\nexport function insertOrderTask(dataForm) {\r\n const data = JSON.stringify(dataForm);\r\n return request({\r\n url: \"trajectory-service/ttask/insertOrderTask\",\r\n method: \"post\",\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n data,\r\n });\r\n}\r\n\r\n// 工单编辑\r\nexport function updateOrderTask(dataForm) {\r\n const data = JSON.stringify(dataForm);\r\n return request({\r\n url: \"trajectory-service/ttask/updateTask\",\r\n method: \"post\",\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n data,\r\n });\r\n}\r\n\r\n// 发布或中止工单\r\nexport function releaseTask(data) {\r\n return request({\r\n url: \"trajectory-service/ttask/releaseTask\",\r\n method: \"post\",\r\n params: data,\r\n });\r\n}\r\n\r\n// 获取历史轨迹\r\nexport function getTaskTrajectoryList(data) {\r\n return request({\r\n url: \"trajectory-service/trajectory/getTaskTrajectoryList\",\r\n method: \"get\",\r\n params: data,\r\n });\r\n}\r\n\r\n// 获取单个任务\r\nexport function getTask(data) {\r\n return request({\r\n url: \"trajectory-service/ttask/getTask\",\r\n method: \"get\",\r\n params: data,\r\n });\r\n}\r\n\r\n// 查询工单列表\r\nexport function getTaskList(data) {\r\n return request({\r\n url: \"trajectory-service/ttask/getTaskList\",\r\n method: \"get\",\r\n params: data,\r\n });\r\n}\r\n\r\n// 获取工单和子巡检任务要验收的设备列表\r\nexport function getNeedAcceptanceDeviceList(data) {\r\n return request({\r\n url: \"trajectory-service/acceptance/getNeedAcceptanceDeviceList\",\r\n method: \"get\",\r\n params: data,\r\n });\r\n}\r\n\r\n//子巡检发布\r\nexport function releaseTaskBySubId(dataForm) {\r\n const data = qs.stringify(dataForm);\r\n return request({\r\n url: \"trajectory-service/ttask/releaseTaskBySubId\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n\r\n//子巡检中止\r\nexport function stopTaskBySubId(dataForm) {\r\n const data = qs.stringify(dataForm);\r\n return request({\r\n url: \"trajectory-service/ttask/stopTaskBySubId\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n\r\n// 申请验收任务\r\nexport function applyAcceptanceTask(data) {\r\n return request({\r\n url: \"trajectory-service/acceptance/applyAcceptanceTask\",\r\n method: \"get\",\r\n params: data,\r\n });\r\n}\r\n\r\n// 验收任务\r\nexport function acceptanceTask(data) {\r\n return request({\r\n url: \"trajectory-service/acceptance/acceptanceTask\",\r\n method: \"get\",\r\n params: data,\r\n });\r\n}\r\n\r\n// 删除单个任务\r\nexport function deleteTask(dataForm) {\r\n const data = qs.stringify(dataForm);\r\n return request({\r\n url: \"trajectory-service/ttask/deleteTask\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n\r\n// 批量删除单个任务\r\nexport function batchDeleteTask(dataForm) {\r\n const data = qs.stringify(dataForm);\r\n return request({\r\n url: \"trajectory-service/ttask/batchDeleteTask\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n\r\n//批量发布或者终止\r\nexport function batchReleaseTask(dataForm) {\r\n const data = qs.stringify(dataForm);\r\n return request({\r\n url: \"trajectory-service/ttask/batchReleaseTask\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n\r\n// 查询历史记录列表\r\nexport function getTrajectoryList(data) {\r\n return request({\r\n url: \"trajectory-service/trajectory/getTrajectoryList\",\r\n method: \"get\",\r\n params: data,\r\n });\r\n}\r\n\r\n// 新增历史记录\r\nexport function insertTrajectoryTask(dataForm) {\r\n const data = qs.stringify(dataForm);\r\n return request({\r\n url: \"trajectory-service/trajectory/insertTrajectory\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n\r\n// 删除(工单)音频、视频\r\nexport function deleteFileByUrl(data) {\r\n return request({\r\n url: \"trajectory-service/file/deleteFileByUrl\",\r\n method: \"post\",\r\n params: data,\r\n });\r\n}\r\n\r\n// 获取拆除记录\r\nexport function dismantleList(data) {\r\n return request({\r\n url: \"trajectory-service/dismantle/getDismantleList\",\r\n method: \"get\",\r\n params: data,\r\n });\r\n}\r\n\r\n// 根据dismantleId获取拆除记录\r\nexport function dismantleInfo(data) {\r\n return request({\r\n url: \"trajectory-service/dismantle/getDismantleInfo\",\r\n method: \"get\",\r\n params: data,\r\n });\r\n}\r\n\r\n// 新增巡检任务\r\nexport function insertInspectionTask(dataForm) {\r\n const data = JSON.stringify(dataForm);\r\n return request({\r\n url: \"trajectory-service/ttask/insertInspectionTask\",\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n\r\n// 更新巡检任务\r\nexport function updateInspectionTask(dataForm) {\r\n const data = JSON.stringify(dataForm);\r\n return request({\r\n url: \"trajectory-service/ttask/updateInspectionTask\",\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n method: \"post\",\r\n data,\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',{staticClass:\"app-container\"},[_c('div',{staticClass:\"decorate\"}),_c('div',{staticClass:\"filter-container\"},[_c('el-select',{staticClass:\"filter-item\",staticStyle:{\"width\":\"110px\"},attrs:{\"clearable\":\"\",\"placeholder\":_vm.$t('work.status')},on:{\"change\":_vm.handleFilter},model:{value:(_vm.listQuery.flag),callback:function ($$v) {_vm.$set(_vm.listQuery, \"flag\", $$v)},expression:\"listQuery.flag\"}},_vm._l((_vm.alarmFlag),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1),_c('el-input',{staticClass:\"filter-item\",attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('device.deviceName')},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.listQuery.deviceName),callback:function ($$v) {_vm.$set(_vm.listQuery, \"deviceName\", $$v)},expression:\"listQuery.deviceName\"}}),_c('el-date-picker',{staticClass:\"filter-item\",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\",\"editable\":false},on:{\"change\":_vm.handleFilter},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\"))+\" \")])],1),_c('div',{staticClass:\"table-container\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.listLoading),expression:\"listLoading\"}],attrs:{\"data\":_vm.list,\"fit\":\"\",\"max-height\":\"580\",\"highlight-current-row\":\"\",\"header-row-class-name\":\"table-header\",\"row-class-name\":\"table-row\"}},[_c('el-table-column',{attrs:{\"property\":\"deviceName\",\"align\":\"center\",\"label\":_vm.$t('device.deviceName')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(_vm._f(\"filterNull\")(scope.row.deviceName)))])]}}])}),_c('el-table-column',{attrs:{\"property\":\"typeName\",\"align\":\"center\",\"label\":_vm.$t('device.typeName'),\"width\":\"200px\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(_vm._f(\"filterNull\")(scope.row.typeName)))])]}}])}),_c('el-table-column',{attrs:{\"property\":\"deviceCode\",\"align\":\"center\",\"label\":_vm.$t('device.deviceCode')}}),_c('el-table-column',{attrs:{\"property\":\"alarmInfo\",\"align\":\"center\",\"label\":_vm.$t('alarm.alarmInfo')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(_vm._f(\"filterNull\")(scope.row.alarmInfo)))])]}}])}),_c('el-table-column',{attrs:{\"property\":\"alarmLevel\",\"align\":\"center\",\"label\":_vm.$t('alarm.alarmLevel')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\" \"+_vm._s(_vm.getLevel(scope.row.alarmLevel))+\" \")]}}])}),_c('el-table-column',{attrs:{\"property\":\"uploadTime\",\"align\":\"center\",\"label\":_vm.$t('alarm.uploadTime')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(_vm._f(\"filterNull\")(scope.row.uploadTime)))])]}}])}),_c('el-table-column',{attrs:{\"property\":\"orderStatus\",\"label\":_vm.$t('alarm.status'),\"width\":\"130\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.alarmStatus == 0)?_c('span',[_c('i',{staticClass:\"iconfont icon-yichuli\",staticStyle:{\"color\":\"rgba(0, 255, 3, 1)\"}}),_vm._v(\" \"+_vm._s(_vm.$t(\"alarm.processed\"))+\" \")]):(scope.row.orderStatus == 1)?_c('span',[_c('i',{staticClass:\"iconfont icon-daichuli\",staticStyle:{\"color\":\"rgba(0, 255, 3, 1)\"}}),_vm._v(\" \"+_vm._s(_vm.$t(\"alarm.processing\")))]):(scope.row.alarmStatus == 1)?_c('span',{staticStyle:{\"color\":\"rgba(255, 86, 84, 1)\"}},[_c('i',{staticClass:\"iconfont icon-daichuli\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"alarm.unprocessed\"))+\" \")]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"label\":_vm.$t('table.operate'),\"align\":\"center\",\"width\":\"240\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.alarmStatus == 1 && scope.row.orderStatus == 0)?_c('span',{staticClass:\"btnCancel\",attrs:{\"title\":_vm.$t('alarm.reset')},on:{\"click\":function($event){return _vm.clearAlarmStatus(scope)}}},[_c('i',{staticClass:\"el-icon-refresh-right\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"alarm.reset\"))+\" \")]):_vm._e(),(scope.row.orderStatus == 0 && scope.row.alarmStatus == 1)?_c('span',{staticClass:\"btnCancel\",on:{\"click\":function($event){return _vm.createWork(scope)}}},[_c('i',{staticClass:\"iconfont icon-paifa\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"alarm.Initiate\")))]):_vm._e(),(scope.row.orderStatus == 1)?_c('span',{staticClass:\"btnCancel\",on:{\"click\":function($event){return _vm.seeWork(scope)}}},[_c('i',{staticClass:\"iconfont icon-kejian\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"work.see\"))+\" \")]):_vm._e()]}}])})],1),_c('pagination',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.total > 0),expression:\"total > 0\"}],attrs:{\"total\":_vm.total,\"page\":_vm.listQuery.curPage,\"limit\":_vm.listQuery.pageSize},on:{\"update:page\":function($event){return _vm.$set(_vm.listQuery, \"curPage\", $event)},\"update:limit\":function($event){return _vm.$set(_vm.listQuery, \"pageSize\", $event)},\"pagination\":_vm.getList}})],1),_c('el-dialog',{staticClass:\"gisDialog\",attrs:{\"visible\":_vm.workDialog,\"title\":_vm.$t('work.see'),\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.workDialog=$event}}},[_c('div',{staticClass:\"table-container\"},[_c('el-table',{attrs:{\"data\":_vm.workForm,\"fit\":\"\",\"highlight-current-row\":\"\",\"header-row-class-name\":\"table-header\",\"row-class-name\":\"table-row\"}},[_c('el-table-column',{attrs:{\"property\":\"taskName\",\"align\":\"center\",\"min-width\":\"60\",\"label\":_vm.$t('work.taskName'),\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"property\":\"receiveName\",\"align\":\"center\",\"min-width\":\"45\",\"label\":_vm.$t('work.recipient'),\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"property\":\"releaseName\",\"align\":\"center\",\"min-width\":\"45\",\"label\":_vm.$t('historical.originator'),\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"property\":\"checkName\",\"align\":\"center\",\"min-width\":\"45\",\"label\":_vm.$t('work.accepted'),\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"property\":\"remark\",\"align\":\"center\",\"min-width\":\"45\",\"label\":_vm.$t('work.remark'),\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"label\":_vm.$t('work.status'),\"align\":\"center\"},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:{\"property\":\"startTime\",\"align\":\"center\",\"label\":_vm.$t('startTime'),\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"property\":\"deadline\",\"align\":\"center\",\"label\":_vm.$t('endTime'),\"show-overflow-tooltip\":\"\"}})],1)],1)]),_c('create-work',{attrs:{\"dialogStatus\":_vm.dialogStatus,\"flag\":true}})],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 <el-select\r\n v-model=\"listQuery.flag\"\r\n style=\"width: 110px\"\r\n class=\"filter-item\"\r\n clearable\r\n :placeholder=\"$t('work.status')\"\r\n @change=\"handleFilter\"\r\n >\r\n <el-option\r\n v-for=\"item in alarmFlag\"\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 v-model=\"listQuery.deviceName\"\r\n class=\"filter-item\"\r\n :placeholder=\"$t('pEnter') + $t('device.deviceName')\"\r\n @keyup.enter.native=\"handleFilter\"\r\n />\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 :picker-options=\"pickerOptions0\"\r\n value-format=\"yyyy-MM-dd HH:mm:ss\"\r\n :editable=\"false\"\r\n @change=\"handleFilter\"\r\n ></el-date-picker>\r\n\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\r\n <div class=\"table-container\">\r\n <el-table\r\n v-loading=\"listLoading\"\r\n :data=\"list\"\r\n fit\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=\"deviceName\"\r\n align=\"center\"\r\n :label=\"$t('device.deviceName')\"\r\n >\r\n <template slot-scope=\"scope\">\r\n <span>{{ scope.row.deviceName | filterNull }}</span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n property=\"typeName\"\r\n align=\"center\"\r\n :label=\"$t('device.typeName')\"\r\n width=\"200px\"\r\n >\r\n <template slot-scope=\"scope\">\r\n <span>{{ scope.row.typeName | filterNull }}</span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n property=\"deviceCode\"\r\n align=\"center\"\r\n :label=\"$t('device.deviceCode')\"\r\n />\r\n <el-table-column\r\n property=\"alarmInfo\"\r\n align=\"center\"\r\n :label=\"$t('alarm.alarmInfo')\"\r\n >\r\n <template slot-scope=\"scope\">\r\n <span>{{ scope.row.alarmInfo | filterNull }}</span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n property=\"alarmLevel\"\r\n align=\"center\"\r\n :label=\"$t('alarm.alarmLevel')\"\r\n >\r\n <template slot-scope=\"scope\">\r\n {{ getLevel(scope.row.alarmLevel) }}\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n property=\"uploadTime\"\r\n align=\"center\"\r\n :label=\"$t('alarm.uploadTime')\"\r\n >\r\n <template slot-scope=\"scope\">\r\n <span>{{ scope.row.uploadTime | filterNull }}</span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n property=\"orderStatus\"\r\n :label=\"$t('alarm.status')\"\r\n width=\"130\"\r\n align=\"center\"\r\n >\r\n <template slot-scope=\"scope\">\r\n <span v-if=\"scope.row.alarmStatus == 0\">\r\n <i\r\n class=\"iconfont icon-yichuli\"\r\n style=\"color: rgba(0, 255, 3, 1)\"\r\n ></i>\r\n {{ $t(\"alarm.processed\") }}\r\n </span>\r\n\r\n <span v-else-if=\"scope.row.orderStatus == 1\">\r\n <i\r\n class=\"iconfont icon-daichuli\"\r\n style=\"color: rgba(0, 255, 3, 1)\"\r\n ></i>\r\n {{ $t(\"alarm.processing\") }}</span\r\n >\r\n <span\r\n v-else-if=\"scope.row.alarmStatus == 1\"\r\n style=\"color: rgba(255, 86, 84, 1)\"\r\n >\r\n <i class=\"iconfont icon-daichuli\"></i>\r\n {{ $t(\"alarm.unprocessed\") }}\r\n </span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n :label=\"$t('table.operate')\"\r\n align=\"center\"\r\n width=\"240\"\r\n >\r\n <template slot-scope=\"scope\">\r\n <span\r\n class=\"btnCancel\"\r\n :title=\"$t('alarm.reset')\"\r\n @click=\"clearAlarmStatus(scope)\"\r\n v-if=\"scope.row.alarmStatus == 1 && scope.row.orderStatus == 0\"\r\n >\r\n <i class=\"el-icon-refresh-right\"></i>\r\n {{ $t(\"alarm.reset\") }}\r\n </span>\r\n <span\r\n class=\"btnCancel\"\r\n @click=\"createWork(scope)\"\r\n v-if=\"scope.row.orderStatus == 0 && scope.row.alarmStatus == 1\"\r\n >\r\n <i class=\"iconfont icon-paifa\"></i>\r\n {{ $t(\"alarm.Initiate\") }}</span\r\n >\r\n <span\r\n class=\"btnCancel\"\r\n @click=\"seeWork(scope)\"\r\n v-if=\"scope.row.orderStatus == 1\"\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=\"listQuery.curPage\"\r\n :limit.sync=\"listQuery.pageSize\"\r\n @pagination=\"getList\"\r\n />\r\n </div>\r\n <el-dialog\r\n :visible.sync=\"workDialog\"\r\n :title=\"$t('work.see')\"\r\n class=\"gisDialog\"\r\n :close-on-click-modal=\"false\"\r\n >\r\n <div class=\"table-container\">\r\n <el-table\r\n :data=\"workForm\"\r\n fit\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=\"center\"\r\n min-width=\"60\"\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=\"center\"\r\n min-width=\"45\"\r\n :label=\"$t('work.recipient')\"\r\n show-overflow-tooltip\r\n />\r\n <el-table-column\r\n property=\"releaseName\"\r\n align=\"center\"\r\n min-width=\"45\"\r\n :label=\"$t('historical.originator')\"\r\n show-overflow-tooltip\r\n />\r\n <el-table-column\r\n property=\"checkName\"\r\n align=\"center\"\r\n min-width=\"45\"\r\n :label=\"$t('work.accepted')\"\r\n show-overflow-tooltip\r\n />\r\n <el-table-column\r\n property=\"remark\"\r\n align=\"center\"\r\n min-width=\"45\"\r\n :label=\"$t('work.remark')\"\r\n show-overflow-tooltip\r\n />\r\n <el-table-column :label=\"$t('work.status')\" align=\"center\">\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 property=\"startTime\"\r\n align=\"center\"\r\n :label=\"$t('startTime')\"\r\n show-overflow-tooltip\r\n />\r\n <el-table-column\r\n property=\"deadline\"\r\n align=\"center\"\r\n :label=\"$t('endTime')\"\r\n show-overflow-tooltip\r\n />\r\n </el-table>\r\n </div>\r\n </el-dialog>\r\n\r\n <!--发起工单 -->\r\n <create-work :dialogStatus=\"dialogStatus\" :flag=\"true\"></create-work>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport createWork from \"@/components/createWork/createWork\"\r\nimport {\r\n getAlarmList,\r\n getDeptAlarmDetails,\r\n updateAlarmReadStatus,\r\n clearAlarmStatus\r\n} from \"@/api/alarm\"\r\n// import { getTypeList } from '@/api/deviceType'\r\nimport Pagination from \"@/components/Pagination\"\r\nimport { filterNull } from \"@/utils/validate.js\"\r\nimport permission from \"@/directive/permission/index.js\" // 权限判断指令\r\nexport default {\r\n components: {\r\n Pagination,\r\n createWork\r\n },\r\n directives: { permission },\r\n data() {\r\n return {\r\n isActive: \"listActive\",\r\n listLoading: false,\r\n workDialog: false,\r\n list: [],\r\n total: 0,\r\n dialogStatus: \"create\",\r\n scopes: {},\r\n alarmStatus: null,\r\n listQuery: {\r\n curPage: 1,\r\n deviceId: null,\r\n deviceName: null,\r\n buildId: null,\r\n deviceTypeId: null,\r\n endTime: null,\r\n alarmStatus: null, //告警状态 0:未处理 1: 已处理\r\n pageSize: 10,\r\n startTime: null\r\n },\r\n workForm: [],\r\n alarmFlag: [\r\n { value: 2, label: this.$t(\"alarm.processed\") },\r\n { value: 0, label: this.$t(\"alarm.unprocessed\") },\r\n { value: 1, label: this.$t(\"alarm.processing\") }\r\n ],\r\n arrayTime: [],\r\n pickerOptions0: {\r\n disabledDate: (time) => {\r\n return time.getTime() > Date.now()\r\n }\r\n }\r\n }\r\n },\r\n created() {\r\n this.getList()\r\n },\r\n watch: {\r\n arrayTime(val) {\r\n this.listQuery.startTime = val && val && val[0]\r\n this.listQuery.endTime = val && val && val[1]\r\n }\r\n },\r\n filters: {\r\n filterNull(val) {\r\n // 验证是否为空\r\n const validateVal = filterNull(val)\r\n return validateVal\r\n }\r\n },\r\n methods: {\r\n getLevel(val) {\r\n // 验证是否为空\r\n if (val == 1) {\r\n return this.$t(\"alarm.leve1\")\r\n } else if (val == 2) {\r\n return this.$t(\"alarm.leve2\")\r\n } else if (val == 3) {\r\n return this.$t(\"alarm.leve3\")\r\n }\r\n },\r\n validatenull(children) {\r\n if (children && children.length > 0) {\r\n return false\r\n } else {\r\n return true\r\n }\r\n },\r\n //发起工单\r\n createWork(scope) {\r\n this.$store.state.work.form = {}\r\n this.dialogStatus = \"create\"\r\n this.$store.state.work.form.orderType = \"4\"\r\n this.$store.state.work.type = \"1\"\r\n this.$store.state.work.deviceAllList = [\r\n {\r\n deviceId: scope.row.deviceId,\r\n deviceTypeName: scope.row.deviceTypeName,\r\n deviceName: scope.row.deviceName,\r\n deviceCode: scope.row.deviceCode,\r\n alarmId: scope.row.alarmId,\r\n deviceType: scope.row.deviceTypeName,\r\n taskType: \"工单\",\r\n longitude: scope.row.longitude,\r\n latitude: scope.row.latitude,\r\n areaId: scope.row.areaId\r\n }\r\n ]\r\n this.$store.state.work.addDialog = true\r\n },\r\n seeWork(scope) {\r\n getDeptAlarmDetails({ alarmIds: scope.row.alarmId }).then((res) => {\r\n this.workDialog = true\r\n this.workForm = res.data\r\n this.scopes = scope\r\n })\r\n },\r\n clearAlarmStatus(scope) {\r\n clearAlarmStatus(scope.row.alarmId).then(() => {\r\n this.getList()\r\n })\r\n },\r\n getList() {\r\n this.listLoading = true\r\n getAlarmList(this.listQuery).then((res) => {\r\n this.listLoading = false\r\n this.list = res.data.list.map((e) => {\r\n if (this.$i18n.locale == \"en\") {\r\n e.alarmInfo = e.enAlarmInfo\r\n }\r\n return e\r\n })\r\n this.total = res.data.totalRow\r\n const list = this.list.filter((e) => e.readStatus == 0)\r\n if (list.length > 0) {\r\n updateAlarmReadStatus({\r\n alarmIdStr: list.map((e) => e.alarmId).toString()\r\n })\r\n }\r\n })\r\n },\r\n handleFilter() {\r\n this.listQuery.curPage = 1\r\n this.getList()\r\n },\r\n wipeCondition() {\r\n this.alarmStatus = null\r\n for (var key in this.listQuery) {\r\n if (key !== \"curPage\" && key !== \"pageSize\") {\r\n this.listQuery[key] = null\r\n }\r\n }\r\n this.arrayTime = []\r\n this.listQuery.curPage = 1\r\n this.getList()\r\n },\r\n btnChange(val) {\r\n console.log(\"点击按钮\")\r\n this.isActive = val\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style rel=\"stylesheet/scss\" lang=\"scss\">\r\n.filter-container .active {\r\n background-color: #0089d7;\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!./alarm.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!./alarm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./alarm.vue?vue&type=template&id=e6213b62&\"\nimport script from \"./alarm.vue?vue&type=script&lang=js&\"\nexport * from \"./alarm.vue?vue&type=script&lang=js&\"\nimport style0 from \"./alarm.vue?vue&type=style&index=0&rel=stylesheet%2Fscss&lang=scss&\"\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 null,\n null\n \n)\n\nexport default component.exports","var $ = require('../internals/export');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar apply = require('../internals/function-apply');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\n\nvar Array = global.Array;\nvar $stringify = getBuiltIn('JSON', 'stringify');\nvar exec = uncurryThis(/./.exec);\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar replace = uncurryThis(''.replace);\nvar numberToString = uncurryThis(1.0.toString);\n\nvar tester = /[\\uD800-\\uDFFF]/g;\nvar low = /^[\\uD800-\\uDBFF]$/;\nvar hi = /^[\\uDC00-\\uDFFF]$/;\n\nvar fix = function (match, offset, string) {\n var prev = charAt(string, offset - 1);\n var next = charAt(string, offset + 1);\n if ((exec(low, match) && !exec(hi, next)) || (exec(hi, match) && !exec(low, prev))) {\n return '\\\\u' + numberToString(charCodeAt(match, 0), 16);\n } return match;\n};\n\nvar FORCED = fails(function () {\n return $stringify('\\uDF06\\uD834') !== '\"\\\\udf06\\\\ud834\"'\n || $stringify('\\uDEAD') !== '\"\\\\udead\"';\n});\n\nif ($stringify) {\n // `JSON.stringify` method\n // https://tc39.es/ecma262/#sec-json.stringify\n // https://github.com/tc39/proposal-well-formed-stringify\n $({ target: 'JSON', stat: true, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n stringify: function stringify(it, replacer, space) {\n for (var i = 0, l = arguments.length, args = Array(l); i < l; i++) args[i] = arguments[i];\n var result = apply($stringify, null, args);\n return typeof result == 'string' ? replace(result, tester, fix) : result;\n }\n });\n}\n"],"sourceRoot":""} |