|
@@ -1,25 +1,33 @@
|
|
<template>
|
|
<template>
|
|
<ContentWrap v-loading="formLoading">
|
|
<ContentWrap v-loading="formLoading">
|
|
<ContentWrap>
|
|
<ContentWrap>
|
|
- <el-form style="height:39px;margin-left: 15px;">
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="6">
|
|
|
|
|
|
+ <el-form style="height:89px;margin-left: 15px;">
|
|
|
|
+ <el-row style="display: flex;flex-direction: row; ">
|
|
|
|
+<!-- <el-col :span="6">-->
|
|
<el-form-item prop="deviceCode">
|
|
<el-form-item prop="deviceCode">
|
|
<template #label>
|
|
<template #label>
|
|
<span class="custom-label">资产编码:</span>
|
|
<span class="custom-label">资产编码:</span>
|
|
</template>
|
|
</template>
|
|
<span class="custom-label">{{ formData.deviceCode }}</span>
|
|
<span class="custom-label">{{ formData.deviceCode }}</span>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- </el-col>
|
|
|
|
- <el-col :span="6">
|
|
|
|
|
|
+<!-- </el-col>-->
|
|
|
|
+<!-- <el-col :span="6">-->
|
|
<el-form-item prop="deviceName">
|
|
<el-form-item prop="deviceName">
|
|
<template #label>
|
|
<template #label>
|
|
<span class="custom-label">设备类别:</span>
|
|
<span class="custom-label">设备类别:</span>
|
|
</template>
|
|
</template>
|
|
<span class="custom-label">{{ formData.deviceName }}</span>
|
|
<span class="custom-label">{{ formData.deviceName }}</span>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- </el-col>
|
|
|
|
- <el-col :span="6">
|
|
|
|
|
|
+<!-- </el-col>-->
|
|
|
|
+<!-- <el-col :span="6">-->
|
|
|
|
+ <el-form-item prop="dept">
|
|
|
|
+ <template #label>
|
|
|
|
+ <span class="custom-label">所在部门:</span>
|
|
|
|
+ </template>
|
|
|
|
+ <span class="custom-label">{{ formData.dept }}</span>
|
|
|
|
+ </el-form-item>
|
|
|
|
+<!-- </el-col>-->
|
|
|
|
+<!-- <el-col :span="6">-->
|
|
<el-form-item prop="ifInline">
|
|
<el-form-item prop="ifInline">
|
|
<template #label>
|
|
<template #label>
|
|
<span class="custom-label">是否在线:</span>
|
|
<span class="custom-label">是否在线:</span>
|
|
@@ -32,15 +40,15 @@
|
|
</template>
|
|
</template>
|
|
<!-- </span>-->
|
|
<!-- </span>-->
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- </el-col>
|
|
|
|
- <el-col :span="6">
|
|
|
|
|
|
+<!-- </el-col>-->
|
|
|
|
+<!-- <el-col :span="6">-->
|
|
<el-form-item prop="lastInlineTime">
|
|
<el-form-item prop="lastInlineTime">
|
|
<template #label>
|
|
<template #label>
|
|
<span class="custom-label">最后数据时间:</span>
|
|
<span class="custom-label">最后数据时间:</span>
|
|
</template>
|
|
</template>
|
|
<span class="custom-label">{{ formData.lastInlineTime }}</span>
|
|
<span class="custom-label">{{ formData.lastInlineTime }}</span>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- </el-col>
|
|
|
|
|
|
+<!-- </el-col>-->
|
|
</el-row>
|
|
</el-row>
|
|
</el-form>
|
|
</el-form>
|
|
</ContentWrap>
|
|
</ContentWrap>
|
|
@@ -169,6 +177,7 @@ onMounted(async () => {
|
|
formData.value.deviceName = params.name
|
|
formData.value.deviceName = params.name
|
|
formData.value.lastInlineTime = params.time
|
|
formData.value.lastInlineTime = params.time
|
|
formData.value.ifInline = params.ifInline
|
|
formData.value.ifInline = params.ifInline
|
|
|
|
+ formData.value.dept = params.dept
|
|
await IotDeviceApi.getIotDeviceTds(id).then(res => {
|
|
await IotDeviceApi.getIotDeviceTds(id).then(res => {
|
|
specs.value = res
|
|
specs.value = res
|
|
specs.value = specs.value.sort((a, b) => {
|
|
specs.value = specs.value.sort((a, b) => {
|