Keep reviewed trades in options list and stop search autofill.

Top trade list no longer hides reviewed rows; search box resists browser username autofill (dekun).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-19 16:26:02 +08:00
parent 72dddc5106
commit 220aab9b63
2 changed files with 51 additions and 13 deletions
@@ -87,21 +87,27 @@
<button type="button" class="or-tab" data-source="options_options" role="tab">期期对冲记录</button>
<button type="button" class="or-tab" data-source="perp_options" role="tab">永期对冲记录</button>
</div>
<p class="muted" style="margin:0 0 8px;font-size:.72rem">待复盘交易(每页5条).点「复盘」填写表单;保存后进入下方复盘记录.</p>
<p class="muted" style="margin:0 0 8px;font-size:.72rem">交易记录(每页5条).点「复盘」填写表单;已复盘仍保留在此列表,也可在下方查看详情.</p>
<div class="form-row" style="flex-wrap:wrap;gap:6px;margin-bottom:8px">
<select id="or-filter-uly" style="font-size:.76rem">
<select id="or-filter-uly" style="font-size:.76rem" autocomplete="off">
<option value="">标的:全部</option>
<option value="ETH">ETH</option>
<option value="BTC">BTC</option>
</select>
<select id="or-filter-opt" style="font-size:.76rem">
<select id="or-filter-opt" style="font-size:.76rem" autocomplete="off">
<option value="">Call/Put:全部</option>
<option value="C">Call</option>
<option value="P">Put</option>
</select>
<input type="text" id="or-filter-q" placeholder="搜索标的/合约/策略" autocomplete="off" style="max-width:150px;font-size:.76rem">
<input type="datetime-local" id="or-filter-from" title="平仓起" style="font-size:.76rem">
<input type="datetime-local" id="or-filter-to" title="平仓止" style="font-size:.76rem">
{# 诱饵框吸收浏览器把用户名(dekun)填进搜索框 #}
<input type="text" name="username" autocomplete="username" tabindex="-1" aria-hidden="true"
style="position:absolute;left:-9999px;width:1px;height:1px;opacity:0" value="">
<input type="search" id="or-filter-q" name="or_filter_q" placeholder="搜索标的/合约/策略"
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
data-lpignore="true" data-1p-ignore="true" data-form-type="other"
readonly style="max-width:150px;font-size:.76rem">
<input type="datetime-local" id="or-filter-from" title="平仓起" autocomplete="off" style="font-size:.76rem">
<input type="datetime-local" id="or-filter-to" title="平仓止" autocomplete="off" style="font-size:.76rem">
<label class="muted" style="display:flex;align-items:center;gap:4px;font-size:.72rem">
<input type="checkbox" id="or-include-hedge-legs"> 含已归属对冲的期权腿
</label>
@@ -265,4 +271,4 @@
</div>
</div>
<script src="/static/options_review.js?v=14"></script>
<script src="/static/options_review.js?v=15"></script>