Files
tekelanew_acs/acs/nladmin-ui/node_modules/.cache/vue-loader/7e5deae154669a3b07aae52527eece83.json
2024-12-05 09:33:18 +08:00

1 line
3.5 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"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\\logQuery\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\monitor\\logQuery\\index.vue","mtime":1732871026706},{"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\r\nimport Search from './search'\r\nimport CRUD, { crud, header, presenter } from '@crud/crud'\r\nimport crudOperation from '@crud/CRUD.operation'\r\nimport pagination from '@crud/Pagination'\r\nimport { delAll } from '@/api/acs/lucene/log'\r\n\r\nexport default {\r\n name: 'LuceneLog',\r\n components: { Search, pagination, crudOperation },\r\n mixins: [presenter(), header(), crud()],\r\n cruds: function() {\r\n return CRUD({\r\n title: '系统参数', url: 'api/lucene/getAddressLog', idField: 'id', sort: 'id,desc',\r\n queryOnPresenterCreated: true,\r\n optShow: {\r\n add: false,\r\n edit: false,\r\n del: false,\r\n download: false\r\n },\r\n page: {\r\n size: 40,\r\n total: 0,\r\n page: 0\r\n },\r\n query: {\r\n createTime: [new Date(new Date().setTime(new Date().getTime() - 3600 * 1000)), new Date(new Date().setTime(new Date().getTime() + 3600 * 1000))]\r\n }\r\n })\r\n },\r\n data() {\r\n return {\r\n query: { blurry: '123' },\r\n permission: {\r\n add: ['admin', 'param:add'],\r\n edit: ['admin', 'param:edit'],\r\n del: ['admin', 'param:del']\r\n },\r\n rules: {}\r\n }\r\n },\r\n created() {\r\n },\r\n methods: {\r\n truncateOrFullText(text) {\r\n if (text.length > 1000) {\r\n return text.slice(0, 1000) + '...'\r\n }\r\n return text\r\n },\r\n handleClick(content) {\r\n if (content.length > 1000) {\r\n this.$alert(content, '完整内容', {\r\n confirmButtonText: '关闭',\r\n dangerouslyUseHTMLString: true,\r\n customClass: 'full-content-alert'\r\n })\r\n }\r\n },\r\n // 钩子在获取表格数据之前执行false 则代表不获取数据\r\n [CRUD.HOOK.beforeRefresh]() {\r\n return true\r\n },\r\n confirmDelAll() {\r\n this.$confirm(`确认清空所有操作日志吗?`, '提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n type: 'warning'\r\n }).then(() => {\r\n this.crud.delAllLoading = true\r\n delAll('device_execute').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]}