修复问题

zhangtao
laozt 1 year ago
parent 55d918580c
commit ac46c36a9a

@ -38,6 +38,34 @@
placeholder="请输入统一信用代码" placeholder="请输入统一信用代码"
clearable clearable
/> />
</el-form-item>
<el-form-item label="安全风险等级" prop="riskLevel">
<el-select
v-model="queryParams.riskLevel"
placeholder="请输入安全风险等级"
>
<el-option
v-for="item in dict.type.dict_risk_level"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="标准化等级" prop="standLevel">
<el-select
v-model="queryParams.standLevel"
placeholder="请输入标准化等级"
>
<el-option
v-for="item in dict.type.dict_stand_level"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
@ -54,7 +82,7 @@
</el-form> </el-form>
</div> </div>
<div class="tables" v-loading="loading"> <div class="tables" v-loading="loading">
<el-table v-loading="loading" :data="newList" height="400"> <el-table v-loading="loading" :data="newList" height="380">
<el-table-column <el-table-column
label="企业名称" label="企业名称"
align="center" align="center"
@ -168,6 +196,8 @@ export default {
"is_point", "is_point",
"entpr_color", "entpr_color",
"major_hazard_level", "major_hazard_level",
"dict_risk_level",
"dict_stand_level",
], ],
components: { firmDialog, executive }, components: { firmDialog, executive },
data() { data() {
@ -205,6 +235,7 @@ export default {
updateId: null, updateId: null,
userId: null, userId: null,
deptId: null, deptId: null,
isPoint: 1,
}, },
// //
form: {}, form: {},
@ -420,7 +451,7 @@ export default {
} }
} }
.content { .content {
// padding: 15px 10px; padding: 15px 10px;
.module { .module {
padding-bottom: 15px; padding-bottom: 15px;
display: flex; display: flex;
@ -470,8 +501,8 @@ export default {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
flex-wrap: wrap; flex-wrap: wrap;
// padding-top: 10px; padding-top: 10px;
// padding-bottom: 10px; padding-bottom: 10px;
.btn-search { .btn-search {
background: #2378ec; background: #2378ec;
color: #ffffff; color: #ffffff;

@ -39,6 +39,34 @@
clearable clearable
/> />
</el-form-item> </el-form-item>
<el-form-item label="安全风险等级" prop="riskLevel">
<el-select
v-model="queryParams.riskLevel"
placeholder="请输入安全风险等级"
>
<el-option
v-for="item in dict.type.dict_risk_level"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="标准化等级" prop="standLevel">
<el-select
v-model="queryParams.standLevel"
placeholder="请输入标准化等级"
>
<el-option
v-for="item in dict.type.dict_stand_level"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
class="btn-search" class="btn-search"
@ -168,6 +196,8 @@ export default {
"is_point", "is_point",
"entpr_color", "entpr_color",
"major_hazard_level", "major_hazard_level",
"dict_risk_level",
"dict_stand_level",
], ],
components: { firmDialog, executive }, components: { firmDialog, executive },
data() { data() {
@ -205,6 +235,7 @@ export default {
updateId: null, updateId: null,
userId: null, userId: null,
deptId: null, deptId: null,
isPoint: 2,
}, },
// //
form: {}, form: {},

@ -56,11 +56,11 @@
<el-form-item label="执法层级" prop="lawHierarchy"> <el-form-item label="执法层级" prop="lawHierarchy">
<el-select <el-select
v-model="queryParams.lawHierarchy" v-model="queryParams.lawHierarchy"
placeholder="请选择执法层级"
filterable filterable
placeholder="请选择"
> >
<el-option <el-option
v-for="item in lawHierarchys" v-for="item in dict.type.dict_law_hierarchy"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
@ -199,6 +199,7 @@ import { mapState } from "vuex";
export default { export default {
components: { AddDialog, InfoDialog, executive, EditDialog }, components: { AddDialog, InfoDialog, executive, EditDialog },
dicts: ["dict_law_hierarchy"],
data() { data() {
return { return {
lawHierarchys: [ lawHierarchys: [
@ -374,6 +375,7 @@ export default {
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
this.resetForm("queryForm"); this.resetForm("queryForm");
this.plannedMonth = "";
this.$refs.executive.onClear(); this.$refs.executive.onClear();
this.handleQuery(); this.handleQuery();
}, },
@ -467,6 +469,7 @@ export default {
if (userInfo.lawLevel == "县级" || userInfo.lawLevel == "镇级") { if (userInfo.lawLevel == "县级" || userInfo.lawLevel == "镇级") {
this.queryParams.district = userInfo.permissionCode; this.queryParams.district = userInfo.permissionCode;
} }
this.queryParams.plannedYear = this.$moment(new Date()).format("yyyy");
// //
this.getList(); this.getList();
}, },

Loading…
Cancel
Save