From dc5e3bf2594988bda6d4379d27b9019f4e36d0fd Mon Sep 17 00:00:00 2001 From: "luoJunYong.123" Date: Wed, 8 Dec 2021 11:37:32 +0800 Subject: [PATCH] youhua --- src/pages/project/add/index.vue.copy | 1080 -------------------------- src/pages/project/list/index.vue | 7 +- 2 files changed, 4 insertions(+), 1083 deletions(-) delete mode 100644 src/pages/project/add/index.vue.copy diff --git a/src/pages/project/add/index.vue.copy b/src/pages/project/add/index.vue.copy deleted file mode 100644 index a5df029..0000000 --- a/src/pages/project/add/index.vue.copy +++ /dev/null @@ -1,1080 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/project/list/index.vue b/src/pages/project/list/index.vue index a3ff547..5e351fa 100644 --- a/src/pages/project/list/index.vue +++ b/src/pages/project/list/index.vue @@ -240,7 +240,9 @@ export default { // }, mounted() { this.getSystemData(); - this.queryData = this.queryDataStatus + if(this.queryDataStatus.platformId) { + this.queryData = this.queryDataStatus + } }, methods: { ...mapActions("project", [ @@ -251,13 +253,13 @@ export default { }), getSystemData() { this.$get(this.api.getSystemIdBySchool).then(res => { + if (res.status == 200){ this.systemList = res.data; // 如果systemId有历史记录,就取历史记录里的systemId,否则就取默认的systemId this.systemId = this.lastSystemId ? this.lastSystemId : this.systemList[0].id; this.getData(); }else{ - } }); @@ -275,7 +277,6 @@ export default { this.listData = res.data.records; this.total = res.data.total; }).catch(err => { - console.log(err); }); }, initData() {