整理

上级 025e4319
.login-container[data-v-bca4874e]{background-color:#35495e;height:100%}.login-container .login-box[data-v-bca4874e]{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-bca4874e]{position:absolute;bottom:0;left:0;width:100%;box-sizing:border-box}.form-control[data-v-bca4874e]{flex:1}.avatar-box[data-v-bca4874e]{position:absolute;width:100%;top:-65px;left:0}.avatar-box .avatar[data-v-bca4874e]{width:120px;height:120px;border-radius:50%!important;box-shadow:0 0 6px #efefef}.layout-header-left-img[data-v-003b0f4a]{height:50px}.layout-aside-container[data-v-4b966958]{width:200px;height:100%;border-right:1px solid #eaeaea}.left-aside-item[data-v-4b966958]{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-1755a7d8]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-1755a7d8]{color:#333}.pagination[data-v-1755a7d8]{margin-top:16px;text-align:right}.header-button-item[data-v-1755a7d8]{margin-right:15px;font-size:20px}.backtop[data-v-1755a7d8]{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-1755a7d8]: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-55b17565]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-55b17565]{color:#333}.pagination[data-v-55b17565]{margin-top:16px;text-align:right}.header-button-item[data-v-55b17565]{margin-right:15px;font-size:20px}.red-title[data-v-55b17565]{line-height:24px;font-size:18px;color:red}.backtop[data-v-55b17565]{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-55b17565]{width:100%;text-align:left}.backtop[data-v-55b17565]:hover{background-color:#0050a0}.el-header[data-v-33b199a6]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-33b199a6]{color:#333}.pagination[data-v-33b199a6]{margin-top:16px;text-align:right}.header-button-item[data-v-33b199a6]{margin-right:15px;font-size:20px}.red-title[data-v-33b199a6]{line-height:24px;font-size:18px;color:red}.backtop[data-v-33b199a6]{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-33b199a6]{width:100%;text-align:left}.backtop[data-v-33b199a6]:hover{background-color:#0050a0}.el-header[data-v-41b6f76a]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-41b6f76a]{color:#333}.pagination[data-v-41b6f76a]{margin-top:16px;text-align:right}.header-button-item[data-v-41b6f76a]{margin-right:15px;font-size:20px}.red-title[data-v-41b6f76a]{line-height:24px;font-size:18px;color:red}.backtop[data-v-41b6f76a]{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-41b6f76a]{width:100%;text-align:left}.backtop[data-v-41b6f76a]:hover{background-color:#0050a0}.el-header[data-v-dfde6c48]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-dfde6c48]{color:#333}.pagination[data-v-dfde6c48]{margin-top:16px;text-align:right}.header-button-item[data-v-dfde6c48]{margin-right:15px;font-size:20px}.red-title[data-v-dfde6c48]{line-height:24px;font-size:18px;color:red}.backtop[data-v-dfde6c48]{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-dfde6c48]{width:100%;text-align:left}.backtop[data-v-dfde6c48]:hover{background-color:#0050a0}.el-header[data-v-388a62d9]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-388a62d9]{color:#333}.pagination[data-v-388a62d9]{margin-top:16px;text-align:right}.header-button-item[data-v-388a62d9]{margin-right:15px;font-size:20px}.red-title[data-v-388a62d9]{line-height:24px;font-size:18px;color:red}.backtop[data-v-388a62d9]{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-388a62d9]{width:100%;text-align:left}.backtop[data-v-388a62d9]:hover{background-color:#0050a0}.button-container[data-v-4ba2a316],.button-container[data-v-6f0d75be]{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-bca4874e]{background-color:#35495e;height:100%}.login-container .login-box[data-v-bca4874e]{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-bca4874e]{position:absolute;bottom:0;left:0;width:100%;box-sizing:border-box}.form-control[data-v-bca4874e]{flex:1}.avatar-box[data-v-bca4874e]{position:absolute;width:100%;top:-65px;left:0}.avatar-box .avatar[data-v-bca4874e]{width:120px;height:120px;border-radius:50%!important;box-shadow:0 0 6px #efefef}.layout-header-left-img[data-v-003b0f4a]{height:50px}.layout-aside-container[data-v-3dfef034]{width:200px;height:100%;border-right:1px solid #eaeaea}.left-aside-item[data-v-3dfef034]{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-1755a7d8]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-1755a7d8]{color:#333}.pagination[data-v-1755a7d8]{margin-top:16px;text-align:right}.header-button-item[data-v-1755a7d8]{margin-right:15px;font-size:20px}.backtop[data-v-1755a7d8]{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-1755a7d8]: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-55b17565]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-55b17565]{color:#333}.pagination[data-v-55b17565]{margin-top:16px;text-align:right}.header-button-item[data-v-55b17565]{margin-right:15px;font-size:20px}.red-title[data-v-55b17565]{line-height:24px;font-size:18px;color:red}.backtop[data-v-55b17565]{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-55b17565]{width:100%;text-align:left}.backtop[data-v-55b17565]:hover{background-color:#0050a0}.el-header[data-v-cbe27112]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-cbe27112]{color:#333}.pagination[data-v-cbe27112]{margin-top:16px;text-align:right}.header-button-item[data-v-cbe27112]{margin-right:15px;font-size:20px}.red-title[data-v-cbe27112]{line-height:24px;font-size:18px;color:red}.backtop[data-v-cbe27112]{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-cbe27112]{width:100%;text-align:left}.backtop[data-v-cbe27112]:hover{background-color:#0050a0}.el-header[data-v-33b199a6]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-33b199a6]{color:#333}.pagination[data-v-33b199a6]{margin-top:16px;text-align:right}.header-button-item[data-v-33b199a6]{margin-right:15px;font-size:20px}.red-title[data-v-33b199a6]{line-height:24px;font-size:18px;color:red}.backtop[data-v-33b199a6]{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-33b199a6]{width:100%;text-align:left}.backtop[data-v-33b199a6]:hover{background-color:#0050a0}.el-header[data-v-54aa1839]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-54aa1839]{color:#333}.pagination[data-v-54aa1839]{margin-top:16px;text-align:right}.header-button-item[data-v-54aa1839]{margin-right:15px;font-size:20px}.red-title[data-v-54aa1839]{line-height:24px;font-size:18px;color:red}.backtop[data-v-54aa1839]{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-54aa1839]{width:100%;text-align:left}.backtop[data-v-54aa1839]:hover{background-color:#0050a0}.el-header[data-v-dfde6c48]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-dfde6c48]{color:#333}.pagination[data-v-dfde6c48]{margin-top:16px;text-align:right}.header-button-item[data-v-dfde6c48]{margin-right:15px;font-size:20px}.red-title[data-v-dfde6c48]{line-height:24px;font-size:18px;color:red}.backtop[data-v-dfde6c48]{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-dfde6c48]{width:100%;text-align:left}.backtop[data-v-dfde6c48]:hover{background-color:#0050a0}.el-header[data-v-09fd22aa]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-09fd22aa]{color:#333}.pagination[data-v-09fd22aa]{margin-top:16px;text-align:right}.header-button-item[data-v-09fd22aa]{margin-right:15px;font-size:20px}.red-title[data-v-09fd22aa]{line-height:24px;font-size:18px;color:red}.backtop[data-v-09fd22aa]{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-09fd22aa]{width:100%;text-align:left}.backtop[data-v-09fd22aa]:hover{background-color:#0050a0}.button-container[data-v-4ba2a316],.button-container[data-v-6f0d75be]{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/)
......
<!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.70c0b739.css" rel="preload" as="style"><link href="/css/chunk-vendors.0bfa23eb.css" rel="preload" as="style"><link href="/js/app.106989c8.js" rel="preload" as="script"><link href="/js/chunk-vendors.02cd1fa9.js" rel="preload" as="script"><link href="/css/chunk-vendors.0bfa23eb.css" rel="stylesheet"><link href="/css/app.70c0b739.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.02cd1fa9.js"></script><script src="/js/app.106989c8.js"></script></body></html>
\ No newline at end of file
<!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.325c7f6e.css" rel="preload" as="style"><link href="/css/chunk-vendors.0bfa23eb.css" rel="preload" as="style"><link href="/js/app.91c1498f.js" rel="preload" as="script"><link href="/js/chunk-vendors.02cd1fa9.js" rel="preload" as="script"><link href="/css/chunk-vendors.0bfa23eb.css" rel="stylesheet"><link href="/css/app.325c7f6e.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.02cd1fa9.js"></script><script src="/js/app.91c1498f.js"></script></body></html>
\ No newline at end of file
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
......@@ -67,5 +67,23 @@ const ApiService = {
postId: postId,
})
},
//粉丝管理
async fansInfoPage(currentPage, pageSize, relationType) {
return await axios.post('http://43.139.90.182:8888/csdn/followFans/page', {
page: currentPage,
pageSize: pageSize,
relationType: relationType == '全部' ? '' : relationType,
})
},
async syncFansInfo() {
return await axios.get('http://43.139.90.182:8888/csdn/followFans/saveFans')
},
async syncFollowInfo() {
return await axios.get('http://43.139.90.182:8888/csdn/followFans/saveFollow')
},
async cancleFollowInfo() {
return await axios.get('http://43.139.90.182:8888/csdn/followFans/deleteFollow')
},
}
export default ApiService
<template>
<div>
<el-container>
<el-main>
<el-form :inline="true" :model="formInline" class="demo-form-inline">
<el-form-item>
<el-select size="small" v-model="formInline.relationType" placeholder="请选择关系类型" @change="fansInfoPage">
<el-option v-for="type in relationType" :key="type" :label="type" :value="type"></el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button size="small" type="primary" @click="fansInfoPage">查询</el-button>
</el-form-item>
<el-form-item>
<el-button size="small" type="primary" @click="prepareSyncFansInfo">同步粉丝</el-button>
<el-dialog title="提示" :visible.sync="syncFansInfoDialogVisible" width="30%" :before-close="handleClose">
<span>确认同步粉丝吗?</span>
<span slot="footer" class="dialog-footer">
<el-button @click="syncFansInfoDialogVisible = false">取 消</el-button>
<el-button type="primary" @click.prevent="syncFansInfo()">确 定</el-button>
</span>
</el-dialog>
</el-form-item>
<el-form-item>
<el-button size="small" type="primary" @click="prepareSyncFollowInfo">同步关注</el-button>
<el-dialog title="提示" :visible.sync="syncFollowInfoDialogVisible" width="30%" :before-close="handleClose">
<span>确认同步关注吗?</span>
<span slot="footer" class="dialog-footer">
<el-button @click="syncFollowInfoDialogVisible = false">取 消</el-button>
<el-button type="primary" @click.prevent="syncFollowInfo()">确 定</el-button>
</span>
</el-dialog>
</el-form-item>
<el-form-item>
<el-button size="small" type="primary" @click="prepareCancleFollowInfo">取消关注</el-button>
<el-dialog title="提示" :visible.sync="cancleFollowInfoDialogVisible" width="30%" :before-close="handleClose">
<span>确认取消关注吗?</span>
<span slot="footer" class="dialog-footer">
<el-button @click="cancleFollowInfoDialogVisible = false">取 消</el-button>
<el-button type="primary" @click.prevent="cancleFollowInfo()">确 定</el-button>
</span>
</el-dialog>
</el-form-item>
</el-form>
<el-table border :data="fansInfoList" v-loading="loading">
<el-table-column prop="id" label="序号" width="100" sortable></el-table-column>
<el-table-column prop="userName" label="用户名" show-overflow-tooltip></el-table-column>
<el-table-column prop="nickName" label="用户昵称" show-overflow-tooltip>
<template slot-scope="scope">
<a :href="scope.row.blogUrl" target="_blank">{{ scope.row.nickName }}</a>
</template>
</el-table-column>
<el-table-column prop="relationType" label="关系" show-overflow-tooltip></el-table-column>
</el-table>
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[8, 50, 100, 200, 400]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="total"></el-pagination>
</el-main>
<el-backtop class="backtop"></el-backtop>
</el-container>
</div>
</template>
<script>
import ApiService from '../../api/ApiService'
export default {
name: 'MyTripletDayInfo',
data() {
return {
formInline: {
relationType: null,
},
relationType: ['全部', '互关', '粉丝', '已关注'],
// 用户列表数据
fansInfoList: [],
loading: false,
syncFansInfoDialogVisible: false,
syncFollowInfoDialogVisible: false,
cancleFollowInfoDialogVisible: false,
elementui_page_component_key: 0,
currentPage: Number(localStorage.getItem('csdnFansInfoPage')) || 1,
pageSize: 9,
total: 0,
}
},
watch: {
'formInline.relationType'(newVal, oldVal) {
if (newVal !== oldVal) {
this.currentPage = 1
localStorage.setItem('csdnFansInfoPage', this.currentPage)
this.fansInfoPage()
}
},
// 监听currentPage的变化,将新值保存到localStorage中
currentPage(newPage) {
localStorage.setItem('csdnFansInfoPage', newPage.toString())
},
},
created() {
//获取问题类型的枚举
this.fansInfoPage()
},
mounted() {
this.currentPage = 1
},
methods: {
prepareSyncFansInfo() {
this.syncFansInfoDialogVisible = true
},
prepareSyncFollowInfo() {
this.syncFollowInfoDialogVisible = true
},
prepareCancleFollowInfo() {
this.cancleFollowInfoDialogVisible = true
},
handleClose(done) {
this.$confirm('确认关闭?')
.then((_) => {
done()
})
.catch((_) => {})
},
async fansInfoPage() {
this.loading = true
const { data: res } = await ApiService.fansInfoPage(this.currentPage, this.pageSize, this.formInline.relationType)
if (res.code === 200) {
this.total = res.result.totalElements
this.fansInfoList = res.result.content
}
this.loading = false
},
async syncFansInfo() {
this.loading = true
this.syncFansInfoDialogVisible = false
const { data: res } = await ApiService.syncFansInfo()
if (res.code === 200) {
this.fansInfoPage()
}
this.loading = false
},
async syncFollowInfo() {
this.loading = true
this.syncFollowInfoDialogVisible = false
const { data: res } = await ApiService.syncFollowInfo()
if (res.code === 200) {
this.fansInfoPage()
}
this.loading = false
},
async cancleFollowInfo() {
this.loading = true
this.cancleFollowInfoDialogVisible = false
const { data: res } = await ApiService.cancleFollowInfo()
if (res.code === 200) {
this.fansInfoPage()
}
this.loading = false
},
refreshPage() {
//获取问题类型的枚举
this.fansInfoPage()
location.reload()
},
handleCurrentChange(currentPage) {
this.currentPage = currentPage
this.fansInfoPage()
},
handleSizeChange(currentSize) {
this.pageSize = currentSize
this.fansInfoPage()
},
},
}
</script>
<style lang="less" scoped>
.el-header {
background-color: #b3c0d1;
color: #333;
line-height: 60px;
}
.el-aside {
color: #333;
}
.pagination {
margin-top: 16px;
text-align: right;
}
.header-button-item {
margin-right: 15px;
font-size: 20px;
}
.red-title {
line-height: 24px;
font-size: 18px;
color: red;
}
.backtop {
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 {
width: 100%;
text-align: left;
}
.backtop:hover {
background-color: #0050a0;
}
</style>
\ No newline at end of file
......@@ -4,7 +4,7 @@
<el-main>
<el-form :inline="true" :model="formInline" class="demo-form-inline">
<el-form-item>
<el-date-picker v-model="formInline.startDate" align="right" type="date" placeholder="选择日期" :value-format="'yyyy-MM-dd'" :picker-options="pickerOptions"></el-date-picker>
<el-date-picker size="small" v-model="formInline.startDate" align="right" type="date" placeholder="选择日期" :value-format="'yyyy-MM-dd'" :picker-options="pickerOptions"></el-date-picker>
</el-form-item>
<el-form-item>
......
......@@ -3,13 +3,6 @@
<el-container>
<el-main>
<el-form :inline="true" :model="formInline" class="demo-form-inline">
<!-- <el-form-item>
<el-date-picker v-model="formInline.startDate" type="date" placeholder="选择开始日期" :value-format="'yyyy-MM-dd'"></el-date-picker>
</el-form-item>
<el-form-item>
<el-date-picker v-model="formInline.endDate" type="date" placeholder="选择结束日期" :value-format="'yyyy-MM-dd'"></el-date-picker>
</el-form-item> -->
<el-date-picker v-model="formInline.tripletDate" type="daterange" align="right" unlink-panels range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :value-format="'yyyy-MM-dd'" :picker-options="pickerOptions"></el-date-picker>
<el-form-item>
......@@ -33,6 +26,9 @@
{{ props.row.tripletDate | dateDayFormat }}
</template>
</el-table-column>
<el-table-column prop="weekInfo" label="星期" show-overflow-tooltip></el-table-column>
<el-table-column prop="likeNum" label="点赞数量" show-overflow-tooltip></el-table-column>
<el-table-column prop="collectNum" label="收藏数量" show-overflow-tooltip></el-table-column>
<el-table-column prop="commentNum" label="评论数量" show-overflow-tooltip></el-table-column>
......
......@@ -20,6 +20,9 @@
</router-link>
<router-link :to="{ path: '/home/message' }">
<el-menu-item index="/home/message">私信管理</el-menu-item>
</router-link>
<router-link :to="{ path: '/home/fansInfo' }">
<el-menu-item index="/home/fansInfo">粉丝管理</el-menu-item>
</router-link>
</el-menu-item-group>
</el-submenu>
......
......@@ -12,6 +12,7 @@ import Interview from '@/components/menus/MyInterview.vue'
import Algorithmic from '@/components/menus/MyAlgorithmic.vue'
import AphorismPoetry from '@/components/menus/MyAphorismPoetry.vue'
import MyCsdnUser from '@/components/menus/MyCsdnUser.vue'
import MyFansInfo from '@/components/menus/MyFansInfo.vue'
import MyMessage from '@/components/menus/MyMessage.vue'
import MyRedPackage from '@/components/menus/MyRedPackage.vue'
import MyArticleInfo from '@/components/menus/MyArticleInfo.vue'
......@@ -77,6 +78,13 @@ const router = new VueRouter({
title: '私信管理', // 设置默认标题
},
},
{
path: 'fansInfo',
component: MyFansInfo,
meta: {
title: '粉丝管理', // 设置默认标题
},
},
{
path: 'interview',
component: Interview,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册