Files
zszq-trs/YLErpWeb/Views/RiskHedging/_IndexV2/_AutoRule.cshtml
T
2024-05-09 14:06:26 +08:00

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>&nbsp;&nbsp;<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}}&nbsp;~&nbsp;{{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>