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

1 line
6.3 KiB
JSON

{"remainingRequest":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\system\\redis\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\system\\redis\\index.vue","mtime":1732871026795},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\babel.config.js","mtime":1732871025888},{"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":["\"use strict\";\n\nvar _interopRequireDefault = require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nrequire(\"core-js/modules/web.dom.iterable\");\nvar _redis = require(\"@/api/system/redis\");\nvar _echarts = _interopRequireDefault(require(\"echarts\"));\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//\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//\nvar _default = exports.default = {\n name: 'Redis',\n data: function data() {\n return {\n // 统计命令信息\n commandstats: null,\n // 使用内存\n usedmemory: null,\n // cache 信息\n cache: [],\n // key 列表\n keyDefineListLoad: true,\n keyDefineList: [],\n // 模块弹出框\n open: false,\n keyTemplate: '',\n cacheKeys: [],\n cacheForm: {},\n keyAndValues: [],\n multipleSelection: [],\n // 多选数据\n delBtlStatu: true\n };\n },\n created: function created() {\n this.getList();\n },\n methods: {\n // 获取redis的信息\n getList: function getList() {\n var _this = this;\n (0, _redis.getCache)().then(function (res) {\n // console.log(res)\n _this.cache = res.info;\n // this.$model.closeLoading()\n _this.commandstats = _echarts.default.init(_this.$refs.commandstats, 'macarons');\n var commandStats = []; // 指令状态数据\n res.info.commandStats.forEach(function (row) {\n commandStats.push({\n name: row.command,\n value: row.calls\n });\n });\n _this.commandstats.setOption({\n tooltip: {\n trigger: 'item',\n formatter: '{a} <br/>{b} : {c} ({d}%)'\n },\n series: [{\n name: '命令',\n type: 'pie',\n roseType: 'radius',\n radius: [15, 95],\n center: ['50%', '38%'],\n data: commandStats,\n animationEasing: 'cubicInOut',\n animationDuration: 1000\n }]\n });\n // 使用内存信息\n _this.usedmemory = _echarts.default.init(_this.$refs.usedmemory, 'macarons');\n _this.usedmemory.setOption({\n tooltip: {\n formatter: '{b} <br/>{a} : ' + _this.cache.info.used_memory_human\n },\n series: [{\n name: '峰值',\n type: 'gauge',\n min: 0,\n max: 1000,\n detail: {\n formatter: _this.cache.info.used_memory_human\n },\n data: [{\n value: parseFloat(_this.cache.info.used_memory_human),\n name: '内存消耗'\n }]\n }]\n });\n });\n // 查询 Redis Key 模板列表\n (0, _redis.getKeyDefineList)().then(function (res) {\n console.log(res);\n _this.keyDefineList = res.info;\n _this.keyDefineListLoad = false;\n });\n (0, _redis.getKeyValueList)().then(function (res) {\n console.log('keyAndValue', res);\n _this.keyAndValues = res;\n });\n },\n clearRedisData: function clearRedisData(row) {\n var _this2 = this;\n this.$confirm('此操作将永久删除该redis缓存数据, 是否继续?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n var ids = [];\n ids.push(row.key);\n (0, _redis.batch)(ids).then(function (res) {\n _this2.$message({\n type: 'success',\n message: '删除成功!'\n });\n location.reload();\n });\n }).catch(function () {\n _this2.$message({\n type: 'info',\n message: '已取消删除'\n });\n });\n },\n handleSelectionChange: function handleSelectionChange(val) {\n console.log(val);\n this.multipleSelection = val;\n this.delBtlStatu = val.length == 0;\n },\n batchDel: function batchDel() {\n var _this3 = this;\n this.$confirm('此操作将永久删除' + this.multipleSelection.length + '条缓存数据, 是否继续?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n var ids = [];\n for (var i in _this3.multipleSelection) {\n ids.push(_this3.multipleSelection[i].key);\n }\n (0, _redis.batch)(ids).then(function (res) {\n _this3.$message({\n type: 'success',\n message: '删除成功!'\n });\n location.reload();\n });\n }).catch(function () {\n _this3.$message({\n type: 'info',\n message: '已取消删除'\n });\n });\n }\n }\n};",null]}