|
@@ -117,6 +117,7 @@
|
|
|
<el-table-column label="status" prop="status"></el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
+ <el-button @click="submitAutoCase" class="done-button">Done</el-button>
|
|
|
</div>
|
|
|
<div class="plan task-item case-submit" v-if="isShowCaseCommit && isShowTaskList===false">
|
|
|
<div class="go-back">
|
|
@@ -180,6 +181,57 @@
|
|
|
<el-button class="cancel-button" @click="clickBackToCaseList">Cancel</el-button>
|
|
|
<el-button class="done-button" @click="doManualCase">Done</el-button>
|
|
|
</div>
|
|
|
+ <div class="plan task-item case-submit" v-if="isShowAutoCaseCommit && isShowTaskList===false">
|
|
|
+ <div class="go-back">
|
|
|
+ <div class="el-icon-arrow-left" @click="clickBackToAutoCaseList"></div>
|
|
|
+ <div>{{ caseName }}</div>
|
|
|
+ </div>
|
|
|
+ <div class="control-panel">
|
|
|
+ <el-col :span=12>
|
|
|
+ <el-select v-model="projectValue" placeholder="Project" class="select-container" @change="autoCaseFilterChange">
|
|
|
+ <el-option
|
|
|
+ v-for="option in projectOptions"
|
|
|
+ :key="option.value"
|
|
|
+ :label="option.label"
|
|
|
+ :value="option.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span=12>
|
|
|
+ <el-select v-model="marketValue" placeholder="Market" class="select-container" @change="autoCaseFilterChange">
|
|
|
+ <el-option
|
|
|
+ v-for="option in marketOptions"
|
|
|
+ :key="option.value"
|
|
|
+ :label="option.label"
|
|
|
+ :value="option.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span=12>
|
|
|
+ <el-select v-model="clusterValue" placeholder="Cluster" class="select-container" @change="autoCaseFilterChange">
|
|
|
+ <el-option
|
|
|
+ v-for="option in clusterOptions"
|
|
|
+ :key="option.value"
|
|
|
+ :label="option.label"
|
|
|
+ :value="option.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span=12>
|
|
|
+ <el-select v-model="carlineValue" placeholder="Carline" class="select-container" @change="autoCaseFilterChange">
|
|
|
+ <el-option
|
|
|
+ v-for="option in carlineOptions"
|
|
|
+ :key="option.value"
|
|
|
+ :label="option.label"
|
|
|
+ :value="option.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-col>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <el-button class="cancel-button" @click="clickBackToAutoCaseList">Cancel</el-button>
|
|
|
+ <el-button class="done-button" @click="submitAutoCase">Start</el-button>
|
|
|
+ </div>
|
|
|
<div class="case task-item" v-if="isShowCaseDetail && isShowTaskList===false">
|
|
|
<div class="go-back">
|
|
|
<div class="el-icon-arrow-left" @click="clickBackToPlan"></div>
|
|
@@ -247,12 +299,14 @@ export default {
|
|
|
type: String
|
|
|
},
|
|
|
currentIssue: Object,
|
|
|
+ currentPlanId: String | Number,
|
|
|
isShowTaskList: Boolean,
|
|
|
isShowPlanList: Boolean,
|
|
|
isShowCaseList: Boolean,
|
|
|
isShowAutoCaseList: Boolean,
|
|
|
isShowCaseDetail: Boolean,
|
|
|
isShowCaseCommit: Boolean,
|
|
|
+ isShowAutoCaseCommit: Boolean,
|
|
|
isShowIssueDetail: Boolean,
|
|
|
taskName: String,
|
|
|
planList: Array,
|
|
@@ -276,7 +330,9 @@ export default {
|
|
|
clickBackToPlan: Function,
|
|
|
submitManualCase: Function,
|
|
|
clickBackToCaseList: Function,
|
|
|
- clickBackToIssueList: Function
|
|
|
+ clickBackToIssueList: Function,
|
|
|
+ submitAutoCase: Function,
|
|
|
+ clickBackToAutoCaseList: Function
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -324,6 +380,23 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ let that = this;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ if(that.isShowAutoCaseCommit) {
|
|
|
+ let data = {
|
|
|
+ Carline: that.carlineValue,
|
|
|
+ Cluster: that.clusterValue,
|
|
|
+ Market: that.marketValue,
|
|
|
+ Project: that.projectValue,
|
|
|
+ plan_id: that.currentPlanId,
|
|
|
+ repeat_times: 1,
|
|
|
+ skips: [],
|
|
|
+ }
|
|
|
+ that.$store.dispatch('benchList/getMatchedBench', data);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
methods: {
|
|
|
changeTab(index) {
|
|
|
console.log('tab 切换 index', index);
|
|
@@ -334,6 +407,20 @@ export default {
|
|
|
},
|
|
|
cancelManualCase() {
|
|
|
|
|
|
+ },
|
|
|
+ autoCaseFilterChange() {
|
|
|
+ if(this.isShowAutoCaseCommit) {
|
|
|
+ let data = {
|
|
|
+ Carline: this.carlineValue,
|
|
|
+ Cluster: this.clusterValue,
|
|
|
+ Market: this.marketValue,
|
|
|
+ Project: this.projectValue,
|
|
|
+ plan_id: this.currentPlanId,
|
|
|
+ repeat_times: 1,
|
|
|
+ skips: [],
|
|
|
+ }
|
|
|
+ this.$store.dispatch('benchList/getMatchedBench', data);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
};
|