pemeriksaan.js 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. import React, { Component } from 'react';
  2. import Router from 'next/router'
  3. import ContentWrapper from '@/components/Layout/ContentWrapper';
  4. import { Row, Col, Progress, Button } from 'reactstrap';
  5. import Sparkline from '@/components/Common/Sparklines';
  6. import Scrollable from '@/components/Common/Scrollable'
  7. import Datatable from '@/components/Tables/Datatable';
  8. import moment from 'moment';
  9. class BugTracker extends Component {
  10. newProcessClick = (e, PT_ID) => {
  11. //router = useRouter();
  12. //const query = { ptId: PT_ID };
  13. // '/app/profile'
  14. e.preventDefault();
  15. Router.push(
  16. {
  17. pathname: '/app/pemeriksaan.new'
  18. }
  19. );
  20. }
  21. render() {
  22. return (
  23. <ContentWrapper>
  24. <div className="content-heading">Evaluasi</div>
  25. <Row>
  26. <Col lg="4">
  27. {/* Aside card */}
  28. <div className="card b">
  29. <div className="card-body bb">
  30. <p>Overvall progress</p>
  31. <div className="d-flex align-items-center mb-2">
  32. <div className="w-100">
  33. <Progress className="progress-xs m0" color="info" value={ 20 } />
  34. </div>
  35. <div className="ml-auto">
  36. <div className="col wd-xxs text-right">
  37. <div className="text-bold text-muted">20%</div>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. <div className="card-body">
  43. <p>Metrics</p>
  44. <div className="row text-center">
  45. <div className="col-6 col-lg-6 col-xl-6">
  46. <Sparkline values={[20,80]}
  47. options={{
  48. type:"pie",
  49. height:"50",
  50. sliceColors:["#edf1f2", "#23b7e5"]
  51. }}
  52. className="sparkline"/>
  53. <p className="mt-3">Open Case</p>
  54. </div>
  55. <div className="col-6 col-lg-6 col-xl-6">
  56. <Sparkline values={[80,20]}
  57. options={{
  58. type:"pie",
  59. height:"50",
  60. sliceColors:["#edf1f2", "#27c24c"]
  61. }}
  62. className="sparkline"/>
  63. <p className="mt-3">Close Case</p>
  64. </div>
  65. {/* <div className="col-3 col-lg-6 col-xl-3">
  66. <Sparkline values={[20,80]}
  67. options={{
  68. type:"pie",
  69. height:"50",
  70. sliceColors:["#edf1f2", "#ff902b"]
  71. }}
  72. className="sparkline"/>
  73. <p className="mt-3">Hours</p>
  74. </div>
  75. <div className="col-3 col-lg-6 col-xl-3">
  76. <Sparkline values={[30,70]}
  77. options={{
  78. type:"pie",
  79. height:"50",
  80. sliceColors:["#edf1f2", "#f05050"]
  81. }}
  82. className="sparkline"/>
  83. <p className="mt-3">Assigned</p>
  84. </div> */}
  85. </div>
  86. </div>
  87. <table className="table bb">
  88. <tbody>
  89. {/* <tr>
  90. <td>
  91. <strong>Assigned Hours</strong>
  92. </td>
  93. <td>68 hs</td>
  94. </tr>
  95. <tr>
  96. <td>
  97. <strong>Time Consumed</strong>
  98. </td>
  99. <td>32 hs</td>
  100. </tr> */}
  101. <tr>
  102. <td>
  103. <strong>Open Case</strong>
  104. </td>
  105. <td>80</td>
  106. </tr>
  107. <tr>
  108. <td>
  109. <strong>Close Case</strong>
  110. </td>
  111. <td>20</td>
  112. </tr>
  113. <tr>
  114. <td>
  115. <strong>Performance</strong>
  116. </td>
  117. <td>
  118. <em className="far fa-smile fa-lg text-warning"></em>
  119. </td>
  120. </tr>
  121. {/* <tr>
  122. <td>
  123. <strong>Commits</strong>
  124. </td>
  125. <td>140</td>
  126. </tr> */}
  127. {/* <tr>
  128. <td>
  129. <strong>Last Case Closed</strong>
  130. </td>
  131. <td>
  132. <Scrollable height="120px" className="list-group">
  133. <table className="table table-bordered bg-transparent">
  134. <tbody>
  135. <tr>
  136. <td>
  137. <a className="text-muted" href="">BI:54678</a>
  138. </td>
  139. </tr>
  140. <tr>
  141. <td>
  142. <a className="text-muted" href="">BI:55778</a>
  143. </td>
  144. </tr>
  145. <tr>
  146. <td>
  147. <a className="text-muted" href="">BI:56878</a>
  148. </td>
  149. </tr>
  150. <tr>
  151. <td>
  152. <a className="text-muted" href="">BI:57978</a>
  153. </td>
  154. </tr>
  155. <tr>
  156. <td>
  157. <a className="text-muted" href="">BI:1107</a>
  158. </td>
  159. </tr>
  160. </tbody>
  161. </table>
  162. </Scrollable>
  163. </td>
  164. </tr> */}
  165. <tr>
  166. <td>
  167. <strong>Last Case Closed</strong>
  168. </td>
  169. <td>BI:1107 - 12/01/2016</td>
  170. </tr>
  171. </tbody>
  172. </table>
  173. </div>
  174. {/* end Aside card */}
  175. </Col>
  176. <Col lg="8">
  177. {/* <div className="mb-3 d-flex"> */}
  178. {/* <div> */}
  179. {/* <button className="btn btn-sm btn-info" type="button" onClick={(e) => this.newReportClick(e)}>Laporan Baru</button> */}
  180. {/* <Button color="info" size="sm" onClick={(e) => this.handleClick(e, pt.id)}>View</Button> */}
  181. {/* <button className="btn btn-sm btn-secondary" type="button">
  182. <em className="fa fa-user-plus"></em>
  183. </button>
  184. <button className="btn btn-sm btn-secondary" type="button">
  185. <em className="fas fa-pencil-alt"></em>
  186. </button>
  187. <button className="btn btn-sm btn-secondary" type="button">
  188. <em className="fas fa-share"></em>
  189. </button>
  190. <button className="btn btn-sm btn-secondary" type="button">
  191. <em className="fa fa-print"></em>
  192. </button> */}
  193. {/* </div> */}
  194. {/* <div className="ml-auto">
  195. <p className="mb-0 mt-1">19 bugs / 16 issues</p>
  196. </div> */}
  197. {/* </div> */}
  198. <div className="card b">
  199. <div className="card-body">
  200. <Datatable options={{responsive: true}}>
  201. <table className="table w-100">
  202. <thead>
  203. <tr>
  204. {/* <th>Type</th> */}
  205. <th>#ID</th>
  206. <th>Description</th>
  207. <th>Created</th>
  208. {/* <th>Priority</th>
  209. <th>Asigned</th> */}
  210. <th>Status</th>
  211. {/* <th>Action</th> */}
  212. </tr>
  213. </thead>
  214. <tbody>
  215. <tr>
  216. <td>BI:54678</td>
  217. <td className="text-nowrap">
  218. <div className="media align-items-center">
  219. <a className="mr-3" href="">
  220. <img className="img-fluid rounded thumb64" src="/static/img/dummy-search.png" alt="Dummy"/>
  221. </a>
  222. <div className="media-body d-flex">
  223. <div>
  224. <h4 className="m-0">Universitas Satyagama</h4>
  225. <small className="text-muted">0742/O/1990 - www.satyagama.ac.id - info@satyagama.ac.id</small>
  226. <p>Jalan Kamal Raya No 2-A Cengkareng</p>
  227. <p> </p>
  228. </div>
  229. </div>
  230. </div>
  231. </td>
  232. <td>{moment("2020-04-04 11:45:26.123").fromNow()}</td>
  233. <td>
  234. <div className="ml-auto">
  235. <button class="btn-oval btn btn-primary" size="sm" onClick={(e) => this.newProcessClick(e)}>Update Data</button>
  236. </div>
  237. </td>
  238. </tr>
  239. </tbody>
  240. </table>
  241. </Datatable>
  242. </div>
  243. </div>
  244. </Col>
  245. </Row>
  246. </ContentWrapper>
  247. );
  248. }
  249. }
  250. export default BugTracker;