1 line
6.4 KiB
JSON
1 line
6.4 KiB
JSON
{"remainingRequest":"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":["//\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 () {\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",{"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/sys","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"]}]} |