zhengkaixin 4 年 前
コミット
37475581b1

+ 1 - 1
src/projects/pension/views/Master/Hospital/Archives.vue

@@ -146,7 +146,7 @@ export default {
         getDetail() {
             this.isLoading = true;
 
-            API.medicalPersonDetail(this.person_data.id)
+            API.medicalPersonDetail(this.$route.query.id)
                 .then((res) => {
                     this.detail = res;
                     this.isLoading = false;

+ 3 - 1
src/projects/pension/views/Master/Hospital/Home.vue

@@ -104,7 +104,9 @@ export default {
         edit() {
             this.$router.push({
                 name: "MasterHospitalArchives",
-                query: {},
+                query: {
+                  id: this.info.personId
+                },
             });
         },
         add(id) {