|
@@ -69,6 +69,7 @@
|
|
|
v-show="GLExcelFromtag1"
|
|
|
:show-checkbox="activeName == 'add'"
|
|
|
:default--checked-keys="selectNodeIds"
|
|
|
+ :check-strictly="true"
|
|
|
>
|
|
|
</el-tree>
|
|
|
</el-scrollbar>
|
|
@@ -213,6 +214,15 @@ export default {
|
|
|
return true;
|
|
|
}
|
|
|
},
|
|
|
+ disabled: function (data) {
|
|
|
+ if (data.hasChildren && data.isExistForm != 1) {
|
|
|
+ return true;
|
|
|
+ } else if (data.hasChildren && data.isExistForm == 1) {
|
|
|
+ return false;
|
|
|
+ } else {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
exceldata:[],
|
|
|
selectNodeIds:[],
|
|
@@ -223,6 +233,15 @@ export default {
|
|
|
label: "title",
|
|
|
children: "children",
|
|
|
isLeaf: "hasChildren",
|
|
|
+ disabled: function (data) {
|
|
|
+ if (data.hasChildren && data.isExistForm != 1) {
|
|
|
+ return true;
|
|
|
+ } else if (data.hasChildren && data.isExistForm == 1) {
|
|
|
+ return false;
|
|
|
+ } else {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
addElementForm: {
|