|
@@ -473,6 +473,7 @@
|
|
:isShowIssueDetail="isShowIssueDetail"
|
|
:isShowIssueDetail="isShowIssueDetail"
|
|
:currentIssue="currentIssue"
|
|
:currentIssue="currentIssue"
|
|
:currentPlanId="currentPlanId"
|
|
:currentPlanId="currentPlanId"
|
|
|
|
+ :currentPlanName="currentPlanName"
|
|
:submitAutoCase="submitAutoCase"
|
|
:submitAutoCase="submitAutoCase"
|
|
:clickBackToAutoCaseList="clickBackToAutoCaseList"
|
|
:clickBackToAutoCaseList="clickBackToAutoCaseList"
|
|
:clickBackToIssueList="clickBackToIssueList"
|
|
:clickBackToIssueList="clickBackToIssueList"
|
|
@@ -609,6 +610,7 @@ export default {
|
|
currentCase: null,
|
|
currentCase: null,
|
|
currentIssue: null,
|
|
currentIssue: null,
|
|
currentPlanId: null,
|
|
currentPlanId: null,
|
|
|
|
+ currentPlanName: null,
|
|
currentCaseIndex: 0,
|
|
currentCaseIndex: 0,
|
|
tabs: [
|
|
tabs: [
|
|
{
|
|
{
|
|
@@ -1021,10 +1023,22 @@ export default {
|
|
{
|
|
{
|
|
this.autoPlanResultInterval = setInterval(() => {
|
|
this.autoPlanResultInterval = setInterval(() => {
|
|
let autoCurrentTaskData = window.localStorage.getItem("autoCurrentTaskData");
|
|
let autoCurrentTaskData = window.localStorage.getItem("autoCurrentTaskData");
|
|
|
|
+ let autoCurrentTaskName = window.localStorage.getItem("autoCurrentTaskName");
|
|
autoCurrentTaskData = JSON.parse(autoCurrentTaskData);
|
|
autoCurrentTaskData = JSON.parse(autoCurrentTaskData);
|
|
|
|
+ autoCurrentTaskName = JSON.parse(autoCurrentTaskName);
|
|
if (autoCurrentTaskData) {
|
|
if (autoCurrentTaskData) {
|
|
for (let planId in autoCurrentTaskData) {
|
|
for (let planId in autoCurrentTaskData) {
|
|
let planExecId = autoCurrentTaskData[planId];
|
|
let planExecId = autoCurrentTaskData[planId];
|
|
|
|
+ if (autoCurrentTaskName) {
|
|
|
|
+ let planName = autoCurrentTaskName[planId];
|
|
|
|
+ if (planName) {
|
|
|
|
+ this.$store.dispatch("caseList/fetchAutoCaseList", {
|
|
|
|
+ planId: planId,
|
|
|
|
+ planName: planName
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
this.$store.dispatch("caseList/setPlanExecId", planExecId);
|
|
this.$store.dispatch("caseList/setPlanExecId", planExecId);
|
|
this.$store.dispatch('caseList/getAutoPlanResult',{planId, planExecId});
|
|
this.$store.dispatch('caseList/getAutoPlanResult',{planId, planExecId});
|
|
}
|
|
}
|
|
@@ -1097,10 +1111,7 @@ export default {
|
|
},
|
|
},
|
|
submitAutoCase() {
|
|
submitAutoCase() {
|
|
if (this.autoTaskStatus == 'waiting' || this.autoTaskStatus == 'running') {
|
|
if (this.autoTaskStatus == 'waiting' || this.autoTaskStatus == 'running') {
|
|
- let plan = JSON.parse(localStorage.getItem('autoCurrentTaskData'))
|
|
|
|
- let planId = plan.id || 0;
|
|
|
|
- this.$store.dispatch('caseList/cancelPlan', planId);
|
|
|
|
- clearInterval(this.autoPlanResultInterval)
|
|
|
|
|
|
+ this.$store.dispatch('caseList/cancelPlan');
|
|
this.clickBackToTaskList()
|
|
this.clickBackToTaskList()
|
|
this.isShowAutoCaseList = false;
|
|
this.isShowAutoCaseList = false;
|
|
return
|
|
return
|
|
@@ -1117,6 +1128,7 @@ export default {
|
|
debugger
|
|
debugger
|
|
if (!auto || auto == "undefined" || auto == "false") {
|
|
if (!auto || auto == "undefined" || auto == "false") {
|
|
this.currentPlanId = id;
|
|
this.currentPlanId = id;
|
|
|
|
+ this.currentPlanName = name;
|
|
this.$store.dispatch("caseList/fetchCaseList", {
|
|
this.$store.dispatch("caseList/fetchCaseList", {
|
|
uuid: id,
|
|
uuid: id,
|
|
page_num: 1,
|
|
page_num: 1,
|
|
@@ -1128,6 +1140,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
if (id == 109) id = 222;
|
|
if (id == 109) id = 222;
|
|
this.currentPlanId = id;
|
|
this.currentPlanId = id;
|
|
|
|
+ this.currentPlanName = name;
|
|
this.$store.dispatch("caseList/setCurrentPlanId", id);
|
|
this.$store.dispatch("caseList/setCurrentPlanId", id);
|
|
this.$store.dispatch("caseList/fetchAutoCaseList", {
|
|
this.$store.dispatch("caseList/fetchAutoCaseList", {
|
|
planId: id,
|
|
planId: id,
|