vue-panel.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. var panel_data = [{
  2. image: "/Common/assets/images/bim.png",
  3. name: "BIM資源網",
  4. info: `BIM資源網提供元件庫、API庫以及樣版庫,使用git管理元件、API以及樣板及其之版本控制,可瀏覽所有元件、API及樣板的內容及其相關屬性,以利下載自己所需之檔案。`,
  5. buttons: [{
  6. name: "進入",
  7. url: "/BIM-Resource/home.php"
  8. }],
  9. target: "",
  10. right: 0,
  11. },
  12. {
  13. image: "/Common/assets/images/BIM-Monitor.png",
  14. name: "BIM監測網",
  15. info: `BIM監測查詢網的目標為監測工地在各開挖階段時的工地安全,以及是否會影響到周遭環境,利用監測儀器回傳的數據以及工地模型,以視覺化的模式回饋儀器回傳的數據,可根據有異數據進行會議討論,提出處理方案。`,
  16. buttons: [{
  17. name: "進入",
  18. url: "/BIM-Monitor/home.php"
  19. }],
  20. target: "",
  21. right: 0,
  22. },
  23. {
  24. image: "/Common/assets/images/db.png",
  25. name: "設計資料庫查詢系統",
  26. info: `<p>設計圖資料庫</p>`,
  27. buttons: [{
  28. name: "進入",
  29. url: "/DataBase/index.php"
  30. }],
  31. target: "",
  32. right: 1,
  33. },
  34. {
  35. image: "/Common/assets/images/ArcGIS.png",
  36. name: "ArcGIS 系統",
  37. info: `<p>地理資訊系統</p>`,
  38. buttons: [{
  39. name: "2D 地圖",
  40. //url: "https://maaconsultants.maps.arcgis.com/apps/webappviewer/index.html?id=e95e23fbe1954895a5ded8e85972df77"
  41. url: "https://engdig.maa.com.tw/2D數位資訊平台/index.html?key=Maagis123"
  42. },
  43. {
  44. name: "3D 地圖",
  45. url: "https://engdig.maa.com.tw/3D數位資訊平台/index.html?key=Maagis123"
  46. }
  47. ],
  48. target: "_blank",
  49. right: 1,
  50. },
  51. {
  52. image: "/Common/assets/images/profile.png",
  53. name: "帳號管理系統",
  54. info: `本系統用於帳號管理:<br>
  55. 1.管理帳號密碼。<br>`,
  56. buttons: [{
  57. name: "進入",
  58. url: "/MyAccount/index.php"
  59. }],
  60. target: "",
  61. right: 1,
  62. },
  63. {
  64. image: "/Common/assets/images/permission.png",
  65. name: "權限管理系統",
  66. info: `本系統用於帳號權限管理:<br>
  67. 1.管理部門帳號權限。<br>`,
  68. buttons: [{
  69. name: "進入",
  70. url: "/Authorization/index.php"
  71. }],
  72. target: "",
  73. right: 3,
  74. },
  75. {
  76. image: "/Common/assets/images/architect.png",
  77. name: "智慧施工查核系統",
  78. info: `施工查核系統為一個提升查核效率且適合內業與外業情境的視查核管理平台。`,
  79. buttons: [{
  80. name: "進入",
  81. url: "http://125.227.151.69/2000R-02/#/signin"
  82. }],
  83. target: "_blank",
  84. right: 3,
  85. },
  86. {
  87. image: "/Common/assets/images/architect.png",
  88. name: "安全輔具",
  89. info: `就是拿來看使用率的`,
  90. buttons: [{
  91. name: "進入",
  92. url: "/ILert/index.php"
  93. }],
  94. target: "_blank",
  95. right: 3,
  96. }
  97. ]
  98. const vm = Vue.createApp({});
  99. vm.component('panel-row', {
  100. data() {
  101. return {
  102. panel_data: panelGroup,
  103. }
  104. },
  105. template: `<div v-for="rows in panel_data" class="row">
  106. <panel-object v-for="row in rows" :panel="row"></panel-object>
  107. </div>`
  108. });
  109. vm.component('panel-object', {
  110. props: {
  111. panel: Array,
  112. },
  113. template: `<div class="col-md-6 col-lg-6 col-xl-4">
  114. <section class="panel">
  115. <header class="panel-heading bg-primary">
  116. <div class="panel-heading-profile-picture">
  117. <img v-bind:src="panel.image" height="75px" alt="BIM">
  118. </div>
  119. </header>
  120. <div class="panel-body">
  121. <div class="panel-body-title">
  122. <h4 class="text-semibold mt-sm">{{panel.name}}</h4>
  123. <hr class="solid short">
  124. <a :target="panel.target" v-for="button in panel.buttons" v-bind:href="button.url"><button type="button" class="mb-xs mt-xs mr-xs btn btn-primary">{{button.name}}</button></a>
  125. </div>
  126. <div class="panel-body-info" v-html="panel.info" hidden></div>
  127. </div>
  128. </section>
  129. </div>`
  130. });