Skip to content

Commit f2b4307

Browse files
committed
优化回归测试的UI
1 parent 72b47dd commit f2b4307

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

img/refresh.png

5.55 KB
Loading

index.html

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,22 @@
7676

7777
<!--<div :class="'side-left side-view-' + baseview">-->
7878
<div class="side-left">
79-
<div class="left-bar" >
79+
<div v-show="! isRemoteShow" class="left-bar" >
8080
<button class="transfer" id="vTransfer" @click="transfer()">' / "</button>
8181
<input class="url" id="vUrl" type="text" placeholder="请输入请求的接口地址" @keyup="doOnKeyUp(event)" />
8282
<button class="send" id="vSend" @click="send()">发送请求</button>
8383
</div>
84+
<div v-show="isRemoteShow" class="left-bar">
85+
<svg class="icon" style="margin-left: 10px">
86+
<use xlink:href="svg/icon.svg#share"></use>
87+
</svg>
88+
<span style="display: flex;flex-grow: 1;font-size: medium;margin-left: 6px">测试用例</span>
89+
<a class="hint--top save-tool" data-hint="回归测试" href="javascript:void(0)" @click="test()">
90+
<img class="icon" src="img/refresh.png"/>
91+
</a>
92+
</div>
8493
<div class="left-panel">
85-
<ul v-show="isRemoteShow" class="historys" style="width: 100%;height: 100%;overflow: hidden;overflow-y: scroll;">
94+
<ul v-show="isRemoteShow" class="historys" style="width: 100%;height: 100%;overflow: hidden;overflow-y: scroll;padding-bottom: 50px">
8695
<li v-for="(item, index) in remotes" >
8796
<a href="javascript:void(0)" @click="restore(item)" > {{(item.version > 0 ? 'V' + item.version : 'V*') + ' ' + item.name + ' ' + item.url}}</a>
8897
<div v-show="item.compare != null && item.compare > 0" style="position: absolute;right: 30px;display: inline-block;">
@@ -92,7 +101,7 @@
92101
</svg>
93102
<button @click="handleTest(true, index, item)">正确,上传</button>
94103
</div>
95-
<svg v-show="item.userId == User.id" class="icon" @click="remove(item, index, true)">
104+
<svg v-show="item.userId == User.id" class="icon" style="margin-right: 4px" @click="remove(item, index, true)">
96105
<use xlink:href="svg/icon.svg#trash"></use>
97106
</svg>
98107
</li>
@@ -160,12 +169,6 @@
160169
</ul>
161170
</span>
162171

163-
<a class="hint--top save-tool" data-hint="回归测试,TODO 做成列表上方的文字按钮" href="javascript:void(0)" @click="test()">
164-
<svg class="icon">
165-
<use xlink:href="svg/icon.svg#save"></use>
166-
</svg>
167-
</a>
168-
169172
</div>
170173
<div class="pull-right">
171174

0 commit comments

Comments
 (0)