lrf402788946 5 years ago
parent
commit
245c21ff41
1 changed files with 22 additions and 0 deletions
  1. 22 0
      src/views/quiet.vue

+ 22 - 0
src/views/quiet.vue

@@ -89,6 +89,28 @@ export default {
       }
       }
       this.$set(this, `menu`, menus);
       this.$set(this, `menu`, menus);
     },
     },
+    async completeMenu(item) {
+      let result = await this.getColumn({
+        type: `list`,
+        data: { parent_id: item.id },
+      });
+      if (result.errcode === 0) {
+        let columns = result.data;
+        for (const col of columns) {
+          if (col.type === 'content') {
+            col.path = `/detail/${col.content_id}`;
+          } else if (col.type === 'bugList') {
+            col.path = `/newsList/menu/${col.content_id}?title=${col.title}`;
+          } else if (col.type !== 'url') {
+            col.path = `/newsList/menu/${col.id}?title=${col.title}`;
+            if (col.parent.includes('党员')) {
+              col.path = `/memberList/menu/${col.id}?title=${col.title}`;
+            }
+          }
+        }
+        return columns;
+      }
+    },
   },
   },
 };
 };
 </script>
 </script>