|
@@ -0,0 +1,272 @@
|
|
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="cell clearfix">
|
|
8
|
+ <label class="title">
|
|
9
|
+ <span class="name">转归状态</span> :
|
|
10
|
+ </label>
|
|
11
|
+ <div class="time">
|
|
12
|
+ <ul class>
|
|
13
|
+ <li
|
|
14
|
+ :class="item.state == stateType ? 'active' : ''"
|
|
15
|
+ @click="selectLapseTo(item.state)"
|
|
16
|
+ v-for="item in month"
|
|
17
|
+ :key="item.value"
|
|
18
|
+ >{{ item.label }}</li>
|
|
19
|
+ </ul>
|
|
20
|
+ </div>
|
|
21
|
+ <el-date-picker
|
|
22
|
+ v-model="listQuery.start_time"
|
|
23
|
+ prefix-icon="el-icon-date"
|
|
24
|
+ @change="changeTime"
|
|
25
|
+ :editable="false"
|
|
26
|
+ style="width: 196px;"
|
|
27
|
+ type="date"
|
|
28
|
+ placeholder="选择日期时间"
|
|
29
|
+ align="right"
|
|
30
|
+ format="yyyy-MM-dd"
|
|
31
|
+ value-format="yyyy-MM-dd"
|
|
32
|
+ :picker-options="pickerOptions"
|
|
33
|
+ ></el-date-picker>
|
|
34
|
+ <span class>-</span>
|
|
35
|
+ <el-date-picker
|
|
36
|
+ v-model="listQuery.end_time"
|
|
37
|
+ prefix-icon="el-icon-date"
|
|
38
|
+ @change="changeEndTime"
|
|
39
|
+ :editable="false"
|
|
40
|
+ style="width: 196px;"
|
|
41
|
+ type="date"
|
|
42
|
+ placeholder="选择日期时间"
|
|
43
|
+ align="right"
|
|
44
|
+ format="yyyy-MM-dd"
|
|
45
|
+ value-format="yyyy-MM-dd"
|
|
46
|
+ :picker-options="pickerOptions"
|
|
47
|
+ ></el-date-picker>
|
|
48
|
+ </div>
|
|
49
|
+ <el-container>
|
|
50
|
+ <div style="width:150px">
|
|
51
|
+ <div class="tableTitle">患者列表</div>
|
|
52
|
+ <el-table :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
|
|
53
|
+ :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
|
54
|
+ highlight-current-row
|
|
55
|
+ @current-change="handleChange">
|
|
56
|
+ <el-table-column prop="dialysis_no" label="透析号" width="80">
|
|
57
|
+ <template slot-scope="scope">{{scope.row.dialysis_no}}</template>
|
|
58
|
+ </el-table-column>
|
|
59
|
+ <el-table-column prop="name" label="姓名" width="80">
|
|
60
|
+ <template slot-scope="scope">{{ scope.row.name }}</template>
|
|
61
|
+ </el-table-column>
|
|
62
|
+ </el-table>
|
|
63
|
+ </div>
|
|
64
|
+ <div style="padding-left:10px;flex:1">
|
|
65
|
+ <div class="tableTitle">统计图</div>
|
|
66
|
+ <div>
|
|
67
|
+ <line-chart :options="chart"></line-chart>
|
|
68
|
+ </div>
|
|
69
|
+ </div>
|
|
70
|
+ </el-container>
|
|
71
|
+ </div>
|
|
72
|
+ </div>
|
|
73
|
+</template>
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+<script>
|
|
78
|
+const moment = require('moment')
|
|
79
|
+import { GetOICData } from "@/api/qcd";
|
|
80
|
+import PieChart from "../qcd/components/BarChart";
|
|
81
|
+import { uParseTime } from "@/utils/tools";
|
|
82
|
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
|
83
|
+export default {
|
|
84
|
+ name: "dialysisTotal",
|
|
85
|
+ components: {
|
|
86
|
+ PieChart,
|
|
87
|
+ BreadCrumb
|
|
88
|
+ },
|
|
89
|
+ data() {
|
|
90
|
+ return {
|
|
91
|
+ pickerOptions: {
|
|
92
|
+ disabledDate(time) {
|
|
93
|
+ let threeMonths = new Date(new Date().setFullYear(new Date().getFullYear()-1)).getTime() - 24 * 3600 * 1000;
|
|
94
|
+ return time.getTime() > Date.now() || time.getTime() < threeMonths;;
|
|
95
|
+ }
|
|
96
|
+ },
|
|
97
|
+ crumbs: [
|
|
98
|
+ { path: false, name: "质控管理" },
|
|
99
|
+ { path: false, name: "基本信息统计" }
|
|
100
|
+ ],
|
|
101
|
+ listQuery: {
|
|
102
|
+ start_time: "",
|
|
103
|
+ end_time: "",
|
|
104
|
+ page: 1,
|
|
105
|
+ limit: 10
|
|
106
|
+ },
|
|
107
|
+ stateType: 0,
|
|
108
|
+ month: [
|
|
109
|
+ { value: 0, label: "本月", state: 0 },
|
|
110
|
+ { value: 1, label: "近三个月", state: 1 },
|
|
111
|
+ { value: 2, label: "近半年", state: 2 },
|
|
112
|
+ { value: 3, label: "近一年", state: 3 },
|
|
113
|
+ { value:4,label:"自定义",state:4}
|
|
114
|
+ ],
|
|
115
|
+ };
|
|
116
|
+ },
|
|
117
|
+ methods: {
|
|
118
|
+
|
|
119
|
+ },
|
|
120
|
+ created() {
|
|
121
|
+
|
|
122
|
+ },
|
|
123
|
+};
|
|
124
|
+</script>
|
|
125
|
+
|
|
126
|
+ <style rel="stylesheet/scss" lang="scss" scoped>
|
|
127
|
+ .tableTitle {
|
|
128
|
+ font-size: 16px;
|
|
129
|
+ color: #000;
|
|
130
|
+ font-weight: bold;
|
|
131
|
+ margin-bottom: 10px;
|
|
132
|
+}
|
|
133
|
+.infoBox {
|
|
134
|
+ display: flex;
|
|
135
|
+ flex-wrap: wrap;
|
|
136
|
+ .infoOne {
|
|
137
|
+ margin-right: 30px;
|
|
138
|
+ margin-top: 30px;
|
|
139
|
+ .titleBox {
|
|
140
|
+ display: flex;
|
|
141
|
+ align-items: center;
|
|
142
|
+ }
|
|
143
|
+ .point {
|
|
144
|
+ display: inline-block;
|
|
145
|
+ width: 7px;
|
|
146
|
+ height: 7px;
|
|
147
|
+ background: linear-gradient(
|
|
148
|
+ 90deg,
|
|
149
|
+ rgba(169, 224, 243, 1),
|
|
150
|
+ rgba(159, 189, 252, 1)
|
|
151
|
+ );
|
|
152
|
+ border-radius: 50%;
|
|
153
|
+ }
|
|
154
|
+ .point1 {
|
|
155
|
+ width: 7px;
|
|
156
|
+ height: 7px;
|
|
157
|
+ background: linear-gradient(
|
|
158
|
+ 90deg,
|
|
159
|
+ rgba(255, 215, 192, 1),
|
|
160
|
+ rgba(255, 153, 148, 1)
|
|
161
|
+ );
|
|
162
|
+ border-radius: 50%;
|
|
163
|
+ }
|
|
164
|
+ .point2 {
|
|
165
|
+ width: 7px;
|
|
166
|
+ height: 7px;
|
|
167
|
+ background: linear-gradient(
|
|
168
|
+ 90deg,
|
|
169
|
+ rgba(215, 195, 253, 1),
|
|
170
|
+ rgba(179, 168, 247, 1)
|
|
171
|
+ );
|
|
172
|
+ border-radius: 50%;
|
|
173
|
+ }
|
|
174
|
+ .infoTitle {
|
|
175
|
+ font-size: 16px;
|
|
176
|
+ font-weight: bold;
|
|
177
|
+ margin-left: 5px;
|
|
178
|
+ color: #000;
|
|
179
|
+ }
|
|
180
|
+ .borderBox {
|
|
181
|
+ width: 340px;
|
|
182
|
+ min-height: 140px;
|
|
183
|
+ background: rgba(255, 255, 255, 1);
|
|
184
|
+ border: 1px solid rgba(229, 229, 229, 1);
|
|
185
|
+ border-radius: 10px;
|
|
186
|
+ padding: 0 14px 20px;
|
|
187
|
+ margin-top: 10px;
|
|
188
|
+ p {
|
|
189
|
+ font-size: 14px;
|
|
190
|
+ color: #000;
|
|
191
|
+ margin: 10px 0 3px;
|
|
192
|
+ }
|
|
193
|
+ }
|
|
194
|
+ .borderBox1 {
|
|
195
|
+ width: 340px;
|
|
196
|
+ min-height: 140px;
|
|
197
|
+ background: rgba(255, 255, 255, 1);
|
|
198
|
+ border: 1px solid rgba(229, 229, 229, 1);
|
|
199
|
+ border-radius: 10px;
|
|
200
|
+ padding: 0 14px 20px;
|
|
201
|
+ margin-top: 10px;
|
|
202
|
+ p {
|
|
203
|
+ font-size: 14px;
|
|
204
|
+ color: #000;
|
|
205
|
+ margin: 10px 0 3px;
|
|
206
|
+ }
|
|
207
|
+ }
|
|
208
|
+ .borderBox2 {
|
|
209
|
+ width: 340px;
|
|
210
|
+ min-height: 140px;
|
|
211
|
+ background: rgba(255, 255, 255, 1);
|
|
212
|
+ border: 1px solid rgba(229, 229, 229, 1);
|
|
213
|
+ border-radius: 10px;
|
|
214
|
+ padding: 0 14px 20px;
|
|
215
|
+ margin-top: 10px;
|
|
216
|
+ p {
|
|
217
|
+ font-size: 14px;
|
|
218
|
+ color: #000;
|
|
219
|
+ margin: 10px 0 3px;
|
|
220
|
+ }
|
|
221
|
+ }
|
|
222
|
+ }
|
|
223
|
+}
|
|
224
|
+</style>
|
|
225
|
+
|
|
226
|
+<style lang="scss">
|
|
227
|
+.infoBox {
|
|
228
|
+ .infoOne {
|
|
229
|
+ .borderBox {
|
|
230
|
+ .el-progress-bar__inner {
|
|
231
|
+ background: linear-gradient(
|
|
232
|
+ 90deg,
|
|
233
|
+ rgba(169, 224, 243, 1),
|
|
234
|
+ rgba(159, 189, 252, 1)
|
|
235
|
+ );
|
|
236
|
+ }
|
|
237
|
+ .el-progress-bar{
|
|
238
|
+ margin-right: -59px;
|
|
239
|
+ padding-right: 60px;
|
|
240
|
+ }
|
|
241
|
+ }
|
|
242
|
+ .borderBox1 {
|
|
243
|
+ .el-progress-bar__inner {
|
|
244
|
+ background: linear-gradient(
|
|
245
|
+ 90deg,
|
|
246
|
+ rgba(255, 215, 192, 1),
|
|
247
|
+ rgba(255, 153, 148, 1)
|
|
248
|
+ );
|
|
249
|
+ }
|
|
250
|
+ .el-progress-bar{
|
|
251
|
+ margin-right: -59px;
|
|
252
|
+ padding-right: 60px;
|
|
253
|
+ }
|
|
254
|
+ }
|
|
255
|
+ .borderBox2 {
|
|
256
|
+ .el-progress-bar__inner {
|
|
257
|
+ background: linear-gradient(
|
|
258
|
+ 90deg,
|
|
259
|
+ rgba(215, 195, 253, 1),
|
|
260
|
+ rgba(179, 168, 247, 1)
|
|
261
|
+ );
|
|
262
|
+ }
|
|
263
|
+ .el-progress-bar{
|
|
264
|
+ margin-right: -59px;
|
|
265
|
+ padding-right: 60px;
|
|
266
|
+ }
|
|
267
|
+ }
|
|
268
|
+ }
|
|
269
|
+}
|
|
270
|
+</style>
|
|
271
|
+
|
|
272
|
+
|