|
|
@ -240,7 +240,9 @@ export default { |
|
|
|
// }, |
|
|
|
// }, |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
this.getSystemData(); |
|
|
|
this.getSystemData(); |
|
|
|
this.queryData = this.queryDataStatus |
|
|
|
if(this.queryDataStatus.platformId) { |
|
|
|
|
|
|
|
this.queryData = this.queryDataStatus |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
...mapActions("project", [ |
|
|
|
...mapActions("project", [ |
|
|
@ -251,13 +253,13 @@ export default { |
|
|
|
}), |
|
|
|
}), |
|
|
|
getSystemData() { |
|
|
|
getSystemData() { |
|
|
|
this.$get(this.api.getSystemIdBySchool).then(res => { |
|
|
|
this.$get(this.api.getSystemIdBySchool).then(res => { |
|
|
|
|
|
|
|
|
|
|
|
if (res.status == 200){ |
|
|
|
if (res.status == 200){ |
|
|
|
this.systemList = res.data; |
|
|
|
this.systemList = res.data; |
|
|
|
// 如果systemId有历史记录,就取历史记录里的systemId,否则就取默认的systemId |
|
|
|
// 如果systemId有历史记录,就取历史记录里的systemId,否则就取默认的systemId |
|
|
|
this.systemId = this.lastSystemId ? this.lastSystemId : this.systemList[0].id; |
|
|
|
this.systemId = this.lastSystemId ? this.lastSystemId : this.systemList[0].id; |
|
|
|
this.getData(); |
|
|
|
this.getData(); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
@ -275,7 +277,6 @@ export default { |
|
|
|
this.listData = res.data.records; |
|
|
|
this.listData = res.data.records; |
|
|
|
this.total = res.data.total; |
|
|
|
this.total = res.data.total; |
|
|
|
}).catch(err => { |
|
|
|
}).catch(err => { |
|
|
|
console.log(err); |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
initData() { |
|
|
|
initData() { |
|
|
|