自动化样式
This commit is contained in:
@@ -82,6 +82,12 @@
|
||||
>
|
||||
<span class="tpl-name tpl-name-single-line">{{ taskCard.templateName || 'No Template Configured' }}</span>
|
||||
</div>
|
||||
<div class="meta-row">
|
||||
<i class="el-icon-user"
|
||||
><span style="font-size: 11px; margin-left: 3px; margin-right: 3px">Type :</span></i
|
||||
>
|
||||
<span class="tpl-name">{{ taskCard.expertTypeLabel || '-' }}</span>
|
||||
</div>
|
||||
|
||||
<!-- <div class="meta-row">
|
||||
<i class="el-icon-collection-tag"
|
||||
@@ -90,7 +96,7 @@
|
||||
<span class="tpl-name">{{ taskCard.fieldCountText }}</span>
|
||||
</div> -->
|
||||
|
||||
<div class="meta-row">
|
||||
<div class="meta-row" v-if="String(taskCard.expertType || '') === '5'">
|
||||
<i class="el-icon-location-outline"
|
||||
><span style="font-size: 11px; margin-left: 3px; margin-right: 3px">Country :</span></i
|
||||
>
|
||||
@@ -385,6 +391,8 @@ export default {
|
||||
const journalId = item.journal_id || item.id;
|
||||
let journalObj = {
|
||||
journal_id: journalId,
|
||||
abbr: item.abbr || '',
|
||||
journal_icon: item.journal_icon || '',
|
||||
title: item.title || item.journal_title || item.name || `Journal ${journalId}`,
|
||||
solicit: {
|
||||
enabled: false,
|
||||
@@ -450,6 +458,8 @@ export default {
|
||||
taskId: task.promotion_factory_id || '',
|
||||
type: type,
|
||||
typeLabel: this.mapFactoryTaskTypeLabel(type),
|
||||
expertType: task && task.expert_type != null ? String(task.expert_type) : '',
|
||||
expertTypeLabel: this.mapFactoryExpertTypeLabel(task && task.expert_type != null ? String(task.expert_type) : ''),
|
||||
enabled: enabled,
|
||||
switchLoading: false,
|
||||
initialized: true,
|
||||
@@ -567,6 +577,15 @@ export default {
|
||||
if (t === '4') return this.$t('autoPromotion.autoSolicit');
|
||||
return this.$t('autoPromotion.autoSolicit');
|
||||
},
|
||||
mapFactoryExpertTypeLabel(expertType) {
|
||||
const t = String(expertType || '').trim();
|
||||
if (t === '1') return this.$t('autoPromotion.factoryExpertChief');
|
||||
if (t === '2') return this.$t('autoPromotion.factoryExpertBoard');
|
||||
if (t === '3') return this.$t('autoPromotion.factoryExpertYoungBoard');
|
||||
if (t === '4') return this.$t('autoPromotion.factoryExpertAuthor');
|
||||
if (t === '5') return this.$t('autoPromotion.factoryExpertDb');
|
||||
return '-';
|
||||
},
|
||||
getJournalDisplayTasks(journal) {
|
||||
const list = journal && Array.isArray(journal.factoryTasks) ? journal.factoryTasks : [];
|
||||
return list;
|
||||
|
||||
Reference in New Issue
Block a user