zyp 1 mese fa
parent
commit
847a998374
1 ha cambiato i file con 11 aggiunte e 4 eliminazioni
  1. 11 4
      src/views/his/company/index.vue

+ 11 - 4
src/views/his/company/index.vue

@@ -610,6 +610,7 @@ export default {
         isDel: null,
         courseMaAppId: null,
         courseMiniAppId: null,
+        packageCateIds:'',
       };
       this.resetForm("form");
     },
@@ -652,7 +653,8 @@ export default {
       this.reset();
       this.getAppList()
       this.open = true;
-	  this.doctorIds=[]
+	    this.doctorIds=[];
+
       this.title = "添加公司";
     },
     /** 修改按钮操作 */
@@ -709,15 +711,20 @@ export default {
           if(this.form.followDoctorIds!=null){
              this.form.followDoctorIds= JSON.stringify(this.form.followDoctorIds)
           }
-          // if(this.form.packageCateIds!=null){
-          //    this.form.packageCateIds= JSON.stringify(this.form.packageCateIds)
-          // }
+          if(this.form.packageCateIds!=null){
+             this.form.packageCateIds= JSON.stringify(this.form.packageCateIds)
+          }else {
+            this.form.packageCateIds='';
+          }
           if(this.doctorIds!=null){
             this.form.doctorIds= (this.doctorIds).toString()
+          }else {
+            this.form.doctorIds=null
           }
           if(this.doctorIds!=null){
             this.form.doctorIds= (this.doctorIds).toString()
           }
+          console.log("传参------》",this.form)
           if (this.form.companyId != null) {
             updateCompany(this.form).then(response => {
               this.msgSuccess("修改成功");