refactor: 前端传入projectid

This commit is contained in:
Captain.B 2021-06-11 13:27:06 +08:00 committed by 刘瑞斌
parent 88b6e742a7
commit f98e0ab9c1
2 changed files with 2 additions and 0 deletions

View File

@ -270,6 +270,7 @@ export default {
this.$warning(this.$t('commons.check_project_tip')); this.$warning(this.$t('commons.check_project_tip'));
return; return;
} }
this.condition.projectId = getCurrentProjectID();
this.result = this.$post(this.buildPagePath(this.queryPath), this.condition, response => { this.result = this.$post(this.buildPagePath(this.queryPath), this.condition, response => {
let data = response.data; let data = response.data;
this.total = data.itemCount; this.total = data.itemCount;

View File

@ -328,6 +328,7 @@ export default {
if (!this.projectId) { if (!this.projectId) {
return; return;
} }
this.condition.projectId = getCurrentProjectID();
this.cardResult = this.$post(this.buildPagePath(this.queryPath), this.condition, response => { this.cardResult = this.$post(this.buildPagePath(this.queryPath), this.condition, response => {
let data = response.data; let data = response.data;
this.total = data.itemCount; this.total = data.itemCount;