EnergyConsumptionMeterCheck.cshtml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. @{
  2. ViewData["TitleController"] = "能耗管理";
  3. ViewData["TitleAction"] = "能耗监控";
  4. ViewData["TitleActionDescription"] = "设备能耗仪表监控";
  5. ViewData["Title"] = "能耗监控";
  6. }
  7. <div id="app" style="color:#FCC439; font-size: 16px">
  8. <h3>设备电能表运行状态监控</h3>
  9. <hr />
  10. <div class="col-lg-12" style="min-height: 60px">
  11. <div class="col-lg-3" v-for="(machine, index) in machineMeterDtos" style="padding: 2px">
  12. <div style="border: 1px solid #ccc; padding: 10px; border-radius: 5px; height: 100px;">
  13. <h4>
  14. {{ machine.name }}
  15. <span v-if="machine.machineState === 1">(离线)</span>
  16. </h4>
  17. <div v-if="machine.state === 0">
  18. <div style="background-color: green; width: 20px; height: 20px;border-radius: 10px;float: left"></div>
  19. <span style="padding-left: 5px;">正常</span>
  20. </div>
  21. <div v-else-if="machine.state === 3">
  22. <div style="background-color: yellow; width: 20px; height: 20px;border-radius: 10px;float: left"></div>
  23. <span style="color: yellow; padding-left: 5px;">{{ machine.message }}</span>
  24. </div>
  25. <div v-else>
  26. <div style="background-color: red; width: 20px; height: 20px;border-radius: 10px;float: left"></div>
  27. <span style="color: red; padding-left: 5px;">{{ machine.message }}</span>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. @section footer {
  34. <script src="~/js/energy-consumption/EnergyConsumptionMeterCheck.js" asp-append-version="true"></script>
  35. }