添加核验

上级 a8365d23
.login-container[data-v-1be4e8ce]{background-color:#35495e;height:100%}.login-container .login-box[data-v-1be4e8ce]{width:400px;height:250px;background-color:#fff;border-radius:3px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);box-shadow:0 0 6px hsla(0,0%,100%,.5)}.login-container .login-box .form-login[data-v-1be4e8ce]{position:absolute;bottom:0;left:0;width:100%;box-sizing:border-box}.form-control[data-v-1be4e8ce]{flex:1}.avatar-box[data-v-1be4e8ce]{position:absolute;width:100%;top:-65px;left:0}.avatar-box .avatar[data-v-1be4e8ce]{width:120px;height:120px;border-radius:50%!important;box-shadow:0 0 6px #efefef}.layout-header-left-img[data-v-0bc02e96]{height:50px}.layout-aside-container[data-v-04b0cce7]{width:200px;height:100%;border-right:1px solid #eaeaea}.left-aside-item[data-v-04b0cce7]{font-size:20px}.el-main{padding:20px 3px!important}.el-header[data-v-5503bb7a]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-5503bb7a]{color:#333}.pagination[data-v-5503bb7a]{margin-top:16px;text-align:right}.arrow-button[data-v-5503bb7a]{display:flex;align-items:center;justify-content:center;border:none;background-color:transparent;cursor:pointer}.custom-icon[data-v-5503bb7a]{font-size:24px;color:#f90;margin-right:6px}.arrow-button.disabled[data-v-5503bb7a]{pointer-events:none;opacity:.1}.el-header[data-v-46e73c50]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-46e73c50]{color:#333}.pagination[data-v-46e73c50]{margin-top:16px;text-align:right}.header-button-item[data-v-46e73c50]{margin-right:15px;font-size:20px}.backtop[data-v-46e73c50]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.backtop[data-v-46e73c50]:hover{background-color:#0050a0}.el-header[data-v-a05e897a]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-a05e897a]{color:#333}.pagination[data-v-a05e897a]{margin-top:16px;text-align:right}.header-button-item[data-v-a05e897a]{margin-right:15px;font-size:20px}.red-title[data-v-a05e897a]{line-height:24px;font-size:18px;color:red}.backtop[data-v-a05e897a]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-a05e897a]{width:100%;text-align:left}.backtop[data-v-a05e897a]:hover{background-color:#0050a0}.el-header[data-v-277bc25c]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-277bc25c]{color:#333}.pagination[data-v-277bc25c]{margin-top:16px;text-align:right}.header-button-item[data-v-277bc25c]{margin-right:15px;font-size:20px}.red-title[data-v-277bc25c]{line-height:24px;font-size:18px;color:red}.backtop[data-v-277bc25c]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-277bc25c]{width:100%;text-align:left}.backtop[data-v-277bc25c]:hover{background-color:#0050a0}.el-header[data-v-7f9d4b2f]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-7f9d4b2f]{color:#333}.pagination[data-v-7f9d4b2f]{margin-top:16px;text-align:right}.header-button-item[data-v-7f9d4b2f]{margin-right:15px;font-size:20px}.red-title[data-v-7f9d4b2f]{line-height:24px;font-size:18px;color:red}.backtop[data-v-7f9d4b2f]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-7f9d4b2f]{width:100%;text-align:left}.backtop[data-v-7f9d4b2f]:hover{background-color:#0050a0}.el-header[data-v-66dc5c0c]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-66dc5c0c]{color:#333}.pagination[data-v-66dc5c0c]{margin-top:16px;text-align:right}.header-button-item[data-v-66dc5c0c]{margin-right:15px;font-size:20px}.red-title[data-v-66dc5c0c]{line-height:24px;font-size:18px;color:red}.backtop[data-v-66dc5c0c]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-66dc5c0c]{width:100%;text-align:left}.backtop[data-v-66dc5c0c]:hover{background-color:#0050a0}.el-header[data-v-42cebfce]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-42cebfce]{color:#333}.pagination[data-v-42cebfce]{margin-top:16px;text-align:right}.header-button-item[data-v-42cebfce]{margin-right:15px;font-size:20px}.red-title[data-v-42cebfce]{line-height:24px;font-size:18px;color:red}.backtop[data-v-42cebfce]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-42cebfce]{width:100%;text-align:left}.backtop[data-v-42cebfce]:hover{background-color:#0050a0}.el-header[data-v-5557b0ae]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-5557b0ae]{color:#333}.pagination[data-v-5557b0ae]{margin-top:16px;text-align:right}.header-button-item[data-v-5557b0ae]{margin-right:15px;font-size:20px}.red-title[data-v-5557b0ae]{line-height:24px;font-size:18px;color:red}.backtop[data-v-5557b0ae]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-5557b0ae]{width:100%;text-align:left}.backtop[data-v-5557b0ae]:hover{background-color:#0050a0}.button-container[data-v-e0115e9c]{position:fixed;bottom:0;right:0;margin:16px}.container[data-v-19e0b810]{display:flex;justify-content:center;align-items:center;height:30vh} .login-container[data-v-1be4e8ce]{background-color:#35495e;height:100%}.login-container .login-box[data-v-1be4e8ce]{width:400px;height:250px;background-color:#fff;border-radius:3px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);box-shadow:0 0 6px hsla(0,0%,100%,.5)}.login-container .login-box .form-login[data-v-1be4e8ce]{position:absolute;bottom:0;left:0;width:100%;box-sizing:border-box}.form-control[data-v-1be4e8ce]{flex:1}.avatar-box[data-v-1be4e8ce]{position:absolute;width:100%;top:-65px;left:0}.avatar-box .avatar[data-v-1be4e8ce]{width:120px;height:120px;border-radius:50%!important;box-shadow:0 0 6px #efefef}.layout-header-left-img[data-v-0bc02e96]{height:50px}.layout-aside-container[data-v-04b0cce7]{width:200px;height:100%;border-right:1px solid #eaeaea}.left-aside-item[data-v-04b0cce7]{font-size:20px}.el-main{padding:20px 3px!important}.el-header[data-v-5503bb7a]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-5503bb7a]{color:#333}.pagination[data-v-5503bb7a]{margin-top:16px;text-align:right}.arrow-button[data-v-5503bb7a]{display:flex;align-items:center;justify-content:center;border:none;background-color:transparent;cursor:pointer}.custom-icon[data-v-5503bb7a]{font-size:24px;color:#f90;margin-right:6px}.arrow-button.disabled[data-v-5503bb7a]{pointer-events:none;opacity:.1}.el-header[data-v-46e73c50]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-46e73c50]{color:#333}.pagination[data-v-46e73c50]{margin-top:16px;text-align:right}.header-button-item[data-v-46e73c50]{margin-right:15px;font-size:20px}.backtop[data-v-46e73c50]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.backtop[data-v-46e73c50]:hover{background-color:#0050a0}.el-header[data-v-a05e897a]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-a05e897a]{color:#333}.pagination[data-v-a05e897a]{margin-top:16px;text-align:right}.header-button-item[data-v-a05e897a]{margin-right:15px;font-size:20px}.red-title[data-v-a05e897a]{line-height:24px;font-size:18px;color:red}.backtop[data-v-a05e897a]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-a05e897a]{width:100%;text-align:left}.backtop[data-v-a05e897a]:hover{background-color:#0050a0}.el-header[data-v-277bc25c]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-277bc25c]{color:#333}.pagination[data-v-277bc25c]{margin-top:16px;text-align:right}.header-button-item[data-v-277bc25c]{margin-right:15px;font-size:20px}.red-title[data-v-277bc25c]{line-height:24px;font-size:18px;color:red}.backtop[data-v-277bc25c]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-277bc25c]{width:100%;text-align:left}.backtop[data-v-277bc25c]:hover{background-color:#0050a0}.el-header[data-v-7f9d4b2f]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-7f9d4b2f]{color:#333}.pagination[data-v-7f9d4b2f]{margin-top:16px;text-align:right}.header-button-item[data-v-7f9d4b2f]{margin-right:15px;font-size:20px}.red-title[data-v-7f9d4b2f]{line-height:24px;font-size:18px;color:red}.backtop[data-v-7f9d4b2f]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-7f9d4b2f]{width:100%;text-align:left}.backtop[data-v-7f9d4b2f]:hover{background-color:#0050a0}.el-header[data-v-cdf9f63a]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-cdf9f63a]{color:#333}.pagination[data-v-cdf9f63a]{margin-top:16px;text-align:right}.header-button-item[data-v-cdf9f63a]{margin-right:15px;font-size:20px}.red-title[data-v-cdf9f63a]{line-height:24px;font-size:18px;color:red}.backtop[data-v-cdf9f63a]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-cdf9f63a]{width:100%;text-align:left}.backtop[data-v-cdf9f63a]:hover{background-color:#0050a0}.el-header[data-v-2da42e76]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-2da42e76]{color:#333}.pagination[data-v-2da42e76]{margin-top:16px;text-align:right}.header-button-item[data-v-2da42e76]{margin-right:15px;font-size:20px}.red-title[data-v-2da42e76]{line-height:24px;font-size:18px;color:red}.backtop[data-v-2da42e76]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-2da42e76]{width:100%;text-align:left}.backtop[data-v-2da42e76]:hover{background-color:#0050a0}.el-header[data-v-5557b0ae]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-5557b0ae]{color:#333}.pagination[data-v-5557b0ae]{margin-top:16px;text-align:right}.header-button-item[data-v-5557b0ae]{margin-right:15px;font-size:20px}.red-title[data-v-5557b0ae]{line-height:24px;font-size:18px;color:red}.backtop[data-v-5557b0ae]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-5557b0ae]{width:100%;text-align:left}.backtop[data-v-5557b0ae]:hover{background-color:#0050a0}.button-container[data-v-e0115e9c]{position:fixed;bottom:0;right:0;margin:16px}.container[data-v-19e0b810]{display:flex;justify-content:center;align-items:center;height:30vh}
/*! /*!
* Bootstrap v4.5.0 (https://getbootstrap.com/) * Bootstrap v4.5.0 (https://getbootstrap.com/)
......
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/kwan.png"><title>kwan</title><link href="/css/app.709b77d7.css" rel="preload" as="style"><link href="/css/chunk-vendors.0bfa23eb.css" rel="preload" as="style"><link href="/js/app.d4742786.js" rel="preload" as="script"><link href="/js/chunk-vendors.533b9d47.js" rel="preload" as="script"><link href="/css/chunk-vendors.0bfa23eb.css" rel="stylesheet"><link href="/css/app.709b77d7.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but kwan doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.533b9d47.js"></script><script src="/js/app.d4742786.js"></script></body></html> <!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/kwan.png"><title>kwan</title><link href="/css/app.1ecf13da.css" rel="preload" as="style"><link href="/css/chunk-vendors.0bfa23eb.css" rel="preload" as="style"><link href="/js/app.040c104f.js" rel="preload" as="script"><link href="/js/chunk-vendors.533b9d47.js" rel="preload" as="script"><link href="/css/chunk-vendors.0bfa23eb.css" rel="stylesheet"><link href="/css/app.1ecf13da.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but kwan doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.533b9d47.js"></script><script src="/js/app.040c104f.js"></script></body></html>
\ No newline at end of file \ No newline at end of file
此差异已折叠。
因为 它太大了无法显示 source diff 。你可以改为 查看blob
此差异已折叠。
此差异已折叠。
...@@ -4,6 +4,9 @@ const ApiService = { ...@@ -4,6 +4,9 @@ const ApiService = {
async triplet(articleId) { async triplet(articleId) {
return await axios.get('http://43.139.90.182:8888/csdnArticleInfo/triplet?articleId=' + articleId); return await axios.get('http://43.139.90.182:8888/csdnArticleInfo/triplet?articleId=' + articleId);
}, },
async resetLikes() {
return await axios.get('http://43.139.90.182:8888/csdnArticleInfo/fixLikesStatus');
},
async allTriplet(articleIds) { async allTriplet(articleIds) {
return await axios.post('http://43.139.90.182:8888/csdnArticleInfo/multiTriplet', articleIds); return await axios.post('http://43.139.90.182:8888/csdnArticleInfo/multiTriplet', articleIds);
}, },
......
...@@ -71,6 +71,16 @@ ...@@ -71,6 +71,16 @@
</span> </span>
</el-dialog> </el-dialog>
</el-form-item> </el-form-item>
<el-form-item>
<el-button type="primary" @click="prepareResetLikes">核验状态</el-button>
<el-dialog title="提示" :visible.sync="resetLikesDialogVisible" width="30%" :before-close="handleClose">
<span>确认核验状态吗?</span>
<span slot="footer" class="dialog-footer">
<el-button @click="resetLikesDialogVisible = false">取 消</el-button>
<el-button type="primary" @click.prevent="resetLikes()">确 定</el-button>
</span>
</el-dialog>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="prepareGetScore">质量分查询</el-button> <el-button type="primary" @click="prepareGetScore">质量分查询</el-button>
<el-dialog v-loading="loading" title="质量分查询" :visible.sync="getScoreFormVisible" style="width: 100%"> <el-dialog v-loading="loading" title="质量分查询" :visible.sync="getScoreFormVisible" style="width: 100%">
...@@ -270,6 +280,7 @@ export default { ...@@ -270,6 +280,7 @@ export default {
tripletVisible: false, tripletVisible: false,
allTripletDialogVisible: false, allTripletDialogVisible: false,
getScoreFormVisible: false, getScoreFormVisible: false,
resetLikesDialogVisible: false,
// 用户列表数据 // 用户列表数据
articleInfoList: [], articleInfoList: [],
loading: false, loading: false,
...@@ -316,6 +327,9 @@ export default { ...@@ -316,6 +327,9 @@ export default {
this.form.articleScore = '' this.form.articleScore = ''
this.getScoreFormVisible = true this.getScoreFormVisible = true
}, },
prepareResetLikes() {
this.resetLikesDialogVisible = true
},
prepareAllTriplet() { prepareAllTriplet() {
this.allTripletDialogVisible = true this.allTripletDialogVisible = true
}, },
...@@ -449,6 +463,18 @@ export default { ...@@ -449,6 +463,18 @@ export default {
} }
this.loading = false this.loading = false
}, },
//重置点赞评论状态
async resetLikes() {
this.loading = true
this.resetLikesDialogVisible = false
const { data: res } = await ApiService.resetLikes()
if (res.code === 200) {
this.articleInfoPage()
} else {
console.error('Received non-200 status code', res)
}
this.loading = false
},
async onDelete(id) { async onDelete(id) {
this.loading = true this.loading = true
this.dialogDelVisible = false this.dialogDelVisible = false
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<el-button size="small" type="primary" @click="userPage">查询</el-button> <el-button size="small" type="primary" @click="userPage">查询</el-button>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button size="small" type="primary" @click="prepareAdd">新增</el-button> <el-button size="small" type="primary" @click="prepareAdd">新增用户</el-button>
<el-dialog title="新增用户" :visible.sync="dialogFormVisible" style="width: 100%"> <el-dialog title="新增用户" :visible.sync="dialogFormVisible" style="width: 100%">
<el-form :model="form" class="custom-form"> <el-form :model="form" class="custom-form">
<el-form-item label="用户名称" :label-width="formLabelWidth" class="form-item"> <el-form-item label="用户名称" :label-width="formLabelWidth" class="form-item">
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
</el-dialog> </el-dialog>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button size="small" type="primary" @click="prepareMutiAdd">批量新增</el-button> <el-button size="small" type="primary" @click="prepareMutiAdd">批量新增用户</el-button>
<el-dialog class="red-title" :visible.sync="dialogMutiFormVisible"> <el-dialog class="red-title" :visible.sync="dialogMutiFormVisible">
<div class="red-title" slot="title">批量新增用户(多个用户换行填写)</div> <div class="red-title" slot="title">批量新增用户(多个用户换行填写)</div>
<el-form :model="form" class="custom-form"> <el-form :model="form" class="custom-form">
...@@ -80,9 +80,9 @@ ...@@ -80,9 +80,9 @@
</div> </div>
</el-dialog> </el-dialog>
</el-form-item> </el-form-item>
<el-form-item>
<!-- <el-form-item>
<el-button size="small" type="primary" @click="prepareResetUser">新的一天</el-button> <el-button size="small" type="primary" @click="prepareResetUser">新的一天</el-button>
</el-form-item>
<el-dialog title="提示" :visible.sync="resetUserDialogVisible" width="30%" :before-close="handleClose"> <el-dialog title="提示" :visible.sync="resetUserDialogVisible" width="30%" :before-close="handleClose">
<span>确认重置新一天用户状态吗?</span> <span>确认重置新一天用户状态吗?</span>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
...@@ -90,9 +90,10 @@ ...@@ -90,9 +90,10 @@
<el-button type="primary" @click.prevent="resetUser()">确 定</el-button> <el-button type="primary" @click.prevent="resetUser()">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
</el-form-item> -->
<el-form-item> <el-form-item>
<el-button size="small" type="primary" @click="prepareAllTriplet">三连</el-button> <el-button size="small" type="primary" @click="prepareAllTriplet">三连</el-button>
</el-form-item>
<el-dialog title="提示" :visible.sync="allTripletDialogVisible" width="30%" :before-close="handleClose"> <el-dialog title="提示" :visible.sync="allTripletDialogVisible" width="30%" :before-close="handleClose">
<span>确认三连吗?</span> <span>确认三连吗?</span>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
...@@ -100,9 +101,10 @@ ...@@ -100,9 +101,10 @@
<el-button type="primary" @click.prevent="allTriplet()">确 定</el-button> <el-button type="primary" @click.prevent="allTriplet()">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<el-form-item>
<el-button size="small" type="warning" @click="prepareReset">重置状态</el-button>
</el-form-item> </el-form-item>
<!-- <el-form-item>
<el-button size="small" type="warning" @click="prepareReset">重置状态</el-button>
<el-dialog title="提示" :visible.sync="resetDialogVisible" width="30%" :before-close="handleClose"> <el-dialog title="提示" :visible.sync="resetDialogVisible" width="30%" :before-close="handleClose">
<span>确认重置状态吗?</span> <span>确认重置状态吗?</span>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
...@@ -110,9 +112,21 @@ ...@@ -110,9 +112,21 @@
<el-button type="primary" @click.prevent="reset()">确 定</el-button> <el-button type="primary" @click.prevent="reset()">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
</el-form-item> -->
<el-form-item> <el-form-item>
<el-button size="small" type="success" @click="prepareAutoReply">自动评论</el-button> <el-button size="small" type="warning" @click="prepareResetLikesComment">核验状态</el-button>
<el-dialog title="提示" :visible.sync="resetLikesCommentDialogVisible" width="30%" :before-close="handleClose">
<span>确认核验状态吗?</span>
<span slot="footer" class="dialog-footer">
<el-button @click="resetLikesCommentDialogVisible = false">取 消</el-button>
<el-button type="primary" @click.prevent="resetLikesComment()">确 定</el-button>
</span>
</el-dialog>
</el-form-item> </el-form-item>
<el-form-item>
<el-button size="small" type="success" @click="prepareAutoReply">自动评论</el-button>
<el-dialog title="提示" :visible.sync="autoReplyDialogVisible" width="30%" :before-close="handleClose"> <el-dialog title="提示" :visible.sync="autoReplyDialogVisible" width="30%" :before-close="handleClose">
<span>确认自动评论吗?</span> <span>确认自动评论吗?</span>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
...@@ -120,6 +134,7 @@ ...@@ -120,6 +134,7 @@
<el-button type="primary" @click.prevent="autoReply()">确 定</el-button> <el-button type="primary" @click.prevent="autoReply()">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
</el-form-item>
</el-form> </el-form>
<el-table ref="multipleTable" v-loading="loading" :data="csdnUserList" tooltip-effect="dark" style="width: 100%" @selection-change="handleSelectionChange"> <el-table ref="multipleTable" v-loading="loading" :data="csdnUserList" tooltip-effect="dark" style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
...@@ -315,6 +330,7 @@ export default { ...@@ -315,6 +330,7 @@ export default {
resetUserDialogVisible: false, resetUserDialogVisible: false,
resetUserDayStatusVisible: false, resetUserDayStatusVisible: false,
blog10DialogVisible: false, blog10DialogVisible: false,
resetLikesCommentDialogVisible: false,
// 用户列表数据 // 用户列表数据
csdnUserList: [], csdnUserList: [],
loading: false, loading: false,
...@@ -376,6 +392,9 @@ export default { ...@@ -376,6 +392,9 @@ export default {
prepareReset() { prepareReset() {
this.resetDialogVisible = true this.resetDialogVisible = true
}, },
prepareResetLikesComment() {
this.resetLikesCommentDialogVisible = true
},
prepareAutoReply() { prepareAutoReply() {
this.autoReplyDialogVisible = true this.autoReplyDialogVisible = true
}, },
...@@ -519,6 +538,17 @@ export default { ...@@ -519,6 +538,17 @@ export default {
} }
this.loading = false this.loading = false
}, },
async resetLikesComment() {
this.loading = true
this.resetLikesCommentDialogVisible = false
const { data: res } = await axios.get('http://43.139.90.182:8888/csdn/fixLikesStatus')
if (res.code === 200) {
this.userPage()
} else {
console.error('Received non-200 status code', res)
}
this.loading = false
},
async onBlog10(userName) { async onBlog10(userName) {
this.loading = true this.loading = true
const { data: res } = await axios.get('http://43.139.90.182:8888/csdn/add10Blog?username=' + userName) const { data: res } = await axios.get('http://43.139.90.182:8888/csdn/add10Blog?username=' + userName)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册