38 lines
1.6 KiB
Plaintext
38 lines
1.6 KiB
Plaintext
<a id="btnAutoRulePopup" class="nav-link yl-btn-drop" href="#" data-toggle="dropdown">
|
|
<span>自动预警</span>
|
|
<span class="caret"></span> <span class="badge yl-badge" v-cloak>{{alarmSum}}</span>
|
|
</a>
|
|
<div class="dropdown-menu yl-autorule-dropdown" onclick="event.stopPropagation()">
|
|
<div class="table-responsive">
|
|
<table class="table table-sm yl-autorule-table" id="autoRuleTable">
|
|
<colgroup>
|
|
<col span="1" width="150" />
|
|
<col span="1" width="150" />
|
|
<col span="1" width="100" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th>标的代码</th>
|
|
<th>Delta上下限</th>
|
|
<th>实时Delta%</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr v-for="item in ruleMap" v-if="item.$delta" v-bind:class="item.$alarm?'table-danger':''">
|
|
<td>
|
|
<a href="javascript:;" v-on:click="editRule(item.UnderlyingCode)">{{item.UnderlyingCode}}</a>
|
|
</td>
|
|
<td>{{item.MinDelta|toPercent}} ~ {{item.MaxDelta|toPercent}}</td>
|
|
<td>{{item.$delta}}</td>
|
|
<td>
|
|
<a href="javascript:;" v-on:click="hedging(item.UnderlyingCode)">对冲</a>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="yl-autorule-fix">
|
|
<button class="btn btn-link yl-autorule-new" v-on:click="editRule"><i class="fa fa-plus"></i></button>
|
|
</div>
|
|
</div> |