류윤주 류윤주 04-08
Merge branch 'master' of http://210.180.118.83/jhpark/cms_frontend
@8731b1ac1d499d657f9635c22ff61a3b5160a759
client/views/pages/adm/authority/authority/AuthorityInsert.vue
--- client/views/pages/adm/authority/authority/AuthorityInsert.vue
+++ client/views/pages/adm/authority/authority/AuthorityInsert.vue
@@ -79,12 +79,12 @@
     async fnSelectOne() {
       try {
         const params = {
-          authrtCd: this.pageId,
+          authrtCdId: this.pageId,
         };
         const res = await findByAuthrt(params);
         if (res.status == 200) {
           this.authrt = res.data.data.authrt;
-          if (this.authrt.authrtCd != null) {
+          if (this.authrt.authrtCdId != null) {
             this.submitStts = false;
           }
           this.originAuthCd = this.authrt.authrtCd;
@@ -106,10 +106,11 @@
           const res = await save(this.authrt);
           alert(res.data.message);
           if (res.status == 200) {
+            console.log("res: ", res);
             this.$router.push({
               name: "admAuthoritySelectListOne",
               query: {
-                pageId: this.authrt.authrtCd,
+                pageId: res.data.data.authrtCdId,
               },
             });
           }
@@ -118,14 +119,14 @@
         }
       } else {
         try {
-          this.authrt.originAuthrtCd = this.pageId;
+          this.authrt.authrtCdId = this.pageId;
           const res = await update(this.authrt);
           alert(res.data.message);
           if (res.status == 200) {
             this.$router.push({
               name: "admAuthoritySelectListOne",
               query: {
-                pageId: this.authrt.authrtCd,
+                pageId: this.authrt.authrtCdId,
               },
             });
           }
client/views/pages/adm/authority/authority/AuthoritySelectList.vue
--- client/views/pages/adm/authority/authority/AuthoritySelectList.vue
+++ client/views/pages/adm/authority/authority/AuthoritySelectList.vue
@@ -109,7 +109,7 @@
       this.$router.push({
         name: "admAuthoritySelectListOne",
         query: {
-          pageId: this.list[idx]["authrtCd"],
+          pageId: this.list[idx]["authrtCdId"],
         },
       });
     },
client/views/pages/adm/authority/authority/AuthoritySelectListOne.vue
--- client/views/pages/adm/authority/authority/AuthoritySelectListOne.vue
+++ client/views/pages/adm/authority/authority/AuthoritySelectListOne.vue
@@ -74,7 +74,7 @@
     async fnSelectOne() {
       try {
         const params = {
-          authrtCd: this.pageId,
+          authrtCdId: this.pageId,
         };
         const res = await findByAuthrt(params);
         if (res.status == 200) {
@@ -99,7 +99,7 @@
       this.$router.push({
         name: "admAuthorityInsert",
         query: {
-          pageId: this.authrt.authrtCd,
+          pageId: this.authrt.authrtCdId,
         },
       });
     },
Add a comment
List