Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

patientComplianceDetails.vue 9.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. </div>
  6. <div class="app-container">
  7. <div class="page_patientComplianceDetails">
  8. <div class="cell clearfix" style="margin:0">
  9. <el-form :inline="true" :model="listQuery">
  10. <el-form-item label>
  11. <el-input v-model.trim="listQuery.search" placeholder="姓名/透析号" style="width:150px"></el-input>
  12. <el-button type="primary" @click="onSearch" icon="el-icon-search">搜索</el-button>
  13. </el-form-item>
  14. </el-form>
  15. </div>
  16. <el-container>
  17. <div style="width:150px">
  18. <div class="tableTitle">患者列表</div>
  19. <el-table :data="tableData" border style="width: 100%;" height="500">
  20. <el-table-column prop="date" label="日期" width="70"></el-table-column>
  21. <el-table-column prop="name" label="姓名" width="80"></el-table-column>
  22. </el-table>
  23. </div>
  24. <div class="containerRight" style="flex:1;overflow: hidden">
  25. <div class="cell clearfix">
  26. <label class="title" style="text-align:left">
  27. <span class="name">统计方式</span> :
  28. </label>
  29. <div class="time">
  30. <ul class>
  31. <li
  32. :class="item.state == monthType ? 'active' : ''"
  33. @click="chooseMonth(item.state)"
  34. v-for="item in month"
  35. :key="item.value"
  36. >{{ item.label }}</li>
  37. </ul>
  38. </div>
  39. <label class="title">
  40. <span class="name">日期查询</span> :
  41. </label>
  42. <el-date-picker
  43. v-model="listQuery.start_time"
  44. prefix-icon="el-icon-date"
  45. @change="changeTime"
  46. :editable="false"
  47. type="date"
  48. style="max-width:160px"
  49. placeholder="选择日期时间"
  50. align="right"
  51. format="yyyy-MM-dd"
  52. value-format="yyyy-MM-dd"
  53. ></el-date-picker>
  54. <span class>-</span>
  55. <el-date-picker
  56. v-model="listQuery.end_time"
  57. prefix-icon="el-icon-date"
  58. @change="changeEndTime"
  59. :editable="false"
  60. type="date"
  61. style="max-width:160px"
  62. placeholder="选择日期时间"
  63. align="right"
  64. format="yyyy-MM-dd"
  65. value-format="yyyy-MM-dd"
  66. ></el-date-picker>
  67. </div>
  68. <div class="tableTitle">指标监控</div>
  69. <div style="width:100%;overflow-x:auto">
  70. <div class="qualityBox">
  71. <div
  72. class="qualityOne"
  73. v-for="(item,index) in arr"
  74. :key="index"
  75. :class="quality == index ? 'active' : ''"
  76. @click="clickQuality(index)"
  77. >
  78. <p>{{ item }}</p>
  79. <i class="iconfont icon-gantanhao gth" v-if="index % 2 == 0"></i>
  80. <i class="iconfont icon-gou gou" v-else></i>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="tableTitle">指标趋势</div>
  85. <div>
  86. <line-chart :options="chart"></line-chart>
  87. </div>
  88. </div>
  89. </el-container>
  90. </div>
  91. </div>
  92. </div>
  93. </template>
  94. <script>
  95. import echarts from "echarts";
  96. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  97. import LineChart from "../qcd/components/LineChart";
  98. export default {
  99. components: {
  100. LineChart,
  101. BreadCrumb
  102. },
  103. data() {
  104. return {
  105. crumbs: [
  106. { path: false, name: "科室质控" },
  107. { path: false, name: "患者达标详情" }
  108. ],
  109. tableData: [
  110. {
  111. date: "2016",
  112. name: "王小虎"
  113. },
  114. {
  115. date: "2016",
  116. name: "王小虎"
  117. },
  118. {
  119. date: "2016",
  120. name: "王小虎"
  121. },
  122. {
  123. date: "2016",
  124. name: "王小虎"
  125. },
  126. {
  127. date: "2016",
  128. name: "王小虎"
  129. },
  130. {
  131. date: "2016",
  132. name: "王小虎"
  133. },
  134. {
  135. date: "2016",
  136. name: "王小虎"
  137. },
  138. {
  139. date: "2016",
  140. name: "王小虎"
  141. },
  142. {
  143. date: "2016",
  144. name: "王小虎"
  145. },
  146. {
  147. date: "2016",
  148. name: "王小虎"
  149. },
  150. {
  151. date: "2016",
  152. name: "王小虎"
  153. },
  154. {
  155. date: "2016",
  156. name: "王小虎"
  157. }
  158. ],
  159. listQuery: {
  160. start_time: "",
  161. end_time: "",
  162. page: 1,
  163. limit: 10
  164. },
  165. month: [
  166. { value: 0, label: "本月", state: 0 },
  167. { value: 1, label: "近三个月", state: 1 },
  168. { value: 2, label: "近半年", state: 2 },
  169. { value: 3, label: "近一年", state: 3 }
  170. ],
  171. monthType: 0,
  172. arr: ["钙", "磷", "钙萨达撒所多", "磷", "钙", "磷", "钙", "磷"],
  173. quality: 0,
  174. chart: {
  175. title: {
  176. text: "ECharts 入门示例"
  177. },
  178. tooltip: {},
  179. legend: {
  180. data: ["次数"],
  181. left: 0
  182. },
  183. xAxis: {
  184. data: ["1", "2", "3", "4", "5", "6", "7", "8", "9"]
  185. },
  186. yAxis: {
  187. axisLabel: {
  188. formatter: "{value} %"
  189. },
  190. show: false
  191. },
  192. series: [
  193. {
  194. name: "次数",
  195. type: "line",
  196. data: [
  197. "78.57",
  198. "50",
  199. "80",
  200. "93.33",
  201. "92.86",
  202. "100",
  203. "12",
  204. "77",
  205. "37"
  206. ],
  207. barWidth: 30,
  208. label: {
  209. normal: {
  210. show: true,
  211. position: "top",
  212. formatter: "{c}次"
  213. }
  214. },
  215. //配置样式
  216. itemStyle: {
  217. //通常情况下:
  218. //每个柱子的颜色即为colorList数组里的每一项,如果柱子数目多于colorList的长度,则柱子颜色循环使用该数组
  219. normal: {
  220. color: function(params) {
  221. //我这边就两个柱子,大体就两个柱子颜色渐变,所以数组只有两个值,多个颜色就多个值
  222. var colorList = [
  223. ["#A9E0F3", "#9FBDFC"],
  224. ["#A9E0F3", "#9FBDFC"],
  225. ["#A9E0F3", "#9FBDFC"],
  226. ["#FFD7C0", "#FF9994"],
  227. ["#FFD7C0", "#FF9994"],
  228. ["#FFD7C0", "#FF9994"],
  229. ["#D7C3FD", "#B3A8F7"],
  230. ["#D7C3FD", "#B3A8F7"],
  231. ["#D7C3FD", "#B3A8F7"]
  232. ];
  233. var index = params.dataIndex;
  234. if (params.dataIndex >= colorList.length) {
  235. index = params.dataIndex % colorList.length;
  236. }
  237. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  238. { offset: 0, color: colorList[index][0] },
  239. // { offset: 0.5, color: colorList[index][1] },
  240. { offset: 1, color: colorList[index][1] }
  241. ]);
  242. },
  243. barBorderRadius: [5, 5, 0, 0] //柱状角成椭圆形
  244. },
  245. //鼠标悬停时:
  246. emphasis: {
  247. shadowBlur: 10,
  248. shadowOffsetX: 0,
  249. shadowColor: "rgba(0, 0, 0, 0.5)"
  250. }
  251. }
  252. }
  253. ]
  254. }
  255. };
  256. },
  257. methods: {
  258. chooseMonth(month) {
  259. this.monthType = month;
  260. },
  261. clickQuality(index) {
  262. this.quality = index;
  263. }
  264. }
  265. };
  266. </script>
  267. <style lang="scss" scoped>
  268. .containerRight {
  269. padding-left: 10px;
  270. }
  271. .tableTitle {
  272. font-size: 16px;
  273. color: #000;
  274. font-weight: bold;
  275. margin-bottom: 10px;
  276. margin-top: 8px;
  277. }
  278. .qualityBox {
  279. display: flex;
  280. flex-wrap: nowrap;
  281. min-width: 1800px;
  282. .qualityOne {
  283. width: 4.5rem;
  284. height: 4.5rem;
  285. border-radius: 0.3125rem;
  286. border: 1px solid rgba(229, 229, 229, 1);
  287. display: flex;
  288. align-items: center;
  289. flex-direction: column;
  290. margin-right: 0.875rem;
  291. cursor: pointer;
  292. // justify-content: space-around;
  293. .gth {
  294. color: #ff974a;
  295. font-size: 1.25rem;
  296. }
  297. .gou {
  298. color: #5cd924;
  299. font-size: 1.25rem;
  300. }
  301. p {
  302. width: 100%;
  303. margin-top: 1.25rem;
  304. margin-bottom: 0.625rem;
  305. font-weight: bold;
  306. color: #666666;
  307. font-size: 0.875rem;
  308. text-align: center;
  309. white-space: nowrap;
  310. overflow: hidden;
  311. text-overflow: ellipsis;
  312. }
  313. }
  314. .active {
  315. background: #5b98ff;
  316. p {
  317. color: #fff;
  318. }
  319. .gth {
  320. color: #fff;
  321. font-size: 1.25rem;
  322. }
  323. .gou {
  324. color: #fff;
  325. font-size: 1.25rem;
  326. }
  327. }
  328. }
  329. </style>
  330. <style lang="scss">
  331. .page_patientComplianceDetails {
  332. .cell {
  333. text-align: center;
  334. }
  335. .el-form-item {
  336. margin-bottom: 0;
  337. }
  338. }
  339. </style>