하석형 하석형 04-08
250408 하석형 권한관리 복구
@1cdf296c3516a2dd53840657bceba6b46df373d9
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 = {
-          authrtCdId: this.pageId,
+          authrtCd: this.pageId,
         };
         const res = await findByAuthrt(params);
         if (res.status == 200) {
           this.authrt = res.data.data.authrt;
-          if (this.authrt.authrtCdId != null) {
+          if (this.authrt.authrtCd != null) {
             this.submitStts = false;
           }
           this.originAuthCd = this.authrt.authrtCd;
@@ -106,11 +106,10 @@
           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: res.data.data.authrtCdId,
+                pageId: this.authrt.authrtCd,
               },
             });
           }
@@ -119,14 +118,14 @@
         }
       } else {
         try {
-          this.authrt.authrtCdId = this.pageId;
+          this.authrt.originAuthrtCd = 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.authrtCdId,
+                pageId: this.authrt.authrtCd,
               },
             });
           }
client/views/pages/adm/authority/authority/AuthoritySelectList.vue
--- client/views/pages/adm/authority/authority/AuthoritySelectList.vue
+++ client/views/pages/adm/authority/authority/AuthoritySelectList.vue
@@ -30,7 +30,7 @@
           >
             <template v-slot:button="{ row, idx }">
               <button
-                class="btn-ico sm ico-del"
+                class="btn-ico md ico-del"
                 @click.stop="fnDel(row, idx)"
                 v-if="pageAuth.delAuthrt == 'Y'"
               >
@@ -109,7 +109,7 @@
       this.$router.push({
         name: "admAuthoritySelectListOne",
         query: {
-          pageId: this.list[idx]["authrtCdId"],
+          pageId: this.list[idx]["authrtCd"],
         },
       });
     },
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 = {
-          authrtCdId: this.pageId,
+          authrtCd: this.pageId,
         };
         const res = await findByAuthrt(params);
         if (res.status == 200) {
@@ -99,7 +99,7 @@
       this.$router.push({
         name: "admAuthorityInsert",
         query: {
-          pageId: this.authrt.authrtCdId,
+          pageId: this.authrt.authrtCd,
         },
       });
     },
Add a comment
List