forked from liweijie/education
1 line
5.6 KiB
JSON
1 line
5.6 KiB
JSON
{"remainingRequest":"C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\Admin\\Desktop\\education\\frontend\\src\\views\\system\\notice\\ReadUsers.vue?vue&type=style&index=0&id=7b33fe9e&scoped=true&lang=css","dependencies":[{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\src\\views\\system\\notice\\ReadUsers.vue","mtime":1787567871662},{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\css-loader\\dist\\cjs.js","mtime":1787309792478},{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":1787309794547},{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\postcss-loader\\src\\index.js","mtime":1787309793084},{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1787309791955},{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\vue-loader\\lib\\index.js","mtime":1787309793790}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCg0KLnJlYWQtc3RhdCB7DQogIGZvbnQtc2l6ZTogMTNweDsNCiAgY29sb3I6ICM2MDYyNjY7DQogIGxpbmUtaGVpZ2h0OiAyOHB4Ow0KfQ0KLnJlYWQtc3RhdCBzdHJvbmcgew0KICBjb2xvcjogIzAwODc1QTsNCiAgZm9udC1zaXplOiAxNXB4Ow0KICBtYXJnaW46IDAgMnB4Ow0KfQ0K"},{"version":3,"sources":["ReadUsers.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"ReadUsers.vue","sourceRoot":"src/views/system/notice","sourcesContent":["<template>\r\n <el-dialog :title=\"`「${noticeTitle}」已读用户`\" :visible.sync=\"visible\" width=\"760px\" top=\"6vh\" append-to-body @close=\"handleClose\">\r\n <el-form :model=\"queryParams\" ref=\"queryForm\" size=\"small\" :inline=\"true\" style=\"margin-bottom: 4px;\">\r\n <el-form-item prop=\"searchValue\">\r\n <el-input\r\n v-model=\"queryParams.searchValue\"\r\n placeholder=\"登录名称 / 用户名称\"\r\n clearable\r\n prefix-icon=\"el-icon-search\"\r\n style=\"width: 220px;\"\r\n @keyup.enter.native=\"handleQuery\"\r\n @clear=\"handleQuery\"\r\n />\r\n </el-form-item>\r\n <el-form-item>\r\n <el-button type=\"primary\" icon=\"el-icon-search\" size=\"mini\" @click=\"handleQuery\">搜索</el-button>\r\n <el-button icon=\"el-icon-refresh\" size=\"mini\" @click=\"resetQuery\">重置</el-button>\r\n </el-form-item>\r\n <el-form-item style=\"float: right; margin-right: 0;\">\r\n <span class=\"read-stat\">\r\n 共 <strong>{{ total }}</strong> 人已读\r\n </span>\r\n </el-form-item>\r\n </el-form>\r\n <el-table v-loading=\"loading\" :data=\"userList\" size=\"small\" stripe height=\"340px\">\r\n <el-table-column type=\"index\" label=\"序号\" width=\"55\" align=\"center\" />\r\n <el-table-column label=\"登录名称\" prop=\"userName\" align=\"center\" :show-overflow-tooltip=\"true\" />\r\n <el-table-column label=\"用户名称\" prop=\"nickName\" align=\"center\" :show-overflow-tooltip=\"true\" />\r\n <el-table-column label=\"所属部门\" prop=\"deptName\" align=\"center\" :show-overflow-tooltip=\"true\" />\r\n <el-table-column label=\"手机号码\" prop=\"phonenumber\" align=\"center\" width=\"120\" />\r\n <el-table-column label=\"阅读时间\" prop=\"readTime\" align=\"center\" width=\"160\">\r\n <template slot-scope=\"scope\">\r\n <span>{{ parseTime(scope.row.readTime) }}</span>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <pagination v-show=\"total > 0\" :total=\"total\" :page.sync=\"queryParams.pageNum\" :limit.sync=\"queryParams.pageSize\" @pagination=\"getList\" style=\"padding: 6px 0px;\"/>\r\n </el-dialog>\r\n</template>\r\n\r\n<script>\r\nimport { listNoticeReadUsers } from \"@/api/system/notice\"\r\n\r\nexport default {\r\n name: \"ReadUsers\",\r\n data() {\r\n return {\r\n visible: false,\r\n loading: false,\r\n noticeId: undefined,\r\n noticeTitle: \"\",\r\n total: 0,\r\n userList: [],\r\n queryParams: {\r\n pageNum: 1,\r\n pageSize: 10,\r\n noticeId: undefined,\r\n searchValue: undefined\r\n }\r\n }\r\n },\r\n methods: {\r\n open(row) {\r\n this.noticeId = row.noticeId\r\n this.noticeTitle = row.noticeTitle\r\n this.queryParams.noticeId = row.noticeId\r\n this.queryParams.searchValue = undefined\r\n this.queryParams.pageNum = 1\r\n this.visible = true\r\n this.getList()\r\n },\r\n getList() {\r\n this.loading = true\r\n listNoticeReadUsers(this.queryParams).then(res => {\r\n this.userList = res.rows\r\n this.total = res.total\r\n }).finally(() => {\r\n this.loading = false\r\n })\r\n },\r\n handleQuery() {\r\n this.queryParams.pageNum = 1\r\n this.getList()\r\n },\r\n resetQuery() {\r\n this.resetForm(\"queryForm\")\r\n this.handleQuery()\r\n },\r\n handleClose() {\r\n this.userList = []\r\n this.total = 0\r\n this.queryParams.searchValue = undefined\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.read-stat {\r\n font-size: 13px;\r\n color: #606266;\r\n line-height: 28px;\r\n}\r\n.read-stat strong {\r\n color: #00875A;\r\n font-size: 15px;\r\n margin: 0 2px;\r\n}\r\n</style>\r\n"]}]} |