Electrocardiogram.vue 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. <template>
  2. <div>
  3. <div class="box-header">
  4. <div class="box-title boldtext">
  5. 心电 <span style="margin-left: 14px">2024-08-06</span>
  6. </div>
  7. <div>
  8. <el-date-picker
  9. size="small"
  10. v-model="currentDatePicker"
  11. type="date"
  12. placeholder="选择日期"
  13. value-format="yyyy-MM-dd"
  14. @change="datePickerchange"
  15. >
  16. </el-date-picker>
  17. </div>
  18. </div>
  19. <div class="ecg-echarts">
  20. <div class="ecg-echarts-title">
  21. <div class="ecg-echarts-title-l">
  22. <span class="ecg-echarts-num">--</span>bpm
  23. <span class="ecg-echarts-num" style="margin-left: 32px">10</span>mm/mv
  24. <span class="ecg-echarts-num" style="margin-left: 10px">25</span>mm/s
  25. </div>
  26. <div class="ecg-echarts-num">--</div>
  27. </div>
  28. <div class="ecg-echarts-box">
  29. <img src="@/assets/images/watchApi/bigicon.png" @click="handleCharts" />
  30. <div class="ecg-echarts-boxcharts">
  31. <Cardiogram />
  32. </div>
  33. </div>
  34. </div>
  35. <el-dialog title="心电图" :visible.sync="dialogVisible" width="1000px" :close-on-click-modal="false">
  36. <div class="dialog-header">
  37. <div class="dialog-header-left">
  38. <span>姓名:kooriookami</span>
  39. <span>性别: 女</span>
  40. <span>年龄: 27</span>
  41. </div>
  42. <div class="dialog-header-right">
  43. <el-button type="primary" size="small">保存图片结果</el-button>
  44. <el-button type="primary" size="small">保存原始数据</el-button>
  45. <span>Qt:0ms</span>
  46. <span>Qtc:0ms</span>
  47. <span>P-R:0ms</span>
  48. <span>QRS:0ms</span>
  49. </div>
  50. </div>
  51. <div class="cardiogram-box"><Cardiogram /></div>
  52. <div class="cardiogram-box"><Cardiogram /></div>
  53. <div class="cardiogram-box"><Cardiogram /></div>
  54. <div class="cardiogram-box"><Cardiogram /></div>
  55. <div class="dialog-res">
  56. <div class="dialog-resbox">诊断结论:</div>
  57. <span>检查时间: --</span>
  58. </div>
  59. <div class="dialog-tips">
  60. 注:以上诊断由人工智能诊断算法Cardiolearn给出,供参考,请以医院确诊结论为准。
  61. </div>
  62. <span slot="footer" class="dialog-footer">
  63. <el-button @click="dialogVisible = false">取 消</el-button>
  64. <el-button type="primary" @click="dialogVisible = false"
  65. >确 定</el-button
  66. >
  67. </span>
  68. </el-dialog>
  69. <div class="user-notes">
  70. <div class="user-notes-box">用户备注:</div>
  71. </div>
  72. <div class="ecg_result">
  73. <div class="ecg_result-box">
  74. <div class="ecg_result-title">诊断结论:</div>
  75. <div></div>
  76. <div class="ecg_result-tips">
  77. 注:以上诊断由人工智能诊断算法Cardiolearn给出,供参考,请以医院确诊结论为准。
  78. </div>
  79. </div>
  80. </div>
  81. <div class="box-header">
  82. <div class="box-title boldtext">心电数据列表</div>
  83. <div class="box-header-right">
  84. <div :class="dayType == 0 ? 'active' : ''" @click="handleDayType(0)">
  85. 今日
  86. </div>
  87. <div
  88. :class="dayType == 1 ? 'active line' : 'line'"
  89. @click="handleDayType(1)"
  90. >
  91. 最近7天
  92. </div>
  93. <div :class="dayType == 2 ? 'active' : ''" @click="handleDayType(2)">
  94. 最近30天
  95. </div>
  96. </div>
  97. </div>
  98. <el-table :data="tableData" style="width: 100%">
  99. <el-table-column prop="time" label="测量时间" />
  100. <el-table-column prop="date" label="分析结果" />
  101. <el-table-column prop="date2" label="心率" />
  102. <el-table-column fixed="right" label="操作" width="120">
  103. <template slot-scope="scope">
  104. <el-button type="text" size="small">查看</el-button>
  105. <el-button type="text" size="small">编辑</el-button>
  106. </template>
  107. </el-table-column>
  108. </el-table>
  109. <pagination
  110. v-show="total > 0"
  111. :total="total"
  112. :page.sync="queryParams.pageNum"
  113. :limit.sync="queryParams.pageSize"
  114. @pagination="getList"
  115. />
  116. </div>
  117. </template>
  118. <script>
  119. import Cardiogram from "@/components/DeviceInfo/Cardiogram.vue";
  120. export default {
  121. components: {
  122. Cardiogram,
  123. },
  124. data() {
  125. return {
  126. dialogVisible: false,
  127. currentDate: this.parseTime(new Date(), "{y}-{m}-{d}"),
  128. currentDatePicker: "",
  129. dayType: 0,
  130. tableData: [],
  131. total: 0,
  132. queryParams: {
  133. pageNum: 1,
  134. pageSize: 10,
  135. },
  136. };
  137. },
  138. methods: {
  139. datePickerchange() {
  140. this.currentDate =
  141. this.currentDatePicker || this.parseTime(new Date(), "{y}-{m}-{d}");
  142. },
  143. getList() {},
  144. handleDayType(type) {
  145. this.dayType = type;
  146. },
  147. //
  148. handleCharts() {
  149. this.dialogVisible = true;
  150. },
  151. },
  152. };
  153. </script>
  154. <style lang="scss" scoped>
  155. @mixin u-flex($flexD, $alignI, $justifyC) {
  156. display: flex;
  157. flex-direction: $flexD;
  158. align-items: $alignI;
  159. justify-content: $justifyC;
  160. }
  161. .boldtext {
  162. font-size: 16px;
  163. color: #292929;
  164. line-height: 30px;
  165. font-weight: 700;
  166. }
  167. .box-header {
  168. padding: 0 15px;
  169. @include u-flex(row, center, space-between);
  170. height: 50px;
  171. }
  172. .box-title {
  173. color: #292929;
  174. font-size: 16px;
  175. font-family: PingFang SC-Medium;
  176. padding-left: 10px;
  177. border-left: 4px solid #2284ff;
  178. line-height: 13px;
  179. }
  180. .ecg-echarts {
  181. padding: 20px;
  182. &-title {
  183. width: 100%;
  184. @include u-flex(row, center, space-between);
  185. color: #727272;
  186. font-size: 14px;
  187. &-l {
  188. @include u-flex(row, center, flex-start);
  189. }
  190. }
  191. &-num {
  192. margin-right: 5px;
  193. color: #292929;
  194. font-weight: 700;
  195. font-size: 16px;
  196. }
  197. &-box {
  198. width: 100%;
  199. max-width: 1240px;
  200. min-height: 150px;
  201. position: relative;
  202. img {
  203. width: 30px;
  204. height: 30px;
  205. position: absolute;
  206. z-index: 99;
  207. right: 20px;
  208. bottom: 20px;
  209. }
  210. }
  211. &-boxcharts {
  212. width: 100%;
  213. overflow-y: auto;
  214. }
  215. }
  216. .user-notes {
  217. padding: 10px 20px;
  218. &-box {
  219. background-color: #fff9f5;
  220. color: #ff9b52;
  221. font-size: 12px;
  222. padding: 15px 20px;
  223. }
  224. }
  225. .ecg_result {
  226. padding: 0 20px 10px 20px;
  227. color: #505050;
  228. font-size: 14px;
  229. &-box {
  230. background-color: #ebeeee;
  231. padding: 15px 20px;
  232. }
  233. &-title {
  234. font-size: 13px;
  235. font-weight: 700;
  236. color: #454545;
  237. padding: 10px 0;
  238. }
  239. &-tips {
  240. color: #999;
  241. padding: 20px 0 50px 0;
  242. font-size: 12px;
  243. }
  244. }
  245. .box-header-right {
  246. @include u-flex(row, center, flex-start);
  247. div {
  248. width: 80px;
  249. height: 18px;
  250. font-size: 12px;
  251. text-align: center;
  252. color: #949494;
  253. cursor: pointer;
  254. &:hover {
  255. color: #2284ff;
  256. }
  257. }
  258. .line {
  259. position: relative;
  260. &::after {
  261. content: "";
  262. width: 2px;
  263. height: 11px;
  264. background-color: #c2c2c2;
  265. position: absolute;
  266. left: 0;
  267. top: 50%;
  268. transform: translateY(-50%);
  269. }
  270. &::before {
  271. content: "";
  272. width: 2px;
  273. height: 11px;
  274. background-color: #c2c2c2;
  275. position: absolute;
  276. right: 0;
  277. top: 50%;
  278. transform: translateY(-50%);
  279. }
  280. }
  281. .active {
  282. color: #2284ff;
  283. }
  284. }
  285. .cardiogram-box {
  286. width: 100%;
  287. overflow-y: auto;
  288. margin: 20px 0;
  289. }
  290. .dialog{
  291. &-header {
  292. @include u-flex(row, center, space-between);
  293. &-left {
  294. flex: 1;
  295. span {
  296. margin-left: 10px;
  297. }
  298. }
  299. &-right {
  300. flex-shrink: 0;
  301. span {
  302. margin-left: 10px;
  303. }
  304. }
  305. }
  306. &-res {
  307. flex-shrink: 0;
  308. @include u-flex(row, center, space-between);
  309. }
  310. &-resbox {
  311. flex: 1;
  312. margin-left: 10px;
  313. }
  314. &-tips {
  315. margin-left: 10px;
  316. margin-top: 20px;
  317. }
  318. }
  319. </style>