|
@ -1,4 +1,4 @@ |
|
|
import {satisfactionCrowdPortrait} from "../../../../utils/statisticsApi"; |
|
|
import {dictlist, satisfactionCrowdPortrait} from "../../../../utils/statisticsApi"; |
|
|
|
|
|
|
|
|
Component({ |
|
|
Component({ |
|
|
properties: {}, |
|
|
properties: {}, |
|
@ -20,10 +20,12 @@ Component({ |
|
|
residentTagName: '', |
|
|
residentTagName: '', |
|
|
matchPeopleNum: '', |
|
|
matchPeopleNum: '', |
|
|
searchParams: '', |
|
|
searchParams: '', |
|
|
|
|
|
typeCondition: 0, |
|
|
|
|
|
typeConditionList: [], |
|
|
}, |
|
|
}, |
|
|
lifetimes: { |
|
|
lifetimes: { |
|
|
ready() { |
|
|
ready() { |
|
|
this.getData() |
|
|
this.getDisKey() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
@ -38,16 +40,28 @@ Component({ |
|
|
url: '/subpages/statistics/pages/crowdPortrait/crowdPortrait?data=' + this.data.searchParams |
|
|
url: '/subpages/statistics/pages/crowdPortrait/crowdPortrait?data=' + this.data.searchParams |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
getDisKey() { |
|
|
|
|
|
dictlist({dictType: "satisfaction_category"}).then(({data}) => { |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
typeConditionList:data |
|
|
|
|
|
}); |
|
|
|
|
|
this.getData() |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
getData() { |
|
|
getData() { |
|
|
let params = { |
|
|
let params = { |
|
|
queryType: this.data.tabValue |
|
|
queryType: this.data.tabValue |
|
|
} |
|
|
} |
|
|
|
|
|
console.log(this.data.resultType) |
|
|
|
|
|
if (this.data.tabValue === "provinceAndSelf") { |
|
|
|
|
|
params.category = this.data.typeConditionList[this.data.typeCondition].value |
|
|
|
|
|
} |
|
|
satisfactionCrowdPortrait(params).then(({data}) => { |
|
|
satisfactionCrowdPortrait(params).then(({data}) => { |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
gender: data.gender, |
|
|
gender: data.gender, |
|
|
marriageName: data.marriageName, |
|
|
marriageName: data.marriageName, |
|
|
ageClassification: data.ageClassification, |
|
|
ageClassification: data.ageClassification, |
|
|
cultureLevel: data.cultureLevel, |
|
|
cultureName: data.cultureName, |
|
|
gridName: data.gridName, |
|
|
gridName: data.gridName, |
|
|
monthIncomeLevel: data.monthIncomeLevel, |
|
|
monthIncomeLevel: data.monthIncomeLevel, |
|
|
residentTagName: data.residentTagName, |
|
|
residentTagName: data.residentTagName, |
|
|