|
@@ -83,7 +83,7 @@
|
|
|
ref="uploaduserlogo"
|
|
|
class="mini-upload"
|
|
|
limit="1"
|
|
|
- action="/czc-community/upload/uploadFile"
|
|
|
+ action="/sc-community/upload/uploadFile"
|
|
|
:on-success="uploadsuccess"
|
|
|
:before-upload="beforeAvatarUpload"
|
|
|
:auto-upload="true"
|
|
@@ -619,10 +619,8 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
optionTree: [],
|
|
|
- shareScope: '',
|
|
|
- idTree: '',
|
|
|
- shareScopeId: 0,
|
|
|
- shareScopeTree: '',
|
|
|
+ shareScope: [],
|
|
|
+ shareScopeID: [],
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -630,13 +628,16 @@ export default {
|
|
|
debugger
|
|
|
var data = this.$refs[`getChecked${index}`][0].getCheckedNodes();
|
|
|
|
|
|
-
|
|
|
-
|
|
|
console.log(data)
|
|
|
+ this.shareScope = [];
|
|
|
for (let a = 0; a < data.length; a++) {
|
|
|
if (data[a].children.length != 0) {
|
|
|
if (data[0].path[0] == data[data.length - 1].path[0]) {
|
|
|
|
|
|
+ for (let i = 0; i < data.length; i++) {
|
|
|
+ this.shareScope.push(data[i].path[1]);
|
|
|
+ }
|
|
|
+
|
|
|
// this.houseInformation[index].region = [];
|
|
|
// var houseInformation = [];
|
|
|
// for (let i = 0; i < data.length; i++) {
|
|
@@ -657,12 +658,13 @@ export default {
|
|
|
|
|
|
this.houseInformation[index].region = [];
|
|
|
var houseInformation = [];
|
|
|
+ this.shareScope = [];
|
|
|
debugger
|
|
|
for (let k = 0; k < data.length; k++) {
|
|
|
if (data[k].path[0] == data[data.length - 1].path[0]) {
|
|
|
if (data[k].path[3] != undefined) {
|
|
|
houseInformation.push(data[k].path)
|
|
|
- this.shareScope = data[k].path[1]
|
|
|
+ this.shareScope.push(data[k].path[1])
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -675,7 +677,6 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
// this.$forceUpdate();
|
|
|
this.$refs[`getChecked${index}`][0].$refs.panel.clearCheckedNodes();
|
|
|
- debugger
|
|
|
})
|
|
|
|
|
|
|
|
@@ -684,7 +685,38 @@ export default {
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
+ this.shareScope = [];
|
|
|
+ if (data[0].path[0] == data[data.length - 1].path[0]) {
|
|
|
+ for (let i = 0; i < data.length; i++) {
|
|
|
+ this.shareScope.push(data[i].path[1])
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.shareScope = [];
|
|
|
+ for (let k = 0; k < data.length; k++) {
|
|
|
+ this.shareScope.push(data[k].path[1])
|
|
|
+ }
|
|
|
+ this.$nextTick(() => {
|
|
|
+ // this.$forceUpdate();
|
|
|
+ this.$refs[`getChecked${index}`][0].$refs.panel.clearCheckedNodes();
|
|
|
+ })
|
|
|
+ // this.houseInformation[index].region = [];
|
|
|
+ // var houseInformation = [];
|
|
|
+ // this.shareScope = [];
|
|
|
+ // for (let k = 0; k < data.length; k++) {
|
|
|
+ // if (data[k].path[0] == data[data.length - 1].path[0]) {
|
|
|
+ // if (data[k].path[3] != undefined) {
|
|
|
+ // houseInformation.push(data[k].path)
|
|
|
+ // this.shareScope.push(data[k].path[1])
|
|
|
+ // }
|
|
|
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ }
|
|
|
+ // this.houseInformation[index].region = houseInformation
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ // // this.$forceUpdate();
|
|
|
+ // this.$refs[`getChecked${index}`][0].$refs.panel.clearCheckedNodes();
|
|
|
+ // })
|
|
|
// debugger
|
|
|
// // this.shareScope = data[index].parent.parent.value;
|
|
|
// if (data[0].path[0] == data[data.length - 1].path[0]) {
|
|
@@ -714,7 +746,14 @@ export default {
|
|
|
|
|
|
// }
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
+ this.shareScope = Array.from(new Set(this.shareScope))
|
|
|
+ this.shareScopeID[index] = this.shareScope;
|
|
|
+ console.log('shareScope', this.shareScope);
|
|
|
+ console.log('7777', this.shareScopeID)
|
|
|
|
|
|
// this.$forceUpdate();
|
|
|
|
|
@@ -764,9 +803,10 @@ export default {
|
|
|
houseList: []
|
|
|
})
|
|
|
} else if (this.houseInformation[i].choice == 2) {
|
|
|
+ debugger
|
|
|
params.buildingList.push({
|
|
|
type: this.houseInformation[i].choice,
|
|
|
- buildingId: this.shareScope,
|
|
|
+ buildingId: this.shareScopeID[i],
|
|
|
strategyId: this.houseInformation[i].billingRules,
|
|
|
area: this.houseInformation[i].billingArea,
|
|
|
houseList: []
|