Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
檀越@新空间
vue-kwan-admin
提交
6372abb6
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看板
提交
6372abb6
编写于
11月 03, 2023
作者:
檀越@新空间
🐭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
腾讯服务器
上级
68610d73
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
9094 addition
and
460 deletion
+9094
-460
dist/js/app.daf921ca.js
dist/js/app.daf921ca.js
+8173
-2
dist/js/app.daf921ca.js.map
dist/js/app.daf921ca.js.map
+464
-1
src/api/ApiService.js
src/api/ApiService.js
+3
-3
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
+4
-4
src/components/menus/MyChat.vue
src/components/menus/MyChat.vue
+2
-2
src/components/menus/MyCsdnUser.vue
src/components/menus/MyCsdnUser.vue
+425
-425
src/components/menus/MyInterview.vue
src/components/menus/MyInterview.vue
+5
-5
src/components/menus/MyPic.vue
src/components/menus/MyPic.vue
+1
-1
src/components/menus/MyTripletDayInfo.vue
src/components/menus/MyTripletDayInfo.vue
+2
-2
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
未找到文件。
dist/js/app.daf921ca.js
浏览文件 @
6372abb6
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
dist/js/app.daf921ca.js.map
浏览文件 @
6372abb6
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
src/api/ApiService.js
浏览文件 @
6372abb6
...
@@ -2,13 +2,13 @@ import axios from 'axios'
...
@@ -2,13 +2,13 @@ import axios from 'axios'
// 创建一个名为 ApiService 的对象,包含您的异步方法
// 创建一个名为 ApiService 的对象,包含您的异步方法
const
ApiService
=
{
const
ApiService
=
{
async
triplet
(
articleId
)
{
async
triplet
(
articleId
)
{
return
await
axios
.
get
(
'
http://
120.79.36.53
:8888/csdnArticleInfo/triplet?articleId=
'
+
articleId
);
return
await
axios
.
get
(
'
http://
43.139.90.182
:8888/csdnArticleInfo/triplet?articleId=
'
+
articleId
);
},
},
async
allTriplet
(
articleIds
)
{
async
allTriplet
(
articleIds
)
{
return
await
axios
.
post
(
'
http://
120.79.36.53
:8888/csdnArticleInfo/multiTriplet
'
,
articleIds
);
return
await
axios
.
post
(
'
http://
43.139.90.182
:8888/csdnArticleInfo/multiTriplet
'
,
articleIds
);
},
},
async
onDelete
(
id
)
{
async
onDelete
(
id
)
{
return
await
axios
.
get
(
'
http://
120.79.36.53
:8888/csdnArticleInfo/delete
'
,
{
return
await
axios
.
get
(
'
http://
43.139.90.182
:8888/csdnArticleInfo/delete
'
,
{
params
:
{
params
:
{
id
:
id
id
:
id
}
}
...
...
src/components/menus/MyAlgorithmic.vue
浏览文件 @
6372abb6
...
@@ -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://
120.79.36.53
:8888/algorithmicProblem/add
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
43.139.90.182
:8888/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://
120.79.36.53
:8888/algorithmicProblem/update
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
43.139.90.182
:8888/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://
120.79.36.53
:8888/algorithmicProblem/delete
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182
:8888/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://
120.79.36.53
:8888/algorithmicProblem/questionType
'
,
{
params
:
{}
})
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182
:8888/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://
120.79.36.53
:8888/algorithmicProblem/allQuestionType
'
,
{
params
:
{}
})
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182
:8888/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://
120.79.36.53
:8888/algorithmicProblem/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182
:8888/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://
120.79.36.53
:8888/algorithmicProblem/random
'
,
{
params
:
{}
})
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182
:8888/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
浏览文件 @
6372abb6
...
@@ -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://
120.79.36.53
:8888/aphorismPoetry/add
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
43.139.90.182
:8888/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://
120.79.36.53
:8888/aphorismPoetry/update
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
43.139.90.182
:8888/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://
120.79.36.53
:8888/aphorismPoetry/delete
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182
:8888/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://
120.79.36.53
:8888/aphorismPoetry/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182
:8888/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://
120.79.36.53
:8888/aphorismPoetry/random
'
,
{
params
:
{}
})
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182
:8888/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
浏览文件 @
6372abb6
...
@@ -354,7 +354,7 @@ export default {
...
@@ -354,7 +354,7 @@ export default {
async
addUser
(
addType
)
{
async
addUser
(
addType
)
{
try
{
try
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
120.79.36.53
:8888/csdnArticleInfo/add
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
43.139.90.182
:8888/csdnArticleInfo/add
'
,
{
addType
:
addType
,
addType
:
addType
,
userName
:
this
.
form
.
userName
,
userName
:
this
.
form
.
userName
,
articleId
:
this
.
form
.
articleId
,
articleId
:
this
.
form
.
articleId
,
...
@@ -385,7 +385,7 @@ export default {
...
@@ -385,7 +385,7 @@ export default {
async
editConfirm
()
{
async
editConfirm
()
{
try
{
try
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
120.79.36.53
:8888/csdnArticleInfo/update
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
43.139.90.182
:8888/csdnArticleInfo/update
'
,
{
id
:
this
.
currentRowId
,
id
:
this
.
currentRowId
,
articleId
:
this
.
form
.
articleId
,
articleId
:
this
.
form
.
articleId
,
userName
:
this
.
form
.
userName
,
userName
:
this
.
form
.
userName
,
...
@@ -412,7 +412,7 @@ export default {
...
@@ -412,7 +412,7 @@ export default {
},
},
async
getScore
()
{
async
getScore
()
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/csdnArticleInfo/getScore?articleUrl=
'
+
this
.
form
.
articleUrl
)
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182
:8888/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
{
...
@@ -463,7 +463,7 @@ export default {
...
@@ -463,7 +463,7 @@ export default {
},
},
async
articleInfoPage
()
{
async
articleInfoPage
()
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
120.79.36.53
:8888/csdnArticleInfo/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
43.139.90.182
:8888/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
浏览文件 @
6372abb6
...
@@ -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://
120.79.36.53
:8888/chatbot/delete
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182
:8888/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://
120.79.36.53
:8888/chatbot/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182
:8888/chatbot/page
'
,
{
params
:
{
params
:
{
page
:
this
.
currentPage
,
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
pageSize
:
this
.
pageSize
,
...
...
src/components/menus/MyCsdnUser.vue
浏览文件 @
6372abb6
...
@@ -226,438 +226,438 @@
...
@@ -226,438 +226,438 @@
<
script
>
<
script
>
import
axios
from
'
axios
'
import
axios
from
'
axios
'
export
default
{
export
default
{
name
:
'
MyCsdnUser
'
,
name
:
'
MyCsdnUser
'
,
data
()
{
data
()
{
return
{
return
{
form
:
{
form
:
{
userName
:
''
,
userName
:
''
,
nickName
:
''
,
nickName
:
''
,
userHomeUrl
:
''
,
userHomeUrl
:
''
,
userWeight
:
null
,
userWeight
:
null
,
},
},
formInline
:
{
formInline
:
{
userName
:
''
,
userName
:
''
,
nickName
:
''
,
nickName
:
''
,
articleType
:
'
blog
'
,
articleType
:
'
blog
'
,
likeStatus
:
null
,
likeStatus
:
null
,
collectStatus
:
null
,
collectStatus
:
null
,
commentStatus
:
null
,
commentStatus
:
null
,
},
},
allOptions
:
[
allOptions
:
[
{
{
// type: -1,
// type: -1,
name
:
'
全部
'
,
name
:
'
全部
'
,
},
},
{
{
type
:
9
,
type
:
9
,
name
:
'
铁子
'
,
name
:
'
铁子
'
,
},
},
{
type
:
8
,
name
:
'
闺蜜
'
},
{
type
:
8
,
name
:
'
闺蜜
'
},
{
type
:
7
,
name
:
'
基友
'
},
{
type
:
7
,
name
:
'
基友
'
},
{
type
:
0
,
name
:
'
默认
'
},
{
type
:
0
,
name
:
'
默认
'
},
],
],
articleType
:
[
'
全部
'
,
'
blog
'
,
'
blink
'
,
'
download
'
,
'
ask
'
],
articleType
:
[
'
全部
'
,
'
blog
'
,
'
blink
'
,
'
download
'
,
'
ask
'
],
likeStatus
:
[
likeStatus
:
[
{
{
type
:
-
1
,
type
:
-
1
,
name
:
'
全部
'
,
name
:
'
全部
'
,
},
},
{
{
type
:
0
,
type
:
0
,
name
:
'
未处理
'
,
name
:
'
未处理
'
,
},
},
{
type
:
1
,
name
:
'
已经点过赞
'
},
{
type
:
1
,
name
:
'
已经点过赞
'
},
{
type
:
2
,
name
:
'
点赞已满
'
},
{
type
:
2
,
name
:
'
点赞已满
'
},
{
type
:
3
,
name
:
'
取消点赞
'
},
{
type
:
3
,
name
:
'
取消点赞
'
},
{
type
:
4
,
name
:
'
文章状态不能点赞
'
},
{
type
:
4
,
name
:
'
文章状态不能点赞
'
},
{
type
:
9
,
name
:
'
点赞成功
'
},
{
type
:
9
,
name
:
'
点赞成功
'
},
],
],
collectStatus
:
[
collectStatus
:
[
{
{
type
:
-
1
,
type
:
-
1
,
name
:
'
全部
'
,
name
:
'
全部
'
,
},
},
{
{
type
:
0
,
type
:
0
,
name
:
'
未处理
'
,
name
:
'
未处理
'
,
},
},
{
type
:
1
,
name
:
'
已经收藏过
'
},
{
type
:
1
,
name
:
'
已经收藏过
'
},
{
type
:
2
,
name
:
'
收藏已满
'
},
{
type
:
2
,
name
:
'
收藏已满
'
},
{
type
:
3
,
name
:
'
参数缺失
'
},
{
type
:
3
,
name
:
'
参数缺失
'
},
{
type
:
9
,
name
:
'
收藏成功
'
},
{
type
:
9
,
name
:
'
收藏成功
'
},
],
],
commentStatus
:
[
commentStatus
:
[
{
{
type
:
-
1
,
type
:
-
1
,
name
:
'
全部
'
,
name
:
'
全部
'
,
},
},
{
{
type
:
0
,
type
:
0
,
name
:
'
未处理
'
,
name
:
'
未处理
'
,
},
},
{
type
:
1
,
name
:
'
已经评论过
'
},
{
type
:
1
,
name
:
'
已经评论过
'
},
{
type
:
2
,
name
:
'
评论已满
'
},
{
type
:
2
,
name
:
'
评论已满
'
},
{
type
:
3
,
name
:
'
禁言
'
},
{
type
:
3
,
name
:
'
禁言
'
},
{
type
:
4
,
name
:
'
评论太快
'
},
{
type
:
4
,
name
:
'
评论太快
'
},
{
type
:
5
,
name
:
'
评论已经到了49条
'
},
{
type
:
5
,
name
:
'
评论已经到了49条
'
},
{
type
:
8
,
name
:
'
其他错误
'
},
{
type
:
8
,
name
:
'
其他错误
'
},
{
type
:
9
,
name
:
'
评论成功
'
},
{
type
:
9
,
name
:
'
评论成功
'
},
],
],
dialogFormVisible
:
false
,
dialogFormVisible
:
false
,
dialogMutiFormVisible
:
false
,
dialogMutiFormVisible
:
false
,
dialogVisible
:
false
,
dialogVisible
:
false
,
editVisible
:
false
,
editVisible
:
false
,
tripletVisible
:
false
,
tripletVisible
:
false
,
allTripletDialogVisible
:
false
,
allTripletDialogVisible
:
false
,
resetDialogVisible
:
false
,
resetDialogVisible
:
false
,
autoReplyDialogVisible
:
false
,
autoReplyDialogVisible
:
false
,
resetUserDialogVisible
:
false
,
resetUserDialogVisible
:
false
,
resetUserDayStatusVisible
:
false
,
resetUserDayStatusVisible
:
false
,
blog10DialogVisible
:
false
,
blog10DialogVisible
:
false
,
// 用户列表数据
// 用户列表数据
csdnUserList
:
[],
csdnUserList
:
[],
loading
:
false
,
loading
:
false
,
elementui_page_component_key
:
0
,
elementui_page_component_key
:
0
,
currentPage
:
Number
(
localStorage
.
getItem
(
'
csdnUserPage
'
))
||
1
,
currentPage
:
Number
(
localStorage
.
getItem
(
'
csdnUserPage
'
))
||
1
,
pageSize
:
10
,
pageSize
:
10
,
total
:
0
,
total
:
0
,
// 新增的内容
// 新增的内容
formLabelWidth
:
'
120px
'
,
formLabelWidth
:
'
120px
'
,
currentRowId
:
null
,
currentRowId
:
null
,
currentUserName
:
null
,
currentUserName
:
null
,
multipleSelection
:
[],
multipleSelection
:
[],
}
}
},
},
watch
:
{
watch
:
{
'
formInline.userName
'
(
newVal
,
oldVal
)
{
'
formInline.userName
'
(
newVal
,
oldVal
)
{
if
(
newVal
!==
oldVal
)
{
if
(
newVal
!==
oldVal
)
{
this
.
currentPage
=
1
this
.
currentPage
=
1
localStorage
.
setItem
(
'
csdnUserPage
'
,
this
.
currentPage
)
localStorage
.
setItem
(
'
csdnUserPage
'
,
this
.
currentPage
)
this
.
userPage
()
this
.
userPage
()
}
}
},
},
'
formInline.nickName
'
(
newVal
,
oldVal
)
{
'
formInline.nickName
'
(
newVal
,
oldVal
)
{
if
(
newVal
!==
oldVal
)
{
if
(
newVal
!==
oldVal
)
{
this
.
currentPage
=
1
this
.
currentPage
=
1
localStorage
.
setItem
(
'
csdnUserPage
'
,
this
.
currentPage
)
localStorage
.
setItem
(
'
csdnUserPage
'
,
this
.
currentPage
)
this
.
userPage
()
this
.
userPage
()
}
}
},
},
// 监听currentPage的变化,将新值保存到localStorage中
// 监听currentPage的变化,将新值保存到localStorage中
currentPage
(
newPage
)
{
currentPage
(
newPage
)
{
localStorage
.
setItem
(
'
csdnUserPage
'
,
newPage
.
toString
())
localStorage
.
setItem
(
'
csdnUserPage
'
,
newPage
.
toString
())
},
},
},
},
created
()
{
created
()
{
//获取问题类型的枚举
//获取问题类型的枚举
this
.
userPage
()
this
.
userPage
()
},
},
mounted
()
{
mounted
()
{
this
.
currentPage
=
1
this
.
currentPage
=
1
},
},
methods
:
{
methods
:
{
prepareAdd
()
{
prepareAdd
()
{
this
.
form
.
userName
=
''
this
.
form
.
userName
=
''
this
.
form
.
nickName
=
''
this
.
form
.
nickName
=
''
this
.
dialogFormVisible
=
true
this
.
dialogFormVisible
=
true
},
},
prepareAllTriplet
()
{
prepareAllTriplet
()
{
this
.
allTripletDialogVisible
=
true
this
.
allTripletDialogVisible
=
true
},
},
prepareResetUserDayStatus
(
userName
)
{
prepareResetUserDayStatus
(
userName
)
{
this
.
resetUserDayStatusVisible
=
true
this
.
resetUserDayStatusVisible
=
true
this
.
currentUserName
=
userName
this
.
currentUserName
=
userName
},
},
prepareBlog10
(
userName
)
{
prepareBlog10
(
userName
)
{
this
.
blog10DialogVisible
=
true
this
.
blog10DialogVisible
=
true
this
.
currentUserName
=
userName
this
.
currentUserName
=
userName
},
},
prepareReset
()
{
prepareReset
()
{
this
.
resetDialogVisible
=
true
this
.
resetDialogVisible
=
true
},
},
prepareAutoReply
()
{
prepareAutoReply
()
{
this
.
autoReplyDialogVisible
=
true
this
.
autoReplyDialogVisible
=
true
},
},
prepareResetUser
()
{
prepareResetUser
()
{
this
.
resetUserDialogVisible
=
true
this
.
resetUserDialogVisible
=
true
},
},
prepareMutiAdd
()
{
prepareMutiAdd
()
{
this
.
form
.
userName
=
''
this
.
form
.
userName
=
''
this
.
dialogMutiFormVisible
=
true
this
.
dialogMutiFormVisible
=
true
},
},
prepareDelete
(
id
)
{
prepareDelete
(
id
)
{
this
.
currentRowId
=
id
this
.
currentRowId
=
id
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
},
},
prepareTriplet
(
userName
)
{
prepareTriplet
(
userName
)
{
this
.
currentUserName
=
userName
this
.
currentUserName
=
userName
this
.
tripletVisible
=
true
this
.
tripletVisible
=
true
},
},
preEdit
(
id
,
userName
,
nickName
,
userHomeUrl
,
userWeight
)
{
preEdit
(
id
,
userName
,
nickName
,
userHomeUrl
,
userWeight
)
{
this
.
form
.
userName
=
userName
this
.
form
.
userName
=
userName
this
.
form
.
nickName
=
nickName
this
.
form
.
nickName
=
nickName
this
.
form
.
userHomeUrl
=
userHomeUrl
this
.
form
.
userHomeUrl
=
userHomeUrl
this
.
form
.
userWeight
=
userWeight
this
.
form
.
userWeight
=
userWeight
this
.
currentRowId
=
id
this
.
currentRowId
=
id
this
.
editVisible
=
true
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
)
// 发送请求
},
},
handleSelectionChange
(
val
)
{
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
this
.
multipleSelection
=
val
},
},
async
addUser
(
addType
)
{
async
addUser
(
addType
)
{
try
{
try
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://120.79.36.53
:8888/csdn/user/add
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://43.139.90.182
:8888/csdn/user/add
'
,
{
addType
:
addType
,
addType
:
addType
,
userName
:
this
.
form
.
userName
,
userName
:
this
.
form
.
userName
,
nickName
:
this
.
form
.
nickName
,
nickName
:
this
.
form
.
nickName
,
userWeight
:
this
.
form
.
userWeight
,
userWeight
:
this
.
form
.
userWeight
,
})
})
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
currentPage
=
1
this
.
currentPage
=
1
this
.
form
.
userName
=
''
this
.
form
.
userName
=
''
this
.
form
.
nickName
=
''
this
.
form
.
nickName
=
''
this
.
form
.
userWeight
=
null
this
.
form
.
userWeight
=
null
this
.
userPage
()
this
.
userPage
()
}
else
{
}
else
{
this
.
errorMsg
(
res
.
message
)
this
.
errorMsg
(
res
.
message
)
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
}
}
},
},
errorMsg
(
msg
)
{
errorMsg
(
msg
)
{
this
.
$message
({
this
.
$message
({
showClose
:
true
,
showClose
:
true
,
message
:
msg
,
message
:
msg
,
type
:
'
error
'
,
type
:
'
error
'
,
})
})
},
},
async
editConfirm
()
{
async
editConfirm
()
{
try
{
try
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://120.79.36.53
:8888/csdn/user/update
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://43.139.90.182
:8888/csdn/user/update
'
,
{
id
:
this
.
currentRowId
,
id
:
this
.
currentRowId
,
userName
:
this
.
form
.
userName
,
userName
:
this
.
form
.
userName
,
nickName
:
this
.
form
.
nickName
,
nickName
:
this
.
form
.
nickName
,
userWeight
:
this
.
form
.
userWeight
,
userWeight
:
this
.
form
.
userWeight
,
userHomeUrl
:
this
.
form
.
userHomeUrl
,
userHomeUrl
:
this
.
form
.
userHomeUrl
,
})
})
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
form
.
userName
=
''
this
.
form
.
userName
=
''
this
.
form
.
nickName
=
''
this
.
form
.
nickName
=
''
this
.
form
.
userHomeUrl
=
''
this
.
form
.
userHomeUrl
=
''
this
.
form
.
userWeight
=
null
this
.
form
.
userWeight
=
null
this
.
editVisible
=
false
this
.
editVisible
=
false
currentRowId
:
null
currentRowId
:
null
this
.
userPage
()
this
.
userPage
()
}
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
autoReply
()
{
async
autoReply
()
{
this
.
loading
=
true
this
.
loading
=
true
this
.
autoReplyDialogVisible
=
false
this
.
autoReplyDialogVisible
=
false
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://120.79.36.53
:8888/csdn/autoReply
'
)
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://43.139.90.182
:8888/csdn/autoReply
'
)
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
userPage
()
this
.
userPage
()
}
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
allTriplet
()
{
async
allTriplet
()
{
this
.
loading
=
true
this
.
loading
=
true
this
.
allTripletDialogVisible
=
false
this
.
allTripletDialogVisible
=
false
if
(
this
.
multipleSelection
&&
this
.
multipleSelection
.
length
===
0
)
{
if
(
this
.
multipleSelection
&&
this
.
multipleSelection
.
length
===
0
)
{
console
.
error
(
'
请选择需要处理的项
'
)
console
.
error
(
'
请选择需要处理的项
'
)
}
else
{
}
else
{
let
userNames
=
this
.
multipleSelection
.
map
((
item
)
=>
item
.
userName
)
let
userNames
=
this
.
multipleSelection
.
map
((
item
)
=>
item
.
userName
)
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://120.79.36.53
:8888/csdn/multiTriplet
'
,
userNames
)
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://43.139.90.182
:8888/csdn/multiTriplet
'
,
userNames
)
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
multipleSelection
=
[]
this
.
multipleSelection
=
[]
this
.
userPage
()
this
.
userPage
()
}
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
triplet
(
userName
)
{
async
triplet
(
userName
)
{
this
.
loading
=
true
this
.
loading
=
true
this
.
tripletVisible
=
false
this
.
tripletVisible
=
false
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://120.79.36.53
:8888/csdn/singleTriplet?username=
'
+
userName
)
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://43.139.90.182
:8888/csdn/singleTriplet?username=
'
+
userName
)
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
currentUserName
=
null
this
.
currentUserName
=
null
this
.
userPage
()
this
.
userPage
()
}
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
onBlog10
(
userName
)
{
async
onBlog10
(
userName
)
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://120.79.36.53
:8888/csdn/add10Blog?username=
'
+
userName
)
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://43.139.90.182
:8888/csdn/add10Blog?username=
'
+
userName
)
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
currentUserName
=
null
this
.
currentUserName
=
null
this
.
blog10DialogVisible
=
false
this
.
blog10DialogVisible
=
false
this
.
userPage
()
this
.
userPage
()
}
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
resetUserDayStatus
(
userName
)
{
async
resetUserDayStatus
(
userName
)
{
this
.
loading
=
true
this
.
loading
=
true
this
.
resetUserDayStatusVisible
=
false
this
.
resetUserDayStatusVisible
=
false
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://120.79.36.53
:8888/csdn/resetCsdnUserInfo?username=
'
+
userName
)
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://43.139.90.182
:8888/csdn/resetCsdnUserInfo?username=
'
+
userName
)
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
currentUserName
=
null
this
.
currentUserName
=
null
this
.
userPage
()
this
.
userPage
()
}
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
onDelete
(
id
)
{
async
onDelete
(
id
)
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://120.79.36.53
: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
.
dialogVisible
=
false
this
.
dialogVisible
=
false
this
.
userPage
()
this
.
userPage
()
this
.
loading
=
false
this
.
loading
=
false
},
},
async
reset
()
{
async
reset
()
{
this
.
loading
=
true
this
.
loading
=
true
this
.
resetDialogVisible
=
false
this
.
resetDialogVisible
=
false
if
(
this
.
multipleSelection
&&
this
.
multipleSelection
.
length
===
0
)
{
if
(
this
.
multipleSelection
&&
this
.
multipleSelection
.
length
===
0
)
{
console
.
error
(
'
请选择需要处理的项
'
)
console
.
error
(
'
请选择需要处理的项
'
)
}
else
{
}
else
{
let
userNames
=
this
.
multipleSelection
.
map
((
item
)
=>
item
.
userName
)
let
userNames
=
this
.
multipleSelection
.
map
((
item
)
=>
item
.
userName
)
console
.
log
(
userNames
)
console
.
log
(
userNames
)
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://120.79.36.53
:8888/csdn/resetCsdnUserInfo
'
,
userNames
)
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://43.139.90.182
:8888/csdn/resetCsdnUserInfo
'
,
userNames
)
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
multipleSelection
=
[]
this
.
multipleSelection
=
[]
this
.
userPage
()
this
.
userPage
()
}
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
resetUser
()
{
async
resetUser
()
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://120.79.36.53
:8888/csdn/resetUserDayStatus
'
)
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://43.139.90.182
:8888/csdn/resetUserDayStatus
'
)
this
.
resetUserDialogVisible
=
false
this
.
resetUserDialogVisible
=
false
this
.
userPage
()
this
.
userPage
()
this
.
loading
=
false
this
.
loading
=
false
},
},
refreshPage
()
{
refreshPage
()
{
//获取问题类型的枚举
//获取问题类型的枚举
this
.
userPage
()
this
.
userPage
()
location
.
reload
()
location
.
reload
()
},
},
async
userPage
()
{
async
userPage
()
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://120.79.36.53
:8888/csdn/user/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://43.139.90.182
:8888/csdn/user/page
'
,
{
page
:
this
.
currentPage
,
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
pageSize
:
this
.
pageSize
,
userName
:
this
.
formInline
.
userName
,
userName
:
this
.
formInline
.
userName
,
nickName
:
this
.
formInline
.
nickName
,
nickName
:
this
.
formInline
.
nickName
,
articleType
:
this
.
formInline
.
articleType
==
'
全部
'
?
''
:
this
.
formInline
.
articleType
,
articleType
:
this
.
formInline
.
articleType
==
'
全部
'
?
''
:
this
.
formInline
.
articleType
,
userWeight
:
this
.
formInline
.
userWeight
==
-
1
?
null
:
this
.
formInline
.
userWeight
,
userWeight
:
this
.
formInline
.
userWeight
==
-
1
?
null
:
this
.
formInline
.
userWeight
,
likeStatus
:
this
.
formInline
.
likeStatus
==
-
1
?
null
:
this
.
formInline
.
likeStatus
,
likeStatus
:
this
.
formInline
.
likeStatus
==
-
1
?
null
:
this
.
formInline
.
likeStatus
,
collectStatus
:
this
.
formInline
.
collectStatus
==
-
1
?
null
:
this
.
formInline
.
collectStatus
,
collectStatus
:
this
.
formInline
.
collectStatus
==
-
1
?
null
:
this
.
formInline
.
collectStatus
,
commentStatus
:
this
.
formInline
.
commentStatus
==
-
1
?
null
:
this
.
formInline
.
commentStatus
,
commentStatus
:
this
.
formInline
.
commentStatus
==
-
1
?
null
:
this
.
formInline
.
commentStatus
,
})
})
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
total
=
res
.
result
.
totalElements
this
.
total
=
res
.
result
.
totalElements
const
userWeightMap
=
{}
const
userWeightMap
=
{}
this
.
allOptions
.
forEach
((
option
)
=>
{
this
.
allOptions
.
forEach
((
option
)
=>
{
userWeightMap
[
option
.
type
]
=
option
.
name
userWeightMap
[
option
.
type
]
=
option
.
name
})
})
res
.
result
.
content
.
forEach
((
item
)
=>
{
res
.
result
.
content
.
forEach
((
item
)
=>
{
item
.
userWeightName
=
userWeightMap
[
item
.
userWeight
]
item
.
userWeightName
=
userWeightMap
[
item
.
userWeight
]
})
})
const
likeStatusMap
=
{}
const
likeStatusMap
=
{}
this
.
likeStatus
.
forEach
((
option
)
=>
{
this
.
likeStatus
.
forEach
((
option
)
=>
{
likeStatusMap
[
option
.
type
]
=
option
.
name
likeStatusMap
[
option
.
type
]
=
option
.
name
})
})
res
.
result
.
content
.
forEach
((
item
)
=>
{
res
.
result
.
content
.
forEach
((
item
)
=>
{
item
.
likeStatusName
=
likeStatusMap
[
item
.
likeStatus
]
item
.
likeStatusName
=
likeStatusMap
[
item
.
likeStatus
]
})
})
const
collectStatusMap
=
{}
const
collectStatusMap
=
{}
this
.
collectStatus
.
forEach
((
option
)
=>
{
this
.
collectStatus
.
forEach
((
option
)
=>
{
collectStatusMap
[
option
.
type
]
=
option
.
name
collectStatusMap
[
option
.
type
]
=
option
.
name
})
})
res
.
result
.
content
.
forEach
((
item
)
=>
{
res
.
result
.
content
.
forEach
((
item
)
=>
{
item
.
collectStatusName
=
collectStatusMap
[
item
.
collectStatus
]
item
.
collectStatusName
=
collectStatusMap
[
item
.
collectStatus
]
})
})
const
commentStatusMap
=
{}
const
commentStatusMap
=
{}
this
.
commentStatus
.
forEach
((
option
)
=>
{
this
.
commentStatus
.
forEach
((
option
)
=>
{
commentStatusMap
[
option
.
type
]
=
option
.
name
commentStatusMap
[
option
.
type
]
=
option
.
name
})
})
res
.
result
.
content
.
forEach
((
item
)
=>
{
res
.
result
.
content
.
forEach
((
item
)
=>
{
item
.
commentStatusName
=
commentStatusMap
[
item
.
commentStatus
]
item
.
commentStatusName
=
commentStatusMap
[
item
.
commentStatus
]
})
})
this
.
csdnUserList
=
res
.
result
.
content
this
.
csdnUserList
=
res
.
result
.
content
}
}
this
.
loading
=
false
this
.
loading
=
false
},
},
handleCurrentChange
(
currentPage
)
{
handleCurrentChange
(
currentPage
)
{
this
.
currentPage
=
currentPage
this
.
currentPage
=
currentPage
this
.
userPage
()
this
.
userPage
()
},
},
handleSizeChange
(
currentSize
)
{
handleSizeChange
(
currentSize
)
{
this
.
pageSize
=
currentSize
this
.
pageSize
=
currentSize
this
.
userPage
()
this
.
userPage
()
},
},
getTagType
(
statusName
)
{
getTagType
(
statusName
)
{
if
(
statusName
==
'
未处理
'
)
{
if
(
statusName
==
'
未处理
'
)
{
return
'
info
'
return
'
info
'
}
else
if
(
statusName
==
'
已经点过赞
'
||
statusName
==
'
已经收藏过
'
||
statusName
==
'
已经评论过
'
)
{
}
else
if
(
statusName
==
'
已经点过赞
'
||
statusName
==
'
已经收藏过
'
||
statusName
==
'
已经评论过
'
)
{
return
'
success
'
return
'
success
'
}
else
if
(
statusName
==
'
点赞已满
'
||
statusName
==
'
收藏已满
'
||
statusName
==
'
评论已满
'
||
statusName
==
'
禁言
'
||
statusName
==
'
评论已经到了49条
'
)
{
}
else
if
(
statusName
==
'
点赞已满
'
||
statusName
==
'
收藏已满
'
||
statusName
==
'
评论已满
'
||
statusName
==
'
禁言
'
||
statusName
==
'
评论已经到了49条
'
)
{
return
'
danger
'
return
'
danger
'
}
else
if
(
statusName
==
'
点赞成功
'
||
statusName
==
'
收藏成功
'
||
statusName
==
'
评论成功
'
)
{
}
else
if
(
statusName
==
'
点赞成功
'
||
statusName
==
'
收藏成功
'
||
statusName
==
'
评论成功
'
)
{
return
'
success
'
return
'
success
'
}
else
if
(
statusName
==
'
参数缺失
'
||
statusName
==
'
其他错误
'
||
statusName
==
'
取消点赞
'
||
statusName
==
'
评论太快
'
)
{
}
else
if
(
statusName
==
'
参数缺失
'
||
statusName
==
'
其他错误
'
||
statusName
==
'
取消点赞
'
||
statusName
==
'
评论太快
'
)
{
return
'
warning
'
return
'
warning
'
}
}
},
},
},
},
}
}
</
script
>
</
script
>
...
...
src/components/menus/MyInterview.vue
浏览文件 @
6372abb6
...
@@ -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://
120.79.36.53
:8888/interviewQuestion/add
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
43.139.90.182
:8888/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://
120.79.36.53
:8888/interviewQuestion/update
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
43.139.90.182
:8888/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://
120.79.36.53
:8888/interviewQuestion/delete
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182
:8888/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://
120.79.36.53
:8888/interviewQuestion/questionType
'
,
{
params
:
{}
})
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182
:8888/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://
120.79.36.53
:8888/interviewQuestion/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182
:8888/interviewQuestion/page
'
,
{
params
:
{
params
:
{
page
:
this
.
currentPage
,
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
pageSize
:
this
.
pageSize
,
...
...
src/components/menus/MyPic.vue
浏览文件 @
6372abb6
...
@@ -106,7 +106,7 @@ export default {
...
@@ -106,7 +106,7 @@ export default {
},
},
async
queryPic
()
{
async
queryPic
()
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/picInfo/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182
:8888/picInfo/page
'
,
{
params
:
{
params
:
{
page
:
this
.
currentPage
,
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
pageSize
:
this
.
pageSize
,
...
...
src/components/menus/MyTripletDayInfo.vue
浏览文件 @
6372abb6
...
@@ -169,7 +169,7 @@ export default {
...
@@ -169,7 +169,7 @@ export default {
},
},
async
tripletDayInfoPage
()
{
async
tripletDayInfoPage
()
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
120.79.36.53
:8888/dayInfo/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
43.139.90.182
:8888/dayInfo/page
'
,
{
page
:
this
.
currentPage
,
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
pageSize
:
this
.
pageSize
,
startDate
:
this
.
formInline
.
startDate
,
startDate
:
this
.
formInline
.
startDate
,
...
@@ -208,7 +208,7 @@ export default {
...
@@ -208,7 +208,7 @@ export default {
},
},
async
reset
()
{
async
reset
()
{
this
.
loading
=
true
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/dayInfo/add
'
)
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182
:8888/dayInfo/add
'
)
this
.
resetDialogVisible
=
false
this
.
resetDialogVisible
=
false
this
.
tripletDayInfoPage
()
this
.
tripletDayInfoPage
()
this
.
loading
=
false
this
.
loading
=
false
...
...
src/components/subcomponents/MyHeader.vue
浏览文件 @
6372abb6
...
@@ -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://
120.79.36.53
:8888/aphorismPoetry/random
'
)
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182
:8888/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
浏览文件 @
6372abb6
...
@@ -42,7 +42,7 @@ export default {
...
@@ -42,7 +42,7 @@ export default {
response
:
this
.
form
.
response
,
response
:
this
.
form
.
response
,
}
}
axios
axios
.
post
(
'
http://
120.79.36.53
:8888/chatbot
'
,
data
)
.
post
(
'
http://
43.139.90.182
:8888/chatbot
'
,
data
)
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
// 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中
// 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中
if
(
response
.
data
.
code
===
200
)
{
if
(
response
.
data
.
code
===
200
)
{
...
...
src/components/user/MyChatDetail.vue
浏览文件 @
6372abb6
...
@@ -66,7 +66,7 @@ export default {
...
@@ -66,7 +66,7 @@ export default {
// 封装请求列表数据的方法
// 封装请求列表数据的方法
async
initChatList
()
{
async
initChatList
()
{
// 调用 axios 的 get 方法,请求列表数据
// 调用 axios 的 get 方法,请求列表数据
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/chatbot/
'
+
this
.
id
)
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
43.139.90.182
:8888/chatbot/
'
+
this
.
id
)
// 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中
// 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
list
=
[
this
.
list
=
[
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录