|
@@ -5,13 +5,16 @@
|
|
<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' }">
|
|
|
|
+ <info :form="form"></info>
|
|
|
|
+ </el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import info from './parts/info.vue';
|
|
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');
|
|
const { mapActions: mapRefute } = createNamespacedHelpers('refute');
|
|
@@ -19,11 +22,21 @@ export default {
|
|
name: 'index',
|
|
name: 'index',
|
|
props: {},
|
|
props: {},
|
|
components: {
|
|
components: {
|
|
|
|
+ info,
|
|
top,
|
|
top,
|
|
},
|
|
},
|
|
data: function() {
|
|
data: function() {
|
|
return {
|
|
return {
|
|
clientHeight: '',
|
|
clientHeight: '',
|
|
|
|
+ form: {
|
|
|
|
+ // title: '全国七万硕士在送外卖?别被贩卖焦虑的自媒体忽悠',
|
|
|
|
+ // origin: '系统管理员',
|
|
|
|
+ // renew_time: '2021-03-25 10:00:00',
|
|
|
|
+ // fileUrl: '',
|
|
|
|
+ // website: 'http://broadcast.waityou24.cn/platlive/home.html',
|
|
|
|
+ // zan: true,
|
|
|
|
+ // content: '信息内容',
|
|
|
|
+ },
|
|
};
|
|
};
|
|
},
|
|
},
|
|
async created() {
|
|
async created() {
|
|
@@ -38,7 +51,9 @@ export default {
|
|
async search() {
|
|
async search() {
|
|
if (this.id) {
|
|
if (this.id) {
|
|
let res = await this.fetch(this.id);
|
|
let res = await this.fetch(this.id);
|
|
- console.log(res);
|
|
|
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
|
+ this.$set(this, `form`, res.data);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 返回上一页
|
|
// 返回上一页
|
|
@@ -67,6 +82,7 @@ export default {
|
|
border-bottom: 1px solid #f1f1f1;
|
|
border-bottom: 1px solid #f1f1f1;
|
|
}
|
|
}
|
|
.info {
|
|
.info {
|
|
|
|
+ overflow-x: hidden;
|
|
overflow-y: auto;
|
|
overflow-y: auto;
|
|
}
|
|
}
|
|
}
|
|
}
|