工具中学者列表页面
This commit is contained in:
@@ -1,402 +1,524 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div class="scholar-container">
|
||||||
<div class="crumbs">
|
<div class="sidebar">
|
||||||
<el-breadcrumb separator="/">
|
<el-card class="params-card" shadow="never">
|
||||||
<el-breadcrumb-item>{{ $t('sidebar.tools') }}</el-breadcrumb-item>
|
<div slot="header" class="card-header" style="font-weight: bold;"><i class="el-icon-search"></i> Scholar Search</div>
|
||||||
<el-breadcrumb-item>{{ $t('sidebar.scholarCrawlers') }}</el-breadcrumb-item>
|
|
||||||
</el-breadcrumb>
|
<el-form :model="form" ref="searchForm" :rules="rules" label-position="top">
|
||||||
</div>
|
<el-form-item label="Keyword" prop="keyword">
|
||||||
<div class="container">
|
<el-input v-model="form.keyword" placeholder="e.g. cancer" clearable></el-input>
|
||||||
<el-card class="box-card">
|
</el-form-item>
|
||||||
<el-form
|
|
||||||
ref="searchForm"
|
<div class="form-row">
|
||||||
:model="form"
|
<el-form-item label="Per Page (Articles)" class="half-width">
|
||||||
:rules="rules"
|
<el-input-number v-model="per_page" :controls="false" :min="1" :max="100"></el-input-number>
|
||||||
label-width="80px"
|
</el-form-item>
|
||||||
:inline="false"
|
|
||||||
class="search-form"
|
<el-form-item label="Page Number" class="half-width">
|
||||||
@submit.native.prevent
|
<el-input-number v-model="page" :controls="false" :min="1" :max="maxPages"></el-input-number>
|
||||||
>
|
|
||||||
<div class="search-bar">
|
|
||||||
<el-form-item label="Keyword" prop="keyword" class="search-input-item">
|
|
||||||
<el-input
|
|
||||||
v-model="form.keyword"
|
|
||||||
placeholder="Please input keyword"
|
|
||||||
clearable
|
|
||||||
@keyup.enter.native="handleSearch"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<div class="search-actions">
|
|
||||||
<el-button type="primary" icon="el-icon-search" :loading="loading" @click="handleSearch">
|
|
||||||
Search
|
|
||||||
</el-button>
|
|
||||||
<el-button
|
|
||||||
type="success"
|
|
||||||
icon="el-icon-download"
|
|
||||||
:loading="exportLoading"
|
|
||||||
:disabled="!form.keyword"
|
|
||||||
@click="handleExport"
|
|
||||||
>
|
|
||||||
Export Excel
|
|
||||||
</el-button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div style="display: flex; gap: 10px; margin-top: 15px;">
|
||||||
|
<el-button type="primary" class="fetch-btn" style="flex: 3;" :loading="loading" @click="handleExecute">
|
||||||
|
<i v-if="!loading" class="el-icon-coin"></i>
|
||||||
|
{{ loading ? 'Fetching...' : 'Execute Fetch' }}
|
||||||
|
</el-button>
|
||||||
|
|
||||||
|
<el-button @click="resetForm" class="custom-reset-btn">
|
||||||
|
<i class="el-icon-refresh-left"></i> Reset
|
||||||
|
</el-button>
|
||||||
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-card
|
<div class="info-box">
|
||||||
v-if="hasSearched"
|
<h4>INFORMATION</h4>
|
||||||
class="box-card"
|
|
||||||
style="margin-top: 20px"
|
<p>
|
||||||
>
|
"This tool allows for systematic extraction of scholar data from academic publications. Note that per_page refers to the
|
||||||
<div class="total-bar">
|
number of articles scanned, which may yield multiple scholar records."
|
||||||
Total: <span class="total-number">{{ total }}</span>
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="main-content" :style="{border:hasSearched && !loading ? 'none' : '2px solid #e2e2e2'}">
|
||||||
|
<div v-if="!hasSearched && !loading" class="main-content-center">
|
||||||
|
<div class="empty-state">
|
||||||
|
<div class="state-icon"><i class="el-icon-user"></i></div>
|
||||||
|
|
||||||
|
<h3>Scholar Search</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Enter a research keyword and specify the search depth to retrieve expert profiles from professional academic
|
||||||
|
databases.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
</div>
|
||||||
v-loading="loading"
|
|
||||||
:data="tableData"
|
<div v-if="loading" class="main-content-center">
|
||||||
border
|
<div class="processing-state">
|
||||||
stripe
|
<div class="spinner-box"><i class="el-icon-loading"></i></div>
|
||||||
style="width: 100%;"
|
|
||||||
class="table"
|
<h3>PROCESSING REQUEST</h3>
|
||||||
header-cell-class-name="table-header"
|
|
||||||
empty-text="No data, please search first"
|
<p>Connecting to api.tmrjournals.com...</p>
|
||||||
>
|
</div>
|
||||||
<el-table-column type="index" label="No." width="60" align="center" :index="tableIndex" />
|
</div>
|
||||||
<el-table-column
|
|
||||||
v-for="col in columns"
|
<div v-if="hasSearched && !loading" class="results-container">
|
||||||
:key="col"
|
<div class="results-header">
|
||||||
:prop="col"
|
<div class="results-stats">
|
||||||
:label="formatColumnLabel(col)"
|
<i class="el-icon-user"></i> RESULTS FOUND: <strong>{{ total }}</strong>
|
||||||
:min-width="getColumnWidth(col)"
|
<span class="divider">|</span>
|
||||||
:width="getColumnFixedWidth(col)"
|
<span class="page-info">PAGE {{ page }} OF APPROX. {{ maxPages }}</span>
|
||||||
/>
|
<template v-if="Source">
|
||||||
<el-table-column label="Paper Count" width="140" align="center">
|
<span class="divider">|</span>
|
||||||
|
<span class="page-info">Source {{ Source }}</span>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="results-nav">
|
||||||
|
<el-button
|
||||||
|
class="nav-btn"
|
||||||
|
size="mini"
|
||||||
|
icon="el-icon-arrow-left"
|
||||||
|
:disabled="page <= 1"
|
||||||
|
@click="changePage(-1)"
|
||||||
|
></el-button>
|
||||||
|
|
||||||
|
<el-button
|
||||||
|
class="nav-btn"
|
||||||
|
size="mini"
|
||||||
|
icon="el-icon-arrow-right"
|
||||||
|
:disabled="page >= maxPages"
|
||||||
|
@click="changePage(1)"
|
||||||
|
></el-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<el-table :data="exportFiles" class="custom-table" border stripe header-row-class-name="dark-table-header">
|
||||||
|
<el-table-column prop="name" label="File name" min-width="200"></el-table-column>
|
||||||
|
<el-table-column prop="url" label="File url" min-width="250">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div class="paper-count-cell">
|
<el-link class="file-link" :href="mediaUrl+scope.row.url" target="_blank">
|
||||||
<span class="paper-count-number">{{ scope.row.paperCount }}</span>
|
{{ scope.row.url }}
|
||||||
<el-button
|
<i class="el-icon-download download-icon"></i>
|
||||||
v-if="scope.row.paperCount"
|
</el-link>
|
||||||
type="primary"
|
|
||||||
size="mini"
|
|
||||||
plain
|
|
||||||
@click="showPapers(scope.row)"
|
|
||||||
>
|
|
||||||
Detail
|
|
||||||
</el-button>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column prop="count" label="Count" width="120" align="center"></el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="pagination">
|
</div>
|
||||||
<el-pagination
|
|
||||||
background
|
|
||||||
layout="total, sizes, prev, pager, next"
|
|
||||||
:total="total"
|
|
||||||
:current-page="page"
|
|
||||||
:page-sizes="[10, 20, 50, 100]"
|
|
||||||
:page-size="per_page"
|
|
||||||
@current-change="handlePageChange"
|
|
||||||
@size-change="handleSizeChange"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
|
||||||
|
|
||||||
<el-dialog title="Papers" :visible.sync="papersDialogVisible" width="70vw">
|
|
||||||
<div class="paper-expert-info">
|
|
||||||
<div><strong>Name:</strong> {{ currentExpert.name || currentExpert.realname }}</div>
|
|
||||||
<div><strong>Email:</strong> {{ currentExpert.email }}</div>
|
|
||||||
<div><strong>Affiliation:</strong> {{ currentExpert.affiliation }}</div>
|
|
||||||
</div>
|
|
||||||
<el-table :data="currentPapers" border stripe style="width: 100%">
|
|
||||||
<el-table-column type="index" label="No." width="60" align="center" />
|
|
||||||
<el-table-column prop="article_id" label="Article ID" width="180" />
|
|
||||||
<el-table-column prop="journal" label="Journal" width="340" />
|
|
||||||
<el-table-column prop="title" label="Title" />
|
|
||||||
</el-table>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button @click="papersDialogVisible = false">Close</el-button>
|
|
||||||
</span>
|
|
||||||
</el-dialog>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import Common from '@/components/common/common'
|
||||||
export default {
|
export default {
|
||||||
name: 'scholarCrawlers',
|
name: 'scholarCrawlers',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
form: {
|
mediaUrl: Common.mediaUrl,
|
||||||
keyword: '',
|
form: { keyword: '' },
|
||||||
},
|
|
||||||
rules: {
|
rules: {
|
||||||
keyword: [
|
keyword: [{ required: true, message: 'Required', trigger: 'blur' }]
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: 'Please input keyword',
|
|
||||||
trigger: 'blur',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
tableData: [],
|
|
||||||
columns: [],
|
|
||||||
loading: false,
|
loading: false,
|
||||||
exportLoading: false,
|
exportLoading: false,
|
||||||
papersDialogVisible: false,
|
hasSearched: false,
|
||||||
currentPapers: [],
|
|
||||||
currentExpert: {},
|
|
||||||
total: 0,
|
|
||||||
page: 1,
|
page: 1,
|
||||||
per_page: 20,
|
per_page: 20,
|
||||||
hasSearched: false,
|
maxPages: 100, // 初始上限
|
||||||
|
total: 0,
|
||||||
|
Source: '',
|
||||||
|
exportFiles: [] // 模拟图二的文件列表数据
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
tableIndex(index) {
|
resetForm() {
|
||||||
return (this.page - 1) * this.per_page + index + 1;
|
this.form = { keyword: '' };
|
||||||
},
|
|
||||||
handlePageChange(val) {
|
|
||||||
this.page = val;
|
|
||||||
this.doSearch();
|
|
||||||
},
|
|
||||||
handleSizeChange(val) {
|
|
||||||
this.per_page = val;
|
|
||||||
this.page = 1;
|
this.page = 1;
|
||||||
this.doSearch();
|
this.per_page=20;
|
||||||
|
this.$refs.searchForm.resetFields();
|
||||||
},
|
},
|
||||||
doSearch() {
|
async handleExecute() {
|
||||||
this.loading = true;
|
this.$refs.searchForm.validate(async (valid) => {
|
||||||
this.hasSearched = true;
|
if (!valid) return;
|
||||||
this.$api
|
this.loading = true;
|
||||||
.post('/api/expert_finder/search', {
|
this.hasSearched = false;
|
||||||
keyword: this.form.keyword,
|
|
||||||
page: this.page,
|
try {
|
||||||
per_page: this.per_page,
|
// 1. 调用 Search 接口获取页数上限
|
||||||
})
|
const searchRes = await this.$api.post('/api/expert_finder/search', {
|
||||||
.then((res) => {
|
keyword: this.form.keyword,
|
||||||
if (res && res.code === 0 && res.data) {
|
page: this.page,
|
||||||
const list =
|
per_page: this.per_page
|
||||||
Array.isArray(res.data.experts) && res.data.experts.length
|
});
|
||||||
? res.data.experts
|
|
||||||
: [];
|
if (searchRes && searchRes.code === 0) {
|
||||||
const listWithCount = list.map((item) => ({
|
this.total = searchRes.data.total || 0;
|
||||||
...item,
|
this.maxPages = searchRes.data.total_pages || 1; // 2. 模拟处理延迟(配合图一动画)
|
||||||
paperCount: Array.isArray(item.papers)
|
this.Source = searchRes.data.source || '';
|
||||||
? item.papers.length
|
await new Promise((resolve) => setTimeout(resolve, 1500)); // 3. 调用 Export 接口生成文件
|
||||||
: item.paper_count || item.paperCount || 0,
|
|
||||||
}));
|
const exportRes = await this.$api.post('/api/expert_finder/export', {
|
||||||
this.tableData = listWithCount;
|
keyword: this.form.keyword,
|
||||||
this.total = res.data.total != null ? Number(res.data.total) : listWithCount.length;
|
page: this.page,
|
||||||
this.columns = listWithCount.length
|
per_page: this.per_page
|
||||||
? Object.keys(listWithCount[0]).filter(
|
});
|
||||||
(key) =>
|
|
||||||
key !== 'papers' &&
|
if (exportRes && (exportRes.code === 0 || exportRes.status === 1)) {
|
||||||
key !== 'paperCount' &&
|
// 构造图二展示的数据格式
|
||||||
key !== 'paper_count'
|
const fileUrl = exportRes.data ? exportRes.data.file_url || exportRes.file_url : '';
|
||||||
)
|
const fileName = fileUrl ? fileUrl.split('/').pop() : `experts_${this.form.keyword}_p${this.page}.xlsx`;
|
||||||
: [];
|
this.exportFiles = [
|
||||||
} else {
|
{
|
||||||
this.tableData = [];
|
url: fileUrl,
|
||||||
this.columns = [];
|
name: fileName,
|
||||||
this.total = 0;
|
count: searchRes.data.experts ? searchRes.data.experts.length : 0
|
||||||
if (res && res.msg) {
|
}
|
||||||
this.$message.error(res.msg);
|
];
|
||||||
} else {
|
this.hasSearched = true;
|
||||||
this.$message.error('No expert found, please try again');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
} catch (error) {
|
||||||
.catch(() => {
|
this.$message.error('Execution failed');
|
||||||
this.tableData = [];
|
console.error(error);
|
||||||
this.columns = [];
|
} finally {
|
||||||
this.total = 0;
|
|
||||||
this.$message.error('Request error, please try again');
|
|
||||||
})
|
|
||||||
.finally(() => {
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
|
||||||
},
|
|
||||||
handleSearch() {
|
|
||||||
this.$refs.searchForm.validate((valid) => {
|
|
||||||
if (!valid) {
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
this.page = 1;
|
|
||||||
this.doSearch();
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async handleExport() {
|
changePage(step) {
|
||||||
if (!this.form.keyword) {
|
this.page += step;
|
||||||
this.$message.warning('Please input keyword first');
|
this.handleExecute();
|
||||||
return;
|
}
|
||||||
}
|
}
|
||||||
this.exportLoading = true;
|
|
||||||
try {
|
|
||||||
const res = await this.$api.post('/api/expert_finder/export', {
|
|
||||||
keyword: this.form.keyword,
|
|
||||||
page: this.page,
|
|
||||||
per_page: this.per_page,
|
|
||||||
});
|
|
||||||
|
|
||||||
if (res && (res.code === 0 || res.status === 1)) {
|
|
||||||
const url =
|
|
||||||
(res.data && (res.data.url || res.data.link)) ||
|
|
||||||
res.url ||
|
|
||||||
(typeof res.data === 'string' ? res.data : '');
|
|
||||||
|
|
||||||
if (!url) {
|
|
||||||
this.$message.error('No download url returned from server');
|
|
||||||
} else {
|
|
||||||
const link = document.createElement('a');
|
|
||||||
link.href = url;
|
|
||||||
const parts = url.split('/');
|
|
||||||
link.download = parts[parts.length - 1] || `scholar_${this.form.keyword}.xlsx`;
|
|
||||||
link.target = '_blank';
|
|
||||||
document.body.appendChild(link);
|
|
||||||
link.click();
|
|
||||||
document.body.removeChild(link);
|
|
||||||
this.$message.success('Export success');
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.$message.error((res && res.msg) || 'Export failed, please try again');
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
this.$message.error('Request error, please try again');
|
|
||||||
} finally {
|
|
||||||
this.exportLoading = false;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
formatColumnLabel(key) {
|
|
||||||
if (!key) return '';
|
|
||||||
return key
|
|
||||||
.split('_')
|
|
||||||
.map((word) => (word ? word.charAt(0).toUpperCase() + word.slice(1) : ''))
|
|
||||||
.join(' ');
|
|
||||||
},
|
|
||||||
getColumnWidth(key) {
|
|
||||||
if (!key) return 140;
|
|
||||||
const lower = key.toLowerCase();
|
|
||||||
if (lower === 'name' || lower === 'realname') {
|
|
||||||
return 180;
|
|
||||||
}
|
|
||||||
if (lower === 'affiliation' || lower === 'organization' || lower === 'institution') {
|
|
||||||
return 420;
|
|
||||||
}
|
|
||||||
if (lower === 'email') {
|
|
||||||
return 300;
|
|
||||||
}
|
|
||||||
return 140;
|
|
||||||
},
|
|
||||||
getColumnFixedWidth(key) {
|
|
||||||
if (!key) return null;
|
|
||||||
const lower = key.toLowerCase();
|
|
||||||
if (lower === 'name' || lower === 'realname') {
|
|
||||||
return 180;
|
|
||||||
}
|
|
||||||
if (lower === 'email') {
|
|
||||||
return 300;
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
},
|
|
||||||
showPapers(row) {
|
|
||||||
const papers = Array.isArray(row.papers) ? row.papers : [];
|
|
||||||
if (!papers.length) {
|
|
||||||
this.$message.info('No papers found');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.currentExpert = row;
|
|
||||||
this.currentPapers = papers;
|
|
||||||
this.papersDialogVisible = true;
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.container {
|
/* 全局基础:背景色与字体 */
|
||||||
padding: 20px;
|
.scholar-container {
|
||||||
|
display: flex;
|
||||||
|
/* background-color: #E6E6E6; */
|
||||||
|
|
||||||
|
padding: 20px 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
/* font-family: "Georgia", "Times New Roman", serif; */
|
||||||
|
color: #1a1a1a;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-card {
|
/* --- 左侧边栏 --- */
|
||||||
margin-bottom: 10px;
|
.sidebar {
|
||||||
|
width: 420px;
|
||||||
|
margin-right: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-form {
|
/* 参数卡片:去掉 Element 默认圆角和阴影 */
|
||||||
width: 100%;
|
.params-card {
|
||||||
|
border: 2px solid #000 !important;
|
||||||
|
border-radius: 0 !important;
|
||||||
|
background: #fff;
|
||||||
|
/* 核心:右下角的硬阴影效果 */
|
||||||
|
box-shadow: 6px 6px 0px 0px rgba(0, 0, 0, 0.8) !important;
|
||||||
|
margin-bottom: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-bar {
|
/* 卡片头部标题 */
|
||||||
|
.card-header {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 500;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
padding: 5px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-input-item {
|
.card-header i {
|
||||||
flex: 1;
|
margin-right: 8px;
|
||||||
margin-bottom: 0;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-input-item .el-form-item__content {
|
/* 表单元素重置 */
|
||||||
width: 100%;
|
/deep/ .el-form-item__label {
|
||||||
|
font-family: 'Arial', sans-serif; /* 标签用无衬线体形成对比 */
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 800;
|
||||||
|
color: #333;
|
||||||
|
padding: 0 !important;
|
||||||
|
line-height: 20px !important;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-input-item .el-input {
|
/deep/ .el-input__inner {
|
||||||
width: 100%;
|
border-radius: 0 !important;
|
||||||
|
border: 1.5px solid #000 !important;
|
||||||
|
height: 40px;
|
||||||
|
font-family: 'Georgia', serif;
|
||||||
|
background-color: #fcfcfc;
|
||||||
|
/* 内部微阴影感 */
|
||||||
|
box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-actions {
|
.form-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
gap: 15px;
|
||||||
gap: 10px;
|
|
||||||
margin-left: 16px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.paper-count-cell {
|
/deep/ .el-input-number {
|
||||||
display: flex;
|
width: 100%;
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.paper-count-number {
|
/* 黑色大按钮 */
|
||||||
font-weight: 700;
|
.fetch-btn {
|
||||||
|
width: 100%;
|
||||||
|
height: 55px;
|
||||||
|
background-color: #000 !important;
|
||||||
|
border: none !important;
|
||||||
|
border-radius: 0 !important;
|
||||||
|
color: #fff !important;
|
||||||
|
font-weight: 900;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #006699;
|
letter-spacing: 1.5px;
|
||||||
|
margin-top: 10px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
transition: all 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table .cell {
|
.fetch-btn:hover {
|
||||||
white-space: normal;
|
background-color: #333 !important;
|
||||||
word-break: break-word;
|
transform: translate(-1px, -1px);
|
||||||
|
box-shadow: 2px 2px 0 #888;
|
||||||
}
|
}
|
||||||
|
|
||||||
.paper-expert-info {
|
.fetch-btn i {
|
||||||
margin-bottom: 15px;
|
font-size: 20px;
|
||||||
padding: 10px 12px;
|
margin-right: 10px;
|
||||||
background-color: #f5f7fa;
|
}
|
||||||
border-radius: 4px;
|
|
||||||
font-size: 13px;
|
/* 信息框:黑底白字 */
|
||||||
|
.info-box {
|
||||||
|
background-color: #151515;
|
||||||
|
color: #d0d0d0;
|
||||||
|
padding: 25px;
|
||||||
|
border-radius: 0;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.paper-expert-info > div + div {
|
.info-box h4 {
|
||||||
margin-top: 4px;
|
color: #fff;
|
||||||
}
|
font-family: 'Arial', sans-serif;
|
||||||
|
|
||||||
.total-bar {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
color: #666;
|
letter-spacing: 2px;
|
||||||
text-align: right;
|
margin: 0 0 15px 0;
|
||||||
|
border-bottom: 1px solid #444;
|
||||||
|
padding-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.total-number {
|
.info-box p {
|
||||||
font-weight: 600;
|
font-style: italic;
|
||||||
color: #006699;
|
font-size: 13px;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination {
|
.main-content-center {
|
||||||
margin-top: 16px;
|
width: 100%;
|
||||||
text-align: right;
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.empty-state {
|
||||||
|
text-align: center;
|
||||||
|
max-width: 450px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 数据库图标 */
|
||||||
|
.state-icon {
|
||||||
|
font-size: 80px;
|
||||||
|
color: #bcbcbc;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.empty-state h3 {
|
||||||
|
font-size: 24px;
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #444;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.empty-state p {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #888;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 加载动画状态 */
|
||||||
|
.processing-state {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.spinner-box {
|
||||||
|
font-size: 50px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
animation: rotating 2s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes rotating {
|
||||||
|
from {
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.processing-state h3 {
|
||||||
|
letter-spacing: 4px;
|
||||||
|
font-weight: 900;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
/* 右侧容器改为顶部对齐 */
|
||||||
|
.main-content {
|
||||||
|
flex: 1;
|
||||||
|
border: 2px dashed #bbb;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: flex-start; /* 确保列表从顶部开始 */
|
||||||
|
/* padding: 20px; */
|
||||||
|
background-color: rgba(255, 255, 255, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.results-container {
|
||||||
|
width: 100%;
|
||||||
|
/* 模拟图二的实体阴影 */
|
||||||
|
box-shadow: 8px 8px 0px 0px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 统计栏样式 */
|
||||||
|
.results-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding: 15px 20px;
|
||||||
|
background: #fff;
|
||||||
|
border: 2px solid #000;
|
||||||
|
border-bottom: none; /* 与下方表格衔接 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.results-stats {
|
||||||
|
font-family: 'Arial', sans-serif;
|
||||||
|
font-weight: 800;
|
||||||
|
font-size: 14px;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
/* text-transform: uppercase; */
|
||||||
|
}
|
||||||
|
|
||||||
|
.results-stats strong {
|
||||||
|
font-size: 18px;
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.divider {
|
||||||
|
margin: 0 15px;
|
||||||
|
color: #ccc;
|
||||||
|
font-weight: 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-info {
|
||||||
|
color: #999;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 导航按钮 */
|
||||||
|
.nav-btn {
|
||||||
|
border: 1.5px solid #000 !important;
|
||||||
|
border-radius: 0 !important;
|
||||||
|
background: #fff !important;
|
||||||
|
color: #000 !important;
|
||||||
|
padding: 5px 10px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-btn:hover {
|
||||||
|
background: #000 !important;
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 表格主体还原 */
|
||||||
|
/deep/ .custom-table {
|
||||||
|
border: 2px solid #000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/deep/ .dark-table-header th {
|
||||||
|
background-color: #000 !important;
|
||||||
|
color: #fff !important;
|
||||||
|
/* font-family: "Arial", sans-serif; */
|
||||||
|
font-weight: 900;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
padding: 12px 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/deep/ .el-table__row td {
|
||||||
|
padding: 15px 0 !important;
|
||||||
|
color: #333;
|
||||||
|
/* font-family: "Georgia", serif; */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 链接样式 */
|
||||||
|
.file-link {
|
||||||
|
font-size: 13px;
|
||||||
|
text-decoration: none !important;
|
||||||
|
color: #0066cc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.file-link:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.download-icon {
|
||||||
|
margin-left: 6px;
|
||||||
|
vertical-align: middle;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-reset-btn {
|
||||||
|
flex: 1;
|
||||||
|
background-color: #fff;
|
||||||
|
border: 2px solid #000;
|
||||||
|
color: #000;
|
||||||
|
font-weight: 800;
|
||||||
|
font-family: 'Arial', sans-serif;
|
||||||
|
font-size: 14px;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
transition: all 0.1s;
|
||||||
|
outline: none;
|
||||||
|
margin-top: 10px
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-reset-btn i {
|
||||||
|
margin-right: 4px;
|
||||||
|
font-weight: 800;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 悬浮和点击效果:增加黑白对比度 */
|
||||||
|
.custom-reset-btn:hover {
|
||||||
|
background-color: #f0f0f0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-reset-btn:active {
|
||||||
|
transform: translate(1px, 1px);
|
||||||
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ const en = {
|
|||||||
mailbox3: 'Mailbox template',
|
mailbox3: 'Mailbox template',
|
||||||
tools: 'Assistant tools',
|
tools: 'Assistant tools',
|
||||||
mailboxManagement: 'Mailbox Management',
|
mailboxManagement: 'Mailbox Management',
|
||||||
scholarCrawlers: 'Scholar Crawlers',
|
scholarCrawlers: 'Scholar Database',
|
||||||
ReArticles: 'Rejected Manuscripts', // 被拒稿件
|
ReArticles: 'Rejected Manuscripts', // 被拒稿件
|
||||||
editorialBoard: 'Boss System',
|
editorialBoard: 'Boss System',
|
||||||
editorialBoard1: 'Board Management',
|
editorialBoard1: 'Board Management',
|
||||||
|
|||||||
@@ -255,7 +255,7 @@ const zh = {
|
|||||||
mailbox3: '模板管理',
|
mailbox3: '模板管理',
|
||||||
tools: '辅助工具',
|
tools: '辅助工具',
|
||||||
mailboxManagement: '邮箱管理',
|
mailboxManagement: '邮箱管理',
|
||||||
scholarCrawlers: '学者抓取',
|
scholarCrawlers: '学者数据库',
|
||||||
ReArticles: '被拒稿件', // 被拒稿件
|
ReArticles: '被拒稿件', // 被拒稿件
|
||||||
editorialBoard: '编委管理',
|
editorialBoard: '编委管理',
|
||||||
editorialBoard1: '编委列表',
|
editorialBoard1: '编委列表',
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="tinymce-container">
|
<div class="tinymce-container">
|
||||||
|
|
||||||
<i class="el-icon-copy-document" @click="handleCopy" v-if="displayValue&&readonly" style="margin-top: -30px;float: right;margin-bottom: 10px;cursor: pointer;"></i>
|
<i
|
||||||
|
class="el-icon-copy-document"
|
||||||
|
v-if="displayValue && readonly && isArticleDetailEditor"
|
||||||
|
@click="handleCopy"
|
||||||
|
style="margin-top: -30px; float: right; margin-bottom: 10px; cursor: pointer;"
|
||||||
|
></i>
|
||||||
<div style="clear: both;"></div>
|
<div style="clear: both;"></div>
|
||||||
<div v-if="readonly" v-html="displayValue" class="readonly-content">
|
<div v-if="readonly" v-html="displayValue" class="readonly-content">
|
||||||
|
|
||||||
@@ -56,6 +61,13 @@
|
|||||||
oldValue: null
|
oldValue: null
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
// 只在 articleDetailEditor 路由下显示复制图标
|
||||||
|
isArticleDetailEditor() {
|
||||||
|
console.log(this.$route);
|
||||||
|
return this.$route && this.$route.path === '/articleDetailEditor';
|
||||||
|
}
|
||||||
|
},
|
||||||
watch: {
|
watch: {
|
||||||
value: {
|
value: {
|
||||||
handler(newVal) {
|
handler(newVal) {
|
||||||
|
|||||||
@@ -1,524 +1,434 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="scholar-container">
|
<div class="scholar-db-container">
|
||||||
<div class="sidebar">
|
<div class="crumbs">
|
||||||
<el-card class="params-card" shadow="never">
|
<el-breadcrumb separator="/">
|
||||||
<div slot="header" class="card-header" style="font-weight: bold;"><i class="el-icon-search"></i> Scholar Search</div>
|
<el-breadcrumb-item> <i class="el-icon-user"></i> Scholar Database </el-breadcrumb-item>
|
||||||
|
</el-breadcrumb>
|
||||||
<el-form :model="form" ref="searchForm" :rules="rules" label-position="top">
|
</div>
|
||||||
<el-form-item label="Keyword" prop="keyword">
|
<div class="toolbar">
|
||||||
<el-input v-model="form.keyword" placeholder="e.g. cancer" clearable></el-input>
|
<div class="filters">
|
||||||
|
<el-form :inline="true" :model="query" size="small">
|
||||||
|
<el-form-item label="">
|
||||||
|
<el-cascader
|
||||||
|
ref="cascader"
|
||||||
|
@change="handleChange(index)"
|
||||||
|
v-model="major_id"
|
||||||
|
:placeholder="'Please select field'"
|
||||||
|
:options="options"
|
||||||
|
:props="getProps()"
|
||||||
|
style="width: 260px"
|
||||||
|
></el-cascader>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="">
|
||||||
|
<el-input v-model="query.keyword" placeholder="Name / Email / Affiliation" clearable style="width: 260px" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<div class="form-row">
|
<el-form-item>
|
||||||
<el-form-item label="Per Page (Articles)" class="half-width">
|
<el-button type="primary" icon="el-icon-search" :loading="loading" @click="handleSearch"> Search </el-button>
|
||||||
<el-input-number v-model="per_page" :controls="false" :min="1" :max="100"></el-input-number>
|
<el-button @click="handleReset">Reset</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="Page Number" class="half-width">
|
|
||||||
<el-input-number v-model="page" :controls="false" :min="1" :max="maxPages"></el-input-number>
|
|
||||||
</el-form-item>
|
|
||||||
</div>
|
|
||||||
<div style="display: flex; gap: 10px; margin-top: 15px;">
|
|
||||||
<el-button type="primary" class="fetch-btn" style="flex: 3;" :loading="loading" @click="handleExecute">
|
|
||||||
<i v-if="!loading" class="el-icon-coin"></i>
|
|
||||||
{{ loading ? 'Fetching...' : 'Execute Fetch' }}
|
|
||||||
</el-button>
|
|
||||||
|
|
||||||
<el-button @click="resetForm" class="custom-reset-btn">
|
|
||||||
<i class="el-icon-refresh-left"></i> Reset
|
|
||||||
</el-button>
|
|
||||||
</div>
|
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</div>
|
||||||
|
<div class="actions">
|
||||||
<div class="info-box">
|
<el-button type="success" icon="el-icon-download" @click="handleExport" :loading="exportLoading">
|
||||||
<h4>INFORMATION</h4>
|
Download Excel
|
||||||
|
</el-button>
|
||||||
<p>
|
|
||||||
"This tool allows for systematic extraction of scholar data from academic publications. Note that per_page refers to the
|
|
||||||
number of articles scanned, which may yield multiple scholar records."
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="main-content" :style="{border:hasSearched && !loading ? 'none' : '2px solid #e2e2e2'}">
|
<el-card class="table-card" shadow="never">
|
||||||
<div v-if="!hasSearched && !loading" class="main-content-center">
|
<div class="source-tag">Data sourced from PubMed</div>
|
||||||
<div class="empty-state">
|
<el-table :data="list" border stripe v-loading="loading" header-row-class-name="dark-table-header">
|
||||||
<div class="state-icon"><i class="el-icon-user"></i></div>
|
<el-table-column prop="name" label="Base Information" min-width="220">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div>
|
||||||
|
<p class="info-row">
|
||||||
|
<span class="label">Name: </span><span class="value bold">{{ scope.row.name }}</span>
|
||||||
|
</p>
|
||||||
|
<p class="info-row">
|
||||||
|
<span class="label">Email: </span><span class="value link">{{ scope.row.email }}</span>
|
||||||
|
</p>
|
||||||
|
<p class="info-row" style="margin-top: 10px; font-size: 12px">
|
||||||
|
<span class="label">Acquisition Time:</span>
|
||||||
|
<span class="value time">{{ scope.row.ctime_text ? scope.row.ctime_text : '-' }}</span>
|
||||||
|
</p>
|
||||||
|
|
||||||
<h3>Scholar Search</h3>
|
<span class="custom-tag">{{ scope.row.state_text }}</span>
|
||||||
|
</div>
|
||||||
|
</template></el-table-column
|
||||||
|
>
|
||||||
|
|
||||||
<p>
|
<el-table-column prop="affiliation" label="Affiliation" min-width="260" />
|
||||||
Enter a research keyword and specify the search depth to retrieve expert profiles from professional academic
|
<el-table-column prop="fieldDisplay" label="Research areas" min-width="200">
|
||||||
databases.
|
<template slot-scope="scope">
|
||||||
</p>
|
<div v-for="(field, index) in scope.row.fields" :key="index">
|
||||||
</div>
|
<span
|
||||||
|
><span style="color: #006699">{{ index + 1 }}.</span> {{ field.field }}</span
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<div class="pagination">
|
||||||
|
<el-pagination
|
||||||
|
background
|
||||||
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
|
:current-page="query.pageIndex"
|
||||||
|
:page-size="query.pageSize"
|
||||||
|
:page-sizes="[10, 20, 50]"
|
||||||
|
:total="total"
|
||||||
|
@size-change="handleSizeChange"
|
||||||
|
@current-change="handlePageChange"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</el-card>
|
||||||
<div v-if="loading" class="main-content-center">
|
|
||||||
<div class="processing-state">
|
|
||||||
<div class="spinner-box"><i class="el-icon-loading"></i></div>
|
|
||||||
|
|
||||||
<h3>PROCESSING REQUEST</h3>
|
|
||||||
|
|
||||||
<p>Connecting to api.tmrjournals.com...</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div v-if="hasSearched && !loading" class="results-container">
|
|
||||||
<div class="results-header">
|
|
||||||
<div class="results-stats">
|
|
||||||
<i class="el-icon-user"></i> RESULTS FOUND: <strong>{{ total }}</strong>
|
|
||||||
<span class="divider">|</span>
|
|
||||||
<span class="page-info">PAGE {{ page }} OF APPROX. {{ maxPages }}</span>
|
|
||||||
<template v-if="Source">
|
|
||||||
<span class="divider">|</span>
|
|
||||||
<span class="page-info">Source {{ Source }}</span>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="results-nav">
|
|
||||||
<el-button
|
|
||||||
class="nav-btn"
|
|
||||||
size="mini"
|
|
||||||
icon="el-icon-arrow-left"
|
|
||||||
:disabled="page <= 1"
|
|
||||||
@click="changePage(-1)"
|
|
||||||
></el-button>
|
|
||||||
|
|
||||||
<el-button
|
|
||||||
class="nav-btn"
|
|
||||||
size="mini"
|
|
||||||
icon="el-icon-arrow-right"
|
|
||||||
:disabled="page >= maxPages"
|
|
||||||
@click="changePage(1)"
|
|
||||||
></el-button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<el-table :data="exportFiles" class="custom-table" border stripe header-row-class-name="dark-table-header">
|
|
||||||
<el-table-column prop="name" label="File name" min-width="200"></el-table-column>
|
|
||||||
<el-table-column prop="url" label="File url" min-width="250">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-link class="file-link" :href="mediaUrl+scope.row.url" target="_blank">
|
|
||||||
{{ scope.row.url }}
|
|
||||||
<i class="el-icon-download download-icon"></i>
|
|
||||||
</el-link>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="count" label="Count" width="120" align="center"></el-table-column>
|
|
||||||
</el-table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Common from '@/components/common/common'
|
import Common from '@/components/common/common';
|
||||||
export default {
|
export default {
|
||||||
name: 'scholarCrawlers',
|
name: 'scholarCrawlers',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
mediaUrl: Common.mediaUrl,
|
mediaUrl: Common.mediaUrl,
|
||||||
form: { keyword: '' },
|
major_id: [],
|
||||||
rules: {
|
majors: [],
|
||||||
keyword: [{ required: true, message: 'Required', trigger: 'blur' }]
|
query: {
|
||||||
|
major_id: null,
|
||||||
|
keyword: '',
|
||||||
|
|
||||||
|
pageIndex: 1,
|
||||||
|
pageSize: 10
|
||||||
},
|
},
|
||||||
loading: false,
|
list: [],
|
||||||
exportLoading: false,
|
|
||||||
hasSearched: false,
|
|
||||||
page: 1,
|
|
||||||
per_page: 20,
|
|
||||||
maxPages: 100, // 初始上限
|
|
||||||
total: 0,
|
total: 0,
|
||||||
Source: '',
|
loading: false,
|
||||||
exportFiles: [] // 模拟图二的文件列表数据
|
exportLoading: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
this.loadFields();
|
||||||
|
this.fetchList();
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
resetForm() {
|
loadFields() {
|
||||||
this.form = { keyword: '' };
|
this.$api.post('api/Major/getMajorList', {}).then((res) => {
|
||||||
this.page = 1;
|
const transformData = (data) => {
|
||||||
this.per_page=20;
|
return data.map((item) => {
|
||||||
this.$refs.searchForm.resetFields();
|
const transformedItem = {
|
||||||
},
|
...item,
|
||||||
async handleExecute() {
|
value: item.major_id,
|
||||||
this.$refs.searchForm.validate(async (valid) => {
|
label: `${item.major_title}`
|
||||||
if (!valid) return;
|
};
|
||||||
this.loading = true;
|
|
||||||
this.hasSearched = false;
|
|
||||||
|
|
||||||
try {
|
// 如果存在 children,递归处理
|
||||||
// 1. 调用 Search 接口获取页数上限
|
if (item.children && item.children.length > 0) {
|
||||||
const searchRes = await this.$api.post('/api/expert_finder/search', {
|
transformedItem.children = transformData(item.children);
|
||||||
keyword: this.form.keyword,
|
|
||||||
page: this.page,
|
|
||||||
per_page: this.per_page
|
|
||||||
});
|
|
||||||
|
|
||||||
if (searchRes && searchRes.code === 0) {
|
|
||||||
this.total = searchRes.data.total || 0;
|
|
||||||
this.maxPages = searchRes.data.total_pages || 1; // 2. 模拟处理延迟(配合图一动画)
|
|
||||||
this.Source = searchRes.data.source || '';
|
|
||||||
await new Promise((resolve) => setTimeout(resolve, 1500)); // 3. 调用 Export 接口生成文件
|
|
||||||
|
|
||||||
const exportRes = await this.$api.post('/api/expert_finder/export', {
|
|
||||||
keyword: this.form.keyword,
|
|
||||||
page: this.page,
|
|
||||||
per_page: this.per_page
|
|
||||||
});
|
|
||||||
|
|
||||||
if (exportRes && (exportRes.code === 0 || exportRes.status === 1)) {
|
|
||||||
// 构造图二展示的数据格式
|
|
||||||
const fileUrl = exportRes.data ? exportRes.data.file_url || exportRes.file_url : '';
|
|
||||||
const fileName = fileUrl ? fileUrl.split('/').pop() : `experts_${this.form.keyword}_p${this.page}.xlsx`;
|
|
||||||
this.exportFiles = [
|
|
||||||
{
|
|
||||||
url: fileUrl,
|
|
||||||
name: fileName,
|
|
||||||
count: searchRes.data.experts ? searchRes.data.experts.length : 0
|
|
||||||
}
|
|
||||||
];
|
|
||||||
this.hasSearched = true;
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} catch (error) {
|
return transformedItem;
|
||||||
this.$message.error('Execution failed');
|
});
|
||||||
console.error(error);
|
};
|
||||||
} finally {
|
|
||||||
this.loading = false;
|
// 执行递归,获取选项数据
|
||||||
}
|
const data = transformData(res.data.majors.find((item) => item.major_id == 1).children);
|
||||||
|
this.options = [...data]; // 将选项数据赋给 options
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
changePage(step) {
|
handleChange(i) {
|
||||||
this.page += step;
|
|
||||||
this.handleExecute();
|
this.$nextTick(() => {
|
||||||
|
this.$refs[`cascader`].dropDownVisible = false;
|
||||||
|
this.query.major_id = this.major_id[this.major_id.length - 1];
|
||||||
|
this.query.pageIndex = 1;
|
||||||
|
this.fetchList();
|
||||||
|
|
||||||
|
this.$forceUpdate();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getProps() {
|
||||||
|
return {
|
||||||
|
value: 'value',
|
||||||
|
label: 'label',
|
||||||
|
children: 'children',
|
||||||
|
checkStrictly: true, // 允许任意选择一级
|
||||||
|
expandTrigger: 'hover' // 使用 hover 触发展开
|
||||||
|
};
|
||||||
|
},
|
||||||
|
async fetchMajors() {
|
||||||
|
try {
|
||||||
|
const res = await this.$api.post('api/Ucenter/getMajor', { major_id: 1 });
|
||||||
|
if (res && res.code === 0 && res.data && res.data.major) {
|
||||||
|
this.majors = res.data.major.children || [];
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
// ignore
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async fetchList() {
|
||||||
|
this.loading = true;
|
||||||
|
try {
|
||||||
|
const params = {
|
||||||
|
major_id: this.query.major_id,
|
||||||
|
keyword: this.query.keyword,
|
||||||
|
|
||||||
|
pageIndex: this.query.pageIndex,
|
||||||
|
pageSize: this.query.pageSize
|
||||||
|
};
|
||||||
|
const res = await this.$api.post('api/expert_manage/getList', params);
|
||||||
|
if (res && res.code === 0 && res.data) {
|
||||||
|
const rawList = res.data.list || [];
|
||||||
|
// 后端已提供单个 field 字段,直接用于列表展示
|
||||||
|
|
||||||
|
this.list = rawList.map((item) => {
|
||||||
|
// 1. 获取后端返回的原始 field 数组(看截图应该是 item.field)
|
||||||
|
const fieldArray = item.fields || [];
|
||||||
|
|
||||||
|
// 2. 提取出数组中每个对象里的 'field' 属性字符串
|
||||||
|
// 如果只需要展示文本,可以用 join 连起来
|
||||||
|
const fieldNames = fieldArray.map((f) => f.field).join(', ');
|
||||||
|
|
||||||
|
return {
|
||||||
|
...item,
|
||||||
|
fieldDisplay: fieldNames
|
||||||
|
};
|
||||||
|
});
|
||||||
|
this.total = res.data.total || 0;
|
||||||
|
} else {
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
} finally {
|
||||||
|
this.loading = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleSearch() {
|
||||||
|
this.query.pageIndex = 1;
|
||||||
|
this.fetchList();
|
||||||
|
},
|
||||||
|
handleReset() {
|
||||||
|
this.major_id = [];
|
||||||
|
this.query = {
|
||||||
|
major_id: null,
|
||||||
|
keyword: '',
|
||||||
|
|
||||||
|
pageIndex: 1,
|
||||||
|
pageSize: 10
|
||||||
|
};
|
||||||
|
this.fetchList();
|
||||||
|
},
|
||||||
|
handleSizeChange(size) {
|
||||||
|
this.query.pageSize = size;
|
||||||
|
this.query.pageIndex = 1;
|
||||||
|
this.fetchList();
|
||||||
|
},
|
||||||
|
handlePageChange(page) {
|
||||||
|
this.query.pageIndex = page;
|
||||||
|
this.fetchList();
|
||||||
|
},
|
||||||
|
async handleExport() {
|
||||||
|
// 导出前必须至少选择领域或填写关键字
|
||||||
|
if (!this.query.major_id && !this.query.keyword) {
|
||||||
|
this.$message.warning('Please select a research area or enter a keyword before exporting.');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.exportLoading = true;
|
||||||
|
try {
|
||||||
|
const params = {
|
||||||
|
major_id: this.query.major_id,
|
||||||
|
keyword: this.query.keyword
|
||||||
|
};
|
||||||
|
const res = await this.$api.post('api/expert_manage/exportExcel', params);
|
||||||
|
if (res && res.code === 0 && res.data && res.data.file_url) {
|
||||||
|
window.open(this.mediaUrl + res.data.file_url, '_blank');
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.msg || 'Export failed');
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.$message.error(e.msg || 'Export failed');
|
||||||
|
} finally {
|
||||||
|
this.exportLoading = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
/* 全局基础:背景色与字体 */
|
.scholar-db-container {
|
||||||
.scholar-container {
|
padding: 0 10px;
|
||||||
display: flex;
|
|
||||||
/* background-color: #E6E6E6; */
|
|
||||||
|
|
||||||
padding: 20px 0;
|
|
||||||
box-sizing: border-box;
|
|
||||||
/* font-family: "Georgia", "Times New Roman", serif; */
|
|
||||||
color: #1a1a1a;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- 左侧边栏 --- */
|
.toolbar {
|
||||||
.sidebar {
|
|
||||||
width: 420px;
|
|
||||||
margin-right: 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 参数卡片:去掉 Element 默认圆角和阴影 */
|
|
||||||
.params-card {
|
|
||||||
border: 2px solid #000 !important;
|
|
||||||
border-radius: 0 !important;
|
|
||||||
background: #fff;
|
|
||||||
/* 核心:右下角的硬阴影效果 */
|
|
||||||
box-shadow: 6px 6px 0px 0px rgba(0, 0, 0, 0.8) !important;
|
|
||||||
margin-bottom: 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 卡片头部标题 */
|
|
||||||
.card-header {
|
|
||||||
font-size: 1.2rem;
|
|
||||||
font-style: italic;
|
|
||||||
font-weight: 500;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 5px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card-header i {
|
|
||||||
margin-right: 8px;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 表单元素重置 */
|
|
||||||
/deep/ .el-form-item__label {
|
|
||||||
font-family: 'Arial', sans-serif; /* 标签用无衬线体形成对比 */
|
|
||||||
font-size: 12px;
|
|
||||||
font-weight: 800;
|
|
||||||
color: #333;
|
|
||||||
padding: 0 !important;
|
|
||||||
line-height: 20px !important;
|
|
||||||
letter-spacing: 0.5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/deep/ .el-input__inner {
|
|
||||||
border-radius: 0 !important;
|
|
||||||
border: 1.5px solid #000 !important;
|
|
||||||
height: 40px;
|
|
||||||
font-family: 'Georgia', serif;
|
|
||||||
background-color: #fcfcfc;
|
|
||||||
/* 内部微阴影感 */
|
|
||||||
box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-row {
|
|
||||||
display: flex;
|
|
||||||
gap: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/deep/ .el-input-number {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 黑色大按钮 */
|
|
||||||
.fetch-btn {
|
|
||||||
width: 100%;
|
|
||||||
height: 55px;
|
|
||||||
background-color: #000 !important;
|
|
||||||
border: none !important;
|
|
||||||
border-radius: 0 !important;
|
|
||||||
color: #fff !important;
|
|
||||||
font-weight: 900;
|
|
||||||
font-size: 16px;
|
|
||||||
letter-spacing: 1.5px;
|
|
||||||
margin-top: 10px;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
transition: all 0.2s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fetch-btn:hover {
|
|
||||||
background-color: #333 !important;
|
|
||||||
transform: translate(-1px, -1px);
|
|
||||||
box-shadow: 2px 2px 0 #888;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fetch-btn i {
|
|
||||||
font-size: 20px;
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 信息框:黑底白字 */
|
|
||||||
.info-box {
|
|
||||||
background-color: #151515;
|
|
||||||
color: #d0d0d0;
|
|
||||||
padding: 25px;
|
|
||||||
border-radius: 0;
|
|
||||||
line-height: 1.6;
|
|
||||||
}
|
|
||||||
|
|
||||||
.info-box h4 {
|
|
||||||
color: #fff;
|
|
||||||
font-family: 'Arial', sans-serif;
|
|
||||||
font-size: 13px;
|
|
||||||
letter-spacing: 2px;
|
|
||||||
margin: 0 0 15px 0;
|
|
||||||
border-bottom: 1px solid #444;
|
|
||||||
padding-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.info-box p {
|
|
||||||
font-style: italic;
|
|
||||||
font-size: 13px;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.main-content-center {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.empty-state {
|
|
||||||
text-align: center;
|
|
||||||
max-width: 450px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 数据库图标 */
|
|
||||||
.state-icon {
|
|
||||||
font-size: 80px;
|
|
||||||
color: #bcbcbc;
|
|
||||||
margin-bottom: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.empty-state h3 {
|
|
||||||
font-size: 24px;
|
|
||||||
font-style: italic;
|
|
||||||
font-weight: 400;
|
|
||||||
color: #444;
|
|
||||||
margin-bottom: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.empty-state p {
|
|
||||||
font-size: 14px;
|
|
||||||
color: #888;
|
|
||||||
line-height: 1.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 加载动画状态 */
|
|
||||||
.processing-state {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.spinner-box {
|
|
||||||
font-size: 50px;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
animation: rotating 2s linear infinite;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes rotating {
|
|
||||||
from {
|
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
transform: rotate(360deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.processing-state h3 {
|
|
||||||
letter-spacing: 4px;
|
|
||||||
font-weight: 900;
|
|
||||||
color: #000;
|
|
||||||
}
|
|
||||||
/* 右侧容器改为顶部对齐 */
|
|
||||||
.main-content {
|
|
||||||
flex: 1;
|
|
||||||
border: 2px dashed #bbb;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: flex-start; /* 确保列表从顶部开始 */
|
|
||||||
/* padding: 20px; */
|
|
||||||
background-color: rgba(255, 255, 255, 0.3);
|
|
||||||
}
|
|
||||||
|
|
||||||
.results-container {
|
|
||||||
width: 100%;
|
|
||||||
/* 模拟图二的实体阴影 */
|
|
||||||
box-shadow: 8px 8px 0px 0px rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 统计栏样式 */
|
|
||||||
.results-header {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
margin-bottom: 15px;
|
||||||
padding: 15px 20px;
|
margin-top: 15px;
|
||||||
background: #fff;
|
|
||||||
border: 2px solid #000;
|
|
||||||
border-bottom: none; /* 与下方表格衔接 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.results-stats {
|
.title {
|
||||||
font-family: 'Arial', sans-serif;
|
|
||||||
font-weight: 800;
|
|
||||||
font-size: 14px;
|
|
||||||
letter-spacing: 0.5px;
|
|
||||||
/* text-transform: uppercase; */
|
|
||||||
}
|
|
||||||
|
|
||||||
.results-stats strong {
|
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
margin-left: 5px;
|
font-weight: 600;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.divider {
|
.title i {
|
||||||
margin: 0 15px;
|
margin-right: 8px;
|
||||||
color: #ccc;
|
|
||||||
font-weight: 100;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-info {
|
.filters {
|
||||||
color: #999;
|
flex: 1;
|
||||||
font-size: 11px;
|
margin: 0 20px;
|
||||||
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 导航按钮 */
|
.actions {
|
||||||
.nav-btn {
|
white-space: nowrap;
|
||||||
border: 1.5px solid #000 !important;
|
|
||||||
border-radius: 0 !important;
|
|
||||||
background: #fff !important;
|
|
||||||
color: #000 !important;
|
|
||||||
padding: 5px 10px !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-btn:hover {
|
.table-card {
|
||||||
background: #000 !important;
|
margin-top: 10px;
|
||||||
color: #fff !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 表格主体还原 */
|
.pagination {
|
||||||
/deep/ .custom-table {
|
margin-top: 15px;
|
||||||
border: 2px solid #000 !important;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/ .dark-table-header th {
|
/deep/ .dark-table-header th {
|
||||||
background-color: #000 !important;
|
background-color: #f5f7fa;
|
||||||
color: #fff !important;
|
font-weight: 600;
|
||||||
/* font-family: "Arial", sans-serif; */
|
|
||||||
font-weight: 900;
|
|
||||||
letter-spacing: 1px;
|
|
||||||
padding: 12px 0 !important;
|
|
||||||
}
|
}
|
||||||
|
/deep/ .el-form-item--mini.el-form-item,
|
||||||
/deep/ .el-table__row td {
|
.el-form-item--small.el-form-item {
|
||||||
padding: 15px 0 !important;
|
margin-bottom: 0;
|
||||||
color: #333;
|
|
||||||
/* font-family: "Georgia", serif; */
|
|
||||||
}
|
}
|
||||||
|
.custom-tag {
|
||||||
|
/* 基础布局 */
|
||||||
|
display: inline-block;
|
||||||
|
position: absolute;
|
||||||
|
right: 6px;
|
||||||
|
top: 0px;
|
||||||
|
|
||||||
/* 链接样式 */
|
/* 颜色与背景 */
|
||||||
.file-link {
|
|
||||||
font-size: 13px;
|
color: #ce4f15; /* 深灰色文字 */
|
||||||
text-decoration: none !important;
|
|
||||||
color: #0066cc;
|
/* 形状 */
|
||||||
|
/* font-weight: bold; */
|
||||||
|
|
||||||
|
/* 字体 */
|
||||||
|
font-size: 12px;
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||||
}
|
}
|
||||||
|
/* 每一行的布局 */
|
||||||
.file-link:hover {
|
.info-row {
|
||||||
text-decoration: underline;
|
margin-bottom: 4px;
|
||||||
}
|
|
||||||
|
|
||||||
.download-icon {
|
|
||||||
margin-left: 6px;
|
|
||||||
vertical-align: middle;
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
|
||||||
|
|
||||||
.custom-reset-btn {
|
|
||||||
flex: 1;
|
|
||||||
background-color: #fff;
|
|
||||||
border: 2px solid #000;
|
|
||||||
color: #000;
|
|
||||||
font-weight: 800;
|
|
||||||
font-family: 'Arial', sans-serif;
|
|
||||||
font-size: 14px;
|
|
||||||
cursor: pointer;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
line-height: 1.2;
|
||||||
transition: all 0.1s;
|
font-family: Arial, sans-serif;
|
||||||
outline: none;
|
|
||||||
margin-top: 10px
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-reset-btn i {
|
/* 左侧 Label 样式 */
|
||||||
margin-right: 4px;
|
.label {
|
||||||
font-weight: 800;
|
color: #999; /* 浅灰色 */
|
||||||
|
margin-right: 8px;
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 悬浮和点击效果:增加黑白对比度 */
|
/* 右侧 Value 样式 */
|
||||||
.custom-reset-btn:hover {
|
.value {
|
||||||
background-color: #f0f0f0;
|
color: #333;
|
||||||
|
}
|
||||||
|
.value.bold {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
.value.link {
|
||||||
|
color: #0066a1;
|
||||||
|
} /* 邮箱颜色 */
|
||||||
|
.value.time {
|
||||||
|
color: #888;
|
||||||
|
} /* 邮箱颜色 */
|
||||||
|
.value.italic {
|
||||||
|
font-style: italic;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
.blue-text {
|
||||||
|
color: #0066a1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-reset-btn:active {
|
/* H-指数特有颜色 */
|
||||||
transform: translate(1px, 1px);
|
.h-score {
|
||||||
box-shadow: none;
|
font-weight: bold;
|
||||||
|
margin-right: 15px;
|
||||||
|
}
|
||||||
|
.green {
|
||||||
|
color: #28a745;
|
||||||
|
}
|
||||||
|
.red {
|
||||||
|
color: #dc3545;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 星星评分 */
|
||||||
|
.stars {
|
||||||
|
color: #ffb400;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
.stars .half {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 状态标签 (参考你之前的要求) */
|
||||||
|
.status-tag {
|
||||||
|
background-color: #fffbe6; /* 浅黄背景 */
|
||||||
|
color: #d48806; /* 橙黄色文字 */
|
||||||
|
border: 1px solid #ffe58f;
|
||||||
|
padding: 2px 8px;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.source-tag {
|
||||||
|
/* 布局 */
|
||||||
|
float: right;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 6px 16px;
|
||||||
|
margin-top: -10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
|
||||||
|
/* 颜色与背景 */
|
||||||
|
background-color: #f0f7ff; /* 极浅蓝背景 */
|
||||||
|
color: #0077cc; /* 品牌蓝文字 */
|
||||||
|
border: 1px solid #e1f0ff; /* 浅蓝色边框 */
|
||||||
|
|
||||||
|
/* 形状与阴影 */
|
||||||
|
border-radius: 20px;
|
||||||
|
box-shadow: 0 2px 6px rgba(0, 119, 204, 0.1); /* 淡淡的蓝色投影 */
|
||||||
|
|
||||||
|
/* 字体 */
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: bold;
|
||||||
|
|
||||||
|
letter-spacing: 0.5px; /* 字间距增加 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 前置小圆点 */
|
||||||
|
.source-tag::before {
|
||||||
|
content: '';
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
background-color: #0095ff; /* 亮蓝色圆点 */
|
||||||
|
border-radius: 50%;
|
||||||
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1058,7 +1058,7 @@ export default new Router({
|
|||||||
path: '/scholarCrawlers', //学者抓取
|
path: '/scholarCrawlers', //学者抓取
|
||||||
component: () => import('../components/page/scholarCrawlers'),
|
component: () => import('../components/page/scholarCrawlers'),
|
||||||
meta: {
|
meta: {
|
||||||
title: 'Scholar Crawlers'
|
title: 'Scholar Database'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user