|
@@ -412,11 +412,14 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
getProjectNumX() {
|
|
getProjectNumX() {
|
|
|
|
+ for (let i = 0; i < this.parest.length; i++){
|
|
|
|
+ this.parest[i].num = 0
|
|
|
|
+ }
|
|
getProjectNumX(this.appOrg).then((res) => {
|
|
getProjectNumX(this.appOrg).then((res) => {
|
|
if (Number(res.code) === 200) {
|
|
if (Number(res.code) === 200) {
|
|
const fetchedData = res.data;
|
|
const fetchedData = res.data;
|
|
if (res.data.length > 0) {
|
|
if (res.data.length > 0) {
|
|
- for (let i = 0; i < fetchedData.length; i++) {
|
|
|
|
|
|
+ for (let i = 0; i < this.parest.length; i++) {
|
|
this.parest[fetchedData[i].subdivision - 1].num = fetchedData[i].num;
|
|
this.parest[fetchedData[i].subdivision - 1].num = fetchedData[i].num;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -429,11 +432,14 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
getProjectNumY() {
|
|
getProjectNumY() {
|
|
|
|
+ for (let i = 0; i < this.parest1.length; i++){
|
|
|
|
+ this.parest1[i].num = 0
|
|
|
|
+ }
|
|
getProjectNumY(this.appOrg).then((res) => {
|
|
getProjectNumY(this.appOrg).then((res) => {
|
|
if (Number(res.code) === 200) {
|
|
if (Number(res.code) === 200) {
|
|
const fetchedData = res.data;
|
|
const fetchedData = res.data;
|
|
if (res.data.length > 0){
|
|
if (res.data.length > 0){
|
|
- for (let i = 0; i < fetchedData.length; i++) {
|
|
|
|
|
|
+ for (let i = 0; i < this.parest1.length; i++) {
|
|
this.parest1[fetchedData[i].subdivision-11].num= fetchedData[i].num;
|
|
this.parest1[fetchedData[i].subdivision-11].num= fetchedData[i].num;
|
|
}
|
|
}
|
|
}
|
|
}
|