新的功能

zhangtao
laozt 1 year ago
parent aa5274b4f3
commit 3f488360b0

@ -2,7 +2,7 @@
# @Author: 张涛 # @Author: 张涛
# @Date: 2023-07-18 13:04:50 # @Date: 2023-07-18 13:04:50
# @LastEditors: laozt 2721205210@qq.com # @LastEditors: laozt 2721205210@qq.com
# @LastEditTime: 2024-01-04 09:40:25 # @LastEditTime: 2024-01-09 14:04:56
# @FilePath: \suzhouyingjiPC\.env.development # @FilePath: \suzhouyingjiPC\.env.development
### ###
# 页面标题 # 页面标题

@ -292,9 +292,9 @@ export default {
}, },
/** 查询计划企业列表 */ /** 查询计划企业列表 */
getPlanEnterpriseList() { getPlanEnterpriseList() {
listEnterprise(this.queryPlanEnterpriseParams).then((response) => { listEnterprise(this.queryPlanEnterpriseParams).then((res) => {
this.enterpriseList = response.data; this.enterpriseList = res.rows;
this.enterpriseTotal = response.data.length; this.enterpriseTotal = res.total;
}); });
}, },
/** 查询企业新列表 */ /** 查询企业新列表 */

@ -423,9 +423,9 @@ export default {
}, },
/** 查询计划企业列表 */ /** 查询计划企业列表 */
getPlanEnterpriseList() { getPlanEnterpriseList() {
listEnterprise(this.queryPlanEnterpriseParams).then((response) => { listEnterprise(this.queryPlanEnterpriseParams).then((res) => {
this.enterpriseList = response.data; this.enterpriseList = res.rows;
this.enterpriseTotal = response.data.length; this.enterpriseTotal = res.total;
}); });
}, },
/** 查询企业新列表 */ /** 查询企业新列表 */
@ -505,6 +505,9 @@ export default {
} }
this.openNew = true; this.openNew = true;
this.titleNew = "企业补录"; this.titleNew = "企业补录";
this.$nextTick(() => {
this.$refs.areaCascader.onClear();
});
}, },
// //
resetNew() { resetNew() {

@ -227,9 +227,9 @@ export default {
/** 查询计划企业列表 */ /** 查询计划企业列表 */
getList() { getList() {
this.loading = true; this.loading = true;
listEnterprise(this.queryParams).then((response) => { listEnterprise(this.queryParams).then((res) => {
this.enterpriseList = response.data; this.enterpriseList = res.rows;
this.total = response.data.length; this.total = res.total;
this.loading = false; this.loading = false;
}); });
}, },

@ -157,6 +157,7 @@
<el-table-column label="执法地区" align="center" prop="lawAreas" /> <el-table-column label="执法地区" align="center" prop="lawAreas" />
<el-table-column label="执法级别" align="center" prop="lawLevel" /> <el-table-column label="执法级别" align="center" prop="lawLevel" />
<el-table-column label="执法层级" align="center" prop="lawHierarchy" /> <el-table-column label="执法层级" align="center" prop="lawHierarchy" />
<el-table-column label="安全风险等级" align="center" prop="riskLevel" />
<el-table-column label="状态" align="center" prop="status"> <el-table-column label="状态" align="center" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
<span style="color: #28b384" v-if="scope.row.status == 1" <span style="color: #28b384" v-if="scope.row.status == 1"
@ -386,10 +387,9 @@ export default {
/** 查询计划企业列表 */ /** 查询计划企业列表 */
getList() { getList() {
this.loading = true; this.loading = true;
listEnterprise(this.queryParams).then((response) => { listEnterprise(this.queryParams).then((res) => {
this.enterpriseList = response.data; this.enterpriseList = res.rows;
// console.log(this.enterpriseList); this.total = res.total;
this.total = response.data.length;
this.loading = false; this.loading = false;
}); });
}, },

Loading…
Cancel
Save