Skip to content

Commit 470a580

Browse files
committed
improve the mock service ui page
1 parent 1bac471 commit 470a580

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

console/atest-ui/src/views/MockManager.vue

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,13 @@ items:
117117
API Prefix:<EditButton :value="mockConfig.Prefix" @changed="prefixChanged"/>
118118
Port:<EditButton :value="mockConfig.Port" @changed="portChanged"/>
119119
Store:
120-
<el-select v-model="mockConfig.storeKind" placeholder="Select Store Kind">
120+
<el-select v-model="mockConfig.storeKind" placeholder="Select Store Kind"
121+
class="m-2 select"
122+
size="default">
121123
<el-option label="Memory" value="memory"></el-option>
122124
<el-option label="Local File" value="localFile"></el-option>
123-
<el-option label="Remote" value="remote"></el-option>
124-
<el-option label="URL" value="url"></el-option>
125125
</el-select>
126-
<span v-if="mockConfig.storeKind === 'localFile'">
127-
File:<el-input v-model="mockConfig.storeLocalFile" placeholder="Local File Path"></el-input>
128-
</span>
126+
<el-input v-model="mockConfig.storeLocalFile" placeholder="Local File Path" v-if="mockConfig.storeKind === 'localFile'"></el-input>
129127
</div>
130128
<el-splitter layout="vertical" style="height: calc(100vh - 100px);">
131129
<el-splitter-panel size="70%">
@@ -141,12 +139,12 @@ items:
141139
</el-tabs>
142140
</el-splitter-panel>
143141
<el-splitter-panel size="30%">
144-
<el-card class="log-output" shadow="hover">
142+
<el-card shadow="hover">
145143
<template #header>
146144
<span>{{ t('title.logs') }}</span>
147145
</template>
148-
<el-scrollbar ref="logScrollbar">
149-
<pre style="white-space: pre-wrap; word-break: break-all;">{{ logOutput }}</pre>
146+
<el-scrollbar>
147+
<pre style="white-space: pre-wrap; word-break: break-all;">{{logOutput}}</pre>
150148
</el-scrollbar>
151149
</el-card>
152150
</el-splitter-panel>
@@ -160,8 +158,10 @@ items:
160158
align-items: center;
161159
gap: 8px;
162160
}
163-
.log-output {
164-
height: 100%;
165-
overflow: auto;
161+
.select {
162+
width: 150px !important;
163+
}
164+
.el-input {
165+
--el-input-width: 300px !important;
166166
}
167167
</style>

console/atest-ui/src/views/TestCase.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ Magic.LoadMagicKeys('TestCase', new Map([
12901290
v-model="historyForm.selectedID"
12911291
default-first-option
12921292
placeholder="History Case"
1293-
size="middle"
1293+
size="default"
12941294
@change="handleHistoryChange"
12951295
>
12961296
<el-option

console/atest-ui/src/views/TestSuite.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ const renameTestSuite = (name: string) => {
458458
v-model="testCaseForm.request.method"
459459
class="m-2"
460460
placeholder="Method"
461-
size="middle"
461+
size="default"
462462
test-id="case-form-method"
463463
>
464464
<el-option

0 commit comments

Comments
 (0)