하석형 하석형 04-25
250425 하석형 페이지 변경 시 만족도 조사 표시 오류 수정
@3562fd20de579277a0a547a419f7545a32f3a2ee
client/views/layout/menuSatisfaction.vue
--- client/views/layout/menuSatisfaction.vue
+++ client/views/layout/menuSatisfaction.vue
@@ -114,7 +114,10 @@
         // 저장
         async save() {
             try {
-                this.checkRspnsVal(); // 응답 값 체크
+                // 응답 값 체크
+                if(!this.checkRspnsVal()) {
+                    return;
+                }
                 this.menuDgstfn.menuId = this.menuId; // 메뉴 ID
                 const res = await save(this.menuDgstfn);
                 if (res.status == 200) {
@@ -128,16 +131,32 @@
 
         // 선택 응답값 체크
         checkRspnsVal () {
+            if (this.checkRspns == null || this.checkRspns == '') {
+                alert("응답을 선택해주세요.");
+                return false;
+            }
             const rspnsVal = this.checkRspns;
             this.menuDgstfn.rspnsFive = rspnsVal === '5' ? 'Y' : 'N';
             this.menuDgstfn.rspnsFour = rspnsVal === '4' ? 'Y' : 'N';
             this.menuDgstfn.rspnsThree = rspnsVal === '3' ? 'Y' : 'N';
             this.menuDgstfn.rspnsTwo = rspnsVal === '2' ? 'Y' : 'N';
             this.menuDgstfn.rspnsOne = rspnsVal === '1' ? 'Y' : 'N';
+            return true;
         }
 
     },
     watch: {
+        $route: {
+            immediate: true,
+            handler(to) {
+                if(this.$store.state.menu && to.path !== this.$filters.ctxPath('/adm/main.page')) {
+                    this.pgNm = this.$store.state.menu.menuNm;
+                    this.menuId = this.$store.state.menu.menuId;
+                    this.fnView();
+                }
+            }
+        },
+
         '$store.state.menu'(newValue) {
             if(newValue) {
                 this.pgNm = newValue.menuNm;
client/views/pages/App.vue
--- client/views/pages/App.vue
+++ client/views/pages/App.vue
@@ -43,6 +43,9 @@
   watch: {
     $route(to, from) {
       this.path = to.path;
+      if(this.path.includes('/insert.page')) {
+        this.menuUse = "N";
+      }
     },
   },
   computed: {
Add a comment
List