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
16 KiB

{"remainingRequest":"D:\\code\\vue\\front\\node_modules\\babel-loader\\lib\\index.js!D:\\code\\vue\\front\\node_modules\\cache-loader\\dist\\cjs.js??ref--1-0!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\\babel.config.js","mtime":1709633798000},{"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:aW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMuYXJyYXkucHVzaC5qcyI7CmV4cG9ydCBkZWZhdWx0IHsKICBkYXRhKCkgewogICAgcmV0dXJuIHsKICAgICAgbGF5b3V0czogJycsCiAgICAgIHRhYmxlRGF0YTogW10sCiAgICAgIHRvdGFsOiAxLAogICAgICBwYWdlU2l6ZTogMTAsCiAgICAgIHBhZ2VTaXplczogWzEwLCAyMCwgMzAsIDUwXSwKICAgICAgdG90YWxQYWdlOiAxCiAgICB9OwogIH0sCiAgY3JlYXRlZCgpIHsKICAgIHRoaXMuZ2V0TXlGb3J1bUxpc3QoMSk7CiAgfSwKICBtZXRob2RzOiB7CiAgICBiYWNrQ2xpY2soKSB7CiAgICAgIHRoaXMuJHJvdXRlci5wdXNoKCcvaW5kZXgvY2VudGVyJyk7CiAgICB9LAogICAgZ2V0TXlGb3J1bUxpc3QocGFnZSkgewog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cnVtQWRkJywKICAgICAgICBxdWVyeTogewogICAgICAgICAgaWQ6IHJvdy5pZAogICAgICAgIH0KICAgICAgfSk7CiAgICB9LAogICAgaGFuZGxlRGVsZXRlKGluZGV4LCByb3cpIHsKICAgICAgdGhpcy4kY29uZmlybSgn5piv5ZCm56Gu6K6k5Yig6ZmkPycsICfmj5DnpLonLCB7CiAgICAgICAgY29uZmlybUJ1dHRvblRleHQ6ICfnoa7lrponLAogICAgICAgIGNhbmNlbEJ1dHRvblRleHQ6ICflj5bmtognLAogICAgICAgIHR5cGU6ICd3YXJuaW5nJwogICAgICB9KS50aGVuKCgpID0+IHsKICAgICAgICBsZXQgZGVsSWRzID0gbmV3IEFycmF5KCk7CiAgICAgICAgZGVsSWRzLnB1c2gocm93LmlkKTsKICAgICAgICB0aGlzLiRodHRwLnBvc3QoJ2ZvcnVtL2RlbGV0ZScsIGRlbElkcykudGhlbihyZXMgPT4gewogICAgICAgICAgaWYgKHJlcy5kYXRhLmNvZGUgPT0gMCkgewogICAgICAgICAgICB0aGlzLiRtZXNzYWdlKHsKICAgICAgICAgICAgICB0eXBlOiAnc3VjY2VzcycsCiAgICAgICAgICAgICAgbWVzc2FnZTogJ+WIoOmZpOaIkOWKnyEnLAogICAgICAgICAgICAgIGR1cmF0aW9uOiAxNTAwLAogICAgICAgICAgICAgIG9uQ2xvc2U6ICgpID0+IHsKICAgICAgICAgICAgICAgIHRoaXMuZ2V0TXlGb3J1bUxpc3QoMSk7CiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgfSk7CiAgICB9CiAgfQp9Ow=="},{"version":3,"names":["data","layouts","tableData","total","pageSize","pageSizes","totalPage","created","getMyForumList","methods","backClick","$router","push","page","$http","get","params","limit","parentid","sort","order","then","res","code","list","curChange","prevClick","nextClick","handleEdit","index","row","path","query","id","handleDelete","$confirm","confirmButtonText","cancelButtonText","type","delIds","Array","post","$message","message","duration","onClose"],"sources":["src/pages/forum/myForumList.vue"],"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"],"mappings":";AAiDA;EACAA,KAAA;IACA;MACAC,OAAA;MACAC,SAAA;MACAC,KAAA;MACAC,QAAA;MAAAC,SAAA;MACAC,SAAA;IACA;EACA;EACAC,QAAA;IACA,KAAAC,cAAA;EACA;EACAC,OAAA;IACAC,UAAA;MACA,KAAAC,OAAA,CAAAC,IAAA;IACA;IACAJ,eAAAK,IAAA;MACA,KAAAC,KAAA,CAAAC,GAAA;QAAAC,MAAA;UAAAH,IAAA;UAAAI,KAAA,OAAAb,QAAA;UAAAc,QAAA;UAAAC,IAAA;UAAAC,KAAA;QAAA;MAAA,GAAAC,IAAA,CAAAC,GAAA;QACA,IAAAA,GAAA,CAAAtB,IAAA,CAAAuB,IAAA;UACA,KAAArB,SAAA,GAAAoB,GAAA,CAAAtB,IAAA,CAAAA,IAAA,CAAAwB,IAAA;UACA,KAAArB,KAAA,GAAAmB,GAAA,CAAAtB,IAAA,CAAAA,IAAA,CAAAG,KAAA;UACA,KAAAC,QAAA,GAAAkB,GAAA,CAAAtB,IAAA,CAAAA,IAAA,CAAAI,QAAA;UAAA,KAAAC,SAAA,SAAAD,QAAA,OAAAA,QAAA,WAAAA,QAAA,WAAAA,QAAA;UACA,KAAAE,SAAA,GAAAgB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