1 line
2.9 KiB
JSON
1 line
2.9 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\\online\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\monitor\\online\\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport { del } from '@/api/monitor/online'\r\nimport CRUD, { presenter, header, crud } from '@crud/crud'\r\nimport rrOperation from '@crud/RR.operation'\r\nimport crudOperation from '@crud/CRUD.operation'\r\nimport pagination from '@crud/Pagination'\r\n\r\nexport default {\r\n name: 'OnlineUser',\r\n components: { pagination, crudOperation, rrOperation },\r\n cruds() {\r\n return CRUD({ url: 'auth/online', title: '在线用户' })\r\n },\r\n mixins: [presenter(), header(), crud()],\r\n data() {\r\n return {\r\n delLoading: false,\r\n permission: {}\r\n }\r\n },\r\n created() {\r\n this.crud.msg.del = '强退成功!'\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 doDelete(datas) {\r\n this.$confirm(`确认强退选中的${datas.length}个用户?`, '提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n type: 'warning'\r\n }).then(() => {\r\n this.delMethod(datas)\r\n }).catch(() => {})\r\n },\r\n // 踢出用户\r\n delMethod(key, index) {\r\n const ids = []\r\n if (key instanceof Array) {\r\n key.forEach(val => {\r\n ids.push(val.key)\r\n })\r\n } else ids.push(key)\r\n this.delLoading = true\r\n del(ids).then(() => {\r\n this.delLoading = false\r\n if (this.$refs[index]) {\r\n this.$refs[index].doClose()\r\n }\r\n this.crud.dleChangePage(1)\r\n this.crud.delSuccessNotify()\r\n this.crud.toQuery()\r\n }).catch(() => {\r\n this.delLoading = false\r\n if (this.$refs[index]) {\r\n this.$refs[index].doClose()\r\n }\r\n })\r\n }\r\n }\r\n}\r\n",null]} |