Browse Source

合并分支代码

feature
PLUTO 2 years ago
parent
commit
9cc9b6c965
  1. 61
      src/views/dataBoard/satisfactionEval/modules/PersonnelPortrait/index.vue

61
src/views/dataBoard/satisfactionEval/modules/PersonnelPortrait/index.vue

@ -1,33 +1,10 @@
<template>
<div
class="personnel-portrait"
v-loading="loading"
element-loading-text="加载中..."
element-loading-spinner="el-icon-loading"
element-loading-background="rgba(0,0,0,0.5)"
>
<Tabs
v-model="resultType"
:list="resultTypeList"
@changeVal="resultTypeChange"
/>
<div class="personnel-portrait" v-loading="loading" element-loading-text="加载中..." element-loading-spinner="el-icon-loading" element-loading-background="rgba(0,0,0,0.5)">
<Tabs v-model="resultType" :list="resultTypeList" @changeVal="resultTypeChange" />
<div class="screen">
<div class="txt">不满意人员画像</div>
<el-select
v-if="resultType == 'provinceAndSelf'"
v-model="typeCondition"
@change="getData"
placeholder="请选择"
class="select"
popper-class="selectPopClass"
>
<el-option
v-for="item in typeConditionList"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
<el-select v-if="resultType == 'provinceAndSelf'" v-model="typeCondition" @change="getData" placeholder="请选择" class="select" popper-class="selectPopClass">
<el-option v-for="item in typeConditionList" :key="item.value" :label="item.label" :value="item.value"> </el-option>
</el-select>
</div>
@ -64,15 +41,7 @@
</div>
<div class="tag purple" v-if="gender">
<div class="text">
{{
gender === "1"
? "男"
: gender === "2"
? "女"
: gender === "0"
? "未知"
: ""
}}
{{ gender === "1" ? "男" : gender === "2" ? "女" : gender === "0" ? "未知" : "" }}
</div>
</div>
</div>
@ -154,17 +123,13 @@ export default {
this.getData();
},
gotopage() {
this.$router.push(
"/dataBoard/satisfactionEval/dissatisfiedPersonnel?searchParams=" +
this.searchParams
);
this.$router.push("/dataBoard/satisfactionEval/dissatisfiedPersonnel?searchParams=" + this.searchParams);
},
getDisKey() {
this.$http
.post("/sys/dict/data/dictlist", { dictType: "satisfaction_category" })
.then(({ data: { data } }) => {
this.$http.post("/sys/dict/data/dictlist", { dictType: "satisfaction_category" }).then(({ data: { data } }) => {
this.typeCondition = data[0].value;
this.typeConditionList = data;
this.getData();
});
},
getData() {
@ -173,15 +138,9 @@ export default {
level: this.$store.state.chooseArea.chooseName.level,
orgId: this.$store.state.chooseArea.chooseName.orgId,
queryType: this.resultType,
category:
this.resultType == "provinceAndSelf" ? this.typeCondition : null,
category: this.resultType == "provinceAndSelf" ? this.typeCondition : null,
};
this.$http
.get(
"/governance/satisfactionOverview/satisfactionCrowdPortrait?" +
this.$paramsFormat(params)
)
.then(({ data: { data } }) => {
this.$http.get("/governance/satisfactionOverview/satisfactionCrowdPortrait?" + this.$paramsFormat(params)).then(({ data: { data } }) => {
this.gender = data.gender;
this.marriageName = data.marriageName;
this.ageClassification = data.ageClassification;

Loading…
Cancel
Save