Auto Commit

上级 8fda6323
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/logo-m.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>csdn 用户快捷查分改文</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/logo-m.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- 解决图片403防盗链问题 -->
<meta name="referrer" content="no-referrer" />
<title>csdn 用户快捷查分改文</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
\ No newline at end of file
......@@ -6,7 +6,6 @@ const state = reactive({
current: 'grade查询分数'
})
onMounted(() => {
const href = window.location.href
const data = {}
const urlArray = href.split('?')
......
......@@ -20,24 +20,8 @@
<a-table :scroll="{ x: 600, y: 750 }" :columns="state.columns" :data-source="state.dataSource"
:loading="state.loading" :pagination="state.pagination" bordered style="border-bottom:1px solid #f0f0f0;">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'url'">
<a :href="record.url" target="_blank">
{{ record.url }}
</a>
</template>
<template v-else-if="column.key === 'score'">
<span>
<a-tag :color="record.score < 60 ? 'volcano' : record.score > 80 ? 'geekblue' : 'green'">
{{ record.score }}
</a-tag>
</span>
</template>
<template v-else-if="column.key === 'option'">
<a-tooltip placement="topLeft" :title="record.editUrl">
<a :href="record.editUrl" target="_blank">
编辑文章
</a>
</a-tooltip>
<template v-if="column.key === 'imgSrc'">
<a-image :src="record.imgSrc" height="50" :alt="record.imgSrc"/>
</template>
</template>
</a-table>
......@@ -56,7 +40,7 @@ const props = defineProps({
})
const state = reactive({
title: 'python 爬虫赛道 参赛选手所在城市',
title: 'vue3 ts antd 参赛选手所在城市',
clickCity:'全国',
linesCoord: [],
focusCity: '广东省',
......@@ -88,6 +72,7 @@ function initDataSource() {
state.dataSource.push({
uid: gameJson[uid].uid,
name: gameJson[uid].name,
imgSrc: gameJson[uid].imgSrc,
ip: gameJson[uid].ip.split('')[1]
})
state.total += 1
......@@ -105,6 +90,7 @@ function filterName(name) {
state.dataSource.push({
uid: gameJson[uid].uid,
imgSrc: gameJson[uid].imgSrc,
name: gameJson[uid].name,
ip: locName
})
......
......@@ -39,11 +39,15 @@ export const tableColumns= [
}]
export const tableGameColumns= [
{
title: '用户头像',
key: 'imgSrc',
fixed: true
},
{
title: '用户id',
dataIndex: 'uid',
sorter: (a, b) => a.uid[0].charCodeAt() - b.uid[0].charCodeAt(),
fixed: true
}, {
title: '用户昵称',
sorter: true,
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册