|
|
@@ -58,6 +58,17 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
|
|
|
+ <el-form-item label="医生组别" prop="groupCode">
|
|
|
+ <el-select v-model="searchForm.groupCode" placeholder="请选择医生组别" clearable size="small">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in groupCodeOptions"
|
|
|
+ :key="dict.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="dict.dictValue"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" @click="fetchList">搜索</el-button>
|
|
|
<el-button @click="resetSearch">重置</el-button>
|
|
|
@@ -76,6 +87,11 @@
|
|
|
>
|
|
|
<el-table-column type="index" label="序号" width="60" align="center"></el-table-column>
|
|
|
<el-table-column prop="doctorName" label="医生姓名" min-width="120"></el-table-column>
|
|
|
+ <el-table-column label="医生组别" align="center" prop="groupCode">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="groupCodeOptions" :value="scope.row.groupCode"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
prop="avgOperateSecond"
|
|
|
label="平均耗时"
|
|
|
@@ -119,6 +135,8 @@ export default {
|
|
|
name: 'DoctorDuration',
|
|
|
data() {
|
|
|
return {
|
|
|
+ // 医生组别字典
|
|
|
+ groupCodeOptions: [],
|
|
|
// 分页
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
@@ -131,6 +149,7 @@ export default {
|
|
|
depList:[],
|
|
|
// 搜索表单
|
|
|
searchForm: {
|
|
|
+ groupCode: null,
|
|
|
hospitalId: null,
|
|
|
deptId: null,
|
|
|
doctorName: '',
|
|
|
@@ -166,9 +185,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async created() {
|
|
|
- await this.loadHospitals()
|
|
|
- await this.loadDepartments()
|
|
|
- this.fetchList()
|
|
|
+ this.getDicts("doctor_group").then(response => {
|
|
|
+ this.groupCodeOptions = response.data;
|
|
|
+ });
|
|
|
+ await this.loadHospitals();
|
|
|
+ await this.loadDepartments();
|
|
|
+ await this.fetchList();
|
|
|
},
|
|
|
methods: {
|
|
|
// 获取列表
|