You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/projects/IoTCenter/Areas/Admin/Views/Data/Details.cshtml

12 lines
395 B

@model EditDataModel
@{
HtmlTitle = "查看" + ViewContext.ViewData.ModelMetadata.ModelType.GetDisplayName();
}
@if (Model.Type == DeviceDataType.Int || Model.Type == DeviceDataType.Float)
{
<div class="row col-md-12">
<a class="btn btn-info btn-sm" href="@Url.Action("DataHistory","Data",new { id=Model.Id})">查看历史数据</a>
</div>
}
<br />
@Html.DisplayForModel()