Эх сурвалжийг харах

😁机构树形列表增加图标显示

zuohuaijun 2 жил өмнө
parent
commit
8dfbe4a243

+ 5 - 1
Web/src/views/system/org/component/orgTree.vue

@@ -39,7 +39,11 @@
 				:default-checked-keys="state.ownOrgData"
 				highlight-current
 				check-strictly
-			/>
+			>
+				<template #default="{ node }">
+					<el-icon><ele-School /></el-icon>{{ node.label }}
+				</template>
+			</el-tree>
 		</div>
 	</el-card>
 </template>