XMLWAN 4 years ago
parent
commit
dc54015441
1 changed files with 16 additions and 2 deletions
  1. 16 2
      src/xt_pages/role/components/AdminInfoForm.vue

+ 16 - 2
src/xt_pages/role/components/AdminInfoForm.vue View File

@@ -778,16 +778,30 @@
778 778
                 this.form.identification_outpatients = admin.identification_outpatients
779 779
                 this.form.start_time = this.getTime(admin.start_time)
780 780
                 this.form.medical_range_code = admin.medical_range_code
781
+                if(admin.medical_range_code == 0){
782
+                  this.form.medical_range_code = ""
783
+                }
781 784
                 this.form.medical_level =admin.medical_level
785
+                if(admin.medical_level == 0){
786
+                  this.form.medical_level = ""
787
+                }
782 788
                 this.form.medical_type_job = admin.medical_type_job
783 789
                 this.form.pharmacist_registration_number = admin.pharmacist_registration_number
784 790
                 this.form.doctor_range_code = admin.doctor_range_code
791
+                if(admin.doctor_range_code == 0){
792
+                  this.form.doctor_range_code = ""
793
+                }
785 794
                 this.form.doctor_level = admin.doctor_level
795
+                if(this.form.doctor_level == 0){
796
+                    this.form.doctor_level = ""
797
+                }
786 798
                 this.form.doctor_type_job = admin.doctor_type_job
787 799
                 this.form.doctor_number = admin.doctor_number
788 800
                 this.form.is_active = admin.is_active
789 801
                 console.log("2222222",this.form.is_active)
790
-               
802
+                if(admin.is_active == 0){
803
+                   admin.is_active = ""
804
+                }
791 805
                 this.form.active_status = admin.active_status
792 806
                 if(admin.active_status == 0){
793 807
                    this.form.active_status = ""
@@ -801,7 +815,7 @@
801 815
                 }
802 816
                 console.log("id2222222",id)
803 817
                 this.form.outpatient_illnessCategory = id
804
-                 if(id == 0){
818
+                 if(this.form.outpatient_illnessCategory == 0){
805 819
                    this.form.outpatient_illnessCategory = ""
806 820
                  }
807 821
                 //如果当前用户是超级管理员而且编辑自己的信息