guhongwei пре 5 година
родитељ
комит
eff4384f32
2 измењених фајлова са 37 додато и 1 уклоњено
  1. 1 1
      src/layout/index/notice.vue
  2. 36 0
      src/layout/noDate.vue

+ 1 - 1
src/layout/index/notice.vue

@@ -19,7 +19,7 @@
             v-for="(item, index) in notice.infoList"
             v-for="(item, index) in notice.infoList"
             :key="index"
             :key="index"
             :name="`${index}`"
             :name="`${index}`"
-            @click.native="$router.push({ path: `/info/detail?id=${item.id}` })"
+            @click.native="$router.push({ path: `/detail?id=${item.id}` })"
           >
           >
             <el-col :span="4" class="time">
             <el-col :span="4" class="time">
               {{ item.publish_time | getDate }}
               {{ item.publish_time | getDate }}

+ 36 - 0
src/layout/noDate.vue

@@ -0,0 +1,36 @@
+<template>
+  <div id="noDate">
+    <el-row>
+      <el-col1 :span="24" class="info">
+        <P>暂无数据,敬请期待</P>
+      </el-col1>
+    </el-row>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'noDate',
+  props: {},
+  components: {},
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped>
+p {
+  padding: 0;
+  margin: 0;
+}
+.info {
+  width: 100%;
+  height: 315px;
+}
+.info p {
+  text-align: center;
+  line-height: 315px;
+}
+</style>