فهرست منبع

更新 船舶状态字段

王智慧 3 سال پیش
والد
کامیت
104f89da4e
1فایلهای تغییر یافته به همراه16 افزوده شده و 0 حذف شده
  1. 16 0
      src/views/shipManage/shipList.vue

+ 16 - 0
src/views/shipManage/shipList.vue

@@ -60,6 +60,22 @@
           min-width="100"
           align="center"
         ></el-table-column>
+        <el-table-column
+          prop="phone"
+          label="状态"
+          min-width="60"
+          align="center"
+        >
+          <template v-slot="scope">
+            <div
+              :style="{
+                color: scope.row.hasMmsi == 1 ? 'red' : '#333',
+              }"
+            >
+              {{ scope.row.hasMmsi == 1 ? "异常" : "正常" }}
+            </div>
+          </template>
+        </el-table-column>
         <el-table-column
           prop="createTime"
           label="创建时间"