|
|
|
@ -27,12 +27,8 @@
|
|
|
|
|
size="small"
|
|
|
|
|
v-model="form.district"
|
|
|
|
|
:options="compartment"
|
|
|
|
|
:show-all-levels="false"
|
|
|
|
|
:props="{
|
|
|
|
|
value: 'subdistrict', //匹配响应数据中的id
|
|
|
|
|
label: 'institutionName', //匹配响应数据中的name
|
|
|
|
|
children: 'children',
|
|
|
|
|
}"
|
|
|
|
|
:disabled="isNoneDivision"
|
|
|
|
|
:props="props"
|
|
|
|
|
></el-cascader>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="my-checkbox">
|
|
|
|
@ -47,7 +43,11 @@
|
|
|
|
|
<div class="export" @click="searchList" style="margin-right: 10px">
|
|
|
|
|
<span>搜索</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="export" @click="chongzhiList" style="margin-right: 10px;background-color: #FDAB5B;">
|
|
|
|
|
<div
|
|
|
|
|
class="export"
|
|
|
|
|
@click="chongzhiList"
|
|
|
|
|
style="margin-right: 10px; background-color: #fdab5b"
|
|
|
|
|
>
|
|
|
|
|
<span>重置</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="export" @click="exportFile">
|
|
|
|
@ -99,7 +99,11 @@
|
|
|
|
|
<el-table-column label="操作" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div class="tabs-btns">
|
|
|
|
|
<div class="look" @click="look(scope.row)">
|
|
|
|
|
<div
|
|
|
|
|
class="look"
|
|
|
|
|
v-if="scope.row.checkStatus == 1"
|
|
|
|
|
@click="look(scope.row)"
|
|
|
|
|
>
|
|
|
|
|
<span>查看执法详情</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -159,6 +163,7 @@ import {
|
|
|
|
|
enforcingDetail,
|
|
|
|
|
xzTree,
|
|
|
|
|
} from "@/api/yingji/keyEnterprise.js";
|
|
|
|
|
import { mapState } from "vuex";
|
|
|
|
|
export default {
|
|
|
|
|
components: { myPagination },
|
|
|
|
|
name: "Article",
|
|
|
|
@ -168,6 +173,7 @@ export default {
|
|
|
|
|
loads: true,
|
|
|
|
|
total: 0,
|
|
|
|
|
options: [],
|
|
|
|
|
props: {},
|
|
|
|
|
//这个是点击搜索之前的值
|
|
|
|
|
form: {
|
|
|
|
|
district: [],
|
|
|
|
@ -303,20 +309,29 @@ export default {
|
|
|
|
|
addShow: false,
|
|
|
|
|
detailLoad: true,
|
|
|
|
|
compartment: [],
|
|
|
|
|
//区划的禁用
|
|
|
|
|
isNoneDivision: false,
|
|
|
|
|
newQHList: [],
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.xzList();
|
|
|
|
|
// console.log(this.dept);
|
|
|
|
|
console.log(this.form.district);
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
...mapState({
|
|
|
|
|
//根据存储的dept.parentId判断是哪个等级
|
|
|
|
|
dept: (state) => state.user.dept,
|
|
|
|
|
}),
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
//判断等级然后去设置
|
|
|
|
|
|
|
|
|
|
reset() {
|
|
|
|
|
this.form = {
|
|
|
|
|
district: [],
|
|
|
|
|
plannedYear: "",
|
|
|
|
|
//检测状态
|
|
|
|
|
checkStatus: "",
|
|
|
|
|
};
|
|
|
|
|
this.form.plannedYear = "";
|
|
|
|
|
this.form.checkStatus = "";
|
|
|
|
|
this.searchBefore = {
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
pageNum: 1,
|
|
|
|
@ -333,10 +348,43 @@ export default {
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.compartment = res.data;
|
|
|
|
|
this.filterComparment(this.compartment);
|
|
|
|
|
//市级
|
|
|
|
|
if (this.dept.parentId == 0) {
|
|
|
|
|
this.isNoneDivision = false;
|
|
|
|
|
}
|
|
|
|
|
//区级
|
|
|
|
|
if (this.dept.parentId == 100) {
|
|
|
|
|
this.props = {
|
|
|
|
|
checkStrictly: true,
|
|
|
|
|
value: "county", //匹配响应数据中的id
|
|
|
|
|
label: "institutionName", //匹配响应数据中的name
|
|
|
|
|
children: "children",
|
|
|
|
|
};
|
|
|
|
|
let arr1 = this.newQHList.filter((value) => {
|
|
|
|
|
return value.institutionName == this.dept.deptName;
|
|
|
|
|
});
|
|
|
|
|
this.form.district.push(arr1[0].county);
|
|
|
|
|
this.isNoneDivision = true;
|
|
|
|
|
}
|
|
|
|
|
//镇级
|
|
|
|
|
if (this.dept.parentId == 101) {
|
|
|
|
|
this.props = {
|
|
|
|
|
checkStrictly: true,
|
|
|
|
|
value: "subdistrict", //匹配响应数据中的id
|
|
|
|
|
label: "institutionName", //匹配响应数据中的name
|
|
|
|
|
children: "children",
|
|
|
|
|
};
|
|
|
|
|
let arr1 = this.newQHList.filter((value) => {
|
|
|
|
|
return value.institutionName == this.dept.deptName;
|
|
|
|
|
});
|
|
|
|
|
this.form.district.push(null, arr1[0].subdistrict);
|
|
|
|
|
this.isNoneDivision = true;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
filterComparment(e) {
|
|
|
|
|
e.forEach((value, index) => {
|
|
|
|
|
this.newQHList.push(value);
|
|
|
|
|
if (value.children.length >= 1) {
|
|
|
|
|
this.filterComparment(value.children);
|
|
|
|
|
} else {
|
|
|
|
@ -368,6 +416,7 @@ export default {
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
searchList() {
|
|
|
|
|
console.log(this.form.district);
|
|
|
|
|
this.form.district = this.form.district[this.form.district.length - 1];
|
|
|
|
|
this.searchBefore = { ...this.searchBefore, ...this.form };
|
|
|
|
|
this.getList();
|
|
|
|
|