Browse Source

首页医生数据统计新增

master
aBin 4 years ago
parent
commit
9fd3dd1536
  1. 10
      src/App.vue
  2. 4
      src/views/Index/Index.vue
  3. 12
      src/views/ProjectAssistant/General.vue

10
src/App.vue

@ -3,7 +3,7 @@
* @email: 18603454788@163.com
* @Date: 2021-04-19 10:23:19
* @LastEditors: wally
* @LastEditTime: 2021-05-12 11:48:09
* @LastEditTime: 2021-05-12 16:55:17
-->
<template>
<a-config-provider :locale="zh_CN">
@ -40,10 +40,10 @@ export default {
},
created() {
// async created() {
// const userId = '1210049212671201280';
// const params = { userId };
// await this.getUserId(params);
// await this.getToken();
// const userId = '1210049212671201280';
// const params = { userId };
// await this.getUserId(params);
// await this.getToken();
if (localStorage.getItem('patientId')) {
this.setPatientId(localStorage.getItem('patientId'));
}

4
src/views/Index/Index.vue

@ -3,7 +3,7 @@
* @email: 18603454788@163.com
* @Date: 2021-02-22 09:20:03
* @LastEditors: wally
* @LastEditTime: 2021-05-12 10:42:57
* @LastEditTime: 2021-05-12 16:55:01
-->
<template>
<div class="flex-wrap">
@ -17,7 +17,7 @@
</a-card>
</div>
<div class="fill-width mb-3">
<a-card style="width: 100%; height: 400px" :title="hospitalId ? '医生病例分析' : '各医院病例分析'">
<a-card style="width: 100%; height: 400px" :title="hospitalId ? '医生病例统计' : '各医院病例统计'">
<categorymap v-if="hospitalId === ''" />
<categorymap-hos v-else />
</a-card>

12
src/views/ProjectAssistant/General.vue

@ -4,24 +4,24 @@
<a-form :form="form" class="d-flex flex-wrap align-center" layout="inline">
<div class="fill-width">
<a-form-item>
<a-select placeholder="请选择医院" style="width: 200px" @change="changeHospitalId" allow-clear>
<a-select placeholder="请选择医院" style="width: 180px" @change="changeHospitalId" allow-clear>
<a-select-option :key="item.id" :value="item.id" v-for="item in hospitals">{{ item.name }}</a-select-option>
</a-select>
</a-form-item>
<a-form-item>
<a-select placeholder="请选择医生" style="width: 200px" @change="changeDoctorId" allow-clear>
<a-select placeholder="请选择医生" style="width: 180px" @change="changeDoctorId" allow-clear>
<a-select-option :key="item.id" :value="item.id" v-for="item in doctorList">{{ item.name }}</a-select-option>
</a-select>
</a-form-item>
<a-form-item>
<a-select placeholder="请选择组别" style="width: 200px" @change="changeInpatientId" allow-clear>
<a-select placeholder="请选择组别" style="width: 180px" @change="changeInpatientId" allow-clear>
<a-select-option :key="item.id" :value="item.id" v-for="item in controlGroups">{{ item.name }}</a-select-option>
</a-select>
</a-form-item>
</div>
<div class="fill-width">
<a-form-item>
<a-range-picker @change="changeTime" style="width: 318px">
<a-range-picker @change="changeTime" style="width: 278px">
<template slot="dateRender" slot-scope="current">
<div class="ant-calendar-date" :style="getCurrentStyle(current)">
{{ current.date() }}
@ -30,7 +30,7 @@
</a-range-picker>
</a-form-item>
<a-form-item>
<a-select placeholder="请选择状态" :default-value="recordStatus" style="width: 200px" @change="changeStatus" allow-clear>
<a-select placeholder="请选择状态" :default-value="recordStatus" style="width: 180px" @change="changeStatus" allow-clear>
<a-select-option :key="index" :value="index" v-for="(item, index) in status">{{ item }}</a-select-option>
</a-select>
</a-form-item>
@ -213,7 +213,7 @@ export default {
inputStatus: recordStatus,
pageSize: 10,
doctorId,
role: 1,
role: 2,
startTime,
endTime,
},

Loading…
Cancel
Save