提交 02c37964 authored 作者: 胡园辉's avatar 胡园辉

fix(首页样式修改)

上级 b486b986
差异被折叠。
<template> <template>
<div class="title"> <div class="title">
{{ this.text }} {{ this.text }}
<span v-if="detailsHandle" @click="detailsHandle && detailsHandle()">{{textRight || "详情"}}</span> <span
v-if="detailsHandle"
@click="detailsHandle && detailsHandle()"
>{{textRight || "更多"}}</span>
</div> </div>
</template> </template>
<script lang="ts"> <script lang="ts">
...@@ -18,7 +21,7 @@ export default defineComponent({ ...@@ -18,7 +21,7 @@ export default defineComponent({
}, },
textRight: { textRight: {
type: String, type: String,
} },
}, },
}); });
</script> </script>
...@@ -26,8 +29,8 @@ export default defineComponent({ ...@@ -26,8 +29,8 @@ export default defineComponent({
.title { .title {
position: relative; position: relative;
margin-left: 8px; margin-left: 8px;
color: #333; color: #00daf6;
font-weight: bold; // font-weight: bold;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
...@@ -40,14 +43,14 @@ export default defineComponent({ ...@@ -40,14 +43,14 @@ export default defineComponent({
left: -10px; left: -10px;
width: 5px; width: 5px;
height: 80%; height: 80%;
background: #4197ff; background: #19ecff;
} }
span { span {
font-weight: 400; font-weight: 400;
color: #666; color: #666;
cursor: pointer; cursor: pointer;
font-size: 14px; font-size: 14px;
color: #4197ff; color: #19ecff;
&:hover { &:hover {
color: #62b3ef; color: #62b3ef;
} }
......
...@@ -288,13 +288,13 @@ export default defineComponent({ ...@@ -288,13 +288,13 @@ export default defineComponent({
.nav-history { .nav-history {
padding-left: 10px; padding-left: 10px;
width: 100%; width: 100%;
background: #fff; background: rgba(25, 125, 237, 10%);
display: flex; display: flex;
align-items: center; align-items: center;
height: 40px; height: 40px;
border-radius: 5px; border-radius: 5px;
overflow: hidden; overflow: hidden;
box-shadow: 2px 2px 10px #eee; // box-shadow: 2px 2px 10px #eee;
.nav-history-item { .nav-history-item {
display: flex; display: flex;
height: 100%; height: 100%;
......
...@@ -5,16 +5,17 @@ const whiteRoutes = ["/login", "/sso"] ...@@ -5,16 +5,17 @@ const whiteRoutes = ["/login", "/sso"]
export default (router: Router) => { export default (router: Router) => {
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
const token = localStorage.getItem(TOKEN_KEY) // const token = localStorage.getItem(TOKEN_KEY)
if (whiteRoutes.includes(to.path)) { // if (whiteRoutes.includes(to.path)) {
return next() // return next()
} // }
if (!token) { // if (!token) {
router.replace(BaseRouteRouter.LOGIN); // router.replace(BaseRouteRouter.LOGIN);
} else { // } else {
// next()
// }
next() next()
}
}) })
return router return router
} }
\ No newline at end of file
...@@ -78,13 +78,13 @@ export default defineComponent({ ...@@ -78,13 +78,13 @@ export default defineComponent({
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.card-item { .card-item {
background: #fff; background: rgba(25, 125, 237, 10%);
border-radius: 5px; border-radius: 5px;
padding: 15px 20px; padding: 15px 20px;
overflow: hidden; overflow: hidden;
cursor: pointer; cursor: pointer;
transition: all 0.2s; transition: all 0.2s;
box-shadow: 2px 2px 10px #eee; // box-shadow: 2px 2px 10px #eee;
flex: 1; flex: 1;
height: 100%; height: 100%;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -25,5 +25,8 @@ export default defineComponent({ ...@@ -25,5 +25,8 @@ export default defineComponent({
flex: 1; flex: 1;
box-sizing: border-box; box-sizing: border-box;
padding: 20px; padding: 20px;
background-image: url(../../assets/img/content_bg.png);
background-repeat: no-repeat;
background-size: 100% 100%;
} }
</style> </style>
...@@ -86,7 +86,8 @@ export default defineComponent({ ...@@ -86,7 +86,8 @@ export default defineComponent({
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.card-item { .card-item {
background: #fff; // background: #fff;
background-color: rgba(25, 125, 237, 10%);
border-radius: 5px; border-radius: 5px;
padding: 16px; padding: 16px;
overflow: hidden; overflow: hidden;
......
...@@ -8,10 +8,10 @@ ...@@ -8,10 +8,10 @@
font-size: 12px; font-size: 12px;
} }
.color-999{ .color-999{
color: #999; color: #d4f7ff;
} }
.color-666{ .color-666{
color: #666; color: #d4f7ff;
} }
.color-pramiry{ .color-pramiry{
color: #4198ff; color: #4198ff;
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
} }
.item-bg { .item-bg {
padding: 8px; padding: 8px;
background: #f8f9fb; background: rgba(25, 125, 237, 0.2);
border-radius: 5px; border-radius: 5px;
} }
.flex-row { .flex-row {
......
<template> <template>
<MapTitle :text="title" textRight="详情 >>" :detailsHandle="detailsHandle" /> <MapTitle :text="title" textRight="更多" :detailsHandle="detailsHandle" />
<div class="info"> <div class="info">
<el-row <el-row
......
<template> <template>
<MapTitle <MapTitle
text="产业融合发展" text="产业融合发展"
textRight="详情 >>" textRight="更多"
:detailsHandle="detailsHandle" :detailsHandle="detailsHandle"
/> />
...@@ -84,6 +84,7 @@ export default defineComponent({ ...@@ -84,6 +84,7 @@ export default defineComponent({
.year { .year {
margin: 10px 0; margin: 10px 0;
color: #ffffff;
} }
.item-row { .item-row {
padding: 3px 0 3px 0; padding: 3px 0 3px 0;
......
<template> <template>
<MapTitle <MapTitle
text="服务强军兴军" text="服务强军兴军"
textRight="详情 >>" textRight="更多"
:detailsHandle="detailsHandle" :detailsHandle="detailsHandle"
/> />
<div class="info"> <div class="info">
...@@ -111,6 +111,7 @@ export default defineComponent({ ...@@ -111,6 +111,7 @@ export default defineComponent({
@import url("./common.css"); @import url("./common.css");
.item-bg { .item-bg {
padding: 12px 8px; padding: 12px 8px;
background-color: rgba(25, 125, 237, 20%);
} }
.info { .info {
padding: 10px 0; padding: 10px 0;
......
<template> <template>
<MapTitle <MapTitle text="五大体系建设" textRight="更多" :detailsHandle="detailsHandle" />
text="五大体系建设"
textRight="详情 >>"
:detailsHandle="detailsHandle"
/>
<div class="info"> <div class="info">
<el-row class="year" align="middle"> <el-row class="year" align="middle">组织管理体系</el-row>
组织管理体系
</el-row>
<el-row <el-row class="item-bg margin-bottom12" align="middle" justify="space-between">
class="item-bg margin-bottom12" <el-col class="item-text font-size14 color-666" :span="16">各地召开融委全体会议次数</el-col>
align="middle"
justify="space-between"
>
<el-col class="item-text font-size14 color-666" :span="16">
各地召开融委全体会议次数
</el-col>
<el-col class="jf-end flex-row font-size20 color-pramiry" :span="5"> <el-col class="jf-end flex-row font-size20 color-pramiry" :span="5">
{{ pageData.meetingCount || "--" }} {{ pageData.meetingCount || "--" }}
<span class="margin-left5 font-size12 color-999"></span> <span class="margin-left5 font-size12 color-999"></span>
</el-col> </el-col>
</el-row> </el-row>
<el-row <el-row class="item-bg margin-bottom12 flex-one" align="middle" justify="space-between">
class="item-bg margin-bottom12 flex-one" <el-col class="item-text font-size14 color-666" :span="18">与当地军分区(警备区)建立并落实军地协作工作机制</el-col>
align="middle"
justify="space-between"
>
<el-col class="item-text font-size14 color-666" :span="18">
与当地军分区(警备区)建立并落实军地协作工作机制
</el-col>
<el-col class="jf-end flex-row font-size20 color-pramiry" :span="5"> <el-col class="jf-end flex-row font-size20 color-pramiry" :span="5">
{{ pageData.workeCount || "--" {{ pageData.workeCount || "--"
}}<span class="margin-left5 font-size12 color-999"></span> }}
<span class="margin-left5 font-size12 color-999"></span>
</el-col> </el-col>
</el-row> </el-row>
<el-row class="info-item font-size14 color-666 item-bg margin-bottom12"> <el-row class="info-item font-size14 color-666 item-bg margin-bottom12">
<el-row class="item-text title"> 各地军民融合办工作人员 </el-row> <el-row class="item-text title">各地军民融合办工作人员</el-row>
<el-col :span="24"> <el-col :span="24">
<el-row justify="space-between"> <el-row justify="space-between">
...@@ -111,6 +94,7 @@ export default defineComponent({ ...@@ -111,6 +94,7 @@ export default defineComponent({
.year { .year {
margin: 10px 0; margin: 10px 0;
color: #ffffff;
} }
.info-item { .info-item {
...@@ -121,7 +105,7 @@ export default defineComponent({ ...@@ -121,7 +105,7 @@ export default defineComponent({
} }
.title { .title {
margin-bottom: 5px; margin-bottom: 5px;
color: #333; color: #d4f7ff;
} }
.item-row { .item-row {
padding: 0 20px; padding: 0 20px;
...@@ -135,7 +119,7 @@ export default defineComponent({ ...@@ -135,7 +119,7 @@ export default defineComponent({
.item-text { .item-text {
margin-left: 15px; margin-left: 15px;
color: #333; color: #d4f7ff;
} }
.flex-one { .flex-one {
flex-wrap: nowrap; flex-wrap: nowrap;
......
...@@ -17,18 +17,14 @@ ...@@ -17,18 +17,14 @@
v-else v-else
class="tab-index" class="tab-index"
:style="{ background: `${colors[scope.$index + 1]}` }" :style="{ background: `${colors[scope.$index + 1]}` }"
> >{{ scope.$index + 1 }}</div>
{{ scope.$index + 1 }}
</div>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="name" label="地区" align="center" /> <el-table-column prop="name" label="地区" align="center" />
<el-table-column prop="score" label="分数" width="120" align="center"> <el-table-column prop="score" label="分数" width="120" align="center">
<template #default="scope"> <template #default="scope">
<div> <div>{{ scope.row.score }}</div>
{{ scope.row.score }}
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -38,7 +34,7 @@ ...@@ -38,7 +34,7 @@
import { defineComponent } from "vue"; import { defineComponent } from "vue";
import MapTitle from "@/components/mapTitle/index.vue"; import MapTitle from "@/components/mapTitle/index.vue";
import { Bottom, Top } from "@element-plus/icons"; import { Bottom, Top } from "@element-plus/icons";
import Mock from "./mock" import Mock from "./mock";
import { mapState } from "vuex"; import { mapState } from "vuex";
export default defineComponent({ export default defineComponent({
...@@ -48,12 +44,12 @@ export default defineComponent({ ...@@ -48,12 +44,12 @@ export default defineComponent({
Top, Top,
}, },
setup() {}, setup() {},
computed:{ computed: {
...mapState({ ...mapState({
curDataType: (state) => state.curDataType, curDataType: (state) => state.curDataType,
}), }),
tableData() { tableData() {
return Mock[this.curDataType] return Mock[this.curDataType];
}, },
}, },
data() { data() {
...@@ -74,11 +70,20 @@ export default defineComponent({ ...@@ -74,11 +70,20 @@ export default defineComponent({
.tabs-header { .tabs-header {
} }
.tabs-header .el-table__cell { .tabs-header .el-table__cell {
background-color: #e3f0ff !important; background-color: #0e4780 !important;
color: #333; color: #d4f7ff;
font-weight: bold; font-weight: bold;
font-size: 14px; font-size: 14px;
} }
.el-table tr {
background: #0e4780 !important;
}
.el-table td.el-table__cell, .el-table th.el-table__cell.is-leaf{
border-bottom: 1px dashed #197ded;
}
.el-table .cell {
color: #d4f7ff;
}
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
.el-scrollbar { .el-scrollbar {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论