Browse Source

可视化话题详情组件9

shibei_master
dai 4 years ago
parent
commit
1ad2dd22d7
  1. 38
      src/assets/scss/modules/visual/heart.scss
  2. 130
      src/views/modules/visual/heart/index.vue

38
src/assets/scss/modules/visual/heart.scss

@ -8,6 +8,42 @@
justify-content: space-between; justify-content: space-between;
margin-top: 5px; margin-top: 5px;
} }
.m-sizer {
width: 195px;
margin: 10px 0;
margin-left: auto;
> span {
font-size: 16px;
font-family: PingFang SC;
font-weight: 400;
color: #ffffff;
}
::v-deep .el-input {
width: 140px;
height: 36px;
.el-input__inner {
height: 100%;
padding: 0 10px;
color: #fff;
line-height: 36px;
background: #06186d;
border: 1px solid #1a64cc;
}
.el-icon-arrow-up:before {
content: "\e78f";
}
}
::v-deep .el-date-editor {
.el-input__prefix {
left: unset;
right: 5px;
}
}
}
.m-tb { .m-tb {
width: 33%; width: 33%;
.title { .title {
@ -28,7 +64,7 @@
} }
} }
.tb { .tb {
height: calc(100vh - 180px); height: calc(100vh - 230px);
overflow-y: auto; overflow-y: auto;
@include scrollBar; @include scrollBar;
} }

130
src/views/modules/visual/heart/index.vue

@ -1,60 +1,75 @@
<template> <template>
<div class="g-cpt"> <div>
<div class="m-tb"> <div class="m-sizer">
<cpt-card> <span>时间</span>
<div class="title"> <el-date-picker
<img src="@/assets/img/shuju/title-tip.png" /> v-model="monthId"
<span>公益达人</span> type="month"
</div> :clearable="false"
prefix-icon="el-icon-caret-bottom"
<div class="tb"> placeholder="选择日期"
<cpt-tb value-format="yyyyMM"
:highlight-top3="true" >
:col-list="tb3.colList" </el-date-picker>
:loading="tb3.loading"
:header="tb3.header"
:list="tb3.list"
></cpt-tb>
</div>
</cpt-card>
</div> </div>
<div class="m-tb"> <div class="g-cpt">
<cpt-card> <div class="m-tb">
<div class="title"> <cpt-card>
<img src="@/assets/img/shuju/title-tip.png" /> <div class="title">
<span>党员先锋</span> <img src="@/assets/img/shuju/title-tip.png" />
</div> <span>公益达人</span>
</div>
<div class="tb"> <div class="tb">
<cpt-tb <cpt-tb
:highlight-top3="true" :highlight-top3="true"
:col-list="tb2.colList" :col-list="tb3.colList"
:loading="tb2.loading" :loading="tb3.loading"
:header="tb2.header" :header="tb3.header"
:list="tb2.list" :list="tb3.list"
></cpt-tb> ></cpt-tb>
</div> </div>
</cpt-card> </cpt-card>
</div> </div>
<div class="m-tb">
<cpt-card>
<div class="title">
<img src="@/assets/img/shuju/title-tip.png" />
<span>党员先锋</span>
</div>
<div class="tb">
<cpt-tb
:highlight-top3="true"
:col-list="tb2.colList"
:loading="tb2.loading"
:header="tb2.header"
:list="tb2.list"
></cpt-tb>
</div>
</cpt-card>
</div>
<div class="m-tb"> <div class="m-tb">
<cpt-card> <cpt-card>
<div class="title"> <div class="title">
<img src="@/assets/img/shuju/title-tip.png" /> <img src="@/assets/img/shuju/title-tip.png" />
<span>动力网格</span> <span>动力网格</span>
</div> </div>
<div class="tb"> <div class="tb">
<cpt-tb <cpt-tb
:highlight-top3="true" :highlight-top3="true"
:col-list="tb1.colList" :col-list="tb1.colList"
:loading="tb1.loading" :loading="tb1.loading"
:header="tb1.header" :header="tb1.header"
:list="tb1.list" :list="tb1.list"
></cpt-tb> ></cpt-tb>
</div> </div>
</cpt-card> </cpt-card>
</div>
</div> </div>
</div> </div>
</template> </template>
@ -64,6 +79,7 @@ import { Loading } from "element-ui"; //引入Loading服务
import { requestPost } from "@/js/dai/request"; import { requestPost } from "@/js/dai/request";
import cptCard from "@/views/modules/visual/cpts/card"; import cptCard from "@/views/modules/visual/cpts/card";
import cptTb from "@/views/modules/visual/cpts/tb"; import cptTb from "@/views/modules/visual/cpts/tb";
import nextTick from "dai-js/tools/nextTick";
export default { export default {
name: "heart", name: "heart",
@ -72,6 +88,8 @@ export default {
agencyId: "", agencyId: "",
areaCode: "", areaCode: "",
monthId: "",
// / // /
tb1: { tb1: {
loading: true, loading: true,
@ -160,10 +178,15 @@ export default {
cptTb, cptTb,
}, },
watch: {}, watch: {
monthId() {
this.getApiData();
},
},
async mounted() { async mounted() {
this.userId = this.uid; this.userId = this.uid;
await nextTick(100);
this.getApiData(); this.getApiData();
}, },
@ -202,6 +225,7 @@ export default {
let params = { let params = {
agencyId, agencyId,
areaCode, areaCode,
monthId: this.monthId,
orgType: "agency", orgType: "agency",
topNum: 50, topNum: 50,
}; };
@ -226,6 +250,7 @@ export default {
let params = { let params = {
orgId: agencyId, orgId: agencyId,
areaCode, areaCode,
monthId: this.monthId,
orgType: "agency", orgType: "agency",
topNum: 50, topNum: 50,
}; };
@ -255,6 +280,7 @@ export default {
let params = { let params = {
orgId: agencyId, orgId: agencyId,
areaCode, areaCode,
monthId: this.monthId,
orgType: "agency", orgType: "agency",
topNum: 50, topNum: 50,
}; };

Loading…
Cancel
Save