网络生态统计修复

lijinlong
许宏杰 2 years ago
parent 978b480e35
commit 15065b11bc

@ -275,3 +275,20 @@ export function networkAppraiser() {
method: "get", method: "get",
}); });
} }
// 查询本级上级网评指令比列 (月)列表
export function listBjsj(query) {
return request({
url: "/zongzhi/bjsj/list",
method: "get",
params: query,
});
}
// 查询网评员任务完成率心列表
export function listWpyrwwcl(query) {
return request({
url: "/zongzhi/wpyrwwcl/list",
method: "get",
params: query,
});
}

@ -70,10 +70,7 @@
<script> <script>
import { getComplete } from "@/api/common"; import { getComplete } from "@/api/common";
import { import { listBjsj, listWpyrwwcl } from "@/api/zongzhi/st.js";
networkAppraisercomplete,
networkAppraiser,
} from "@/api/zongzhi/st.js";
export default { export default {
components: {}, components: {},
filters: { filters: {
@ -109,9 +106,9 @@ export default {
}, },
methods: { methods: {
getNetworkAppraiser() { getNetworkAppraiser() {
networkAppraiser().then((res) => { listBjsj({ pageNum: 1, pageSize: 2 }).then((res) => {
this.sjNum = res.data[0].pt; this.sjNum = res.rows[0].percent;
this.bjNum = res.data[1].pt; this.bjNum = res.rows[1].percent;
this.sjdata = Math.round(this.bjNum); this.sjdata = Math.round(this.bjNum);
this.bjdata = Math.round(this.sjNum); this.bjdata = Math.round(this.sjNum);
this.inItCylinder(); this.inItCylinder();
@ -119,12 +116,16 @@ export default {
}, },
// data // data
getpercentageData() { getpercentageData() {
networkAppraisercomplete().then((res) => { listWpyrwwcl({ pageNum: 1, pageSize: 7 }).then((res) => {
res.data.forEach((item) => { res.rows.forEach((item) => {
this.percentageName.push(item.name); let name = JSON.parse(item.areaId);
this.percentageValue.push(item.pt); console.log();
this.inItBar(); this.percentageName.push(
this.$filterDict("town", name[name.length - 1], true)
);
this.percentageValue.push(item.finish);
}); });
this.inItBar();
}); });
// this.percentageName = ['', '', '', '', '', '', ''] // this.percentageName = ['', '', '', '', '', '', '']
// this.percentageValue = [80, 90, 60, 90, 90, 70, 50] // this.percentageValue = [80, 90, 60, 90, 90, 70, 50]

Loading…
Cancel
Save