Commit 0dd05e40 by 张杰

修复

1 parent 2f277c3c
...@@ -88,8 +88,10 @@ ...@@ -88,8 +88,10 @@
<el-form-item label="设备型号:" :prop="'snList.' + index + '.deviceClassifyName'" :rules="[{ required: true, message: '未识别到正确设备型号', trigger:['blur','change']}]"> <el-form-item label="设备型号:" :prop="'snList.' + index + '.deviceClassifyName'" :rules="[{ required: true, message: '未识别到正确设备型号', trigger:['blur','change']}]">
<el-input v-model="item.deviceClassifyName" disabled></el-input> <el-input v-model="item.deviceClassifyName" disabled></el-input>
</el-form-item> </el-form-item>
<template v-if="type == 4">
<span class="device_tips" :class="!item.checkResult?'cred':''" v-if="item.sn">{{item.checkResult?'验证通过':'验证不通过'}}</span> <span class="device_tips" :class="!item.checkResult?'cred':''" v-if="item.sn">{{item.checkResult?'验证通过':'验证不通过'}}</span>
<el-button type="primary" size="mini" class="el_btn" @click="lookLocation(item,index)">查看定位</el-button> <el-button type="primary" size="mini" class="el_btn" @click="lookLocation(item,index)">查看定位</el-button>
</template>
</div> </div>
<map-location :info="getMapInfo(item)" :key="`map_${index}`" v-if="item.showMap"></map-location> <map-location :info="getMapInfo(item)" :key="`map_${index}`" v-if="item.showMap"></map-location>
</template> </template>
...@@ -492,6 +494,10 @@ export default { ...@@ -492,6 +494,10 @@ export default {
// 循环设备 // 循环设备
let arr = []; let arr = [];
if (n.devices && n.devices.length > 0) { if (n.devices && n.devices.length > 0) {
n.devices.map((k) => {
k.deviceClassifyName = k.model;
return k;
});
arr = n.devices; arr = n.devices;
} else { } else {
for (var i = 0; i < m.deviceCnt; i++) { for (var i = 0; i < m.deviceCnt; i++) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!