|
@@ -82,7 +82,6 @@ export default {
|
|
|
/** 控制树形单选 */
|
|
|
checkChange (data, checked) {
|
|
|
this.checkedData = {}
|
|
|
- debugger
|
|
|
if (checked) {
|
|
|
if (!!data.children && data.children.length > 0) {
|
|
|
console.log("有子节点不可选")
|
|
@@ -103,14 +102,14 @@ export default {
|
|
|
|
|
|
},
|
|
|
submit () {
|
|
|
- debugger
|
|
|
+
|
|
|
this.positionInformation.push({ positionInformation: this.Information, id: this.id, value: this.value });
|
|
|
this.params.callback(this.positionInformation);
|
|
|
this.$emit('close');
|
|
|
},
|
|
|
|
|
|
filterTreeData (trData) {
|
|
|
- debugger
|
|
|
+ console.log(trData)
|
|
|
trData.map((item, index) => {
|
|
|
if (this.isNotEmpty(item.children)) {
|
|
|
item.disabled = true;
|
|
@@ -124,9 +123,9 @@ export default {
|
|
|
return arr && Array.isArray(arr) && arr.length > 0;
|
|
|
},
|
|
|
thisCheck (ev, node, data) {
|
|
|
- debugger
|
|
|
+
|
|
|
if (!data.disabled) {
|
|
|
- node.checked = !node.checked;
|
|
|
+ node.checked = node.checked;
|
|
|
}
|
|
|
},
|
|
|
garage () {
|