lrf402788946 4 лет назад
Родитель
Сommit
16a6a77a9d
2 измененных файлов с 53 добавлено и 0 удалено
  1. 5 0
      src/router/index.js
  2. 48 0
      src/views/adminCenter/refute/index.vue

+ 5 - 0
src/router/index.js

@@ -10,6 +10,11 @@ const admin = [
     meta: { title: '管理首页', isleftarrow: false },
     component: () => import('../views/adminCenter/index.vue'),
   },
+  {
+    path: '/admin/refute/index',
+    meta: { title: '文字/辟谣管理' },
+    component: () => import('../views/adminCenter/refute/index.vue'),
+  },
 ];
 const routes = [
   {

+ 48 - 0
src/views/adminCenter/refute/index.vue

@@ -0,0 +1,48 @@
+<template>
+  <div id="index">
+    <!-- <top topType="2" @upBack="toBack"></top> -->
+    <van-nav-bar :title="pageTitle" left-text="返回" left-arrow @click-left="toBack">
+      <template #right>
+        <van-icon name="plus" size="18" />
+      </template>
+    </van-nav-bar>
+    <page :total="total" :limit="limit" @search="search"></page>
+  </div>
+</template>
+
+<script>
+import top from '@/layout/common/top.vue';
+import page from '@/layout/common/page.vue';
+import { mapState, createNamespacedHelpers } from 'vuex';
+export default {
+  name: 'index',
+  props: {},
+  components: { page }, //top
+  data: function() {
+    return {
+      total: 10,
+      limit: 10,
+    };
+  },
+  created() {},
+  methods: {
+    async search({ skip = 0 } = {}) {
+      // TODO接口
+    },
+    toBack() {
+      this.$router.push('/admin/index');
+    },
+  },
+  computed: {
+    ...mapState(['user', 'menuParams']),
+    pageTitle() {
+      return `${this.$route.meta.title}`;
+    },
+  },
+  metaInfo() {
+    return { title: this.$route.meta.title };
+  },
+};
+</script>
+
+<style lang="less" scoped></style>