From bac55171c8b3e3c6559383835647ae7c34d787ba Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期二, 24 九月 2024 17:47:43 +0800
Subject: [PATCH] 新增 设备状态
---
src/views/ecg/devmanage/index.vue | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/src/views/ecg/devmanage/index.vue b/src/views/ecg/devmanage/index.vue
index d67720b..fe3b320 100644
--- a/src/views/ecg/devmanage/index.vue
+++ b/src/views/ecg/devmanage/index.vue
@@ -101,13 +101,7 @@
<!-- 鍒楄〃 -->
<ContentWrap>
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
- <el-table-column label="id" align="center" prop="id" />
- <el-table-column label="--" align="center" prop="lost" >
- <template #default="scope">
- {{scope.row.lost == 1 ? "閬楀け" : ""}}
- </template>
- </el-table-column>
- <el-table-column label="閲囪喘鏃ユ湡" align="center" prop="purchaseDate" :formatter="dateFormatter2" width="120px"/>
+ <!-- <el-table-column label="id" align="center" prop="id" />-->
<el-table-column label="璁惧缂栧彿" align="center" prop="devId" width="100px" />
<el-table-column label="鍒嗙被鍚�" align="center" prop="category">
<template #default="scope">
@@ -120,6 +114,14 @@
</template>
</el-table-column>
<el-table-column label="鍨嬪彿" align="center" prop="model" />
+ <el-table-column label="浣跨敤鎯呭喌" align="center" prop="lost" >
+ <template #default="scope">
+ <span v-if="scope.row.state === 0">绌洪棽</span>
+ <span v-if="scope.row.state === 10">浣跨敤涓�</span>
+ <span v-if="scope.row.state === 20">宸查仐澶�</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="閲囪喘鏃ユ湡" align="center" prop="purchaseDate" :formatter="dateFormatter2" width="120px"/>
<el-table-column
label="鍒涘缓鏃堕棿"
align="center"
--
Gitblit v1.9.3