Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
檀越@新空间
vue-kwan-admin
提交
4525804c
V
vue-kwan-admin
项目概览
檀越@新空间
/
vue-kwan-admin
通知
40
Star
6
Fork
3
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-kwan-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
4525804c
编写于
11月 22, 2023
作者:
檀越@新空间
🐭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
整理
上级
6d9e6b54
变更
20
展开全部
隐藏空白更改
内联
并排
Showing
20 changed file
with
10208 addition
and
1117 deletion
+10208
-1117
dist/js/app.fea40924.js
dist/js/app.fea40924.js
+9157
-2
dist/js/app.fea40924.js.map
dist/js/app.fea40924.js.map
+587
-1
src/api/ApiService.js
src/api/ApiService.js
+18
-18
src/components/MyLogin.vue
src/components/MyLogin.vue
+1
-1
src/components/menus/MyAlgorithmic.vue
src/components/menus/MyAlgorithmic.vue
+7
-7
src/components/menus/MyAphorismPoetry.vue
src/components/menus/MyAphorismPoetry.vue
+5
-5
src/components/menus/MyArticleInfo.vue
src/components/menus/MyArticleInfo.vue
+5
-5
src/components/menus/MyChat.vue
src/components/menus/MyChat.vue
+2
-2
src/components/menus/MyCsdnUser.vue
src/components/menus/MyCsdnUser.vue
+410
-410
src/components/menus/MyInterview.vue
src/components/menus/MyInterview.vue
+5
-5
src/components/menus/MyMessage.vue
src/components/menus/MyMessage.vue
+6
-6
src/components/menus/MyPic.vue
src/components/menus/MyPic.vue
+1
-1
src/components/menus/MyRedPackage.vue
src/components/menus/MyRedPackage.vue
+0
-489
src/components/menus/MyTripletDayInfo.vue
src/components/menus/MyTripletDayInfo.vue
+0
-2
src/components/subcomponents/MyAside.vue
src/components/subcomponents/MyAside.vue
+0
-3
src/components/subcomponents/MyHeader.vue
src/components/subcomponents/MyHeader.vue
+1
-1
src/components/user/AddChatDetail.vue
src/components/user/AddChatDetail.vue
+1
-1
src/components/user/MyChatDetail.vue
src/components/user/MyChatDetail.vue
+1
-1
src/components/user/MyRedPackageDetail.vue
src/components/user/MyRedPackageDetail.vue
+0
-139
src/router/index.js
src/router/index.js
+1
-18
未找到文件。
dist/js/app.fea40924.js
浏览文件 @
4525804c
此差异已折叠。
点击以展开。
dist/js/app.fea40924.js.map
浏览文件 @
4525804c
此差异已折叠。
点击以展开。
src/api/ApiService.js
浏览文件 @
4525804c
...
@@ -3,7 +3,7 @@ import axios from 'axios'
...
@@ -3,7 +3,7 @@ import axios from 'axios'
const
ApiService
=
{
const
ApiService
=
{
// 三连日管理
// 三连日管理
async
tripletDayInfoPage
(
currentPage
,
pageSize
,
tripletDate
)
{
async
tripletDayInfoPage
(
currentPage
,
pageSize
,
tripletDate
)
{
return
await
axios
.
post
(
'
http://
43.139.90.182:8888
/dayInfo/page
'
,
{
return
await
axios
.
post
(
'
http://
localhost:80
/dayInfo/page
'
,
{
page
:
currentPage
,
page
:
currentPage
,
pageSize
:
pageSize
,
pageSize
:
pageSize
,
startDate
:
tripletDate
!=
null
?
tripletDate
[
0
]
:
''
,
startDate
:
tripletDate
!=
null
?
tripletDate
[
0
]
:
''
,
...
@@ -12,24 +12,24 @@ const ApiService = {
...
@@ -12,24 +12,24 @@ const ApiService = {
},
},
async
tripletDayReset
()
{
async
tripletDayReset
()
{
return
await
axios
.
get
(
'
http://
43.139.90.182:8888
/dayInfo/add
'
)
return
await
axios
.
get
(
'
http://
localhost:80
/dayInfo/add
'
)
},
},
// 文章管理
// 文章管理
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://
localhost:80
/csdnArticleInfo/triplet?articleId=
'
+
articleId
)
},
},
async
syncMyBlog
()
{
async
syncMyBlog
()
{
return
await
axios
.
get
(
'
http://
43.139.90.182:8888
/csdnArticleInfo/syncMyBlog
'
)
return
await
axios
.
get
(
'
http://
localhost:80
/csdnArticleInfo/syncMyBlog
'
)
},
},
async
resetLikes
()
{
async
resetLikes
()
{
return
await
axios
.
get
(
'
http://
43.139.90.182:8888
/csdnArticleInfo/fixLikesStatus
'
)
return
await
axios
.
get
(
'
http://
localhost:80
/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://
localhost:80
/csdnArticleInfo/multiTriplet
'
,
articleIds
)
},
},
async
articleInfoDelete
(
id
)
{
async
articleInfoDelete
(
id
)
{
return
await
axios
.
get
(
'
http://
43.139.90.182:8888
/csdnArticleInfo/delete
'
,
{
return
await
axios
.
get
(
'
http://
localhost:80
/csdnArticleInfo/delete
'
,
{
params
:
{
params
:
{
id
:
id
,
id
:
id
,
},
},
...
@@ -38,16 +38,16 @@ const ApiService = {
...
@@ -38,16 +38,16 @@ const ApiService = {
//红包管理
//红包管理
async
dealViewCount
(
id
)
{
async
dealViewCount
(
id
)
{
return
await
axios
.
get
(
'
http://
43.139.90.182:8888
/csdn/redPackage/getViewCountById?id=
'
+
id
)
return
await
axios
.
get
(
'
http://
localhost:80
/csdn/redPackage/getViewCountById?id=
'
+
id
)
},
},
async
getTodayRedPackageDetailInfo
()
{
async
getTodayRedPackageDetailInfo
()
{
return
await
axios
.
get
(
'
http://
43.139.90.182:8888
/csdn/redPackage/detail/getTodayRedPackageDetailInfo
'
)
return
await
axios
.
get
(
'
http://
localhost:80
/csdn/redPackage/detail/getTodayRedPackageDetailInfo
'
)
},
},
async
syncDetailInfo
(
id
)
{
async
syncDetailInfo
(
id
)
{
return
await
axios
.
get
(
'
http://
43.139.90.182:8888
/csdn/redPackage/detail/syncDetailInfo?id=
'
+
id
)
return
await
axios
.
get
(
'
http://
localhost:80
/csdn/redPackage/detail/syncDetailInfo?id=
'
+
id
)
},
},
async
redPackagePage
(
currentPage
,
pageSize
,
formInline
)
{
async
redPackagePage
(
currentPage
,
pageSize
,
formInline
)
{
return
await
axios
.
post
(
'
http://
43.139.90.182:8888
/csdn/redPackage/page
'
,
{
return
await
axios
.
post
(
'
http://
localhost:80
/csdn/redPackage/page
'
,
{
page
:
currentPage
,
page
:
currentPage
,
pageSize
:
pageSize
,
pageSize
:
pageSize
,
nickName
:
formInline
.
nickName
,
nickName
:
formInline
.
nickName
,
...
@@ -60,7 +60,7 @@ const ApiService = {
...
@@ -60,7 +60,7 @@ const ApiService = {
})
})
},
},
async
redPackageDetailList
(
currentPage
,
pageSize
,
orderNo
,
communityId
,
postId
)
{
async
redPackageDetailList
(
currentPage
,
pageSize
,
orderNo
,
communityId
,
postId
)
{
return
await
axios
.
post
(
'
http://
43.139.90.182:8888
/csdn/redPackage/detail/page
'
,
{
return
await
axios
.
post
(
'
http://
localhost:80
/csdn/redPackage/detail/page
'
,
{
page
:
currentPage
,
page
:
currentPage
,
pageSize
:
pageSize
,
pageSize
:
pageSize
,
orderNo
:
orderNo
,
orderNo
:
orderNo
,
...
@@ -71,24 +71,24 @@ const ApiService = {
...
@@ -71,24 +71,24 @@ const ApiService = {
//粉丝管理
//粉丝管理
async
fansInfoPage
(
currentPage
,
pageSize
,
relationType
)
{
async
fansInfoPage
(
currentPage
,
pageSize
,
relationType
)
{
return
await
axios
.
post
(
'
http://
43.139.90.182:8888
/csdn/followFans/page
'
,
{
return
await
axios
.
post
(
'
http://
localhost:80
/csdn/followFans/page
'
,
{
page
:
currentPage
,
page
:
currentPage
,
pageSize
:
pageSize
,
pageSize
:
pageSize
,
relationType
:
relationType
==
'
全部
'
?
''
:
relationType
,
relationType
:
relationType
==
'
全部
'
?
''
:
relationType
,
})
})
},
},
async
syncFansInfo
()
{
async
syncFansInfo
()
{
return
await
axios
.
get
(
'
http://
43.139.90.182:8888
/csdn/followFans/saveFans
'
)
return
await
axios
.
get
(
'
http://
localhost:80
/csdn/followFans/saveFans
'
)
},
},
async
syncFollowInfo
()
{
async
syncFollowInfo
()
{
return
await
axios
.
get
(
'
http://
43.139.90.182:8888
/csdn/followFans/saveFollow
'
)
return
await
axios
.
get
(
'
http://
localhost:80
/csdn/followFans/saveFollow
'
)
},
},
async
cancleFollowInfo
()
{
async
cancleFollowInfo
()
{
return
await
axios
.
get
(
'
http://
43.139.90.182:8888
/csdn/followFans/deleteFollow
'
)
return
await
axios
.
get
(
'
http://
localhost:80
/csdn/followFans/deleteFollow
'
)
},
},
//我的图片
//我的图片
async
queryPic
(
currentPage
,
pageSize
,
picType
)
{
async
queryPic
(
currentPage
,
pageSize
,
picType
)
{
return
await
axios
.
get
(
'
http://
43.139.90.182:8888
/picInfo/page
'
,
{
return
await
axios
.
get
(
'
http://
localhost:80
/picInfo/page
'
,
{
params
:
{
params
:
{
page
:
currentPage
,
page
:
currentPage
,
pageSize
:
pageSize
,
pageSize
:
pageSize
,
...
@@ -97,7 +97,7 @@ const ApiService = {
...
@@ -97,7 +97,7 @@ const ApiService = {
})
})
},
},
async
editPicConfirm
(
currentRowId
,
type
)
{
async
editPicConfirm
(
currentRowId
,
type
)
{
return
await
axios
.
post
(
'
http://
43.139.90.182:8888
/picInfo/update
'
,
{
return
await
axios
.
post
(
'
http://
localhost:80
/picInfo/update
'
,
{
id
:
currentRowId
,
id
:
currentRowId
,
type
:
type
,
type
:
type
,
})
})
...
...
src/components/MyLogin.vue
浏览文件 @
4525804c
...
@@ -43,7 +43,7 @@ export default {
...
@@ -43,7 +43,7 @@ export default {
this
.
password
=
''
this
.
password
=
''
},
},
login
()
{
login
()
{
if
(
this
.
username
===
'
admin
'
&&
this
.
password
===
'
888888
'
)
{
if
(
this
.
username
===
'
admin
'
&&
this
.
password
===
'
666666
'
)
{
// 登录成功
// 登录成功
// 1. 存储 token
// 1. 存储 token
localStorage
.
setItem
(
'
token
'
,
'
Bearer xxxx
'
)
localStorage
.
setItem
(
'
token
'
,
'
Bearer xxxx
'
)
...
...
src/components/menus/MyAlgorithmic.vue
浏览文件 @
4525804c
...
@@ -281,7 +281,7 @@ export default {
...
@@ -281,7 +281,7 @@ export default {
async
addQuestion
(
addType
)
{
async
addQuestion
(
addType
)
{
try
{
try
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
43.139.90.182:8888
/algorithmicProblem/add
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
localhost:80
/algorithmicProblem/add
'
,
{
addType
:
addType
,
addType
:
addType
,
questionName
:
this
.
form
.
questionName
,
questionName
:
this
.
form
.
questionName
,
questionType
:
this
.
form
.
questionType
,
questionType
:
this
.
form
.
questionType
,
...
@@ -322,7 +322,7 @@ export default {
...
@@ -322,7 +322,7 @@ export default {
async
editConfirm
()
{
async
editConfirm
()
{
try
{
try
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
43.139.90.182:8888
/algorithmicProblem/update
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
localhost:80
/algorithmicProblem/update
'
,
{
id
:
this
.
currentRowId
,
id
:
this
.
currentRowId
,
questionName
:
this
.
form
.
questionName
,
questionName
:
this
.
form
.
questionName
,
questionType
:
this
.
form
.
questionType
,
questionType
:
this
.
form
.
questionType
,
...
@@ -352,7 +352,7 @@ export default {
...
@@ -352,7 +352,7 @@ export default {
async
onDelete
(
id
)
{
async
onDelete
(
id
)
{
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/algorithmicProblem/delete
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost:80
/algorithmicProblem/delete
'
,
{
params
:
{
params
:
{
id
:
id
,
id
:
id
,
},
},
...
@@ -367,7 +367,7 @@ export default {
...
@@ -367,7 +367,7 @@ export default {
},
},
async
getQuestionType
()
{
async
getQuestionType
()
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/algorithmicProblem/questionType
'
,
{
params
:
{}
})
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost:80
/algorithmicProblem/questionType
'
,
{
params
:
{}
})
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
options
=
res
.
result
this
.
options
=
res
.
result
//获取问题列表
//获取问题列表
...
@@ -376,7 +376,7 @@ export default {
...
@@ -376,7 +376,7 @@ export default {
},
},
async
getAllQuestionType
()
{
async
getAllQuestionType
()
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/algorithmicProblem/allQuestionType
'
,
{
params
:
{}
})
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost:80
/algorithmicProblem/allQuestionType
'
,
{
params
:
{}
})
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
allOptions
=
res
.
result
this
.
allOptions
=
res
.
result
}
}
...
@@ -384,7 +384,7 @@ export default {
...
@@ -384,7 +384,7 @@ export default {
async
interviewPage
()
{
async
interviewPage
()
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/algorithmicProblem/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost:80
/algorithmicProblem/page
'
,
{
params
:
{
params
:
{
page
:
this
.
currentPage
,
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
pageSize
:
this
.
pageSize
,
...
@@ -409,7 +409,7 @@ export default {
...
@@ -409,7 +409,7 @@ export default {
},
},
async
interviewRandom
()
{
async
interviewRandom
()
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/algorithmicProblem/random
'
,
{
params
:
{}
})
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost:80
/algorithmicProblem/random
'
,
{
params
:
{}
})
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
randomAlgorithmic
.
questionName
=
res
.
result
.
questionName
this
.
randomAlgorithmic
.
questionName
=
res
.
result
.
questionName
this
.
randomAlgorithmic
.
leetcodeNumber
=
res
.
result
.
leetcodeNumber
this
.
randomAlgorithmic
.
leetcodeNumber
=
res
.
result
.
leetcodeNumber
...
...
src/components/menus/MyAphorismPoetry.vue
浏览文件 @
4525804c
...
@@ -187,7 +187,7 @@ export default {
...
@@ -187,7 +187,7 @@ export default {
async
addQuestion
(
addType
)
{
async
addQuestion
(
addType
)
{
try
{
try
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
43.139.90.182:8888
/aphorismPoetry/add
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
localhost:80
/aphorismPoetry/add
'
,
{
addType
:
addType
,
addType
:
addType
,
poetryText
:
this
.
form
.
poetryText
,
poetryText
:
this
.
form
.
poetryText
,
...
@@ -222,7 +222,7 @@ export default {
...
@@ -222,7 +222,7 @@ export default {
async
editConfirm
()
{
async
editConfirm
()
{
try
{
try
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
43.139.90.182:8888
/aphorismPoetry/update
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
localhost:80
/aphorismPoetry/update
'
,
{
id
:
this
.
currentRowId
,
id
:
this
.
currentRowId
,
poetryText
:
this
.
form
.
poetryText
,
poetryText
:
this
.
form
.
poetryText
,
})
})
...
@@ -245,7 +245,7 @@ export default {
...
@@ -245,7 +245,7 @@ export default {
async
onDelete
(
id
)
{
async
onDelete
(
id
)
{
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/aphorismPoetry/delete
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost:80
/aphorismPoetry/delete
'
,
{
params
:
{
params
:
{
id
:
id
,
id
:
id
,
},
},
...
@@ -260,7 +260,7 @@ export default {
...
@@ -260,7 +260,7 @@ export default {
},
},
async
interviewPage
()
{
async
interviewPage
()
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/aphorismPoetry/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost:80
/aphorismPoetry/page
'
,
{
params
:
{
params
:
{
page
:
this
.
currentPage
,
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
pageSize
:
this
.
pageSize
,
...
@@ -275,7 +275,7 @@ export default {
...
@@ -275,7 +275,7 @@ export default {
},
},
async
interviewRandom
()
{
async
interviewRandom
()
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/aphorismPoetry/random
'
,
{
params
:
{}
})
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost:80
/aphorismPoetry/random
'
,
{
params
:
{}
})
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
randomAlgorithmic
.
poetryText
=
res
.
result
.
poetryText
this
.
randomAlgorithmic
.
poetryText
=
res
.
result
.
poetryText
}
}
...
...
src/components/menus/MyArticleInfo.vue
浏览文件 @
4525804c
...
@@ -399,7 +399,7 @@ export default {
...
@@ -399,7 +399,7 @@ export default {
async
addUser
(
addType
)
{
async
addUser
(
addType
)
{
try
{
try
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
43.139.90.182:8888
/csdnArticleInfo/add
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
localhost:80
/csdnArticleInfo/add
'
,
{
addType
:
addType
,
addType
:
addType
,
userName
:
this
.
form
.
userName
,
userName
:
this
.
form
.
userName
,
articleId
:
this
.
form
.
articleId
,
articleId
:
this
.
form
.
articleId
,
...
@@ -430,7 +430,7 @@ export default {
...
@@ -430,7 +430,7 @@ export default {
async
editConfirm
()
{
async
editConfirm
()
{
try
{
try
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
43.139.90.182:8888
/csdnArticleInfo/update
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
localhost:80
/csdnArticleInfo/update
'
,
{
id
:
this
.
currentRowId
,
id
:
this
.
currentRowId
,
articleId
:
this
.
form
.
articleId
,
articleId
:
this
.
form
.
articleId
,
userName
:
this
.
form
.
userName
,
userName
:
this
.
form
.
userName
,
...
@@ -457,7 +457,7 @@ export default {
...
@@ -457,7 +457,7 @@ export default {
},
},
async
getScore
()
{
async
getScore
()
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/csdnArticleInfo/getScore?articleUrl=
'
+
this
.
form
.
articleUrl
)
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost:80
/csdnArticleInfo/getScore?articleUrl=
'
+
this
.
form
.
articleUrl
)
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
form
.
articleScore
=
res
.
result
this
.
form
.
articleScore
=
res
.
result
}
else
{
}
else
{
...
@@ -469,7 +469,7 @@ export default {
...
@@ -469,7 +469,7 @@ export default {
async
deleteLow
()
{
async
deleteLow
()
{
this
.
loading
=
true
this
.
loading
=
true
this
.
deleteLowDialogVisible
=
false
this
.
deleteLowDialogVisible
=
false
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/csdnArticleInfo/deletaLowBlog
'
)
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost:80
/csdnArticleInfo/deletaLowBlog
'
)
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
articleInfoPage
()
this
.
articleInfoPage
()
}
else
{
}
else
{
...
@@ -548,7 +548,7 @@ export default {
...
@@ -548,7 +548,7 @@ export default {
},
},
async
articleInfoPage
()
{
async
articleInfoPage
()
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
43.139.90.182:8888
/csdnArticleInfo/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
localhost:80
/csdnArticleInfo/page
'
,
{
page
:
this
.
currentPage
,
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
pageSize
:
this
.
pageSize
,
articleId
:
this
.
formInline
.
articleId
,
articleId
:
this
.
formInline
.
articleId
,
...
...
src/components/menus/MyChat.vue
浏览文件 @
4525804c
...
@@ -89,7 +89,7 @@ export default {
...
@@ -89,7 +89,7 @@ export default {
methods
:
{
methods
:
{
async
onDelete
(
id
)
{
async
onDelete
(
id
)
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/chatbot/delete
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost:80
/chatbot/delete
'
,
{
params
:
{
params
:
{
id
:
id
,
id
:
id
,
},
},
...
@@ -109,7 +109,7 @@ export default {
...
@@ -109,7 +109,7 @@ export default {
async
initCartList
()
{
async
initCartList
()
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/chatbot/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost:80
/chatbot/page
'
,
{
params
:
{
params
:
{
page
:
this
.
currentPage
,
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
pageSize
:
this
.
pageSize
,
...
...
src/components/menus/MyCsdnUser.vue
浏览文件 @
4525804c
此差异已折叠。
点击以展开。
src/components/menus/MyInterview.vue
浏览文件 @
4525804c
...
@@ -205,7 +205,7 @@ export default {
...
@@ -205,7 +205,7 @@ export default {
try
{
try
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
43.139.90.182:8888
/interviewQuestion/add
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
localhost:80
/interviewQuestion/add
'
,
{
addType
:
addType
,
addType
:
addType
,
question
:
this
.
form
.
question
,
question
:
this
.
form
.
question
,
questionType
:
this
.
form
.
questionType
,
questionType
:
this
.
form
.
questionType
,
...
@@ -237,7 +237,7 @@ export default {
...
@@ -237,7 +237,7 @@ export default {
try
{
try
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
43.139.90.182:8888
/interviewQuestion/update
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
localhost:80
/interviewQuestion/update
'
,
{
id
:
this
.
currentRowId
,
id
:
this
.
currentRowId
,
question
:
this
.
form
.
question
,
question
:
this
.
form
.
question
,
questionType
:
this
.
form
.
questionType
,
questionType
:
this
.
form
.
questionType
,
...
@@ -262,7 +262,7 @@ export default {
...
@@ -262,7 +262,7 @@ export default {
async
onDelete
(
id
)
{
async
onDelete
(
id
)
{
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/interviewQuestion/delete
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost:80
/interviewQuestion/delete
'
,
{
params
:
{
params
:
{
id
:
id
,
id
:
id
,
},
},
...
@@ -278,7 +278,7 @@ export default {
...
@@ -278,7 +278,7 @@ export default {
},
},
async
getQuestionType
()
{
async
getQuestionType
()
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/interviewQuestion/questionType
'
,
{
params
:
{}
})
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost:80
/interviewQuestion/questionType
'
,
{
params
:
{}
})
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
options
=
res
.
result
this
.
options
=
res
.
result
this
.
interviewPage
()
this
.
interviewPage
()
...
@@ -287,7 +287,7 @@ export default {
...
@@ -287,7 +287,7 @@ export default {
async
interviewPage
()
{
async
interviewPage
()
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/interviewQuestion/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost:80
/interviewQuestion/page
'
,
{
params
:
{
params
:
{
page
:
this
.
currentPage
,
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
pageSize
:
this
.
pageSize
,
...
...
src/components/menus/MyMessage.vue
浏览文件 @
4525804c
...
@@ -185,7 +185,7 @@ export default {
...
@@ -185,7 +185,7 @@ export default {
},
},
async
messagePage
()
{
async
messagePage
()
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
43.139.90.182:8888
/csdn/message/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
localhost:80
/csdn/message/page
'
,
{
page
:
this
.
currentPage
,
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
pageSize
:
this
.
pageSize
,
userName
:
this
.
formInline
.
userName
,
userName
:
this
.
formInline
.
userName
,
...
@@ -209,7 +209,7 @@ export default {
...
@@ -209,7 +209,7 @@ export default {
async
dealMessageOne
(
userName
)
{
async
dealMessageOne
(
userName
)
{
this
.
loading
=
true
this
.
loading
=
true
this
.
dealMessageOneVisible
=
false
this
.
dealMessageOneVisible
=
false
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/csdn/message/dealMessageOne?userName=
'
+
userName
)
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost:80
/csdn/message/dealMessageOne?userName=
'
+
userName
)
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
currentUserName
=
null
this
.
currentUserName
=
null
this
.
messagePage
()
this
.
messagePage
()
...
@@ -222,13 +222,13 @@ export default {
...
@@ -222,13 +222,13 @@ export default {
async
messageDeal
()
{
async
messageDeal
()
{
this
.
loading
=
true
this
.
loading
=
true
this
.
messageDialogVisible
=
false
this
.
messageDialogVisible
=
false
const
{
data
:
res1
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/csdn/message/dealMessage
'
)
const
{
data
:
res1
}
=
await
axios
.
get
(
'
http://
localhost:80
/csdn/message/dealMessage
'
)
if
(
res1
.
code
===
200
)
{
if
(
res1
.
code
===
200
)
{
this
.
messagePage
()
this
.
messagePage
()
}
else
{
}
else
{
console
.
error
(
'
Received non-200 status code
'
,
res1
)
console
.
error
(
'
Received non-200 status code
'
,
res1
)
}
}
const
{
data
:
res2
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/csdn/likeCollect/dealLikeCollect
'
)
const
{
data
:
res2
}
=
await
axios
.
get
(
'
http://
localhost:80
/csdn/likeCollect/dealLikeCollect
'
)
if
(
res2
.
code
===
200
)
{
if
(
res2
.
code
===
200
)
{
this
.
messagePage
()
this
.
messagePage
()
}
else
{
}
else
{
...
@@ -239,7 +239,7 @@ export default {
...
@@ -239,7 +239,7 @@ export default {
async
refreshMessage
()
{
async
refreshMessage
()
{
this
.
loading
=
true
this
.
loading
=
true
this
.
refreshMessageDialogVisible
=
false
this
.
refreshMessageDialogVisible
=
false
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/csdn/message/acquireMessage
'
)
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost:80
/csdn/message/acquireMessage
'
)
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
messagePage
()
this
.
messagePage
()
}
else
{
}
else
{
...
@@ -249,7 +249,7 @@ export default {
...
@@ -249,7 +249,7 @@ export default {
},
},
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://
localhost:80
/csdn/user/delete
'
,
{
params
:
{
params
:
{
id
:
id
,
id
:
id
,
},
},
...
...
src/components/menus/MyPic.vue
浏览文件 @
4525804c
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<el-form-item>
<el-form-item>
<el-button
size=
"small"
type=
"primary"
@
click=
"prepareAddPic"
>
新增图片
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"prepareAddPic"
>
新增图片
</el-button>
<el-dialog
title=
"新增图片"
:visible.sync=
"addPicVisible"
style=
"width: 100%"
>
<el-dialog
title=
"新增图片"
:visible.sync=
"addPicVisible"
style=
"width: 100%"
>
<el-upload
ref=
"upload"
:limit=
"30"
accept=
".jpg,.gif,.png,.jpeg,.txt,.pdf,.doc,.docx,.xls,.xlsx"
name=
"files"
multiple
action=
"http://
43.139.90.182:8888
/picInfo/upload"
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:file-list=
"fileList"
:auto-upload=
"false"
:on-success=
"handleUploadSuccess"
>
<el-upload
ref=
"upload"
:limit=
"30"
accept=
".jpg,.gif,.png,.jpeg,.txt,.pdf,.doc,.docx,.xls,.xlsx"
name=
"files"
multiple
action=
"http://
localhost:80
/picInfo/upload"
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:file-list=
"fileList"
:auto-upload=
"false"
:on-success=
"handleUploadSuccess"
>
<el-button
slot=
"trigger"
size=
"small"
type=
"primary"
>
选择图片
</el-button>
<el-button
slot=
"trigger"
size=
"small"
type=
"primary"
>
选择图片
</el-button>
<el-button
style=
"margin-left: 10px"
size=
"small"
type=
"success"
@
click=
"submitUpload"
>
上传到服务器
</el-button>
<el-button
style=
"margin-left: 10px"
size=
"small"
type=
"success"
@
click=
"submitUpload"
>
上传到服务器
</el-button>
</el-upload>
</el-upload>
...
...
src/components/menus/MyRedPackage.vue
已删除
100644 → 0
浏览文件 @
6d9e6b54
<
template
>
<div>
<el-container>
<el-main>
<el-form
:inline=
"true"
:model=
"formInline"
class=
"demo-form-inline"
>
<el-form-item>
<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>
<el-input
size=
"small"
clearable
v-model=
"formInline.orderNo"
placeholder=
"请输入订单号"
@
keydown.enter.native=
"redPackagePage"
></el-input>
</el-form-item>
<el-form-item>
<el-input
size=
"small"
clearable
v-model=
"formInline.nickName"
placeholder=
"请输入用户昵称"
@
keydown.enter.native=
"redPackagePage"
></el-input>
</el-form-item>
<el-form-item>
<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-select
size=
"small"
v-model=
"formInline.itemType"
placeholder=
"请选择红包类型"
@
change=
"redPackagePage"
>
<el-option
v-for=
"type in itemType"
:key=
"type"
:label=
"type"
:value=
"type"
></el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-select
size=
"small"
v-model=
"formInline.msg"
placeholder=
"请选择当前状态"
@
change=
"redPackagePage"
>
<el-option
v-for=
"type in msg"
:key=
"type"
:label=
"type"
:value=
"type"
></el-option>
</el-select>
</el-form-item>
<br
/>
<el-form-item>
<el-button
size=
"small"
type=
"primary"
@
click=
"redPackagePage"
>
查询
</el-button>
</el-form-item>
<el-form-item>
<el-button
size=
"small"
type=
"primary"
@
click=
"prepareGetToday"
>
今日所得
</el-button>
<el-dialog
v-loading=
"loading"
title=
"今日所得查询"
:visible.sync=
"getTodayDialogVisible"
style=
"width: 100%"
>
<el-form
:model=
"form"
class=
"custom-form"
>
<el-form-item
label=
"今日所得"
class=
"form-item"
>
<el-input
v-model=
"form.todayGet"
autocomplete=
"off"
style=
"width: 100%"
></el-input>
</el-form-item>
<el-form-item
label=
"累计所得"
class=
"form-item"
>
<el-input
v-model=
"form.allGet"
autocomplete=
"off"
style=
"width: 100%"
></el-input>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"getTodayDialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"getToday"
>
查 询
</el-button>
</div>
</el-dialog>
</el-form-item>
<el-form-item>
<el-button
size=
"small"
type=
"primary"
@
click=
"prepareViewCountAll"
>
浏览量
</el-button>
<el-dialog
title=
"提示"
:visible.sync=
"viewCountAllDialogVisible"
width=
"30%"
:before-close=
"handleClose"
>
<span>
确认处理浏览量吗?
</span>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"viewCountAllDialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click.prevent=
"viewCountAll()"
>
确 定
</el-button>
</span>
</el-dialog>
</el-form-item>
<el-form-item>
<el-button
size=
"small"
type=
"primary"
@
click=
"prepareDetailsInfo"
>
同步详情
</el-button>
<el-dialog
title=
"提示"
:visible.sync=
"detailsInfoDialogVisible"
width=
"30%"
:before-close=
"handleClose"
>
<span>
确认同步红包详情吗?
</span>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"detailsInfoDialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click.prevent=
"getTodayRedPackageDetailInfo()"
>
确 定
</el-button>
</span>
</el-dialog>
</el-form-item>
<el-form-item>
<el-button
size=
"small"
type=
"primary"
@
click=
"newRedPackage"
>
最新红包
</el-button>
</el-form-item>
</el-form>
<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=
"nickName"
label=
"用户昵称"
show-overflow-tooltip
>
<template
slot-scope=
"scope"
>
<a
:href=
"scope.row.shareUrl"
target=
"_blank"
>
{{
scope
.
row
.
nickName
}}
</a>
</
template
>
</el-table-column>
<el-table-column
prop=
"orderNo"
label=
"订单号"
width=
"175px"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"myAmount"
label=
"我的金额"
sortable
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<el-tag
:type=
"getTagType(scope.row.myAmount)"
>
{{
scope
.
row
.
myAmount
}}
</el-tag>
</
template
>
</el-table-column>
<el-table-column
prop=
"msg"
label=
"详情"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<el-tag
:type=
"getMsgType(scope.row.msg)"
>
{{
scope
.
row
.
msg
}}
</el-tag>
</
template
>
</el-table-column>
<el-table-column
prop=
"itemType"
label=
"类型"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"viewCount"
label=
"浏览量"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"totalAmount"
label=
"总金额"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"communityId"
label=
"社区id"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"创建时间"
>
<
template
slot-scope=
"props"
>
{{
props
.
row
.
createTime
|
dateFormat
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"操作"
label=
"操作"
width=
"310"
>
<
template
slot-scope=
"props"
>
<el-button
size=
"small"
type=
"success"
@
click=
"dealViewCount(props.row.id)"
>
浏览量
</el-button>
<el-button
size=
"small"
type=
"success"
@
click=
"syncDetailInfo(props.row.id)"
>
同步详情
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click.prevent=
"preEdit(props.row.id, props.row.nickName, props.row.myAmount, props.row.msg)"
>
编辑
</el-button>
<el-button
size=
"small"
type=
"success"
@
click.prevent=
"gotoDetail(props.row.id, props.row.orderNo, props.row.communityId, props.row.postId)"
>
详情
</el-button>
<el-dialog
title=
"编辑红包信息"
:visible.sync=
"editVisible"
style=
"width: 100%"
>
<el-form
:model=
"form"
class=
"custom-form"
>
<el-form-item
label=
"用户名称"
class=
"form-item"
>
<el-input
v-model=
"form.nickName"
autocomplete=
"off"
style=
"width: 100%"
></el-input>
</el-form-item>
<el-form-item
label=
"我的金额"
class=
"form-item"
>
<el-input
v-model=
"form.myAmount"
autocomplete=
"off"
style=
"width: 100%"
></el-input>
</el-form-item>
<el-form-item
label=
"详细信息"
class=
"form-item"
>
<el-select
v-model=
"form.msg"
placeholder=
"请选择"
style=
"width: 100%"
>
<el-option
v-for=
"item in msg"
:key=
"item"
:label=
"item"
:value=
"item"
></el-option>
</el-select>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"editVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"editConfirm"
>
确 定
</el-button>
</div>
</el-dialog>
</
template
>
</el-table-column>
</el-table>
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"currentPage"
:page-sizes=
"[8, 10, 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
axios
from
'
axios
'
import
ApiService
from
'
../../api/ApiService
'
export
default
{
name
:
'
MyRedPackage
'
,
data
()
{
return
{
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
},
shortcuts
:
[
{
text
:
'
今天
'
,
onClick
(
picker
)
{
picker
.
$emit
(
'
pick
'
,
new
Date
())
},
},
{
text
:
'
昨天
'
,
onClick
(
picker
)
{
const
date
=
new
Date
()
date
.
setTime
(
date
.
getTime
()
-
3600
*
1000
*
24
)
picker
.
$emit
(
'
pick
'
,
date
)
},
},
{
text
:
'
一周前
'
,
onClick
(
picker
)
{
const
date
=
new
Date
()
date
.
setTime
(
date
.
getTime
()
-
3600
*
1000
*
24
*
7
)
picker
.
$emit
(
'
pick
'
,
date
)
},
},
],
},
form
:
{
todayGet
:
''
,
allGet
:
''
,
myAmount
:
''
,
nickName
:
''
,
msg
:
''
,
},
formInline
:
{
nickName
:
''
,
itemType
:
''
,
myAmount
:
''
,
msg
:
''
,
myAmountStart
:
''
,
myAmountEnd
:
''
,
startDate
:
''
,
orderNo
:
''
,
},
itemType
:
[
'
全部
'
,
'
article
'
,
'
blink
'
,
'
topic
'
],
msg
:
[
'
全部
'
,
'
received
'
,
'
completed
'
,
'
unreceived
'
,
'
uncompleted
'
,
'
其它
'
],
deleteDialogVisible
:
false
,
editVisible
:
false
,
viewCountAllDialogVisible
:
false
,
getTodayDialogVisible
:
false
,
detailsInfoDialogVisible
:
false
,
// 用户列表数据
csdnRedPackageList
:
[],
loading
:
false
,
elementui_page_component_key
:
0
,
currentPage
:
Number
(
localStorage
.
getItem
(
'
redPackagePage
'
))
||
1
,
pageSize
:
8
,
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
.
$nextTick
(()
=>
{
const
foo
=
this
.
$route
.
query
.
back
if
(
foo
===
'
back
'
)
{
this
.
currentPage
=
Number
(
localStorage
.
getItem
(
'
redPackagePage
'
))
||
1
}
else
{
localStorage
.
setItem
(
'
redPackagePage
'
,
1
)
this
.
currentPage
=
1
}
// 调用请求数据的方法
this
.
redPackagePage
()
})
},
mounted
()
{
this
.
currentPage
=
Number
(
localStorage
.
getItem
(
'
redPackagePage
'
))
||
1
this
.
elementui_page_component_key
++
},
methods
:
{
prepareViewCountAll
()
{
this
.
viewCountAllDialogVisible
=
true
},
prepareDetailsInfo
()
{
this
.
detailsInfoDialogVisible
=
true
},
prepareGetToday
()
{
this
.
form
.
todayGet
=
''
this
.
form
.
allGet
=
''
this
.
getTodayDialogVisible
=
true
},
prepareDelete
(
id
)
{
this
.
currentRowId
=
id
this
.
deleteDialogVisible
=
true
},
preEdit
(
id
,
nickName
,
myAmount
,
msg
)
{
this
.
form
.
nickName
=
nickName
this
.
form
.
myAmount
=
myAmount
this
.
form
.
msg
=
msg
this
.
currentRowId
=
id
this
.
editVisible
=
true
},
refreshPage
()
{
location
.
reload
()
},
gotoDetail
(
id
,
orderNo
,
communityId
,
postId
)
{
this
.
$router
.
push
(
`/home/redPackageDetail/
${
id
}
/
${
orderNo
}
/
${
communityId
}
/
${
postId
}
`
)
},
handleClose
(
done
)
{
this
.
$confirm
(
'
确认关闭?
'
)
.
then
((
_
)
=>
{
done
()
})
.
catch
((
_
)
=>
{})
},
handleConfirm
(
addType
)
{
this
.
dialogFormVisible
=
false
// 关闭对话框
this
.
dialogMutiFormVisible
=
false
this
.
addUser
(
addType
)
// 发送请求
},
async
redPackagePage
()
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
ApiService
.
redPackagePage
(
this
.
currentPage
,
this
.
pageSize
,
this
.
formInline
)
if
(
res
.
code
===
200
)
{
this
.
total
=
res
.
result
.
totalElements
this
.
csdnRedPackageList
=
res
.
result
.
content
}
this
.
loading
=
false
},
async
dealViewCount
(
id
)
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
ApiService
.
dealViewCount
(
id
)
if
(
res
.
code
===
200
)
{
this
.
redPackagePage
()
}
else
{
console
.
error
(
'
Received non-200 status code
'
,
res
)
}
this
.
loading
=
false
},
async
syncDetailInfo
(
id
)
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
ApiService
.
syncDetailInfo
(
id
)
if
(
res
.
code
===
200
)
{
this
.
redPackagePage
()
}
else
{
console
.
error
(
'
Received non-200 status code
'
,
res
)
}
this
.
loading
=
false
},
async
getTodayRedPackageDetailInfo
()
{
this
.
loading
=
true
this
.
detailsInfoDialogVisible
=
false
const
{
data
:
res
}
=
await
ApiService
.
getTodayRedPackageDetailInfo
()
if
(
res
.
code
===
200
)
{
this
.
redPackagePage
()
}
else
{
console
.
error
(
'
Received non-200 status code
'
,
res
)
}
this
.
loading
=
false
},
async
editConfirm
()
{
try
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://43.139.90.182:8888/csdn/redPackage/update
'
,
{
id
:
this
.
currentRowId
,
nickName
:
this
.
form
.
nickName
,
myAmount
:
this
.
form
.
myAmount
,
msg
:
this
.
form
.
msg
,
})
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
viewCountAll
()
{
this
.
loading
=
true
this
.
viewCountAllDialogVisible
=
false
const
{
data
:
res1
}
=
await
axios
.
get
(
'
http://43.139.90.182:8888/csdn/redPackage/getViewCountAll
'
)
if
(
res1
.
code
===
200
)
{
this
.
redPackagePage
()
}
else
{
console
.
error
(
'
Received non-200 status code
'
,
res1
)
}
this
.
loading
=
false
},
async
getToday
()
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://43.139.90.182:8888/csdn/redPackage/getMyAmount
'
)
if
(
res
.
code
===
200
)
{
this
.
form
.
todayGet
=
res
.
result
.
todayGet
this
.
form
.
allGet
=
res
.
result
.
allGet
}
else
{
console
.
error
(
'
Received non-200 status code
'
,
res
)
}
},
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
()
},
newRedPackage
()
{
// 新页面打开
window
.
open
(
'
https://bbs.csdn.net/?type=4&header=0&utm_source=wwwtab
'
)
},
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
>
<
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
src/components/menus/MyTripletDayInfo.vue
浏览文件 @
4525804c
...
@@ -51,8 +51,6 @@
...
@@ -51,8 +51,6 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
sortable
prop=
"myAmount"
label=
"红包金额"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"redPackageCount"
label=
"红包个数"
show-overflow-tooltip
></el-table-column>
</el-table>
</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-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-main>
...
...
src/components/subcomponents/MyAside.vue
浏览文件 @
4525804c
...
@@ -6,9 +6,6 @@
...
@@ -6,9 +6,6 @@
CSDN管理
CSDN管理
</
template
>
</
template
>
<el-menu-item-group>
<el-menu-item-group>
<router-link
:to=
"{ path: '/home/redPackage' }"
>
<el-menu-item
index=
"/home/redPackage"
>
红包管理
</el-menu-item>
</router-link>
<router-link
:to=
"{ path: '/home/tripletDayInfo' }"
>
<router-link
:to=
"{ path: '/home/tripletDayInfo' }"
>
<el-menu-item
index=
"/home/tripletDayInfo"
>
三连管理
</el-menu-item>
<el-menu-item
index=
"/home/tripletDayInfo"
>
三连管理
</el-menu-item>
</router-link>
</router-link>
...
...
src/components/subcomponents/MyHeader.vue
浏览文件 @
4525804c
...
@@ -160,7 +160,7 @@ export default {
...
@@ -160,7 +160,7 @@ export default {
},
},
async
interviewRandom
()
{
async
interviewRandom
()
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/aphorismPoetry/random
'
)
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost:80
/aphorismPoetry/random
'
)
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
randomAlgorithmic
.
poetryText
=
res
.
result
.
poetryText
this
.
randomAlgorithmic
.
poetryText
=
res
.
result
.
poetryText
}
}
...
...
src/components/user/AddChatDetail.vue
浏览文件 @
4525804c
...
@@ -42,7 +42,7 @@ export default {
...
@@ -42,7 +42,7 @@ export default {
response
:
this
.
form
.
response
,
response
:
this
.
form
.
response
,
}
}
axios
axios
.
post
(
'
http://
43.139.90.182:8888
/chatbot
'
,
data
)
.
post
(
'
http://
localhost:80
/chatbot
'
,
data
)
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
// 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中
// 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中
if
(
response
.
data
.
code
===
200
)
{
if
(
response
.
data
.
code
===
200
)
{
...
...
src/components/user/MyChatDetail.vue
浏览文件 @
4525804c
...
@@ -65,7 +65,7 @@ export default {
...
@@ -65,7 +65,7 @@ export default {
// 封装请求列表数据的方法
// 封装请求列表数据的方法
async
initChatList
()
{
async
initChatList
()
{
// 调用 axios 的 get 方法,请求列表数据
// 调用 axios 的 get 方法,请求列表数据
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182:8888
/chatbot/
'
+
this
.
id
)
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost:80
/chatbot/
'
+
this
.
id
)
// 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中
// 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
list
=
[
this
.
list
=
[
...
...
src/components/user/MyRedPackageDetail.vue
已删除
100644 → 0
浏览文件 @
6d9e6b54
<
template
>
<div>
<el-button
type=
"primary"
plain
size=
"medium"
@
click=
"goBack"
>
后退
</el-button>
<h4
class=
"text-center"
>
红包订单号
{{
orderNo
}}
领取详情
</h4>
<el-container>
<el-main>
<el-form
:inline=
"true"
class=
"demo-form-inline"
>
<el-form-item>
<el-button
size=
"small"
type=
"primary"
@
click=
"syncDetailInfo"
>
同步详情
</el-button>
</el-form-item>
</el-form>
<el-table
ref=
"multipleTable"
v-loading=
"loading"
:data=
"csdnRedPackageDetailList"
tooltip-effect=
"dark"
style=
"width: 100%"
>
<el-table-column
prop=
"id"
label=
"序号"
width=
"100"
sortable
></el-table-column>
<el-table-column
prop=
"orderNo"
label=
"订单号"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"communityId"
label=
"社区id"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"postId"
label=
"发布id"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"receiverNickName"
label=
"用户昵称"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"receivedMoney"
label=
"抢到金额"
sortable
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"luckyName"
label=
"幸运王"
show-overflow-tooltip
>
<template
slot-scope=
"scope"
>
<el-tag
:type=
"getTagType(scope.row.luckyName)"
>
{{
scope
.
row
.
luckyName
}}
</el-tag>
</
template
>
</el-table-column>
<el-table-column
label=
"领取时间"
>
<
template
slot-scope=
"props"
>
{{
props
.
row
.
receiveTime
|
dateFormat
}}
</
template
>
</el-table-column>
</el-table>
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"currentPage"
:page-sizes=
"[8, 10, 50, 100, 200, 400]"
:page-size=
"pageSize"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"total"
></el-pagination>
</el-main>
</el-container>
</div>
</template>
<
script
>
// 导入 axios 请求库
import
ApiService
from
'
../../api/ApiService
'
export
default
{
name
:
'
MyRedPackageDetail
'
,
props
:
[
'
id
'
,
'
orderNo
'
,
'
communityId
'
,
'
postId
'
],
data
()
{
return
{
csdnRedPackageDetailList
:
[],
loading
:
false
,
elementui_page_component_key
:
0
,
currentPage
:
1
,
pageSize
:
50
,
total
:
0
,
allOptions
:
[
{
type
:
0
,
name
:
'
否
'
,
},
{
type
:
1
,
name
:
'
是
'
,
},
],
}
},
created
()
{
// 调用请求数据的方法
this
.
redPackageDetailList
()
},
mounted
()
{
this
.
currentPage
=
1
this
.
pageSize
=
50
},
methods
:
{
goBack
()
{
// 传递参数到前一个页面
const
params
=
{
// 参数名: 参数值
back
:
'
back
'
,
}
// 使用 $router.push() 导航到前一个页面
this
.
$router
.
push
({
path
:
'
/home/redPackage
'
,
// 前一个页面的路径
query
:
params
,
// 参数对象
})
},
// 封装请求列表数据的方法
async
redPackageDetailList
()
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
ApiService
.
redPackageDetailList
(
this
.
currentPage
,
this
.
pageSize
,
this
.
$route
.
params
.
orderNo
,
this
.
$route
.
params
.
communityId
,
this
.
$route
.
params
.
postId
)
if
(
res
.
code
===
200
)
{
this
.
total
=
res
.
result
.
totalElements
const
userWeightMap
=
{}
this
.
allOptions
.
forEach
((
option
)
=>
{
userWeightMap
[
option
.
type
]
=
option
.
name
})
res
.
result
.
content
.
forEach
((
item
)
=>
{
item
.
luckyName
=
userWeightMap
[
item
.
lucky
]
})
this
.
csdnRedPackageDetailList
=
res
.
result
.
content
}
this
.
loading
=
false
},
async
syncDetailInfo
()
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
ApiService
.
syncDetailInfo
(
this
.
$route
.
params
.
id
)
if
(
res
.
code
===
200
)
{
this
.
redPackageDetailList
()
}
this
.
loading
=
false
},
handleCurrentChange
(
currentPage
)
{
this
.
currentPage
=
currentPage
this
.
redPackageDetailList
()
},
handleSizeChange
(
currentSize
)
{
this
.
pageSize
=
currentSize
this
.
redPackageDetailList
()
},
getTagType
(
luckyName
)
{
if
(
luckyName
==
'
是
'
)
{
return
'
danger
'
}
else
{
return
'
success
'
}
},
},
}
</
script
>
<
style
lang=
"less"
scoped
>
.button-container {
position: fixed;
bottom: 0;
right: 0;
margin: 16px;
}
</
style
>
\ No newline at end of file
src/router/index.js
浏览文件 @
4525804c
...
@@ -14,11 +14,9 @@ import AphorismPoetry from '@/components/menus/MyAphorismPoetry.vue'
...
@@ -14,11 +14,9 @@ import AphorismPoetry from '@/components/menus/MyAphorismPoetry.vue'
import
MyCsdnUser
from
'
@/components/menus/MyCsdnUser.vue
'
import
MyCsdnUser
from
'
@/components/menus/MyCsdnUser.vue
'
import
MyFansInfo
from
'
@/components/menus/MyFansInfo.vue
'
import
MyFansInfo
from
'
@/components/menus/MyFansInfo.vue
'
import
MyMessage
from
'
@/components/menus/MyMessage.vue
'
import
MyMessage
from
'
@/components/menus/MyMessage.vue
'
import
MyRedPackage
from
'
@/components/menus/MyRedPackage.vue
'
import
MyArticleInfo
from
'
@/components/menus/MyArticleInfo.vue
'
import
MyArticleInfo
from
'
@/components/menus/MyArticleInfo.vue
'
import
MyTripletDayInfo
from
'
@/components/menus/MyTripletDayInfo.vue
'
import
MyTripletDayInfo
from
'
@/components/menus/MyTripletDayInfo.vue
'
import
MyChatDetail
from
'
@/components/user/MyChatDetail.vue
'
import
MyChatDetail
from
'
@/components/user/MyChatDetail.vue
'
import
MyRedPackageDetail
from
'
@/components/user/MyRedPackageDetail.vue
'
import
AddChatDetail
from
'
@/components/user/AddChatDetail.vue
'
import
AddChatDetail
from
'
@/components/user/AddChatDetail.vue
'
Vue
.
use
(
VueRouter
)
Vue
.
use
(
VueRouter
)
...
@@ -41,15 +39,8 @@ const router = new VueRouter({
...
@@ -41,15 +39,8 @@ const router = new VueRouter({
{
{
path
:
'
/home
'
,
path
:
'
/home
'
,
component
:
Home
,
component
:
Home
,
redirect
:
'
/home/
redPackage
'
,
redirect
:
'
/home/
csdnUser
'
,
children
:
[
children
:
[
{
path
:
'
redPackage
'
,
component
:
MyRedPackage
,
meta
:
{
title
:
'
红包管理
'
,
// 设置默认标题
},
},
{
{
path
:
'
csdnUser
'
,
path
:
'
csdnUser
'
,
component
:
MyCsdnUser
,
component
:
MyCsdnUser
,
...
@@ -128,14 +119,6 @@ const router = new VueRouter({
...
@@ -128,14 +119,6 @@ const router = new VueRouter({
title
:
'
chat信息
'
,
// 设置默认标题
title
:
'
chat信息
'
,
// 设置默认标题
},
},
},
},
{
path
:
'
redPackageDetail/:id/:orderNo/:communityId/:postId
'
,
component
:
MyRedPackageDetail
,
props
:
true
,
meta
:
{
title
:
'
红包详情
'
,
// 设置默认标题
},
},
{
{
path
:
'
addChat
'
,
path
:
'
addChat
'
,
component
:
AddChatDetail
,
component
:
AddChatDetail
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录