Browse Source

Merge remote-tracking branch 'origin/dev' into dev

feature
战立标 2 years ago
parent
commit
192efe2474
  1. 2
      src/views/dataBoard/renfang/cpts/fwgl.vue
  2. 4
      src/views/dataBoard/renfang/cpts/jmgl.vue
  3. 16
      src/views/dataBoard/renfang/cpts/rkfx.vue

2
src/views/dataBoard/renfang/cpts/fwgl.vue

@ -124,7 +124,7 @@ export default {
this.barInitState = true; this.barInitState = true;
}, },
async getData() { async getData() {
await this.getInfo(); // await this.getInfo();
this.getPie(); this.getPie();
// this.getBar(); // this.getBar();

4
src/views/dataBoard/renfang/cpts/jmgl.vue

@ -119,8 +119,8 @@ export default {
this.barInitState = true; this.barInitState = true;
}, },
async getData() { async getData() {
await this.getInfo(); // await this.getInfo();
this.getBar(); // this.getBar();
this.getPie(); this.getPie();
}, },
getBar() { getBar() {

16
src/views/dataBoard/renfang/cpts/rkfx.vue

@ -34,9 +34,7 @@ import screenEchartsFrame from "@/views/dataBoard/cpts/screen-echarts-frame/inde
import { import {
pieOption pieOption
} from "./rkfxPieOption.js"; } from "./rkfxPieOption.js";
import { import {requestPost} from "@/js/dai/request";
requestPostBi
} from "@/js/dai/request-bipass";
import Tabs from "@/views/dataBoard/satisfactionEval/components/Tabs/index.vue"; import Tabs from "@/views/dataBoard/satisfactionEval/components/Tabs/index.vue";
export default { export default {
@ -149,28 +147,24 @@ export default {
}, },
// //
async getInfo() { async getInfo() {
const url = "resident_analyze"; const url = "/actual/base/peopleRoomOverview/getresidentAnalyze";
this.$refs.pieChart.showLoading(); this.$refs.pieChart.showLoading();
const { const {
data, data,
code, code,
msg msg
} = await requestPostBi(url, { } = await requestPost(url, {
queryParam: { org_id: this.orgId
org_id: this.orgId,
},
}, { }, {
// mockId: 60041615, // mockId: 60041615,
}); });
this.$refs.pieChart.hideLoading(); this.$refs.pieChart.hideLoading();
if (code === 0) { if (code === 0) {
if (data && Array.isArray(data) && data.length > 0) { let info = data;
let info = data[0];
this.info = { this.info = {
...this.info, ...this.info,
...info ...info
}; };
}
} else { } else {
this.$message.error(msg); this.$message.error(msg);
} }

Loading…
Cancel
Save