|
|
@@ -17,38 +17,38 @@ type CardKey =
|
|
|
|
|
|
type CardConfig = SummaryCardConfig<CardKey>
|
|
|
|
|
|
-const cardConfigs: CardConfig[] = [
|
|
|
+const cardConfigs: CardConfig[] = computed(() => [
|
|
|
{
|
|
|
key: 'layers',
|
|
|
- title: '压裂层数',
|
|
|
+ title: t('stat.rdkb1vue290085-23'),
|
|
|
icon: 'i-solar:clipboard-remove-linear',
|
|
|
accent: THEME.color.orange.strong,
|
|
|
glow: THEME.color.orange.glow
|
|
|
},
|
|
|
{
|
|
|
key: 'wells',
|
|
|
- title: '总井数',
|
|
|
+ title: t('stat.rdkb1vue290085-24'),
|
|
|
icon: 'i-solar:clipboard-remove-linear',
|
|
|
accent: THEME.color.orange.strong,
|
|
|
glow: THEME.color.orange.glow
|
|
|
},
|
|
|
{
|
|
|
key: 'device',
|
|
|
- title: '设备数',
|
|
|
+ title: t('stat.rdkb1vue290085-25'),
|
|
|
icon: 'i-material-symbols:device-hub-rounded',
|
|
|
accent: THEME.color.blue.strong,
|
|
|
glow: THEME.color.blue.glow
|
|
|
},
|
|
|
{
|
|
|
key: 'maintain',
|
|
|
- title: '维修工单',
|
|
|
+ title: t('stat.rdkb1vue290085-26'),
|
|
|
icon: 'i-material-symbols:home-repair-service',
|
|
|
accent: THEME.color.orange.strong,
|
|
|
glow: THEME.color.orange.glow
|
|
|
},
|
|
|
{
|
|
|
key: 'unfilledCount',
|
|
|
- title: '运行未填写',
|
|
|
+ title: t('stat.operationNotFilled'),
|
|
|
icon: 'i-solar:clipboard-remove-linear',
|
|
|
accent: THEME.color.orange.strong,
|
|
|
glow: THEME.color.orange.glow
|
|
|
@@ -56,19 +56,19 @@ const cardConfigs: CardConfig[] = [
|
|
|
|
|
|
{
|
|
|
key: 'bytodo',
|
|
|
- title: '待巡检',
|
|
|
+ title: t('stat.rdkb1vue290085-28'),
|
|
|
icon: 'i-solar:shield-warning-linear',
|
|
|
accent: THEME.color.orange.strong,
|
|
|
glow: THEME.color.orange.glow
|
|
|
},
|
|
|
{
|
|
|
key: 'inspectttodo',
|
|
|
- title: '待保养',
|
|
|
+ title: t('stat.rdkb1vue290085-29'),
|
|
|
icon: 'i-solar:map-point-search-linear',
|
|
|
accent: THEME.color.orange.strong,
|
|
|
glow: THEME.color.orange.glow
|
|
|
}
|
|
|
-]
|
|
|
+])
|
|
|
|
|
|
function createDefaultCardState(): Record<CardKey, CardStateItem> {
|
|
|
return {
|
|
|
@@ -86,7 +86,7 @@ function createDefaultCardState(): Record<CardKey, CardStateItem> {
|
|
|
const cardState = reactive<Record<CardKey, CardStateItem>>(createDefaultCardState())
|
|
|
|
|
|
const summaryCards = computed(() =>
|
|
|
- cardConfigs.map((card) => ({
|
|
|
+ cardConfigs.value.map((card) => ({
|
|
|
...card,
|
|
|
value: cardState[card.key].value,
|
|
|
loading: cardState[card.key].loading
|
|
|
@@ -267,8 +267,9 @@ onMounted(() => {
|
|
|
<div class="panel-title summary-panel__title">
|
|
|
<div class="icon-decorator">
|
|
|
<span></span>
|
|
|
- <span></span>
|
|
|
- </div>{{ t('stat.rdsummaryv637921-0') }}</div>
|
|
|
+ <span></span> </div
|
|
|
+ >{{ t('stat.rdsummaryv637921-0') }}</div
|
|
|
+ >
|
|
|
|
|
|
<div class="summary-panel__grid grid grid-cols-7 flex-1">
|
|
|
<article
|