|
@@ -20,20 +20,20 @@ const activeTimeRange = ref<TimeRange>('day')
|
|
|
const loading = ref(false)
|
|
const loading = ref(false)
|
|
|
const productionList = ref<NptCountItem[]>([])
|
|
const productionList = ref<NptCountItem[]>([])
|
|
|
|
|
|
|
|
-const timeOptions: Array<{ label: string; value: TimeRange }> = [
|
|
|
|
|
- { label: '昨日', value: 'day' },
|
|
|
|
|
- { label: '本月', value: 'month' },
|
|
|
|
|
- { label: '本季', value: 'quarter' },
|
|
|
|
|
- { label: '全年', value: 'year' }
|
|
|
|
|
-]
|
|
|
|
|
-
|
|
|
|
|
-const nptNameMap: Record<string, string> = {
|
|
|
|
|
- no: '无工作量',
|
|
|
|
|
- xcdm: '井场待命',
|
|
|
|
|
- wxz: '维修设备',
|
|
|
|
|
- wz: '物资影响',
|
|
|
|
|
- yc: '异常/复杂'
|
|
|
|
|
-}
|
|
|
|
|
|
|
+const timeOptions = computed(() => [
|
|
|
|
|
+ { label: t('rdkb.yesterday'), value: 'day' },
|
|
|
|
|
+ { label: t('rdkb.this-month'), value: 'month' },
|
|
|
|
|
+ { label: t('rdkb.this-jidu'), value: 'quarter' },
|
|
|
|
|
+ { label: t('rdkb.this-year'), value: 'year' }
|
|
|
|
|
+])
|
|
|
|
|
+
|
|
|
|
|
+const nptNameMap = computed(() => ({
|
|
|
|
|
+ no: t('rdkb.no'),
|
|
|
|
|
+ xcdm: t('rdkb.xcdm'),
|
|
|
|
|
+ wxz: t('rdkb.wxz'),
|
|
|
|
|
+ wz: t('rdkb.wz'),
|
|
|
|
|
+ yc: t('rdkb.yc')
|
|
|
|
|
+})).value
|
|
|
|
|
|
|
|
const productionTopList = computed(() => productionList.value.slice(0, 9))
|
|
const productionTopList = computed(() => productionList.value.slice(0, 9))
|
|
|
const deviceExceptionCount = ref(0)
|
|
const deviceExceptionCount = ref(0)
|
|
@@ -99,8 +99,9 @@ onMounted(() => {
|
|
|
<div class="kb-panel-title-text flex items-center">
|
|
<div class="kb-panel-title-text flex items-center">
|
|
|
<div class="icon-decorator">
|
|
<div class="icon-decorator">
|
|
|
<span></span>
|
|
<span></span>
|
|
|
- <span></span>
|
|
|
|
|
- </div>{{ t('stat.rdexceptio920906-0') }}</div>
|
|
|
|
|
|
|
+ <span></span> </div
|
|
|
|
|
+ >{{ t('stat.rdexceptio920906-0') }}</div
|
|
|
|
|
+ >
|
|
|
<el-segmented
|
|
<el-segmented
|
|
|
v-model="activeTimeRange"
|
|
v-model="activeTimeRange"
|
|
|
:options="timeOptions"
|
|
:options="timeOptions"
|
|
@@ -111,7 +112,8 @@ onMounted(() => {
|
|
|
<div v-loading="loading" class="exception-body">
|
|
<div v-loading="loading" class="exception-body">
|
|
|
<section class="exception-section exception-section--production">
|
|
<section class="exception-section exception-section--production">
|
|
|
<div class="exception-section__title">
|
|
<div class="exception-section__title">
|
|
|
- <span class="exception-section__marker"></span>{{ t('stat.rdexceptio920906-1') }}<span class="exception-section__hint">TOP 9</span>
|
|
|
|
|
|
|
+ <span class="exception-section__marker"></span>{{ t('stat.rdexceptio920906-1')
|
|
|
|
|
+ }}<span class="exception-section__hint">TOP 9</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="production-grid">
|
|
<div class="production-grid">
|
|
|
<div
|
|
<div
|
|
@@ -129,13 +131,16 @@ onMounted(() => {
|
|
|
<span class="production-item__unit">{{ t('stat.rdexceptio920906-2') }}</span>
|
|
<span class="production-item__unit">{{ t('stat.rdexceptio920906-2') }}</span>
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
- <div v-if="!productionTopList.length && !loading" class="exception-empty">{{ t('stat.rdexceptio920906-3') }}</div>
|
|
|
|
|
|
|
+ <div v-if="!productionTopList.length && !loading" class="exception-empty">{{
|
|
|
|
|
+ t('stat.rdexceptio920906-3')
|
|
|
|
|
+ }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
</section>
|
|
</section>
|
|
|
|
|
|
|
|
<section class="exception-section exception-section--device">
|
|
<section class="exception-section exception-section--device">
|
|
|
<div class="exception-section__title">
|
|
<div class="exception-section__title">
|
|
|
- <span class="exception-section__marker"></span>{{ t('stat.rdexceptio920906-4') }}</div>
|
|
|
|
|
|
|
+ <span class="exception-section__marker"></span>{{ t('stat.rdexceptio920906-4') }}</div
|
|
|
|
|
+ >
|
|
|
<div class="device-exception-card">
|
|
<div class="device-exception-card">
|
|
|
<span class="device-exception-card__label">{{ t('stat.rdexceptio920906-5') }}</span>
|
|
<span class="device-exception-card__label">{{ t('stat.rdexceptio920906-5') }}</span>
|
|
|
<span class="device-exception-card__value">{{ deviceExceptionCount }}</span>
|
|
<span class="device-exception-card__value">{{ deviceExceptionCount }}</span>
|