index.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!doctype html>
  2. <html lang="en" data-bs-theme="auto">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <link rel="icon" href="/app/images/dongke-logo.png">
  7. <link href="/plugins/bootstrap/bootstrap.min.css" rel="stylesheet">
  8. <title>东科软件</title>
  9. </head>
  10. <body class="p-3 m-0 border-0 m-0 border-0">
  11. <!-- 导航条 -->
  12. <div v-scope="navbar({})"></div>
  13. <!--电子看板列表-->
  14. <div v-scope="dashboardList()" @vue:mounted="getDashboardList" class="d-flex flex-column flex-md-row p-4 gap-4 py-md-5 align-items-center justify-content-center">
  15. <div class="list-group w-100">
  16. <a v-for="(item,index) in dashboardList.device" :key="index" :href="item.url" class="list-group-item list-group-item-action d-flex gap-3 py-3" aria-current="true">
  17. <img src="/app/images/dongke-logo.png" alt="twbs" height="32" class="flex-shrink-0">
  18. <div class="d-flex gap-2 w-100 justify-content-between">
  19. <div>
  20. <h6 class="mb-0">{{item.name}}</h6>
  21. <p class="mb-0 opacity-75">{{item.memo}}</p>
  22. </div>
  23. <small class="opacity-50 text-nowrap">{{item.time}}</small>
  24. </div>
  25. </a>
  26. </div>
  27. </div>
  28. <!--版权信息-->
  29. <div v-scope="footer({})"></div>
  30. <script src="/plugins/bootstrap/bootstrap.bundle.min.js"></script>
  31. <script src="/plugins/vue/petite-vue.iife.js"></script>
  32. <script src="/plugins/axios/axios.min.js"></script>
  33. <script src="/app/common/navbar.js"></script>
  34. <script src="/app/common/footer.js"></script>
  35. <script>
  36. function dashboardList() {
  37. return {
  38. //设备看板列表
  39. dashboardList: [],
  40. //获取数据方法
  41. getDashboardList() {
  42. let self = this;
  43. axios.get('/app/api/getDashboardList.ashx')
  44. .then(function (response) {
  45. self.dashboardList = response.data;
  46. })
  47. .catch(function (error) {
  48. });
  49. }
  50. }
  51. }
  52. PetiteVue.createApp().mount();
  53. </script>
  54. </body>
  55. </html>