fix(接口测试): 修复用例列表没显示子模块资源的缺陷&更换UI插图

--bug=1039575 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001039575
--bug=1039182 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001039182
This commit is contained in:
teukkk 2024-04-18 11:42:29 +08:00 committed by 刘瑞斌
parent 7670b455f2
commit ac6a0ef43a
4 changed files with 25 additions and 51 deletions

View File

@ -1,24 +1,16 @@
<svg xmlns="http://www.w3.org/2000/svg" width="251" height="203" viewBox="0 0 251 203" fill="none"> <svg width="160" height="98" viewBox="0 0 160 98" fill="none" xmlns="http://www.w3.org/2000/svg">
<g filter="url(#filter0_d_16553_74273)"> <ellipse cx="80" cy="71.7019" rx="80" ry="26.2982" fill="url(#paint0_linear_21747_135084)"/>
<path d="M9 9C9 6.79086 10.7909 5 13 5H237.088C239.297 5 241.088 6.79086 241.088 9V185.615C241.088 187.824 239.297 189.615 237.088 189.615H13C10.7909 189.615 9 187.824 9 185.615V9Z" fill="#F9F9FE"/> <path d="M31.4929 0.5H128.096C130.029 0.5 131.596 2.067 131.596 4V78.9921C131.596 80.9251 130.029 82.4921 128.096 82.4921H31.4929C29.5599 82.4921 27.9929 80.9251 27.9929 78.9921V4C27.9929 2.067 29.5599 0.5 31.4929 0.5Z" fill="#F9F9FE" stroke="white"/>
<path d="M9.5 9C9.5 7.06701 11.067 5.5 13 5.5H237.088C239.021 5.5 240.588 7.067 240.588 9V185.615C240.588 187.548 239.021 189.115 237.088 189.115H13C11.067 189.115 9.5 187.548 9.5 185.615V9Z" stroke="white"/> <path d="M27.9438 3.44958C27.9438 1.79273 29.287 0.449585 30.9438 0.449585H128.606C130.263 0.449585 131.606 1.79273 131.606 3.44959V8.99087H27.9438V3.44958Z" fill="#EDEDF1"/>
</g> <ellipse cx="39.8736" cy="4.54967" rx="1.95486" ry="1.94982" fill="white"/>
<path d="M10 9C10 7.34315 11.3431 6 13 6H237C238.657 6 240 7.34315 240 9V25H10V9Z" fill="#EDEDF1"/> <ellipse cx="46.3899" cy="4.54967" rx="1.95486" ry="1.94982" fill="white"/>
<circle cx="36.4697" cy="15.1207" r="4.33734" fill="white"/> <ellipse cx="33.3572" cy="4.54967" rx="1.95486" ry="1.94982" fill="white"/>
<circle cx="50.9277" cy="15.1207" r="4.33734" fill="white"/> <path d="M31.5493 15.0367C31.5493 13.9322 32.4447 13.0367 33.5493 13.0367H126C127.105 13.0367 128 13.9322 128 15.0367V76.2202C128 77.3248 127.105 78.2202 126 78.2202H33.5493C32.4447 78.2202 31.5493 77.3248 31.5493 76.2202V15.0367Z" fill="white"/>
<circle cx="22.0114" cy="15.1207" r="4.33734" fill="white"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M76.615 34.2401C76.615 32.387 78.1232 30.8716 80 30.8716C81.8767 30.8716 83.3849 32.387 83.3849 34.2401V38.4358H76.615V34.2401ZM70.615 38.4358V34.2401C70.615 29.0587 74.8241 24.8716 80 24.8716C85.1758 24.8716 89.3849 29.0587 89.3849 34.2401V38.4358H90.216C91.4191 38.4358 92.3944 39.4086 92.3944 40.6086V52.0719C92.3944 53.2719 91.4191 54.2447 90.216 54.2447H69.7841C68.581 54.2447 67.6057 53.2719 67.6057 52.0719V40.6086C67.6057 39.4086 68.581 38.4358 69.7841 38.4358H70.615ZM80.0002 42.4297C81.1048 42.4297 82.0002 43.3251 82.0002 44.4297V48.2508C82.0002 49.3554 81.1048 50.2508 80.0002 50.2508C78.8957 50.2508 78.0002 49.3554 78.0002 48.2508V44.4297C78.0002 43.3251 78.8957 42.4297 80.0002 42.4297Z" fill="#F2E9F6"/>
<path d="M18 36C18 34.8954 18.8954 34 20 34H230C231.105 34 232 34.8954 232 36V177C232 178.105 231.105 179 230 179H20C18.8954 179 18 178.105 18 177V36Z" fill="white"/> <defs>
<path fill-rule="evenodd" clip-rule="evenodd" d="M114.333 81.1667C114.333 74.9995 119.333 70 125.5 70C131.667 70 136.667 74.9995 136.667 81.1667V90.5H114.333V81.1667ZM108.333 90.5V81.1667C108.333 71.6858 116.019 64 125.5 64C134.981 64 142.667 71.6858 142.667 81.1667V90.5H148.167C150.836 90.5 153 92.664 153 95.3333V120.833C153 123.503 150.836 125.667 148.167 125.667H102.833C100.164 125.667 98 123.503 98 120.833V95.3333C98 92.664 100.164 90.5 102.833 90.5H108.333ZM125.5 101.833C126.605 101.833 127.5 102.729 127.5 103.833V112.333C127.5 113.438 126.605 114.333 125.5 114.333C124.395 114.333 123.5 113.438 123.5 112.333V103.833C123.5 102.729 124.395 101.833 125.5 101.833Z" fill="#F2E9F6"/> <linearGradient id="paint0_linear_21747_135084" x1="80.2254" y1="45.4037" x2="80.2253" y2="98" gradientUnits="userSpaceOnUse">
<defs> <stop stop-color="#EDEDF1"/>
<filter id="filter0_d_16553_74273" x="0" y="0" width="250.088" height="202.615" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <stop offset="1" stop-color="white" stop-opacity="0"/>
<feFlood flood-opacity="0" result="BackgroundImageFix"/> </linearGradient>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/> </defs>
<feMorphology radius="1" operator="erode" in="SourceAlpha" result="effect1_dropShadow_16553_74273"/> </svg>
<feOffset dy="4"/>
<feGaussianBlur stdDeviation="5"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.392157 0 0 0 0 0.392157 0 0 0 0 0.4 0 0 0 0.15 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_16553_74273"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_16553_74273" result="shape"/>
</filter>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -8,7 +8,7 @@ export enum TableModuleEnum {
export enum TableKeyEnum { export enum TableKeyEnum {
API_TEST = 'apiTest', API_TEST = 'apiTest',
API_TEST_MANAGEMENT_CASE = 'apiTestMenagementCase', API_TEST_MANAGEMENT_CASE = 'apiTestManagementCase',
API_TEST_DEBUG_FORM_DATA = 'apiTestDebugFormData', API_TEST_DEBUG_FORM_DATA = 'apiTestDebugFormData',
API_TEST_DEBUG_REST = 'apiTestDebugRest', API_TEST_DEBUG_REST = 'apiTestDebugRest',
API_TEST_DEBUG_QUERY = 'apiTestDebugQuery', API_TEST_DEBUG_QUERY = 'apiTestDebugQuery',

View File

@ -9,12 +9,7 @@
<div class="page"> <div class="page">
<div class="content-wrapper"> <div class="content-wrapper">
<div class="content"> <div class="content">
<div class="icon"> <div class="no-resource-svg"></div>
<div class="icon-svg">
<svg-icon width="232px" height="184px" name="no_resource" />
</div>
<div class="radius-box"></div>
</div>
<div class="title"> <div class="title">
<span>{{ props.isProject ? t('common.noProject') : t('common.noResource') }}</span> <span>{{ props.isProject ? t('common.noProject') : t('common.noResource') }}</span>
</div> </div>
@ -54,25 +49,12 @@
height: 100%; height: 100%;
background-color: var(--color-text-fff); background-color: var(--color-text-fff);
.content { .content {
.icon { .no-resource-svg {
position: relative; margin: 0 auto 24px;
display: flex; width: 160px;
align-items: center; height: 98px;
margin-bottom: 40px; background: url('@/assets/svg/no_resource.svg');
height: 218px; background-size: cover;
flex-direction: column;
.icon-svg {
z-index: 100;
}
.radius-box {
position: relative;
bottom: 83px;
width: 355px;
height: 117px;
flex-shrink: 0;
border-radius: 355px;
background: linear-gradient(180deg, #ededf1 0%, rgb(255 255 255 / 0%) 100%);
}
} }
.title { .title {
display: flex; display: flex;

View File

@ -1021,7 +1021,7 @@
loadCaseList, loadCaseList,
}); });
await tableStore.initColumn(TableKeyEnum.API_TEST_MANAGEMENT_CASE, columns, 'drawer'); await tableStore.initColumn(TableKeyEnum.API_TEST_MANAGEMENT_CASE, columns, 'drawer', true);
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>