refactor: 前端传入projectid
This commit is contained in:
parent
88b6e742a7
commit
f98e0ab9c1
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue