Files
tekelanew_acs/acs/nladmin-ui/node_modules/.cache/vue-loader/d0a21d246e889deb5a553670c52bd4de.json

1 line
2.7 KiB
JSON
Raw Normal View History

2024-12-03 17:40:13 +08:00
{"remainingRequest":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\monitor\\log\\errorLog.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\monitor\\log\\errorLog.vue","mtime":1732871026702},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":1732872825017},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":1732872825835}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport { getErrDetail, delAllError } from '@/api/monitor/log'\r\nimport Search from './search'\r\nimport CRUD, { presenter } from '@crud/crud'\r\nimport crudOperation from '@crud/CRUD.operation'\r\nimport pagination from '@crud/Pagination'\r\n\r\nexport default {\r\n name: 'ErrorLog',\r\n components: { Search, crudOperation, pagination },\r\n cruds() {\r\n return CRUD({ title: '异常日志', url: 'api/logs/error' })\r\n },\r\n mixins: [presenter()],\r\n data() {\r\n return {\r\n errorInfo: '', dialog: false\r\n }\r\n },\r\n created() {\r\n this.crud.optShow = {\r\n add: false,\r\n edit: false,\r\n del: false,\r\n download: false\r\n }\r\n },\r\n methods: {\r\n // 获取异常详情\r\n info(log_id) {\r\n this.dialog = true\r\n getErrDetail(log_id).then(res => {\r\n this.errorInfo = res.exception\r\n })\r\n },\r\n confirmDelAll() {\r\n this.$confirm(this.$t('monitor.table.clear_log'), this.$t('monitor.table.prompt'), {\r\n confirmButtonText: this.$t('monitor.table.confirm'),\r\n cancelButtonText: this.$t('monitor.table.cancel'),\r\n type: 'warning'\r\n }).then(() => {\r\n this.crud.delAllLoading = true\r\n delAllError().then(res => {\r\n this.crud.delAllLoading = false\r\n this.crud.dleChangePage(1)\r\n this.crud.delSuccessNotify()\r\n this.crud.toQuery()\r\n }).catch(err => {\r\n this.crud.delAllLoading = false\r\n console.log(err.response.data.message)\r\n })\r\n }).catch(() => {\r\n })\r\n }\r\n }\r\n}\r\n",null]}