修复选择通道时默认节点显示错误的问题

This commit is contained in:
648540858
2022-09-06 16:31:28 +08:00
parent d5e8aa62a1
commit e7bdcc1f8d
5 changed files with 25 additions and 10 deletions

View File

@@ -8,7 +8,7 @@
<el-tab-pane label="目录结构" name="catalog">
<el-container>
<el-main v-bind:style="{backgroundColor: '#FFF', maxHeight: winHeight + 'px'}">
<chooseChannelForCatalog ref="chooseChannelForCatalog" :platformId=platformId :platformName=platformName :defaultCatalogId=defaultCatalogId :catalogIdChange="catalogIdChange" :treeType=treeType ></chooseChannelForCatalog>
<chooseChannelForCatalog ref="chooseChannelForCatalog" :platformId=platformId :platformDeviceId=platformDeviceId :platformName=platformName :defaultCatalogId=defaultCatalogId :catalogIdChange="catalogIdChange" :treeType=treeType ></chooseChannelForCatalog>
</el-main>
</el-container>
</el-tab-pane>
@@ -60,6 +60,7 @@ export default {
tabActiveName: "gbChannel",
catalogTabActiveName: "catalog",
platformId: "",
platformDeviceId: "",
catalogId: "",
catalogName: "",
currentCatalogId: "",
@@ -73,8 +74,10 @@ export default {
};
},
methods: {
openDialog(platformId, platformName, defaultCatalogId, treeType, closeCallback) {
openDialog(platformId, platformDeviceId, platformName, defaultCatalogId, treeType, closeCallback) {
console.log("defaultCatalogId: " + defaultCatalogId)
this.platformId = platformId
this.platformDeviceId = platformDeviceId
this.platformName = platformName
this.defaultCatalogId = defaultCatalogId
this.showDialog = true