f69cea24 by 赵千

空项率统计接口前端页面对接

1 parent 5636d350
......@@ -7,7 +7,7 @@ class data extends filter {
return [
{
label: "行政区划",
prop: "xzqh",
prop: "areaName",
width: '80'
},
{
......@@ -20,12 +20,12 @@ class data extends filter {
children: [
{
label: '空项率',
prop: "xx",
prop: "yt",
},
{
/*{
label: '分值',
prop: "xx",
}
}*/
]
},
{
......@@ -34,26 +34,12 @@ class data extends filter {
children: [
{
label: '空项率',
prop: "xx",
},
{
label: '分值',
prop: "xx",
}
]
},
{
label: '权利设定方式',
prop: "",
children: [
{
label: '空项率',
prop: "xx",
prop: "qlxz",
},
{
/*{
label: '分值',
prop: "xx",
}
}*/
]
},
{
......@@ -62,12 +48,12 @@ class data extends filter {
children: [
{
label: '空项率',
prop: "xx",
prop: "qlsdfs",
},
{
/*{
label: '分值',
prop: "xx",
}
}*/
]
},
{
......@@ -76,12 +62,12 @@ class data extends filter {
children: [
{
label: '空项率',
prop: "xx",
prop: "gyjsydgyqk",
},
{
/*{
label: '分值',
prop: "xx",
}
}*/
]
},
{
......@@ -90,12 +76,12 @@ class data extends filter {
children: [
{
label: '空项率',
prop: "xx",
prop: "dj",
},
{
/*{
label: '分值',
prop: "xx",
}
}*/
]
},
{
......@@ -104,12 +90,12 @@ class data extends filter {
children: [
{
label: '空项率',
prop: "xx",
prop: "rjl",
},
{
/*{
label: '分值',
prop: "xx",
}
}*/
]
},
]
......@@ -124,12 +110,12 @@ class data extends filter {
children: [
{
label: '空项率',
prop: "xx",
prop: "fwgyqk",
},
{
/*{
label: '分值',
prop: "xx",
}
}*/
]
},
{
......@@ -138,12 +124,12 @@ class data extends filter {
children: [
{
label: '空项率',
prop: "xx",
prop: "fwxz",
},
{
/*{
label: '分值',
prop: "xx",
}
}*/
]
},
{
......@@ -152,12 +138,12 @@ class data extends filter {
children: [
{
label: '空项率',
prop: "xx",
prop: "fwjg",
},
{
/*{
label: '分值',
prop: "xx",
}
}*/
]
},
{
......@@ -166,12 +152,12 @@ class data extends filter {
children: [
{
label: '空项率',
prop: "xx",
prop: "jgsj",
},
{
/*{
label: '分值',
prop: "xx",
}
}*/
]
}
]
......@@ -185,13 +171,13 @@ class data extends filter {
prop: "",
children: [
{
prop: 'xxx',
prop: 'dyqx',
label: '空项率',
},
{
prop: 'xxx',
/*{
label: '分值',
}
prop: "xx",
}*/
]
}
]
......@@ -205,13 +191,13 @@ class data extends filter {
prop: "",
children: [
{
prop: 'xxx',
prop: 'zgzqse',
label: '空项率',
},
{
prop: 'xxx',
/*{
label: '分值',
}
prop: "xx",
}*/
]
}
]
......@@ -225,13 +211,13 @@ class data extends filter {
prop: "",
children: [
{
prop: 'xxx',
prop: 'ybzjzjwzl',
label: '空项率',
},
{
prop: 'xxx',
/*{
label: '分值',
}
prop: "xx",
}*/
]
},
{
......@@ -239,13 +225,13 @@ class data extends filter {
prop: "",
children: [
{
prop: 'xxx',
prop: 'ybzjzjwdyfw',
label: '空项率',
},
{
prop: 'xxx',
/*{
label: '分值',
}
prop: "xx",
}*/
]
}
]
......@@ -259,13 +245,13 @@ class data extends filter {
prop: "",
children: [
{
prop: 'xxx',
prop: 'zgezjzjwzl',
label: '空项率',
},
{
prop: 'xxx',
/*{
label: '分值',
}
prop: "xx",
}*/
]
},
{
......@@ -273,13 +259,13 @@ class data extends filter {
prop: "",
children: [
{
prop: 'xxx',
prop: 'zgezjzjwdyfw',
label: '空项率',
},
{
prop: 'xxx',
/*{
label: '分值',
}
prop: "xx",
}*/
]
}
]
......@@ -293,13 +279,13 @@ class data extends filter {
prop: "",
children: [
{
prop: 'xxx',
prop: 'dyzxyy',
label: '空项率',
},
{
prop: 'xxx',
/*{
label: '分值',
}
prop: "xx",
}*/
]
},
{
......@@ -307,13 +293,13 @@ class data extends filter {
prop: "",
children: [
{
prop: 'xxx',
prop: 'zxsj',
label: '空项率',
},
{
prop: 'xxx',
/*{
label: '分值',
}
prop: "xx",
}*/
]
}
]
......@@ -327,13 +313,13 @@ class data extends filter {
prop: "",
children: [
{
prop: 'xxx',
prop: 'ywrzjzl',
label: '空项率',
},
{
prop: 'xxx',
/*{
label: '分值',
}
prop: "xx",
}*/
]
},
{
......@@ -341,13 +327,13 @@ class data extends filter {
prop: "",
children: [
{
prop: 'xxx',
prop: 'ywrzjh',
label: '空项率',
},
{
prop: 'xxx',
/*{
label: '分值',
}
prop: "xx",
}*/
]
},
{
......@@ -355,13 +341,13 @@ class data extends filter {
prop: "",
children: [
{
prop: 'xxx',
prop: 'ghyt',
label: '空项率',
},
{
prop: 'xxx',
/*{
label: '分值',
}
prop: "xx",
}*/
]
},
{
......@@ -369,13 +355,13 @@ class data extends filter {
prop: "",
children: [
{
prop: 'xxx',
prop: 'ygdjfwxz',
label: '空项率',
},
{
prop: 'xxx',
/*{
label: '分值',
}
prop: "xx",
}*/
]
}
]
......@@ -389,13 +375,13 @@ class data extends filter {
prop: "",
children: [
{
prop: 'xxx',
prop: 'jfjg',
label: '空项率',
},
{
prop: 'xxx',
/*{
label: '分值',
}
prop: "xx",
}*/
]
},
{
......@@ -403,13 +389,13 @@ class data extends filter {
prop: "",
children: [
{
prop: 'xxx',
prop: 'jfwj',
label: '空项率',
},
{
prop: 'xxx',
/*{
label: '分值',
}
prop: "xx",
}*/
]
},
{
......@@ -417,13 +403,13 @@ class data extends filter {
prop: "",
children: [
{
prop: 'xxx',
prop: 'jfdjsj',
label: '空项率',
},
{
prop: 'xxx',
/*{
label: '分值',
}
prop: "xx",
}*/
]
},
{
......@@ -431,13 +417,13 @@ class data extends filter {
prop: "",
children: [
{
prop: 'xxx',
prop: 'jfdbr',
label: '空项率',
},
{
prop: 'xxx',
/*{
label: '分值',
}
prop: "xx",
}*/
]
},
{
......@@ -445,13 +431,13 @@ class data extends filter {
prop: "",
children: [
{
prop: 'xxx',
prop: 'jfywh',
label: '空项率',
},
{
prop: 'xxx',
/*{
label: '分值',
}
prop: "xx",
}*/
]
}
]
......
......@@ -25,7 +25,7 @@
<el-form-item>
<btn nativeType="cz" @click="handleResetForm">重置</btn>
<!-- 导出excel -->
<btn nativeType="cx" @click="handleSearch">查询</btn>
<btn nativeType="cx" @click="handleSearchSelf">查询</btn>
<btn nativeType="cx" @click="handlesetExport2Excel(downTitle)">导出</btn>
</el-form-item>
</el-col>
......@@ -54,6 +54,8 @@ import tableMixin from "@/mixins/tableMixin.js";
import downLbTable from '@/components/DownLbTable'
// 获取时间
import { getCurrentDate, setExport2Excel } from "@/utils/tools";
import { nonNullSta } from "@/api/statistics.js";
import {getQlxxDictList} from "@/api/dict";
export default {
name: "jsbwcx",
components: {
......@@ -105,8 +107,8 @@ export default {
{
label: "序号",
type: "index",
width: "50",
index: this.indexMethod,
width: "50"
// index: this.indexMethod,
}
]
.concat(data.columns()),
......@@ -128,7 +130,9 @@ export default {
this.generateFileName()
},
methods: {
handleSearch () { },
handleSearchSelf () {
this.featchDataSelf()
},
// 生成文件名
generateFileName () {
var reg = /(\d{4})\-(\d{2})\-(\d{2})/;
......@@ -138,17 +142,27 @@ export default {
setExport2Excel(val)
},
// 初始化数据
featchData () { },
featchDataSelf () {
if (!this.form.startTime || this.form.startTime === '' || !this.form.endTime || this.form.endTime === '') {
this.$message.warning("请选择一个时间段")
return
}
nonNullSta(this.form.startTime, this.form.endTime).then(res => {
let records = res.result
this.tableData.data = records ? records : []
})
},
// 重置
resetForm () {
this.$refs.ruleForm.resetFields();
this.form.currentPage = 1
this.featchData();
this.featchDataSelf();
},
// 重置
handleResetForm () {
this.form.startTime = getCurrentDate()
this.form.endTime = getCurrentDate('time')
this.featchDataSelf()
}
}
}
......