Kaynağa Gözat

医健宝-新增按部门组查询条件

chenguo 1 ay önce
ebeveyn
işleme
5eb81c2cc8

+ 8 - 0
src/api/company/companyDept.js

@@ -9,6 +9,14 @@ export function listDept(query) {
   })
 }
 
+export function listGroupDept(query) {
+  return request({
+    url: '/company/companyDept/groupList',
+    method: 'get',
+    params: query
+  })
+}
+
 // 查询部门列表(排除节点)
 export function listDeptExcludeChild(deptId) {
   return request({

+ 19 - 0
src/views/course/courseWatchLog/index.vue

@@ -170,6 +170,20 @@
           />
         </el-select>
       </el-form-item>
+      <el-form-item label="组名" prop="deptId">
+        <el-select
+          filterable
+          v-model="queryParams.deptId"
+          placeholder="请选择组名"
+          clearable size="small">
+          <el-option
+            v-for="deptGroup in deptGroupOptions"
+            :key="deptGroup.deptId"
+            :label="deptGroup.deptName"
+            :value="deptGroup.deptId"
+          />
+        </el-select>
+      </el-form-item>
 
       <el-form-item>
         <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
@@ -497,6 +511,7 @@ import Vue from 'vue'
 import Calendar from 'vue-mobile-calendar'
 import {infoSop} from "@/api/qw/sop";
 import {getCompanyUserListLikeName} from "../../../api/company/companyUser";
+import { listGroupDept } from '@/api/company/companyDept'
 Vue.use(Calendar)
 
 export default {
@@ -546,6 +561,7 @@ export default {
         }
       },
       courseLists:[],
+      deptGroupOptions:[],
       videoList:[],
       logTypeOptions:[],
       sendTypeOptions:[{
@@ -675,6 +691,9 @@ export default {
     courseList().then(response => {
       this.courseLists = response.list;
     });
+    listGroupDept().then( response=>{
+      this.deptGroupOptions = response.data
+    })
     this.getList();
     this.getDicts("sys_course_watch_log_type").then(response => {
       this.logTypeOptions = response.data;