Commit e487bf2b by 潘际乾

首页显示

parent 54a4b980
...@@ -4,18 +4,20 @@ ...@@ -4,18 +4,20 @@
<span class="el-icon-refresh" title="刷新"></span> <span class="el-icon-refresh" title="刷新"></span>
<span class="el-icon-more" title="操作"></span> <span class="el-icon-more" title="操作"></span>
</CellHeaderVue> </CellHeaderVue>
<div class="cell-content"> <c-content :height="cellScrollHeight">
<div class="notice-item" v-for="(item, idx) in noticeList" :key="idx"> <div class="cell-content">
<div class="notice-title" :class="{ active: idx === 0 }"> <div class="notice-item" v-for="(item, idx) in noticeList" :key="idx">
<a :href="item.url" target="_blank" rel="noopener noreferrer"> <div class="notice-title" :class="{ active: idx === 0 }">
{{ item.title }} <a :href="item.url" target="_blank" rel="noopener noreferrer">
</a> {{ item.title }}
</div> </a>
<div class="notice-date"> </div>
{{ item.date }} <div class="notice-date">
{{ item.date }}
</div>
</div> </div>
</div> </div>
</div> </c-content>
</div> </div>
</template> </template>
...@@ -25,6 +27,12 @@ import CellHeaderVue from "./CellHeader.vue"; ...@@ -25,6 +27,12 @@ import CellHeaderVue from "./CellHeader.vue";
export default { export default {
name: "NoticeAnnouncement", name: "NoticeAnnouncement",
components: { CellHeaderVue }, components: { CellHeaderVue },
props: {
cellScrollHeight: {
type: Number,
required: true,
},
},
data() { data() {
return { return {
noticeList: [ noticeList: [
......
<template> <template>
<div class="home-cell" id="quickSearch"> <div class="home-cell" id="quickSearch">
<CellHeaderVue title="快速查询"> </CellHeaderVue> <CellHeaderVue title="快速查询"> </CellHeaderVue>
<div class="cell-content"> <c-content :height="cellScrollHeight">
<div <div class="cell-content">
class="content-wrapper" <div
v-for="(item, index) in options" class="content-wrapper"
:key="index" v-for="(item, index) in options"
> :key="index"
<div class="search-item-wrapper"> :style="{ height: wrapperHeight + 'px' }"
<div class="search-item"> >
<!-- <i class="el-icon-set-up"></i> --> <div class="search-item-wrapper">
<img :src="item.icon" alt="" /> <div class="search-item">
<span>{{ item.name }}</span> <!-- <i class="el-icon-set-up"></i> -->
<img :src="item.icon" alt="" />
<span>{{ item.name }}</span>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </c-content>
</div> </div>
</template> </template>
...@@ -25,6 +28,19 @@ import CellHeaderVue from "./CellHeader.vue"; ...@@ -25,6 +28,19 @@ import CellHeaderVue from "./CellHeader.vue";
export default { export default {
name: "QuickSearch", name: "QuickSearch",
components: { CellHeaderVue }, components: { CellHeaderVue },
props: {
cellScrollHeight: {
type: Number,
required: true,
},
},
computed: {
wrapperHeight() {
return Math.floor(
(window.document.body.clientHeight - this.cellScrollHeight) * 0.3
);
},
},
data() { data() {
return { return {
options: [ options: [
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
<div class="home-cell" id="quickVisit"> <div class="home-cell" id="quickVisit">
<CellHeaderVue title="快速访问"> </CellHeaderVue> <CellHeaderVue title="快速访问"> </CellHeaderVue>
<!-- <el-scrollbar :vertical="true" style="height: 100%;"> --> <c-content :height="cellScrollHeight">
<div class="cell-content"> <div class="cell-content">
<div <div
class="content-wrapper" class="content-wrapper"
v-for="(item, index) in quickVisitItem" v-for="(item, index) in quickVisitItem"
:key="index" :key="index"
:style="{ height: wrapperHeight + 'px' }"
> >
<div class="visit-item-wrapper"> <div class="visit-item-wrapper">
<div class="visit-item"> <div class="visit-item">
...@@ -17,8 +18,8 @@ ...@@ -17,8 +18,8 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- </el-scrollbar> --> </c-content>
</div> </div>
</template> </template>
...@@ -28,6 +29,19 @@ import CellHeaderVue from "./CellHeader.vue"; ...@@ -28,6 +29,19 @@ import CellHeaderVue from "./CellHeader.vue";
export default { export default {
name: "QuickVisit", name: "QuickVisit",
components: { CellHeaderVue }, components: { CellHeaderVue },
props: {
cellScrollHeight: {
type: Number,
required: true,
},
},
computed: {
wrapperHeight() {
return Math.floor(
(window.document.body.clientHeight - this.cellScrollHeight) * 0.3
);
},
},
data() { data() {
return { return {
quickVisitItem: [ quickVisitItem: [
...@@ -91,7 +105,7 @@ export default { ...@@ -91,7 +105,7 @@ export default {
#quickVisit .content-wrapper { #quickVisit .content-wrapper {
display: inline-block; display: inline-block;
width: 33%; width: 33%;
height: 30%; /* height: 30%; */
} }
#quickVisit .cell-content .visit-item-wrapper { #quickVisit .cell-content .visit-item-wrapper {
display: flex; display: flex;
......
<template> <template>
<div class="eContainer-home"> <div class="eContainer-home">
<QuickVisitVue></QuickVisitVue> <QuickVisitVue :cellScrollHeight="cellScrollHeight"></QuickVisitVue>
<TaskStatisticsVue></TaskStatisticsVue> <TaskStatisticsVue></TaskStatisticsVue>
<NoticeAnnouncementVue></NoticeAnnouncementVue> <NoticeAnnouncementVue :cellScrollHeight="cellScrollHeight"></NoticeAnnouncementVue>
<HallVue></HallVue> <HallVue></HallVue>
<CustomerAnalyseVue></CustomerAnalyseVue> <CustomerAnalyseVue></CustomerAnalyseVue>
<QuickSearchVue></QuickSearchVue> <QuickSearchVue :cellScrollHeight="cellScrollHeight"></QuickSearchVue>
</div> </div>
</template> </template>
<script> <script>
import QuickVisitVue from "./cells/QuickVisit.vue"; import QuickVisitVue from "./cells/QuickVisit.vue";
import TaskStatisticsVue from './cells/TaskStatistics.vue'; import TaskStatisticsVue from "./cells/TaskStatistics.vue";
import NoticeAnnouncementVue from "./cells/NoticeAnnouncement.vue"; import NoticeAnnouncementVue from "./cells/NoticeAnnouncement.vue";
import HallVue from "./cells/Hall.vue"; import HallVue from "./cells/Hall.vue";
import CustomerAnalyseVue from "./cells/CustomerAnalyse.vue"; import CustomerAnalyseVue from "./cells/CustomerAnalyse.vue";
...@@ -27,8 +27,15 @@ export default { ...@@ -27,8 +27,15 @@ export default {
CustomerAnalyseVue, CustomerAnalyseVue,
QuickSearchVue, QuickSearchVue,
}, },
created() {
this.cellScrollHeight =
window.document.body.clientHeight -
(window.document.body.clientHeight - 110 - 52 * 2 - 10) / 2;
},
data() { data() {
return {}; return {
cellScrollHeight: null,
};
}, },
}; };
</script> </script>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<c-tabs :value="tabVal" type="card" @tab-click="tabClick"> <c-tabs :value="tabVal" type="card" @tab-click="tabClick">
<el-tab-pane label="待经办列表" name="sptsel"> <el-tab-pane label="待经办列表" name="sptsel">
<!-- <c-table :columnsConfig="tableColumns" :list="tableData"></c-table> --> <!-- <c-table :columnsConfig="tableColumns" :list="tableData"></c-table> -->
<c-content :height="0"> <c-content :height="160">
<span slot="label"> <span slot="label">
待经办列表 待经办列表
<el-badge v-if="$store.state.Status.taskList.sptsel>0" :value="$store.state.Status.taskList.sptsel" :max="99"/> <el-badge v-if="$store.state.Status.taskList.sptsel>0" :value="$store.state.Status.taskList.sptsel" :max="99"/>
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="待复核列表" name="trnrel"> <el-tab-pane label="待复核列表" name="trnrel">
<c-content> <c-content :height="160">
<span slot="label"> <span slot="label">
待复核列表 待复核列表
<el-badge v-if="$store.state.Status.taskList.trnrel>0" :value="$store.state.Status.taskList.trnrel" :max="99"/> <el-badge v-if="$store.state.Status.taskList.trnrel>0" :value="$store.state.Status.taskList.trnrel" :max="99"/>
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<t-sptbrk /> <t-sptbrk />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="到期提示" name="diasel"> <el-tab-pane label="到期提示" name="diasel">
<c-content :height="0"> <c-content :height="160">
<t-diasel/> <t-diasel/>
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment