Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
yma16
可视化 csdn 数据
提交
b63e770a
可
可视化 csdn 数据
项目概览
yma16
/
可视化 csdn 数据
该项目与 Fork 源项目分叉
Fork自
inscode / VueJS
通知
17
Star
15
Fork
10
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
可
可视化 csdn 数据
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
b63e770a
编写于
7月 01, 2023
作者:
6
63f1bb74d2451104dc7d8b9f
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Sat Jul 1 17:28:00 UTC 2023 inscode
上级
93d12375
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
37 addition
and
13 deletion
+37
-13
src/components/Author.vue
src/components/Author.vue
+9
-6
src/components/SearchGrade.vue
src/components/SearchGrade.vue
+28
-7
未找到文件。
src/components/Author.vue
浏览文件 @
b63e770a
<
template
>
<
template
>
<div>
<div>
<p>
作者:yma16
</p>
<p>
作者:yma16
</p>
<p>
仓库(gitcode):
<a
href=
"https://gitcode.net/qq_38870145/vue-csdn-grade"
<p>
代码
仓库(gitcode):
<a
href=
"https://gitcode.net/qq_38870145/vue-csdn-grade"
target=
"_blank"
>
https://gitcode.net/qq_38870145/vue-csdn-grade
</a>
target=
"_blank"
>
https://gitcode.net/qq_38870145/vue-csdn-grade
</a>
</p>
</p>
<p>
<p>
csdn:
<a
href=
"https://blog.csdn.net/qq_38870145?spm=1000.2115.3001.5343"
target=
"_blank"
>
csdn-yma16
</a>
csdn前端新星创作者:
<a
href=
"https://blog.csdn.net/qq_38870145"
target=
"_blank"
>
https://blog.csdn.net/qq_38870145
</a>
</p>
<p>
请作者喝杯茶(点击放大图片):
<a-image
:height=
"100"
:width=
"100"
src=
"https://yongma16.xyz/staticFile/common/img/wx-pay.jpg"
/>
</p>
</p>
<div
style=
"display: flex"
>
<div>
请作者喝杯茶(点击放大图片):
</div>
<div>
<a-image
:height=
"70"
:width=
"50"
src=
"https://yongma16.xyz/staticFile/common/img/wx-pay.jpg"
/>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
setup
>
<
script
setup
>
...
...
src/components/SearchGrade.vue
浏览文件 @
b63e770a
...
@@ -14,7 +14,7 @@ const state = reactive({
...
@@ -14,7 +14,7 @@ const state = reactive({
total
:
0
,
total
:
0
,
current
:
1
,
current
:
1
,
pageSize
:
10
,
pageSize
:
10
,
pageSizeOptions
:
[
'
10
'
,
'
20
'
,
'
3
0
'
],
pageSizeOptions
:
[
'
10
'
,
'
50
'
,
'
10
0
'
],
showTotal
:
(
total
,
range
)
=>
{
showTotal
:
(
total
,
range
)
=>
{
return
range
[
0
]
+
'
-
'
+
range
[
1
]
+
'
共
'
+
total
+
'
篇博客
'
;
return
range
[
0
]
+
'
-
'
+
range
[
1
]
+
'
共
'
+
total
+
'
篇博客
'
;
},
},
...
@@ -149,10 +149,22 @@ function initFirstData() {
...
@@ -149,10 +149,22 @@ function initFirstData() {
label
:
label
:
{
{
show
:
true
,
show
:
true
,
position
:
'
middle
'
,
color
:
'
red
'
,
lineHeight
:
35
,
backgroundColor
:
'
rgba(255,255,255.7)
'
,
formatter
:
(
params
)
=>
{
console
.
log
(
'
params markline
'
,
params
)
return
params
.
name
+
"
:
"
+
params
.
value
}
}
}
}
}
},
},
data
:
[{
type
:
'
average
'
,
name
:
'
平均分
'
}]
data
:
[
{
type
:
'
average
'
,
name
:
'
平均分
'
}]
}
}
}
}
]
]
...
@@ -183,6 +195,7 @@ function initFirstData() {
...
@@ -183,6 +195,7 @@ function initFirstData() {
if
(
state
.
dataSource
)
{
if
(
state
.
dataSource
)
{
initFirstData
();
initFirstData
();
}
}
})
})
onUnmounted
(()
=>
{
onUnmounted
(()
=>
{
window
.
onresize
=
null
window
.
onresize
=
null
...
@@ -193,6 +206,14 @@ function initFirstData() {
...
@@ -193,6 +206,14 @@ function initFirstData() {
window
.
localStorage
.
setItem
(
'
csdnUidData
'
,
JSON
.
stringify
(
state
.
dataSource
))
window
.
localStorage
.
setItem
(
'
csdnUidData
'
,
JSON
.
stringify
(
state
.
dataSource
))
}
}
})
})
document
.
addEventListener
(
'
keydown
'
,
(
e
)
=>
{
console
.
log
(
e
,
'
e
'
)
if
(
e
.
ctrlKey
&&
e
.
keyCode
===
79
)
{
console
.
log
(
'
Ctrl+y
'
);
onSearch
()
}
})
}
}
</
script
>
</
script
>
...
@@ -205,15 +226,15 @@ function initFirstData() {
...
@@ -205,15 +226,15 @@ function initFirstData() {
<Author
/>
<Author
/>
</div>
</div>
<br>
<br>
<div>
<div
style=
"display:flex"
>
<
a-input-search
v-model:value=
"state.searchValue"
:disabled=
"state.loading"
placeholder=
"输入用户id(如 qq_38870145)
"
<
div
style=
"width:100px;line-height: 32px;"
>
csdn用户id:
</div><a-input-search
v-model:value=
"state.searchValue
"
enter-button
@
search=
"onSearch"
/>
:disabled=
"state.loading"
placeholder=
"输入用户id(如 qq_38870145)"
enter-button
@
search=
"onSearch"
/>
</div>
</div>
<br>
<br>
<div>
<div>
<a-table
:scroll=
"
{ x: 800, y:
5
00 }" :columns="state.columns" :data-source="state.dataSource"
<a-table
:scroll=
"
{ x: 800, y:
6
00 }" :columns="state.columns" :data-source="state.dataSource"
:loading="state.loading" :pagination="state.pagination" bordered>
:loading="state.loading" :pagination="state.pagination" bordered
style="border-bottom:1px solid #f0f0f0;"
>
<template
#bodyCell
="
{ column, record }">
<template
#bodyCell
="
{ column, record }">
<template
v-if=
"column.key === 'url'"
>
<template
v-if=
"column.key === 'url'"
>
<a
:href=
"record.url"
target=
"_blank"
>
<a
:href=
"record.url"
target=
"_blank"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录