1 line
2.4 KiB
JSON
1 line
2.4 KiB
JSON
|
|
{"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\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\monitor\\log\\index.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\r\nimport Search from './search'\r\nimport { delAllInfo } from '@/api/monitor/log'\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: 'Log',\r\n components: { Search, crudOperation, pagination },\r\n cruds() {\r\n return CRUD({ title: '日志', url: 'api/logs' })\r\n },\r\n mixins: [presenter()],\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 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 delAllInfo().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]}
|