fix:修复项目详情子设备类型切换不刷新问题,分屏展示修复记录状态关闭视频左侧状态不刷新问题
This commit is contained in:
parent
119f0b2015
commit
b5a1e98e49
|
@ -50,13 +50,14 @@
|
||||||
style="margin-left: 5xp; width: 130px"
|
style="margin-left: 5xp; width: 130px"
|
||||||
placeholder="请选择项目类型"
|
placeholder="请选择项目类型"
|
||||||
size="small"
|
size="small"
|
||||||
|
@change="getTableFilterList"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in projectModelList"
|
v-for="dict in projectModelList"
|
||||||
:key="dict.prodKey"
|
:key="dict.prodKey"
|
||||||
:label="dict.modelName"
|
:label="dict.modelName"
|
||||||
:value="dict.prodKey"
|
:value="dict.prodKey"
|
||||||
@change="getTableFilterList"
|
|
||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -22,7 +22,16 @@ export function init(list = []) {
|
||||||
if (cook) {
|
if (cook) {
|
||||||
for(let i in treeChildList) {
|
for(let i in treeChildList) {
|
||||||
if (treeChildList[i].devChannel === cook['devChannel'] && treeChildList[i].devId === cook['devId']) {
|
if (treeChildList[i].devChannel === cook['devChannel'] && treeChildList[i].devId === cook['devId']) {
|
||||||
newResult[idx] = cook
|
let record = treeChildList[i];
|
||||||
|
newResult[idx] = Object.assign(cook, {
|
||||||
|
devChannel: record.devChannel || record.devChannel,
|
||||||
|
devId: record.devId,
|
||||||
|
https: record.https,
|
||||||
|
siteM7sHost: record.siteM7sHost,
|
||||||
|
siteM7sPort: record.siteM7sPort,
|
||||||
|
siteM7sVersion: record.siteM7sVersion,
|
||||||
|
treeId: record.treeId,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue