fix(接口定义): 修复接口场景引用其他场景,其他场景删除后没有提示的缺陷

--bug=1018087 --user=王孝刚 【接口测试】接口场景引用其他场景,其他场景删除后没有提示
https://www.tapd.cn/55049933/s/1265342
This commit is contained in:
wxg0103 2022-10-18 10:24:18 +08:00 committed by f2c-ci-robot[bot]
parent e5711a2351
commit ea61f658be
2 changed files with 6 additions and 1 deletions

View File

@ -744,7 +744,7 @@
LEFT JOIN project_version
on project_version.project_id = api_scenario.project_id and project_version.id = version_id
LEFT JOIN project on api_scenario.project_id = project.id
WHERE api_scenario.id = #{id}
WHERE api_scenario.id = #{id} and api_scenario.status != 'Trash';
</select>
<sql id="queryVersionCondition">

View File

@ -246,6 +246,11 @@ export function mergeRequestDocumentData(request) {
//场景断言merge文档断言数据
if (request && request.document && request.document.originalData && request.document.tableData.size && request.document.tableData.size !== 0) {
mergeDocumentData(request.document.originalData, request.document.tableData);
if (request.document.type === 'json') {
request.document.data.json = request.document.originalData;
} else {
request.document.data.xml = request.document.originalData;
}
}
}