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

weight.vue 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  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_weight">
  8. <new-nav activeName="weight"></new-nav>
  9. <div class="cell clearfix">
  10. <el-form :inline="true" :model="listQuery">
  11. <el-form-item label>
  12. <el-input v-model.trim="listQuery.search" placeholder="姓名/透析号" style="width:110px"></el-input>
  13. <el-button type="primary" @click="onSearch" icon="el-icon-search">搜索</el-button>
  14. </el-form-item>
  15. </el-form>
  16. <el-select
  17. v-model="value"
  18. placeholder="请选择"
  19. @change="chooseType"
  20. style="width:110px;margin-right:10px"
  21. >
  22. <el-option
  23. v-for="item in options"
  24. :key="item.value"
  25. :label="item.label"
  26. :value="item.value"
  27. ></el-option>
  28. </el-select>
  29. <el-select v-model="value" placeholder="请选择" style="width:110px;margin-right:10px">
  30. <el-option
  31. v-for="item in options"
  32. :key="item.value"
  33. :label="item.label"
  34. :value="item.value"
  35. ></el-option>
  36. </el-select>
  37. <el-select
  38. v-model="value"
  39. placeholder="请选择"
  40. @change="chooseType"
  41. style="width:110px;margin-right:10px"
  42. >
  43. <el-option
  44. v-for="item in options"
  45. :key="item.value"
  46. :label="item.label"
  47. :value="item.value"
  48. ></el-option>
  49. </el-select>
  50. <label class="title">
  51. <span class="name">日期查询</span> :
  52. </label>
  53. <el-date-picker
  54. v-model="listQuery.start_time"
  55. prefix-icon="el-icon-date"
  56. @change="changeTime"
  57. :editable="false"
  58. style="width: 150px;"
  59. type="date"
  60. placeholder="选择日期时间"
  61. align="right"
  62. format="yyyy-MM-dd"
  63. value-format="yyyy-MM-dd"
  64. ></el-date-picker>
  65. <span class>-</span>
  66. <el-date-picker
  67. v-model="listQuery.end_time"
  68. prefix-icon="el-icon-date"
  69. @change="changeEndTime"
  70. :editable="false"
  71. style="width: 150px;"
  72. type="date"
  73. placeholder="选择日期时间"
  74. align="right"
  75. format="yyyy-MM-dd"
  76. value-format="yyyy-MM-dd"
  77. ></el-date-picker>
  78. </div>
  79. <el-container>
  80. <div style="width:150px">
  81. <div class="tableTitle">患者列表</div>
  82. <el-table :data="tableData" border style="width: 100%;" height="500">
  83. <el-table-column prop="date" label="日期" width="70"></el-table-column>
  84. <el-table-column prop="name" label="姓名" width="80"></el-table-column>
  85. </el-table>
  86. </div>
  87. <div style="padding-left:10px;flex:1">
  88. <div class="tableTitle">指标趋势</div>
  89. <div>
  90. <line-chart :options="chart"></line-chart>
  91. </div>
  92. <div class="tableTitle">统计表</div>
  93. <div>
  94. <el-table :data="tableData1" style="width: 100%" border>
  95. <el-table-column fixed prop="date" label="日期"></el-table-column>
  96. <el-table-column prop="name" label="姓名"></el-table-column>
  97. <el-table-column prop="province" label="省份"></el-table-column>
  98. <el-table-column prop="city" label="市区"></el-table-column>
  99. <el-table-column prop="address" label="地址"></el-table-column>
  100. <el-table-column prop="zip" label="邮编"></el-table-column>
  101. <el-table-column label="操作" width="100">
  102. <template slot-scope="scope">
  103. <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
  104. </template>
  105. </el-table-column>
  106. </el-table>
  107. <el-pagination
  108. align="right"
  109. @size-change="handleSizeChange"
  110. @current-change="handleCurrentChange"
  111. :current-page="listQuery.page"
  112. :page-sizes="[10, 20, 50, 100]"
  113. :page-size="10"
  114. background
  115. style="margin-top:20px;"
  116. layout="total, sizes, prev, pager, next, jumper"
  117. :total="total"
  118. ></el-pagination>
  119. </div>
  120. </div>
  121. </el-container>
  122. </div>
  123. </div>
  124. </div>
  125. </template>
  126. <script>
  127. import echarts from "echarts";
  128. import NewNav from "../indicatorControlAnalysis/components/NewNav";
  129. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  130. import LineChart from "../../qcd/components/LineChart";
  131. export default {
  132. components: {
  133. LineChart,
  134. BreadCrumb,
  135. NewNav
  136. },
  137. data() {
  138. return {
  139. crumbs: [
  140. { path: false, name: "科室质控" },
  141. { path: false, name: "指标评估统计" },
  142. { path: false, name: "患者血压统计" }
  143. ],
  144. listQuery: {
  145. start_time: "",
  146. end_time: "",
  147. page: 1,
  148. limit: 10
  149. },
  150. tableData: [
  151. {
  152. date: "2016",
  153. name: "王小虎"
  154. },
  155. {
  156. date: "2016",
  157. name: "王小虎"
  158. },
  159. {
  160. date: "2016",
  161. name: "王小虎"
  162. },
  163. {
  164. date: "2016",
  165. name: "王小虎"
  166. },
  167. {
  168. date: "2016",
  169. name: "王小虎"
  170. },
  171. {
  172. date: "2016",
  173. name: "王小虎"
  174. },
  175. {
  176. date: "2016",
  177. name: "王小虎"
  178. },
  179. {
  180. date: "2016",
  181. name: "王小虎"
  182. },
  183. {
  184. date: "2016",
  185. name: "王小虎"
  186. },
  187. {
  188. date: "2016",
  189. name: "王小虎"
  190. },
  191. {
  192. date: "2016",
  193. name: "王小虎"
  194. },
  195. {
  196. date: "2016",
  197. name: "王小虎"
  198. }
  199. ],
  200. tableData1: [
  201. {
  202. date: "2016-05-03",
  203. name: "王小虎",
  204. province: "上海",
  205. city: "普陀区",
  206. address: "上海市普陀区金沙江路 1518 弄",
  207. zip: 200333
  208. },
  209. {
  210. date: "2016-05-02",
  211. name: "王小虎",
  212. province: "上海",
  213. city: "普陀区",
  214. address: "上海市普陀区金沙江路 1518 弄",
  215. zip: 200333
  216. },
  217. {
  218. date: "2016-05-04",
  219. name: "王小虎",
  220. province: "上海",
  221. city: "普陀区",
  222. address: "上海市普陀区金沙江路 1518 弄",
  223. zip: 200333
  224. },
  225. {
  226. date: "2016-05-01",
  227. name: "王小虎",
  228. province: "上海",
  229. city: "普陀区",
  230. address: "上海市普陀区金沙江路 1518 弄",
  231. zip: 200333
  232. },
  233. {
  234. date: "2016-05-08",
  235. name: "王小虎",
  236. province: "上海",
  237. city: "普陀区",
  238. address: "上海市普陀区金沙江路 1518 弄",
  239. zip: 200333
  240. },
  241. {
  242. date: "2016-05-06",
  243. name: "王小虎",
  244. province: "上海",
  245. city: "普陀区",
  246. address: "上海市普陀区金沙江路 1518 弄",
  247. zip: 200333
  248. },
  249. {
  250. date: "2016-05-07",
  251. name: "王小虎",
  252. province: "上海",
  253. city: "普陀区",
  254. address: "上海市普陀区金沙江路 1518 弄",
  255. zip: 200333
  256. },
  257. {
  258. date: "2016-05-08",
  259. name: "王小虎",
  260. province: "上海",
  261. city: "普陀区",
  262. address: "上海市普陀区金沙江路 1518 弄",
  263. zip: 200333
  264. },
  265. {
  266. date: "2016-05-06",
  267. name: "王小虎",
  268. province: "上海",
  269. city: "普陀区",
  270. address: "上海市普陀区金沙江路 1518 弄",
  271. zip: 200333
  272. },
  273. {
  274. date: "2016-05-07",
  275. name: "王小虎",
  276. province: "上海",
  277. city: "普陀区",
  278. address: "上海市普陀区金沙江路 1518 弄",
  279. zip: 200333
  280. }
  281. ],
  282. chart: {
  283. title: {
  284. text: "ECharts 入门示例"
  285. },
  286. tooltip: {},
  287. legend: {
  288. data: ["次数"],
  289. left: 0
  290. },
  291. xAxis: {
  292. data: ["达标", "未达标"]
  293. },
  294. yAxis: {
  295. axisLabel: {
  296. formatter: "{value} %"
  297. },
  298. show: false
  299. },
  300. series: [
  301. {
  302. name: "次数",
  303. type: "bar",
  304. data: ["78.57", "50"],
  305. barWidth: 30,
  306. label: {
  307. normal: {
  308. show: true,
  309. position: "top",
  310. formatter: "{c}次"
  311. }
  312. },
  313. //配置样式
  314. itemStyle: {
  315. //通常情况下:
  316. //每个柱子的颜色即为colorList数组里的每一项,如果柱子数目多于colorList的长度,则柱子颜色循环使用该数组
  317. normal: {
  318. color: function(params) {
  319. //我这边就两个柱子,大体就两个柱子颜色渐变,所以数组只有两个值,多个颜色就多个值
  320. var colorList = [
  321. ["#A9E0F3", "#9FBDFC"],
  322. ["#FFD7C0", "#FF9994"]
  323. ];
  324. var index = params.dataIndex;
  325. if (params.dataIndex >= colorList.length) {
  326. index = params.dataIndex % colorList.length;
  327. }
  328. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  329. { offset: 0, color: colorList[index][0] },
  330. // { offset: 0.5, color: colorList[index][1] },
  331. { offset: 1, color: colorList[index][1] }
  332. ]);
  333. },
  334. barBorderRadius: [5, 5, 0, 0] //柱状角成椭圆形
  335. },
  336. //鼠标悬停时:
  337. emphasis: {
  338. shadowBlur: 10,
  339. shadowOffsetX: 0,
  340. shadowColor: "rgba(0, 0, 0, 0.5)"
  341. }
  342. }
  343. }
  344. ]
  345. }
  346. };
  347. },
  348. methods: {
  349. chooseWay(way) {
  350. this.wayType = way;
  351. },
  352. handleClick(row) {
  353. console.log(row);
  354. this.$router.push({
  355. path: "/qcd/indicatorControlAnalysis/weightDetails"
  356. });
  357. }
  358. }
  359. };
  360. </script>
  361. <style lang="scss" scoped>
  362. .tableTitle {
  363. font-size: 16px;
  364. color: #000;
  365. font-weight: bold;
  366. margin-bottom: 10px;
  367. }
  368. </style>
  369. <style lang="scss">
  370. .page_weight {
  371. .el-button--medium {
  372. padding: 10px 8px;
  373. }
  374. .el-form-item {
  375. margin-bottom: 0;
  376. }
  377. .cell {
  378. text-align: center;
  379. }
  380. }
  381. </style>