整理

上级 9c6f95bb
.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-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-3db5ae18]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-3db5ae18]{color:#333}.pagination[data-v-3db5ae18]{margin-top:16px;text-align:right}.header-button-item[data-v-3db5ae18]{margin-right:15px;font-size:20px}.red-title[data-v-3db5ae18]{line-height:24px;font-size:18px;color:red}.backtop[data-v-3db5ae18]{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-3db5ae18]{width:100%;text-align:left}.backtop[data-v-3db5ae18]: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-f3f80d88]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-f3f80d88]{color:#333}.pagination[data-v-f3f80d88]{margin-top:16px;text-align:right}.header-button-item[data-v-f3f80d88]{margin-right:15px;font-size:20px}.red-title[data-v-f3f80d88]{line-height:24px;font-size:18px;color:red}.backtop[data-v-f3f80d88]{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-f3f80d88]{width:100%;text-align:left}.backtop[data-v-f3f80d88]:hover{background-color:#0050a0}.el-header[data-v-757b793e]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-757b793e]{color:#333}.pagination[data-v-757b793e]{margin-top:16px;text-align:right}.header-button-item[data-v-757b793e]{margin-right:15px;font-size:20px}.red-title[data-v-757b793e]{line-height:24px;font-size:18px;color:red}.backtop[data-v-757b793e]{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-757b793e]{width:100%;text-align:left}.backtop[data-v-757b793e]:hover{background-color:#0050a0}.el-header[data-v-148800bf]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-148800bf]{color:#333}.pagination[data-v-148800bf]{margin-top:16px;text-align:right}.header-button-item[data-v-148800bf]{margin-right:15px;font-size:20px}.red-title[data-v-148800bf]{line-height:24px;font-size:18px;color:red}.backtop[data-v-148800bf]{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-148800bf]{width:100%;text-align:left}.backtop[data-v-148800bf]:hover{background-color:#0050a0}.button-container[data-v-bdbc2b14]{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-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-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-3db5ae18]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-3db5ae18]{color:#333}.pagination[data-v-3db5ae18]{margin-top:16px;text-align:right}.header-button-item[data-v-3db5ae18]{margin-right:15px;font-size:20px}.red-title[data-v-3db5ae18]{line-height:24px;font-size:18px;color:red}.backtop[data-v-3db5ae18]{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-3db5ae18]{width:100%;text-align:left}.backtop[data-v-3db5ae18]: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-0f6ae04d]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-0f6ae04d]{color:#333}.pagination[data-v-0f6ae04d]{margin-top:16px;text-align:right}.header-button-item[data-v-0f6ae04d]{margin-right:15px;font-size:20px}.red-title[data-v-0f6ae04d]{line-height:24px;font-size:18px;color:red}.backtop[data-v-0f6ae04d]{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-0f6ae04d]{width:100%;text-align:left}.backtop[data-v-0f6ae04d]:hover{background-color:#0050a0}.el-header[data-v-757b793e]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-757b793e]{color:#333}.pagination[data-v-757b793e]{margin-top:16px;text-align:right}.header-button-item[data-v-757b793e]{margin-right:15px;font-size:20px}.red-title[data-v-757b793e]{line-height:24px;font-size:18px;color:red}.backtop[data-v-757b793e]{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-757b793e]{width:100%;text-align:left}.backtop[data-v-757b793e]:hover{background-color:#0050a0}.el-header[data-v-148800bf]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-148800bf]{color:#333}.pagination[data-v-148800bf]{margin-top:16px;text-align:right}.header-button-item[data-v-148800bf]{margin-right:15px;font-size:20px}.red-title[data-v-148800bf]{line-height:24px;font-size:18px;color:red}.backtop[data-v-148800bf]{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-148800bf]{width:100%;text-align:left}.backtop[data-v-148800bf]:hover{background-color:#0050a0}.button-container[data-v-bdbc2b14]{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.39b66b2e.css" rel="preload" as="style"><link href="/css/chunk-vendors.0bfa23eb.css" rel="preload" as="style"><link href="/js/app.02c57514.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.39b66b2e.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.02c57514.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.80fd0ecb.css" rel="preload" as="style"><link href="/css/chunk-vendors.0bfa23eb.css" rel="preload" as="style"><link href="/js/app.348114fb.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.80fd0ecb.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.348114fb.js"></script></body></html>
\ No newline at end of file \ No newline at end of file
因为 它太大了无法显示 source diff 。你可以改为 查看blob
因为 它太大了无法显示 source diff 。你可以改为 查看blob
因为 它太大了无法显示 source diff 。你可以改为 查看blob
...@@ -59,10 +59,13 @@ ...@@ -59,10 +59,13 @@
</span> </span>
</el-dialog> </el-dialog>
</el-form-item> </el-form-item>
<el-form-item>
<el-button size="small" type="primary" @click="newRedPackage">最新红包</el-button>
</el-form-item>
</el-form> </el-form>
<el-table ref="multipleTable" v-loading="loading" :data="csdnRedPackageList" tooltip-effect="dark" style="width: 100%"> <el-table ref="multipleTable" v-loading="loading" :data="csdnRedPackageList" tooltip-effect="dark" style="width: 100%">
<el-table-column prop="id" label="序号" width="100" sortable></el-table-column> <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> <el-table-column prop="nickName" label="用户昵称" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<a :href="scope.row.shareUrl" target="_blank">{{ scope.row.nickName }}</a> <a :href="scope.row.shareUrl" target="_blank">{{ scope.row.nickName }}</a>
...@@ -86,9 +89,10 @@ ...@@ -86,9 +89,10 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="更新时间"> <el-table-column label="创建时间">
<template slot-scope="props">{{ props.row.updateTime | dateFormat }}</template> <template slot-scope="props">{{ props.row.createTime | dateFormat }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="操作" label="操作"> <el-table-column prop="操作" label="操作">
<template slot-scope="props"> <template slot-scope="props">
<el-button type="success" @click="dealViewCount(props.row.id)" size="small">浏览量</el-button> <el-button type="success" @click="dealViewCount(props.row.id)" size="small">浏览量</el-button>
...@@ -123,216 +127,221 @@ ...@@ -123,216 +127,221 @@
<script> <script>
import axios from 'axios' import axios from 'axios'
export default { export default {
name: 'MyRedPackage', name: 'MyRedPackage',
data() {
return {
form: {
todayGet: '',
allGet: '',
myAmount: '',
nickName: '',
msg: '',
},
formInline: {
nickName: '',
itemType: '',
myAmount: '',
msg: '',
myAmountStart: '',
myAmountEnd: '',
},
itemType: ['全部', 'article', 'blink', 'topic'],
msg: ['全部', 'received', 'completed', '其它'],
deleteDialogVisible: false,
editVisible: false,
viewCountAllDialogVisible: false,
getTodayDialogVisible: false,
// 用户列表数据
csdnRedPackageList: [],
loading: false,
elementui_page_component_key: 0,
currentPage: Number(localStorage.getItem('redPackagePage')) || 1,
pageSize: 10,
total: 0,
currentRowId: null,
currentUserName: null,
}
},
watch: {
formInline: {
handler(newVal, oldVal) {
this.currentPage = 1
localStorage.setItem('redPackagePage', this.currentPage)
this.redPackagePage()
},
deep: true,
},
// 监听currentPage的变化,将新值保存到localStorage中
currentPage(newPage) {
localStorage.setItem('redPackagePage', newPage.toString())
},
},
created() {
//获取问题类型的枚举
this.redPackagePage()
},
mounted() {
this.currentPage = 1
},
methods: {
prepareViewCountAll() {
this.viewCountAllDialogVisible = true
},
prepareGetToday() {
this.form.todayGet = ''
this.form.allGet = ''
this.getTodayDialogVisible = true
},
prepareDelete(id) {
this.currentRowId = id
this.deleteDialogVisible = true
},
data() { preEdit(id, nickName, myAmount, msg) {
return { this.form.nickName = nickName
form: { this.form.myAmount = myAmount
todayGet: '', this.form.msg = msg
allGet: '', this.currentRowId = id
myAmount: '', this.editVisible = true
nickName: '', },
msg: '',
},
formInline: {
nickName: '',
itemType: '',
myAmount: '',
msg: '',
myAmountStart: '',
myAmountEnd: '',
},
itemType: ['全部', 'article', 'blink', 'topic'],
msg: ['全部', 'received', 'completed', '其它'],
deleteDialogVisible: false,
editVisible: false,
viewCountAllDialogVisible: false,
getTodayDialogVisible: false,
// 用户列表数据
csdnRedPackageList: [],
loading: false,
elementui_page_component_key: 0,
currentPage: Number(localStorage.getItem('redPackagePage')) || 1,
pageSize: 10,
total: 0,
currentRowId: null,
currentUserName: null,
}
},
watch: {
formInline: {
handler(newVal, oldVal) {
this.currentPage = 1
localStorage.setItem('redPackagePage', this.currentPage)
this.redPackagePage()
},
deep: true,
},
// 监听currentPage的变化,将新值保存到localStorage中
currentPage(newPage) {
localStorage.setItem('redPackagePage', newPage.toString())
},
},
created() {
//获取问题类型的枚举
this.redPackagePage()
},
mounted() {
this.currentPage = 1
},
methods: {
prepareViewCountAll() {
this.viewCountAllDialogVisible = true
},
prepareGetToday() {
this.form.todayGet = ''
this.form.allGet = ''
this.getTodayDialogVisible = true
},
prepareDelete(id) {
this.currentRowId = id
this.deleteDialogVisible = true
},
preEdit(id, nickName, myAmount, msg) { handleClose(done) {
this.form.nickName = nickName this.$confirm('确认关闭?')
this.form.myAmount = myAmount .then((_) => {
this.form.msg = msg done()
this.currentRowId = id })
this.editVisible = true .catch((_) => {})
}, },
handleConfirm(addType) {
this.dialogFormVisible = false // 关闭对话框
this.dialogMutiFormVisible = false
this.addUser(addType) // 发送请求
},
async redPackagePage() {
this.loading = true
const { data: res } = await axios.post('http://43.139.90.182:8888/csdn/redPackage/page', {
page: this.currentPage,
pageSize: this.pageSize,
nickName: this.formInline.nickName,
myAmountStart: this.formInline.myAmountStart,
myAmountEnd: this.formInline.myAmountEnd,
itemType: this.formInline.itemType == '全部' ? null : this.formInline.itemType,
msg: this.formInline.msg == '全部' ? null : this.formInline.msg,
})
if (res.code === 200) {
this.total = res.result.totalElements
this.csdnRedPackageList = res.result.content
}
this.loading = false
},
handleClose(done) { async dealViewCount(id) {
this.$confirm('确认关闭?') this.loading = true
.then((_) => { const { data: res } = await axios.get('http://43.139.90.182:8888/csdn/redPackage/getViewCountById?id=' + id)
done() if (res.code === 200) {
}) this.redPackagePage()
.catch((_) => {}) } else {
}, console.error('Received non-200 status code', res)
handleConfirm(addType) { }
this.dialogFormVisible = false // 关闭对话框 this.loading = false
this.dialogMutiFormVisible = false },
this.addUser(addType) // 发送请求
},
async redPackagePage() {
this.loading = true
const { data: res } = await axios.post('http://43.139.90.182:8888/csdn/redPackage/page', {
page: this.currentPage,
pageSize: this.pageSize,
nickName: this.formInline.nickName,
myAmountStart: this.formInline.myAmountStart,
myAmountEnd: this.formInline.myAmountEnd,
itemType: this.formInline.itemType == '全部' ? null : this.formInline.itemType,
msg: this.formInline.msg == '全部' ? null : this.formInline.msg,
})
if (res.code === 200) {
this.total = res.result.totalElements
this.csdnRedPackageList = res.result.content
}
this.loading = false
},
async dealViewCount(id) { async editConfirm() {
this.loading = true try {
const { data: res } = await axios.get('http://43.139.90.182:8888/csdn/redPackage/getViewCountById?id=' + id) this.loading = true
if (res.code === 200) { const { data: res } = await axios.post('http://43.139.90.182:8888/csdn/redPackage/update', {
this.redPackagePage() id: this.currentRowId,
} else { nickName: this.form.nickName,
console.error('Received non-200 status code', res) myAmount: this.form.myAmount,
} msg: this.form.msg,
this.loading = false })
}, if (res.code === 200) {
this.form.nickName = ''
this.form.myAmount = ''
this.form.msg = ''
this.editVisible = false
currentRowId: null
this.redPackagePage()
} else {
console.error('Received non-200 status code', res)
}
} catch (error) {
console.error('An error occurred while adding the questionName:', error)
// 异常处理逻辑
} finally {
this.loading = false
}
},
async editConfirm() { async viewCountAll() {
try { this.loading = true
this.loading = true this.viewCountAllDialogVisible = false
const { data: res } = await axios.post('http://43.139.90.182:8888/csdn/redPackage/update', { const { data: res1 } = await axios.get('http://43.139.90.182:8888/csdn/redPackage/getViewCountAll')
id: this.currentRowId, if (res1.code === 200) {
nickName: this.form.nickName, this.redPackagePage()
myAmount: this.form.myAmount, } else {
msg: this.form.msg, console.error('Received non-200 status code', res1)
}) }
if (res.code === 200) { this.loading = false
this.form.nickName = '' },
this.form.myAmount = '' async getToday() {
this.form.msg = '' const { data: res } = await axios.get('http://43.139.90.182:8888/csdn/redPackage/getMyAmount')
this.editVisible = false if (res.code === 200) {
currentRowId: null this.form.todayGet = res.result.todayGet
this.redPackagePage() this.form.allGet = res.result.allGet
} else { } else {
console.error('Received non-200 status code', res) console.error('Received non-200 status code', res)
} }
} catch (error) { },
console.error('An error occurred while adding the questionName:', error) async onDelete(id) {
// 异常处理逻辑 this.loading = true
} finally { const { data: res } = await axios.get('http://43.139.90.182:8888/csdn/user/delete', {
this.loading = false params: {
} id: id,
}, },
})
this.deleteDialogVisible = false
this.redPackagePage()
this.loading = false
},
refreshPage() {
//获取问题类型的枚举
this.redPackagePage()
location.reload()
},
handleCurrentChange(currentPage) {
this.currentPage = currentPage
this.redPackagePage()
},
handleSizeChange(currentSize) {
this.pageSize = currentSize
this.redPackagePage()
},
async viewCountAll() { newRedPackage() {
this.loading = true // 新页面打开
this.viewCountAllDialogVisible = false window.open('https://bbs.csdn.net/?type=4&header=0&utm_source=wwwtab')
const { data: res1 } = await axios.get('http://43.139.90.182:8888/csdn/redPackage/getViewCountAll') },
if (res1.code === 200) { getTagType(myAmount) {
this.redPackagePage() if (myAmount >= 0.3) {
} else { return 'success'
console.error('Received non-200 status code', res1) } else if (myAmount >= 0.2) {
} return 'primary'
this.loading = false } else if (myAmount >= 0.1) {
}, return 'warning'
async getToday() { } else {
const { data: res } = await axios.get('http://43.139.90.182:8888/csdn/redPackage/getMyAmount') return 'danger'
if (res.code === 200) { }
this.form.todayGet = res.result.todayGet },
this.form.allGet = res.result.allGet getMsgType(msg) {
} else { if (msg == 'received' || msg == 'completed') {
console.error('Received non-200 status code', res) return 'success'
} } else {
}, return 'danger'
async onDelete(id) { }
this.loading = true },
const { data: res } = await axios.get('http://43.139.90.182:8888/csdn/user/delete', { },
params: {
id: id,
},
})
this.deleteDialogVisible = false
this.redPackagePage()
this.loading = false
},
refreshPage() {
//获取问题类型的枚举
this.redPackagePage()
location.reload()
},
handleCurrentChange(currentPage) {
this.currentPage = currentPage
this.redPackagePage()
},
handleSizeChange(currentSize) {
this.pageSize = currentSize
this.redPackagePage()
},
getTagType(myAmount) {
if (myAmount >= 0.3) {
return 'success'
} else if (myAmount >= 0.2) {
return 'primary'
} else if (myAmount >= 0.1) {
return 'warning'
} else {
return 'danger'
}
},
getMsgType(msg) {
if (msg == 'received' || msg == 'completed') {
return 'success'
} else {
return 'danger'
}
},
},
} }
</script> </script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册