Browse Source

人力资源人数显示优化

zck 1 year ago
parent
commit
999ad5e9fb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/view/yunyin/renliziyuan/renyuanjibenziliao.vue

+ 2 - 1
src/view/yunyin/renliziyuan/renyuanjibenziliao.vue

@@ -27,7 +27,8 @@
             <!--<template #default="{node,data}">{{data['名称']}}<{{data['num']}}人></template>-->
               <template #default="{ node, data }">
                 {{ data['名称'] }}
-                <{{ data['num'] ? data['num'] + '人' : data['total'] + '人' }}>
+                <{{ (data['num'] || data['total'] || 0) + '人' }}>
+
               </template>
             </el-tree>
           </div>