|
@@ -1316,7 +1316,9 @@ export default {
|
|
|
label: 'name',
|
|
|
children: 'children',
|
|
|
disabled: 'hasChildren',
|
|
|
- // isLeaf: !'hasChildren',
|
|
|
+ isLeaf: function (data) {
|
|
|
+ return !data.hasChildren || (data.isExistForm == 1);
|
|
|
+ },
|
|
|
},
|
|
|
exceldata: [],//清表模板
|
|
|
//#endregion
|
|
@@ -1337,8 +1339,8 @@ export default {
|
|
|
children: 'children',
|
|
|
label: 'title',
|
|
|
isLeaf: function (data) {
|
|
|
- return !data.hasChildren;
|
|
|
- }
|
|
|
+ return !data.hasChildren || (data.isExistForm == 1);
|
|
|
+ },
|
|
|
},
|
|
|
leftType: 5,
|
|
|
curTreeData: {},
|
|
@@ -1931,10 +1933,10 @@ export default {
|
|
|
},
|
|
|
|
|
|
//解析元素数据类型
|
|
|
- eTypeFormatter(row){
|
|
|
+ eTypeFormatter (row) {
|
|
|
let text = '';
|
|
|
for (let i = 0; i < this.dataTypeList.length; i++) {
|
|
|
- if(this.dataTypeList[i].dictKey == row.eType){
|
|
|
+ if (this.dataTypeList[i].dictKey == row.eType) {
|
|
|
text = this.dataTypeList[i].dictValue;
|
|
|
break;
|
|
|
}
|