吉安感知网项目-前端
shuishen
8 days ago 6e88705bd5b443a259b24c17c8a299765d059d96
applications/drone-command/src/views/basicManage/deviceStock/index.vue
@@ -1,9 +1,9 @@
<template>
   <basic-container>
      <div class="chart">
         <DeviceChart1 :key="updateKey"/>
         <DeviceChart2 :key="updateKey"/>
         <DeviceChart3 :key="updateKey"/>
         <DeviceChart1 :key="updateKey" />
         <DeviceChart2 :key="updateKey" />
         <DeviceChart3 :key="updateKey" />
      </div>
      <el-form ref="queryParamsRef" :model="searchParams" class="command-page-history-search">
@@ -91,7 +91,14 @@
                     {{ getDictLabel(row.trackStatus, trackStatusOptions) }}
                  </template>
               </el-table-column>
               <el-table-column label="操作" class-name="operation-btns" width="196">
               <el-table-column prop="maintenanceStatus" show-overflow-tooltip width="96" label="报废预警">
                  <template v-slot="{ row }">
                     <span :style="{ color: row.maintenanceStatus === 0 ? 'inherit' : 'red' }">
                        {{ row.maintenanceStatus === 0 ? '正常' : '临近报废' }}
                     </span>
                  </template>
               </el-table-column>
               <el-table-column label="操作" class-name="operation-btns" width="196" fixed="right">
                  <template v-slot="{ row }">
                     <el-link @click="handleView(row)">查看</el-link>
                     <el-link @click="handleEdit(row)">编辑</el-link>
@@ -172,7 +179,7 @@
// 出库状态
const trackStatusOptions = ref([
   { dictKey: 0, dictValue: '未出库' },
   { dictKey: 1, dictValue: '已出库' }
   { dictKey: 1, dictValue: '已出库' },
])
const updateKey = ref(0)
@@ -232,7 +239,7 @@
      cancelButtonClass: 'command-message-box-cancel',
   })
   const payload = {
      deviceId: row.id
      deviceId: row.id,
   }
   await fwDeviceUpdateTrackStatusApi(payload)
   ElMessage.success('归还成功')
@@ -341,4 +348,7 @@
      }
   }
}
.danger-text {
   color: red; /* 或者直接用 red */
}
</style>