소스 검색

机构介绍新增问题

19266 1 년 전
부모
커밋
046a39655b
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 7 2
      ruoyi-ui/src/views/organization/jggl/jcxx/index.vue

+ 7 - 2
ruoyi-ui/src/views/organization/jggl/jcxx/index.vue

@@ -1631,10 +1631,15 @@ export default {
             }
 	          console.log(pamar, 'pamar')
             if(this.form2.id!=null){
-              updateJgjs(this.form2)
+              updateJgjs(this.form2);
             }else{
               this.form2.jgid=this.form.id;
-              addJgjs(this.form2)
+              addJgjs(this.form2);
+              getJgjs(this.form.id).then(response => {
+                if(response.data!=null) {
+                  this.form2 = response.data
+                }
+              })
             }
 
             if (this.form.id != null) {