|
@@ -4,11 +4,11 @@
|
|
|
<div class="icon"></div>
|
|
|
<span>报建项目</span>
|
|
|
<div class="selectTab">
|
|
|
- <el-select v-model="left_value" placeholder="请选择" :popper-append-to-body="false" @change="changeChartsLeft">
|
|
|
- <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </div>
|
|
|
+ <el-select v-model="left_value" placeholder="请选择" :popper-append-to-body="false" @change="changeChartsLeft">
|
|
|
+ <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="content">
|
|
|
<div class="item">
|
|
@@ -17,7 +17,7 @@
|
|
|
</div>
|
|
|
<div class="text">
|
|
|
<p>报建数量</p>
|
|
|
- <span>{{left_value=='csbj'?sdata.sj_number:0}}</span>个
|
|
|
+ <span>{{ left_value == 'csbj' ? sdata.sj_number : 0 }}</span>个
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="item">
|
|
@@ -43,8 +43,8 @@ export default {
|
|
|
components: {},
|
|
|
data() {
|
|
|
return {
|
|
|
- sdata:{},
|
|
|
- left_value:'csbj',
|
|
|
+ sdata: {},
|
|
|
+ left_value: 'csbj',
|
|
|
options: [
|
|
|
{ value: "csbj", label: "城市报建" },
|
|
|
{ value: "szbj", label: "私宅报建" },
|
|
@@ -57,7 +57,7 @@ export default {
|
|
|
watch: {},
|
|
|
//方法集合
|
|
|
methods: {
|
|
|
- changeChartsLeft(){
|
|
|
+ changeChartsLeft() {
|
|
|
this.init_bjxm_echart_info();
|
|
|
},
|
|
|
async init_info(params) {
|
|
@@ -69,8 +69,8 @@ export default {
|
|
|
id: params ? params.id : '4602'
|
|
|
};
|
|
|
let res = await QueryOne(obj);
|
|
|
- this.sdata= res.data;
|
|
|
- },
|
|
|
+ this.sdata = res.data;
|
|
|
+ },
|
|
|
async init_bjxm_echart_info(params) {
|
|
|
const that = this;
|
|
|
let obj = {
|
|
@@ -158,7 +158,7 @@ export default {
|
|
|
// 数据
|
|
|
const xAxis = store.state.cockpit_bjxm.csbj.csbj_echart.xAxis
|
|
|
const bat_data = store.state.cockpit_bjxm.csbj.csbj_echart.bat_data
|
|
|
- const line_data =this.left_value =='csbj'? store.state.cockpit_bjxm.csbj.csbj_echart.line_data:[0,0,0,0,0,0]
|
|
|
+ const line_data = this.left_value == 'csbj' ? store.state.cockpit_bjxm.csbj.csbj_echart.line_data : [0, 0, 0, 0, 0, 0]
|
|
|
|
|
|
let option = {
|
|
|
//你的代码
|
|
@@ -182,8 +182,8 @@ export default {
|
|
|
containLabel: true
|
|
|
},
|
|
|
xAxis: {
|
|
|
- name:'月',
|
|
|
- nameGap:2,
|
|
|
+ name: '月',
|
|
|
+ nameGap: 2,
|
|
|
type: 'category',
|
|
|
data: xAxis,
|
|
|
axisLine: {
|
|
@@ -371,7 +371,7 @@ export default {
|
|
|
};
|
|
|
myChart.setOption(option);
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
beforeCreate() { }, //生命周期 - 创建之前
|
|
|
created() { }, //生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -394,7 +394,7 @@ export default {
|
|
|
.bjxm {
|
|
|
border-width: 0px;
|
|
|
position: absolute;
|
|
|
- width: 385px;
|
|
|
+ width: 430px;
|
|
|
height: 310px;
|
|
|
top: 67%;
|
|
|
left: 30rem;
|
|
@@ -441,71 +441,74 @@ export default {
|
|
|
|
|
|
.selectTab {
|
|
|
position: absolute;
|
|
|
- right: 0;
|
|
|
- bottom: 6px;
|
|
|
+ right: 0;
|
|
|
+ bottom: 9px;
|
|
|
+ right: 21px;
|
|
|
z-index: 100;
|
|
|
- /deep/ .el-input__inner {
|
|
|
- // padding-right: 30px;
|
|
|
- width: 128px !important;
|
|
|
- height: 24px !important;
|
|
|
- line-height: 24px;
|
|
|
- padding-left: 22px;
|
|
|
- padding-right: 0px;
|
|
|
- font-size: 12px;
|
|
|
- color: #bcd3e5;
|
|
|
- border: none;
|
|
|
- background: url("/static/images/overview/selectBg.png") no-repeat !important;
|
|
|
- background-size: 100% 100%;
|
|
|
- }
|
|
|
|
|
|
- /deep/ .el-input__icon {
|
|
|
- line-height: 1;
|
|
|
- }
|
|
|
+ /deep/ .el-input__inner {
|
|
|
+ // padding-right: 30px;
|
|
|
+ width: 128px !important;
|
|
|
+ height: 24px !important;
|
|
|
+ line-height: 24px;
|
|
|
+ padding-left: 22px;
|
|
|
+ padding-right: 0px;
|
|
|
+ font-size: 12px;
|
|
|
+ color: #bcd3e5;
|
|
|
+ border: none;
|
|
|
+ // background: url("/static/images/overview/selectBg.png") no-repeat !important;
|
|
|
+ background-color: rgba(0, 0, 0, 0) !important;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ }
|
|
|
|
|
|
- /deep/ .el-input__suffix {
|
|
|
- right: -2px;
|
|
|
- }
|
|
|
+ /deep/ .el-input__icon {
|
|
|
+ line-height: 1;
|
|
|
+ }
|
|
|
|
|
|
- /deep/ .el-select-dropdown__list {
|
|
|
- color: #bcd3e5 !important;
|
|
|
- background: linear-gradient(180deg,
|
|
|
- rgba(3, 115, 177, 0) 11%,
|
|
|
- rgba(3, 115, 177, 0.48) 100%);
|
|
|
- border-image: linear-gradient(360deg,
|
|
|
- rgba(75, 185, 250, 0.2),
|
|
|
- rgba(75, 185, 250, 0.05)) 1 1 !important;
|
|
|
- border: none;
|
|
|
- }
|
|
|
+ /deep/ .el-input__suffix {
|
|
|
+ right: -2px;
|
|
|
+ }
|
|
|
|
|
|
- /deep/ .el-select-dropdown__item.hover,
|
|
|
- .el-select-dropdown__item:hover {
|
|
|
- background-color: rgba(87, 163, 226, 0.5);
|
|
|
- }
|
|
|
+ /deep/ .el-select-dropdown__list {
|
|
|
+ color: #bcd3e5 !important;
|
|
|
+ background: linear-gradient(180deg,
|
|
|
+ rgba(3, 115, 177, 0) 11%,
|
|
|
+ rgba(3, 115, 177, 0.48) 100%);
|
|
|
+ border-image: linear-gradient(360deg,
|
|
|
+ rgba(75, 185, 250, 0.2),
|
|
|
+ rgba(75, 185, 250, 0.05)) 1 1 !important;
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
|
|
|
- /deep/ .el-select-dropdown__item {
|
|
|
- color: #ecf6ff;
|
|
|
- }
|
|
|
- }
|
|
|
+ /deep/ .el-select-dropdown__item.hover,
|
|
|
+ .el-select-dropdown__item:hover {
|
|
|
+ background-color: rgba(87, 163, 226, 0.5);
|
|
|
+ }
|
|
|
|
|
|
- /deep/ {
|
|
|
- .el-select-dropdown__item.selected {
|
|
|
- color: #409eff;
|
|
|
- }
|
|
|
- }
|
|
|
+ /deep/ .el-select-dropdown__item {
|
|
|
+ color: #ecf6ff;
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
- /deep/ .el-popper[x-placement^="bottom"] {
|
|
|
- margin-top: 12px;
|
|
|
- background: #163253;
|
|
|
- }
|
|
|
+/deep/ {
|
|
|
+ .el-select-dropdown__item.selected {
|
|
|
+ color: #409eff;
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
- /deep/ .el-select-dropdown {
|
|
|
- border: none;
|
|
|
- }
|
|
|
+/deep/ .el-popper[x-placement^="bottom"] {
|
|
|
+ margin-top: 12px;
|
|
|
+ background: #163253;
|
|
|
+}
|
|
|
+
|
|
|
+/deep/ .el-select-dropdown {
|
|
|
+ border: none;
|
|
|
+}
|
|
|
|
|
|
- /deep/ .el-popper[x-placement^="bottom"] .popper__arrow::after {
|
|
|
- border-bottom-color: #163253;
|
|
|
- top: 0;
|
|
|
- }
|
|
|
+/deep/ .el-popper[x-placement^="bottom"] .popper__arrow::after {
|
|
|
+ border-bottom-color: #163253;
|
|
|
+ top: 0;
|
|
|
+}
|
|
|
|
|
|
.content {
|
|
|
position: absolute;
|