Commit a77714e33995b39c44fee8e95b59d7ffc9d8afe1
Merge branch 'local_dev_ft_fix_teambition_issue' into 'main_dev'
fix: 优化公共接口管理执行测试请求过滤函数布局 See merge request yunteng/thingskit-front!965
Showing
1 changed file
with
27 additions
and
48 deletions
... | ... | @@ -16,54 +16,33 @@ |
16 | 16 | </div> |
17 | 17 | </div> |
18 | 18 | <div class="mt-8"> |
19 | - <a-row type="flex" align="top"> | |
20 | - <a-col | |
21 | - :span=" | |
22 | - method === RequestMethodTypeEnum.WEBSOCKET | |
23 | - ? 11 | |
24 | - : httpType === RequestHttpTypeEnum.POST | |
25 | - ? 6 | |
26 | - : 6 | |
27 | - " | |
28 | - > | |
19 | + <div class="flex"> | |
20 | + <div> | |
29 | 21 | <p>过滤器函数编写:</p> |
30 | - <AceTypeIsJsEditor | |
31 | - :restData="getRestData" | |
32 | - @changeAceContent="onHandleAceContent" | |
33 | - ref="aceTypeIsJsEditorRef" | |
34 | - /> | |
35 | - </a-col> | |
36 | - <a-col :span="1"> | |
37 | - <a-divider type="vertical" class="divider-color" /> | |
38 | - </a-col> | |
39 | - <a-col | |
40 | - :span=" | |
41 | - method === RequestMethodTypeEnum.WEBSOCKET | |
42 | - ? 12 | |
43 | - : httpType === RequestHttpTypeEnum.POST | |
44 | - ? 17 | |
45 | - : 17 | |
46 | - " | |
47 | - style="position: relative" | |
48 | - :style="{ | |
49 | - left: | |
50 | - (method === RequestMethodTypeEnum.WEBSOCKET | |
51 | - ? 1.5 | |
52 | - : httpType === RequestHttpTypeEnum.POST | |
53 | - ? -0.25 | |
54 | - : 0) + 'vw', | |
55 | - }" | |
56 | - > | |
57 | - <a-col> | |
22 | + <div class="w-90"> | |
23 | + <AceTypeIsJsEditor | |
24 | + :restData="getRestData" | |
25 | + @changeAceContent="onHandleAceContent" | |
26 | + ref="aceTypeIsJsEditorRef" | |
27 | + /> | |
28 | + </div> | |
29 | + </div> | |
30 | + <div><a-divider type="vertical" class="divider-color" /></div> | |
31 | + <div class="flex flex-col ml-8"> | |
32 | + <div> | |
58 | 33 | <p>接口返回数据(res):</p> |
59 | - <JsonEditor style="height: 35vh" :showBtn="true" ref="jsonEditorRef" /> | |
60 | - </a-col> | |
61 | - <a-col class="mt-3"> | |
34 | + <div> | |
35 | + <JsonEditor class="w-100 h-100" :showBtn="true" ref="jsonEditorRef" /> | |
36 | + </div> | |
37 | + </div> | |
38 | + <div class="mt-4"> | |
62 | 39 | <p>过滤器结果:</p> |
63 | - <JsonFilterEditor style="height: 35vh" :showBtn="true" ref="jsonEditorFilterRef" /> | |
64 | - </a-col> | |
65 | - </a-col> | |
66 | - </a-row> | |
40 | + <div> | |
41 | + <JsonFilterEditor class="w-100 h-100" :showBtn="true" ref="jsonEditorFilterRef" /> | |
42 | + </div> | |
43 | + </div> | |
44 | + </div> | |
45 | + </div> | |
67 | 46 | </div> |
68 | 47 | </div> |
69 | 48 | </template> |
... | ... | @@ -78,7 +57,7 @@ |
78 | 57 | import AceTypeIsJsEditor from '../../SimpleRequest/components/aceEditor.vue'; |
79 | 58 | import { Tag } from 'ant-design-vue'; |
80 | 59 | import { useThrottleFn } from '@vueuse/shared'; |
81 | - import { RequestMethodTypeEnum, RequestHttpTypeEnum } from '../../../config/enum'; | |
60 | + import { RequestMethodTypeEnum } from '../../../config/enum'; | |
82 | 61 | |
83 | 62 | const emits = defineEmits(['emitExcute']); |
84 | 63 | |
... | ... | @@ -334,9 +313,9 @@ |
334 | 313 | } |
335 | 314 | |
336 | 315 | .divider-color { |
337 | - height: 78.5vh; | |
316 | + height: 54rem; | |
338 | 317 | background-color: #e5e7eb; |
339 | 318 | position: relative; |
340 | - left: 1.16vw; | |
319 | + left: 1rem; | |
341 | 320 | } |
342 | 321 | </style> | ... | ... |