1 line
3.9 KiB
JSON
1 line
3.9 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\\notice\\NoticeIcon.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\system\\notice\\NoticeIcon.vue","mtime":1732871026791},{"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;\nvar _sysNotice = _interopRequireDefault(require(\"./sysNotice\"));\nvar _VueBaseCode = require(\"./VueBaseCode\");\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 dicts: ['deal_status', 'have_read_type', 'notice_type'],\n name: 'NoticeIcon',\n data: function data() {\n return {\n loading: false,\n visible: false,\n activeName: '1',\n // 未读消息数量\n notReadMsgCount: 0,\n // 消息内容\n notReadMsgList: []\n };\n },\n beforeMount: function beforeMount() {\n this.getMessage();\n },\n mounted: function mounted() {\n this.getMessage();\n this.receivedCount();\n this.$bus.on(_VueBaseCode.NOTICE_MESSAGE_UPDATE, this.receivedCount); // 监听事件\n },\n destroyed: function destroyed() {\n this.$bus.off(_VueBaseCode.NOTICE_MESSAGE_UPDATE);\n },\n methods: {\n /**\r\n * 打开列表页\r\n */\n fetchNotice: function fetchNotice() {\n if (this.visible) {\n this.visible = false;\n this.loading = false;\n } else {\n this.visible = true;\n this.loading = true;\n // 消息列表\n this.getMessage();\n }\n },\n getMessage: function getMessage() {\n var _this = this;\n _sysNotice.default.pageByReceive().then(function (res) {\n _this.notReadMsgList = res;\n _this.loading = false;\n });\n },\n /**\r\n * 未读的消息数量\r\n */\n receivedCount: function receivedCount() {\n var _this2 = this;\n // 查询当前用户的未读消息数量\n _sysNotice.default.countByReceiveNotRead().then(function (res) {\n _this2.notReadMsgCount = res;\n });\n },\n /**\r\n * 查看消息\r\n */\n showMessage: function showMessage(message) {\n var _this3 = this;\n // 标记已读\n _sysNotice.default.read(message.notice_id).then(function () {\n _this3.receivedCount();\n });\n this.$bus.emit(_VueBaseCode.NOTICE_SHOW_MESSAGE, message);\n this.visible = false;\n },\n /**\r\n * 跳转到站内信界面\r\n */\n toSiteMessage: function toSiteMessage() {\n this.$router.push({\n path: '/monitor/sysNotice'\n });\n this.visible = false;\n },\n handleClick: function handleClick(tab, event) {\n // console.log(this.dict.notice_type)\n // console.log(tab, event)\n }\n }\n};",null]} |