Auto Commit

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