Browse Source

Merge branch 'dev' into jw_feature_dev

V1.0
张若晨 2 years ago
parent
commit
d1be56ecda
  1. 2
      src/views/modules/base/organization/organization.vue
  2. 38
      src/views/modules/home/index.vue

2
src/views/modules/base/organization/organization.vue

@ -2002,7 +2002,7 @@ export default {
this.peoForm.gender = data.gender; this.peoForm.gender = data.gender;
this.peoForm.post = data.workType; this.peoForm.post = data.workType;
this.peoForm.idCard = data.idCard; this.peoForm.idCard = data.idCard;
this.peoForm.duty = data.roleList.map(item=>item.roleId); this.peoForm.duty = data.roleList.filter(item => item.selected).map(item => item.roleId);
// //
let existedDutyArr = []; let existedDutyArr = [];
data.roleList.forEach(function (sysDuty) { data.roleList.forEach(function (sysDuty) {

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

@ -226,7 +226,7 @@ import {mapGetters} from "vuex";
import nextTick from "dai-js/tools/nextTick"; import nextTick from "dai-js/tools/nextTick";
import fastcall from "@/views/modules/cpts/fastcall"; import fastcall from "@/views/modules/cpts/fastcall";
import * as echarts from 'echarts'; import * as echarts from 'echarts';
import { requestPostBi } from "@/js/dai/request-bipass";
export default { export default {
components: {fastcall}, components: {fastcall},
@ -274,7 +274,9 @@ export default {
activeName: 'resi', activeName: 'resi',
myChart: {} myChart: {},
resiCategoryData:[]
} }
}, },
computed: { computed: {
@ -358,6 +360,35 @@ export default {
}) })
}, },
async getResiCategoryData() {
const url = "resident_class_statics";
const { data, code, msg } = await requestPostBi(
url,
{
queryParam: {
org_id: this.$store.state.user.agencyId,
},
},
{
// mockId: 60031937,
}
);
if (code === 0) {
this.znycCategory.list = data.map((item) => {
return {
name: item.label,
count: item.count,
per: item.ratio,
const: "const",
};
});
console.log(this.resiCategoryData);
} else {
this.$message.error(msg);
}
},
handleWindowResize() { handleWindowResize() {
if (this.myChart) { if (this.myChart) {
this.myChart.resize(); this.myChart.resize();
@ -424,7 +455,8 @@ export default {
async getApiData() { async getApiData() {
await this.getOrgData(); await this.getOrgData();
this.getWarningList(); this.getWarningList();
this.getZnycList(); // this.getZnycList();
this.getResiCategoryData()
this.getPandectData(); this.getPandectData();
this.getNoticeData(); this.getNoticeData();
}, },

Loading…
Cancel
Save