Browse Source

动力网格恢复

shibei_master
jiangyy 4 years ago
parent
commit
c098eed24c
  1. 75
      src/views/modules/visual/heart/index.vue

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

@ -2,14 +2,12 @@
<div> <div>
<div class="m-sizer"> <div class="m-sizer">
<span>时间</span> <span>时间</span>
<el-date-picker <el-date-picker v-model="monthId"
v-model="monthId" type="month"
type="month" :clearable="false"
:clearable="false" prefix-icon="el-icon-caret-bottom"
prefix-icon="el-icon-caret-bottom" placeholder="选择日期"
placeholder="选择日期" value-format="yyyyMM">
value-format="yyyyMM"
>
</el-date-picker> </el-date-picker>
</div> </div>
@ -22,13 +20,11 @@
</div> </div>
<div class="tb"> <div class="tb">
<cpt-tb <cpt-tb :highlight-top3="true"
:highlight-top3="true" :col-list="tb3.colList"
:col-list="tb3.colList" :loading="tb3.loading"
:loading="tb3.loading" :header="tb3.header"
:header="tb3.header" :list="tb3.list"></cpt-tb>
:list="tb3.list"
></cpt-tb>
</div> </div>
</cpt-card> </cpt-card>
</div> </div>
@ -41,13 +37,11 @@
</div> </div>
<div class="tb"> <div class="tb">
<cpt-tb <cpt-tb :highlight-top3="true"
:highlight-top3="true" :col-list="tb2.colList"
:col-list="tb2.colList" :loading="tb2.loading"
:loading="tb2.loading" :header="tb2.header"
:header="tb2.header" :list="tb2.list"></cpt-tb>
:list="tb2.list"
></cpt-tb>
</div> </div>
</cpt-card> </cpt-card>
</div> </div>
@ -60,13 +54,11 @@
</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"></cpt-tb>
:list="tb1.list"
></cpt-tb>
</div> </div>
</cpt-card> </cpt-card>
</div> </div>
@ -84,7 +76,7 @@ import dateFormat from "dai-js/tools/dateFormat";
export default { export default {
name: "heart", name: "heart",
data() { data () {
return { return {
agencyId: this.$store.state.user.agencyId, agencyId: this.$store.state.user.agencyId,
areaCode: "", areaCode: "",
@ -187,33 +179,33 @@ export default {
}, },
watch: { watch: {
monthId() { monthId () {
this.getApiData(); this.getApiData();
}, },
}, },
async mounted() { async mounted () {
this.userId = this.uid; this.userId = this.uid;
await nextTick(100); await nextTick(100);
this.getApiData(); this.getApiData();
}, },
methods: { methods: {
handleSearch() {}, handleSearch () { },
async getApiData() { async getApiData () {
//await this.getAgencyInfo(); //await this.getAgencyInfo();
this.getTb1(); this.getTb1();
this.getTb2(); this.getTb2();
this.getTb3(); this.getTb3();
}, },
toUserInfo(uid) { toUserInfo (uid) {
this.$router.push({ path: `/main-shuju/visual-basicinfo-people/${uid}` }); this.$router.push({ path: `/main-shuju/visual-basicinfo-people/${uid}` });
}, },
// //
async getAgencyInfo() { async getAgencyInfo () {
const { data, code, msg } = await requestPost( const { data, code, msg } = await requestPost(
"/data/report/screen/agency/agencydetail-multic", "/data/report/screen/agency/agencydetail-multic",
{ {
@ -227,10 +219,9 @@ export default {
}, },
// //
async getTb1() { async getTb1 () {
const { agencyId, areaCode } = this; const { agencyId, areaCode } = this;
//const url = "/data/report/screen/index/advancedbranchrank"; const url = "/data/report/screen/index/advancedbranchrank";
const url = "/data/report/screen/index/advancedbranchrank-shibei";
let params = { let params = {
agencyId, agencyId,
areaCode, areaCode,
@ -244,7 +235,7 @@ export default {
if (code === 0) { if (code === 0) {
this.tb1.list = data.map((item) => { this.tb1.list = data.map((item) => {
return [{ type: "index" }, item.name, item.score]; return [{ type: "index" }, item.name, item.scroe];
}); });
this.tb1.srcList = data; this.tb1.srcList = data;
} else { } else {
@ -253,7 +244,7 @@ export default {
}, },
// //
async getTb2() { async getTb2 () {
const { agencyId, areaCode } = this; const { agencyId, areaCode } = this;
const url = "/data/report/screen/user/partypointrank"; const url = "/data/report/screen/user/partypointrank";
let params = { let params = {
@ -283,7 +274,7 @@ export default {
}, },
// //
async getTb3() { async getTb3 () {
const { agencyId, areaCode } = this; const { agencyId, areaCode } = this;
const url = "/data/report/screen/user/userpointrank/withoutpartymember"; const url = "/data/report/screen/user/userpointrank/withoutpartymember";
let params = { let params = {

Loading…
Cancel
Save