feat: 修改设备类型展示方式
This commit is contained in:
parent
32b38257d1
commit
cef7871eba
@ -194,28 +194,10 @@ function handleDownloadExcel() {
|
|||||||
</div>
|
</div>
|
||||||
<!-- 详情展示 -->
|
<!-- 详情展示 -->
|
||||||
<a-card v-if="detailData" :title="detailData.machineTypeName">
|
<a-card v-if="detailData" :title="detailData.machineTypeName">
|
||||||
<a-descriptions
|
<p><b>类型名称:</b>{{ detailData.machineTypeName }}</p>
|
||||||
bordered
|
<p><b>类型编号:</b>{{ detailData.machineTypeCode }}</p>
|
||||||
:column="2"
|
<p><b>是否启用:</b>{{ detailData.isEnable == '1' ? '启用' : '禁用' }}</p>
|
||||||
size="middle"
|
<p><b>备注:</b>{{ detailData.remark || '-' }}</p>
|
||||||
title="设备类型详情"
|
|
||||||
class="mb-2"
|
|
||||||
>
|
|
||||||
<a-descriptions-item label="类型名称">
|
|
||||||
{{ detailData.machineTypeName }}
|
|
||||||
</a-descriptions-item>
|
|
||||||
<a-descriptions-item label="类型编号">
|
|
||||||
{{ detailData.machineTypeCode }}
|
|
||||||
</a-descriptions-item>
|
|
||||||
<a-descriptions-item label="是否启用">
|
|
||||||
<a-tag :color="detailData.isEnable == '1' ? 'green' : 'red'">
|
|
||||||
{{ detailData.isEnable == '1' ? '启用' : '禁用' }}
|
|
||||||
</a-tag>
|
|
||||||
</a-descriptions-item>
|
|
||||||
<a-descriptions-item label="备注">
|
|
||||||
{{ detailData.remark || '-' }}
|
|
||||||
</a-descriptions-item>
|
|
||||||
</a-descriptions>
|
|
||||||
</a-card>
|
</a-card>
|
||||||
<a-empty v-else description="暂无详情" />
|
<a-empty v-else description="暂无详情" />
|
||||||
<MachineTypeModal @reload="() => { reloadTree(); loadDetail(); }" />
|
<MachineTypeModal @reload="() => { reloadTree(); loadDetail(); }" />
|
||||||
|
Loading…
Reference in New Issue
Block a user