fix(接口测试): 修复场景回收站权限错误的缺陷

--bug=1039161 --user=王孝刚 【场景】回收站-项目管理员缺少恢复和彻底删除功能
https://www.tapd.cn/55049933/s/1494906
This commit is contained in:
wxg0103 2024-04-11 17:37:56 +08:00 committed by Craftsman
parent 8acefab96d
commit 7ecb48a551
3 changed files with 6 additions and 4 deletions

View File

@ -235,6 +235,8 @@ public class ApiScenarioReportService {
step.setRequestTime(details.getFirst().getRequestTime()); step.setRequestTime(details.getFirst().getRequestTime());
step.setResponseSize(details.getFirst().getResponseSize()); step.setResponseSize(details.getFirst().getResponseSize());
step.setStatus(details.getFirst().getStatus()); step.setStatus(details.getFirst().getStatus());
step.setCode(details.getFirst().getCode());
step.setFakeCode(details.getFirst().getFakeCode());
step.setScriptIdentifier(details.getFirst().getScriptIdentifier()); step.setScriptIdentifier(details.getFirst().getScriptIdentifier());
} }
} }

View File

@ -177,7 +177,7 @@
:step="100" :step="100"
:min="0" :min="0"
:precision="0" :precision="0"
:max="600000" :max="3600000"
hide-button hide-button
class="w-[110px] px-[8px]" class="w-[110px] px-[8px]"
model-event="input" model-event="input"

View File

@ -180,16 +180,16 @@
</template> </template>
<template #operation="{ record }"> <template #operation="{ record }">
<MsButton <MsButton
v-permission="['PROJECT_API_SCENARIO:READ+DELETED']" v-permission="['PROJECT_API_SCENARIO:READ+DELETE']"
type="text" type="text"
class="!mr-0" class="!mr-0"
@click="recover(record)" @click="recover(record)"
> >
{{ t('api_scenario.recycle.recover') }} {{ t('api_scenario.recycle.recover') }}
</MsButton> </MsButton>
<a-divider v-permission="['PROJECT_API_SCENARIO:READ+DELETED']" direction="vertical" :margin="8"></a-divider> <a-divider v-permission="['PROJECT_API_SCENARIO:READ+DELETE']" direction="vertical" :margin="8"></a-divider>
<MsButton <MsButton
v-permission="['PROJECT_API_SCENARIO:READ+DELETED']" v-permission="['PROJECT_API_SCENARIO:READ+DELETE']"
type="text" type="text"
class="!mr-0" class="!mr-0"
@click="deleteOperation(record)" @click="deleteOperation(record)"