Files
tekelanew_acs/acs/nladmin-ui/node_modules/.cache/babel-loader/e198e8ece2b4edcd4624eb4eee08276a.json

1 line
6.3 KiB
JSON
Raw Normal View History

2024-12-03 17:40:13 +08:00
{"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.cac