|
@@ -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: [],//新增元素信息表
|