特殊人群选择网格

This commit is contained in:
liuye
2022-08-10 09:45:51 +08:00
parent 8a7f8b749b
commit a093b4758d
5 changed files with 78 additions and 12 deletions

View File

@@ -62,8 +62,8 @@ export default {
.banner-img { .banner-img {
padding: 32px 32px 16px; padding: 32px 32px 16px;
img { img {
width: 686px; width: 100%;
height: 240px; // height: 240px;
} }
} }
.content { .content {

View File

@@ -1,8 +1,9 @@
<template> <template>
<div class="Home"> <div class="Home">
<div class="tips"> <u-notice-bar mode="horizontal" :list="list"></u-notice-bar>
<!-- <div class="tips">
<img src="../img/home/tips-icon.png" alt="">慧政务改版上线了点此查看帮助文档 <img src="../img/home/tips-icon.png" alt="">慧政务改版上线了点此查看帮助文档
</div> </div> -->
<div class="content"> <div class="content">
<div class="user-info"> <div class="user-info">
<div class="left"> <div class="left">
@@ -80,7 +81,8 @@ export default {
num: 15 num: 15
} }
], ],
echartData: null echartData: null,
list: ['慧政务改版上线了,点此查看帮助文档!']
} }
}, },
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
@@ -96,15 +98,56 @@ export default {
}, },
xAxis: { xAxis: {
type: 'category', type: 'category',
boundaryGap: false,
axisLine: {
lineStyle: {
color: '#E1E5EF', //x轴的颜色
width: 1, //轴线的宽度
},
},
axisLabel: {
show: true,
textStyle: {
color: '#666',
},
},
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
}, },
yAxis: { yAxis: {
axisLine:{ //y轴
show: false
},
axisTick: {
show: false
},
axisLabel: {
show: true,
textStyle: {
color: '#666',
},
},
type: 'value' type: 'value'
}, },
series: [ series: [
{ {
data: [150, 230, 224, 218, 135, 147, 260], data: [150, 230, 224, 218, 135, 147, 260],
type: 'line', type: 'line',
areaStyle: {//覆盖区域的渐变色
normal: {
color: {
type: 'linear',x: 0,y: 0,x2: 0,y2: 1,
colorStops: [
{
offset: 0, color: 'rgba(58,132,255, 0.8)' // 0% 处的颜色
},
{
offset: 1, color: 'rgba(58,132,255, 0)' // 100% 处的颜色
}
],
global: false // 缺省为 false
},
}
},
lineStyle: { lineStyle: {
normal: { normal: {
color: '#2891FF' color: '#2891FF'
@@ -219,7 +262,7 @@ export default {
.tab-content { .tab-content {
.item { .item {
display: inline-block; display: inline-block;
width: 336px; width: calc(50% - 14px);
height: 160px; height: 160px;
background: #FFF; background: #FFF;
box-shadow: 0 0 8px 0 rgba(0,0,0,0.0200); box-shadow: 0 0 8px 0 rgba(0,0,0,0.0200);
@@ -266,7 +309,7 @@ export default {
} }
} }
.chart-content{ .chart-content{
width: 686px; width: 100%;
height: 514px; height: 514px;
background: #FFF; background: #FFF;
box-shadow: 0 0 8px 0 rgba(0,0,0,0.0200); box-shadow: 0 0 8px 0 rgba(0,0,0,0.0200);
@@ -274,5 +317,23 @@ export default {
margin-bottom: 82px; margin-bottom: 82px;
} }
} }
::v-deep .u-type-warning-light-bg {
padding: 20px 32px!important;
background-color: #3975C6!important;
}
::v-deep .u-icon__icon--warning {
color: #D7E3F3;
width: 32px;
height: 32px;
font-size: 0px!important;
background-image: url('../img/home/tips-icon.png');
background-size: 100%;
}
::v-deep .u-type-warning {
color: #fff;
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
line-height: 40px;
}
} }
</style> </style>

View File

@@ -64,7 +64,7 @@ export default {
.content { .content {
padding: 32px 32px 0; padding: 32px 32px 0;
.user-info{ .user-info{
width: 686px; width: 100%;
height: 248px; height: 248px;
border-radius: 8px; border-radius: 8px;
background-color: #fff; background-color: #fff;

View File

@@ -69,7 +69,7 @@
<div class="item"> <div class="item">
<span class="label"><span class="tips"></span>所属网格</span> <span class="label"><span class="tips"></span>所属网格</span>
<div class="value"> <div class="value">
<AiPagePicker type="custom" v-model="form.girdId" @select="handleSelectGrid" <AiPagePicker type="custom" @select="handleSelectGrid"
:ops="{url:'../AppGridManagement/SelectGird',label: 'girdName'}"> :ops="{url:'../AppGridManagement/SelectGird',label: 'girdName'}">
<AiMore v-model="form.girdName"/> <AiMore v-model="form.girdName"/>
</AiPagePicker> </AiPagePicker>
@@ -158,7 +158,8 @@ export default {
address: '', address: '',
girdName: '', girdName: '',
areaId: '', areaId: '',
sex: '' sex: '',
girdId: '',
}, },
dateShow: false, dateShow: false,
deteParams: {year: true, month: true, day: true, hour: false, minute: false, second: false}, deteParams: {year: true, month: true, day: true, hour: false, minute: false, second: false},
@@ -434,7 +435,9 @@ export default {
}, },
handleSelectGrid(v) { handleSelectGrid(v) {
console.log(v)
this.form.girdName = v?.girdName || "" this.form.girdName = v?.girdName || ""
this.form.girdId = v.id
}, },
submit() { submit() {

View File

@@ -69,7 +69,7 @@
<div class="item"> <div class="item">
<span class="label"><span class="tips"></span>所属网格</span> <span class="label"><span class="tips"></span>所属网格</span>
<div class="value"> <div class="value">
<AiPagePicker type="custom" v-model="form.girdId" @select="handleSelectGrid" <AiPagePicker type="custom" @select="handleSelectGrid"
:ops="{url:'../AppGridManagement/SelectGird',label: 'girdName'}"> :ops="{url:'../AppGridManagement/SelectGird',label: 'girdName'}">
<AiMore v-model="form.girdName"/> <AiMore v-model="form.girdName"/>
</AiPagePicker> </AiPagePicker>
@@ -158,7 +158,8 @@ export default {
address: '', address: '',
girdName: '', girdName: '',
areaId: '', areaId: '',
sex: '' sex: '',
girdId: ''
}, },
dateShow: false, dateShow: false,
deteParams: {year: true, month: true, day: true, hour: false, minute: false, second: false}, deteParams: {year: true, month: true, day: true, hour: false, minute: false, second: false},
@@ -435,6 +436,7 @@ export default {
handleSelectGrid(v) { handleSelectGrid(v) {
this.form.girdName = v?.girdName || "" this.form.girdName = v?.girdName || ""
this.form.girdId = v.id
}, },
submit() { submit() {