factor 飞机管理 启用状态屏蔽

This commit is contained in:
oldHome 2025-06-27 22:03:01 +08:00
parent 4ab76bfafe
commit 1a695ffaaa
2 changed files with 3 additions and 10 deletions

View File

@ -37,7 +37,7 @@
</el-form-item>
<!-- 启用/停用开关 -->
<el-form-item :label="form.onoff ? '启用' : '停用'">
<el-form-item v-show="false" :label="form.onoff ? '启用' : '停用'">
<el-switch v-model="form.onoff" />
</el-form-item>
@ -57,7 +57,7 @@
<el-form-item label="">
<el-descriptions v-if="selectedPlaneClass" title="机型信息" :column="3" border>
<el-descriptions-item label="最大载重">
{{ selectedPlaneClass.weight_max }} kg
{{ selectedPlaneClass.weight_max / 1000 }} KG
</el-descriptions-item>
<el-descriptions-item label="轴距">
{{ selectedPlaneClass.wheelbase }} cm

View File

@ -32,14 +32,7 @@
</el-tag>
</template>
</el-table-column>
<el-table-column label="状态" min-width="150" show-overflow-tooltip>
<template slot-scope="scope">
<el-tag :type="scope.row.onoff === '1' ? 'success' : 'danger'">
<i style="" class="iconfont m-r-5 f-s-16 l-h-32"
:class="scope.row.onoff === '1' ? 'icon-qiyong' : 'icon-ic_tingyong'"></i>
<font>{{ scope.row.onoff === '1' ? '启用' : '停用' }}</font>
</el-tag>
</template>
<el-table-column prop="describe" label="描述" min-width="80" show-overflow-tooltip>
</el-table-column>
<el-table-column label="注册时间" width="100" min-width="80">
<template slot-scope="scope">