|
@@ -145,7 +145,7 @@ export default {
|
145
|
145
|
loading: false,
|
146
|
146
|
total: '',
|
147
|
147
|
query: {
|
148
|
|
- admin_user_id: "",
|
|
148
|
+ admin_user_id: 0,
|
149
|
149
|
statistics_type: 1,
|
150
|
150
|
start_time: "",
|
151
|
151
|
end_time: "",
|
|
@@ -154,7 +154,10 @@ export default {
|
154
|
154
|
},
|
155
|
155
|
|
156
|
156
|
|
157
|
|
- doctor_options:[],
|
|
157
|
+ doctor_options:[
|
|
158
|
+ {id:0,user_name:"全部",admin_user_id:0}
|
|
159
|
+
|
|
160
|
+ ],
|
158
|
161
|
project_options:[
|
159
|
162
|
{value:1, name:"治疗"},
|
160
|
163
|
{value:2, name:"病程记录"},
|
|
@@ -278,6 +281,7 @@ export default {
|
278
|
281
|
this.query.admin_user_id = val
|
279
|
282
|
this.query.page = 1
|
280
|
283
|
this.GetDoctorWorkloadTableData(this.query)
|
|
284
|
+ this.GetDoctorWorkloadChartData(this.query)
|
281
|
285
|
|
282
|
286
|
},
|
283
|
287
|
GetAllDoctor(){
|
|
@@ -319,9 +323,24 @@ export default {
|
319
|
323
|
var resp = rs.data
|
320
|
324
|
if (resp.state == 1) {
|
321
|
325
|
this.loading = false
|
|
326
|
+ let total_cure = 0
|
|
327
|
+ let total_rescue = 0
|
|
328
|
+ let total_course = 0
|
|
329
|
+
|
322
|
330
|
for (let i = 0; i < resp.data.data.length; i++) {
|
|
331
|
+ total_cure = total_cure + resp.data.data[i].p_count
|
|
332
|
+ total_rescue = total_rescue + resp.data.data[i].rescue_count
|
|
333
|
+ total_course = total_course + resp.data.data[i].course_count
|
323
|
334
|
this.tableData.push(resp.data.data[i])
|
324
|
335
|
}
|
|
336
|
+
|
|
337
|
+ this.tableData.push( {
|
|
338
|
+ user_name:"合计",
|
|
339
|
+ p_count:total_cure,
|
|
340
|
+ course_count:total_course,
|
|
341
|
+ rescue_count:total_rescue
|
|
342
|
+ })
|
|
343
|
+
|
325
|
344
|
} else {
|
326
|
345
|
this.loading = false
|
327
|
346
|
}
|
|
@@ -351,6 +370,8 @@ export default {
|
351
|
370
|
|
352
|
371
|
this.bar.xAxis.data = []
|
353
|
372
|
this.bar.series[0].data = []
|
|
373
|
+ this.percent = []
|
|
374
|
+
|
354
|
375
|
GetDoctorWorkloadChartData(params)
|
355
|
376
|
.then(rs => {
|
356
|
377
|
var resp = rs.data
|