45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
@{
|
|
ViewBag.Title = "板块性质别名配置";
|
|
Layout = "~/Views/Shared/_InfoLayout.cshtml";
|
|
}
|
|
|
|
@section CSS{
|
|
<style>
|
|
.yt-form label { text-align: right; width: 100px; line-height: 30px; }
|
|
</style>
|
|
}
|
|
|
|
@section JS{
|
|
<script>
|
|
function saveData() {
|
|
var data = new FormData(document.getElementById('form1'));
|
|
main.post('/UnderlyingBlock/AjaxSaveUnderlyingBlockConfig', data).done(function () {
|
|
main.alert("保存成功");
|
|
});
|
|
}
|
|
</script>
|
|
}
|
|
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<form class="yt-form" id="form1">
|
|
@for (var index = 1; index <= 5; index++)
|
|
{
|
|
<div class="form-group row">
|
|
<label class="col-auto">板块性质@(index)</label>
|
|
<div class="col">
|
|
<input type="text" name="block@(index)" id="block@(index)" maxlength="30" value="@(ViewData["block"+index])" placeholder="设置别名" class="form-control" />
|
|
</div>
|
|
</div>
|
|
}
|
|
<div class="form-group row">
|
|
<label class="col-auto"></label>
|
|
<div class="col">
|
|
<button type="button" class="btn btn-primary" onclick="saveData()">保存</button>
|
|
<button type="button" class="btn btn-primary" onclick="layer.closeMe()">关闭</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|