|
@@ -1,26 +1,44 @@
|
|
<template>
|
|
<template>
|
|
<ContentWrap v-loading="formLoading">
|
|
<ContentWrap v-loading="formLoading">
|
|
<ContentWrap>
|
|
<ContentWrap>
|
|
- <el-form>
|
|
|
|
|
|
+ <el-form style="height:39px;margin-left: 15px;">
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
- <el-form-item label="资产编码:" prop="deviceCode"
|
|
|
|
- >{{ formData.deviceCode }}
|
|
|
|
|
|
+ <el-form-item prop="deviceCode">
|
|
|
|
+ <template #label>
|
|
|
|
+ <span class="custom-label">资产编码:</span>
|
|
|
|
+ </template>
|
|
|
|
+ <span class="custom-label">{{ formData.deviceCode }}</span>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
- <el-form-item label="设备类别:" prop="deviceName"
|
|
|
|
- >{{ formData.deviceName }}
|
|
|
|
|
|
+ <el-form-item prop="deviceName">
|
|
|
|
+ <template #label>
|
|
|
|
+ <span class="custom-label">设备类别:</span>
|
|
|
|
+ </template>
|
|
|
|
+ <span class="custom-label">{{ formData.deviceName }}</span>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
- <el-form-item label="是否在线:" prop="ifInline"
|
|
|
|
- >{{ getDictLabel(DICT_TYPE.IOT_DEVICE_STATUS, formData.ifInline) }}
|
|
|
|
|
|
+ <el-form-item prop="ifInline">
|
|
|
|
+ <template #label>
|
|
|
|
+ <span class="custom-label">是否在线:</span>
|
|
|
|
+ </template>
|
|
|
|
+<!-- <span class="custom-label">{{ getDictLabel(DICT_TYPE.IOT_DEVICE_STATUS, formData.ifInline) }}</span>-->
|
|
|
|
+<!-- <span class="custom-label">-->
|
|
|
|
+<!-- {{ getDictLabel(DICT_TYPE.IOT_DEVICE_STATUS, formData.ifInline) }}-->
|
|
|
|
+ <template #default>
|
|
|
|
+ <dict-tag :type="DICT_TYPE.IOT_DEVICE_STATUS" :value="formData.ifInline" />
|
|
|
|
+ </template>
|
|
|
|
+<!-- </span>-->
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
- <el-form-item label="最后在线时间:" prop="lastInlineTime"
|
|
|
|
- >{{ formData.lastInlineTime }}
|
|
|
|
|
|
+ <el-form-item prop="lastInlineTime">
|
|
|
|
+ <template #label>
|
|
|
|
+ <span class="custom-label">最后数据时间:</span>
|
|
|
|
+ </template>
|
|
|
|
+ <span class="custom-label">{{ formData.lastInlineTime }}</span>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -276,4 +294,7 @@ input[type="datetime-local"]:focus {
|
|
height: 500px;
|
|
height: 500px;
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
}
|
|
|
|
+.custom-label{
|
|
|
|
+ font-size: 15px;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|