fix(通用功能): 解决接口定义版本对比内容错乱以及场景和功能用例创建版本后立即对比页面报错问题
--bug=1013781_1013780 --user=郭雨琦 版本对比内容显示错误、场景新建后,版本对比报错 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001013781 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001013780
This commit is contained in:
parent
6f438eb0b7
commit
d0d9c7e511
|
@ -1582,6 +1582,7 @@ export default {
|
|||
this.$store.state.pluginFiles = [];
|
||||
if (response.data) {
|
||||
this.currentScenario.id = response.data.id;
|
||||
this.currentScenario.refId = response.data.refId;
|
||||
}
|
||||
// 保存成功后刷新历史版本
|
||||
this.getVersionHistory();
|
||||
|
|
|
@ -99,7 +99,7 @@
|
|||
<!-- 请求参数 -->
|
||||
<div>
|
||||
<ms-form-divider :title="$t('api_test.definition.request.req_param')"/>
|
||||
<ms-api-request-form :showScript="false" :request="request" :headers="request.headers"
|
||||
<ms-api-request-form :showScript="false" :request="oldRequest" :headers="oldRequest.headers"
|
||||
:isShowEnable="isShowEnable"/>
|
||||
</div>
|
||||
|
||||
|
@ -107,7 +107,7 @@
|
|||
|
||||
<!-- 响应内容-->
|
||||
<ms-form-divider :title="$t('api_test.definition.request.res_param')"/>
|
||||
<ms-response-text :response="response"/>
|
||||
<ms-response-text :response="oldResponse"/>
|
||||
|
||||
<ms-form-divider :title="$t('test_track.case.other_info')"/>
|
||||
<api-info-container>
|
||||
|
@ -219,7 +219,7 @@
|
|||
<!-- 请求参数 -->
|
||||
<div>
|
||||
<ms-form-divider :title="$t('api_test.definition.request.req_param')"/>
|
||||
<ms-api-request-form :showScript="false" :request="oldRequest" :headers="oldRequest.headers"
|
||||
<ms-api-request-form :showScript="false" :request="request" :headers="request.headers"
|
||||
:isShowEnable="isShowEnable"/>
|
||||
</div>
|
||||
|
||||
|
@ -227,7 +227,7 @@
|
|||
|
||||
<!-- 响应内容-->
|
||||
<ms-form-divider :title="$t('api_test.definition.request.res_param')"/>
|
||||
<ms-response-text :response="oldResponse"/>
|
||||
<ms-response-text :response="response"/>
|
||||
|
||||
<!-- 其他信息-->
|
||||
<ms-form-divider :title="$t('test_track.case.other_info')"/>
|
||||
|
|
|
@ -713,6 +713,8 @@ export default {
|
|||
}
|
||||
this.form.id = response.data.id;
|
||||
this.currentTestCaseInfo.id = response.data.id;
|
||||
this.form.refId = response.data.refId;
|
||||
this.currentTestCaseInfo.refId = response.data.refId;
|
||||
if (this.currentTestCaseInfo.isCopy) {
|
||||
this.currentTestCaseInfo.isCopy = null;
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<el-form-item :label="$t('test_track.case.module')" :label-width="oldData.formLabelWidth" prop="module" v-if="!isPublic">
|
||||
<ms-select-tree :disabled="oldData.readOnly" :data="treeNodes" :defaultKey="oldData.module"
|
||||
:obj="moduleObj"
|
||||
@getValue="setModule" clearable checkStrictly size="small"/>
|
||||
clearable checkStrictly size="small"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
|
@ -134,7 +134,7 @@
|
|||
<el-form-item :label="$t('test_track.case.module')" :label-width="newData.formLabelWidth" prop="module" v-if="!isPublic">
|
||||
<ms-select-tree :disabled="newData.readOnly" :data="treeNodes" :defaultKey="newData.module"
|
||||
:obj="moduleObj"
|
||||
@getValue="setModule" clearable checkStrictly size="small"/>
|
||||
clearable checkStrictly size="small"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
|
|
Loading…
Reference in New Issue