Browse Source

上传纸值文件添加按钮逻辑优化

wangxiaoyi 10 months ago
parent
commit
00729740ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/infosManage/opRecordUpload.vue

+ 1 - 1
src/views/infosManage/opRecordUpload.vue

@@ -254,7 +254,7 @@ export default {
             this.addDataCont = { fenLei: nodeData.name, fenLeiId: nodeId }
             // 文件控制-纸质运行记录上传页面,无下级菜单且无添加按钮时显示添加按钮(仅对纸质运行记录上传列表生效)
             if (this.pageKey === 'ywyxjlsc') {
-                const noChildren = nodeData.isLeaf === 'Y'
+                const noChildren = !nodeData.children?.length
                 const hasAddBtn = this.listConfig.toolbars.some(el => el.key === 'add')
 
                 if (!noChildren && hasAddBtn) {