123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- @{
- ViewBag.Title = "Index";
- Layout = "~/Views/Shared/_Index.cshtml";
- }
- <link href="~/Content/scripts/bootstrap/bootstrap.min.css" rel="stylesheet" />
- <script>
- $(function () {
- InitialPage();
- GetDeviceData();
- });
- //初始化页面
- function InitialPage() {
- //resize重设(表格、树形)宽高
- $(window).resize(function (e) {
- window.setTimeout(function () {
- $('#gridTable').setGridWidth(($('.gridPanel').width()));
- $("#gridTable").setGridHeight($(window).height() - 141);
- }, 200);
- e.stopPropagation();
- });
- }
- //获取设备实施信息
- function GetDeviceData() {
- var htmlData;
- $.ajax({
- url: '/SecondaryWaterSupply/Device/GetAllDeviceData',
- type: 'get',
- cache: false,
- async: false,
- success: function (data) {
- //console.log(data);
- htmlData = data;
- },
- error: function (a, b, c) {
- console.log(b);
- }
- });
- $("#dataContant").html(htmlData);
- }
- </script>
- <style>
- .subblock .content .title {
- padding-top: 15px;
- padding-bottom: 10px;
- border-bottom: solid #919191 2px;
- color: #666;
- font-size: 18px;
- text-align: center;
- }
- .gridPanel {
- background-color: white;
- border: 1px solid #ccc;
- }
- .rowStyle {
- line-height: 40px;
- background: rgba(245, 245, 245, 0.52);
- padding: 0px 15px;
- }
- .rowStyle a {
- text-decoration: none;
- font-size: 16px;
- padding: 0px;
- }
- .rowStyle label {
- font-size: 14px;
- padding: 0px;
- }
- .backColor {
- background-color: #E5F5FD;
- }
- .subblock {
- box-shadow: 10px 10px 5px #888888;
- }
- </style>
- <div class="titlePanel">
- <div class="toolbar">
- <div class="btn-group">
- <a id="lr-replace" class="btn btn-default" onclick="reload();"><i class="fa fa-refresh"></i> 刷新</a>
- </div>
- </div>
- </div>
- <div class="gridPanel">
- <div class="row" id="dataContant">
-
- </div>
- </div>
|