Browse Source

根据orgType标识当前选中

picasso 3 years ago
parent
commit
147b63254d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/heatingDistrict/heatingDistrictManage/index.vue

+ 1 - 1
src/views/heatingDistrict/heatingDistrictManage/index.vue

@@ -13,7 +13,7 @@
 				:expand-on-click-node="false"
 				:expand-on-click-node="false"
 			>
 			>
 				<template #default="{ node, data }">
 				<template #default="{ node, data }">
-					<span class="custom-tree-node" :class="{ active: data.id === curNode.id }">
+					<span class="custom-tree-node" :class="{ active: `${data.id}-${data.orgType}` === `${curNode.id}-${curNode.orgType}` }">
 						<span>{{ data.orgName }}</span>
 						<span>{{ data.orgName }}</span>
 					</span>
 					</span>
 				</template>
 				</template>