heyang 1 year ago
parent
commit
b735e94aec

+ 8 - 0
src/api/commonality/noPermission.js

@@ -180,3 +180,11 @@ export function systemUserSelectUser(data) {
     data: data
   })
 }
+//根据学院id查询实验室列表
+export function laboratorySubRelInfoList(data) {
+  return request({
+    url: '/laboratory/subRelInfo/list',
+    method: 'post',
+    data: data
+  })
+}

+ 15 - 15
src/api/creditViolation/index.js

@@ -116,20 +116,20 @@ export function listNegativeListHistory(query) {
 }
 
 // 查询用户积分记录列表
-export function creditScoreList(query) {
+export function examPointsRecordGetPointsLoglist(data) {
   return request({
     url: '/exam/points/record/getPointsLoglist',
-    method: 'get',
-    params: query
+    method: 'post',
+    data: data
   })
 }
 
 // 查询用户积分记录列表
-export function listRecord(query) {
+export function examPointsRecordList(data) {
   return request({
     url: '/exam/points/record/list',
-    method: 'get',
-    params: query
+    method: 'post',
+    data: data
   })
 }
 
@@ -168,11 +168,11 @@ export function updateRecord(data) {
 }
 
 // 查询用户积分记录列表
-export function rewardScoreList(query) {
+export function examPointsRecordGetPointsLoglistByReward(data) {
   return request({
     url: '/exam/points/record/getPointsLoglistByReward',
-    method: 'get',
-    params: query
+    method: 'post',
+    data: data
   })
 }
 
@@ -249,11 +249,11 @@ export function getMyPointsLogInfo(query) {
 }
 
 // 查询违规记录列表
-export function listViolation(query) {
+export function examViolationList(data) {
   return request({
-    url: '/laboratory/violation/list',
-    method: 'get',
-    params: query
+    url: '/exam/violation/list',
+    method: 'post',
+    data: data
   })
 }
 
@@ -309,9 +309,9 @@ export function violationSiteType(query) {
 }
 
 //添加违规记录
-export function addViolationHistory(data) {
+export function examViolationAdd(data) {
   return request({
-    url: '/laboratory/violation/addViolationHistory',
+    url: '/exam/violation/add',
     method: 'post',
     data: data
   })

+ 3 - 7
src/api/safetyEducationExam/index.js

@@ -779,13 +779,9 @@ export function departmentsList(query) {
 //     params: query
 //   })
 // }
-export function systemSubjectGetlist(data) {
-  return request({
-    url: '/system/subject/getlist',
-    method: 'post',
-    data: data
-  })
-}
+
+
+
 //新增课程
 export function examSecuritycourseAdd(data) {
   return request({

+ 14 - 17
src/views/creditViolation/credit/record/creditScoreList.vue

@@ -2,9 +2,9 @@
 <template>
     <div class="creditScoreList">
       <div class="title-box">
-        <p>信用分明细</p>
-        <p class="reset-button-one" @click="backPage"><i class="el-icon-arrow-left"></i>返回</p>
-      </div>
+          <p>信用分明细</p>
+          <p class="right-button page-out-common-style-button" @click="backPage"><i class="el-icon-arrow-left"></i>返回</p>
+        </div>
       <div class="rewardPointsListPage">
         <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
           <el-form-item label="变更时间" prop="dateRange" style="margin-left:10px;">
@@ -31,14 +31,11 @@
             </el-select>
           </el-form-item>
           <el-form-item>
-            <p class="inquire-button-one" style="margin:0 20px;" @click="handleQuery">查询</p>
-            <p class="reset-button-one" @click="resetQuery">重置</p>
+            <p class="page-inquire-common-style-button" style="margin:0 20px;" @click="handleQuery">查询</p>
+            <p class="page-reset-common-style-button" @click="resetQuery">重置</p>
           </el-form-item>
-          <!--<el-form-item class="button-box" style="float: right">-->
-            <!--<p class="reset-button-one" @click="backPage"><i class="el-icon-arrow-left"></i>返回</p>-->
-          <!--</el-form-item>-->
         </el-form>
-        <el-table v-loading="loading" border :data="recordList" style="margin-top:20px;">
+        <el-table v-loading="loading" class="table-box" border :data="recordList" style="margin-top:20px;">
           <el-table-column label="信用分变动信息" align="left" prop="messageContent" />
           <el-table-column label="添加人" align="left" prop="createBy"  width="260"/>
           <el-table-column label="变更时间" align="left" prop="createTime"  width="260"/>
@@ -63,7 +60,7 @@
 </template>
 
 <script>
-  import { creditScoreList } from "@/api/creditViolation/index";
+  import { examPointsRecordGetPointsLoglist } from "@/api/creditViolation/index";
 
     export default {
       name: "creditScoreList",
@@ -78,7 +75,7 @@
           showSearch: true,
           // 查询参数
           queryParams: {
-            pageNum: 1,
+            page: 1,
             pageSize:20,
             points: null,
             joinUserId: null,
@@ -114,8 +111,8 @@
           this.loading = true;
           if(this.dateRange&&this.dateRange.length>0)
           {
-            this.queryParams.beginTime=this.dateRange[0]
-            this.queryParams.endTime=this.dateRange[1]
+            this.queryParams.beginTime=this.dateRange[0]+'T00:00:00';
+            this.queryParams.endTime=this.dateRange[1]+'T23:59:59';
           }
           else
           {
@@ -125,15 +122,15 @@
 
           this.queryParams.pointsId = this.propsData.userId;
           this.queryParams.pointsType = 1;
-          creditScoreList(this.queryParams).then( response => {
-            this.recordList =  response.rows;
-            this.total =  response.total;
+          examPointsRecordGetPointsLoglist(this.queryParams).then( response => {
+            this.recordList =  response.data.records;
+            this.total =  response.data.total;
             this.loading = false;
           });
         },
         /** 搜索按钮操作 */
         handleQuery() {
-          this.queryParams.pageNum = 1;
+          this.queryParams.page = 1;
           this.getList();
         },
         /** 重置按钮操作 */

+ 13 - 13
src/views/creditViolation/credit/record/index.vue

@@ -30,7 +30,7 @@
         </el-form-item>
       </el-form>
     </div>
-    <div class="page-content-box">
+    <div class="page-content-box" v-if="pageType == 1">
       <el-table class="table-box" v-loading="loading" border :data="recordList" @sort-change="handleSelectionChange">
         <el-table-column label="姓名" align="left" prop="nickName" />
         <el-table-column label="学号" align="left" prop="userName" />
@@ -42,11 +42,11 @@
             <div class="table-button-box">
               <p class="table-button-null"></p>
               <p class="table-button-p"
-                 v-hasPermi="['points:record:creditscore']"
+                 v-hasPermiRouter="['points:record:creditscore']"
                  @click="goPage(2,scope.row)"
               >信用分明细</p>
               <p class="table-button-p"
-                 v-hasPermi="['points:record:bonuspoints']"
+                 v-hasPermiRouter="['points:record:bonuspoints']"
                  @click="goPage(3,scope.row)"
               >奖励分明细</p>
               <p class="table-button-null"></p>
@@ -69,7 +69,7 @@
 </template>
 
 <script>
-  import { listRecord, getRecord, delRecord, addRecord, updateRecord } from "@/api/creditViolation/index";
+  import { examPointsRecordList, getRecord, delRecord, addRecord, updateRecord } from "@/api/creditViolation/index";
   import creditScoreList from "./creditScoreList.vue";
   import rewardPointsList from "./rewardPointsList.vue";
   export default {
@@ -97,7 +97,7 @@
         recordList: [],
         // 查询参数
         queryParams: {
-          pageNum: 1,
+          page: 1,
           pageSize:20,
           searchValue: null,
           points: null,
@@ -145,12 +145,12 @@
         this.loading = true;
         if(this.dateRange&&this.dateRange.length>0)
         {
-          this.queryParams.beginTime=this.dateRange[0]
-          this.queryParams.endTime=this.dateRange[1]
+          this.queryParams.startTime=this.dateRange[0]+'T00:00:00';
+          this.queryParams.endTime=this.dateRange[1]+'T23:59:59';
         }
         else
         {
-          this.queryParams.beginTime=null;
+          this.queryParams.startTime=null;
           this.queryParams.endTime=null
         }
 
@@ -158,9 +158,9 @@
           this.queryParams.pointsType = 2
         }
 
-        listRecord(this.queryParams).then( response => {
-          this.recordList =  response.rows;
-          this.total =  response.total;
+        examPointsRecordList(this.queryParams).then( response => {
+          this.recordList =  response.data.records;
+          this.total =  response.data.total;
           this.loading = false;
         });
       },
@@ -198,14 +198,14 @@
       },
       /** 搜索按钮操作 */
       handleQuery() {
-        this.queryParams.pageNum = 1;
+        this.queryParams.page = 1;
         this.getList();
       },
       /** 重置按钮操作 */
       resetQuery() {
         // this.resetForm("queryForm");
         this.$set(this,'queryParams',{
-          pageNum: 1,
+          page: 1,
           pageSize:20,
           searchValue:"",
         });

+ 11 - 14
src/views/creditViolation/credit/record/rewardPointsList.vue

@@ -3,7 +3,7 @@
   <div class="rewardPointsList">
     <div class="title-box">
       <p>奖励分明细</p>
-      <p class="reset-button-one" @click="backPage"><i class="el-icon-arrow-left"></i>返回</p>
+      <p class="right-button page-out-common-style-button" @click="backPage"><i class="el-icon-arrow-left"></i>返回</p>
     </div>
     <div class="rewardPointsListPage">
       <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
@@ -31,8 +31,8 @@
           </el-select>
         </el-form-item>
         <el-form-item>
-          <p class="inquire-button-one" style="margin:0 20px;" @click="handleQuery">查询</p>
-          <p class="reset-button-one" @click="resetQuery">重置</p>
+          <p class="page-inquire-common-style-button" style="margin:0 20px;" @click="handleQuery">查询</p>
+          <p class="page-reset-common-style-button" @click="resetQuery">重置</p>
         </el-form-item>
         <div style="float: right">
           <p class="queryParams-data-box">
@@ -45,11 +45,8 @@
             剩余奖励分:{{propsData.bonusPoints>0?propsData.bonusPoints:0}}
           </p>
         </div>
-        <!--<el-form-item class="button-box" style="float: right">-->
-        <!--<p class="reset-button-one" @click="backPage"><i class="el-icon-arrow-left"></i>返回</p>-->
-        <!--</el-form-item>-->
       </el-form>
-      <el-table v-loading="loading" border :data="recordList" style="margin-top:20px;">
+      <el-table v-loading="loading" border class="table-box" :data="recordList" style="margin-top:20px;">
         <el-table-column label="奖励分变动信息" align="left" prop="messageContent" />
         <el-table-column label="变更时间" align="left" prop="createTime" />
         <el-table-column label="变动" align="left" prop="points">
@@ -73,7 +70,7 @@
 </template>
 
 <script>
-  import { rewardScoreList } from "@/api/creditViolation/index";
+  import { examPointsRecordGetPointsLoglistByReward } from "@/api/creditViolation/index";
   export default {
     name: "rewardPointsList",
     props: {
@@ -121,8 +118,8 @@
         this.loading = true;
         if(this.dateRange&&this.dateRange.length>0)
         {
-          this.queryParams.beginTime=this.dateRange[0]
-          this.queryParams.endTime=this.dateRange[1]
+          this.queryParams.beginTime=this.dateRange[0]+'T00:00:00';
+          this.queryParams.endTime=this.dateRange[1]+'T23:59:59';
         }
         else
         {
@@ -132,15 +129,15 @@
 
         this.queryParams.pointsId = this.propsData.userId;
         this.queryParams.pointsType = 2;
-        rewardScoreList(this.queryParams).then( response => {
-          this.recordList =  response.rows;
-          this.total =  response.total;
+        examPointsRecordGetPointsLoglistByReward(this.queryParams).then( response => {
+          this.recordList = response.data.records;
+          this.total =  response.data.total;
           this.loading = false;
         });
       },
       /** 搜索按钮操作 */
       handleQuery() {
-        this.queryParams.pageNum = 1;
+        this.queryParams.page = 1;
         this.getList();
       },
       /** 重置按钮操作 */

+ 62 - 50
src/views/creditViolation/credit/violation/index.vue

@@ -50,7 +50,7 @@
       </div>
       <div class="page-content-box">
         <el-table class="table-box" v-loading="loading" border :data="violationList" @sort-change="handleSelectionChange" v-if="pageType==1">
-          <el-table-column label="姓名" align="left" prop="userName" />
+          <el-table-column label="姓名" align="left" prop="joinUserName" />
           <el-table-column label="学号" align="left" prop="stuNo" />
           <el-table-column label="学院" align="left" prop="deptName" />
           <el-table-column label="违规次数" align="left" sortable="custom" prop="violationNum" />
@@ -131,39 +131,39 @@
             <el-option
               v-for="item in optionsUser"
               :key="item.userId"
-              :label="item.nickName"
+              :label="item.userName"
               :value="item.userId">
             </el-option>
           </el-select>
         </el-form-item>
         <el-form-item label="学号:" style="width:600px;">
-          <el-input v-model="form.stuNo" :disabled="true" placeholder="请选择学"/>
+          <el-input v-model="form.stuNo" :disabled="true" placeholder="请选择学"/>
         </el-form-item>
         <el-form-item label="学院:" style="width:600px;">
-          <el-input v-model="form.deptName" :disabled="true" placeholder="请选择学" />
+          <el-input v-model="form.deptName" :disabled="true" placeholder="请选择学" />
         </el-form-item>
         <el-form-item label="实验室" prop="laboratoryId">
-          <el-select v-model="form.laboratoryId" style="width:480px;" placeholder="请选择实验室"
+          <el-select v-model="form.subjectId" style="width:480px;" placeholder="请选择实验室"
                      @change="subjectChange">
             <el-option
               v-for="item in subjectOptions"
-              :key="item.id"
-              :label="item.name"
-              :value="item.id">
+              :key="item.subId"
+              :label="item.subName"
+              :value="item.subId">
             </el-option>
           </el-select>
         </el-form-item>
-        <el-form-item label="选择违规项" prop="reason">
-          <el-select v-model="form.reason" style="width:480px;" placeholder="请选择违规项">
+        <el-form-item label="选择违规项" prop="reasonId">
+          <el-select v-model="form.reasonId" style="width:480px;" placeholder="请选择违规项" @change="reasonChange">
             <el-option
               v-for="item in violationSiteTypeList"
-              :key="item.id"
-              :label="item.violationName"
-              :value="item.id">
+              :key="item.itemId"
+              :label="item.label"
+              :value="item.itemId">
             </el-option>
           </el-select>
         </el-form-item>
-        <el-form-item label="违规原因:" prop="violationReasons" style="width:600px;" v-if="form.reason==-1">
+        <el-form-item label="违规原因:" prop="violationReasons" style="width:600px;" v-if="form.reasonId==-1">
           <el-input
             v-model="form.violationReasons"
             placeholder="请输入违规原因"
@@ -171,7 +171,7 @@
             >
           </el-input>
         </el-form-item>
-        <el-form-item label="扣除信用分值:" prop="deductionVal" style="width:600px;" v-if="form.reason==-1">
+        <el-form-item label="扣除信用分值:" prop="deductionVal" style="width:600px;" v-if="form.reasonId==-1">
           <el-input
             v-model="form.deductionVal"
             placeholder="请输入"
@@ -376,11 +376,11 @@
 </template>
 
 <script>
-  import { delNegivelist,delBlacklist,blackAdd,listViolation,
-    getViolation, delViolation, addViolation, updateViolation,joinBlackList,getSubjectDictByViolation,
-    violationSiteType ,addViolationHistory,getIntegralMatchingRules,addBlacklist } from "@/api/creditViolation/index";
-  import { selectListUser } from "@/api/commonality/permission";
-  import { listDepartments } from "@/api/commonality/noPermission";
+  import { delNegivelist,delBlacklist,blackAdd,examViolationList,
+    getViolation, delViolation, addViolation, updateViolation,joinBlackList,
+    violationSiteType ,examViolationAdd,getIntegralMatchingRules,addBlacklist } from "@/api/creditViolation/index";
+  import {selectListUser, getDeptDropList, systemUserList} from "@/api/commonality/permission";
+  import { listDepartments,getDicts,laboratorySubRelInfoList} from "@/api/commonality/noPermission";
   import violationInfo from "./violationInfo.vue";
 export default {
   name: "Violation",
@@ -504,7 +504,7 @@ export default {
           {required: true, message: '请输入姓名', trigger: 'blur'},
           { required: true, message: "请输入姓名", validator: this.spaceJudgment, trigger: "blur" }
         ],
-        laboratoryId:[
+        subjectId:[
           {required: true, message: '请选择实验室', trigger: 'blur'}
         ],
         reason:[
@@ -683,9 +683,9 @@ export default {
     /** 查询违规记录列表 */
     getList() {
       this.loading = true;
-      listViolation(this.queryParams).then(response => {
-        this.violationList = response.rows;
-        this.total = response.total;
+      examViolationList(this.queryParams).then(response => {
+        this.violationList = response.data.records;
+        this.total = response.data.total;
         this.loading = false;
       });
     },
@@ -814,7 +814,7 @@ export default {
         userId:"",
         userName:"",
         deptName:"",
-        reason:"",
+        reasonId:"",
         checkList:[],
         checkListTwo:[],
         learnStatusType:false,
@@ -832,20 +832,20 @@ export default {
       this.$refs["form"].validate(valid => {
         if (valid) {
           let obj = {
-            userId:this.form.userId,
             deptId:this.form.deptId,
-            userName:this.form.nickName,
-            stuNo:this.form.stuNo,
             deptName:this.form.deptName,
-            laboratoryId:this.form.laboratoryId,
-            reason:this.form.reason,
+            joinUserId:this.form.joinUserId,
+            joinUserName:this.form.joinUserName,
+            subjectId:this.form.subjectId,
+            reasonId:this.form.reasonId,
+            violationContent:this.form.violationContent,
             deductionVal:this.form.deductionVal,
             handleDay:this.form.handleDay,
             violationReasons:this.form.violationReasons,
           };
           for(let i=0;i<self.subjectOptions.length;i++){
-            if(self.form.laboratoryId == self.subjectOptions[i].id){
-              obj.laboratoryName = self.subjectOptions[i].name
+            if(self.form.subjectId == self.subjectOptions[i].subId){
+              obj.subjectName = self.subjectOptions[i].subName
             }
           }
           //处理二级多选--警告/约谈
@@ -901,7 +901,7 @@ export default {
             obj.numberTopics = "";
             obj.numberAccuracy = "";
           }
-          addViolationHistory(obj).then(response => {
+          examViolationAdd(obj).then(response => {
             this.msgSuccess("操作成功");
             this.open = false;
             this.getList();
@@ -914,12 +914,13 @@ export default {
       let self = this;
       for(let i=0;i<self.optionsUser.length;i++){
         if(data == self.optionsUser[i].userId){
-          this.form.stuNo = self.optionsUser[i].userName;
+          this.form.stuNo = self.optionsUser[i].account;
           this.form.deptId = self.optionsUser[i].deptId;
           this.form.deptName = self.optionsUser[i].deptName;
-          this.form.nickName = self.optionsUser[i].nickName;
-          this.form.laboratoryId = '';
-          this.getSubjectDictByViolation();
+          this.form.joinUserId = self.optionsUser[i].userId;
+          this.form.joinUserName = self.optionsUser[i].userName;
+          this.form.subjectId = '';
+          this.laboratorySubRelInfoList();
         }
       }
     },
@@ -973,11 +974,12 @@ export default {
       if (query !== '' && query.length>1) {
         this.loading = true;
         let obj = {
-          nickName : query,
-          userType: 22,
+          userName : query,
+          userType: 2,
+          pageSize: -1,
         };
-        selectListUser(obj).then(response => {
-          this.optionsUser = response.data;
+        systemUserList(obj).then(response => {
+          this.optionsUser = response.data.records;
           this.loading = false;
         });
       } else {
@@ -986,34 +988,44 @@ export default {
     },
     /** 查询学院列表 */
     getDeptList() {
-      listDepartments().then(response => {
-        this.$set(this, 'deptOptions', response.data)
+      getDeptDropList({deptType:1}).then(response => {
+        this.$set(this,'deptOptions',response.data);
       });
     },
     //查询实验室列表
-    getSubjectDictByViolation(){
+    laboratorySubRelInfoList(){
       if(!this.form.deptId){
         this.msgError('请先选择人员');
         return
       }
       let obj = {
-        deptId:this.form.deptId
+        deptIds:[this.form.deptId],
+        subName:'',
       }
-      getSubjectDictByViolation(obj).then(response => {
-        this.subjectOptions = response.data;
+      laboratorySubRelInfoList(obj).then(response => {
+        this.subjectOptions = response.data.records;
       });
     },
     //选中实验室
     subjectChange(e){
       console.log("e",e)
-      this.$set(this.form,'laboratoryId',e);
+      this.$set(this.form,'subjectId',e);
       this.$forceUpdate();
     },
+    //选择违规项
+    reasonChange(e){
+      let self=this;
+      for(let i=0;i<self.violationSiteTypeList.length;i++){
+        if(e == self.violationSiteTypeList[i].itemId){
+          self.form.violationContent = self.violationSiteTypeList[i].label
+        }
+      }
+    },
     //查询实验室列表
     violationSiteType(){
-      violationSiteType({}).then(response => {
+      this.getDicts("lab_violation_rules").then(response => {
         this.violationSiteTypeList = response.data;
-        this.violationSiteTypeList.push({"id":"-1","violationName":"其他"});
+        this.violationSiteTypeList.push({"itemId":"-1","label":"其他"});
       });
     },
   }

+ 1 - 1
src/views/creditViolation/record_my/index.vue

@@ -141,7 +141,7 @@
 </template>
 
 <script>
-import { listRecord, getRecord, delRecord,myListRecord, addRecord, updateRecord, getMyPointsLoglist ,getMyPointsLogInfo } from "@/api/creditViolation/index";
+import { examPointsRecordList, getRecord, delRecord,myListRecord, addRecord, updateRecord, getMyPointsLoglist ,getMyPointsLogInfo } from "@/api/creditViolation/index";
 
 export default {
   name: "Record",

+ 2 - 2
src/views/integratedManagement/laboratoryManagement/record/index.vue

@@ -115,7 +115,7 @@
 
 <script>
 import { Message } from 'element-ui'
-import { listRecord, getRecord, delRecord, addRecord, updateRecord, subjectDictList,getDetial } from "@/apiDemo/laboratory/record";
+import { examPointsRecordList, getRecord, delRecord, addRecord, updateRecord, subjectDictList,getDetial } from "@/apiDemo/laboratory/record";
 import { listDepartments } from "@/apiDemo/system/dept";
 import { treeselect } from "@/apiDemo/system/dept";
 import Treeselect from "@riophae/vue-treeselect";
@@ -289,7 +289,7 @@ export default {
         this.queryParams.outTime = null;
         this.queryParams.inOutType = null
       }
-      listRecord(this.queryParams).then(response => {
+      examPointsRecordList(this.queryParams).then(response => {
         this.recordList = response.rows;
         this.total = response.total;
         this.loading = false;

+ 1 - 1
src/views/integratedManagement/laboratoryManagement/record/myRecord.vue

@@ -139,7 +139,7 @@
 </template>
 
 <script>
-import { listRecord, getRecord, delRecord, addRecord, updateRecord,myListRecord,subjectDictList } from "@/apiDemo/laboratory/record";
+import { examPointsRecordList, getRecord, delRecord, addRecord, updateRecord,myListRecord,subjectDictList } from "@/apiDemo/laboratory/record";
 import { listDepartments } from "@/apiDemo/system/dept";
 
 import { treeselect } from "@/apiDemo/system/dept";

+ 1 - 1
src/views/integratedManagement/laboratoryManagement/record_my/index.vue

@@ -118,7 +118,7 @@
 </template>
 
 <script>
-import { listRecord, getRecord, delRecord, addRecord, updateRecord,myListRecord,subjectDictList,getDetial } from "@/apiDemo/laboratory/record";
+import { examPointsRecordList, getRecord, delRecord, addRecord, updateRecord,myListRecord,subjectDictList,getDetial } from "@/apiDemo/laboratory/record";
 import { listDepartments } from "@/apiDemo/system/dept";
 
 import { treeselect } from "@/apiDemo/system/dept";

+ 5 - 5
src/views/safetyEducationExam/trainingCourse/addDialog.vue

@@ -256,11 +256,11 @@
 import {
   findUserList,
   selectUser,
-  systemSubjectGetlist,
   securitycourseEdit,
   examSecuritycourseAdd
 } from "@/api/safetyEducationExam/index";
   import {getDeptDropList,} from "@/api/commonality/permission";
+  import {laboratorySubRelInfoList,} from "@/api/commonality/noPermission";
   export default {
     name: 'trainingCourseAddDialog',
     props:{
@@ -623,12 +623,12 @@ import {
       //获取实验室列表
       getSubList(val,deptId){
         if(val == '' && deptId){
-          systemSubjectGetlist({deptId:deptId,name:val}).then(response => {
-            this.$set(this,'subOptions',response.data);
+          laboratorySubRelInfoList({deptIds:[deptId],subName:val}).then(response => {
+            this.$set(this,'subOptions',response.data.records);
           });
         }else if(this.dialogForm.placeId && (val == '' || val.length > 1)){
-          systemSubjectGetlist({deptId:this.dialogForm.placeId,name:val}).then(response => {
-            this.$set(this,'subOptions',response.data);
+          laboratorySubRelInfoList({deptIds:[this.dialogForm.placeId],subName:val}).then(response => {
+            this.$set(this,'subOptions',response.data.records);
           });
         }
       },