fix(接口定义): 修复回收站数据仍可以编辑的缺陷

--bug=1018086 --user=王孝刚 【接口测试】用例回收站点击id可进行编辑
https://www.tapd.cn/55049933/s/1262734
--bug=1018085 --user=王孝刚
【接口测试】接口自动化回收站用例可进行编辑,编辑之后用例不可见 https://www.tapd.cn/55049933/s/1262737
This commit is contained in:
wxg0103 2022-10-15 22:15:00 +08:00 committed by fit2-zhao
parent ec7097b6a2
commit a571694b79
3 changed files with 5 additions and 5 deletions

View File

@ -54,7 +54,7 @@
sortable
min-width="120px"
v-if="item.id == 'num' && !customNum">
<template slot-scope="scope">
<template slot-scope="scope" v-if="!trashEnable">
<el-tooltip :content="$t('commons.edit')">
<a style="cursor:pointer" @click="edit(scope.row)"> {{ scope.row.num }} </a>
</el-tooltip>
@ -349,7 +349,7 @@ import {
import {getMaintainer, getProject} from "@/api/project";
import {getProjectVersions, versionEnableByProjectId} from "@/api/xpack";
import {getCurrentProjectID, getCurrentUserId} from "metersphere-frontend/src/utils/token";
import {downloadFile, getUUID, objToStrMap, strMapToObj, operationConfirm} from "metersphere-frontend/src/utils";
import {downloadFile, getUUID, objToStrMap, operationConfirm, strMapToObj} from "metersphere-frontend/src/utils";
import {hasLicense, hasPermission} from "metersphere-frontend/src/utils/permission";
import {API_SCENARIO_CONFIGS} from "metersphere-frontend/src/components/search/search-components";
import {API_SCENARIO_LIST} from "metersphere-frontend/src/utils/constants";

View File

@ -62,7 +62,7 @@
:fields-width="fieldsWidth"
min-width="80px"
sortable>
<template slot-scope="scope">
<template slot-scope="scope" v-if="!trashEnable">
<!-- 判断为只读用户的话不可点击ID进行编辑操作 -->
<span style="cursor:pointer" v-if="isReadOnly"> {{ scope.row.num }} </span>
<el-tooltip v-else :content="$t('commons.edit')">

View File

@ -51,7 +51,7 @@
:fields-width="fieldsWidth"
sortable>
<template slot-scope="scope">
<template slot-scope="scope" v-if="!trashEnable">
<el-tooltip content="编辑">
<a style="cursor:pointer" @click="editApi(scope.row)"> {{ scope.row.num }} </a>
</el-tooltip>
@ -852,7 +852,7 @@ export default {
} else {
try {
response = JSON.parse(row.response);
}catch (e){
} catch (e) {
response = {};
}
}