47 lines
1.9 KiB
Plaintext
47 lines
1.9 KiB
Plaintext
@model underlying_manager
|
||
@{
|
||
ViewBag.Title = "标的报价参数 | 编辑";
|
||
Layout = "~/Views/Shared/_InfoLayout.cshtml";
|
||
}
|
||
<style>
|
||
.percent {
|
||
line-height: 34px;
|
||
}
|
||
</style>
|
||
@section JS
|
||
{
|
||
<script type="text/javascript">
|
||
var Underlying = @Json.Serialize(ViewBag.Underlying);
|
||
var Underlying_Params = @Json.Serialize(ViewBag.Underlying_Params);
|
||
</script>
|
||
<script src="~/Scripts/app/underlying/pop_parameteredit.js?v=@(HtmlUtil.JsVersion)"></script>
|
||
}
|
||
<div id="listdiv" class="yc-panel">
|
||
<div class="form-group form-group-lg">
|
||
<div class="col-sm-4">
|
||
<label for="formGroupInputLarge">无风险利率</label>
|
||
<input type="number" v-model="Main_Param.NoRiskRate" id="NoRiskRate" />
|
||
<span class=".percent">%</span>
|
||
</div>
|
||
</div>
|
||
<div>
|
||
<table class="table table-bordered" style="border-collapse:separate; border-spacing:0px 10px;">
|
||
<tr v-for="(up,index) in Underlying_Params">
|
||
<td v-if="index===0" rowspan="2" width="100px">看涨</td>
|
||
<td v-if="index===2" rowspan="2" width="100px">看跌</td>
|
||
<td>
|
||
{{up.Type| TypeFilter}}
|
||
<span>price+</span><input type="number" class="text-right" v-model="up.Delta"> ×
|
||
<span>Delta+</span><input type="number" class="text-right" v-model="up.Gamma"> ×
|
||
<span>Gamma+</span><input type="number" class="text-right" v-model="up.Vega"> ×
|
||
<span>Vega+</span><input type="number" class="text-right" v-model="up.Other">
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<div class="form-group form-group-lg" style="text-align: center">
|
||
<input class="btn btn-primary " type="button" value="确定" v-on:click="submitParameters()" />
|
||
<input class="btn btn-primary " type="button" value="取消" v-on:click="closePage()" />
|
||
</div>
|
||
</div>
|