|
@@ -5,9 +5,7 @@
|
|
<el-col :span="24" class="top">
|
|
<el-col :span="24" class="top">
|
|
<top topType="2" @upBack="upBack"></top>
|
|
<top topType="2" @upBack="upBack"></top>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="24" class="info" :style="{ height: clientHeight + 'px' }" @scroll.native="scrollEvent">
|
|
|
|
- 内容
|
|
|
|
- </el-col>
|
|
|
|
|
|
+ <el-col :span="24" class="info" :style="{ height: clientHeight + 'px' }" @scroll.native="scrollEvent"> </el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
@@ -16,6 +14,7 @@
|
|
<script>
|
|
<script>
|
|
import top from '@/layout/common/top.vue';
|
|
import top from '@/layout/common/top.vue';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
|
+const { mapActions: mapRefute } = createNamespacedHelpers('refute');
|
|
export default {
|
|
export default {
|
|
name: 'index',
|
|
name: 'index',
|
|
props: {},
|
|
props: {},
|
|
@@ -35,7 +34,13 @@ export default {
|
|
this.$set(this, `clientHeight`, clientHeight);
|
|
this.$set(this, `clientHeight`, clientHeight);
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- search() {},
|
|
|
|
|
|
+ ...mapRefute(['fetch']),
|
|
|
|
+ async search() {
|
|
|
|
+ if (this.id) {
|
|
|
|
+ let res = await this.fetch(this.id);
|
|
|
|
+ console.log(res);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
// 返回上一页
|
|
// 返回上一页
|
|
upBack() {
|
|
upBack() {
|
|
this.$router.push({ path: '/refute/index' });
|
|
this.$router.push({ path: '/refute/index' });
|
|
@@ -43,17 +48,14 @@ export default {
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapState(['user']),
|
|
...mapState(['user']),
|
|
|
|
+ id() {
|
|
|
|
+ return this.$route.query.id;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
metaInfo() {
|
|
metaInfo() {
|
|
return { title: this.$route.meta.title };
|
|
return { title: this.$route.meta.title };
|
|
},
|
|
},
|
|
- watch: {
|
|
|
|
- test: {
|
|
|
|
- deep: true,
|
|
|
|
- immediate: true,
|
|
|
|
- handler(val) {},
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
|
|
+ watch: {},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -62,7 +64,7 @@ export default {
|
|
.top {
|
|
.top {
|
|
height: 40px;
|
|
height: 40px;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
- border-bottom: 1px solid #ccc;
|
|
|
|
|
|
+ border-bottom: 1px solid #f1f1f1;
|
|
}
|
|
}
|
|
.info {
|
|
.info {
|
|
overflow-y: auto;
|
|
overflow-y: auto;
|