Browse Source

可视化话题详情组件9

shibei_master
dai 4 years ago
parent
commit
1ad2dd22d7
  1. 38
      src/assets/scss/modules/visual/heart.scss
  2. 28
      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;
} }

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

@ -1,4 +1,18 @@
<template> <template>
<div>
<div class="m-sizer">
<span>时间</span>
<el-date-picker
v-model="monthId"
type="month"
:clearable="false"
prefix-icon="el-icon-caret-bottom"
placeholder="选择日期"
value-format="yyyyMM"
>
</el-date-picker>
</div>
<div class="g-cpt"> <div class="g-cpt">
<div class="m-tb"> <div class="m-tb">
<cpt-card> <cpt-card>
@ -57,6 +71,7 @@
</cpt-card> </cpt-card>
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
@ -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