|
|
|
@ -37,16 +37,16 @@
|
|
|
|
|
<!-- 各区域执法计划 -->
|
|
|
|
|
<div class="bodyBox boxAllStyle" v-if="activeIndex == 1">
|
|
|
|
|
<div id="execution">
|
|
|
|
|
<executionPlan ref="executionPlan" :loadS="loadS"></executionPlan>
|
|
|
|
|
<executionPlan :newTable="newTable" :loadS="loadS"></executionPlan>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="bottomBox" v-if="activeIndex == 1">
|
|
|
|
|
<div class="boxAllStyle">
|
|
|
|
|
<completePlan ref="completePlan" :loadS="loadS"></completePlan>
|
|
|
|
|
<completePlan :newTable="newTable" :loadS="loadS"></completePlan>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="width: 15px"></div>
|
|
|
|
|
<div class="boxAllStyle">
|
|
|
|
|
<finishRate ref="finishRate" :loadS="loadS"></finishRate>
|
|
|
|
|
<finishRate :newTable="newTable" :loadS="loadS"></finishRate>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="bgContent" v-if="activeIndex == 0">
|
|
|
|
@ -128,7 +128,11 @@
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="完成率" prop="pt" header-align="center">
|
|
|
|
|
<template slot-scope="scope"> {{ scope.row.pt == 'NaN'?'0':(scope.row.pt * 100).toFixed(2) }}% </template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{
|
|
|
|
|
scope.row.pt == "NaN" ? "0" : (scope.row.pt * 100).toFixed(2)
|
|
|
|
|
}}%
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</div>
|
|
|
|
@ -179,6 +183,7 @@ export default {
|
|
|
|
|
beforeParams: {},
|
|
|
|
|
//传递的等待效果
|
|
|
|
|
loadS: false,
|
|
|
|
|
newTable:[],
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
@ -195,42 +200,27 @@ export default {
|
|
|
|
|
methods: {
|
|
|
|
|
searchList() {
|
|
|
|
|
this.beforeParams = { ...this.beforeParams, ...this.ruleForm };
|
|
|
|
|
this.handoff();
|
|
|
|
|
this.getHomeList()
|
|
|
|
|
},
|
|
|
|
|
getHomeList() {
|
|
|
|
|
this.load1 = true;
|
|
|
|
|
this.loadS = true;
|
|
|
|
|
indexRegionalism(this.beforeParams).then((res) => {
|
|
|
|
|
this.tableData = res.rows;
|
|
|
|
|
res.rows.forEach((value1,index1)=>{
|
|
|
|
|
if(value1.institutionName == '苏州市'){
|
|
|
|
|
let arr1 = this.tableData.slice(index1,index1+1)
|
|
|
|
|
this.tableData.splice(index1,1)
|
|
|
|
|
this.tableData.unshift(arr1[0])
|
|
|
|
|
this.newTable = res.rows
|
|
|
|
|
res.rows.forEach((value1, index1) => {
|
|
|
|
|
if (value1.institutionName == "苏州市") {
|
|
|
|
|
let arr1 = this.tableData.slice(index1, index1 + 1);
|
|
|
|
|
this.tableData.splice(index1, 1);
|
|
|
|
|
this.tableData.unshift(arr1[0]);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
this.load1 = false;
|
|
|
|
|
this.loadS = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
handoff() {
|
|
|
|
|
if (this.activeIndex == 0) {
|
|
|
|
|
this.getHomeList();
|
|
|
|
|
} else {
|
|
|
|
|
this.loadS = true;
|
|
|
|
|
indexRegionalism(this.beforeParams).then((res) => {
|
|
|
|
|
this.$refs.executionPlan.getData(res.rows);
|
|
|
|
|
this.$refs.completePlan.getData(res.rows);
|
|
|
|
|
this.$refs.finishRate.getData(res.rows);
|
|
|
|
|
this.loadS = false;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
active(e) {
|
|
|
|
|
this.activeIndex = e;
|
|
|
|
|
this.ruleForm = {
|
|
|
|
|
plannedYear: "",
|
|
|
|
|
};
|
|
|
|
|
this.beforeParams = {};
|
|
|
|
|
this.handoff();
|
|
|
|
|
},
|
|
|
|
|
tableRowClassName({ row, rowIndex }) {
|
|
|
|
|
if (rowIndex % 2 !== 0) {
|
|
|
|
|