This commit is contained in:
2024-09-14 11:05:43 +08:00
parent e1807241b5
commit ae6a6b52e8
4 changed files with 231 additions and 54 deletions

View File

@@ -301,7 +301,7 @@
<template slot-scope="scope">
<span style="font-size: 700">{{ scope.$index + 1 }}. &nbsp;&nbsp;</span>
<span v-if="scope.row.link" style=" text-decoration: underline; ">
<span v-if="scope.row.link" style="text-decoration: underline">
<a target="_blank" :href="scope.row.link" style="color: #006699 !important">{{
scope.row.title
}}</a>
@@ -339,12 +339,11 @@
</el-table-column>
<el-table-column :label="$t('partyRole.journal')" prop="title" width="100">
<template slot-scope="scope">
<el-tooltip class="item" effect="dark" :content="scope.row.journal_title
" placement="top-start">
<div>
{{ scope.row.abbr }}
</div>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="scope.row.journal_title" placement="top-start">
<div>
{{ scope.row.abbr }}
</div>
</el-tooltip>
</template>
</el-table-column>
<el-table-column :label="$t('partyRole.status')" prop="title" width="80">
@@ -366,6 +365,52 @@
</div>
</template>
</el-table-column>
<el-table-column label="" prop="title" width="100">
<template slot-scope="scope">
<el-popover ref="popover" placement="right" trigger="click" width="700">
<ul
style="
padding: 0 0px;
box-sizing: border-box;
max-height: 500px;
overflow-y: auto;
white-space: normal;
"
v-loading="citeLoading"
>
<li v-for="(v, i) in authorList" style="overflow: hidden; margin-bottom: 5px">
<div style="color: #7a2702; margin-right: 10px; float: left">{{ i + 1 }} .</div>
<div style="float: left; width: calc(100% - 100px)">
<p class="tab_tie_col">
{{ v.firstname }}&nbsp;{{ v.lastname }}
<span
>( {{ $t('partyListCorr.Email') }}:
<span style="color: #409eff">{{ v.email }}</span
>)</span
>
</p>
</div>
</li>
</ul>
<span
slot="reference"
@click="getAuthorList(scope.row.article_id)"
style="
color: #006699;
background: #ecf5ff;
border: 1px solid #b3d8ff;
padding: 4px;
border-radius: 4px;
margin-top: 10px;
"
><i class="el-icon-user-solid" style="margin-right: 5px; color: #006699"></i
>{{ $t('partyListCorr.Authors') }}</span
>
</el-popover>
</template>
</el-table-column>
</el-table>
</div>
<!-- <p v-if="authorTable.manuscriptNum != undefined">
@@ -768,6 +813,7 @@
export default {
data() {
return {
citeLoading: false, authorList: [],
loading: false,
authorArticlesList: [],
userrole: localStorage.getItem('U_status'),
@@ -1019,6 +1065,33 @@ export default {
this.getDate();
},
methods: {
async getAuthorList(id) {
var that = this;
this.authorList = [];
this.citeLoading = true;
await this.$api
.post('api/User/getAuthorForArticle', {
article_id: id
})
.then(async (res) => {
if (res.code == 0) {
this.authorList = res.data.list;
this.citeLoading = false;
setTimeout(() => {
that.$nextTick(() => {
that.$refs.popover.updatePopper();
});
}, 100);
} else {
this.$message.error(res.msg);
this.citeLoading = false;
}
})
.catch((err) => {
this.$message.error(err);
this.citeLoading = false;
});
},
// 获取下拉列表
getSelectData() {
this.$api