gangyj 3 лет назад
Родитель
Сommit
32fe7b635e
1 измененных файлов с 9 добавлено и 1 удалено
  1. 9 1
      src/views/exctab/ElementIdentification/index.vue

+ 9 - 1
src/views/exctab/ElementIdentification/index.vue

@@ -311,7 +311,15 @@ export default {
       GLExcelProps: {
         label: 'title',
         children: 'children',
-        isLeaf: 'isExistForm',
+        isLeaf: function (data) {
+          if (data.hasChildren && data.isExistForm != 1) {
+            return false
+          } else if (data.hasChildren && data.isExistForm == 1) {
+            return true
+          } else {
+            return true
+          }
+        }
       },
       exceldata: [],//清表模板树数据
       addTableData: [],//新增元素信息表