refacotr(测试跟踪): 删除测试计划提示
This commit is contained in:
parent
91e111a3e9
commit
ed26d25ac7
|
@ -11,6 +11,11 @@
|
||||||
<br/>
|
<br/>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
<el-row class="tip" v-if="withTip">
|
||||||
|
<span>
|
||||||
|
<slot class="tip"></slot>
|
||||||
|
</span>
|
||||||
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="15">
|
<el-col :span="15">
|
||||||
<el-input v-model="value" :placeholder="$t('commons.input_content')"/>
|
<el-input v-model="value" :placeholder="$t('commons.input_content')"/>
|
||||||
|
@ -41,6 +46,12 @@
|
||||||
default() {
|
default() {
|
||||||
return this.$t('commons.title')
|
return this.$t('commons.title')
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
withTip: {
|
||||||
|
type: Boolean,
|
||||||
|
default() {
|
||||||
|
return false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -80,5 +91,9 @@
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tip {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -137,7 +137,9 @@
|
||||||
|
|
||||||
<test-report-template-list @openReport="openReport" ref="testReportTemplateList"/>
|
<test-report-template-list @openReport="openReport" ref="testReportTemplateList"/>
|
||||||
<test-case-report-view @refresh="initTableData" ref="testCaseReportView"/>
|
<test-case-report-view @refresh="initTableData" ref="testCaseReportView"/>
|
||||||
<ms-delete-confirm :title="$t('test_track.plan.plan_delete')" @delete="_handleDelete" ref="deleteConfirm"/>
|
<ms-delete-confirm :title="$t('test_track.plan.plan_delete')" @delete="_handleDelete" ref="deleteConfirm" :with-tip="enableDeleteTip">
|
||||||
|
{{$t('test_track.plan.plan_delete_tip')}}
|
||||||
|
</ms-delete-confirm>
|
||||||
|
|
||||||
</el-card>
|
</el-card>
|
||||||
</template>
|
</template>
|
||||||
|
@ -171,6 +173,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
result: {},
|
result: {},
|
||||||
|
enableDeleteTip: false,
|
||||||
queryPath: "/test/plan/list",
|
queryPath: "/test/plan/list",
|
||||||
deletePath: "/test/plan/delete",
|
deletePath: "/test/plan/delete",
|
||||||
condition: {
|
condition: {
|
||||||
|
@ -249,6 +252,7 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleDelete(testPlan) {
|
handleDelete(testPlan) {
|
||||||
|
this.enableDeleteTip = testPlan.status === 'Underway' ? true : false;
|
||||||
this.$refs.deleteConfirm.open(testPlan);
|
this.$refs.deleteConfirm.open(testPlan);
|
||||||
},
|
},
|
||||||
_handleDelete(testPlan) {
|
_handleDelete(testPlan) {
|
||||||
|
|
|
@ -837,6 +837,7 @@ export default {
|
||||||
actual_start_time: "Actual Start Time",
|
actual_start_time: "Actual Start Time",
|
||||||
actual_end_time: "Actual End Time",
|
actual_end_time: "Actual End Time",
|
||||||
plan_delete_confirm: "All use cases under this plan will be deleted,confirm delete test plan: ",
|
plan_delete_confirm: "All use cases under this plan will be deleted,confirm delete test plan: ",
|
||||||
|
plan_delete_tip: "The test plan is under way, please confirm and delete it!",
|
||||||
plan_delete: "Delete test plan",
|
plan_delete: "Delete test plan",
|
||||||
},
|
},
|
||||||
review: {
|
review: {
|
||||||
|
|
|
@ -839,6 +839,7 @@ export default {
|
||||||
actual_start_time: "实际开始",
|
actual_start_time: "实际开始",
|
||||||
actual_end_time: "实际结束",
|
actual_end_time: "实际结束",
|
||||||
plan_delete_confirm: "将删除该测试计划下所有用例,确认删除测试计划: ",
|
plan_delete_confirm: "将删除该测试计划下所有用例,确认删除测试计划: ",
|
||||||
|
plan_delete_tip: "该测试计划正在进行中,请确认再删除!",
|
||||||
plan_delete: "删除计划",
|
plan_delete: "删除计划",
|
||||||
},
|
},
|
||||||
review: {
|
review: {
|
||||||
|
|
|
@ -840,6 +840,7 @@ export default {
|
||||||
actual_start_time: "實際開始",
|
actual_start_time: "實際開始",
|
||||||
actual_end_time: "實際結束",
|
actual_end_time: "實際結束",
|
||||||
plan_delete_confirm: "將刪除該測試計劃下所有用例,確認刪除測試計劃: ",
|
plan_delete_confirm: "將刪除該測試計劃下所有用例,確認刪除測試計劃: ",
|
||||||
|
plan_delete_tip: "該測試計劃正在進行中,請確認再刪除!",
|
||||||
plan_delete: "刪除計劃",
|
plan_delete: "刪除計劃",
|
||||||
},
|
},
|
||||||
review: {
|
review: {
|
||||||
|
|
Loading…
Reference in New Issue