# Conflicts:
#	src/api/index.js
This commit is contained in:
wangjinlei
2024-09-05 18:04:25 +08:00
6 changed files with 314 additions and 38 deletions

View File

@@ -21,10 +21,11 @@ const service = axios.create({
// baseURL: 'http://192.168.110.110/tougao/public/index.php/', // baseURL: 'http://192.168.110.110/tougao/public/index.php/',
// baseURL: '/api', //本地 // baseURL: '/api', //本地
baseURL: '/', //正式 baseURL: '/', //正式
}); });
const service_new = axios.create({ const service_new = axios.create({
baseURL: 'http://journal.com/', baseURL: 'http://journal.com/',
// baseURL: '/', // baseURL: '/',
}); });

View File

@@ -199,9 +199,7 @@ export default {
userrole: localStorage.getItem('U_status'), userrole: localStorage.getItem('U_status'),
user_cap: localStorage.getItem('U_role'), user_cap: localStorage.getItem('U_role'),
menuList: [ menuList: [],
],
items: [], items: [],
// 作者 // 作者
author_items: [ author_items: [
@@ -237,7 +235,7 @@ export default {
], ],
// 编辑 // 编辑
editor_items: [ editor_items: [
{ {
icon: 'el-icon-lx-home', icon: 'el-icon-lx-home',
index: 'dashboard', index: 'dashboard',
title: this.$t('menu.main') title: this.$t('menu.main')
@@ -284,6 +282,56 @@ export default {
} }
] ]
}, },
{
icon: 'el-icon-s-help',
index: 'Promotionsystem',
title: this.$t('menu.Promotionsystem'),
subs: [
{
//论文编辑系统
icon: 'el-icon-lx-copy',
index: 'Userdatabase',
title: this.$t('menu.Userdatabase'),
subs: [
{
title: this.$t('menu.userManSys1'),
index: 'userManSys1',
subs: [
{
index: 'partyList',
title: this.$t('menu.userManSys14')
},
{
index: 'partyListCorr',
title: this.$t('menu.userManSys15')
},
{
index: 'partyListPot',
title: this.$t('menu.userManSys13')
},
]
},
{
index: 'partyDelete',
title: this.$t('menu.userManSys7')
},
]
},
{
index: 'disseMRecord',
title: this.$t('menu.userManSys6')
},
{
//论文出版监督
icon: 'el-icon-lx-copy',
index: 'JournalCitationAnalysis',
title: this.$t('menu.JournalCitationAnalysis'),
}
]
},
// { // {
// icon: 'el-icon-user', // icon: 'el-icon-user',
@@ -322,31 +370,31 @@ export default {
index: '4', index: '4',
title: this.$t('sidebar.userManSys'), title: this.$t('sidebar.userManSys'),
subs: [ subs: [
{ // {
title: this.$t('sidebar.userManSys1'), // title: this.$t('sidebar.userManSys1'),
index: '41', // index: '41',
subs: [ // subs: [
// { // // {
// index: 'partyListAct', // // index: 'partyListAct',
// title: this.$t('sidebar.userManSys11') // // title: this.$t('sidebar.userManSys11')
// },{ // // },{
// index: 'partyListIna', // // index: 'partyListIna',
// title: this.$t('sidebar.userManSys12') // // title: this.$t('sidebar.userManSys12')
// }, // // },
{ // {
index: 'partyList', // index: 'partyList',
title: this.$t('sidebar.userManSys14') // title: this.$t('sidebar.userManSys14')
}, // },
{ // {
index: 'partyListCorr', // index: 'partyListCorr',
title: this.$t('sidebar.userManSys15') // title: this.$t('sidebar.userManSys15')
}, // },
{ // {
index: 'partyListPot', // index: 'partyListPot',
title: this.$t('sidebar.userManSys13') // title: this.$t('sidebar.userManSys13')
} // }
] // ]
}, // },
// { // {
// index: '', // index: '',
// title: this.$t('sidebar.userManSys2') // title: this.$t('sidebar.userManSys2')
@@ -397,10 +445,10 @@ export default {
} }
] ]
}, },
{ // {
index: 'disseMRecord', // index: 'disseMRecord',
title: this.$t('sidebar.userManSys6') // title: this.$t('sidebar.userManSys6')
}, // },
// { // {
// index: 'disseMRecord', // index: 'disseMRecord',
// title: this.$t('sidebar.userManSys8') // title: this.$t('sidebar.userManSys8')
@@ -414,10 +462,10 @@ export default {
title: this.$t('sidebar.userManSys9') title: this.$t('sidebar.userManSys9')
}, },
{ // {
index: 'partyDelete', // index: 'partyDelete',
title: this.$t('sidebar.userManSys7') // title: this.$t('sidebar.userManSys7')
} // }
] ]
}, },
// { // {

View File

@@ -35,6 +35,24 @@ const en = {
Userdatabase: 'User Database', Userdatabase: 'User Database',
analysis: 'Article Analysis', analysis: 'Article Analysis',
evaluationsis: 'Article Distribution', evaluationsis: 'Article Distribution',
userManSys1: 'Total User',
userManSys13: 'Untapped Users',
userManSys14: 'All Users',
userManSys15: 'Author Database',
userManSys7: 'Blacklist',
userManSys6: 'Promotion Record',
JournalCitationAnalysis: 'Journal Citation Analysis',
},
JournalCitationAnalysis:{
journal:'Journal',
editor:'Editor',
cite:'Cited in',
article:'Articles for',
info:'The following data is',
wos:'Wos',
all:'All references',
factor: 'Factor',
}, },
sidebar: { sidebar: {
main: 'Personal Center', main: 'Personal Center',

View File

@@ -36,6 +36,21 @@ const zh = {
Userdatabase: '用户数据库', Userdatabase: '用户数据库',
analysis: '文章分析', analysis: '文章分析',
evaluationsis: '文章分发', evaluationsis: '文章分发',
userManSys1: '用户管理',
userManSys13: '潜在用户',
userManSys14: '用户管理',
userManSys15: '作者库',
userManSys7: '黑名单',
userManSys6: '推广记录',
JournalCitationAnalysis: '期刊引文分析',
}, JournalCitationAnalysis:{
journal:'期刊',
editor:'编辑',
cite:'引用数量',
article:'文章数量', info:'以下数据为',wos:'Wos',
all:'全部引用',
factor: '影响因子',
}, },
sidebar: { sidebar: {
main: '个人中心', main: '个人中心',

View File

@@ -0,0 +1,186 @@
<template>
<div class="container" style="padding-bottom: 50px; width: 100%; height: 100%" v-loading="loading">
<div style="width: 100%; height: auto;">
<div
style="
width: 100%;
box-sizing: border-box;
margin-bottom: 20px;
background-color: #f4f4f5;
padding: 10px;
font-size: 12px;
color: #909399;
"
>
{{ $t('JournalCitationAnalysis.info') }} : {{ $t('JournalCitationAnalysis.wos') }} /
{{ $t('JournalCitationAnalysis.all') }}
</div>
<el-table :data="dataList" border class="msg-table" empty-text="New Data (0)">
<el-table-column type="index" label="No." width="55" align="center"></el-table-column>
<!-- <el-table-column type="index" label="Issn" width="100" align="center">
<template slot-scope="scope">
{{ scope.row.issn }}
</template>
</el-table-column> -->
<el-table-column :label="$t('JournalCitationAnalysis.journal')" prop="title"> </el-table-column>
<el-table-column :label="$t('JournalCitationAnalysis.editor')" width="110" prop="realname"></el-table-column>
<el-table-column
:label="
lang == 'en'
? `${$t('JournalCitationAnalysis.cite')} ${getMonthName(month)}`
: `${month} 月${$t('JournalCitationAnalysis.cite')}`
"
width="140"
align="center"
>
<template slot-scope="scope">
{{ scope.row.cite.month_num }}
</template>
</el-table-column>
<el-table-column
:label="
lang == 'en' ? `${$t('JournalCitationAnalysis.cite')} ${year}` : `${year} 年${$t('JournalCitationAnalysis.cite')}`
"
width="130"
align="center"
>
<template slot-scope="scope">
{{ scope.row.cite.year_num }}
</template>
</el-table-column>
<el-table-column
:label="
lang == 'en'
? `${$t('JournalCitationAnalysis.cite')} ${p_year}`
: `${p_year} 年${$t('JournalCitationAnalysis.cite')}`
"
width="130"
align="center"
>
<template slot-scope="scope">
{{ scope.row.cite.pre_year_num }}
</template>
</el-table-column>
<el-table-column
:label="
lang == 'en'
? `${$t('JournalCitationAnalysis.article')} ${year}`
: `${year} 年${$t('JournalCitationAnalysis.article')}`
"
width="130"
align="center"
>
<template slot-scope="scope">
{{ scope.row.cite.year_aritlce_num }}
</template>
</el-table-column>
<el-table-column
:label="
lang == 'en'
? `${$t('JournalCitationAnalysis.article')} ${p_year}`
: `${p_year} 年${$t('JournalCitationAnalysis.article')}`
"
width="130"
align="center"
>
<template slot-scope="scope">
{{ scope.row.cite.pre_year_article_num }}
</template>
</el-table-column>
<el-table-column
:label="`${$t('JournalCitationAnalysis.factor')}`
"
width="80"
align="center"
>
<template slot-scope="scope">
{{ scope.row.cite.yc_if&& scope.row.cite.yc_if>0? scope.row.cite.yc_if.toFixed(2):0 }}
</template>
</el-table-column>
</el-table>
</div>
</div>
</template>
<script>
const jAtableY = () => import('@/components/common/journalArticleTable');
export default {
data() {
return {
lang: !localStorage.getItem('langs') || localStorage.getItem('langs') == 'en' ? 'en' : 'zh',
loading: false,
dataList: [],
p_year: new Date().getFullYear() - 1,
year: new Date().getFullYear(),
month: new Date().getMonth() + 1
};
},
components: {
jAtableY
},
async created() {
this.loading = true;
await this.getTableData();
this.$forceUpdate();
},
methods: {
getMonthName(month) {
const months = [
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December'
];
return months[month - 1];
},
// 获取文章列表数据
async getTableData() {
await this.$api
.post(`api/Monitor/getCiteForEditor`, {
user_id: localStorage.getItem('U_id')
})
.then(async (res) => {
var that = this;
if (res.code == 0) {
this.dataList = res.data.data;
this.loading = false;
console.log('this.dataList at line 48:', this.dataList);
}
})
.catch((err) => {
console.log(err, '989898');
this.loading = false;
});
}
}
};
</script>
<style scoped>
.container {
padding: 20px;
box-sizing: border-box;
width: 100%;
height: 100%;
position: relative;
}
.refresh {
position: absolute;
top: 20px;
right: 0px;
z-index: 10;
}
</style>

View File

@@ -1030,6 +1030,14 @@ export default new Router({
title: 'Journal Article Count' title: 'Journal Article Count'
} }
}, },
{
name:'journal-citation-analysis',
path: '/JournalCitationAnalysis', // 超管单期刊列表
component: () => import('../components/page/JournalCitationAnalysis'),
meta: {
title: 'Journal Citation Analysis'
}
},
{ {
name:'paper-submit-analysis', name:'paper-submit-analysis',
path: '/PaperSubmitanalysis', // 超管单期刊列表 path: '/PaperSubmitanalysis', // 超管单期刊列表