Browse Source

居民分类更新情况,居民分类信息不完整数量统计接口对接,房屋跳转

feature
李素 2 years ago
parent
commit
e24a7ea207
  1. 35
      src/views/components/resiSearch.vue
  2. 4
      src/views/modules/base/community/community.vue
  3. 79
      src/views/modules/base/resi.vue
  4. 308
      src/views/modules/home/index.vue

35
src/views/components/resiSearch.vue

@ -88,8 +88,9 @@
</el-form-item> </el-form-item>
<el-form-item label="名称模糊查询"> <el-form-item label="名称模糊查询">
<el-select v-model="basicType" class="u-item-width-service" clearable size="small"> <el-select v-model="basicType" class="u-item-width-service" clearable size="small">
<template > <template>
<el-option @click.native="handelClickBasicType" :label='item.label' :value='item.value' v-for="(item, index) in basicInfoList" :key="index"> </el-option> <el-option @click.native="handelClickBasicType" :label='item.label' :value='item.value'
v-for="(item, index) in basicInfoList" :key="index"> </el-option>
</template> </template>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -114,18 +115,29 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="特殊人群"> <el-form-item label="特殊人群">
<el-select v-model="form.specialCategoryCodes" class="u-item-width-normal" clearable size="small" collapse-tags <el-select v-model="form.specialCategoryCodes" class="u-item-width-normal" clearable size="small"
multiple> collapse-tags multiple>
<template v-for="item in specialCategoryList"> <template v-for="item in specialCategoryList">
<el-option :label='item.label' :value='item.value'> </el-option> <el-option :label='item.label' :value='item.value'> </el-option>
</template> </template>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="信息完整度" style="display: block;">
<el-input v-model="form.integrityScoreFrom" class="u-item-width-daterange" placeholder="请输入" clearable
size="small">
</el-input>
<span class="u-data-tag"></span>
<el-input v-model="form.integrityScoreTo" @change="informationChange"
class="u-item-width-daterange u-data-tag" placeholder="请输入" clearable size="small">
</el-input>
</el-form-item>
<el-form-item label="备注"> <el-form-item label="备注">
<el-input v-model="form.remark" placeholder="请输入" size="small" class="u-item-width-normal" clearable></el-input> <el-input v-model="form.remark" placeholder="请输入" size="small" class="u-item-width-normal"
clearable></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -368,6 +380,8 @@ export default {
birthdayEnd: '', birthdayEnd: '',
ageStart: '', ageStart: '',
ageEnd: '', ageEnd: '',
integrityScoreFrom: null,//
integrityScoreTo: null,//end
gender: '', gender: '',
cultureLevel: '', cultureLevel: '',
localResidenceFlag: '', localResidenceFlag: '',
@ -719,6 +733,13 @@ export default {
} }
} }
}, },
informationChange() {
this.form.integrityScoreFrom = parseFloat(this.form.integrityScoreFrom);
this.form.integrityScoreTo = parseFloat(this.form.integrityScoreTo);
if (isNaN(this.form.integrityScoreFrom) || isNaN(this.form.integrityScoreTo)) {
this.$message.warning('请输入数字');
}
},
handleChangeAgency(val) { handleChangeAgency(val) {
this.sarr = [] this.sarr = []
@ -1015,7 +1036,7 @@ export default {
} }
return subYear - 1 + '-' + nowMonth + '-' + nowDay return subYear - 1 + '-' + nowMonth + '-' + nowDay
}, },
handelClickBasicType(){ handelClickBasicType() {
this.form.name = ''; this.form.name = '';
this.form.mobile = ''; this.form.mobile = '';
this.form.idNum = ''; this.form.idNum = '';

4
src/views/modules/base/community/community.vue

@ -452,6 +452,8 @@ export default {
roomTable, roomTable,
}, },
async mounted () { async mounted () {
// console.log("",this.$route.query.param1)
this.searchHeight = this.$refs.ref_searchform.offsetHeight; this.searchHeight = this.$refs.ref_searchform.offsetHeight;
this.treeLoading = true; this.treeLoading = true;
@ -563,12 +565,10 @@ export default {
agencyId: this.selAgencyId, agencyId: this.selAgencyId,
isPage: false, isPage: false,
}; };
const { data, code, msg } = await requestPost(url, params); const { data, code, msg } = await requestPost(url, params);
if (code === 0) { if (code === 0) {
this.optionsV = data; this.optionsV = data;
this.neighborHoodId = ""; this.neighborHoodId = "";
this.buildingId = ""; this.buildingId = "";
this.buildingUnitId = ""; this.buildingUnitId = "";

79
src/views/modules/base/resi.vue

@ -93,6 +93,8 @@
<el-table-column type="selection" fixed="left" align="center" width="50" /> <el-table-column type="selection" fixed="left" align="center" width="50" />
<el-table-column label="序号" type="index" fixed="left" align="left" width="50"> <el-table-column label="序号" type="index" fixed="left" align="left" width="50">
</el-table-column> </el-table-column>
<el-table-column v-for="item in tableHeader" :key="item.columnName" :prop="item.columnName" <el-table-column v-for="item in tableHeader" :key="item.columnName" :prop="item.columnName"
:label="item.label" align="left" :show-overflow-tooltip="true" :width="item.width || ''"> :label="item.label" align="left" :show-overflow-tooltip="true" :width="item.width || ''">
<template slot-scope="scope"> <template slot-scope="scope">
@ -110,6 +112,19 @@
: "--" : "--"
}} }}
</div> </div>
<div v-else-if="item.columnName == 'nationality'">
{{
scope.row.gender == null
? ((1 - scope.row.nationality)*100).toFixed(2) + '%'
: ((1 - scope.row.nationality)*100).toFixed(2) + '%'
}}
</div>
<div v-else-if="item.columnName == 'gridName'"> <div v-else-if="item.columnName == 'gridName'">
<template> <template>
<div class="resiCategoryInfoBox"> <div class="resiCategoryInfoBox">
@ -149,6 +164,9 @@
<span v-else>{{ handleFilterSpan(scope.row, item) }}</span> <span v-else>{{ handleFilterSpan(scope.row, item) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column fixed="right" label="操作" align="center" width="200"> <el-table-column fixed="right" label="操作" align="center" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="btnAuths.ic_resi_view" type="text" size="small" <el-button v-if="btnAuths.ic_resi_view" type="text" size="small"
@ -334,6 +352,7 @@ export default {
// { columnName: "agencyName", label: "", width: 150 }, // { columnName: "agencyName", label: "", width: 150 },
{ columnName: "idTypeName", label: "证件类型", width: 80 }, { columnName: "idTypeName", label: "证件类型", width: 80 },
{ columnName: "idNum", label: "证件号", width: 170 }, { columnName: "idNum", label: "证件号", width: 170 },
{ columnName: "nationality", label: "信息完整度", width: 95 },
{ columnName: "categoryNames", label: "居民分类" }, { columnName: "categoryNames", label: "居民分类" },
{ columnName: "nationalityName", label: "国籍", width: 50 }, { columnName: "nationalityName", label: "国籍", width: 50 },
{ columnName: "nationName", label: "民族", width: 50 }, { columnName: "nationName", label: "民族", width: 50 },
@ -419,8 +438,6 @@ export default {
}, },
}); });
this.handleSearchFrom(); this.handleSearchFrom();
}, },
activated() { activated() {
this.handleSearchFrom(); this.handleSearchFrom();
@ -481,50 +498,73 @@ export default {
const { categoryKey, agencyId, level } = this.$refs.myResiSearch.form; const { categoryKey, agencyId, level } = this.$refs.myResiSearch.form;
// //
let _obj = JSON.parse(JSON.stringify(this.$refs.myResiSearch.form)); let _obj = JSON.parse(JSON.stringify(this.$refs.myResiSearch.form));
console.log('213', _obj)
switch (this.valueb) { switch (this.valueb) {
case '党员': case '党员':
_obj.partyFlag = 1 _obj.partyFlag = 1
_obj.integrityScoreFrom = parseInt(0)
_obj.integrityScoreTo = parseInt(60)
this.getTableData(_obj); this.getTableData(_obj);
break; break;
case '残疾人': case '残疾人':
_obj.healthStatus.push('DISABILITY_FLAG'); _obj.healthStatus.push('DISABILITY_FLAG');
_obj.integrityScoreFrom = parseInt(0)
_obj.integrityScoreTo = parseInt(60)
this.getTableData(_obj); this.getTableData(_obj);
break; break;
case '退役军人': case '退役军人':
_obj.attentionCrowds.push('VETERAN_FLAG'); _obj.attentionCrowds.push('VETERAN_FLAG');
_obj.integrityScoreFrom = parseInt(0)
_obj.integrityScoreTo = parseInt(60)
_obj.partyFlag = 1; _obj.partyFlag = 1;
this.getTableData(_obj); this.getTableData(_obj);
break; break;
case '失业人员': case '失业人员':
_obj.careerStatus = 0 _obj.careerStatus = 0
this.getTableData(_obj); this.getTableData(_obj);
_obj.integrityScoreFrom = parseInt(0)
_obj.integrityScoreTo = parseInt(60)
break; break;
case '低保人员': case '低保人员':
_obj.attentionCrowds.push('SUBSISTENCE_ALLOW'); _obj.attentionCrowds.push('SUBSISTENCE_ALLOW');
this.getTableData(_obj); _obj.integrityScoreFrom = parseInt(0)
_obj.integrityScoreTo = parseInt(60)
this.getTableData(_obj);
break; break;
case '保障房人员': case '保障房人员':
_obj.attentionCrowds.push('ENSURE_HOUSE_FLAG'); _obj.attentionCrowds.push('ENSURE_HOUSE_FLAG');
this.getTableData(_obj); _obj.integrityScoreFrom = parseInt(0)
_obj.integrityScoreTo = parseInt(60)
this.getTableData(_obj);
break; break;
case '特殊人员': case '特殊人员':
_obj.attentionCrowds.push('ENSURE_HOUSE_FLAG'); _obj.attentionCrowds.push('ENSURE_HOUSE_FLAG');
this.getTableData(_obj); _obj.integrityScoreFrom = parseInt(0)
_obj.integrityScoreTo = parseInt(60)
this.getTableData(_obj);
break; break;
case '大病人员': case '大病人员':
_obj.healthStatus.push('SERIOUS_ILLNESS_F'); _obj.healthStatus.push('SERIOUS_ILLNESS_F');
this.getTableData(_obj); _obj.integrityScoreFrom = parseInt(0)
_obj.integrityScoreTo = parseInt(60)
this.getTableData(_obj);
break; break;
case '慢病人员': case '慢病人员':
_obj.healthStatus.push('CHRONIC_DISEASE_F'); _obj.healthStatus.push('CHRONIC_DISEASE_F');
this.getTableData(_obj); _obj.integrityScoreFrom = parseInt(0)
_obj.integrityScoreTo = parseInt(60)
this.getTableData(_obj);
break; break;
case '老年人': case '老年人':
_obj.attentionCrowds.push('OLD_PEOPLE_FLAG'); _obj.attentionCrowds.push('OLD_PEOPLE_FLAG');
_obj.integrityScoreFrom = parseInt(0)
_obj.integrityScoreTo = parseInt(60)
this.getTableData(_obj); this.getTableData(_obj);
break; break;
case '特扶人员': case '特扶人员':
_obj.attentionCrowds.push('SPECIAL_SUPPORT_F'); _obj.attentionCrowds.push('SPECIAL_SUPPORT_F');
_obj.integrityScoreFrom = parseInt(0)
_obj.integrityScoreTo = parseInt(60)
this.getTableData(_obj); this.getTableData(_obj);
break; break;
@ -955,11 +995,12 @@ export default {
}; };
const { data, code, msg } = await requestPost(url, parm); const { data, code, msg } = await requestPost(url, parm);
if (code === 0) { if (code === 0) {
console.log("let meeased", meeased)
this.showCheckPassword = false; this.showCheckPassword = false;
this.$router.push({ this.$router.push({
name: "edit-resi", name: "edit-resi",
query: { id: this.editUserId }, query: { id: this.editUserId },
params: { idNum: data.idNum, mobile: data.mobile, name: data.name }, params: { idNum: data.idNum, mobile: data.mobile, name: data.name, nationality: data.nationality },
}); });
this.checkPasswordFrom.password = ""; this.checkPasswordFrom.password = "";
} else { } else {

308
src/views/modules/home/index.vue

@ -50,27 +50,27 @@
</div> </div>
</div> </div>
<div class="boxss"> <div class="boxss">
<div style="margin-top: 10px;"> <div style="margin-top: 10px;" @click="jumpToHouse()">
<span style="color: #2683DB; font-size: 25px;">{{ pandectData.homeCount }}</span> <span style="color: #2683DB; font-size: 25px;">{{ pandectData.homeCount }}</span>
<br> <br>
<span style="color: #858585; font-size: 12px;">房屋总数</span> <span style="color: #858585; font-size: 12px;">房屋总数</span>
</div> </div>
</div> </div>
<div class="boxss"> <div class="boxss" @click="jumpToHouse('zizhuM')">
<div style="margin-top: 10px;"> <div style="margin-top: 10px;">
<span style="color: #2683DB; font-size: 25px;">{{ pandectData.selfStay }}</span> <span style="color: #2683DB; font-size: 25px;">{{ pandectData.selfStay }}</span>
<br> <br>
<span style="color: #858585; font-size: 12px;">自住房屋</span> <span style="color: #858585; font-size: 12px;">自住房屋</span>
</div> </div>
</div> </div>
<div class="boxss"> <div class="boxss" @click="jumpToHouse('chuzuM')">
<div style="margin-top: 10px;"> <div style="margin-top: 10px;">
<span style="color: #2683DB; font-size: 25px;">{{ pandectData.rentOut }}</span> <span style="color: #2683DB; font-size: 25px;">{{ pandectData.rentOut }}</span>
<br> <br>
<span style="color: #858585; font-size: 12px;">出租房屋</span> <span style="color: #858585; font-size: 12px;">出租房屋</span>
</div> </div>
</div> </div>
<div class="boxss"> <div class="boxss" @click="jumpToHouse('xianzhiM')">
<div style="margin-top: 10px;"> <div style="margin-top: 10px;">
<span style="color: #2683DB; font-size: 25px;">{{ pandectData.vacantHouse }}</span> <span style="color: #2683DB; font-size: 25px;">{{ pandectData.vacantHouse }}</span>
<br> <br>
@ -254,12 +254,12 @@
</thead> </thead>
<tbody> <tbody>
<tr v-for="(item, index) in tableList" :key="item.code"> <tr v-for="(item, index) in tableList" :key="item.code">
<td style="opacity: 0.5;">{{ item.shenfen }}</td> <td style="opacity: 0.5;">{{ item.residentCategoryName }}</td>
<td style="color: #2683DB;">{{ item.zongNumber }}</td> <td style="color: #2683DB;">{{ item.total }}</td>
<td style="color: red;">{{ item.noAllNuber }}</td> <td style="color: red;">{{ item.nonIntegratedNum }}</td>
<td class="special-header">{{ item.fuzeren }}</td> <td class="special-header">{{ item.updatePeriodName }}</td>
<td class="special-header">{{ item.zhouqi }}</td> <td class="special-header">{{ item.updatedTime }}</td>
<td class="special-header">{{ item.addNum }}</td> <td class="special-header">{{ item.updateResiNum }}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -302,16 +302,16 @@ export default {
list: [], list: [],
}, },
tableList: [ tableList: [
{ shenfen: '党员', zongNumber: '10', noAllNuber: '1', fuzeren: '王五', zhouqi: '1', addNum: '1' }, // { shenfen: '', zongNumber: '10', noAllNuber: '1', fuzeren: '', zhouqi: '1', addNum: '1' },
{ shenfen: '党员', zongNumber: '10', noAllNuber: '1', fuzeren: '王五', zhouqi: '1', addNum: '1' }, // { shenfen: '', zongNumber: '10', noAllNuber: '1', fuzeren: '', zhouqi: '1', addNum: '1' },
{ shenfen: '党员', zongNumber: '10', noAllNuber: '1', fuzeren: '王五', zhouqi: '1', addNum: '1' }, // { shenfen: '', zongNumber: '10', noAllNuber: '1', fuzeren: '', zhouqi: '1', addNum: '1' },
{ shenfen: '保障房人员', zongNumber: '10', noAllNuber: '1', fuzeren: '王五', zhouqi: '1', addNum: '1' }, // { shenfen: '', zongNumber: '10', noAllNuber: '1', fuzeren: '', zhouqi: '1', addNum: '1' },
{ shenfen: '党员', zongNumber: '10', noAllNuber: '1', fuzeren: '王五', zhouqi: '1', addNum: '1' }, // { shenfen: '', zongNumber: '10', noAllNuber: '1', fuzeren: '', zhouqi: '1', addNum: '1' },
{ shenfen: '党员', zongNumber: '10', noAllNuber: '1', fuzeren: '王五', zhouqi: '1', addNum: '1' }, // { shenfen: '', zongNumber: '10', noAllNuber: '1', fuzeren: '', zhouqi: '1', addNum: '1' },
{ shenfen: '党员', zongNumber: '10', noAllNuber: '1', fuzeren: '王五', zhouqi: '1', addNum: '1' }, // { shenfen: '', zongNumber: '10', noAllNuber: '1', fuzeren: '', zhouqi: '1', addNum: '1' },
{ shenfen: '党员', zongNumber: '10', noAllNuber: '1', fuzeren: '王五', zhouqi: '1', addNum: '1' }, // { shenfen: '', zongNumber: '10', noAllNuber: '1', fuzeren: '', zhouqi: '1', addNum: '1' },
{ shenfen: '党员', zongNumber: '10', noAllNuber: '1', fuzeren: '王五', zhouqi: '1', addNum: '1' }, // { shenfen: '', zongNumber: '10', noAllNuber: '1', fuzeren: '', zhouqi: '1', addNum: '1' },
{ shenfen: '党员', zongNumber: '10', noAllNuber: '1', fuzeren: '王五', zhouqi: '1', addNum: '1' }, // { shenfen: '', zongNumber: '10', noAllNuber: '1', fuzeren: '', zhouqi: '1', addNum: '1' },
], ],
znycCategory: { znycCategory: {
loading: false, loading: false,
@ -333,14 +333,11 @@ export default {
floatingResiCount: "", floatingResiCount: "",
permanentResiCount: "", permanentResiCount: "",
}, },
noticeData: [], noticeData: [],
activeName: "resi", activeName: "resi",
numberLiM: [{ mer: 820, bilv: 0.45 }, { mer: 724, bilv: 0.56 }, { mer: 718, bilv: 0.54 }, { mer: 725, bilv: 0.69 }, { mer: 727, bilv: 0.36 }, { mer: 728, bilv: 0.64 }, { mer: 725, bilv: 0.78 }, { mer: 750, bilv: 0.25 }, { mer: 760, bilv: 0.96 }, { mer: 700, bilv: 0.38 }, { mer: 710, bilv: 0.62 }],
myChart: {}, myChart: {},
agencyLevel: '', agencyLevel: '',
xData: ["党员", "残疾人", "退役军人", "失业人员", "低保人员", "保障房人员", "特殊人员", "大病人员", "慢病人员", "特扶人员", "老年人"], xData: ["党员", "残疾人", "退役军人", "失业人员", "低保人员", "保障房人员", "特殊人员", "慢病人员", "老年人"],
yData: [ yData: [
// { // {
// value: 720, // value: 720,
@ -394,16 +391,16 @@ export default {
immediate: true, immediate: true,
}, },
}, },
mounted() { created() {
this.ehso();
},
mounted() {
// this.ehso();
// //
this.initEcharts(); this.initEcharts();
this.getApiData(); this.getApiData();
this.$nextTick(() => { this.$nextTick(() => {
this.initChart() this.initChart()
@ -413,13 +410,13 @@ export default {
"dynamicMenuRoutes----------------------------", "dynamicMenuRoutes----------------------------",
this.$store.state.sidebarMenuList this.$store.state.sidebarMenuList
); );
}, },
methods: { methods: {
initChart() { initChart() {
this.$http.get("/governance/satisfactionOverview/notSatisfactionTrend").then(({ data: { data } }) => { this.$http.get("/governance/satisfactionOverview/notSatisfactionTrend").then(({ data: { data } }) => {
this.myChart = echarts.init(document.getElementById("my_chart")); this.myChart = echarts.init(document.getElementById("my_chart"));
console.log("123123", data.series) // console.log("123123", data.series)
let series = data.series.map((item, index) => { let series = data.series.map((item, index) => {
return { return {
...item, ...item,
@ -470,7 +467,17 @@ export default {
this.myChart.setOption(option, true); this.myChart.setOption(option, true);
window.addEventListener("resize", this.handleWindowResize); window.addEventListener("resize", this.handleWindowResize);
}); });
this.borderH();
}, },
borderH() {
this.$http.post("/actual/base/residentCategoryUpdateInfo/getUpdateAndintegrityList").then(({ data: { data } }) => {
this.tableList = data
console.log("请求成功:", data);
});
},
handleWindowResize() { handleWindowResize() {
if (this.myChart) { if (this.myChart) {
this.myChart.resize(); this.myChart.resize();
@ -512,6 +519,16 @@ export default {
path: "/main/home-notice", path: "/main/home-notice",
}); });
}, },
//
jumpToHouse(e){
console.log("看看存进得什么",e)
this.$router.push({
path: "/main/base-community-community",
query: {
param1: e,
}
});
},
toSearchPage(type, searchKey) { toSearchPage(type, searchKey) {
this.$router.push({ this.$router.push({
@ -659,127 +676,140 @@ export default {
}, },
initEcharts() { initEcharts() {
// this.$http.get("/actual/base/residentIntegrity/resiCategoryStats/byOrg/query4Org").then(({ data: { data } }) => {
const option = { this.myChart = echarts.init(document.getElementById("my_chart"));
xAxis: {
type: 'category',
axisLabel: {
// rotate: -45,
textStyle: {
fontSize: 10
}
},
axisTick: {
show: false, // x线
},
data: this.xData,
}, this.yData = data.categoryStatsDatas.map(item => {
yAxis: {}, const total = Number(item.total);
graphic: [{ // const nonIntegratedNum = Number(item.nonIntegratedNum);
type: 'group', let ratio = '';
left: 'center', if (total !== 0) {
bottom: 20, ratio = 1 - (nonIntegratedNum / total);
z: 100, }
children: [ // console.log("nonIntegratedNum", nonIntegratedNum)
{ // console.log("total", total)
type: 'rect', return {
left: 0, value: total,
// top: 'middle', itemStyle: {
shape: { color: {
width: 30, type: 'linear',
height: 6, x: 0,
}, y: 0,
style: { x2: 0,
fill: '#0056D6', // y2: 1,
colorStops: [
{ offset: 0, color: '#2D7DF2' },
{ offset: ratio, color: '#7EB1FE' },
{ offset: ratio, color: '#EFB632' },
{ offset: 1, color: '#FDD77D' }
],
global: false
}, },
shadowColor: "#91cc75",
borderType: "dashed",
// opacity: 0.5
}
};
});
//
const option = {
xAxis: {
type: 'category',
axisLabel: {
// rotate: -45,
textStyle: {
fontSize: 10
}
}, },
{ axisTick: {
type: 'text', show: false, // x线
left: 35,
// top: 'middle',
style: {
text: '分类居民总数',
fill: '#333',
fontSize: 12,
// fontWeight: 'bold',
},
}, },
{ data: this.xData,
type: 'rect',
left: 130, },
// top: 'middle', yAxis: {},
shape: { graphic: [{ //
width: 30, type: 'group',
height: 6, left: 'center',
bottom: 20,
z: 100,
children: [
{
type: 'rect',
left: 0,
// top: 'middle',
shape: {
width: 30,
height: 6,
},
style: {
fill: '#0056D6', //
},
}, },
style: { {
fill: '#FFDB84 ', // type: 'text',
left: 35,
// top: 'middle',
style: {
text: '分类居民总数',
fill: '#333',
fontSize: 12,
// fontWeight: 'bold',
},
}, },
}, {
{ type: 'rect',
type: 'text', left: 130,
left: 170, // top: 'middle',
// top: 'middle', shape: {
style: { width: 30,
text: '分类信息不完整数', height: 6,
fill: '#333', },
fontSize: 12, style: {
// fontWeight: 'bold', fill: '#FFDB84 ', //
},
},
{
type: 'text',
left: 170,
// top: 'middle',
style: {
text: '分类信息不完整数',
fill: '#333',
fontSize: 12,
// fontWeight: 'bold',
},
}, },
],
}],
series: [
{
type: "bar",
barWidth: '30%',
barGap: '20%',
data: this.yData,
}, },
], ],
}], };
series: [ const myChart = echarts.init(document.getElementById("mychart"));
{ myChart.setOption(option);
type: "bar", //
barWidth: '30%', window.addEventListener("resize", () => {
barGap: '20%', myChart.resize();
data: this.yData,
},
],
};
const myChart = echarts.init(document.getElementById("mychart"));
myChart.setOption(option);
//
window.addEventListener("resize", () => {
myChart.resize();
});
myChart.on("click", (e) => {
console.log("123123123112", e.name);
this.$router.push({
path: "/main/base-resi",
query: {
param1: e.name,
}
}); });
myChart.on("click", (e) => {
console.log("123123123112", e.name);
this.$router.push({
path: "/main/base-resi",
query: {
param1: e.name,
}
});
});
}); });
}, },
ehso() {
this.yData = this.numberLiM.map(item => ({
value: item.mer,
itemStyle: {
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{ offset: 0, color: '#2D7DF2' },
{ offset: item.bilv, color: '#7EB1FE' },
{ offset: item.bilv, color: '#EFB632' },
{ offset: 1, color: '#FDD77D' }
],
global: false
},
shadowColor: "#91cc75",
borderType: "dashed",
// opacity: 0.5
}
}));
},
}, },
}; };

Loading…
Cancel
Save