update 首页卡片中英文适配

This commit is contained in:
2026-01-07 11:08:30 +08:00
parent 6b52f6731b
commit 87391b71c6
7 changed files with 41 additions and 23 deletions

View File

@@ -2292,5 +2292,9 @@
"spdm.taskList.title": "Task List",
"spdm.taskList.des": "List of tasks I perform",
"spdm.todoCalendar.title": "Todo Calendar",
"spdm.todoCalendar.des": "To-do task calendar"
"spdm.todoCalendar.des": "To-do task calendar",
"spdm.tapnav.task.focus": "My Focus",
"spdm.tapnav.task.todayTmrTasks": "Today & Tomorrow",
"spdm.tapnav.task.inProgress": "In Progress",
"spdm.tapnav.task.postponed": "Overdue Tasks"
}

View File

@@ -2292,5 +2292,9 @@
"spdm.taskList.title": "任务列表",
"spdm.taskList.des": "我执行的任务列表_spdm",
"spdm.todoCalendar.title": "待办日历",
"spdm.todoCalendar.des": "待办任务日历_spdm"
"spdm.todoCalendar.des": "待办任务日历_spdm",
"spdm.tapnav.task.focus":"我关注的",
"spdm.tapnav.task.todayTmrTasks":"今明任务",
"spdm.tapnav.task.inProgress":"进行中任务",
"spdm.tapnav.task.postponed":"逾期任务"
}

View File

@@ -27,7 +27,7 @@ export default {
</div>
<el-pagination layout="total, prev, pager, next" :pager-count="5" :total="total" @current-change="currentPageChangeFun"/>
</div>
<el-empty v-else class="empty" :image-size="48" :description="'暂无任务'" />
<el-empty v-else class="empty" :image-size="120" />
</el-card>
</template>

View File

@@ -27,7 +27,7 @@ export default {
</div>
<el-pagination layout="total, prev, pager, next" :pager-count="5" :total="total" @current-change="currentPageChangeFun"/>
</div>
<el-empty v-else class="empty" :image-size="48" :description="'暂无任务消息'" />
<el-empty v-else class="empty" :image-size="120" />
</el-card>
</template>

View File

@@ -10,27 +10,31 @@ const tenantInfo = ref<any>(null);
const list = ref([
{
label:'我关注的',
name: '我关注的',
label: 'spdm.tapnav.task.focus',
count: 0,
color: 'rgb(221, 221, 9)',
path: '/spdm/task/attention',
},
{
label: '今明任务',
name: '今明任务',
label: 'spdm.tapnav.task.todayTmrTasks',
count: 0,
key: 'todayTmrTasks',
color: '#FF9900',
path: '/spdm/task/execute',
},
{
label: '进行中任务',
name: '进行中任务',
label: 'spdm.tapnav.task.inProgress',
count: 0,
key: 'inProgress',
color: '#1890ff',
path: '/spdm/task/execute',
},
{
label: '逾期任务',
name: '逾期任务',
label: 'spdm.tapnav.task.postponed',
count: 0,
key: 'postponed',
color: '#FF0000',
@@ -111,7 +115,7 @@ const handleClick = (item: any) => {
</div>
<div class="col-span-2 grid grid-cols-4 h-[40px] justify-between">
<div v-for="item in list" :key="item.label" class="flex flex-col justify-between cursor-pointer" @click="handleClick(item)">
<div class="text-sm text-[#000000A6]">{{ item.label }}</div>
<div class="text-sm text-[#000000A6]">{{ t(item.label) }}</div>
<div class="text-xl" :style="{ color: item.color }" >{{ item.count ?? 0 }}</div>
</div>
</div>

View File

@@ -9,33 +9,33 @@ import mittBus from '/@/utils/mitt';
import {cloneDeep} from 'lodash';
// SPDM CODE 默认常用功能
// SPDM CODE 默认常用功能,这里的应用名称要做多语言
const defaultFavoriteRoutes = [
{
contextMenuClickId: 5,
path: '/spdm/competenceCenter/condition',
name: '仿真工况库',
name: 'moduleRoutes.spdmCompetenceCenterCondition',
meta: { icon: 'ele-Suitcase' },
url: '/spdm/competenceCenter/condition',
},
{
contextMenuClickId: 5,
path: '/spdm/competenceCenter/indicator',
name: '仿真指标库',
name: 'moduleRoutes.spdmCompetenceCenterIndicator',
meta: { icon: 'ele-Money' },
url: '/spdm/competenceCenter/indicator',
},
{
contextMenuClickId: 5,
path: '/spdm/simulation/process',
name: '仿真流程',
name: 'moduleRoutes.spdmSimulationProcess',
meta: { icon: 'ele-FolderChecked' },
url: '/spdm/simulation/process',
},
{
contextMenuClickId: 5,
path: '/spdm/simulation/application',
name: '应用中心',
name: 'moduleRoutes.spdmSystemApplication',
meta: { icon: 'ele-Cellphone' },
url: '/spdm/simulation/application',
},

View File

@@ -5,13 +5,15 @@
<span>{{ props.title }}</span>
</div>
</template>
<!-- SPDM CODE :class -->
<el-row v-if="showRoutes.length > 0" :gutter="10" :class="type === 'menu' ? 'menu-list' : ''">
<el-col v-for="shortcut in showRoutes" :key="shortcut.id" class="shortcutCard" :xs="12" :sm="8" :md="8" :xl="6">
<SvgIcon name="ele-Close" :size="12" class="shortcutCardClose" @click="handleCloseFavorite(shortcut)" />
<shortcutCard :icon="shortcut.meta?.icon" :label="shortcut.name" @click="handleRoute(shortcut.path)" />
</el-col>
</el-row>
<div v-if="showRoutes.length > 0" class="card-list">
<el-row :gutter="10" >
<el-col v-for="shortcut in showRoutes" :key="shortcut.id" class="shortcutCard" :xs="12" :sm="8" :md="8" :xl="6">
<SvgIcon name="ele-Close" :size="12" class="shortcutCardClose" @click="handleCloseFavorite(shortcut)" />
<shortcutCard :icon="shortcut.meta?.icon" :label="shortcut.name" @click="handleRoute(shortcut.path)" />
</el-col>
</el-row>
</div>
<el-empty v-else :image-size="48" :description="props.emptyDescription" />
</el-card>
</template>
@@ -85,7 +87,11 @@ const showRoutes = computed(() => {
}
}
// SPDM CODE
.menu-list {
height: 300px;
.card-list {
height: 310px;
overflow-y: auto;
overflow-x: hidden;
}
</style>