lijinlong^2
杜函宇 1 year ago
parent 11b77540c5
commit ddbe3e20e5

@ -20,14 +20,12 @@ export default {
type: Boolean, type: Boolean,
default: true, default: true,
}, },
},
mounted() {
}, },
mounted() {},
methods: { methods: {
getData(e) { getData(e) {
this.arr1= [] this.arr1 = [];
this.arr2= [] this.arr2 = [];
e.forEach((value) => { e.forEach((value) => {
this.arr1.push(value.institutionName); this.arr1.push(value.institutionName);
this.arr2.push(value.checkEnterpriseCount); this.arr2.push(value.checkEnterpriseCount);

@ -24,8 +24,13 @@ export default {
this.arr1 = []; this.arr1 = [];
this.arr2 = []; this.arr2 = [];
e.forEach((value) => { e.forEach((value) => {
if (value.institutionName == "苏州市") {
this.arr1.unshift(value.institutionName);
this.arr2.unshift(value.plannedEnterpriseCount);
} else {
this.arr1.push(value.institutionName); this.arr1.push(value.institutionName);
this.arr2.push(value.plannedEnterpriseCount); this.arr2.push(value.plannedEnterpriseCount);
}
}); });
this.init(); this.init();
}, },

@ -15,9 +15,7 @@ export default {
numTotal: 0, numTotal: 0,
}; };
}, },
mounted() { mounted() {},
},
props: { props: {
loadS: { loadS: {
type: Boolean, type: Boolean,
@ -26,10 +24,10 @@ export default {
}, },
methods: { methods: {
getData(e) { getData(e) {
this.arr1= [] this.arr1 = [];
this.arr2= [] this.arr2 = [];
e.forEach((value1) => { e.forEach((value1) => {
if (value1.institutionName != "苏州") { if (value1.institutionName != "苏州") {
this.arr1.push({ this.arr1.push({
value: value1.checkEnterpriseCount, value: value1.checkEnterpriseCount,
name: value1.institutionName, name: value1.institutionName,
@ -38,8 +36,8 @@ export default {
} else { } else {
this.arr2.push({ this.arr2.push({
value: value1.plannedEnterpriseCount, value: value1.plannedEnterpriseCount,
name: value1.institutionName, name: value1.institutionName ,
pt: value1.pt=='NaN'?0:value1.pt, pt: value1.pt == "NaN" ? 0 : value1.pt.toFixed(2),
}); });
} }
}); });
@ -141,7 +139,7 @@ export default {
position: "center", position: "center",
formatter: function (params) { formatter: function (params) {
console.log(params); console.log(params);
return `{a|${params.data.pt * 100}%}\n{b|${ return `{a|${Number(params.data.pt) * 100}%}\n{b|${
params.data.name params.data.name
}完成率}`; }完成率}`;
}, },

@ -224,11 +224,6 @@ export default {
label: "检查场所", label: "检查场所",
value: "", value: "",
}, },
{
eng: "examineSituation",
label: "检查情况",
value: "",
},
{ {
eng: "examineSource", eng: "examineSource",
label: "检查来源", label: "检查来源",
@ -285,12 +280,16 @@ export default {
label: "文书类型", label: "文书类型",
value: "", value: "",
}, },
{ {
eng: "writNo", eng: "writNo",
label: "文书文号", label: "文书文号",
value: "", value: "",
}, },
{
eng: "examineSituation",
label: "检查情况",
value: "",
},
], ],
searchBefore: { searchBefore: {
pageSize: 10, pageSize: 10,

@ -4,7 +4,11 @@
<div class="one-line"> <div class="one-line">
<div class="select-input"> <div class="select-input">
<div class="select-span">行政区划:</div> <div class="select-span">行政区划:</div>
<executive @quhua="quhua" @quhuadizhi="quhuadizhi" ref="executive"></executive> <executive
@quhua="quhua"
@quhuadizhi="quhuadizhi"
ref="executive"
></executive>
</div> </div>
<div class="select-input"> <div class="select-input">
<div class="select-span">经济类型:</div> <div class="select-span">经济类型:</div>
@ -192,7 +196,11 @@
</el-table> </el-table>
</div> </div>
<div class="pagination"> <div class="pagination">
<my-pagination :total="total" @pagesChange="pagesChange" ref="mypagination"></my-pagination> <my-pagination
:total="total"
@pagesChange="pagesChange"
ref="mypagination"
></my-pagination>
</div> </div>
<!-- 查看 --> <!-- 查看 -->
<el-dialog <el-dialog
@ -620,7 +628,8 @@ export default {
for (let key in this.details) { for (let key in this.details) {
this.listDes.forEach((value1, index1) => { this.listDes.forEach((value1, index1) => {
if (key == value1.eng) { if (key == value1.eng) {
this.listDes[index1].value = this.details[key] == '无' ? '/' : this.details[key]; this.listDes[index1].value =
this.details[key] == "无" ? "/" : this.details[key];
return; return;
} }
}); });
@ -700,11 +709,14 @@ export default {
value1.value value1.value
); );
} }
if (value1.value == null ) { if (value1.value == null) {
this.listDes[index1].value = '/' this.listDes[index1].value = "/";
} }
if ( value1.value == 'false') { if (value1.value == "false") {
this.listDes[index1].value = '否' this.listDes[index1].value = "否";
}
if (value1.value == "true") {
this.listDes[index1].value = "是";
} }
}); });
}, },

@ -11,7 +11,7 @@
<div class="enforce-the-law-title"> <div class="enforce-the-law-title">
<div class="filtrate-condition"> <div class="filtrate-condition">
<div class="select-input"> <div class="select-input">
<div class="select-span">:</div> <div class="select-span">:</div>
<div> <div>
<el-date-picker <el-date-picker
v-model="queryParms.year" v-model="queryParms.year"

@ -5,9 +5,9 @@
<div class="navText">年份:</div> <div class="navText">年份:</div>
<el-date-picker <el-date-picker
v-model="ruleForm.plannedYear" v-model="ruleForm.plannedYear"
type="month" type="year"
size="mini" size="mini"
value-format="yyyy-MM" value-format="yyyy"
placeholder="请选择年份" placeholder="请选择年份"
> >
</el-date-picker> </el-date-picker>
@ -128,7 +128,7 @@
> >
</el-table-column> </el-table-column>
<el-table-column label="完成率" prop="pt" header-align="center"> <el-table-column label="完成率" prop="pt" header-align="center">
<template slot-scope="scope"> {{ scope.row.pt == 'NaN'?'0':scope.row.pt * 100 }}% </template> <template slot-scope="scope"> {{ scope.row.pt == 'NaN'?'0':(scope.row.pt * 100).toFixed(2) }}% </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
@ -201,6 +201,13 @@ export default {
this.load1 = true; this.load1 = true;
indexRegionalism(this.beforeParams).then((res) => { indexRegionalism(this.beforeParams).then((res) => {
this.tableData = res.rows; 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.load1 = false; this.load1 = false;
}); });
}, },

Loading…
Cancel
Save