Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Kwan的解忧杂货铺@新空间代码工作室
vue-kwan-admin
提交
b5f3f4d3
V
vue-kwan-admin
项目概览
Kwan的解忧杂货铺@新空间代码工作室
/
vue-kwan-admin
通知
38
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看板
提交
b5f3f4d3
编写于
10月 25, 2023
作者:
Kwan的解忧杂货铺@新空间代码工作室
🐭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
整理
上级
d05ab7e8
变更
11
展开全部
显示空白变更内容
内联
并排
Showing
11 changed file
with
6100 addition
and
290 deletion
+6100
-290
dist/js/app.569e7a2e.js
dist/js/app.569e7a2e.js
+5406
-2
dist/js/app.569e7a2e.js.map
dist/js/app.569e7a2e.js.map
+379
-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/MyChat.vue
src/components/menus/MyChat.vue
+2
-2
src/components/menus/MyCsdnUser.vue
src/components/menus/MyCsdnUser.vue
+292
-264
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/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.569e7a2e.js
浏览文件 @
b5f3f4d3
此差异已折叠。
点击以展开。
dist/js/app.569e7a2e.js.map
浏览文件 @
b5f3f4d3
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
src/components/menus/MyAlgorithmic.vue
浏览文件 @
b5f3f4d3
...
...
@@ -281,7 +281,7 @@ export default {
async
addQuestion
(
addType
)
{
try
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
120.79.36.53
:8888/algorithmicProblem/add
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
localhost
:8888/algorithmicProblem/add
'
,
{
addType
:
addType
,
questionName
:
this
.
form
.
questionName
,
questionType
:
this
.
form
.
questionType
,
...
...
@@ -322,7 +322,7 @@ export default {
async
editConfirm
()
{
try
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
120.79.36.53
:8888/algorithmicProblem/update
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
localhost
:8888/algorithmicProblem/update
'
,
{
id
:
this
.
currentRowId
,
questionName
:
this
.
form
.
questionName
,
questionType
:
this
.
form
.
questionType
,
...
...
@@ -352,7 +352,7 @@ export default {
async
onDelete
(
id
)
{
this
.
dialogVisible
=
false
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/algorithmicProblem/delete
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost
:8888/algorithmicProblem/delete
'
,
{
params
:
{
id
:
id
,
},
...
...
@@ -367,7 +367,7 @@ export default {
},
async
getQuestionType
()
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/algorithmicProblem/questionType
'
,
{
params
:
{}
})
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost
:8888/algorithmicProblem/questionType
'
,
{
params
:
{}
})
if
(
res
.
code
===
200
)
{
this
.
options
=
res
.
result
console
.
log
(
this
.
options
)
...
...
@@ -377,7 +377,7 @@ export default {
},
async
getAllQuestionType
()
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/algorithmicProblem/allQuestionType
'
,
{
params
:
{}
})
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost
:8888/algorithmicProblem/allQuestionType
'
,
{
params
:
{}
})
if
(
res
.
code
===
200
)
{
this
.
allOptions
=
res
.
result
}
...
...
@@ -385,7 +385,7 @@ export default {
async
interviewPage
()
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/algorithmicProblem/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost
:8888/algorithmicProblem/page
'
,
{
params
:
{
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
...
...
@@ -410,7 +410,7 @@ export default {
},
async
interviewRandom
()
{
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://
localhost
:8888/algorithmicProblem/random
'
,
{
params
:
{}
})
if
(
res
.
code
===
200
)
{
this
.
randomAlgorithmic
.
questionName
=
res
.
result
.
questionName
this
.
randomAlgorithmic
.
leetcodeNumber
=
res
.
result
.
leetcodeNumber
...
...
src/components/menus/MyAphorismPoetry.vue
浏览文件 @
b5f3f4d3
...
...
@@ -192,7 +192,7 @@ export default {
async
addQuestion
(
addType
)
{
try
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
120.79.36.53
:8888/aphorismPoetry/add
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
localhost
:8888/aphorismPoetry/add
'
,
{
addType
:
addType
,
poetryText
:
this
.
form
.
poetryText
,
...
...
@@ -227,7 +227,7 @@ export default {
async
editConfirm
()
{
try
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
120.79.36.53
:8888/aphorismPoetry/update
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
localhost
:8888/aphorismPoetry/update
'
,
{
id
:
this
.
currentRowId
,
poetryText
:
this
.
form
.
poetryText
,
})
...
...
@@ -250,7 +250,7 @@ export default {
async
onDelete
(
id
)
{
this
.
dialogVisible
=
false
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/aphorismPoetry/delete
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost
:8888/aphorismPoetry/delete
'
,
{
params
:
{
id
:
id
,
},
...
...
@@ -265,7 +265,7 @@ export default {
},
async
interviewPage
()
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/aphorismPoetry/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost
:8888/aphorismPoetry/page
'
,
{
params
:
{
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
...
...
@@ -280,7 +280,7 @@ export default {
},
async
interviewRandom
()
{
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://
localhost
:8888/aphorismPoetry/random
'
,
{
params
:
{}
})
if
(
res
.
code
===
200
)
{
this
.
randomAlgorithmic
.
poetryText
=
res
.
result
.
poetryText
}
...
...
src/components/menus/MyChat.vue
浏览文件 @
b5f3f4d3
...
...
@@ -89,7 +89,7 @@ export default {
methods
:
{
async
onDelete
(
id
)
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/chatbot/delete
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost
:8888/chatbot/delete
'
,
{
params
:
{
id
:
id
,
},
...
...
@@ -109,7 +109,7 @@ export default {
async
initCartList
()
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/chatbot/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost
:8888/chatbot/page
'
,
{
params
:
{
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
...
...
src/components/menus/MyCsdnUser.vue
浏览文件 @
b5f3f4d3
...
...
@@ -49,6 +49,9 @@
<el-form-item>
<el-button
type=
"primary"
@
click=
"prepareMutiAdd"
>
批量新增
</el-button>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"allTriplet"
>
三连
</el-button>
</el-form-item>
</el-form>
<el-table
border
:data=
"csdnUserList"
v-loading=
"loading"
>
<el-table-column
prop=
"userName"
label=
"用户名称"
show-overflow-tooltip
></el-table-column>
...
...
@@ -59,20 +62,22 @@
<el-table-column
prop=
"commentStatusName"
label=
"评论状态"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"userWeightName"
label=
"用户权重"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"articleType"
label=
"文章类型"
show-overflow-tooltip
:width=
"100"
></el-table-column>
<el-table-column
label=
"创建时间"
width=
"170"
>
<template
slot-scope=
"props"
>
{{
props
.
row
.
createTime
|
dateFormat
}}
</
template
>
</el-table-column>
<el-table-column
label=
"更新时间"
width=
"170"
>
<el-table-column
prop=
"articleType"
label=
"文章类型"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"更新时间"
>
<template
slot-scope=
"props"
>
{{
props
.
row
.
updateTime
|
dateFormat
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"操作"
label=
"操作"
width=
"
180
"
>
<el-table-column
prop=
"操作"
label=
"操作"
width=
"
250px
"
>
<
template
slot-scope=
"props"
>
<el-button
type=
"primary"
@
click=
"prepareTriplet(props.row.userName)"
>
三连
</el-button>
<el-dialog
title=
"提示"
:visible.sync=
"tripletVisible"
width=
"30%"
:before-close=
"handleClose"
>
<span>
确认三连?
</span>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"tripletVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click.prevent=
"triplet(currentUserName)"
>
确 定
</el-button>
</span>
</el-dialog>
<el-button
type=
"success"
@
click.prevent=
"preEdit(props.row.id, props.row.userName, props.row.nickName, props.row.userWeight)"
width=
"200"
>
编辑
</el-button>
<el-dialog
title=
"编辑用户信息"
:visible.sync=
"editVisible"
>
<el-form
:model=
"form"
>
...
...
@@ -171,6 +176,7 @@ export default {
dialogMutiFormVisible
:
false
,
dialogVisible
:
false
,
editVisible
:
false
,
tripletVisible
:
false
,
// 用户列表数据
csdnUserList
:
[],
loading
:
false
,
...
...
@@ -181,6 +187,7 @@ export default {
// 新增的内容
formLabelWidth
:
'
120px
'
,
currentRowId
:
null
,
currentUserName
:
null
,
}
},
watch
:
{
...
...
@@ -224,6 +231,10 @@ export default {
this
.
currentRowId
=
id
this
.
dialogVisible
=
true
},
prepareTriplet
(
userName
)
{
this
.
currentUserName
=
userName
this
.
tripletVisible
=
true
},
preEdit
(
id
,
userName
,
nickName
,
userWeight
)
{
this
.
form
.
userName
=
userName
this
.
form
.
nickName
=
nickName
...
...
@@ -247,7 +258,7 @@ export default {
async
addUser
(
addType
)
{
try
{
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://localhost
:8888/csdn/user/add
'
,
{
addType
:
addType
,
userName
:
this
.
form
.
userName
,
nickName
:
this
.
form
.
nickName
,
...
...
@@ -280,7 +291,7 @@ export default {
async
editConfirm
()
{
try
{
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://localhost
:8888/csdn/user/update
'
,
{
id
:
this
.
currentRowId
,
userName
:
this
.
form
.
userName
,
nickName
:
this
.
form
.
nickName
,
...
...
@@ -303,11 +314,28 @@ export default {
this
.
loading
=
false
}
},
async
allTriplet
()
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://localhost:8888/csdn/multiTriplet
'
)
if
(
res
.
code
===
200
)
{
this
.
userPage
()
}
else
{
console
.
error
(
'
Received non-200 status code
'
,
res
)
}
},
async
triplet
(
userName
)
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://localhost:8888/csdn/singleTriplet?
'
+
userName
)
if
(
res
.
code
===
200
)
{
this
.
userPage
()
this
.
currentUserName
=
null
this
.
tripletVisible
=
false
}
else
{
console
.
error
(
'
Received non-200 status code
'
,
res
)
}
},
async
onDelete
(
id
)
{
this
.
dialogVisible
=
false
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://localhost
:8888/csdn/user/delete
'
,
{
params
:
{
id
:
id
,
},
...
...
@@ -322,7 +350,7 @@ export default {
},
async
userPage
()
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://120.79.36.53
:8888/csdn/user/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://localhost
:8888/csdn/user/page
'
,
{
params
:
{
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
...
...
src/components/menus/MyInterview.vue
浏览文件 @
b5f3f4d3
...
...
@@ -205,7 +205,7 @@ export default {
try
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
120.79.36.53
:8888/interviewQuestion/add
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
localhost
:8888/interviewQuestion/add
'
,
{
addType
:
addType
,
question
:
this
.
form
.
question
,
questionType
:
this
.
form
.
questionType
,
...
...
@@ -237,7 +237,7 @@ export default {
try
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
120.79.36.53
:8888/interviewQuestion/update
'
,
{
const
{
data
:
res
}
=
await
axios
.
post
(
'
http://
localhost
:8888/interviewQuestion/update
'
,
{
id
:
this
.
currentRowId
,
question
:
this
.
form
.
question
,
questionType
:
this
.
form
.
questionType
,
...
...
@@ -262,7 +262,7 @@ export default {
async
onDelete
(
id
)
{
this
.
dialogVisible
=
false
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/interviewQuestion/delete
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost
:8888/interviewQuestion/delete
'
,
{
params
:
{
id
:
id
,
},
...
...
@@ -278,7 +278,7 @@ export default {
},
async
getQuestionType
()
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/interviewQuestion/questionType
'
,
{
params
:
{}
})
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost
:8888/interviewQuestion/questionType
'
,
{
params
:
{}
})
if
(
res
.
code
===
200
)
{
this
.
options
=
res
.
result
this
.
interviewPage
()
...
...
@@ -287,7 +287,7 @@ export default {
async
interviewPage
()
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/interviewQuestion/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost
:8888/interviewQuestion/page
'
,
{
params
:
{
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
...
...
src/components/menus/MyPic.vue
浏览文件 @
b5f3f4d3
...
...
@@ -106,7 +106,7 @@ export default {
},
async
queryPic
()
{
this
.
loading
=
true
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/picInfo/page
'
,
{
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost
:8888/picInfo/page
'
,
{
params
:
{
page
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
...
...
src/components/subcomponents/MyHeader.vue
浏览文件 @
b5f3f4d3
...
...
@@ -164,7 +164,7 @@ export default {
},
async
interviewRandom
()
{
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://
localhost
:8888/aphorismPoetry/random
'
,
{
params
:
{}
})
if
(
res
.
code
===
200
)
{
this
.
randomAlgorithmic
.
poetryText
=
res
.
result
.
poetryText
}
...
...
src/components/user/AddChatDetail.vue
浏览文件 @
b5f3f4d3
...
...
@@ -42,7 +42,7 @@ export default {
response
:
this
.
form
.
response
,
}
axios
.
post
(
'
http://
120.79.36.53
:8888/chatbot
'
,
data
)
.
post
(
'
http://
localhost
:8888/chatbot
'
,
data
)
.
then
((
response
)
=>
{
// 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中
if
(
response
.
data
.
code
===
200
)
{
...
...
src/components/user/MyChatDetail.vue
浏览文件 @
b5f3f4d3
...
...
@@ -66,7 +66,7 @@ export default {
// 封装请求列表数据的方法
async
initChatList
()
{
// 调用 axios 的 get 方法,请求列表数据
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
120.79.36.53
:8888/chatbot/
'
+
this
.
id
)
const
{
data
:
res
}
=
await
axios
.
get
(
'
http://
localhost
:8888/chatbot/
'
+
this
.
id
)
// 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中
if
(
res
.
code
===
200
)
{
this
.
list
=
[
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录