提交 d929ba11 编写于 作者: 檀越@新空间's avatar 檀越@新空间 🐭

整理

上级 2f77d5fb
.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-6250659e]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-6250659e]{color:#333}.pagination[data-v-6250659e]{margin-top:16px;text-align:right}.header-button-item[data-v-6250659e]{margin-right:15px;font-size:20px}.red-title[data-v-6250659e]{line-height:24px;font-size:18px;color:red}.backtop[data-v-6250659e]{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-6250659e]{width:100%;text-align:left}.backtop[data-v-6250659e]: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-2a8679cc]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-2a8679cc]{color:#333}.pagination[data-v-2a8679cc]{margin-top:16px;text-align:right}.header-button-item[data-v-2a8679cc]{margin-right:15px;font-size:20px}.red-title[data-v-2a8679cc]{line-height:24px;font-size:18px;color:red}.backtop[data-v-2a8679cc]{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-2a8679cc]{width:100%;text-align:left}.backtop[data-v-2a8679cc]:hover{background-color:#0050a0}.el-header[data-v-31734f09]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-31734f09]{color:#333}.pagination[data-v-31734f09]{margin-top:16px;text-align:right}.header-button-item[data-v-31734f09]{margin-right:15px;font-size:20px}.red-title[data-v-31734f09]{line-height:24px;font-size:18px;color:red}.backtop[data-v-31734f09]{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-31734f09]{width:100%;text-align:left}.backtop[data-v-31734f09]:hover{background-color:#0050a0}.el-header[data-v-461f0053]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-461f0053]{color:#333}.pagination[data-v-461f0053]{margin-top:16px;text-align:right}.header-button-item[data-v-461f0053]{margin-right:15px;font-size:20px}.red-title[data-v-461f0053]{line-height:24px;font-size:18px;color:red}.backtop[data-v-461f0053]{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-461f0053]{width:100%;text-align:left}.backtop[data-v-461f0053]: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-6250659e]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-6250659e]{color:#333}.pagination[data-v-6250659e]{margin-top:16px;text-align:right}.header-button-item[data-v-6250659e]{margin-right:15px;font-size:20px}.red-title[data-v-6250659e]{line-height:24px;font-size:18px;color:red}.backtop[data-v-6250659e]{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-6250659e]{width:100%;text-align:left}.backtop[data-v-6250659e]: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-7ec07918]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-7ec07918]{color:#333}.pagination[data-v-7ec07918]{margin-top:16px;text-align:right}.header-button-item[data-v-7ec07918]{margin-right:15px;font-size:20px}.red-title[data-v-7ec07918]{line-height:24px;font-size:18px;color:red}.backtop[data-v-7ec07918]{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-7ec07918]{width:100%;text-align:left}.backtop[data-v-7ec07918]:hover{background-color:#0050a0}.el-header[data-v-40048cb8]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-40048cb8]{color:#333}.pagination[data-v-40048cb8]{margin-top:16px;text-align:right}.header-button-item[data-v-40048cb8]{margin-right:15px;font-size:20px}.red-title[data-v-40048cb8]{line-height:24px;font-size:18px;color:red}.backtop[data-v-40048cb8]{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-40048cb8]{width:100%;text-align:left}.backtop[data-v-40048cb8]:hover{background-color:#0050a0}.el-header[data-v-461f0053]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-461f0053]{color:#333}.pagination[data-v-461f0053]{margin-top:16px;text-align:right}.header-button-item[data-v-461f0053]{margin-right:15px;font-size:20px}.red-title[data-v-461f0053]{line-height:24px;font-size:18px;color:red}.backtop[data-v-461f0053]{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-461f0053]{width:100%;text-align:left}.backtop[data-v-461f0053]: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.1373b050.css" rel="preload" as="style"><link href="/css/chunk-vendors.0bfa23eb.css" rel="preload" as="style"><link href="/js/app.7e34ad71.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.1373b050.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.7e34ad71.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.bc4c6707.css" rel="preload" as="style"><link href="/css/chunk-vendors.0bfa23eb.css" rel="preload" as="style"><link href="/js/app.a4ca11d1.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.bc4c6707.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.a4ca11d1.js"></script></body></html>
\ No newline at end of file \ No newline at end of file
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
...@@ -8,7 +8,11 @@ ...@@ -8,7 +8,11 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-input size="small" clearable v-model="formInline.myAmount" placeholder="请输入最小金额" @keydown.enter.native="redPackagePage"></el-input> <el-input size="small" clearable v-model="formInline.myAmountStart" placeholder="请输入最小金额" @keydown.enter.native="redPackagePage"></el-input>
</el-form-item>
<el-form-item>
<el-input size="small" clearable v-model="formInline.myAmountEnd" placeholder="请输入最大金额" @keydown.enter.native="redPackagePage"></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
...@@ -133,219 +137,222 @@ ...@@ -133,219 +137,222 @@
<script> <script>
import axios from 'axios' import axios from 'axios'
export default { export default {
name: 'MyRedPackage', name: 'MyRedPackage',
data() { data() {
return { return {
form: { form: {
todayGet: '', todayGet: '',
allGet: '', allGet: '',
myAmount: '', myAmount: '',
userName: '', userName: '',
msg: '', msg: '',
}, },
formInline: { formInline: {
nickName: '', nickName: '',
itemType: '', itemType: '',
myAmount: '', myAmount: '',
msg: '', msg: '',
}, myAmountStart: '',
itemType: ['全部', 'article', 'blink', 'topic'], myAmountEnd: '',
msg: ['全部', 'received', 'completed', '其它'], },
deleteDialogVisible: false, itemType: ['全部', 'article', 'blink', 'topic'],
editVisible: false, msg: ['全部', 'received', 'completed', '其它'],
viewCountVisible: false, deleteDialogVisible: false,
viewCountAllDialogVisible: false, editVisible: false,
getTodayDialogVisible: false, viewCountVisible: false,
// 用户列表数据 viewCountAllDialogVisible: false,
csdnRedPackageList: [], getTodayDialogVisible: false,
loading: false, // 用户列表数据
elementui_page_component_key: 0, csdnRedPackageList: [],
currentPage: Number(localStorage.getItem('redPackagePage')) || 1, loading: false,
pageSize: 10, elementui_page_component_key: 0,
total: 0, currentPage: Number(localStorage.getItem('redPackagePage')) || 1,
currentRowId: null, pageSize: 10,
currentUserName: null, total: 0,
} currentRowId: null,
}, currentUserName: null,
watch: { }
formInline: { },
handler(newVal, oldVal) { watch: {
this.currentPage = 1 formInline: {
localStorage.setItem('redPackagePage', this.currentPage) handler(newVal, oldVal) {
this.redPackagePage() this.currentPage = 1
}, localStorage.setItem('redPackagePage', this.currentPage)
deep: true, this.redPackagePage()
}, },
// 监听currentPage的变化,将新值保存到localStorage中 deep: true,
currentPage(newPage) { },
localStorage.setItem('redPackagePage', newPage.toString()) // 监听currentPage的变化,将新值保存到localStorage中
}, currentPage(newPage) {
}, localStorage.setItem('redPackagePage', newPage.toString())
created() { },
//获取问题类型的枚举 },
this.redPackagePage() created() {
}, //获取问题类型的枚举
mounted() { this.redPackagePage()
this.currentPage = 1 },
}, mounted() {
methods: { this.currentPage = 1
prepareViewCountAll() { },
this.viewCountAllDialogVisible = true methods: {
}, prepareViewCountAll() {
prepareGetToday() { this.viewCountAllDialogVisible = true
this.form.todayGet = '' },
this.form.allGet = '' prepareGetToday() {
this.getTodayDialogVisible = true this.form.todayGet = ''
}, this.form.allGet = ''
prepareDelete(id) { this.getTodayDialogVisible = true
this.currentRowId = id },
this.deleteDialogVisible = true prepareDelete(id) {
}, this.currentRowId = id
prepareViewCount(id) { this.deleteDialogVisible = true
this.currentRowId = id },
this.viewCountVisible = true prepareViewCount(id) {
}, this.currentRowId = id
preEdit(id, userName, myAmount, msg) { this.viewCountVisible = true
this.form.userName = userName },
this.form.myAmount = myAmount preEdit(id, userName, myAmount, msg) {
this.form.msg = msg this.form.userName = userName
this.currentRowId = id this.form.myAmount = myAmount
this.editVisible = true this.form.msg = msg
}, this.currentRowId = id
this.editVisible = true
},
handleClose(done) { handleClose(done) {
this.$confirm('确认关闭?') this.$confirm('确认关闭?')
.then((_) => { .then((_) => {
done() done()
}) })
.catch((_) => {}) .catch((_) => {})
}, },
handleConfirm(addType) { handleConfirm(addType) {
this.dialogFormVisible = false // 关闭对话框 this.dialogFormVisible = false // 关闭对话框
this.dialogMutiFormVisible = false this.dialogMutiFormVisible = false
this.addUser(addType) // 发送请求 this.addUser(addType) // 发送请求
}, },
async redPackagePage() { async redPackagePage() {
this.loading = true this.loading = true
const { data: res } = await axios.post('http://43.139.90.182:8888/csdn/redPackage/page', { const { data: res } = await axios.post('http://43.139.90.182:8888/csdn/redPackage/page', {
page: this.currentPage, page: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
nickName: this.formInline.nickName, nickName: this.formInline.nickName,
myAmount: this.formInline.myAmount, myAmountStart: this.formInline.myAmountStart,
itemType: this.formInline.itemType == '全部' ? null : this.formInline.itemType, myAmountEnd: this.formInline.myAmountEnd,
msg: this.formInline.msg == '全部' ? null : this.formInline.msg, 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 if (res.code === 200) {
this.csdnRedPackageList = res.result.content this.total = res.result.totalElements
} this.csdnRedPackageList = res.result.content
this.loading = false }
}, this.loading = false
},
async dealViewCount(id) { async dealViewCount(id) {
this.loading = true this.loading = true
this.viewCountVisible = false this.viewCountVisible = false
const { data: res } = await axios.get('http://43.139.90.182:8888/csdn/redPackage/getViewCountById?id=' + id) const { data: res } = await axios.get('http://43.139.90.182:8888/csdn/redPackage/getViewCountById?id=' + id)
if (res.code === 200) { if (res.code === 200) {
this.currentRowId = null this.currentRowId = null
this.redPackagePage() this.redPackagePage()
} else { } else {
console.error('Received non-200 status code', res) console.error('Received non-200 status code', res)
} }
this.loading = false this.loading = false
}, },
async editConfirm() { async editConfirm() {
try { try {
this.loading = true this.loading = true
const { data: res } = await axios.post('http://43.139.90.182:8888/csdn/redPackage/update', { const { data: res } = await axios.post('http://43.139.90.182:8888/csdn/redPackage/update', {
id: this.currentRowId, id: this.currentRowId,
userName: this.form.userName, userName: this.form.userName,
myAmount: this.form.myAmount, myAmount: this.form.myAmount,
msg: this.form.msg, msg: this.form.msg,
}) })
if (res.code === 200) { if (res.code === 200) {
this.form.userName = '' this.form.userName = ''
this.form.myAmount = '' this.form.myAmount = ''
this.form.msg = '' this.form.msg = ''
this.editVisible = false this.editVisible = false
currentRowId: null currentRowId: null
this.redPackagePage() this.redPackagePage()
} else { } else {
console.error('Received non-200 status code', res) console.error('Received non-200 status code', res)
} }
} catch (error) { } catch (error) {
console.error('An error occurred while adding the questionName:', error) console.error('An error occurred while adding the questionName:', error)
// 异常处理逻辑 // 异常处理逻辑
} finally { } finally {
this.loading = false this.loading = false
} }
}, },
async viewCountAll() { async viewCountAll() {
this.loading = true this.loading = true
this.viewCountAllDialogVisible = false this.viewCountAllDialogVisible = false
const { data: res1 } = await axios.get('http://43.139.90.182:8888/csdn/redPackage/getViewCountAll') const { data: res1 } = await axios.get('http://43.139.90.182:8888/csdn/redPackage/getViewCountAll')
if (res1.code === 200) { if (res1.code === 200) {
this.redPackagePage() this.redPackagePage()
} else { } else {
console.error('Received non-200 status code', res1) console.error('Received non-200 status code', res1)
} }
this.loading = false this.loading = false
}, },
async getToday() { async getToday() {
const { data: res } = await axios.get('http://43.139.90.182:8888/csdn/redPackage/getMyAmount') const { data: res } = await axios.get('http://43.139.90.182:8888/csdn/redPackage/getMyAmount')
if (res.code === 200) { if (res.code === 200) {
this.form.todayGet = res.result.todayGet this.form.todayGet = res.result.todayGet
this.form.allGet = res.result.allGet this.form.allGet = res.result.allGet
} else { } else {
console.error('Received non-200 status code', res) console.error('Received non-200 status code', res)
} }
}, },
async onDelete(id) { async onDelete(id) {
this.loading = true this.loading = true
const { data: res } = await axios.get('http://43.139.90.182:8888/csdn/user/delete', { const { data: res } = await axios.get('http://43.139.90.182:8888/csdn/user/delete', {
params: { params: {
id: id, id: id,
}, },
}) })
this.deleteDialogVisible = false this.deleteDialogVisible = false
this.redPackagePage() this.redPackagePage()
this.loading = false this.loading = false
}, },
refreshPage() { refreshPage() {
//获取问题类型的枚举 //获取问题类型的枚举
this.redPackagePage() this.redPackagePage()
location.reload() location.reload()
}, },
handleCurrentChange(currentPage) { handleCurrentChange(currentPage) {
this.currentPage = currentPage this.currentPage = currentPage
this.redPackagePage() this.redPackagePage()
}, },
handleSizeChange(currentSize) { handleSizeChange(currentSize) {
this.pageSize = currentSize this.pageSize = currentSize
this.redPackagePage() this.redPackagePage()
}, },
getTagType(myAmount) { getTagType(myAmount) {
if (myAmount >= 0.3) { if (myAmount >= 0.3) {
return 'success' return 'success'
} else if (myAmount >= 0.2) { } else if (myAmount >= 0.2) {
return 'primary' return 'primary'
} else if (myAmount >= 0.1) { } else if (myAmount >= 0.1) {
return 'warning' return 'warning'
} else { } else {
return 'danger' return 'danger'
} }
}, },
getMsgType(msg) { getMsgType(msg) {
if (msg == 'received' || msg == 'completed') { if (msg == 'received' || msg == 'completed') {
return 'success' return 'success'
} else { } else {
return 'danger' return 'danger'
} }
}, },
}, },
} }
</script> </script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册