执法结果页面--新增安全风险等级搜索条件⌈ 支持多选 ⌋

Lvtianfang
吕天方 2 months ago
parent 9fd0c222d2
commit af2c309891

@ -3,8 +3,8 @@
* @version: * @version:
* @Author: JC9527 * @Author: JC9527
* @Date: 2023-09-04 10:20:06 * @Date: 2023-09-04 10:20:06
* @LastEditors: laozt 2721205210@qq.com * @LastEditors: JC9527
* @LastEditTime: 2023-12-19 10:09:26 * @LastEditTime: 2024-11-27 09:14:33
--> -->
<template> <template>
<div class="container-main" ref="main"> <div class="container-main" ref="main">
@ -58,6 +58,23 @@
ref="executive" ref="executive"
></executive> ></executive>
</el-form-item> </el-form-item>
<el-form-item label="安全风险等级" prop="">
<el-select
v-model="riskLevel"
multiple
collapse-tags
style="margin-left: 20px"
placeholder="请选择"
@change="multipleChangeTwo"
>
<el-option
v-for="item in optionsTwo"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
</el-form> </el-form>
</div> </div>
</div> </div>
@ -306,6 +323,21 @@ export default {
label: "12月", label: "12月",
}, },
], ],
optionsTwo: [
{
value: "A",
label: "A",
},{
value: "B",
label: "B",
},{
value: "C",
label: "C",
},{
value: "D",
label: "D",
},
],
value1: [], value1: [],
value2: [], value2: [],
tableData: [], tableData: [],
@ -316,12 +348,14 @@ export default {
district: "", district: "",
plannedYear: "", plannedYear: "",
plannedMonth: "", plannedMonth: "",
riskLevel:"",
// //
checkStatus: "", checkStatus: "",
enterpriseName: "", enterpriseName: "",
status: 1, status: 1,
}, },
plannedMonth: "", plannedMonth: "",
riskLevel:"",
checkList: [""], checkList: [""],
checkListTwo: [], checkListTwo: [],
listDes: [ listDes: [
@ -456,10 +490,10 @@ export default {
let height1 = document.getElementsByTagName("header")[0].clientHeight; let height1 = document.getElementsByTagName("header")[0].clientHeight;
let height2 = this.$refs.searchBox.offsetHeight; let height2 = this.$refs.searchBox.offsetHeight;
this.tableHeight = screenHeight - (height1 + height2) - 230; this.tableHeight = screenHeight - (height1 + height2) - 230;
console.log(height1); // console.log(height1);
console.log(height2); // console.log(height2);
console.log(screenHeight); // console.log(screenHeight);
console.log(this.tableHeight); // console.log(this.tableHeight);
// let screen = window.screen; // let screen = window.screen;
// let screenWidth = window.screen.width; // let screenWidth = window.screen.width;
@ -479,6 +513,10 @@ export default {
this.searchBefore = { ...this.searchBefore, ...this.form }; this.searchBefore = { ...this.searchBefore, ...this.form };
// this.getList(); // this.getList();
}, },
multipleChangeTwo(e) {
this.form.riskLevel = e.join(",");
this.searchBefore = { ...this.searchBefore, ...this.form };
},
filterTable(a, b) { filterTable(a, b) {
if (!b) return; if (!b) return;
return this.selectDictLabel(a, b); return this.selectDictLabel(a, b);
@ -516,10 +554,12 @@ export default {
pageSize: 10, pageSize: 10,
pageNum: 1, pageNum: 1,
plannedMonth: "", plannedMonth: "",
riskLevel:"",
status: 1, status: 1,
}; };
this.plannedMonth = ""; this.plannedMonth = "";
this.riskLevel = "";
this.checkList = [""]; this.checkList = [""];
this.form.plannedYear = this.$moment(new Date()).format("yyyy"); this.form.plannedYear = this.$moment(new Date()).format("yyyy");
this.searchBefore = { ...this.searchBefore, ...this.form }; this.searchBefore = { ...this.searchBefore, ...this.form };
@ -586,6 +626,7 @@ export default {
pageNum: 1, pageNum: 1,
}; };
this.searchBefore.plannedMonth = this.plannedMonth; this.searchBefore.plannedMonth = this.plannedMonth;
this.searchBefore.riskLevel = this.riskLevel;
this.searchBefore = { ...this.searchBefore, ...this.form }; this.searchBefore = { ...this.searchBefore, ...this.form };
this.getList(); this.getList();
}, },

Loading…
Cancel
Save