Commit ee3151f83a56deea21bf7ce7409373a1ae84465f
1 parent
ecbfc6c3
fix:DEFECT-1203 创建的转换函数(TCP脚本),在进行测试时,其提示图标有两个,请去掉其中一个。然后根据 “脚本类型” 的切换,自动切换提示图标里面的内容
Showing
1 changed file
with
8 additions
and
3 deletions
@@ -59,10 +59,14 @@ | @@ -59,10 +59,14 @@ | ||
59 | <Card title="脚本内容" :bodyStyle="{ padding: 0, height: '280px' }"> | 59 | <Card title="脚本内容" :bodyStyle="{ padding: 0, height: '280px' }"> |
60 | <template #extra> | 60 | <template #extra> |
61 | <a-button @click="handleFormat" size="small">格式化</a-button> | 61 | <a-button @click="handleFormat" size="small">格式化</a-button> |
62 | - <Tooltip v-if="!ifAdd" :title="defaultAuthTitle" class="ml-2"> | 62 | + <Tooltip |
63 | + v-if="scriptForm.scriptType !== 'TRANSPORT_TCP_UP'" | ||
64 | + :title="defaultAuthTitle" | ||
65 | + class="ml-2" | ||
66 | + > | ||
63 | <QuestionCircleOutlined style="font-size: 1rem" /> | 67 | <QuestionCircleOutlined style="font-size: 1rem" /> |
64 | </Tooltip> | 68 | </Tooltip> |
65 | - <Tooltip v-if="!ifAdd" :title="defaultUpTitle" class="ml-2"> | 69 | + <Tooltip v-else :title="defaultUpTitle" class="ml-2"> |
66 | <QuestionCircleOutlined style="font-size: 1rem" /> | 70 | <QuestionCircleOutlined style="font-size: 1rem" /> |
67 | </Tooltip> | 71 | </Tooltip> |
68 | </template> | 72 | </template> |
@@ -95,7 +99,7 @@ | @@ -95,7 +99,7 @@ | ||
95 | /> | 99 | /> |
96 | </a-form-item> | 100 | </a-form-item> |
97 | </a-form> | 101 | </a-form> |
98 | - <TestScriptModal @register="registerModal" @success="handleSuccess" /> | 102 | + <TestScriptModal @register="registerModal" /> |
99 | </div> | 103 | </div> |
100 | </template> | 104 | </template> |
101 | <script setup lang="ts"> | 105 | <script setup lang="ts"> |
@@ -195,6 +199,7 @@ | @@ -195,6 +199,7 @@ | ||
195 | 199 | ||
196 | const handleScriptType = ({ target }) => { | 200 | const handleScriptType = ({ target }) => { |
197 | const { value } = target; | 201 | const { value } = target; |
202 | + scriptForm.scriptType = value; | ||
198 | switchScriptTypeGetContent(value); | 203 | switchScriptTypeGetContent(value); |
199 | }; | 204 | }; |
200 | 205 |