{"remainingRequest":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\babel-loader\\lib\\index.js!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\modules\\notice\\notice-user.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\modules\\notice\\notice-user.vue","mtime":1581948666000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\babel.config.js","mtime":1581948662000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport mixinViewModule from '@/mixins/view-module';\nimport { addDynamicRoute } from '@/router';\nexport default {\n mixins: [mixinViewModule],\n data: function data() {\n return {\n mixinViewModuleOptions: {\n getDataListURL: '/sys/notice/mynotice/page',\n getDataListIsPage: true\n },\n dataForm: {\n type: ''\n }\n };\n },\n methods: {\n viewHandle: function viewHandle(row) {\n // 路由参数\n var routeParams = {\n routeName: \"\".concat(this.$route.name, \"__\").concat(row.id),\n title: this.$t('notice.view2'),\n path: 'notice/notice-user-view',\n params: {\n id: row.id\n }\n };\n\n // 如果未读,则标记为已读\n if (row.readStatus === 0) {\n this.updateReadStatus(row.id);\n }\n\n // 动态路由\n addDynamicRoute(routeParams, this.$router);\n },\n updateReadStatus: function updateReadStatus(noticeId) {\n var _this = this;\n this.$http['put']('/sys/notice/mynotice/read/' + noticeId).then(function (_ref) {\n var res = _ref.data;\n if (res.code !== 0) {\n return _this.$message.error(res.msg);\n }\n }).catch(function () {});\n }\n }\n};",{"version":3,"names":["mixinViewModule","addDynamicRoute","mixins","data","mixinViewModuleOptions","getDataListURL","getDataListIsPage","dataForm","type","methods","viewHandle","row","routeParams","routeName","concat","$route","name","id","title","$t","path","params","readStatus","updateReadStatus","$router","noticeId","_this","$http","then","_ref","res","code","$message","error","msg","catch"],"sources":["src/views/modules/notice/notice-user.vue"],"sourcesContent":["\r\n\r\n\r\n"],"mappings":";AA+CA,OAAAA,eAAA;AACA,SAAAC,eAAA;AACA;EACAC,MAAA,GAAAF,eAAA;EACAG,IAAA,WAAAA,KAAA;IACA;MACAC,sBAAA;QACAC,cAAA;QACAC,iBAAA;MACA;MACAC,QAAA;QACAC,IAAA;MACA;IACA;EACA;EACAC,OAAA;IACAC,UAAA,WAAAA,WAAAC,GAAA;MACA;MACA,IAAAC,WAAA;QACAC,SAAA,KAAAC,MAAA,MAAAC,MAAA,CAAAC,IAAA,QAAAF,MAAA,CAAAH,GAAA,CAAAM,EAAA;QACAC,KAAA,OAAAC,EAAA;QACAC,IAAA;QACAC,MAAA;UACAJ,EAAA,EAAAN,GAAA,CAAAM;QACA;MACA;;MAEA;MACA,IAAAN,GAAA,CAAAW,UAAA;QACA,KAAAC,gBAAA,CAAAZ,GAAA,CAAAM,EAAA;MACA;;MAEA;MACAhB,eAAA,CAAAW,WAAA,OAAAY,OAAA;IACA;IACAD,gBAAA,WAAAA,iBAAAE,QAAA;MAAA,IAAAC,KAAA;MACA,KAAAC,KAAA,uCAAAF,QAAA,EAAAG,IAAA,WAAAC,IAAA;QAAA,IAAAC,GAAA,GAAAD,IAAA,CAAA1B,IAAA;QACA,IAAA2B,GAAA,CAAAC,IAAA;UACA,OAAAL,KAAA,CAAAM,QAAA,CAAAC,KAAA,CAAAH,GAAA,CAAAI,GAAA;QACA;MACA,GAAAC,KAAA;IACA;EACA;AACA","ignoreList":[]}]}