heyang 2 éve
szülő
commit
bf235c1fac

+ 1 - 2
src/views/comprehensive/laboratoryManagement/subject/index.vue

@@ -272,7 +272,6 @@ import {
   updateSubject,
   mangerVoice,
   startUrl,
-  authListSubjectTow
 } from '@/api/laboratory/subject'
 import { filterDept } from "@/api/medicUniversity-3_1/index";
 import addSubject from "./addSubject.vue";
@@ -842,7 +841,7 @@ export default {
     getList() {
       this.loading = true;
       // this.offMQTT();
-      authListSubjectTow(this.queryParams).then(response => {
+      authListSubject(this.queryParams).then(response => {
         this.subjectList = response.rows;
         this.total = response.total;
         this.loading = false;

+ 16 - 11
src/views/gasManage3_0/manage/qualificationApply/qualificationApplyAdd.vue

@@ -405,19 +405,24 @@ export default {
     //提交
     submitForm(){
       let _this = this;
-      _this.loading = true;
-      if(_this.status==0){//新增
-        qualificationApplyAdd(_this.form).then(res => {
-          this.msgSuccess(res.msg);
-          _this.backPage();
-        });
-      }else if(_this.status==1){
-        qualificationApplyAnew(_this.form).then(res => {
-          this.msgSuccess(res.msg);
-          _this.backPage();
-        });
+      if(_this.form.listDetailVo.length>0){
+        _this.loading = true;
+        if(_this.status==0){//新增
+          qualificationApplyAdd(_this.form).then(res => {
+            this.msgSuccess(res.msg);
+            _this.backPage();
+          });
+        }else if(_this.status==1){
+          qualificationApplyAnew(_this.form).then(res => {
+            this.msgSuccess(res.msg);
+            _this.backPage();
+          });
+        }
+      }else{
+        _this.msgError('请先选择气瓶!')
       }
 
+
     },
 
     //返回

+ 15 - 11
src/views/gasManage3_0/student/qualificationApply/qualificationApplyAdd.vue

@@ -407,17 +407,21 @@ export default {
     //提交
     submitForm(){
       let _this = this;
-      _this.loading = true;
-      if(_this.status==0){//新增
-        qualificationApplyAdd(_this.form).then(res => {
-          this.msgSuccess(res.msg);
-          _this.backPage();
-        });
-      }else if(_this.status==1){
-        qualificationApplyAnew(_this.form).then(res => {
-          this.msgSuccess(res.msg);
-          _this.backPage();
-        });
+      if(_this.form.listDetailVo.length>0){
+        _this.loading = true;
+        if(_this.status==0){//新增
+          qualificationApplyAdd(_this.form).then(res => {
+            this.msgSuccess(res.msg);
+            _this.backPage();
+          });
+        }else if(_this.status==1){
+          qualificationApplyAnew(_this.form).then(res => {
+            this.msgSuccess(res.msg);
+            _this.backPage();
+          });
+        }
+      }else{
+        _this.msgError('请先选择气瓶!')
       }
 
     },