提交
This commit is contained in:
@@ -1527,6 +1527,47 @@ const en = {
|
||||
close: 'Close',
|
||||
placeholder: 'Please enter email content'
|
||||
},
|
||||
reviewerAdd: {
|
||||
pageTitle: 'Add manuscript reviewer',
|
||||
loading: 'Loading...',
|
||||
researchDirection: 'Research direction :',
|
||||
selectMajor: 'Please select major',
|
||||
enterEmail: 'Please enter email',
|
||||
enterField: 'Please enter field',
|
||||
search: 'Search',
|
||||
latestInvitation: 'Latest invitation',
|
||||
orderDesc: 'Descending',
|
||||
orderAsc: 'Ascending',
|
||||
orderDescTip: 'Newest invitation first',
|
||||
orderAscTip: 'Oldest invitation first',
|
||||
colBaseInfo: 'Base Information',
|
||||
colOtherInfo: 'Other Information',
|
||||
colResearchAreas: 'Research areas',
|
||||
colReviewedTimes: 'Reviewed Times',
|
||||
colReviewRecord: 'Review Record',
|
||||
realname: 'Realname: ',
|
||||
account: 'Account: ',
|
||||
email: 'Email: ',
|
||||
latestInvitationLabel: 'Latest invitation: ',
|
||||
affiliation: 'Affiliation: ',
|
||||
field: 'Field: ',
|
||||
detail: 'Detail',
|
||||
select: 'Select',
|
||||
reviewing: 'Reviewing',
|
||||
emptyTable: 'New messages (0)',
|
||||
majorReview: 'Major review',
|
||||
cancelReview: 'Cancel review',
|
||||
total: 'Total',
|
||||
dialogTitle: 'Reviewer information',
|
||||
dialogUser: 'User :',
|
||||
dialogName: 'Name :',
|
||||
dialogCountry: 'Country :',
|
||||
dialogAffiliation: 'Affiliation :',
|
||||
dialogResearchAreas: 'Research areas :',
|
||||
dialogField: 'Field :',
|
||||
dialogIntroduction: 'Introduction :',
|
||||
cancel: 'Cancel'
|
||||
},
|
||||
refRelevance: {
|
||||
filterAll: 'All ({count})',
|
||||
filterModify: 'Needs revision ({count})',
|
||||
|
||||
@@ -1508,6 +1508,47 @@ const zh = {
|
||||
close: '关闭',
|
||||
placeholder: '请输入邮件内容'
|
||||
},
|
||||
reviewerAdd: {
|
||||
pageTitle: '添加审稿人',
|
||||
loading: '加载中...',
|
||||
researchDirection: '研究方向:',
|
||||
selectMajor: '请选择专业',
|
||||
enterEmail: '请输入邮箱',
|
||||
enterField: '请输入领域',
|
||||
search: '搜索',
|
||||
latestInvitation: '最新邀请时间',
|
||||
orderDesc: '倒序',
|
||||
orderAsc: '正序',
|
||||
orderDescTip: '最新邀请在前',
|
||||
orderAscTip: '最早邀请在前',
|
||||
colBaseInfo: '基本信息',
|
||||
colOtherInfo: '其他信息',
|
||||
colResearchAreas: '研究领域',
|
||||
colReviewedTimes: '审稿次数',
|
||||
colReviewRecord: '审稿记录',
|
||||
realname: '姓名:',
|
||||
account: '账号:',
|
||||
email: '邮箱:',
|
||||
latestInvitationLabel: '最新邀请:',
|
||||
affiliation: '单位:',
|
||||
field: '领域:',
|
||||
detail: '详情',
|
||||
select: '选择',
|
||||
reviewing: '审稿中',
|
||||
emptyTable: '暂无数据(0)',
|
||||
majorReview: '重点审稿',
|
||||
cancelReview: '取消审稿',
|
||||
total: '合计',
|
||||
dialogTitle: '审稿人信息',
|
||||
dialogUser: '用户:',
|
||||
dialogName: '姓名:',
|
||||
dialogCountry: '国家:',
|
||||
dialogAffiliation: '单位:',
|
||||
dialogResearchAreas: '研究领域:',
|
||||
dialogField: '领域:',
|
||||
dialogIntroduction: '简介:',
|
||||
cancel: '取消'
|
||||
},
|
||||
refRelevance: {
|
||||
filterAll: '全部({count})',
|
||||
filterModify: '需修改({count})',
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<b style="letter-spacing: -0.5px"> {{ item.stage_year }} Vol.{{ item.stage_vol }} issue.{{ item.stage_no }} </b>
|
||||
<span style="color: #888; margin-left: 20px; font-size: 14px">({{ item.articles.length }} articles in total)</span>
|
||||
<el-button @click="Chukan(item)" type="warning" plain size="mini" style="margin-left: 20px">
|
||||
Issue in advance
|
||||
Issue in advance
|
||||
</el-button>
|
||||
</div>
|
||||
<div v-for="(item, index) in item.articles" class="actList">
|
||||
|
||||
@@ -1,19 +1,30 @@
|
||||
<template>
|
||||
<div>
|
||||
<span style="font-size: 14px; color: #606266; margin: 0 10px 0 0">Research direction :</span>
|
||||
<el-input
|
||||
v-model="messform.email"
|
||||
clearable
|
||||
placeholder="Please enter email"
|
||||
style="width: 190px; display: inline-block; margin: 0 10px 20px 0"
|
||||
></el-input>
|
||||
<el-input
|
||||
v-model="messform.field"
|
||||
clearable
|
||||
placeholder="Please enter field"
|
||||
style="width: 190px; display: inline-block; margin: 0 10px 20px 0"
|
||||
></el-input>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">Search</el-button>
|
||||
<div class="reviewer-search-toolbar">
|
||||
<div class="reviewer-search-filters">
|
||||
<span style="font-size: 14px; color: #606266; margin: 0 10px 0 0">{{ $t('reviewerAdd.researchDirection') }}</span>
|
||||
<el-input
|
||||
v-model="messform.email"
|
||||
clearable
|
||||
:placeholder="$t('reviewerAdd.enterEmail')"
|
||||
style="width: 190px; display: inline-block; margin: 0 10px 0 0"
|
||||
></el-input>
|
||||
<el-input
|
||||
v-model="messform.field"
|
||||
clearable
|
||||
:placeholder="$t('reviewerAdd.enterField')"
|
||||
style="width: 190px; display: inline-block; margin: 0 10px 0 0"
|
||||
></el-input>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">{{ $t('reviewerAdd.search') }}</el-button>
|
||||
</div>
|
||||
<div class="invite-sort-bar">
|
||||
<span class="invite-sort-label">{{ $t('reviewerAdd.latestInvitation') }}</span>
|
||||
<el-radio-group v-model="timeOrder" size="small">
|
||||
<el-radio label="desc" :title="$t('reviewerAdd.orderDescTip')">{{ $t('reviewerAdd.orderDesc') }}</el-radio>
|
||||
<el-radio label="asc" :title="$t('reviewerAdd.orderAscTip')">{{ $t('reviewerAdd.orderAsc') }}</el-radio>
|
||||
</el-radio-group>
|
||||
</div>
|
||||
</div>
|
||||
<el-table
|
||||
:data="revTable"
|
||||
border
|
||||
@@ -21,12 +32,12 @@
|
||||
class="table"
|
||||
ref="multipleTable"
|
||||
header-cell-class-name="table-header"
|
||||
empty-text="New messages (0)"
|
||||
:empty-text="$t('reviewerAdd.emptyTable')"
|
||||
>
|
||||
<el-table-column width="360" label="Base Information">
|
||||
<el-table-column width="360" :label="$t('reviewerAdd.colBaseInfo')">
|
||||
<template slot-scope="scope">
|
||||
<p class="tab_tie_col">
|
||||
<span>Realname: </span><b style="font-size: 14px">{{ scope.row.realname }}</b><el-button
|
||||
<span>{{ $t('reviewerAdd.realname') }}</span><b style="font-size: 14px">{{ scope.row.realname }}</b><el-button
|
||||
|
||||
size="mini"
|
||||
type="success"
|
||||
@@ -34,22 +45,22 @@
|
||||
icon="el-icon-tickets"
|
||||
@click="openDetail(scope.row)"
|
||||
style="margin-left: 10px;padding:4px;float: right;"
|
||||
>Detail</el-button
|
||||
>{{ $t('reviewerAdd.detail') }}</el-button
|
||||
>
|
||||
</p>
|
||||
<p class="tab_tie_col"><span>Account: </span>{{ scope.row.account }}</p>
|
||||
<p class="tab_tie_col"><span>Email: </span>{{ scope.row.email }}</p>
|
||||
|
||||
<p class="tab_tie_col"><span>{{ $t('reviewerAdd.account') }}</span>{{ scope.row.account }}</p>
|
||||
<p class="tab_tie_col"><span>{{ $t('reviewerAdd.email') }}</span>{{ scope.row.email }}</p>
|
||||
<p class="tab_tie_col"><span>{{ $t('reviewerAdd.latestInvitationLabel') }}</span>{{ formatInviteTime(scope.row) }}</p>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="Other Information">
|
||||
<el-table-column :label="$t('reviewerAdd.colOtherInfo')">
|
||||
<template slot-scope="scope">
|
||||
<p class="tab_tie_col" v-if="scope.row.company != ''"><span>Affiliation: </span>{{ scope.row.company }}</p>
|
||||
<p class="tab_tie_col" v-if="scope.row.field != ''"><span>Field: </span>{{ scope.row.field }}</p>
|
||||
<p class="tab_tie_col" v-if="scope.row.company != ''"><span>{{ $t('reviewerAdd.affiliation') }}</span>{{ scope.row.company }}</p>
|
||||
<p class="tab_tie_col" v-if="scope.row.field != ''"><span>{{ $t('reviewerAdd.field') }}</span>{{ scope.row.field }}</p>
|
||||
<!-- <p class="tab_tie_col" v-if="scope.row.majorstr != ''"><span>Major: </span>{{ scope.row.majorstr }}</p> -->
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="Research areas" width="260">
|
||||
<el-table-column :label="$t('reviewerAdd.colResearchAreas')" width="260">
|
||||
<template slot-scope="scope">
|
||||
<commonMajorTableList
|
||||
:user_id="scope.row.user_id"
|
||||
@@ -59,18 +70,18 @@
|
||||
></commonMajorTableList>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="rs_num" label="Review Record" width="180">
|
||||
<el-table-column prop="rs_num" :label="$t('reviewerAdd.colReviewRecord')" width="180">
|
||||
<template slot-scope="scope">
|
||||
Major review: {{ scope.row.major_times }} ({{ scope.row.major_rate }}%)
|
||||
{{ $t('reviewerAdd.majorReview') }}: {{ scope.row.major_times }} ({{ scope.row.major_rate }}%)
|
||||
<br />
|
||||
Cancel review : {{ scope.row.rd_num }}
|
||||
{{ $t('reviewerAdd.cancelReview') }}: {{ scope.row.rd_num }}
|
||||
|
||||
<!-- <font style="margin-left: 5px">(Reviewing:{{ scope.row.now }})</font> -->
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="rs_num" label="Reviewed Times" width="140">
|
||||
<el-table-column prop="rs_num" :label="$t('reviewerAdd.colReviewedTimes')" width="140">
|
||||
<template slot-scope="scope">
|
||||
Total: {{ scope.row.rs_num }}
|
||||
{{ $t('reviewerAdd.total') }}: {{ scope.row.rs_num }}
|
||||
<br />
|
||||
<div>
|
||||
<i class="el-icon-check" style="font-weight: bold; color: green; margin-right: 4px"> </i>
|
||||
@@ -89,7 +100,7 @@
|
||||
<el-table-column label="" width="120" align="center">
|
||||
<template slot-scope="scope">
|
||||
<!-- <el-button size="mini" type="success" plain icon="el-icon-tickets" @click="openDetail(scope.row)">Detail</el-button> -->
|
||||
<el-button size="mini" type="primary" plain icon="el-icon-check" @click="openSelect(scope.row)"> Select</el-button>
|
||||
<el-button size="mini" type="primary" plain icon="el-icon-check" @click="openSelect(scope.row)">{{ $t('reviewerAdd.select') }}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -109,15 +120,17 @@
|
||||
<script>
|
||||
import commonMajorTableList from '../page/components/major/tableList.vue';
|
||||
|
||||
export default {components: {
|
||||
|
||||
export default {
|
||||
components: {
|
||||
commonMajorTableList
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
timeOrder: 'desc',
|
||||
messform: {
|
||||
article_id: this.$route.query.id,
|
||||
|
||||
email: '',
|
||||
field: '',
|
||||
page: 1,
|
||||
size: 15
|
||||
},
|
||||
@@ -142,8 +155,44 @@ export default {components: {
|
||||
created() {
|
||||
this.getDate();
|
||||
},
|
||||
computed: {},
|
||||
methods: {
|
||||
formatInviteTime(row) {
|
||||
const raw =
|
||||
row.invited_time != null && row.invited_time !== ''
|
||||
? row.invited_time
|
||||
: row.last_invite_time != null && row.last_invite_time !== ''
|
||||
? row.last_invite_time
|
||||
: row.invite_time != null && row.invite_time !== ''
|
||||
? row.invite_time
|
||||
: row.invitation_time != null && row.invitation_time !== ''
|
||||
? row.invitation_time
|
||||
: row.invit_time != null && row.invit_time !== ''
|
||||
? row.invit_time
|
||||
: row.inviteTime;
|
||||
if (raw == null || raw === '') {
|
||||
return '-';
|
||||
}
|
||||
if (typeof raw === 'string' && /[-/]/.test(raw) && isNaN(Number(raw))) {
|
||||
return raw;
|
||||
}
|
||||
let ts = Number(raw);
|
||||
if (!ts) {
|
||||
return '-';
|
||||
}
|
||||
if (ts < 1e12) {
|
||||
ts *= 1000;
|
||||
}
|
||||
const date = new Date(ts);
|
||||
if (isNaN(date.getTime())) {
|
||||
return String(raw);
|
||||
}
|
||||
const Y = date.getFullYear() + '-';
|
||||
const M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
|
||||
const D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
|
||||
const h = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
|
||||
const m = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
|
||||
return Y + M + D + ' ' + h + ':' + m;
|
||||
},
|
||||
// 获取编辑列表数据
|
||||
getDate() {
|
||||
this.$emit('loading', true);
|
||||
@@ -164,8 +213,7 @@ export default {components: {
|
||||
|
||||
// 关键字搜索
|
||||
handleSearch() {
|
||||
// this.loading = true;
|
||||
// console.log(this.messform)
|
||||
this.messform.page = 1;
|
||||
this.getDate();
|
||||
},
|
||||
|
||||
@@ -202,4 +250,37 @@ export default {components: {
|
||||
margin: 0 5px 0 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
.reviewer-search-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
width: 100%;
|
||||
margin-bottom: 20px;
|
||||
gap: 10px 12px;
|
||||
}
|
||||
.reviewer-search-filters {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px 12px;
|
||||
}
|
||||
.invite-sort-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
margin-left: auto;
|
||||
font-size: 14px;
|
||||
color: #606266;
|
||||
}
|
||||
.invite-sort-label {
|
||||
white-space: nowrap;
|
||||
font-weight: 500;
|
||||
}
|
||||
.invite-sort-bar ::v-deep .el-radio {
|
||||
margin-right: 14px;
|
||||
}
|
||||
.invite-sort-bar ::v-deep .el-radio:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -4,22 +4,27 @@
|
||||
<!-- <el-page-header @back="goBack" content="Add manuscript reviewer">
|
||||
</el-page-header> -->
|
||||
<el-breadcrumb separator="/">
|
||||
<el-breadcrumb-item> <i class="el-icon-lx-calendar"></i> Add manuscript reviewer</el-breadcrumb-item>
|
||||
<el-breadcrumb-item> <i class="el-icon-lx-calendar"></i> {{ $t('reviewerAdd.pageTitle') }}</el-breadcrumb-item>
|
||||
</el-breadcrumb>
|
||||
</div>
|
||||
<div
|
||||
class="container" style="padding: 20px;"
|
||||
v-loading="loading"
|
||||
element-loading-text="Loading..."
|
||||
:element-loading-text="$t('reviewerAdd.loading')"
|
||||
element-loading-spinner="el-icon-loading"
|
||||
element-loading-background="rgba(255, 255, 255, 0.8)"
|
||||
>
|
||||
<span
|
||||
style="float: right; display: flex; align-items: center; color: #6843ff; font-weight: bold"
|
||||
@click="isSelectAI = !isSelectAI"
|
||||
class="ai-mode-toggle"
|
||||
style="float: right; display: flex; align-items: center; color: #6843ff; font-weight: bold; cursor: pointer"
|
||||
@click="toggleSelectAI"
|
||||
>
|
||||
<el-checkbox v-model="isSelectAI"></el-checkbox
|
||||
><img src="@/assets/img/ai.png" style="width: 30px; height: 30px; margin-left: 10px" />
|
||||
<el-checkbox v-model="isSelectAI" @click.native.stop></el-checkbox>
|
||||
<img
|
||||
src="@/assets/img/ai.png"
|
||||
style="width: 30px; height: 30px; margin-left: 10px"
|
||||
@click.stop="toggleSelectAI"
|
||||
/>
|
||||
</span>
|
||||
|
||||
<!-- <el-select v-model="messform.major_a" placeholder="Please select major" @change="majorChange(1)"
|
||||
@@ -43,30 +48,41 @@
|
||||
</el-select> -->
|
||||
|
||||
<div v-if="!isSelectAI">
|
||||
<span style="font-size: 14px; color: #606266; margin: 0 10px 0 0">Research direction :</span>
|
||||
<el-cascader
|
||||
placeholder="Please select major"
|
||||
v-model="selectFileds"
|
||||
style="width: 300px; margin-right: 10px"
|
||||
@change="fieldChange"
|
||||
:options="allFileds"
|
||||
:props="fieldsProps"
|
||||
collapse-tags
|
||||
clearable
|
||||
></el-cascader>
|
||||
<el-input
|
||||
v-model="messform.email"
|
||||
clearable
|
||||
placeholder="Please enter email"
|
||||
style="width: 190px; display: inline-block; margin: 0 10px 20px 0"
|
||||
></el-input>
|
||||
<el-input
|
||||
v-model="messform.field"
|
||||
clearable
|
||||
placeholder="Please enter field"
|
||||
style="width: 190px; display: inline-block; margin: 0 10px 20px 0"
|
||||
></el-input>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">Search</el-button>
|
||||
<div class="reviewer-search-toolbar">
|
||||
<div class="reviewer-search-filters">
|
||||
<span style="font-size: 14px; color: #606266; margin: 0 10px 0 0">{{ $t('reviewerAdd.researchDirection') }}</span>
|
||||
<el-cascader
|
||||
:placeholder="$t('reviewerAdd.selectMajor')"
|
||||
v-model="selectFileds"
|
||||
style="width: 300px; margin-right: 10px"
|
||||
@change="fieldChange"
|
||||
:options="allFileds"
|
||||
:props="fieldsProps"
|
||||
collapse-tags
|
||||
clearable
|
||||
></el-cascader>
|
||||
<el-input
|
||||
v-model="messform.email"
|
||||
clearable
|
||||
:placeholder="$t('reviewerAdd.enterEmail')"
|
||||
style="width: 190px; display: inline-block; margin: 0 10px 0 0"
|
||||
></el-input>
|
||||
<el-input
|
||||
v-model="messform.field"
|
||||
clearable
|
||||
:placeholder="$t('reviewerAdd.enterField')"
|
||||
style="width: 190px; display: inline-block; margin: 0 10px 0 0"
|
||||
></el-input>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">{{ $t('reviewerAdd.search') }}</el-button>
|
||||
</div>
|
||||
<div class="invite-sort-bar">
|
||||
<span class="invite-sort-label">{{ $t('reviewerAdd.latestInvitation') }}</span>
|
||||
<el-radio-group v-model="timeOrder" size="small">
|
||||
<el-radio label="desc" :title="$t('reviewerAdd.orderDescTip')">{{ $t('reviewerAdd.orderDesc') }}</el-radio>
|
||||
<el-radio label="asc" :title="$t('reviewerAdd.orderAscTip')">{{ $t('reviewerAdd.orderAsc') }}</el-radio>
|
||||
</el-radio-group>
|
||||
</div>
|
||||
</div>
|
||||
<el-table
|
||||
:data="revTable"
|
||||
border
|
||||
@@ -74,12 +90,12 @@
|
||||
class="table"
|
||||
ref="multipleTable"
|
||||
header-cell-class-name="table-header"
|
||||
empty-text="New messages (0)"
|
||||
:empty-text="$t('reviewerAdd.emptyTable')"
|
||||
>
|
||||
<el-table-column width="360" label="Base Information">
|
||||
<el-table-column width="360" :label="$t('reviewerAdd.colBaseInfo')">
|
||||
<template slot-scope="scope">
|
||||
<p class="tab_tie_col">
|
||||
<span>Realname: </span><b style="font-size: 14px">{{ scope.row.realname }}</b>
|
||||
<span>{{ $t('reviewerAdd.realname') }}</span><b style="font-size: 14px">{{ scope.row.realname }}</b>
|
||||
|
||||
<el-button
|
||||
|
||||
@@ -89,34 +105,35 @@
|
||||
icon="el-icon-tickets"
|
||||
@click="openDetail(scope.row)"
|
||||
style="margin-left: 10px;padding:4px;float: right;"
|
||||
>Detail</el-button
|
||||
>{{ $t('reviewerAdd.detail') }}</el-button
|
||||
>
|
||||
</p>
|
||||
<p class="tab_tie_col"><span>Account: </span>{{ scope.row.account }}</p>
|
||||
<p class="tab_tie_col"><span>Email: </span>{{ scope.row.email }}</p>
|
||||
<p class="tab_tie_col"><span>{{ $t('reviewerAdd.account') }}</span>{{ scope.row.account }}</p>
|
||||
<p class="tab_tie_col"><span>{{ $t('reviewerAdd.email') }}</span>{{ scope.row.email }}</p>
|
||||
<p class="tab_tie_col"><span>{{ $t('reviewerAdd.latestInvitationLabel') }}</span>{{ formatInviteTime(scope.row) }}</p>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="Other Information">
|
||||
<el-table-column :label="$t('reviewerAdd.colOtherInfo')">
|
||||
<template slot-scope="scope">
|
||||
<p class="tab_tie_col" v-if="scope.row.company != ''"><span>Affiliation: </span>{{ scope.row.company }}</p>
|
||||
<p class="tab_tie_col" v-if="scope.row.field != ''"><span>Field: </span>{{ scope.row.field }}</p>
|
||||
<p class="tab_tie_col" v-if="scope.row.company != ''"><span>{{ $t('reviewerAdd.affiliation') }}</span>{{ scope.row.company }}</p>
|
||||
<p class="tab_tie_col" v-if="scope.row.field != ''"><span>{{ $t('reviewerAdd.field') }}</span>{{ scope.row.field }}</p>
|
||||
<!-- <p class="tab_tie_col" v-if="scope.row.majorstr != ''"><span>Major: </span>{{ scope.row.majorstr }}</p> -->
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="Research areas" width="260">
|
||||
<el-table-column :label="$t('reviewerAdd.colResearchAreas')" width="260">
|
||||
<template slot-scope="scope">
|
||||
<commonMajorTableList
|
||||
:user_id="scope.row.reviewer_id"
|
||||
:user_id="scope.row.user_id"
|
||||
:baseInfo="scope.row"
|
||||
:key="scope.row.reviewer_id"
|
||||
:key="scope.row.user_id"
|
||||
:disabled="true"
|
||||
></commonMajorTableList>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="rs_num" label="Reviewed Times" width="160">
|
||||
<el-table-column prop="rs_num" :label="$t('reviewerAdd.colReviewedTimes')" width="160">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.rs_num }}
|
||||
<font style="margin-left: 5px">(Reviewing:{{ scope.row.now }})</font>
|
||||
<font style="margin-left: 5px">({{ $t('reviewerAdd.reviewing') }}:{{ scope.row.now }})</font>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
@@ -131,7 +148,7 @@
|
||||
plain
|
||||
icon="el-icon-check"
|
||||
@click="openSelect(scope.row)"
|
||||
>Select</el-button
|
||||
>{{ $t('reviewerAdd.select') }}</el-button
|
||||
>
|
||||
|
||||
</div>
|
||||
@@ -150,46 +167,50 @@
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="isSelectAI">
|
||||
<commonAI @openSelect="openSelect" @openDetail="openDetail" @loading="(status) => (loading = status)"></commonAI>
|
||||
<commonAI
|
||||
@openSelect="openSelect"
|
||||
@openDetail="openDetail"
|
||||
@loading="(status) => (loading = status)"
|
||||
></commonAI>
|
||||
</div>
|
||||
</div>
|
||||
<el-dialog
|
||||
title="Reviewer information"
|
||||
:title="$t('reviewerAdd.dialogTitle')"
|
||||
:visible.sync="mesOpenVisble" :close-on-click-modal="false"
|
||||
width="800px"
|
||||
v-loading="loading"
|
||||
element-loading-text="Loading..."
|
||||
:element-loading-text="$t('reviewerAdd.loading')"
|
||||
element-loading-spinner="el-icon-loading"
|
||||
element-loading-background="rgba(0, 0, 0, 0.8)"
|
||||
>
|
||||
<el-form v-model="mesOpen" label-width="140px">
|
||||
<el-form-item label="User :">
|
||||
<el-form-item :label="$t('reviewerAdd.dialogUser')">
|
||||
<span>{{ mesOpen.account }}</span>
|
||||
</el-form-item>
|
||||
<el-form-item label="Name :">
|
||||
<el-form-item :label="$t('reviewerAdd.dialogName')">
|
||||
<span>{{ mesOpen.realname }}</span>
|
||||
</el-form-item>
|
||||
<el-form-item label="Country :">
|
||||
<el-form-item :label="$t('reviewerAdd.dialogCountry')">
|
||||
<span>{{ mesOpen.country }}</span>
|
||||
</el-form-item>
|
||||
<el-form-item label="Affiliation :">
|
||||
<el-form-item :label="$t('reviewerAdd.dialogAffiliation')">
|
||||
<span>{{ mesOpen.company }}</span>
|
||||
</el-form-item>
|
||||
<el-form-item label="Research areas :">
|
||||
<el-form-item :label="$t('reviewerAdd.dialogResearchAreas')">
|
||||
<p v-for="(v, i) in majorData" >
|
||||
<span style="font-weight: bold">{{ i + 1 }}.</span>
|
||||
{{ v.major_title.replace('Medicine >', '').trim() }}
|
||||
</p>
|
||||
</el-form-item>
|
||||
<el-form-item label="Field :">
|
||||
<el-form-item :label="$t('reviewerAdd.dialogField')">
|
||||
<span>{{ mesOpen.field }}</span>
|
||||
</el-form-item>
|
||||
<el-form-item label="Introduction :">
|
||||
<el-form-item :label="$t('reviewerAdd.dialogIntroduction')">
|
||||
<span>{{ mesOpen.introduction }}</span>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="mesOpenVisble = false">Canel</el-button>
|
||||
<el-button type="primary" @click="mesOpenVisble = false">{{ $t('reviewerAdd.cancel') }}</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</div>
|
||||
@@ -206,6 +227,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
isSelectAI: false,
|
||||
timeOrder: 'desc',
|
||||
messform: {
|
||||
article_id: this.$route.query.id,
|
||||
email: '',
|
||||
@@ -243,6 +265,46 @@ export default {
|
||||
},
|
||||
computed: {},
|
||||
methods: {
|
||||
toggleSelectAI() {
|
||||
this.isSelectAI = !this.isSelectAI;
|
||||
},
|
||||
formatInviteTime(row) {
|
||||
const raw =
|
||||
row.invited_time != null && row.invited_time !== ''
|
||||
? row.invited_time
|
||||
: row.last_invite_time != null && row.last_invite_time !== ''
|
||||
? row.last_invite_time
|
||||
: row.invite_time != null && row.invite_time !== ''
|
||||
? row.invite_time
|
||||
: row.invitation_time != null && row.invitation_time !== ''
|
||||
? row.invitation_time
|
||||
: row.invit_time != null && row.invit_time !== ''
|
||||
? row.invit_time
|
||||
: row.inviteTime;
|
||||
if (raw == null || raw === '') {
|
||||
return '-';
|
||||
}
|
||||
if (typeof raw === 'string' && /[-/]/.test(raw) && isNaN(Number(raw))) {
|
||||
return raw;
|
||||
}
|
||||
let ts = Number(raw);
|
||||
if (!ts) {
|
||||
return '-';
|
||||
}
|
||||
if (ts < 1e12) {
|
||||
ts *= 1000;
|
||||
}
|
||||
const date = new Date(ts);
|
||||
if (isNaN(date.getTime())) {
|
||||
return String(raw);
|
||||
}
|
||||
const Y = date.getFullYear() + '-';
|
||||
const M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
|
||||
const D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
|
||||
const h = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
|
||||
const m = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
|
||||
return Y + M + D + ' ' + h + ':' + m;
|
||||
},
|
||||
goBack() {
|
||||
this.$router.push({
|
||||
path: 'articleReviewer',
|
||||
@@ -287,8 +349,8 @@ export default {
|
||||
|
||||
// 关键字搜索
|
||||
handleSearch() {
|
||||
this.messform.pageIndex = 1;
|
||||
this.loading = true;
|
||||
// console.log(this.messform)
|
||||
this.getDate();
|
||||
},
|
||||
async fetchMajorData(userId) {
|
||||
@@ -450,6 +512,39 @@ export default {
|
||||
margin: 0 5px 0 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
.reviewer-search-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
width: 100%;
|
||||
margin-bottom: 20px;
|
||||
gap: 10px 12px;
|
||||
}
|
||||
.reviewer-search-filters {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px 12px;
|
||||
}
|
||||
.invite-sort-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
margin-left: auto;
|
||||
font-size: 14px;
|
||||
color: #606266;
|
||||
}
|
||||
.invite-sort-label {
|
||||
white-space: nowrap;
|
||||
font-weight: 500;
|
||||
}
|
||||
.invite-sort-bar ::v-deep .el-radio {
|
||||
margin-right: 14px;
|
||||
}
|
||||
.invite-sort-bar ::v-deep .el-radio:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
::v-deep .el-page-header__left, ::v-deep .el-page-header__content{
|
||||
font-size:14px !important ;
|
||||
color:#606266 !important ;
|
||||
|
||||
Reference in New Issue
Block a user