70a67fce by 任超

style:首页完成

1 parent c36b0f0d
......@@ -56,6 +56,10 @@
}
}
.el-icon-date {
display: none;
}
// to fixed https://github.com/ElemeFE/element/issues/2461
// refine element ui upload
.el-input.is-disabled .el-input__inner {
......@@ -120,6 +124,7 @@
::-webkit-scrollbar-thumb:hover {
background-color: rgb(162, 164, 167);
}
// element 样式补丁
.el-menu--horizontal {
border-bottom: none !important;
......
......@@ -55,6 +55,7 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 75%;
}
ul {
......@@ -70,7 +71,7 @@
.box-mountNode {
flex: 1;
height: calc(100% - 485px);
height: calc(100% - 510px);
}
.home-right {
......
......@@ -14,7 +14,7 @@
</el-card>
</el-col>
<el-col :span="12">
<el-card shadow="hover" style="height:243px">
<el-card shadow="hover" style="height:247px">
<div slot="header" class="flexst">
<h5 class="title">系统通知</h5>
<i class="el-icon-s-unfold pointer"></i>
......@@ -32,7 +32,7 @@
</el-row>
<el-row :gutter="8" class="marginTop10">
<el-col :span="12">
<el-card shadow="hover">
<el-card shadow="hover" style="height:247px">
<div slot="header" class="flexst">
<h5 class="title">待办事项</h5>
<i class="el-icon-s-unfold pointer"></i>
......@@ -40,13 +40,13 @@
<ul>
<li v-for="(item, index) in todoList" :key="index" class="flexst">
<p class="right15">{{ item.dealTime.substring(0, 10) }}</p>
<p class="list-title">{{ item.dealBusiness }} ({{ item.dealStep + '环节' }})</p>
<p class="list-title" style="text-align:right">{{ item.dealBusiness }} ({{ item.dealStep + '环节' }})</p>
</li>
</ul>
</el-card>
</el-col>
<el-col :span="12">
<el-card shadow="hover" style="height:225px">
<el-card shadow="hover" style="height:247px">
<div slot="header" class="flexst">
<h5 class="title">政策法规</h5>
<i class="el-icon-s-unfold pointer"></i>
......@@ -184,9 +184,9 @@ export default {
queryNoticeList () {
getHomeNoticeList().then(res => {
if (res.result) {
this.noticeList = res.result.noticeList
this.noticeList = res.result.noticeList.slice(0, 5)
this.noticeList.forEach(item => {
item.createtime = this._timedate(item.createtime)
})
this.policyList = res.result.policyList
}
......@@ -198,6 +198,8 @@ export default {
time_str = "今天";
} else if (new Date(date).getDate() === (new Date().getDate() - 1)) {
time_str = "昨天";
} else {
time_str = date
}
return time_str;
},
......@@ -243,6 +245,6 @@ export default {
@import "./index.scss";
/deep/.el-card__body {
padding: 10px;
padding: 3px 10px 5px 10px;
}
</style>
\ No newline at end of file
......
......@@ -168,8 +168,4 @@ export default {
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
/deep/.el-icon-date {
display: none;
}
</style>
......