You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
14 KiB
1 line
14 KiB
{"remainingRequest":"D:\\code\\vue\\front\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\code\\vue\\front\\src\\pages\\forum\\myForumList.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\code\\vue\\front\\src\\pages\\forum\\myForumList.vue","mtime":1709633805000},{"path":"D:\\code\\vue\\front\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\code\\vue\\front\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\code\\vue\\front\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\code\\vue\\front\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:DQogIGV4cG9ydCBkZWZhdWx0IHsNCiAgICBkYXRhKCkgew0KICAgICAgcmV0dXJuIHsNCgkJbGF5b3V0czogJycsDQogICAgICAgIHRhYmxlRGF0YTogW10sDQogICAgICAgIHRvdGFsOiAxLA0KICAgICAgICBwYWdlU2l6ZTogMTAscGFnZVNpemVzOiBbMTAsMjAsMzAsNTBdLA0KICAgICAgICB0b3RhbFBhZ2U6IDENCiAgICAgIH0NCiAgICB9LA0KICAgIGNyZWF0ZWQoKSB7DQogICAgICB0aGlzLmdldE15Rm9ydW1MaXN0KDEpOw0KICAgIH0sDQogICAgbWV0aG9kczogew0KICAgICAgYmFja0NsaWNrKCkgew0KICAgICAgICAgIHRoaXMuJHJvdXRlci5wdXNoKCcvaW5kZXgvY2VudGVyJykNCiAgICAgIH0sDQogICAgICBnZXRNeUZvcnVtTGlzdChwYWdlKSB7DQogICAgICAgIHRoaXMuJGh0dHAuZ2V0KCdmb3J1bS9saXN0Jywge3BhcmFtczoge3BhZ2UsIGxpbWl0OiB0aGlzLnBhZ2VTaXplLCBwYXJlbnRpZDogMCwgc29ydDogJ2lzd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ICAgICBjb25maXJtQnV0dG9uVGV4dDogJ+ehruWumicsDQogICAgICAgICAgY2FuY2VsQnV0dG9uVGV4dDogJ+WPlua2iCcsDQogICAgICAgICAgdHlwZTogJ3dhcm5pbmcnDQogICAgICAgIH0pLnRoZW4oKCkgPT4gew0KICAgICAgICAgIGxldCBkZWxJZHMgPSBuZXcgQXJyYXkoKTsNCiAgICAgICAgICBkZWxJZHMucHVzaChyb3cuaWQpOw0KICAgICAgICAgIHRoaXMuJGh0dHAucG9zdCgnZm9ydW0vZGVsZXRlJywgZGVsSWRzKS50aGVuKHJlcyA9PiB7DQogICAgICAgICAgICBpZiAocmVzLmRhdGEuY29kZSA9PSAwKSB7DQogICAgICAgICAgICAgIHRoaXMuJG1lc3NhZ2Uoew0KICAgICAgICAgICAgICAgIHR5cGU6ICdzdWNjZXNzJywNCiAgICAgICAgICAgICAgICBtZXNzYWdlOiAn5Yig6Zmk5oiQ5YqfIScsDQogICAgICAgICAgICAgICAgZHVyYXRpb246IDE1MDAsDQogICAgICAgICAgICAgICAgb25DbG9zZTogKCkgPT4gew0KICAgICAgICAgICAgICAgICAgdGhpcy5nZXRNeUZvcnVtTGlzdCgxKTsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgIH0pOw0KICAgICAgICAgICAgfQ0KICAgICAgICAgIH0pOw0KICAgICAgICB9KTsNCiAgICAgIH0NCiAgICB9DQogIH0NCg=="},{"version":3,"sources":["myForumList.vue"],"names":[],"mappings":";AAiDA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"myForumList.vue","sourceRoot":"src/pages/forum","sourcesContent":["<template>\r\n<div :style='{\"width\":\"100%\",\"padding\":\"30px 7% 40px\",\"margin\":\"0px auto\",\"position\":\"relative\",\"background\":\"#fff\"}'>\r\n <el-button :style='{\"border\":\"0\",\"cursor\":\"pointer\",\"padding\":\"0 10px\",\"margin\":\"0 5px 0 0\",\"outline\":\"none\",\"color\":\"#333\",\"borderRadius\":\"4px\",\"background\":\"#F5BB0050\",\"width\":\"auto\",\"lineHeight\":\"40px\",\"fontSize\":\"14px\",\"height\":\"40px\"}' type=\"warning\" size=\"mini\" @click=\"backClick\" class=\"el-icon-back\">返回</el-button>\r\n\t<div class=\"section-title\" :style='{\"margin\":\"10px 0\",\"color\":\"#fff\",\"textAlign\":\"center\",\"background\":\"#333\",\"width\":\"100%\",\"fontSize\":\"20px\",\"lineHeight\":\"54px\"}'>我的发布</div>\r\n <el-table\r\n :data=\"tableData\"\r\n style=\"width: 100%\">\r\n <el-table-column\r\n label=\"标题\"\r\n prop=\"title\">\r\n </el-table-column>\r\n <el-table-column\r\n label=\"发布时间\"\r\n prop=\"addtime\">\r\n </el-table-column>\r\n <el-table-column label=\"操作\" width=\"150\">\r\n <template slot-scope=\"scope\">\r\n <el-button\r\n size=\"mini\"\r\n @click=\"handleEdit(scope.$index, scope.row)\">修改</el-button>\r\n <el-button\r\n size=\"mini\"\r\n type=\"danger\"\r\n @click=\"handleDelete(scope.$index, scope.row)\">删除</el-button>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n\t\r\n <el-pagination\r\n background\r\n id=\"pagination\" class=\"pagination\"\r\n :pager-count=\"7\"\r\n :page-size=\"pageSize\"\r\n :page-sizes=\"pageSizes\"\r\n\t prev-text=\"<\"\r\n next-text=\">\"\r\n :hide-on-single-page=\"false\"\r\n :layout='[\"total\",\"prev\",\"pager\",\"next\",\"sizes\",\"jumper\"].join()'\r\n :total=\"total\"\r\n :style='{\"padding\":\"0 7%\",\"margin\":\"10px auto\",\"whiteSpace\":\"nowrap\",\"overflow\":\"hidden\",\"color\":\"#333\",\"textAlign\":\"center\",\"width\":\"100%\",\"clear\":\"both\",\"fontWeight\":\"500\",\"order\":\"50\"}'\r\n @current-change=\"curChange\"\r\n @prev-click=\"prevClick\"\r\n @next-click=\"nextClick\"\r\n ></el-pagination>\r\n\t\r\n</div>\r\n</template>\r\n\r\n<script>\r\n export default {\r\n data() {\r\n return {\r\n\t\tlayouts: '',\r\n tableData: [],\r\n total: 1,\r\n pageSize: 10,pageSizes: [10,20,30,50],\r\n totalPage: 1\r\n }\r\n },\r\n created() {\r\n this.getMyForumList(1);\r\n },\r\n methods: {\r\n backClick() {\r\n this.$router.push('/index/center')\r\n },\r\n getMyForumList(page) {\r\n this.$http.get('forum/list', {params: {page, limit: this.pageSize, parentid: 0, sort: 'istop,toptime', order: 'desc,desc'}}).then(res => {\r\n if (res.data.code == 0) {\r\n this.tableData = res.data.data.list;\r\n this.total = res.data.data.total;\r\n this.pageSize = res.data.data.pageSize;this.pageSizes = [this.pageSize, this.pageSize*2, this.pageSize*3, this.pageSize*5];\r\n this.totalPage = res.data.data.totalPage;\r\n }\r\n });\r\n },\r\n curChange(page) {\r\n this.getMyForumList(page);\r\n },\r\n prevClick(page) {\r\n this.getMyForumList(page);\r\n },\r\n nextClick(page) {\r\n this.getMyForumList(page);\r\n },\r\n handleEdit(index, row) {\r\n this.$router.push({path: '/index/forumAdd', query: {id: row.id}})\r\n },\r\n handleDelete(index, row) {\r\n this.$confirm('是否确认删除?', '提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n type: 'warning'\r\n }).then(() => {\r\n let delIds = new Array();\r\n delIds.push(row.id);\r\n this.$http.post('forum/delete', delIds).then(res => {\r\n if (res.data.code == 0) {\r\n this.$message({\r\n type: 'success',\r\n message: '删除成功!',\r\n duration: 1500,\r\n onClose: () => {\r\n this.getMyForumList(1);\r\n }\r\n });\r\n }\r\n });\r\n });\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style rel=\"stylesheet/scss\" lang=\"scss\" scoped>\r\n .section {\r\n width: 900px;\r\n margin: 0 auto;\r\n }\r\n \r\n #pagination.el-pagination /deep/ .el-pagination__total {\r\n \t \tmargin: 0 10px 0 0;\r\n \t \tcolor: #666;\r\n \t \tfont-weight: 400;\r\n \t \tdisplay: inline-block;\r\n \t \tvertical-align: top;\r\n \t \tfont-size: 13px;\r\n \t \tline-height: 28px;\r\n \t \theight: 28px;\r\n \t }\r\n \r\n #pagination.el-pagination /deep/ .btn-prev {\r\n \t \tborder: none;\r\n \t \tborder-radius: 2px;\r\n \t \tpadding: 0;\r\n \t \tmargin: 0 5px;\r\n \t \tcolor: #666;\r\n \t \tbackground: #f4f4f5;\r\n \t \tdisplay: inline-block;\r\n \t \tvertical-align: top;\r\n \t \tfont-size: 13px;\r\n \t \tline-height: 28px;\r\n \t \tmin-width: 35px;\r\n \t \theight: 28px;\r\n \t }\r\n \r\n #pagination.el-pagination /deep/ .btn-next {\r\n \t \tborder: none;\r\n \t \tborder-radius: 2px;\r\n \t \tpadding: 0;\r\n \t \tmargin: 0 5px;\r\n \t \tcolor: #666;\r\n \t \tbackground: #f4f4f5;\r\n \t \tdisplay: inline-block;\r\n \t \tvertical-align: top;\r\n \t \tfont-size: 13px;\r\n \t \tline-height: 28px;\r\n \t \tmin-width: 35px;\r\n \t \theight: 28px;\r\n \t }\r\n \r\n #pagination.el-pagination /deep/ .btn-prev:disabled {\r\n \t \tborder: none;\r\n \t \tcursor: not-allowed;\r\n \t \tborder-radius: 2px;\r\n \t \tpadding: 0;\r\n \t \tmargin: 0 5px;\r\n \t \tcolor: #C0C4CC;\r\n \t \tbackground: #f4f4f5;\r\n \t \tdisplay: inline-block;\r\n \t \tvertical-align: top;\r\n \t \tfont-size: 13px;\r\n \t \tline-height: 28px;\r\n \t \theight: 28px;\r\n \t }\r\n \r\n #pagination.el-pagination /deep/ .btn-next:disabled {\r\n \t \tborder: none;\r\n \t \tcursor: not-allowed;\r\n \t \tborder-radius: 2px;\r\n \t \tpadding: 0;\r\n \t \tmargin: 0 5px;\r\n \t \tcolor: #C0C4CC;\r\n \t \tbackground: #f4f4f5;\r\n \t \tdisplay: inline-block;\r\n \t \tvertical-align: top;\r\n \t \tfont-size: 13px;\r\n \t \tline-height: 28px;\r\n \t \theight: 28px;\r\n \t }\r\n \r\n #pagination.el-pagination /deep/ .el-pager {\r\n \t \tpadding: 0;\r\n \t \tmargin: 0;\r\n \t \tdisplay: inline-block;\r\n \t \tvertical-align: top;\r\n \t }\r\n \r\n #pagination.el-pagination /deep/ .el-pager .number {\r\n \t \tcursor: pointer;\r\n \t \tpadding: 0 4px;\r\n \t \tmargin: 0 5px;\r\n \t \tcolor: #666;\r\n \t \tdisplay: inline-block;\r\n \t \tvertical-align: top;\r\n \t \tfont-size: 13px;\r\n \t \tline-height: 28px;\r\n \t \tborder-radius: 2px;\r\n \t \tbackground: #f4f4f5;\r\n \t \ttext-align: center;\r\n \t \tmin-width: 30px;\r\n \t \theight: 28px;\r\n \t }\r\n \r\n #pagination.el-pagination /deep/ .el-pager .number:hover {\r\n \t \tcursor: pointer;\r\n \t \tpadding: 0 4px;\r\n \t \tmargin: 0 5px;\r\n \t \tcolor: #fff;\r\n \t \tdisplay: inline-block;\r\n \t \tvertical-align: top;\r\n \t \tfont-size: 13px;\r\n \t \tline-height: 28px;\r\n \t \tborder-radius: 2px;\r\n \t \tbackground: #F5BB00;\r\n \t \ttext-align: center;\r\n \t \tmin-width: 30px;\r\n \t \theight: 28px;\r\n \t }\r\n \r\n #pagination.el-pagination /deep/ .el-pager .number.active {\r\n \t \tcursor: default;\r\n \t \tpadding: 0 4px;\r\n \t \tmargin: 0 5px;\r\n \t \tcolor: #FFF;\r\n \t \tdisplay: inline-block;\r\n \t \tvertical-align: top;\r\n \t \tfont-size: 13px;\r\n \t \tline-height: 28px;\r\n \t \tborder-radius: 2px;\r\n \t \tbackground: #F5BB00;\r\n \t \ttext-align: center;\r\n \t \tmin-width: 30px;\r\n \t \theight: 28px;\r\n \t }\r\n \r\n #pagination.el-pagination /deep/ .el-pagination__sizes {\r\n \t \tdisplay: inline-block;\r\n \t \tvertical-align: top;\r\n \t \tfont-size: 13px;\r\n \t \tline-height: 28px;\r\n \t \theight: 28px;\r\n \t }\r\n \r\n #pagination.el-pagination /deep/ .el-pagination__sizes .el-input {\r\n \t \tmargin: 0 5px;\r\n \t \twidth: 100px;\r\n \t \tposition: relative;\r\n \t }\r\n \r\n #pagination.el-pagination /deep/ .el-pagination__sizes .el-input .el-input__inner {\r\n \t \tborder: 1px solid #DCDFE6;\r\n \t \tcursor: pointer;\r\n \t \tpadding: 0 25px 0 8px;\r\n \t \tcolor: #606266;\r\n \t \tdisplay: inline-block;\r\n \t \tfont-size: 13px;\r\n \t \tline-height: 28px;\r\n \t \tborder-radius: 3px;\r\n \t \toutline: 0;\r\n \t \tbackground: #FFF;\r\n \t \twidth: 100%;\r\n \t \ttext-align: center;\r\n \t \theight: 28px;\r\n \t }\r\n \r\n #pagination.el-pagination /deep/ .el-pagination__sizes .el-input span.el-input__suffix {\r\n \t \ttop: 0;\r\n \t \tposition: absolute;\r\n \t \tright: 0;\r\n \t \theight: 100%;\r\n \t }\r\n \r\n #pagination.el-pagination /deep/ .el-pagination__sizes .el-input .el-input__suffix .el-select__caret {\r\n \t \tcursor: pointer;\r\n \t \tcolor: #C0C4CC;\r\n \t \twidth: 25px;\r\n \t \tfont-size: 14px;\r\n \t \tline-height: 28px;\r\n \t \ttext-align: center;\r\n \t }\r\n \r\n #pagination.el-pagination /deep/ .el-pagination__jump {\r\n \t \tmargin: 0 0 0 24px;\r\n \t \tcolor: #606266;\r\n \t \tdisplay: inline-block;\r\n \t \tvertical-align: top;\r\n \t \tfont-size: 13px;\r\n \t \tline-height: 28px;\r\n \t \theight: 28px;\r\n \t }\r\n \r\n #pagination.el-pagination /deep/ .el-pagination__jump .el-input {\r\n \t \tborder-radius: 3px;\r\n \t \tpadding: 0 2px;\r\n \t \tmargin: 0 2px;\r\n \t \tdisplay: inline-block;\r\n \t \twidth: 50px;\r\n \t \tfont-size: 14px;\r\n \t \tline-height: 18px;\r\n \t \tposition: relative;\r\n \t \ttext-align: center;\r\n \t \theight: 28px;\r\n \t }\r\n \r\n #pagination.el-pagination /deep/ .el-pagination__jump .el-input .el-input__inner {\r\n \t \tborder: 1px solid #DCDFE6;\r\n \t \tcursor: pointer;\r\n \t \tpadding: 0 3px;\r\n \t \tcolor: #606266;\r\n \t \tdisplay: inline-block;\r\n \t \tfont-size: 14px;\r\n \t \tline-height: 28px;\r\n \t \tborder-radius: 3px;\r\n \t \toutline: 0;\r\n \t \tbackground: #FFF;\r\n \t \twidth: 100%;\r\n \t \ttext-align: center;\r\n \t \theight: 28px;\r\n \t }\r\n</style>\r\n"]}]} |