|
@@ -90,13 +90,13 @@ export default {
|
|
this.checkedData = {}
|
|
this.checkedData = {}
|
|
|
|
|
|
if (this.num != 1) {
|
|
if (this.num != 1) {
|
|
- debugger
|
|
|
|
|
|
+
|
|
if (checked) {
|
|
if (checked) {
|
|
if (!!data.children && data.children.length > 0) {
|
|
if (!!data.children && data.children.length > 0) {
|
|
console.log("有子节点不可选")
|
|
console.log("有子节点不可选")
|
|
} else {
|
|
} else {
|
|
this.checkedData = data;
|
|
this.checkedData = data;
|
|
- debugger
|
|
|
|
|
|
+
|
|
this.valued.push(Number(this.checkedData.value));
|
|
this.valued.push(Number(this.checkedData.value));
|
|
this.Informationed.push(this.checkedData.name);
|
|
this.Informationed.push(this.checkedData.name);
|
|
}
|
|
}
|
|
@@ -115,7 +115,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
- debugger
|
|
|
|
|
|
+
|
|
if (checked) {
|
|
if (checked) {
|
|
if (!!data.children && data.children.length > 0) {
|
|
if (!!data.children && data.children.length > 0) {
|
|
console.log("有子节点不可选")
|
|
console.log("有子节点不可选")
|
|
@@ -154,7 +154,7 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
submit () {
|
|
submit () {
|
|
- debugger
|
|
|
|
|
|
+
|
|
if (this.num == 1) {
|
|
if (this.num == 1) {
|
|
this.positionInformation.push({ positionInformation: this.Information, id: this.id, value: this.value });
|
|
this.positionInformation.push({ positionInformation: this.Information, id: this.id, value: this.value });
|
|
} else {
|
|
} else {
|
|
@@ -186,7 +186,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
garage () {
|
|
garage () {
|
|
- this.$http.get('/sc-community/assets/tree/garage/find').then(({ data, status, msg }) => {
|
|
|
|
|
|
+ this.$http.get('/sc-community/assets/tree/garage/findNew').then(({ data, status, msg }) => {
|
|
this.dataRes = data;
|
|
this.dataRes = data;
|
|
this.filterTreeData(this.dataRes);
|
|
this.filterTreeData(this.dataRes);
|
|
this.tenantsTree = this.dataRes;
|
|
this.tenantsTree = this.dataRes;
|
|
@@ -202,14 +202,14 @@ export default {
|
|
// this.value = this.params.value;
|
|
// this.value = this.params.value;
|
|
// 显示
|
|
// 显示
|
|
|
|
|
|
- debugger
|
|
|
|
|
|
+
|
|
this.num = this.params.count
|
|
this.num = this.params.count
|
|
if (this.num == 1) {
|
|
if (this.num == 1) {
|
|
this.Information = this.params.positionInformation;
|
|
this.Information = this.params.positionInformation;
|
|
this.value = this.params.value;
|
|
this.value = this.params.value;
|
|
this.defaultcheckedkeys = [this.params.value];
|
|
this.defaultcheckedkeys = [this.params.value];
|
|
} else {
|
|
} else {
|
|
- debugger
|
|
|
|
|
|
+
|
|
if (this.params.positionInformation != '') {
|
|
if (this.params.positionInformation != '') {
|
|
let positionInformation = (this.params.positionInformation).split(',')
|
|
let positionInformation = (this.params.positionInformation).split(',')
|
|
this.Informationed = positionInformation;
|
|
this.Informationed = positionInformation;
|