EMS2.0-Documents/7.部署文档/Linux安装/项目前端文件/IEMS/js/chunk-3f074dc9.d39929fb.js.map

1 line
31 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/directive/permission/permission.js","webpack:///./src/directive/permission/index.js","webpack:///./src/utils/validate.js","webpack:///./src/api/alarm.js","webpack:///./src/views/operation/deviceLog.vue?a45d","webpack:///src/views/operation/deviceLog.vue","webpack:///./src/views/operation/deviceLog.vue?1d6a","webpack:///./src/views/operation/deviceLog.vue"],"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","getDeptAlarmDetails","data","request","url","method","params","clearAlarmStatus","alarmId","getAlarmList","getTipAlarmList","updateAlarmReadStatus","getDeviceLogList","getAlarmLevel","getAlarmStatus","getAlarmTypeLevel","getAlarmTypeStatus","$t","nativeOn","indexOf","_k","keyCode","key","handleFilter","apply","arguments","model","listQuery","$$v","$set","expression","pickerOptions0","arrayTime","_v","_s","clearListQuery","directives","rawName","list","scopedSlots","_u","fn","scope","_f","row","createTime","curPage","getList","components","Pagination","filters","validateVal","userId","userList","listLoading","disabledDate","getTime","now","watch","startTime","endTime","created","e"],"mappings":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A,EACA,KACA,KACA,MAIa,aAAAe,E","file":"js/chunk-3f074dc9.d39929fb.js","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","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\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',{staticClass:\"app-container\"},[_c('div',{staticClass:\"decorate\"}),_c('div',{staticClass:\"filter-container\"},[_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'),\"picker-options\":_vm.pickerOptions0,\"end-placeholder\":_vm.$t('endTime'),\"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.clearListQuery}},[_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:{\"type\":\"index\",\"width\":\"55\",\"align\":\"center\"}}),_c('el-table-column',{attrs:{\"property\":\"userName\",\"align\":\"left\",\"label\":_vm.$t('platformLog.userName')}}),_c('el-table-column',{attrs:{\"property\":\"deviceCode\",\"align\":\"left\",\"label\":_vm.$t('device.deviceCode')}}),_c('el-table-column',{attrs:{\"property\":\"operation\",\"align\":\"left\",\"label\":_vm.$t('table.operate')}}),_c('el-table-column',{attrs:{\"label\":_vm.$t('platformLog.createDate'),\"align\":\"left\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(_vm._f(\"switchTimeFormat\")(scope.row.createTime)))])]}}])})],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)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!-- 平台日志 -->\r\n<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 class=\"filter-item\"\r\n v-model=\"listQuery.deviceTypeId\"\r\n :placeholder=\"'设备类型'\"\r\n \r\n @change=\"handleFilter\"\r\n clearable\r\n >\r\n <el-option\r\n v-for=\"item in deviceTypelist\"\r\n :key=\"item.deviceTypeId\"\r\n :label=\"item.deviceTypeName\"\r\n :value=\"item.deviceTypeId\"\r\n />\r\n </el-select> -->\r\n\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 :picker-options=\"pickerOptions0\"\r\n :end-placeholder=\"$t('endTime')\"\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') }}</span\r\n >\r\n <span class=\"btn-item\" @click=\"clearListQuery\">\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=\"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 type=\"index\" width=\"55\" align=\"center\" />\r\n <el-table-column\r\n property=\"userName\"\r\n align=\"left\"\r\n :label=\"$t('platformLog.userName')\"\r\n />\r\n <el-table-column\r\n property=\"deviceCode\"\r\n align=\"left\"\r\n :label=\"$t('device.deviceCode')\"\r\n />\r\n <el-table-column\r\n property=\"operation\"\r\n align=\"left\"\r\n :label=\"$t('table.operate')\"\r\n />\r\n <el-table-column :label=\"$t('platformLog.createDate')\" align=\"left\">\r\n <template slot-scope=\"scope\">\r\n <span>{{ scope.row.createTime | switchTimeFormat }}</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 </div>\r\n</template>\r\n\r\n<script>\r\nimport { getDeviceLogList } from '@/api/alarm'\r\nimport Pagination from '@/components/Pagination'\r\nimport permission from '@/directive/permission/index.js' // 权限判断指令\r\nimport { switchTimeFormat } from '@/utils/validate'\r\n\r\nexport default {\r\n components: { Pagination },\r\n directives: { permission },\r\n filters: {\r\n switchTimeFormat(val) {\r\n const validateVal = switchTimeFormat(val)\r\n return validateVal\r\n }\r\n },\r\n data() {\r\n return {\r\n total: 0,\r\n listQuery: {\r\n userId: null,\r\n curPage: 1,\r\n pageSize: 10\r\n },\r\n userList: [],\r\n list: null,\r\n listLoading: false,\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 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 created() {\r\n this.getList()\r\n },\r\n methods: {\r\n getList() {\r\n this.listLoading = true\r\n getDeviceLogList(this.listQuery).then((res) => {\r\n this.listLoading = false\r\n console.log(res)\r\n this.list = res.data.list.map((e) => {\r\n if (this.$i18n.locale == 'en') {\r\n e.operation = e.enOperation\r\n }\r\n return e\r\n })\r\n this.total = res.data.totalRow || 0\r\n })\r\n },\r\n // 清空搜索选项,重置表格\r\n clearListQuery() {\r\n this.listQuery = {\r\n userId: null,\r\n curPage: 1,\r\n pageSize: 10\r\n }\r\n this.getList()\r\n },\r\n // 搜索\r\n handleFilter() {\r\n this.listQuery.curPage = 1\r\n this.getList()\r\n }\r\n }\r\n}\r\n</script>\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!./deviceLog.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!./deviceLog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./deviceLog.vue?vue&type=template&id=4518138d&\"\nimport script from \"./deviceLog.vue?vue&type=script&lang=js&\"\nexport * from \"./deviceLog.vue?vue&type=script&lang=js&\"\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"],"sourceRoot":""}