1 line
7.5 KiB
JSON
1 line
7.5 KiB
JSON
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\sys\\notice-user.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\sys\\notice-user.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\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//\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: 'sys/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\n this.$http['put']('/sys/notice/mynotice/read/' + noticeId).then(function (_ref) {\n var res = _ref.data;\n\n if (res.code !== 0) {\n return _this.$message.error(res.msg);\n }\n }).catch(function () {});\n }\n }\n};",{"version":3,"sources":["notice-user.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CA,OAAA,eAAA,MAAA,sBAAA;AACA,SAAA,eAAA,QAAA,UAAA;AACA,eAAA;AACA,EAAA,MAAA,EAAA,CAAA,eAAA,CADA;AAEA,EAAA,IAFA,kBAEA;AACA,WAAA;AACA,MAAA,sBAAA,EAAA;AACA,QAAA,cAAA,EAAA,2BADA;AAEA,QAAA,iBAAA,EAAA;AAFA,OADA;AAKA,MAAA,QAAA,EAAA;AACA,QAAA,IAAA,EAAA;AADA;AALA,KAAA;AASA,GAZA;AAaA,EAAA,OAAA,EAAA;AACA,IAAA,UADA,sBACA,GADA,EACA;AACA;AACA,UAAA,WAAA,GAAA;AACA,QAAA,SAAA,YAAA,KAAA,MAAA,CAAA,IAAA,eAAA,GAAA,CAAA,EAAA,CADA;AAEA,QAAA,KAAA,EAAA,KAAA,EAAA,CAAA,cAAA,CAFA;AAGA,QAAA,IAAA,EAAA,sBAHA;AAIA,QAAA,MAAA,EAAA;AACA,UAAA,EAAA,EAAA,GAAA,CAAA;AADA,SAJA,CASA;;AATA,OAAA;;AAUA,UAAA,GAAA,CAAA,UAAA,KAAA,CAAA,EAAA;AACA,aAAA,gBAAA,CAAA,GAAA,CAAA,EAAA;AACA,OAdA,CAgBA;;;AACA,MAAA,eAAA,CAAA,WAAA,EAAA,KAAA,OAAA,CAAA;AACA,KAnBA;AAoBA,IAAA,gBApBA,4BAoBA,QApBA,EAoBA;AAAA;;AACA,WAAA,KAAA,CAAA,KAAA,EAAA,+BAAA,QAAA,EAAA,IAAA,CAAA,gBAAA;AAAA,YAAA,GAAA,QAAA,IAAA;;AACA,YAAA,GAAA,CAAA,IAAA,KAAA,CAAA,EAAA;AACA,iBAAA,KAAA,CAAA,QAAA,CAAA,KAAA,CAAA,GAAA,CAAA,GAAA,CAAA;AACA;AACA,OAJA,EAIA,KAJA,CAIA,YAAA,CAAA,CAJA;AAKA;AA1BA;AAbA,CAAA","sourcesContent":["<template>\n <el-card shadow=\"never\" class=\"aui-card--fill\">\n <div class=\"mod-demo__sysnoticeuser\">\n <el-form :inline=\"true\" :model=\"dataForm\" @keyup.enter.native=\"getDataList()\">\n <el-form-item>\n <ren-select v-model=\"dataForm.type\" dict-type=\"notice_type\" :placeholder=\"$t('notice.type')\"></ren-select>\n </el-form-item>\n <el-form-item>\n <el-button @click=\"getDataList()\">{{ $t('query') }}</el-button>\n </el-form-item>\n </el-form>\n <el-table v-loading=\"dataListLoading\" :data=\"dataList\" border @selection-change=\"dataListSelectionChangeHandle\" style=\"width: 100%;\">\n <el-table-column type=\"selection\" header-align=\"center\" align=\"center\" width=\"50\"></el-table-column>\n <el-table-column prop=\"title\" :label=\"$t('notice.title')\" header-align=\"center\" align=\"center\"></el-table-column>\n <el-table-column prop=\"type\" :label=\"$t('notice.type')\" header-align=\"center\" align=\"center\" width=\"150\">\n <template slot-scope=\"scope\">\n {{ $getDictLabel(\"notice_type\", scope.row.type) }}\n </template>\n </el-table-column>\n <el-table-column prop=\"senderName\" :label=\"$t('notice.senderName')\" header-align=\"center\" align=\"center\" width=\"150\"></el-table-column>\n <el-table-column prop=\"senderDate\" :label=\"$t('notice.senderDate')\" header-align=\"center\" align=\"center\" width=\"170\"></el-table-column>\n <el-table-column prop=\"readStatus\" :label=\"$t('notice.readStatus')\" header-align=\"center\" align=\"center\" width=\"130\">\n <template slot-scope=\"scope\">\n <el-tag v-if=\"scope.row.readStatus === 0\" size=\"small\" type=\"danger\">{{ $t('notice.readStatus0') }}</el-tag>\n <el-tag v-else size=\"small\" type=\"success\">{{ $t('notice.readStatus1') }}</el-tag>\n </template>\n </el-table-column>\n <el-table-column :label=\"$t('handle')\" fixed=\"right\" header-align=\"center\" align=\"center\" width=\"150\">\n <template slot-scope=\"scope\">\n <el-button type=\"text\" size=\"small\" @click=\"viewHandle(scope.row)\">{{ $t('notice.view') }}</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-pagination\n :current-page=\"page\"\n :page-sizes=\"[10, 20, 50, 100]\"\n :page-size=\"limit\"\n :total=\"total\"\n layout=\"total, sizes, prev, pager, next, jumper\"\n @size-change=\"pageSizeChangeHandle\"\n @current-change=\"pageCurrentChangeHandle\">\n </el-pagination>\n </div>\n </el-card>\n</template>\n\n<script>\nimport mixinViewModule from '@/mixins/view-module'\nimport { addDynamicRoute } from '@/router'\nexport default {\n mixins: [mixinViewModule],\n 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 (row) {\n // 路由参数\n const routeParams = {\n routeName: `${this.$route.name}__${row.id}`,\n title: this.$t('notice.view2'),\n path: 'sys/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 (noticeId) {\n this.$http['put']('/sys/notice/mynotice/read/' + noticeId).then(({ data: res }) => {\n if (res.code !== 0) {\n return this.$message.error(res.msg)\n }\n }).catch(() => {})\n }\n }\n}\n</script>\n"],"sourceRoot":"src/views/modules/sys"}]} |