{"remainingRequest":"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\\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":["\r\nimport mixinViewModule from '@/mixins/view-module'\r\nimport { addDynamicRoute } from '@/router'\r\nexport default {\r\n mixins: [mixinViewModule],\r\n data () {\r\n return {\r\n mixinViewModuleOptions: {\r\n getDataListURL: '/sys/notice/mynotice/page',\r\n getDataListIsPage: true\r\n },\r\n dataForm: {\r\n type: ''\r\n }\r\n }\r\n },\r\n methods: {\r\n viewHandle (row) {\r\n // 路由参数\r\n const routeParams = {\r\n routeName: `${this.$route.name}__${row.id}`,\r\n title: this.$t('notice.view2'),\r\n path: 'notice/notice-user-view',\r\n params: {\r\n id: row.id\r\n }\r\n }\r\n\r\n // 如果未读,则标记为已读\r\n if (row.readStatus === 0) {\r\n this.updateReadStatus(row.id)\r\n }\r\n\r\n // 动态路由\r\n addDynamicRoute(routeParams, this.$router)\r\n },\r\n updateReadStatus (noticeId) {\r\n this.$http['put']('/sys/notice/mynotice/read/' + noticeId).then(({ data: res }) => {\r\n if (res.code !== 0) {\r\n return this.$message.error(res.msg)\r\n }\r\n }).catch(() => {})\r\n }\r\n }\r\n}\r\n",{"version":3,"sources":["notice-user.vue"],"names":[],"mappings":";AA+CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"notice-user.vue","sourceRoot":"src/views/modules/notice","sourcesContent":["\r\n\r\n\r\n"]}]}