mzfWatches.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>慢阻肺手表数据</title>
  6. <meta name="author" content="yihu.com" />
  7. <meta name="format-detection" content="telephone=no" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"
  9. />
  10. <meta name="apple-mobile-web-app-capable" content="yes" />
  11. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  12. <link rel="stylesheet" type="text/css" href="../../../css/font-awesome.min.css" />
  13. <link rel="stylesheet" type="text/css" href="../../../css/style.min.css" />
  14. <link rel="stylesheet" type="text/css" href="../../../css/cross.css" />
  15. <link rel="stylesheet" type="text/css" href="../../../css/flex.css" />
  16. <link rel="stylesheet" type="text/css" href="../../../css/element-ui.css" />
  17. <link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
  18. <link rel="stylesheet" type="text/css" href="../css/common.css" />
  19. <link rel="stylesheet" type="text/css" href="../css/mzfWorksheet.css" />
  20. </head>
  21. <body style="margin: 0;overflow-x: auto;" v-cloak>
  22. <div id="main" class="">
  23. <div class="ui-col-1 bgc-fff" style="min-width: 900px;">
  24. <div class="flexibleBox">
  25. <div class="maxBox">
  26. <div class="inquireTime">查询时间
  27. <el-date-picker
  28. v-model="startTime"
  29. type="date"
  30. placeholder="选择日期"
  31. :picker-options="setDisabled"
  32. @change='startTimeChange'>
  33. </el-date-picker> ~
  34. <el-date-picker
  35. v-model="endTime"
  36. type="date"
  37. placeholder="选择日期"
  38. :picker-options="setDisabled"
  39. @change='endTimeChange'>
  40. </el-date-picker>
  41. </div>
  42. <!-- <div class="mt10">
  43. <span class="mr10">地区</span>
  44. <el-select class="mr10" v-model="tertiary" placeholder="请选择" size="mini" multiple @change="tertiaryChange" @remove-tag="clearTertiary">
  45. <el-option
  46. v-for="item in tertiaryHospitalsData"
  47. :key="item.areaCode"
  48. :label="item.areaName"
  49. :value="item.areaCode">
  50. </el-option>
  51. </el-select>
  52. <span class="mr10">三级医院</span>
  53. <el-select class="mr10" v-model="communityHospitals" placeholder="请选择" size="mini" multiple @change="comChange" @remove-tag="clearCommunityHospitals">
  54. <el-option
  55. v-for="item in communityHospitalsData"
  56. :key="item.hospitalCode"
  57. :label="item.hospitalName"
  58. :value="item.hospitalCode">
  59. </el-option>
  60. </el-select>
  61. <span class="mr10">社区医院</span>
  62. <el-select v-model="group" placeholder="请选择" size="mini" multiple clearable @change="groChange" @remove-tag="clearGroup" >
  63. <el-option
  64. v-for="item in groupingData"
  65. :key="item.hospitalCode"
  66. :label="item.hospitalName"
  67. :value="item.hospitalCode">
  68. </el-option>
  69. </el-select>
  70. </div> -->
  71. <el-form class="handleNodeId-40 flex mt10">
  72. <!-- <el-form-item label="管理状态">
  73. <el-select v-model="region" placeholder="请选择" size="mini">
  74. <el-option
  75. v-for="item in regionData"
  76. :key="item.value"
  77. :label="item.label"
  78. :value="item.value">
  79. </el-option>
  80. </el-select>
  81. </el-form-item>
  82. <el-form-item label="患者姓名" class="ml10">
  83. <el-input v-model="patientName" size="mini" width="400" placeholder="请输入患者姓名"></el-input>
  84. </el-form-item> -->
  85. <div class="selectedButton ml10 mt10" class="dept-select formLeft" style="width: 300px;line-height: 38px;">
  86. <el-button type="primary" size="mini" @click="confirm">查询</el-button>
  87. <el-button type="ff9526" size="mini" @click="exportHandle">导出</el-button>
  88. <!-- <el-button type="info" size="mini" @click="cancel">取消</el-button> -->
  89. </div>
  90. </el-form>
  91. </div>
  92. </div>
  93. <el-table border :data="tableData" style="width: 100%" v-loading="loadingTwo" height='550' class="mt20" >
  94. <template >
  95. <el-table-column type="index" width='50' label="序号" align="center"></el-table-column>
  96. <el-table-column prop="name" label="区域" align="center">
  97. </el-table-column>
  98. <!-- <el-table-column prop="name" label="三级医院" align="center"></el-table-column> -->
  99. <!-- <el-table-column prop="entryTime" label="社区医院" align="center"> -->
  100. </el-table-column>
  101. <el-table-column label="手表亚组总人数" align="center">
  102. <template slot-scope="scope">
  103. <div class="" style="color: #12B7F5;cursor: pointer;" @click="showInfo(scope.row)">{{scope.row.watchNum}}</div>
  104. </template>
  105. </el-table-column>
  106. <el-table-column prop="entryNum" label="入手表亚组总天数" align="center"></el-table-column>
  107. <el-table-column prop="rate" label="总有效数据天数百分" align="center"></el-table-column>
  108. <el-table-column prop="yesterdayNum" label="昨天活跃人数" align="center"></el-table-column>
  109. </template>
  110. </el-table>
  111. </div>
  112. <el-dialog
  113. title="患者详情"
  114. :visible.sync="dialogVisible"
  115. width="70%">
  116. <el-button type="ff9526" size="mini" @click="exportHandleList">导出</el-button>
  117. <el-table v-loading="loadingTwo" border :data="dataInfo" style="width: 100%" height="400" class="mt20" >
  118. <el-table-column type="index" width='50' label="序号" align="center"></el-table-column>
  119. <el-table-column prop="groupScreeningCode" label="受试者编号" align="center"></el-table-column>
  120. <el-table-column prop="name" label="患者姓名" align="center"></el-table-column>
  121. <el-table-column prop="deviceId" label="设备ID" align="center"></el-table-column>
  122. <el-table-column prop="watchTime" label="入手表亚组时间" align="center"></el-table-column>
  123. <el-table-column prop="doctorName" label="管理医生" align="center"></el-table-column>
  124. <el-table-column prop="entryNum" label="入手表亚组天数" align="center"></el-table-column>
  125. <el-table-column prop="rate" label="有效数据天数百分比(%)" align="center"></el-table-column>
  126. <el-table-column prop="synDate" label="同步数据时间" align="center"></el-table-column>
  127. <el-table-column label="操作" align="center">
  128. <template slot-scope="scope">
  129. <el-button @click="btn(scope.row)" type="text" size="small">查看</el-button>
  130. </template>
  131. </el-table-column>
  132. </el-table>
  133. <div class="c-t-right mt20">
  134. <el-pagination
  135. @current-change="handleCurrentChange"
  136. :current-page.sync="currentPage"
  137. :page-size="currentSize"
  138. layout="total, prev, pager, next, jumper"
  139. :total="datatotal">
  140. </el-pagination>
  141. </div>
  142. </el-dialog>
  143. <el-dialog :visible.sync="showPdf" width="70%" height="600px" title="患者个人详情">
  144. <div style="height: 35px;display: flex;line-height: 35px;text-align: center;">
  145. <div style="height: 100%;width: 100px;border: 1px solid #DDDDDD;cursor: pointer;" :style="(index+1)==copdListIndex?'background: rgb(64, 158, 255);color: #fff;':''" v-for="(item,index) in copdListTbas" :key="index" @click="tabClick(index+1)">{{item.name}}</div>
  146. </div>
  147. <el-button type="ff9526" size="mini" class="mt10" @click="exportcopdListData">导出</el-button>
  148. <el-table v-loading="loadingTwo" border :data="copdListData" style="width: 100%" height="400" class="mt20" >
  149. <!-- <el-table-column type="index" width='50' label="序号" align="center"></el-table-column> -->
  150. <el-table-column prop="name" label="患者姓名" align="center"></el-table-column>
  151. <el-table-column prop="groupScreeningCode" label="受试者编号" align="center"></el-table-column>
  152. <template v-if="copdListIndex==1">
  153. <el-table-column prop="date" label="数据时间" align="center"></el-table-column>
  154. <el-table-column prop="steps" label="总步数" align="center"></el-table-column>
  155. <el-table-column prop="distance" label="总距离(米)" align="center"></el-table-column>
  156. <el-table-column prop="walkTime" label="步行时长(分)" align="center"></el-table-column>
  157. <el-table-column prop="runDistance" label="跑步距离(米)" align="center"></el-table-column>
  158. <el-table-column prop="runTime" label="跑步时长(分)" align="center"></el-table-column>
  159. <el-table-column prop="calories" label="总燃烧卡路里(千卡)" align="center"></el-table-column>
  160. </template>
  161. <template v-if="copdListIndex==2">
  162. <el-table-column prop="date" label="数据时间" align="center"></el-table-column>
  163. <el-table-column prop="deep_sleep_time" label="深睡时长(分)" align="center"></el-table-column>
  164. <el-table-column prop="shallow_sleep_time" label="浅睡时长(分)" align="center"></el-table-column>
  165. <el-table-column prop="wake_time" label="清醒时长(分)" align="center"></el-table-column>
  166. <el-table-column prop="startDate" label="睡眠开始时间" align="center"></el-table-column>
  167. <el-table-column prop="stopDate" label="睡眠结束时间" align="center"></el-table-column>
  168. <el-table-column prop="sleep_score" label="睡眠得分" align="center"></el-table-column>
  169. </template>
  170. <template v-if="copdListIndex==3">
  171. <el-table-column prop="heartDate" label="数据时间" align="center"></el-table-column>
  172. <el-table-column prop="heart_rate_data" label="心率值" align="center"></el-table-column>
  173. </template>
  174. <template v-if="copdListIndex==4">
  175. <el-table-column prop="calendar_day" label="数据时间" align="center"></el-table-column>
  176. <el-table-column prop="daily_pai" label="每日PAI值" align="center"></el-table-column>
  177. <el-table-column prop="total_pai" label="本周PAI值" align="center"></el-table-column>
  178. </template>
  179. <template v-if="copdListIndex==5">
  180. <el-table-column prop="date" label="数据时间" align="center"></el-table-column>
  181. <el-table-column prop="spo2" label="血氧" align="center"></el-table-column>
  182. </template>
  183. <template v-if="copdListIndex==6">
  184. <el-table-column prop="date" label="数据时间" align="center"></el-table-column>
  185. <el-table-column prop="exportKeyName" label="分数类型" align="center"></el-table-column>
  186. <el-table-column prop="score" label="健康分" align="center"></el-table-column>
  187. </template>
  188. </el-table>
  189. <div class="c-t-right mt20">
  190. <el-pagination
  191. @current-change="handleCurrentChangeTwo"
  192. :current-page.sync="currentPageTwo"
  193. :page-size="currentSizeTwo"
  194. layout="total, prev, pager, next, jumper"
  195. :total="datatotalTwo">
  196. </el-pagination>
  197. </div>
  198. </el-dialog>
  199. </div>
  200. <script src="../../../js/FileSaver/FileSaver.js" type="text/javascript" charset="utf-8"></script>
  201. <script src="../../../js/vue.js" type="text/javascript" charset="utf-8"></script>
  202. <script src="../../../js/jquery-2.2.4.js" type="text/javascript" charset="utf-8"></script>
  203. <script src="../../../js/element-ui.js" type="text/javascript" charset="utf-8"></script>
  204. <script src="../../../plugins/toastr/toastr.min.js"></script>
  205. <script src="../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
  206. <script src="../../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
  207. <script src="../../../js/util.js" type="text/javascript" charset="utf-8"></script>
  208. <script src="../../../api/http-request.js" type="text/javascript" charset="utf-8"></script>
  209. <script src="../../../api/home-api.js" type="text/javascript" charset="utf-8"></script>
  210. <script src="../../../api/statistics-api.js" type="text/javascript" charset="utf-8"></script>
  211. <script src="../../../component/common/event-bus.js"></script>
  212. <script src="../../../component/statistics/header-tab.js" type="text/javascript" charset="utf-8"></script>
  213. <script src="../../../component/statistics/header-prompt.js" type="text/javascript" charset="utf-8"></script>
  214. <script type="text/javascript" src="../../../api/sign_api.js"></script>
  215. <script src="../js/common.js" type="text/javascript" charset="utf-8"></script>
  216. <!-- <script src="../js/watches.js" type="text/javascript" charset="utf-8"></script> -->
  217. </body>
  218. </html>