From d485919d8daba05b2b90a73bd7ba9d3749f29464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E8=8B=B1=E6=9D=B0?= <327782001@qq.com> Date: Fri, 8 Dec 2023 07:47:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/js/app.fea40924.js | 12 +- dist/js/app.fea40924.js.map | 6 +- src/components/menus/MyArticleInfo.vue | 4 +- src/components/menus/MyCsdnUser.vue | 4 +- src/components/menus/MyTripletDayInfo.vue | 391 +++++++++++----------- 5 files changed, 208 insertions(+), 209 deletions(-) diff --git a/dist/js/app.fea40924.js b/dist/js/app.fea40924.js index e839054..1d714ac 100644 --- a/dist/js/app.fea40924.js +++ b/dist/js/app.fea40924.js @@ -4773,7 +4773,7 @@ { type: 2, name: '评论已满' }, { type: 3, name: '禁言' }, { type: 4, name: '评论太快' }, - { type: 5, name: '评论已经到了45条' }, + { type: 5, name: '评论已经到了42条' }, { type: 8, name: '其他错误' }, { type: 9, name: '评论成功' }, ], @@ -5121,7 +5121,7 @@ ;(this.pageSize = e), this.userPage() }, getTagType: function (e) { - return '未处理' == e ? 'info' : '已经点过赞' == e || '已经收藏过' == e || '已经评论过' == e ? 'success' : '文章状态不能点赞' == e || '收藏已满' == e || '收藏夹不存在' == e || '评论已满' == e || '禁言' == e || '评论已经到了45条' == e ? 'danger' : '点赞成功' == e || '收藏成功' == e || '评论成功' == e ? 'success' : '点赞已满' == e || '参数缺失' == e || '其他错误' == e || '取消点赞' == e || '评论太快' == e ? 'warning' : void 0 + return '未处理' == e ? 'info' : '已经点过赞' == e || '已经收藏过' == e || '已经评论过' == e ? 'success' : '文章状态不能点赞' == e || '收藏已满' == e || '收藏夹不存在' == e || '评论已满' == e || '禁言' == e || '评论已经到了42条' == e ? 'danger' : '点赞成功' == e || '收藏成功' == e || '评论成功' == e ? 'success' : '点赞已满' == e || '参数缺失' == e || '其他错误' == e || '取消点赞' == e || '评论太快' == e ? 'warning' : void 0 }, autoReply: function () { var e = this @@ -7947,7 +7947,7 @@ { type: 2, name: '评论已满' }, { type: 3, name: '禁言' }, { type: 4, name: '评论太快' }, - { type: 5, name: '评论已经到了45条' }, + { type: 5, name: '评论已经到了42条' }, { type: 8, name: '其他错误' }, { type: 9, name: '评论成功' }, ], @@ -8309,7 +8309,7 @@ ;(this.pageSize = e), this.articleInfoPage() }, getTagType: function (e) { - return '未处理' == e ? 'info' : '已经点过赞' == e || '已经收藏过' == e || '已经评论过' == e ? 'success' : '文章状态不能点赞' == e || '收藏已满' == e || '收藏夹不存在' == e || '评论已满' == e || '禁言' == e || '评论已经到了45条' == e ? 'danger' : '点赞成功' == e || '收藏成功' == e || '评论成功' == e ? 'success' : '点赞已满' == e || '参数缺失' == e || '其他错误' == e || '取消点赞' == e || '评论太快' == e ? 'warning' : void 0 + return '未处理' == e ? 'info' : '已经点过赞' == e || '已经收藏过' == e || '已经评论过' == e ? 'success' : '文章状态不能点赞' == e || '收藏已满' == e || '收藏夹不存在' == e || '评论已满' == e || '禁言' == e || '评论已经到了42条' == e ? 'danger' : '点赞成功' == e || '收藏成功' == e || '评论成功' == e ? 'success' : '点赞已满' == e || '参数缺失' == e || '其他错误' == e || '取消点赞' == e || '评论太快' == e ? 'warning' : void 0 }, }, }, @@ -8527,7 +8527,7 @@ { type: 2, name: '评论已满' }, { type: 3, name: '禁言' }, { type: 4, name: '评论太快' }, - { type: 5, name: '评论已经到了45条' }, + { type: 5, name: '评论已经到了42条' }, { type: 8, name: '其他错误' }, { type: 9, name: '评论成功' }, ], @@ -8630,7 +8630,7 @@ this.tripletDayInfoPage(), location.reload() }, getTagType: function (e) { - return '未处理' == e ? 'info' : '已经点过赞' == e || '已经收藏过' == e || '已经评论过' == e ? 'success' : '文章状态不能点赞' == e || '收藏已满' == e || '收藏夹不存在' == e || '评论已满' == e || '禁言' == e || '评论已经到了45条' == e ? 'danger' : '点赞成功' == e || '收藏成功' == e || '评论成功' == e ? 'success' : '点赞已满' == e || '参数缺失' == e || '其他错误' == e || '取消点赞' == e || '评论太快' == e ? 'warning' : void 0 + return '未处理' == e ? 'info' : '已经点过赞' == e || '已经收藏过' == e || '已经评论过' == e ? 'success' : '文章状态不能点赞' == e || '收藏已满' == e || '收藏夹不存在' == e || '评论已满' == e || '禁言' == e || '评论已经到了42条' == e ? 'danger' : '点赞成功' == e || '收藏成功' == e || '评论成功' == e ? 'success' : '点赞已满' == e || '参数缺失' == e || '其他错误' == e || '取消点赞' == e || '评论太快' == e ? 'warning' : void 0 }, handleCurrentChange: function (e) { ;(this.currentPage = e), this.tripletDayInfoPage() diff --git a/dist/js/app.fea40924.js.map b/dist/js/app.fea40924.js.map index a0833d3..1e06cbb 100644 --- a/dist/js/app.fea40924.js.map +++ b/dist/js/app.fea40924.js.map @@ -532,7 +532,7 @@ "import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyAphorismPoetry.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyAphorismPoetry.vue?vue&type=script&lang=js&\"", "import { render, staticRenderFns } from \"./MyAphorismPoetry.vue?vue&type=template&id=7f9d4b2f&scoped=true&\"\nimport script from \"./MyAphorismPoetry.vue?vue&type=script&lang=js&\"\nexport * from \"./MyAphorismPoetry.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyAphorismPoetry.vue?vue&type=style&index=0&id=7f9d4b2f&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7f9d4b2f\",\n null\n \n)\n\nexport default component.exports", "var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-container',[_c('el-main',[_c('el-form',{staticClass:\"demo-form-inline\",attrs:{\"inline\":true,\"model\":_vm.formInline}},[_c('el-form-item',[_c('el-input',{attrs:{\"size\":\"small\",\"clearable\":\"\",\"placeholder\":\"请输入用户名\"},nativeOn:{\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.userPage.apply(null, arguments)}},model:{value:(_vm.formInline.userName),callback:function ($$v) {_vm.$set(_vm.formInline, \"userName\", $$v)},expression:\"formInline.userName\"}})],1),_c('el-form-item',[_c('el-input',{attrs:{\"size\":\"small\",\"clearable\":\"\",\"placeholder\":\"请输入用户昵称\"},nativeOn:{\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.userPage.apply(null, arguments)}},model:{value:(_vm.formInline.nickName),callback:function ($$v) {_vm.$set(_vm.formInline, \"nickName\", $$v)},expression:\"formInline.nickName\"}})],1),_c('el-form-item',[_c('el-select',{attrs:{\"size\":\"small\",\"placeholder\":\"请选择权重\"},on:{\"change\":_vm.userPage},model:{value:(_vm.formInline.userWeight),callback:function ($$v) {_vm.$set(_vm.formInline, \"userWeight\", $$v)},expression:\"formInline.userWeight\"}},_vm._l((_vm.allOptions),function(item){return _c('el-option',{key:item.type,attrs:{\"label\":item.name,\"value\":item.type}})}),1)],1),_c('el-form-item',[_c('el-select',{attrs:{\"size\":\"small\",\"placeholder\":\"请选择文章类型\"},on:{\"change\":_vm.userPage},model:{value:(_vm.formInline.articleType),callback:function ($$v) {_vm.$set(_vm.formInline, \"articleType\", $$v)},expression:\"formInline.articleType\"}},_vm._l((_vm.articleType),function(type){return _c('el-option',{key:type,attrs:{\"label\":type,\"value\":type}})}),1)],1),_c('el-form-item',[_c('el-select',{attrs:{\"size\":\"small\",\"placeholder\":\"请选择点赞状态\"},on:{\"change\":_vm.userPage},model:{value:(_vm.formInline.likeStatus),callback:function ($$v) {_vm.$set(_vm.formInline, \"likeStatus\", $$v)},expression:\"formInline.likeStatus\"}},_vm._l((_vm.likeStatus),function(item){return _c('el-option',{key:item.type,attrs:{\"label\":item.name,\"value\":item.type}})}),1)],1),_c('el-form-item',[_c('el-select',{attrs:{\"size\":\"small\",\"placeholder\":\"请选择收藏状态\"},on:{\"change\":_vm.userPage},model:{value:(_vm.formInline.collectStatus),callback:function ($$v) {_vm.$set(_vm.formInline, \"collectStatus\", $$v)},expression:\"formInline.collectStatus\"}},_vm._l((_vm.collectStatus),function(item){return _c('el-option',{key:item.type,attrs:{\"label\":item.name,\"value\":item.type}})}),1)],1),_c('el-form-item',[_c('el-select',{attrs:{\"size\":\"small\",\"placeholder\":\"请选择评论状态\"},on:{\"change\":_vm.userPage},model:{value:(_vm.formInline.commentStatus),callback:function ($$v) {_vm.$set(_vm.formInline, \"commentStatus\", $$v)},expression:\"formInline.commentStatus\"}},_vm._l((_vm.commentStatus),function(item){return _c('el-option',{key:item.type,attrs:{\"label\":item.name,\"value\":item.type}})}),1)],1),_c('br'),_c('el-form-item',[_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.userPage}},[_vm._v(\"查询\")])],1),_c('el-form-item',[_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.prepareAdd}},[_vm._v(\"新增用户\")]),_c('el-dialog',{staticStyle:{\"width\":\"100%\"},attrs:{\"title\":\"新增用户\",\"visible\":_vm.dialogFormVisible},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{staticClass:\"custom-form\",attrs:{\"model\":_vm.form}},[_c('el-form-item',{staticClass:\"form-item\",attrs:{\"label\":\"用户名称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{staticStyle:{\"width\":\"100%\"},attrs:{\"autocomplete\":\"off\"},model:{value:(_vm.form.userName),callback:function ($$v) {_vm.$set(_vm.form, \"userName\", $$v)},expression:\"form.userName\"}})],1),_c('br'),_c('el-form-item',{staticClass:\"form-item\",attrs:{\"label\":\"用户昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{staticStyle:{\"width\":\"100%\"},attrs:{\"autocomplete\":\"off\"},model:{value:(_vm.form.nickName),callback:function ($$v) {_vm.$set(_vm.form, \"nickName\", $$v)},expression:\"form.nickName\"}})],1),_c('br'),_c('el-form-item',{staticClass:\"form-item\",attrs:{\"label\":\"用户权重\",\"label-width\":_vm.formLabelWidth}},[_c('el-select',{attrs:{\"placeholder\":\"请选择\"},model:{value:(_vm.form.userWeight),callback:function ($$v) {_vm.$set(_vm.form, \"userWeight\", $$v)},expression:\"form.userWeight\"}},_vm._l((_vm.allOptions),function(item){return _c('el-option',{key:item.type,attrs:{\"label\":item.name,\"value\":item.type}})}),1)],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.dialogFormVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.handleConfirm(0)}}},[_vm._v(\"确 定\")])],1)],1)],1),_c('el-form-item',[_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.prepareMutiAdd}},[_vm._v(\"批量新增用户\")]),_c('el-dialog',{staticClass:\"red-title\",attrs:{\"visible\":_vm.dialogMutiFormVisible},on:{\"update:visible\":function($event){_vm.dialogMutiFormVisible=$event}}},[_c('div',{staticClass:\"red-title\",attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"批量新增用户(多个用户换行填写)\")]),_c('el-form',{staticClass:\"custom-form\",attrs:{\"model\":_vm.form}},[_c('el-form-item',{staticClass:\"form-item\",attrs:{\"label\":\"用户名称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{staticStyle:{\"width\":\"100%\"},attrs:{\"type\":\"textarea\",\"autocomplete\":\"off\",\"rows\":5,\"cols\":30},model:{value:(_vm.form.userName),callback:function ($$v) {_vm.$set(_vm.form, \"userName\", $$v)},expression:\"form.userName\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.dialogMutiFormVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.handleConfirm(1)}}},[_vm._v(\"确 定\")])],1)],1)],1),_c('el-form-item',[_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.prepareAllTriplet}},[_vm._v(\"三连\")]),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.allTripletDialogVisible,\"width\":\"30%\",\"before-close\":_vm.handleClose},on:{\"update:visible\":function($event){_vm.allTripletDialogVisible=$event}}},[_c('span',[_vm._v(\"确认三连吗?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.allTripletDialogVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.allTriplet()}}},[_vm._v(\"确 定\")])],1)])],1),_c('el-form-item',[_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"warning\"},on:{\"click\":_vm.prepareResetLikesComment}},[_vm._v(\"核验状态\")]),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.resetLikesCommentDialogVisible,\"width\":\"30%\",\"before-close\":_vm.handleClose},on:{\"update:visible\":function($event){_vm.resetLikesCommentDialogVisible=$event}}},[_c('span',[_vm._v(\"确认核验状态吗?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.resetLikesCommentDialogVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.fixUserLikesStatus()}}},[_vm._v(\"确 定\")])],1)])],1),_c('el-form-item',[_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"success\"},on:{\"click\":_vm.prepareAutoReply}},[_vm._v(\"自动评论\")]),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.autoReplyDialogVisible,\"width\":\"30%\",\"before-close\":_vm.handleClose},on:{\"update:visible\":function($event){_vm.autoReplyDialogVisible=$event}}},[_c('span',[_vm._v(\"确认自动评论吗?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.autoReplyDialogVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.autoReply()}}},[_vm._v(\"确 定\")])],1)])],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],ref:\"multipleTable\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.csdnUserList,\"tooltip-effect\":\"dark\"},on:{\"selection-change\":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{\"type\":\"selection\",\"width\":\"55\"}}),_c('el-table-column',{attrs:{\"prop\":\"userName\",\"label\":\"用户名称\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"nickName\",\"label\":\"用户昵称\",\"show-overflow-tooltip\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('a',{attrs:{\"href\":scope.row.userHomeUrl,\"target\":\"_blank\"}},[_vm._v(_vm._s(scope.row.nickName))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"likeStatusName\",\"label\":\"点赞状态\",\"show-overflow-tooltip\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',{attrs:{\"type\":_vm.getTagType(scope.row.likeStatusName)}},[_vm._v(_vm._s(scope.row.likeStatusName))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"collectStatusName\",\"label\":\"收藏状态\",\"show-overflow-tooltip\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',{attrs:{\"type\":_vm.getTagType(scope.row.collectStatusName)}},[_vm._v(_vm._s(scope.row.collectStatusName))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"commentStatusName\",\"label\":\"评论状态\",\"show-overflow-tooltip\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',{attrs:{\"type\":_vm.getTagType(scope.row.commentStatusName)}},[_vm._v(_vm._s(scope.row.commentStatusName))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"userWeightName\",\"label\":\"用户权重\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"articleType\",\"label\":\"文章类型\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"label\":\"更新时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_vm._v(\" \"+_vm._s(_vm._f(\"dateFormat\")(props.row.updateTime))+\" \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"操作\",\"label\":\"操作\",\"width\":\"380px\"},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"small\"},on:{\"click\":function($event){return _vm.prepareTriplet(props.row.userName)}}},[_vm._v(\"三连\")]),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.tripletVisible,\"width\":\"30%\",\"before-close\":_vm.handleClose},on:{\"update:visible\":function($event){_vm.tripletVisible=$event}}},[_c('span',[_vm._v(\"确认三连?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.tripletVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.triplet(_vm.currentUserName)}}},[_vm._v(\"确 定\")])],1)]),_c('el-button',{attrs:{\"type\":\"warning\",\"size\":\"small\"},on:{\"click\":function($event){return _vm.prepareResetUserDayStatus(props.row.userName)}}},[_vm._v(\"重置\")]),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.resetUserDayStatusVisible,\"width\":\"30%\",\"before-close\":_vm.handleClose},on:{\"update:visible\":function($event){_vm.resetUserDayStatusVisible=$event}}},[_c('span',[_vm._v(\"确认重置?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.resetUserDayStatusVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.resetUserDayStatus(_vm.currentUserName)}}},[_vm._v(\"确 定\")])],1)]),_c('el-button',{attrs:{\"type\":\"success\",\"width\":\"200\",\"size\":\"small\"},on:{\"click\":function($event){$event.preventDefault();return _vm.preEdit(props.row.id, props.row.userName, props.row.nickName, props.row.userHomeUrl, props.row.userWeight)}}},[_vm._v(\"编辑\")]),_c('el-dialog',{attrs:{\"title\":\"编辑用户信息\",\"visible\":_vm.editVisible},on:{\"update:visible\":function($event){_vm.editVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{staticClass:\"form-item\",attrs:{\"label\":\"用户名称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{staticStyle:{\"width\":\"100%\"},attrs:{\"autocomplete\":\"off\"},model:{value:(_vm.form.userName),callback:function ($$v) {_vm.$set(_vm.form, \"userName\", $$v)},expression:\"form.userName\"}})],1),_c('el-form-item',{staticClass:\"form-item\",attrs:{\"label\":\"用户昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{staticStyle:{\"width\":\"100%\"},attrs:{\"autocomplete\":\"off\"},model:{value:(_vm.form.nickName),callback:function ($$v) {_vm.$set(_vm.form, \"nickName\", $$v)},expression:\"form.nickName\"}})],1),_c('el-form-item',{staticClass:\"form-item\",attrs:{\"label\":\"用户主页\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{staticStyle:{\"width\":\"100%\"},attrs:{\"autocomplete\":\"off\"},model:{value:(_vm.form.userHomeUrl),callback:function ($$v) {_vm.$set(_vm.form, \"userHomeUrl\", $$v)},expression:\"form.userHomeUrl\"}})],1),_c('el-form-item',{staticClass:\"form-item\",attrs:{\"label\":\"用户权重\",\"label-width\":_vm.formLabelWidth}},[_c('el-select',{attrs:{\"placeholder\":\"请选择\"},model:{value:(_vm.form.userWeight),callback:function ($$v) {_vm.$set(_vm.form, \"userWeight\", $$v)},expression:\"form.userWeight\"}},_vm._l((_vm.allOptions),function(item){return _c('el-option',{key:item.type,attrs:{\"label\":item.name,\"value\":item.type}})}),1)],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.editVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.editConfirm}},[_vm._v(\"确 定\")])],1)],1),_c('el-button',{attrs:{\"type\":\"danger\",\"size\":\"small\"},on:{\"click\":function($event){return _vm.prepareBlog10(props.row.userName)}}},[_vm._v(\"十篇\")]),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.blog10DialogVisible,\"width\":\"30%\",\"before-close\":_vm.handleClose},on:{\"update:visible\":function($event){_vm.blog10DialogVisible=$event}}},[_c('span',[_vm._v(\"确认此用户添加10篇三连文章吗?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.blog10DialogVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.onBlog10(_vm.currentUserName)}}},[_vm._v(\"确 定\")])],1)]),_c('el-button',{attrs:{\"type\":\"danger\",\"size\":\"small\"},on:{\"click\":function($event){return _vm.prepareDelete(props.row.id)}}},[_vm._v(\"删除\")]),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.dialogVisible,\"width\":\"30%\",\"before-close\":_vm.handleClose},on:{\"update:visible\":function($event){_vm.dialogVisible=$event}}},[_c('span',[_vm._v(\"确认删除?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.dialogVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.onDelete(_vm.currentRowId)}}},[_vm._v(\"确 定\")])],1)])]}}])})],1),_c('el-pagination',{attrs:{\"current-page\":_vm.currentPage,\"page-sizes\":[8, 10, 50, 100, 200, 400],\"page-size\":_vm.pageSize,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1),_c('el-backtop',{staticClass:\"backtop\"})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }", - "\n\n\n\n", + "\n\n\n\n", "import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyCsdnUser.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyCsdnUser.vue?vue&type=script&lang=js&\"", "import { render, staticRenderFns } from \"./MyCsdnUser.vue?vue&type=template&id=4faedb3f&scoped=true&\"\nimport script from \"./MyCsdnUser.vue?vue&type=script&lang=js&\"\nexport * from \"./MyCsdnUser.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyCsdnUser.vue?vue&type=style&index=0&id=4faedb3f&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4faedb3f\",\n null\n \n)\n\nexport default component.exports", "var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-container',[_c('el-main',[_c('el-form',{staticClass:\"demo-form-inline\",attrs:{\"inline\":true,\"model\":_vm.formInline}},[_c('el-form-item',[_c('el-select',{attrs:{\"size\":\"small\",\"placeholder\":\"请选择关系类型\"},on:{\"change\":_vm.fansInfoPage},model:{value:(_vm.formInline.relationType),callback:function ($$v) {_vm.$set(_vm.formInline, \"relationType\", $$v)},expression:\"formInline.relationType\"}},_vm._l((_vm.relationType),function(type){return _c('el-option',{key:type,attrs:{\"label\":type,\"value\":type}})}),1)],1),_c('el-form-item',[_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.fansInfoPage}},[_vm._v(\"查询\")])],1),_c('el-form-item',[_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.prepareSyncFansInfo}},[_vm._v(\"同步粉丝\")]),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.syncFansInfoDialogVisible,\"width\":\"30%\",\"before-close\":_vm.handleClose},on:{\"update:visible\":function($event){_vm.syncFansInfoDialogVisible=$event}}},[_c('span',[_vm._v(\"确认同步粉丝吗?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.syncFansInfoDialogVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.syncFansInfo()}}},[_vm._v(\"确 定\")])],1)])],1),_c('el-form-item',[_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.prepareSyncFollowInfo}},[_vm._v(\"同步关注\")]),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.syncFollowInfoDialogVisible,\"width\":\"30%\",\"before-close\":_vm.handleClose},on:{\"update:visible\":function($event){_vm.syncFollowInfoDialogVisible=$event}}},[_c('span',[_vm._v(\"确认同步关注吗?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.syncFollowInfoDialogVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.syncFollowInfo()}}},[_vm._v(\"确 定\")])],1)])],1),_c('el-form-item',[_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.prepareCancleFollowInfo}},[_vm._v(\"取消关注\")]),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.cancleFollowInfoDialogVisible,\"width\":\"30%\",\"before-close\":_vm.handleClose},on:{\"update:visible\":function($event){_vm.cancleFollowInfoDialogVisible=$event}}},[_c('span',[_vm._v(\"确认取消关注吗?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.cancleFollowInfoDialogVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.cancleFollowInfo()}}},[_vm._v(\"确 定\")])],1)])],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],attrs:{\"border\":\"\",\"data\":_vm.fansInfoList}},[_c('el-table-column',{attrs:{\"prop\":\"id\",\"label\":\"序号\",\"width\":\"100\",\"sortable\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"userName\",\"label\":\"用户名\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"nickName\",\"label\":\"用户昵称\",\"show-overflow-tooltip\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('a',{attrs:{\"href\":scope.row.blogUrl,\"target\":\"_blank\"}},[_vm._v(_vm._s(scope.row.nickName))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"relationType\",\"label\":\"关系\",\"show-overflow-tooltip\":\"\"}})],1),_c('el-pagination',{attrs:{\"current-page\":_vm.currentPage,\"page-sizes\":[8, 50, 100, 200, 400],\"page-size\":_vm.pageSize,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1),_c('el-backtop',{staticClass:\"backtop\"})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }", @@ -548,11 +548,11 @@ "import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyRedPackage.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyRedPackage.vue?vue&type=script&lang=js&\"", "import { render, staticRenderFns } from \"./MyRedPackage.vue?vue&type=template&id=83a67204&scoped=true&\"\nimport script from \"./MyRedPackage.vue?vue&type=script&lang=js&\"\nexport * from \"./MyRedPackage.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyRedPackage.vue?vue&type=style&index=0&id=83a67204&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"83a67204\",\n null\n \n)\n\nexport default component.exports", "var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-container',[_c('el-main',[_c('el-form',{staticClass:\"demo-form-inline\",attrs:{\"inline\":true,\"model\":_vm.formInline}},[_c('el-form-item',[_c('el-input',{attrs:{\"size\":\"small\",\"clearable\":\"\",\"placeholder\":\"请输入文章id\"},nativeOn:{\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.articleInfoPage.apply(null, arguments)}},model:{value:(_vm.formInline.articleId),callback:function ($$v) {_vm.$set(_vm.formInline, \"articleId\", $$v)},expression:\"formInline.articleId\"}})],1),_c('el-form-item',[_c('el-input',{attrs:{\"size\":\"small\",\"clearable\":\"\",\"placeholder\":\"请输入用户名\"},nativeOn:{\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.articleInfoPage.apply(null, arguments)}},model:{value:(_vm.formInline.userName),callback:function ($$v) {_vm.$set(_vm.formInline, \"userName\", $$v)},expression:\"formInline.userName\"}})],1),_c('el-form-item',[_c('el-input',{attrs:{\"size\":\"small\",\"clearable\":\"\",\"placeholder\":\"请输入用户昵称\"},nativeOn:{\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.articleInfoPage.apply(null, arguments)}},model:{value:(_vm.formInline.nickName),callback:function ($$v) {_vm.$set(_vm.formInline, \"nickName\", $$v)},expression:\"formInline.nickName\"}})],1),_c('el-form-item',[_c('el-input',{attrs:{\"size\":\"small\",\"clearable\":\"\",\"placeholder\":\"质量分Start\"},nativeOn:{\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.articleInfoPage.apply(null, arguments)}},model:{value:(_vm.formInline.articleScoreStart),callback:function ($$v) {_vm.$set(_vm.formInline, \"articleScoreStart\", $$v)},expression:\"formInline.articleScoreStart\"}})],1),_c('el-form-item',[_c('el-input',{attrs:{\"size\":\"small\",\"clearable\":\"\",\"placeholder\":\"质量分End\"},nativeOn:{\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.articleInfoPage.apply(null, arguments)}},model:{value:(_vm.formInline.articleScoreEnd),callback:function ($$v) {_vm.$set(_vm.formInline, \"articleScoreEnd\", $$v)},expression:\"formInline.articleScoreEnd\"}})],1),_c('el-form-item',[_c('el-select',{attrs:{\"size\":\"small\",\"placeholder\":\"请选择点赞状态\"},on:{\"change\":_vm.articleInfoPage},model:{value:(_vm.formInline.likeStatus),callback:function ($$v) {_vm.$set(_vm.formInline, \"likeStatus\", $$v)},expression:\"formInline.likeStatus\"}},_vm._l((_vm.likeStatus),function(item){return _c('el-option',{key:item.type,attrs:{\"label\":item.name,\"value\":item.type}})}),1)],1),_c('el-form-item',[_c('el-select',{attrs:{\"size\":\"small\",\"placeholder\":\"请选择收藏状态\"},on:{\"change\":_vm.articleInfoPage},model:{value:(_vm.formInline.collectStatus),callback:function ($$v) {_vm.$set(_vm.formInline, \"collectStatus\", $$v)},expression:\"formInline.collectStatus\"}},_vm._l((_vm.collectStatus),function(item){return _c('el-option',{key:item.type,attrs:{\"label\":item.name,\"value\":item.type}})}),1)],1),_c('el-form-item',[_c('el-select',{attrs:{\"size\":\"small\",\"placeholder\":\"请选择评论状态\"},on:{\"change\":_vm.articleInfoPage},model:{value:(_vm.formInline.commentStatus),callback:function ($$v) {_vm.$set(_vm.formInline, \"commentStatus\", $$v)},expression:\"formInline.commentStatus\"}},_vm._l((_vm.commentStatus),function(item){return _c('el-option',{key:item.type,attrs:{\"label\":item.name,\"value\":item.type}})}),1)],1),_c('el-form-item',[_c('el-select',{attrs:{\"size\":\"small\",\"placeholder\":\"请选择文章归属\"},on:{\"change\":_vm.articleInfoPage},model:{value:(_vm.formInline.isMyself),callback:function ($$v) {_vm.$set(_vm.formInline, \"isMyself\", $$v)},expression:\"formInline.isMyself\"}},_vm._l((_vm.isMyself),function(item){return _c('el-option',{key:item.type,attrs:{\"label\":item.name,\"value\":item.type}})}),1)],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.articleInfoPage}},[_vm._v(\"查询\")])],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.prepareAdd}},[_vm._v(\"新增\")]),_c('el-dialog',{staticStyle:{\"width\":\"100%\"},attrs:{\"title\":\"新增用户\",\"visible\":_vm.dialogAddFormVisible},on:{\"update:visible\":function($event){_vm.dialogAddFormVisible=$event}}},[_c('el-form',{staticClass:\"custom-form\",attrs:{\"model\":_vm.form}},[_c('el-form-item',{staticClass:\"form-item\",attrs:{\"label\":\"用户名称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{staticStyle:{\"width\":\"100%\"},attrs:{\"autocomplete\":\"off\"},model:{value:(_vm.form.userName),callback:function ($$v) {_vm.$set(_vm.form, \"userName\", $$v)},expression:\"form.userName\"}})],1),_c('br'),_c('el-form-item',{staticClass:\"form-item\",attrs:{\"label\":\"文章Id\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{staticStyle:{\"width\":\"100%\"},attrs:{\"autocomplete\":\"off\"},model:{value:(_vm.form.articleId),callback:function ($$v) {_vm.$set(_vm.form, \"articleId\", $$v)},expression:\"form.articleId\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.dialogAddFormVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.handleConfirm(0)}}},[_vm._v(\"确 定\")])],1)],1)],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.prepareAllTriplet}},[_vm._v(\"三连\")]),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.allTripletDialogVisible,\"width\":\"30%\",\"before-close\":_vm.handleClose},on:{\"update:visible\":function($event){_vm.allTripletDialogVisible=$event}}},[_c('span',[_vm._v(\"确认三连吗?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.allTripletDialogVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.allTriplet()}}},[_vm._v(\"确 定\")])],1)])],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.prepareResetLikes}},[_vm._v(\"核验状态\")]),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.resetLikesDialogVisible,\"width\":\"30%\",\"before-close\":_vm.handleClose},on:{\"update:visible\":function($event){_vm.resetLikesDialogVisible=$event}}},[_c('span',[_vm._v(\"确认核验状态吗?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.resetLikesDialogVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.resetLikes()}}},[_vm._v(\"确 定\")])],1)])],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.prepareGetScore}},[_vm._v(\"质量分查询\")]),_c('el-dialog',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"title\":\"质量分查询\",\"visible\":_vm.getScoreFormVisible},on:{\"update:visible\":function($event){_vm.getScoreFormVisible=$event}}},[_c('el-form',{staticClass:\"custom-form\",attrs:{\"model\":_vm.form}},[_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":18}},[_c('el-input',{attrs:{\"placeholder\":\"请输入文章链接\",\"autocomplete\":\"off\"},model:{value:(_vm.form.articleUrl),callback:function ($$v) {_vm.$set(_vm.form, \"articleUrl\", $$v)},expression:\"form.articleUrl\"}})],1)],1),_c('br'),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":12}},[_c('el-input',{attrs:{\"placeholder\":\"质量分待查询\",\"autocomplete\":\"off\"},model:{value:(_vm.form.articleScore),callback:function ($$v) {_vm.$set(_vm.form, \"articleScore\", $$v)},expression:\"form.articleScore\"}})],1)],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.getScoreFormVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.getScore}},[_vm._v(\"查 询\")])],1)],1)],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.prepareSyncMyBlog}},[_vm._v(\"同步文章\")]),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.syncMyBlogDialogVisible,\"width\":\"30%\",\"before-close\":_vm.handleClose},on:{\"update:visible\":function($event){_vm.syncMyBlogDialogVisible=$event}}},[_c('span',[_vm._v(\"确认同步文章吗?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.syncMyBlogDialogVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.syncMyBlog()}}},[_vm._v(\"确 定\")])],1)])],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.prepareDeleteLow}},[_vm._v(\"删除低分\")]),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.deleteLowDialogVisible,\"width\":\"30%\",\"before-close\":_vm.handleClose},on:{\"update:visible\":function($event){_vm.deleteLowDialogVisible=$event}}},[_c('span',[_vm._v(\"确认删除低分文章吗?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.deleteLowDialogVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.deleteLow()}}},[_vm._v(\"确 定\")])],1)])],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],ref:\"multipleTable\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.articleInfoList,\"tooltip-effect\":\"dark\"},on:{\"selection-change\":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{\"type\":\"selection\",\"width\":\"50\"}}),_c('el-table-column',{attrs:{\"prop\":\"articleId\",\"label\":\"文章id\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"userName\",\"label\":\"用户名称\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"nickName\",\"label\":\"用户昵称\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"articleTitle\",\"label\":\"文章标题\",\"show-overflow-tooltip\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('a',{attrs:{\"href\":scope.row.articleUrl,\"target\":\"_blank\"}},[_vm._v(_vm._s(scope.row.articleTitle))])]}}])}),_c('el-table-column',{attrs:{\"sortable\":\"\",\"prop\":\"articleScore\",\"label\":\"质量分\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"articleDescription\",\"label\":\"文章描述\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"likeStatusName\",\"label\":\"点赞状态\",\"width\":\"130\",\"show-overflow-tooltip\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',{attrs:{\"type\":_vm.getTagType(scope.row.likeStatusName)}},[_vm._v(_vm._s(scope.row.likeStatusName))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"collectStatusName\",\"label\":\"收藏状态\",\"width\":\"130\",\"show-overflow-tooltip\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',{attrs:{\"type\":_vm.getTagType(scope.row.collectStatusName)}},[_vm._v(_vm._s(scope.row.collectStatusName))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"commentStatusName\",\"label\":\"评论状态\",\"width\":\"130\",\"show-overflow-tooltip\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',{attrs:{\"type\":_vm.getTagType(scope.row.commentStatusName)}},[_vm._v(_vm._s(scope.row.commentStatusName))])]}}])}),_c('el-table-column',{attrs:{\"label\":\"更新时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_vm._v(\" \"+_vm._s(_vm._f(\"dateFormat\")(props.row.updateTime))+\" \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"操作\",\"label\":\"操作\",\"width\":\"310px\"},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.prepareTriplet(props.row.articleId)}}},[_vm._v(\"三连\")]),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.tripletVisible,\"width\":\"30%\",\"before-close\":_vm.handleClose},on:{\"update:visible\":function($event){_vm.tripletVisible=$event}}},[_c('span',[_vm._v(\"确认三连?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.tripletVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.triplet(_vm.articleId)}}},[_vm._v(\"确 定\")])],1)]),_c('el-button',{attrs:{\"type\":\"success\",\"width\":\"200\"},on:{\"click\":function($event){$event.preventDefault();return _vm.preEdit(props.row.id, props.row.articleId, props.row.userName, props.row.nickName, props.row.articleUrl)}}},[_vm._v(\"编辑\")]),_c('el-dialog',{attrs:{\"title\":\"编辑用户信息\",\"visible\":_vm.editVisible},on:{\"update:visible\":function($event){_vm.editVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{staticClass:\"form-item\",attrs:{\"label\":\"文章id\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{staticStyle:{\"width\":\"100%\"},attrs:{\"autocomplete\":\"off\"},model:{value:(_vm.form.articleId),callback:function ($$v) {_vm.$set(_vm.form, \"articleId\", $$v)},expression:\"form.articleId\"}})],1),_c('el-form-item',{staticClass:\"form-item\",attrs:{\"label\":\"用户名称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{staticStyle:{\"width\":\"100%\"},attrs:{\"autocomplete\":\"off\"},model:{value:(_vm.form.userName),callback:function ($$v) {_vm.$set(_vm.form, \"userName\", $$v)},expression:\"form.userName\"}})],1),_c('el-form-item',{staticClass:\"form-item\",attrs:{\"label\":\"用户昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{staticStyle:{\"width\":\"100%\"},attrs:{\"autocomplete\":\"off\"},model:{value:(_vm.form.nickName),callback:function ($$v) {_vm.$set(_vm.form, \"nickName\", $$v)},expression:\"form.nickName\"}})],1),_c('el-form-item',{staticClass:\"form-item\",attrs:{\"label\":\"文章链接\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{staticStyle:{\"width\":\"100%\"},attrs:{\"autocomplete\":\"off\"},model:{value:(_vm.form.articleUrl),callback:function ($$v) {_vm.$set(_vm.form, \"articleUrl\", $$v)},expression:\"form.articleUrl\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.editVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.editConfirm}},[_vm._v(\"确 定\")])],1)],1),_c('el-button',{attrs:{\"type\":\"danger\"},on:{\"click\":function($event){return _vm.prepareDelete(props.row.id)}}},[_vm._v(\"删除\")]),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.dialogDelVisible,\"width\":\"30%\",\"before-close\":_vm.handleClose},on:{\"update:visible\":function($event){_vm.dialogDelVisible=$event}}},[_c('span',[_vm._v(\"确认删除?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.dialogDelVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.articleInfoDelete(_vm.currentRowId)}}},[_vm._v(\"确 定\")])],1)])]}}])})],1),_c('el-pagination',{attrs:{\"current-page\":_vm.currentPage,\"page-sizes\":[8, 10, 50, 100, 200, 400],\"page-size\":_vm.pageSize,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1),_c('el-backtop',{staticClass:\"backtop\"})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }", - "\n\n\n\n", + "\n\n\n\n", "import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyArticleInfo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyArticleInfo.vue?vue&type=script&lang=js&\"", "import { render, staticRenderFns } from \"./MyArticleInfo.vue?vue&type=template&id=dfde6c48&scoped=true&\"\nimport script from \"./MyArticleInfo.vue?vue&type=script&lang=js&\"\nexport * from \"./MyArticleInfo.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyArticleInfo.vue?vue&type=style&index=0&id=dfde6c48&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"dfde6c48\",\n null\n \n)\n\nexport default component.exports", "var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-container',[_c('el-main',[_c('el-form',{staticClass:\"demo-form-inline\",attrs:{\"inline\":true,\"model\":_vm.formInline}},[_c('el-date-picker',{attrs:{\"type\":\"daterange\",\"align\":\"right\",\"unlink-panels\":\"\",\"range-separator\":\"至\",\"start-placeholder\":\"开始日期\",\"end-placeholder\":\"结束日期\",\"value-format\":'yyyy-MM-dd',\"picker-options\":_vm.pickerOptions},model:{value:(_vm.formInline.tripletDate),callback:function ($$v) {_vm.$set(_vm.formInline, \"tripletDate\", $$v)},expression:\"formInline.tripletDate\"}}),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.tripletDayInfoPage}},[_vm._v(\"查询\")])],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.prepareReset}},[_vm._v(\"重置\")])],1),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.resetDialogVisible,\"width\":\"30%\"},on:{\"update:visible\":function($event){_vm.resetDialogVisible=$event}}},[_c('span',[_vm._v(\"确认重置吗?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.resetDialogVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.tripletDayReset()}}},[_vm._v(\"确 定\")])],1)])],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],attrs:{\"border\":\"\",\"data\":_vm.tripletDayInfoList}},[_c('el-table-column',{attrs:{\"prop\":\"id\",\"label\":\"序号\",\"width\":\"100\",\"sortable\":\"\"}}),_c('el-table-column',{attrs:{\"label\":\"三连时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_vm._v(\" \"+_vm._s(_vm._f(\"dateDayFormat\")(props.row.tripletDate))+\" \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"weekInfo\",\"label\":\"星期\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"likeNum\",\"label\":\"点赞数量\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"collectNum\",\"label\":\"收藏数量\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"commentNum\",\"label\":\"评论数量\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"likeStatusName\",\"label\":\"点赞状态\",\"width\":\"130\",\"show-overflow-tooltip\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',{attrs:{\"type\":_vm.getTagType(scope.row.likeStatusName)}},[_vm._v(_vm._s(scope.row.likeStatusName))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"collectStatusName\",\"label\":\"收藏状态\",\"width\":\"130\",\"show-overflow-tooltip\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',{attrs:{\"type\":_vm.getTagType(scope.row.collectStatusName)}},[_vm._v(_vm._s(scope.row.collectStatusName))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"commentStatusName\",\"label\":\"评论状态\",\"width\":\"130\",\"show-overflow-tooltip\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',{attrs:{\"type\":_vm.getTagType(scope.row.commentStatusName)}},[_vm._v(_vm._s(scope.row.commentStatusName))])]}}])}),_c('el-table-column',{attrs:{\"sortable\":\"\",\"prop\":\"myAmount\",\"label\":\"红包金额\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"redPackageCount\",\"label\":\"红包个数\",\"show-overflow-tooltip\":\"\"}})],1),_c('el-pagination',{attrs:{\"current-page\":_vm.currentPage,\"page-sizes\":[8, 50, 100, 200, 400],\"page-size\":_vm.pageSize,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1),_c('el-backtop',{staticClass:\"backtop\"})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }", - "\n\n\n\n", + "\n\n\n\n", "import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyTripletDayInfo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyTripletDayInfo.vue?vue&type=script&lang=js&\"", "import { render, staticRenderFns } from \"./MyTripletDayInfo.vue?vue&type=template&id=389c3c14&scoped=true&\"\nimport script from \"./MyTripletDayInfo.vue?vue&type=script&lang=js&\"\nexport * from \"./MyTripletDayInfo.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyTripletDayInfo.vue?vue&type=style&index=0&id=389c3c14&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"389c3c14\",\n null\n \n)\n\nexport default component.exports", "var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-button',{attrs:{\"type\":\"primary\",\"plain\":\"\",\"size\":\"medium\"},on:{\"click\":_vm.goBack}},[_vm._v(\"后退\")]),_c('h4',{staticClass:\"text-center\"},[_vm._v(\"ChatGpt问答详情 --- \"+_vm._s(_vm.id))]),_c('el-container',[_c('el-main',[_c('el-table',{attrs:{\"border\":\"\",\"data\":_vm.list}},[_c('el-table-column',{attrs:{\"label\":\"序号\",\"width\":\"50\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.id))])]}}])}),_c('el-table-column',{attrs:{\"label\":\"问题\",\"width\":\"240\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.question))])]}}])}),_c('el-table-column',{attrs:{\"label\":\"回答\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',{attrs:{\"id\":\"td-response\"}},[_vm._v(_vm._s(scope.row.response))])]}}])}),_c('el-table-column',{attrs:{\"label\":\"创建时间\",\"width\":\"170\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(_vm._f(\"dateFormat\")(scope.row.createTime)))])]}}])})],1)],1)],1),_c('div',{staticClass:\"button-container\"},[_c('el-button',{attrs:{\"type\":\"primary\",\"round\":\"\"},on:{\"click\":_vm.copyCode}},[_vm._v(\"复制回答\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }", diff --git a/src/components/menus/MyArticleInfo.vue b/src/components/menus/MyArticleInfo.vue index e87f49b..4bdca3b 100644 --- a/src/components/menus/MyArticleInfo.vue +++ b/src/components/menus/MyArticleInfo.vue @@ -282,7 +282,7 @@ export default { { type: 2, name: '评论已满' }, { type: 3, name: '禁言' }, { type: 4, name: '评论太快' }, - { type: 5, name: '评论已经到了45条' }, + { type: 5, name: '评论已经到了42条' }, { type: 8, name: '其他错误' }, { type: 9, name: '评论成功' }, ], @@ -605,7 +605,7 @@ export default { return 'info' } else if (statusName == '已经点过赞' || statusName == '已经收藏过' || statusName == '已经评论过') { return 'success' - } else if (statusName == '文章状态不能点赞' || statusName == '收藏已满' || statusName == '收藏夹不存在' || statusName == '评论已满' || statusName == '禁言' || statusName == '评论已经到了45条') { + } else if (statusName == '文章状态不能点赞' || statusName == '收藏已满' || statusName == '收藏夹不存在' || statusName == '评论已满' || statusName == '禁言' || statusName == '评论已经到了42条') { return 'danger' } else if (statusName == '点赞成功' || statusName == '收藏成功' || statusName == '评论成功') { return 'success' diff --git a/src/components/menus/MyCsdnUser.vue b/src/components/menus/MyCsdnUser.vue index 2aa6a5e..976d041 100644 --- a/src/components/menus/MyCsdnUser.vue +++ b/src/components/menus/MyCsdnUser.vue @@ -296,7 +296,7 @@ export default { { type: 2, name: '评论已满' }, { type: 3, name: '禁言' }, { type: 4, name: '评论太快' }, - { type: 5, name: '评论已经到了45条' }, + { type: 5, name: '评论已经到了42条' }, { type: 8, name: '其他错误' }, { type: 9, name: '评论成功' }, ], @@ -617,7 +617,7 @@ export default { return 'info' } else if (statusName == '已经点过赞' || statusName == '已经收藏过' || statusName == '已经评论过') { return 'success' - } else if (statusName == '文章状态不能点赞' || statusName == '收藏已满' || statusName == '收藏夹不存在' || statusName == '评论已满' || statusName == '禁言' || statusName == '评论已经到了45条') { + } else if (statusName == '文章状态不能点赞' || statusName == '收藏已满' || statusName == '收藏夹不存在' || statusName == '评论已满' || statusName == '禁言' || statusName == '评论已经到了42条') { return 'danger' } else if (statusName == '点赞成功' || statusName == '收藏成功' || statusName == '评论成功') { return 'success' diff --git a/src/components/menus/MyTripletDayInfo.vue b/src/components/menus/MyTripletDayInfo.vue index 9760240..1ac4dca 100644 --- a/src/components/menus/MyTripletDayInfo.vue +++ b/src/components/menus/MyTripletDayInfo.vue @@ -50,7 +50,6 @@ {{ scope.row.commentStatusName }} - @@ -63,208 +62,208 @@ import axios from 'axios' import ApiService from '../../api/ApiService' export default { - name: 'MyTripletDayInfo', + name: 'MyTripletDayInfo', - data() { - return { - pickerOptions: { - disabledDate(time) { - return time.getTime() > Date.now() - }, + data() { + return { + pickerOptions: { + disabledDate(time) { + return time.getTime() > Date.now() + }, - shortcuts: [ - { - text: '最近一周', - onClick(picker) { - const end = new Date() - const start = new Date() - start.setTime(start.getTime() - 3600 * 1000 * 24 * 7) - picker.$emit('pick', [start, end]) - }, - }, - { - text: '最近一个月', - onClick(picker) { - const end = new Date() - const start = new Date() - start.setTime(start.getTime() - 3600 * 1000 * 24 * 30) - picker.$emit('pick', [start, end]) - }, - }, - { - text: '最近三个月', - onClick(picker) { - const end = new Date() - const start = new Date() - start.setTime(start.getTime() - 3600 * 1000 * 24 * 90) - picker.$emit('pick', [start, end]) - }, - }, - ], - }, - formInline: { - tripletDate: null, - endDate: null, - }, - // 用户列表数据 - tripletDayInfoList: [], - likeStatus: [ - { - type: -1, - name: '全部', - }, - { - type: 0, - name: '未处理', - }, - { type: 1, name: '已经点过赞' }, - { type: 2, name: '点赞已满' }, - { type: 3, name: '取消点赞' }, - { type: 4, name: '文章状态不能点赞' }, - { type: 8, name: '其他错误' }, - { type: 9, name: '点赞成功' }, - ], - collectStatus: [ - { - type: -1, - name: '全部', - }, - { - type: 0, - name: '未处理', - }, - { type: 1, name: '已经收藏过' }, - { type: 2, name: '收藏已满' }, - { type: 3, name: '参数缺失' }, - { type: 4, name: '收藏夹不存在' }, - { type: 8, name: '其他错误' }, - { type: 9, name: '收藏成功' }, - ], + shortcuts: [ + { + text: '最近一周', + onClick(picker) { + const end = new Date() + const start = new Date() + start.setTime(start.getTime() - 3600 * 1000 * 24 * 7) + picker.$emit('pick', [start, end]) + }, + }, + { + text: '最近一个月', + onClick(picker) { + const end = new Date() + const start = new Date() + start.setTime(start.getTime() - 3600 * 1000 * 24 * 30) + picker.$emit('pick', [start, end]) + }, + }, + { + text: '最近三个月', + onClick(picker) { + const end = new Date() + const start = new Date() + start.setTime(start.getTime() - 3600 * 1000 * 24 * 90) + picker.$emit('pick', [start, end]) + }, + }, + ], + }, + formInline: { + tripletDate: null, + endDate: null, + }, + // 用户列表数据 + tripletDayInfoList: [], + likeStatus: [ + { + type: -1, + name: '全部', + }, + { + type: 0, + name: '未处理', + }, + { type: 1, name: '已经点过赞' }, + { type: 2, name: '点赞已满' }, + { type: 3, name: '取消点赞' }, + { type: 4, name: '文章状态不能点赞' }, + { type: 8, name: '其他错误' }, + { type: 9, name: '点赞成功' }, + ], + collectStatus: [ + { + type: -1, + name: '全部', + }, + { + type: 0, + name: '未处理', + }, + { type: 1, name: '已经收藏过' }, + { type: 2, name: '收藏已满' }, + { type: 3, name: '参数缺失' }, + { type: 4, name: '收藏夹不存在' }, + { type: 8, name: '其他错误' }, + { type: 9, name: '收藏成功' }, + ], - commentStatus: [ - { - type: -1, - name: '全部', - }, - { - type: 0, - name: '未处理', - }, - { type: 1, name: '已经评论过' }, - { type: 2, name: '评论已满' }, - { type: 3, name: '禁言' }, - { type: 4, name: '评论太快' }, - { type: 5, name: '评论已经到了45条' }, - { type: 8, name: '其他错误' }, - { type: 9, name: '评论成功' }, - ], - loading: false, - resetDialogVisible: false, - elementui_page_component_key: 0, - currentPage: Number(localStorage.getItem('csdnTripletDayInfoPage')) || 1, - pageSize: 8, - total: 0, - } - }, - watch: { - 'formInline.tripletDate'(newVal, oldVal) { - if (newVal !== oldVal) { - this.currentPage = 1 - localStorage.setItem('csdnTripletDayInfoPage', this.currentPage) - this.tripletDayInfoPage() - } - }, - 'formInline.endDate'(newVal, oldVal) { - if (newVal !== oldVal) { - this.currentPage = 1 - localStorage.setItem('csdnTripletDayInfoPage', this.currentPage) - this.tripletDayInfoPage() - } - }, - // 监听currentPage的变化,将新值保存到localStorage中 - currentPage(newPage) { - localStorage.setItem('csdnTripletDayInfoPage', newPage.toString()) - }, - }, - created() { - //获取问题类型的枚举 - this.tripletDayInfoPage() - }, - mounted() { - this.currentPage = 1 - }, - methods: { - prepareReset() { - this.resetDialogVisible = true - }, - async tripletDayInfoPage() { - this.loading = true - const { data: res } = await ApiService.tripletDayInfoPage(this.currentPage, this.pageSize, this.formInline.tripletDate) - if (res.code === 200) { - this.total = res.result.totalElements + commentStatus: [ + { + type: -1, + name: '全部', + }, + { + type: 0, + name: '未处理', + }, + { type: 1, name: '已经评论过' }, + { type: 2, name: '评论已满' }, + { type: 3, name: '禁言' }, + { type: 4, name: '评论太快' }, + { type: 5, name: '评论已经到了42条' }, + { type: 8, name: '其他错误' }, + { type: 9, name: '评论成功' }, + ], + loading: false, + resetDialogVisible: false, + elementui_page_component_key: 0, + currentPage: Number(localStorage.getItem('csdnTripletDayInfoPage')) || 1, + pageSize: 8, + total: 0, + } + }, + watch: { + 'formInline.tripletDate'(newVal, oldVal) { + if (newVal !== oldVal) { + this.currentPage = 1 + localStorage.setItem('csdnTripletDayInfoPage', this.currentPage) + this.tripletDayInfoPage() + } + }, + 'formInline.endDate'(newVal, oldVal) { + if (newVal !== oldVal) { + this.currentPage = 1 + localStorage.setItem('csdnTripletDayInfoPage', this.currentPage) + this.tripletDayInfoPage() + } + }, + // 监听currentPage的变化,将新值保存到localStorage中 + currentPage(newPage) { + localStorage.setItem('csdnTripletDayInfoPage', newPage.toString()) + }, + }, + created() { + //获取问题类型的枚举 + this.tripletDayInfoPage() + }, + mounted() { + this.currentPage = 1 + }, + methods: { + prepareReset() { + this.resetDialogVisible = true + }, + async tripletDayInfoPage() { + this.loading = true + const { data: res } = await ApiService.tripletDayInfoPage(this.currentPage, this.pageSize, this.formInline.tripletDate) + if (res.code === 200) { + this.total = res.result.totalElements - const likeStatusMap = {} - this.likeStatus.forEach((option) => { - likeStatusMap[option.type] = option.name - }) - res.result.content.forEach((item) => { - item.likeStatusName = likeStatusMap[item.likeStatus] - }) + const likeStatusMap = {} + this.likeStatus.forEach((option) => { + likeStatusMap[option.type] = option.name + }) + res.result.content.forEach((item) => { + item.likeStatusName = likeStatusMap[item.likeStatus] + }) - const collectStatusMap = {} - this.collectStatus.forEach((option) => { - collectStatusMap[option.type] = option.name - }) - res.result.content.forEach((item) => { - item.collectStatusName = collectStatusMap[item.collectStatus] - }) + const collectStatusMap = {} + this.collectStatus.forEach((option) => { + collectStatusMap[option.type] = option.name + }) + res.result.content.forEach((item) => { + item.collectStatusName = collectStatusMap[item.collectStatus] + }) - const commentStatusMap = {} - this.commentStatus.forEach((option) => { - commentStatusMap[option.type] = option.name - }) - res.result.content.forEach((item) => { - item.commentStatusName = commentStatusMap[item.commentStatus] - }) + const commentStatusMap = {} + this.commentStatus.forEach((option) => { + commentStatusMap[option.type] = option.name + }) + res.result.content.forEach((item) => { + item.commentStatusName = commentStatusMap[item.commentStatus] + }) - this.tripletDayInfoList = res.result.content - } - this.loading = false - }, - async tripletDayReset() { - this.loading = true - const { data: res } = await ApiService.tripletDayReset() - this.resetDialogVisible = false - this.tripletDayInfoPage() - this.loading = false - }, - refreshPage() { - //获取问题类型的枚举 - this.tripletDayInfoPage() - location.reload() - }, - getTagType(statusName) { - if (statusName == '未处理') { - return 'info' - } else if (statusName == '已经点过赞' || statusName == '已经收藏过' || statusName == '已经评论过') { - return 'success' - } else if (statusName == '文章状态不能点赞' || statusName == '收藏已满' || statusName == '收藏夹不存在' || statusName == '评论已满' || statusName == '禁言' || statusName == '评论已经到了45条') { - return 'danger' - } else if (statusName == '点赞成功' || statusName == '收藏成功' || statusName == '评论成功') { - return 'success' - } else if (statusName == '点赞已满' || statusName == '参数缺失' || statusName == '其他错误' || statusName == '取消点赞' || statusName == '评论太快') { - return 'warning' - } - }, - handleCurrentChange(currentPage) { - this.currentPage = currentPage - this.tripletDayInfoPage() - }, - handleSizeChange(currentSize) { - this.pageSize = currentSize - this.tripletDayInfoPage() - }, - }, + this.tripletDayInfoList = res.result.content + } + this.loading = false + }, + async tripletDayReset() { + this.loading = true + const { data: res } = await ApiService.tripletDayReset() + this.resetDialogVisible = false + this.tripletDayInfoPage() + this.loading = false + }, + refreshPage() { + //获取问题类型的枚举 + this.tripletDayInfoPage() + location.reload() + }, + getTagType(statusName) { + if (statusName == '未处理') { + return 'info' + } else if (statusName == '已经点过赞' || statusName == '已经收藏过' || statusName == '已经评论过') { + return 'success' + } else if (statusName == '文章状态不能点赞' || statusName == '收藏已满' || statusName == '收藏夹不存在' || statusName == '评论已满' || statusName == '禁言' || statusName == '评论已经到了42条') { + return 'danger' + } else if (statusName == '点赞成功' || statusName == '收藏成功' || statusName == '评论成功') { + return 'success' + } else if (statusName == '点赞已满' || statusName == '参数缺失' || statusName == '其他错误' || statusName == '取消点赞' || statusName == '评论太快') { + return 'warning' + } + }, + handleCurrentChange(currentPage) { + this.currentPage = currentPage + this.tripletDayInfoPage() + }, + handleSizeChange(currentSize) { + this.pageSize = currentSize + this.tripletDayInfoPage() + }, + }, } -- GitLab