fix: 工作空间无项目时报错
This commit is contained in:
parent
6dd49752fc
commit
f80f6c74d1
|
@ -64,10 +64,11 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
search() {
|
search() {
|
||||||
let projectID = this.projectId;
|
if (this.projectId) {
|
||||||
this.result = this.$get("/api/faliureCaseAboutTestPlan/"+projectID+"/10", response => {
|
this.result = this.$get("/api/faliureCaseAboutTestPlan/"+ this.projectId +"/10", response => {
|
||||||
this.tableData = response.data;
|
this.tableData = response.data;
|
||||||
});
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
redirect(pageType,param){
|
redirect(pageType,param){
|
||||||
switch (pageType){
|
switch (pageType){
|
||||||
|
|
|
@ -88,10 +88,11 @@ export default {
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
search() {
|
search() {
|
||||||
let projectID = this.projectId;
|
if (this.projectId) {
|
||||||
this.result = this.$get("/api/runningTask/"+projectID+"/"+this.callFrom, response => {
|
this.result = this.$get("/api/runningTask/"+ this.projectId +"/"+this.callFrom, response => {
|
||||||
this.tableData = response.data;
|
this.tableData = response.data;
|
||||||
});
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
closeTaskConfirm(row){
|
closeTaskConfirm(row){
|
||||||
|
|
|
@ -120,7 +120,9 @@ export default {
|
||||||
},
|
},
|
||||||
init() {
|
init() {
|
||||||
let selectProjectId = this.projectId;
|
let selectProjectId = this.projectId;
|
||||||
|
if (!selectProjectId) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.$get("/track/count/" + selectProjectId, response => {
|
this.$get("/track/count/" + selectProjectId, response => {
|
||||||
this.trackCountData = response.data;
|
this.trackCountData = response.data;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue