特殊人群选择网格

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 {
padding: 32px 32px 16px;
img {
width: 686px;
height: 240px;
width: 100%;
// height: 240px;
}
}
.content {

View File

@@ -1,8 +1,9 @@
<template>
<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="">慧政务改版上线了点此查看帮助文档
</div>
</div> -->
<div class="content">
<div class="user-info">
<div class="left">
@@ -80,7 +81,8 @@ export default {
num: 15
}
],
echartData: null
echartData: null,
list: ['慧政务改版上线了,点此查看帮助文档!']
}
},
computed: { ...mapState(['user']) },
@@ -96,15 +98,56 @@ export default {
},
xAxis: {
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']
},
yAxis: {
axisLine:{ //y轴
show: false
},
axisTick: {
show: false
},
axisLabel: {
show: true,
textStyle: {
color: '#666',
},
},
type: 'value'
},
series: [
{
data: [150, 230, 224, 218, 135, 147, 260],
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: {
normal: {
color: '#2891FF'
@@ -219,7 +262,7 @@ export default {
.tab-content {
.item {
display: inline-block;
width: 336px;
width: calc(50% - 14px);
height: 160px;
background: #FFF;
box-shadow: 0 0 8px 0 rgba(0,0,0,0.0200);
@@ -266,7 +309,7 @@ export default {
}
}
.chart-content{
width: 686px;
width: 100%;
height: 514px;
background: #FFF;
box-shadow: 0 0 8px 0 rgba(0,0,0,0.0200);
@@ -274,5 +317,23 @@ export default {
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>

View File

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

View File

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

View File

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