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