Bladeren bron

Merge remote-tracking branch 'origin/master'

zhangcl 1 maand geleden
bovenliggende
commit
abcc416cec

+ 3 - 0
src/api/pms/stat/index.ts

@@ -110,6 +110,9 @@ export const IotStatApi = {
   getSafeCount: async () => {
     return await request.get({ url: `/rq/stat/home/safe` })
   },
+  getMttr: async () => {
+    return await request.get({ url: `/rq/stat/mttr` })
+  },
   getMaterial: async () => {
     return await request.get({ url: `/pms/iot-outbound/materials/top` })
   },

+ 2 - 2
src/components/SummaryCard/index.vue

@@ -1,10 +1,10 @@
 <template>
   <div class="flex flex-row items-center gap-3 rounded bg-[var(--el-bg-color-overlay)] p-4" style="background-color: rgba(0, 0, 0, 0.3);">
     <div
-      class="h-12 w-12 flex flex-shrink-0 items-center justify-center rounded-1"
+      class="h-9 w-9 flex flex-shrink-0 items-center justify-center rounded-1"
       :class="`${iconColor} ${iconBgColor}`"
     >
-      <Icon :icon="icon" class="!text-6" />
+      <Icon :icon="icon" class="!text-5" />
     </div>
     <div class="flex flex-col gap-1">
       <div class="flex items-center gap-1 text-gray-500">

+ 5 - 1
src/views/Home/Index.vue

@@ -168,7 +168,7 @@
             <!--            <span class="text-gray-500 text-base font-medium">平均解决时间</span>-->
             <!--            <Icon icon="ep:menu" class="text-[32px] text-blue-400" />-->
             <span class="text-5xl font-bold text-gray-700" style="color: lightseagreen">
-              {{ 4.8 }}
+              {{ mttr+'h' }}
             </span>
             <span class="text-5xl font-bold text-gray-700" style="color: indianred">
               {{ safe }}
@@ -340,6 +340,7 @@ const messageStats = ref<IotStatisticsDeviceMessageSummaryRespVO>({
   upstreamCounts: {},
   downstreamCounts: {}
 })
+const mttr = ref()
 const safe = ref()
 /** 获取统计数据 */
 const getStats = async () => {
@@ -371,6 +372,9 @@ const getStats = async () => {
   IotStatApi.getSafeCount().then((res) => {
     safe.value = res
   })
+  IotStatApi.getMttr().then((res) => {
+    mttr.value = res
+  })
   IotStatApi.getOrderSeven('156').then((res) => {
     orderSevenData.value = res
     initQxChart()

+ 2 - 2
src/views/pms/maintain/IotMaintainDetail.vue

@@ -130,7 +130,7 @@
 <!--              <el-input v-model="formData.maintainFee" :disabled="true" />-->
 <!--            </el-form-item>-->
 <!--          </el-col>-->
-                    <el-col :span="8" v-if="formData.type === 'out'&&formData.maintainPerson===userId">
+                    <el-col :span="8" v-if="formData.type === 'out'">
                       <el-form-item :label="t('iotMaintain.supplier')" prop="supplier">
                         <el-select
                           disabled
@@ -153,7 +153,7 @@
                         />
                       </el-form-item>
                     </el-col>
-                    <el-col :span="8" v-if="formData.type === 'out'&&formData.maintainPerson===userId">
+                    <el-col :span="8" v-if="formData.type === 'out'">
                       <el-form-item :label="t('iotMaintain.attachment')" prop="outFiles">
                         <UploadFile disabled="" v-model="formData.outFiles" class="min-w-80px" />
                       </el-form-item>

+ 2 - 2
src/views/pms/stat/inspect.vue

@@ -587,7 +587,7 @@ const initCharts = () => {
       ignoreTodayChartRef.value,
       todayStatus.value.ignore === undefined ? 0 : todayStatus.value.ignore,
       'purple',
-      '忽略'
+      '设备忽略'
   )
   //已执行
   initGaugeChart(
@@ -608,7 +608,7 @@ const initCharts = () => {
     ignoreChartRef.value,
     status.value.ignore === undefined ? 0 : status.value.ignore,
     'purple',
-    '忽略'
+    '工单忽略'
   )
   //工单已执行
   initGaugeChart(