fix: 测试报告详情页 修改完测试报告名称后,点击导出仍显示之前的报告名称
This commit is contained in:
parent
174c06aed0
commit
34ca2feeea
|
@ -39,7 +39,7 @@
|
|||
|
||||
</el-tabs>
|
||||
</div>
|
||||
<ms-api-report-export v-if="reportExportVisible" id="apiTestReport" :title="report.testName"
|
||||
<ms-api-report-export v-if="reportExportVisible" id="apiTestReport" :title="report.name"
|
||||
:content="content" :total-time="totalTime"/>
|
||||
</main>
|
||||
</section>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<el-row>
|
||||
<el-col>
|
||||
<span v-if="!debug">
|
||||
<el-input v-if="nameIsEdit" size="mini" @blur="handleSave(report.name)" style="width: 200px" v-model="report.name" maxlength="60" show-word-limit/>
|
||||
<el-input v-if="nameIsEdit" size="mini" @blur="handleSave(report.name)" @keyup.enter.native="handleSaveKeyUp" style="width: 200px" v-model="report.name" maxlength="60" show-word-limit/>
|
||||
<span v-else>
|
||||
<router-link v-if="isSingleScenario" :to="{name: 'ApiAutomation', params: { dataSelectRange: 'edit:' + scenarioId }}">
|
||||
{{ report.name }}
|
||||
|
@ -86,6 +86,9 @@ export default {
|
|||
this.nameIsEdit = false;
|
||||
this.$emit('reportSave', name);
|
||||
},
|
||||
handleSaveKeyUp($event) {
|
||||
$event.target.blur();
|
||||
},
|
||||
returnView(){
|
||||
this.$router.push('/api/automation/report');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue