Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zh-baseversion-project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王浩
zh-baseversion-project
Commits
74192512
Commit
74192512
authored
Jul 18, 2024
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 重要风险点管控-优化,主要优化项有:搜索条件加上 上传状态 分不同角色搜索;导出时分不同角色导出
2 老旧管网-第三方施工 模块本地测试,测试导出时有问题就是处理。
parent
4a44d15b
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
274 additions
and
93 deletions
+274
-93
TRiskDevMajInforController.java
...ehong/web/controller/risk/TRiskDevMajInforController.java
+12
-1
TConGasProInc.java
...src/main/java/com/zehong/system/domain/TConGasProInc.java
+5
-4
TConGasProInfor.java
...c/main/java/com/zehong/system/domain/TConGasProInfor.java
+5
-4
TPipeOldPlanProcess.java
...in/java/com/zehong/system/domain/TPipeOldPlanProcess.java
+1
-1
TRiskDevMajInfor.java
.../main/java/com/zehong/system/domain/TRiskDevMajInfor.java
+3
-1
TRiskDevMajInforMapper.java
...java/com/zehong/system/mapper/TRiskDevMajInforMapper.java
+8
-0
ITRiskDevMajInforService.java
...a/com/zehong/system/service/ITRiskDevMajInforService.java
+8
-0
TRiskDevMajInforServiceImpl.java
...hong/system/service/impl/TRiskDevMajInforServiceImpl.java
+14
-0
TConGasProIncMapper.xml
.../src/main/resources/mapper/system/TConGasProIncMapper.xml
+2
-0
TConGasProInforMapper.xml
...rc/main/resources/mapper/system/TConGasProInforMapper.xml
+1
-0
TRiskDevMajInforMapper.xml
...c/main/resources/mapper/system/TRiskDevMajInforMapper.xml
+12
-4
info.js
zh-baseversion-web/src/api/risk/info.js
+8
-0
DetailInfo.vue
...src/views/oldpipesystem/process/components/DetailInfo.vue
+2
-16
index.vue
zh-baseversion-web/src/views/oldpipesystem/process/index.vue
+10
-0
DetailInfo.vue
zh-baseversion-web/src/views/risk/components/DetailInfo.vue
+34
-40
index.vue
zh-baseversion-web/src/views/risk/index.vue
+128
-21
index.vue
zh-baseversion-web/src/views/thirdbuild/accident/index.vue
+11
-1
index.vue
zh-baseversion-web/src/views/thirdbuild/project/index.vue
+10
-0
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/risk/TRiskDevMajInforController.java
View file @
74192512
...
@@ -89,7 +89,7 @@ public class TRiskDevMajInforController extends BaseController
...
@@ -89,7 +89,7 @@ public class TRiskDevMajInforController extends BaseController
}
}
/**
/**
* 上传重要风险点档案
*
政府端
上传重要风险点档案
* @param fRiskDevMajInforId 重要风险点档案id
* @param fRiskDevMajInforId 重要风险点档案id
* @return
* @return
*/
*/
...
@@ -102,4 +102,15 @@ public class TRiskDevMajInforController extends BaseController
...
@@ -102,4 +102,15 @@ public class TRiskDevMajInforController extends BaseController
return
AjaxResult
.
error
(
"上传重要风险点档案接口异常"
);
return
AjaxResult
.
error
(
"上传重要风险点档案接口异常"
);
}
}
}
}
/**
* 企业端 上传计划和进度
* @param fRiskDevMajInforId 计划id
* @return
*/
@GetMapping
(
"/entReportRiskInfo"
)
public
AjaxResult
entReportRiskInfo
(
Long
fRiskDevMajInforId
)
{
return
toAjax
(
tRiskDevMajInforService
.
entReportRiskInfo
(
fRiskDevMajInforId
));
}
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TConGasProInc.java
View file @
74192512
...
@@ -55,16 +55,17 @@ public class TConGasProInc extends BaseEntity
...
@@ -55,16 +55,17 @@ public class TConGasProInc extends BaseEntity
/** 最后修改时间 yyyy-MM-dd hh:mm:ss */
/** 最后修改时间 yyyy-MM-dd hh:mm:ss */
private
String
fUpdateTime
;
private
String
fUpdateTime
;
/**
* 企业端上传状态 0-未上传,1-已上传*/
@Excel
(
name
=
"上传状态"
,
readConverterExp
=
"1=已上传,0=未上传"
)
private
String
entUploadState
;
/**
/**
* 企业端上传时间 */
* 企业端上传时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"上传时间"
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"上传时间"
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
entUploadTime
;
private
Date
entUploadTime
;
/**
* 企业端上传状态 0-未上传,1-已上传*/
@Excel
(
name
=
"上传状态"
,
readConverterExp
=
"1=已上传,0=未上传"
)
private
String
entUploadState
;
/**
/**
* 政府端上传时间 */
* 政府端上传时间 */
...
...
zh-baseversion-system/src/main/java/com/zehong/system/domain/TConGasProInfor.java
View file @
74192512
...
@@ -191,16 +191,17 @@ public class TConGasProInfor extends BaseEntity
...
@@ -191,16 +191,17 @@ public class TConGasProInfor extends BaseEntity
/** 最后修改时间 yyyy-MM-dd hh:mm:ss */
/** 最后修改时间 yyyy-MM-dd hh:mm:ss */
private
String
fUpdateTime
;
private
String
fUpdateTime
;
/**
* 企业端上传状态 0-未上传,1-已上传*/
@Excel
(
name
=
"上传状态"
,
readConverterExp
=
"1=已上传,0=未上传"
)
private
String
entUploadState
;
/**
/**
* 企业端上传时间 */
* 企业端上传时间 */
@Excel
(
name
=
"上传时间"
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"上传时间"
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
entUploadTime
;
private
Date
entUploadTime
;
/**
* 企业端上传状态 0-未上传,1-已上传*/
@Excel
(
name
=
"上传状态"
,
readConverterExp
=
"1=已上传,0=未上传"
)
private
String
entUploadState
;
/**
/**
* 政府端上传时间 */
* 政府端上传时间 */
...
...
zh-baseversion-system/src/main/java/com/zehong/system/domain/TPipeOldPlanProcess.java
View file @
74192512
...
@@ -116,7 +116,7 @@ public class TPipeOldPlanProcess extends BaseEntity
...
@@ -116,7 +116,7 @@ public class TPipeOldPlanProcess extends BaseEntity
private
String
fUploadType
;
private
String
fUploadType
;
/** 上传时间,yyyy-MM-dd hh:mm:ss */
/** 上传时间,yyyy-MM-dd hh:mm:ss */
@Excel
(
name
=
"上传时间"
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"上传时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
String
fUploadTime
;
private
String
fUploadTime
;
...
...
zh-baseversion-system/src/main/java/com/zehong/system/domain/TRiskDevMajInfor.java
View file @
74192512
package
com
.
zehong
.
system
.
domain
;
package
com
.
zehong
.
system
.
domain
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.annotation.Excel
;
...
@@ -71,7 +72,6 @@ public class TRiskDevMajInfor extends BaseEntity
...
@@ -71,7 +72,6 @@ public class TRiskDevMajInfor extends BaseEntity
private
String
fRemark
;
private
String
fRemark
;
/** 最后修改时间 yyyy-MM-dd hh:mm:ss */
/** 最后修改时间 yyyy-MM-dd hh:mm:ss */
@Excel
(
name
=
"最后修改时间"
)
private
String
fUpdateTime
;
private
String
fUpdateTime
;
/**
/**
...
@@ -84,6 +84,7 @@ public class TRiskDevMajInfor extends BaseEntity
...
@@ -84,6 +84,7 @@ public class TRiskDevMajInfor extends BaseEntity
* 企业端上传时间 Excel 企业和政府通用
* 企业端上传时间 Excel 企业和政府通用
*/
*/
@Excel
(
name
=
"上传时间"
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"上传时间"
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
entUploadTime
;
private
Date
entUploadTime
;
/**
/**
...
@@ -94,6 +95,7 @@ public class TRiskDevMajInfor extends BaseEntity
...
@@ -94,6 +95,7 @@ public class TRiskDevMajInfor extends BaseEntity
/**
/**
* 政府端上传 时间
* 政府端上传 时间
*/
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
govUploadTime
;
private
Date
govUploadTime
;
public
void
updateFields
()
{
public
void
updateFields
()
{
...
...
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TRiskDevMajInforMapper.java
View file @
74192512
package
com
.
zehong
.
system
.
mapper
;
package
com
.
zehong
.
system
.
mapper
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
com.zehong.system.domain.TRiskDevMajInfor
;
import
com.zehong.system.domain.TRiskDevMajInfor
;
import
org.apache.ibatis.annotations.Param
;
/**
/**
* 重要风险点管控Mapper接口
* 重要风险点管控Mapper接口
...
@@ -19,6 +21,12 @@ public interface TRiskDevMajInforMapper
...
@@ -19,6 +21,12 @@ public interface TRiskDevMajInforMapper
*/
*/
public
TRiskDevMajInfor
selectTRiskDevMajInforById
(
Long
fRiskDevMajInforId
);
public
TRiskDevMajInfor
selectTRiskDevMajInforById
(
Long
fRiskDevMajInforId
);
/**
* 企业端上传数据
* @return
*/
public
int
entReportRiskDevMajInfor
(
@Param
(
"state"
)
String
state
,
@Param
(
"entUploadTime"
)
Date
entUploadTime
,
@Param
(
"fRiskDevMajInforId"
)
Long
fRiskDevMajInforId
);
/**
/**
* 查询重要风险点管控列表
* 查询重要风险点管控列表
*
*
...
...
zh-baseversion-system/src/main/java/com/zehong/system/service/ITRiskDevMajInforService.java
View file @
74192512
...
@@ -72,4 +72,12 @@ public interface ITRiskDevMajInforService
...
@@ -72,4 +72,12 @@ public interface ITRiskDevMajInforService
* @return
* @return
*/
*/
int
reportRiskInfo
(
Long
fRiskDevMajInforId
)
throws
Exception
;
int
reportRiskInfo
(
Long
fRiskDevMajInforId
)
throws
Exception
;
/**
* 企业端-上传重要风险点档案
* @param fRiskDevMajInforId 重要风险点档案id
* @return
*/
int
entReportRiskInfo
(
Long
fRiskDevMajInforId
)
;
}
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TRiskDevMajInforServiceImpl.java
View file @
74192512
...
@@ -168,6 +168,20 @@ public class TRiskDevMajInforServiceImpl implements ITRiskDevMajInforService
...
@@ -168,6 +168,20 @@ public class TRiskDevMajInforServiceImpl implements ITRiskDevMajInforService
JSONObject
reportResult
=
governmentDataUtil
.
setInfo
(
"risk/device/major/information"
,
"WRITE"
,
data
);
JSONObject
reportResult
=
governmentDataUtil
.
setInfo
(
"risk/device/major/information"
,
"WRITE"
,
data
);
log
.
info
(
"上传重要风险点档案结果==================="
+
reportResult
.
toJSONString
());
log
.
info
(
"上传重要风险点档案结果==================="
+
reportResult
.
toJSONString
());
if
(!
"0"
.
equals
(
reportResult
.
getString
(
"resultCode"
)))
throw
new
CustomException
(
"上传重要风险点档案接口失败"
);
if
(!
"0"
.
equals
(
reportResult
.
getString
(
"resultCode"
)))
throw
new
CustomException
(
"上传重要风险点档案接口失败"
);
riskDevMajInfo
.
setGovUploadState
(
"1"
);
riskDevMajInfo
.
setGovUploadTime
(
new
Date
());
tRiskDevMajInforMapper
.
updateTRiskDevMajInfor
(
riskDevMajInfo
);
return
1
;
return
1
;
}
}
/**
* 企业端 上传重要风险点档案
* @param fRiskDevMajInforId 重要风险点档案id
* @return 1
*/
@Override
public
int
entReportRiskInfo
(
Long
fRiskDevMajInforId
)
{
tRiskDevMajInforMapper
.
entReportRiskDevMajInfor
(
"1"
,
new
Date
(),
fRiskDevMajInforId
);
return
1
;
}
}
}
zh-baseversion-system/src/main/resources/mapper/system/TConGasProIncMapper.xml
View file @
74192512
...
@@ -56,6 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -56,6 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"fUpdateTime != null and fUpdateTime != ''"
>
and inc.f_update_time = #{fUpdateTime}
</if>
<if
test=
"fUpdateTime != null and fUpdateTime != ''"
>
and inc.f_update_time = #{fUpdateTime}
</if>
<if
test=
"fCompanyInfoId != null and fCompanyInfoId != ''"
>
and inc.f_company_info_id = #{fCompanyInfoId}
</if>
<if
test=
"fCompanyInfoId != null and fCompanyInfoId != ''"
>
and inc.f_company_info_id = #{fCompanyInfoId}
</if>
<if
test=
"entUploadState != null and entUploadState != ''"
>
and inc.f_ent_upload_state = #{entUploadState}
</if>
<if
test=
"entUploadState != null and entUploadState != ''"
>
and inc.f_ent_upload_state = #{entUploadState}
</if>
<if
test=
"govUploadState != null and govUploadState != ''"
>
and inc.f_gov_upload_state = #{govUploadState}
</if>
</where>
</where>
order by f_update_time desc
order by f_update_time desc
</select>
</select>
...
@@ -72,6 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -72,6 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"fUpdateTime != null and fUpdateTime != ''"
>
and inc.f_update_time = #{fUpdateTime}
</if>
<if
test=
"fUpdateTime != null and fUpdateTime != ''"
>
and inc.f_update_time = #{fUpdateTime}
</if>
<if
test=
"fCompanyInfoId != null and fCompanyInfoId != ''"
>
and inc.f_company_info_id = #{fCompanyInfoId}
</if>
<if
test=
"fCompanyInfoId != null and fCompanyInfoId != ''"
>
and inc.f_company_info_id = #{fCompanyInfoId}
</if>
<if
test=
"entUploadState != null and entUploadState != ''"
>
and inc.f_ent_upload_state = #{entUploadState}
</if>
<if
test=
"entUploadState != null and entUploadState != ''"
>
and inc.f_ent_upload_state = #{entUploadState}
</if>
<if
test=
"govUploadState != null and govUploadState != ''"
>
and inc.f_gov_upload_state = #{govUploadState}
</if>
</where>
</where>
order by f_update_time desc
order by f_update_time desc
</select>
</select>
...
...
zh-baseversion-system/src/main/resources/mapper/system/TConGasProInforMapper.xml
View file @
74192512
...
@@ -146,6 +146,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -146,6 +146,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"fPipePress != null and fPipePress != ''"
>
and f_pipe_press = #{fPipePress}
</if>
<if
test=
"fPipePress != null and fPipePress != ''"
>
and f_pipe_press = #{fPipePress}
</if>
<if
test=
"entUploadState != null and entUploadState != ''"
>
and f_ent_upload_state = #{entUploadState}
</if>
<if
test=
"entUploadState != null and entUploadState != ''"
>
and f_ent_upload_state = #{entUploadState}
</if>
<if
test=
"fCompanyInfoId != null and fCompanyInfoId != ''"
>
and f_company_info_id = #{fCompanyInfoId}
</if>
<if
test=
"fCompanyInfoId != null and fCompanyInfoId != ''"
>
and f_company_info_id = #{fCompanyInfoId}
</if>
<if
test=
"govUploadState != null and govUploadState != ''"
>
and f_gov_upload_state = #{govUploadState}
</if>
</where>
</where>
order by f_update_time desc
order by f_update_time desc
</select>
</select>
...
...
zh-baseversion-system/src/main/resources/mapper/system/TRiskDevMajInforMapper.xml
View file @
74192512
...
@@ -66,19 +66,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -66,19 +66,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
f_gov_upload_state
f_gov_upload_state
from t_risk_dev_maj_infor riskInfor
from t_risk_dev_maj_infor riskInfor
left join t_enterprise_info enterprise on riskInfor.f_company_id = enterprise.enterprise_id
left join t_enterprise_info enterprise on riskInfor.f_company_id = enterprise.enterprise_id
left join t_county_level_region region on region.f_id =
enterprise
.f_region_id
left join t_county_level_region region on region.f_id =
riskInfor
.f_region_id
</sql>
</sql>
<select
id=
"selectTRiskDevMajInforList"
parameterType=
"TRiskDevMajInfor"
resultMap=
"TRiskDevMajInforResult"
>
<select
id=
"selectTRiskDevMajInforList"
parameterType=
"TRiskDevMajInfor"
resultMap=
"TRiskDevMajInforResult"
>
<include
refid=
"
selectT
RiskDevMajInforVo"
/>
<include
refid=
"
export
RiskDevMajInforVo"
/>
<where>
<where>
<if
test=
"fRiskCode != null and fRiskCode != ''"
>
and f_risk_code like concat('%', #{fRiskCode}, '%')
</if>
<if
test=
"fRiskCode != null and fRiskCode != ''"
>
and f_risk_code like concat('%', #{fRiskCode}, '%')
</if>
<if
test=
"fRiskName != null and fRiskName != ''"
>
and f_risk_name like concat('%', #{fRiskName}, '%')
</if>
<if
test=
"fRiskName != null and fRiskName != ''"
>
and f_risk_name like concat('%', #{fRiskName}, '%')
</if>
<if
test=
"fRiskType != null "
>
and f_risk_type = #{fRiskType}
</if>
<if
test=
"fRiskType != null "
>
and f_risk_type = #{fRiskType}
</if>
<if
test=
"entUploadState != null "
>
and f_ent_upload_state = #{entUploadState}
</if>
<if
test=
"entUploadState != null "
>
and f_ent_upload_state = #{entUploadState}
</if>
<if
test=
"fCompanyId != null and fCompanyId != '' "
>
and f_company_id = #{fCompanyId}
</if>
<if
test=
"govUploadState != null and govUploadState !='' "
>
and f_gov_upload_state = #{govUploadState}
</if>
</where>
</where>
order by f_update_time desc
order by
riskInfor.
f_update_time desc
</select>
</select>
<select
id=
"exportRiskDevMajInforList"
parameterType=
"TRiskDevMajInfor"
resultMap=
"TRiskDevMajInforResult"
>
<select
id=
"exportRiskDevMajInforList"
parameterType=
"TRiskDevMajInfor"
resultMap=
"TRiskDevMajInforResult"
>
...
@@ -88,12 +90,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -88,12 +90,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"fRiskName != null and fRiskName != ''"
>
and f_risk_name like concat('%', #{fRiskName}, '%')
</if>
<if
test=
"fRiskName != null and fRiskName != ''"
>
and f_risk_name like concat('%', #{fRiskName}, '%')
</if>
<if
test=
"fRiskType != null "
>
and f_risk_type = #{fRiskType}
</if>
<if
test=
"fRiskType != null "
>
and f_risk_type = #{fRiskType}
</if>
<if
test=
"entUploadState != null "
>
and f_ent_upload_state = #{entUploadState}
</if>
<if
test=
"entUploadState != null "
>
and f_ent_upload_state = #{entUploadState}
</if>
<if
test=
"fCompanyId != null and fCompanyId != '' "
>
and f_company_id = #{fCompanyId}
</if>
<if
test=
"govUploadState != null and govUploadState !='' "
>
and f_gov_upload_state = #{govUploadState}
</if>
</where>
</where>
order by f_update_time desc
order by f_update_time desc
</select>
</select>
<select
id=
"selectTRiskDevMajInforById"
parameterType=
"Long"
resultMap=
"TRiskDevMajInforResult"
>
<select
id=
"selectTRiskDevMajInforById"
parameterType=
"Long"
resultMap=
"TRiskDevMajInforResult"
>
<include
refid=
"
selectT
RiskDevMajInforVo"
/>
<include
refid=
"
export
RiskDevMajInforVo"
/>
where f_risk_dev_maj_infor_id = #{fRiskDevMajInforId}
where f_risk_dev_maj_infor_id = #{fRiskDevMajInforId}
</select>
</select>
...
@@ -163,6 +167,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -163,6 +167,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where f_risk_dev_maj_infor_id = #{fRiskDevMajInforId}
where f_risk_dev_maj_infor_id = #{fRiskDevMajInforId}
</update>
</update>
<update
id=
"entReportRiskDevMajInfor"
>
update t_risk_dev_maj_infor set f_ent_upload_state = #{state}, f_ent_upload_time = #{entUploadTime} where f_risk_dev_maj_infor_id = #{fRiskDevMajInforId}
</update>
<delete
id=
"deleteTRiskDevMajInforById"
parameterType=
"Long"
>
<delete
id=
"deleteTRiskDevMajInforById"
parameterType=
"Long"
>
delete from t_risk_dev_maj_infor where f_risk_dev_maj_infor_id = #{fRiskDevMajInforId}
delete from t_risk_dev_maj_infor where f_risk_dev_maj_infor_id = #{fRiskDevMajInforId}
</delete>
</delete>
...
...
zh-baseversion-web/src/api/risk/info.js
View file @
74192512
...
@@ -59,3 +59,11 @@ export function reportRiskInfo(query) {
...
@@ -59,3 +59,11 @@ export function reportRiskInfo(query) {
params
:
query
params
:
query
})
})
}
}
export
function
entReportRiskInfo
(
query
)
{
return
request
({
url
:
'/risk/info/entReportRiskInfo'
,
method
:
'get'
,
params
:
query
})
}
zh-baseversion-web/src/views/oldpipesystem/process/components/DetailInfo.vue
View file @
74192512
...
@@ -94,33 +94,19 @@
...
@@ -94,33 +94,19 @@
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"
当前
改造进度/百分比"
>
<el-form-item
label=
"改造进度/百分比"
>
<span
v-if=
"detailInfo.fReconstructionProgress"
>
{{
detailInfo
.
fReconstructionProgress
}}
</span>
<span
v-if=
"detailInfo.fReconstructionProgress"
>
{{
detailInfo
.
fReconstructionProgress
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"
当前
资金拨付进度/百分比"
>
<el-form-item
label=
"资金拨付进度/百分比"
>
<span
v-if=
"detailInfo.fFundsDisbursementProgress"
>
{{
detailInfo
.
fFundsDisbursementProgress
}}
</span>
<span
v-if=
"detailInfo.fFundsDisbursementProgress"
>
{{
detailInfo
.
fFundsDisbursementProgress
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"创建时间"
>
<span
v-if=
"detailInfo.fCreateTime"
>
{{
detailInfo
.
fCreateTime
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"更新时间"
>
<span
v-if=
"detailInfo.fUpdateTime"
>
{{
detailInfo
.
fUpdateTime
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"上传状态"
>
<el-form-item
label=
"上传状态"
>
<span>
{{
fUploadType
}}
</span>
<span>
{{
fUploadType
}}
</span>
...
...
zh-baseversion-web/src/views/oldpipesystem/process/index.vue
View file @
74192512
...
@@ -438,6 +438,7 @@ export default {
...
@@ -438,6 +438,7 @@ export default {
// 企业查自己的数据
// 企业查自己的数据
if
(
this
.
user
.
roleId
==
5
)
{
if
(
this
.
user
.
roleId
==
5
)
{
this
.
queryParams
.
fEnterpriseId
=
this
.
$store
.
state
.
user
.
enterpriseId
this
.
queryParams
.
fEnterpriseId
=
this
.
$store
.
state
.
user
.
enterpriseId
this
.
queryParams
.
entUploadState
=
this
.
queryParams
.
fUploadType
;
}
}
// 政府如果按照状态查的话,是查的 govUploadState
// 政府如果按照状态查的话,是查的 govUploadState
if
(
this
.
user
.
roleId
==
3
)
{
if
(
this
.
user
.
roleId
==
3
)
{
...
@@ -634,6 +635,15 @@ export default {
...
@@ -634,6 +635,15 @@ export default {
type
:
"warning"
type
:
"warning"
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
exportLoading
=
true
;
this
.
exportLoading
=
true
;
// 企业查自己的数据
if
(
this
.
user
.
roleId
==
5
)
{
this
.
queryParams
.
fEnterpriseId
=
this
.
$store
.
state
.
user
.
enterpriseId
}
// 政府如果按照状态查的话,是查的 govUploadState
if
(
this
.
user
.
roleId
==
3
)
{
this
.
queryParams
.
govUploadState
=
this
.
queryParams
.
fUploadType
;
}
return
exportProcess
(
queryParams
);
return
exportProcess
(
queryParams
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
download
(
response
.
msg
);
...
...
zh-baseversion-web/src/views/risk/components/DetailInfo.vue
View file @
74192512
<
template
>
<
template
>
<el-dialog
title=
"详情"
:visible
.
sync=
"detailOpen"
width=
"900px"
append-to-body
destroy-on-close
:close-on-click-modal=
"false"
>
<el-dialog
title=
"详情"
:visible
.
sync=
"detailOpen"
width=
"900px"
append-to-body
destroy-on-close
:close-on-click-modal=
"false"
>
<el-form
label-width=
"140px"
>
<el-form
label-width=
"140px"
>
<el-row
class=
"el-row-table"
>
<el-row
class=
"el-row-table"
>
<el-col
:span=
"14"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"重要风险点
编码
"
>
<el-form-item
label=
"重要风险点
名称
"
>
<span
v-if=
"detailInfo.fRisk
Code"
>
{{
detailInfo
.
fRiskCod
e
}}
</span>
<span
v-if=
"detailInfo.fRisk
Name"
>
{{
detailInfo
.
fRiskNam
e
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"重要风险点
名称
"
>
<el-form-item
label=
"重要风险点
编码
"
>
<span
v-if=
"detailInfo.fRisk
Name"
>
{{
detailInfo
.
fRiskNam
e
}}
</span>
<span
v-if=
"detailInfo.fRisk
Code"
>
{{
detailInfo
.
fRiskCod
e
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"燃气企业"
>
<el-form-item
label=
"燃气企业"
>
<span>
{{
enterpriseName
}}
</span>
<span
v-if=
"detailInfo.fCompanyId"
>
{{
detailInfo
.
fCompanyId
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"县级行政区
ID
"
>
<el-form-item
label=
"县级行政区"
>
<span
v-if=
"detailInfo.fRegionId"
>
{{
detailInfo
.
fRegionId
}}
</span>
<span
v-if=
"detailInfo.fRegionId"
>
{{
detailInfo
.
fRegionId
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
...
@@ -37,56 +37,57 @@
...
@@ -37,56 +37,57 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"
12
"
>
<el-col
:span=
"
24
"
>
<el-form-item
label=
"所在位置地址描述"
>
<el-form-item
label=
"所在位置地址描述"
>
<span
v-if=
"detailInfo.fRiskPlaceDetail"
>
{{
detailInfo
.
fRiskPlaceDetail
}}
</span>
<span
v-if=
"detailInfo.fRiskPlaceDetail"
>
{{
detailInfo
.
fRiskPlaceDetail
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"
12
"
>
<el-col
:span=
"
24
"
>
<el-form-item
label=
"风险构成"
>
<el-form-item
label=
"风险构成"
>
<span
v-if=
"detailInfo.fRiskStructure"
>
{{
detailInfo
.
fRiskStructure
}}
</span>
<span
v-if=
"detailInfo.fRiskStructure"
>
{{
detailInfo
.
fRiskStructure
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"
12
"
>
<el-col
:span=
"
24
"
>
<el-form-item
label=
"风险管控措施"
>
<el-form-item
label=
"风险管控措施"
>
<span
v-if=
"detailInfo.fRiskControlMeasures"
>
{{
detailInfo
.
fRiskControlMeasures
}}
</span>
<span
v-if=
"detailInfo.fRiskControlMeasures"
>
{{
detailInfo
.
fRiskControlMeasures
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"
12
"
>
<el-col
:span=
"
24
"
>
<el-form-item
label=
"备注"
>
<el-form-item
label=
"备注"
>
<span
v-if=
"detailInfo.fRemark"
>
{{
detailInfo
.
fRemark
}}
</span>
<span
v-if=
"detailInfo.fRemark"
>
{{
detailInfo
.
fRemark
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"上传状态"
>
<span>
{{
fUploadType
}}
</span>
</el-form-item>
</el-col>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"上传状态"
>
<el-form-item
label=
"上传时间"
>
<span>
{{
fUploadType
}}
</span>
<span>
{{
fUploadTime
}}
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
v-if=
"this.$store.state.user.roleId == 3"
label=
"企业端上传时间"
>
<span>
{{
detailInfo
.
entUploadTime
}}
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12
"
>
<el-col
:span=
"24
"
>
<el-form-item
label=
"
上传时间"
>
<el-form-item
label=
"
经纬度位置"
>
<
span>
{{
fUploadTime
}}
</span>
<
div
id=
"risk-map"
style=
"height: 300px"
></div>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
v-if=
"this.$store.state.user.roleId == 3"
label=
"企业端上传时间"
>
<span>
{{
detailInfo
.
fUploadTime
}}
</span>
</el-form-item>
</el-col>
<el-col
:span=
"10"
>
<div
id=
"risk-map"
style=
"height: 400px"
></div>
</el-col>
</el-row>
</el-row>
</el-form>
</el-form>
...
@@ -172,13 +173,6 @@
...
@@ -172,13 +173,6 @@
getInfor
(
id
).
then
(
res
=>
{
getInfor
(
id
).
then
(
res
=>
{
if
(
res
.
code
==
200
&&
res
.
data
){
if
(
res
.
code
==
200
&&
res
.
data
){
this
.
detailInfo
=
res
.
data
;
this
.
detailInfo
=
res
.
data
;
this
.
detailInfo
.
fRegionId
=
this
.
beyondCountyFormat
(
this
.
detailInfo
);
let
fCompanyId
=
this
.
detailInfo
.
fCompanyId
;
if
(
fCompanyId
!=
null
)
{
this
.
enterpriseName
=
this
.
beyondCompanyFormat
(
this
.
detailInfo
);
}
this
.
showUploadType
();
this
.
showUploadType
();
this
.
showUploadTime
();
this
.
showUploadTime
();
this
.
detailOpen
=
true
;
this
.
detailOpen
=
true
;
...
...
zh-baseversion-web/src/views/risk/index.vue
View file @
74192512
...
@@ -29,6 +29,14 @@
...
@@ -29,6 +29,14 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"上传状态"
prop=
"entUploadState"
>
<el-select
v-model=
"queryParams.entUploadState"
placeholder=
"请选择上传状态"
clearable
size=
"small"
>
<el-option
label=
"未上传"
value=
"0"
/>
<el-option
label=
"已上传"
value=
"1"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
...
@@ -43,7 +51,7 @@
...
@@ -43,7 +51,7 @@
icon=
"el-icon-plus"
icon=
"el-icon-plus"
size=
"mini"
size=
"mini"
@
click=
"handleAdd"
@
click=
"handleAdd"
v-if=
"
this.
user.roleId==5"
v-if=
"user.roleId==5"
>
新增
</el-button>
>
新增
</el-button>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
...
@@ -54,7 +62,7 @@
...
@@ -54,7 +62,7 @@
size=
"mini"
size=
"mini"
:disabled=
"single"
:disabled=
"single"
@
click=
"handleUpdate"
@
click=
"handleUpdate"
v-if=
"
this.
user.roleId==5"
v-if=
"user.roleId==5"
>
修改
</el-button>
>
修改
</el-button>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
...
@@ -65,7 +73,7 @@
...
@@ -65,7 +73,7 @@
size=
"mini"
size=
"mini"
:disabled=
"multiple"
:disabled=
"multiple"
@
click=
"handleDelete"
@
click=
"handleDelete"
v-if=
"
this.
user.roleId==5"
v-if=
"user.roleId==5"
>
删除
</el-button>
>
删除
</el-button>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
...
@@ -84,11 +92,15 @@
...
@@ -84,11 +92,15 @@
<el-table
v-loading=
"loading"
:data=
"inforList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"inforList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
label=
"重要风险点编码"
align=
"center"
prop=
"fRiskCode"
/>
<el-table-column
label=
"重要风险点编码"
align=
"center"
prop=
"fRiskCode"
/>
<el-table-column
label=
"重要风险点名称"
align=
"center"
prop=
"fRiskName"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"重要风险点名称"
align=
"center"
prop=
"fRiskName"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"
涉及燃气企业编码"
align=
"center"
prop=
"fCompanyId"
/>
<el-table-column
label=
"
燃气企业"
align=
"center"
prop=
"fCompanyId"
width=
"250"
/>
<el-table-column
label=
"县级行政区
ID
"
align=
"center"
prop=
"fRegionId"
/>
<el-table-column
label=
"县级行政区"
align=
"center"
prop=
"fRegionId"
/>
<el-table-column
label=
"重要风险点类型"
align=
"center"
prop=
"fRiskType"
:formatter=
"fRiskTypeFormat"
/>
<el-table-column
label=
"重要风险点类型"
align=
"center"
prop=
"fRiskType"
:formatter=
"fRiskTypeFormat"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"备注"
align=
"center"
prop=
"fRemark"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"备注"
align=
"center"
prop=
"fRemark"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"最后修改时间"
align=
"center"
prop=
"fUpdateTime"
/>
<el-table-column
label=
"上传状态"
align=
"center"
prop=
"fUploadType"
:formatter=
"uploadStateFormat"
>
</el-table-column>
<el-table-column
label=
"上传时间"
align=
"center"
prop=
"fUploadTime"
width=
"150"
:formatter=
"uploadTimeFormat"
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-button
<el-button
...
@@ -102,19 +114,20 @@
...
@@ -102,19 +114,20 @@
type=
"text"
type=
"text"
icon=
"el-icon-edit"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
@
click=
"handleUpdate(scope.row)"
v-if=
"this.
user.roleId==5&&scope.row.entUploadState==0"
v-if=
"
user.roleId==5&&scope.row.entUploadState==0"
>
修改
</el-button>
>
修改
</el-button>
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
icon=
"el-icon-delete"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
@
click=
"handleDelete(scope.row)"
v-if=
"this.
user.roleId==5&&scope.row.entUploadState==0"
v-if=
"
user.roleId==5&&scope.row.entUploadState==0"
>
删除
</el-button>
>
删除
</el-button>
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
@
click=
"handleReport(scope.row)"
@
click=
"handleReport(scope.row)"
v-if=
"judgeUploadIsShow((scope.row))"
>
上传
</el-button>
>
上传
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -244,7 +257,7 @@
...
@@ -244,7 +257,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
listInfor
,
getInfor
,
delInfor
,
addInfor
,
updateInfor
,
exportInfor
,
reportRiskInfo
}
from
"@/api/risk/info"
;
import
{
listInfor
,
getInfor
,
delInfor
,
addInfor
,
updateInfor
,
exportInfor
,
reportRiskInfo
,
entReportRiskInfo
}
from
"@/api/risk/info"
;
import
GetPos
from
'@/components/GetPos'
;
import
GetPos
from
'@/components/GetPos'
;
import
{
enterpriseLists
}
from
"@/api/regulation/info"
;
import
{
enterpriseLists
}
from
"@/api/regulation/info"
;
import
DetailInfo
from
"./components/DetailInfo"
;
import
DetailInfo
from
"./components/DetailInfo"
;
...
@@ -293,9 +306,13 @@ export default {
...
@@ -293,9 +306,13 @@ export default {
fRiskCode
:
null
,
fRiskCode
:
null
,
fRiskName
:
null
,
fRiskName
:
null
,
fRiskType
:
null
,
fRiskType
:
null
,
entUploadState
:
null
},
},
// 表单参数
// 表单参数
form
:
{},
form
:
{
fUploadType
:
null
,
fUploadTime
:
null
},
// 表单校验
// 表单校验
rules
:
{
rules
:
{
fRiskName
:
[
fRiskName
:
[
...
@@ -336,6 +353,36 @@ export default {
...
@@ -336,6 +353,36 @@ export default {
this
.
getCountyInfo
();
this
.
getCountyInfo
();
},
},
methods
:
{
methods
:
{
//判断 上传是否需要显示,上传分为企业上传 和 政府端上传
judgeUploadIsShow
(
row
)
{
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
// 企业端 上传状态 0-未上传,1-已上传
let
entUploadState
=
row
.
entUploadState
;
// 政府端 上传状态 0-未上传,1-已上传
let
govUploadState
=
row
.
govUploadState
;
// 如果政府端都已经上传,那就不能显示了。
if
(
govUploadState
===
'1'
)
{
return
false
;
}
// 如果企业端上传了,则企业端就不能显示了,政府端和 超级管理员能显示
if
(
entUploadState
===
'1'
&&
govUploadState
===
'0'
)
{
if
(
roleId
===
5
)
{
return
false
;
}
else
{
return
true
;
}
}
// 别的情况,都显示
return
true
;
},
//获取县级
//获取县级
getCountyInfo
(){
getCountyInfo
(){
getDefaultCountyList
().
then
(
res
=>
{
getDefaultCountyList
().
then
(
res
=>
{
...
@@ -354,6 +401,7 @@ export default {
...
@@ -354,6 +401,7 @@ export default {
getuserInfo
(){
getuserInfo
(){
getInfo
().
then
(
response
=>
{
getInfo
().
then
(
response
=>
{
this
.
user
=
response
.
user
.
roles
[
0
]
this
.
user
=
response
.
user
.
roles
[
0
]
console
.
log
(
"response.user.roles[0] = "
+
response
.
user
.
roles
[
0
]);
this
.
getList
();
this
.
getList
();
});
});
},
},
...
@@ -366,7 +414,7 @@ export default {
...
@@ -366,7 +414,7 @@ export default {
}
}
// 政府如果按照状态查的话,是查的 govUploadState
// 政府如果按照状态查的话,是查的 govUploadState
if
(
this
.
user
.
roleId
==
3
)
{
if
(
this
.
user
.
roleId
==
3
)
{
this
.
queryParams
.
govUploadState
=
this
.
queryParams
.
fUploadTyp
e
;
this
.
queryParams
.
govUploadState
=
this
.
queryParams
.
entUploadStat
e
;
}
}
listInfor
(
this
.
queryParams
).
then
(
response
=>
{
listInfor
(
this
.
queryParams
).
then
(
response
=>
{
this
.
inforList
=
response
.
rows
;
this
.
inforList
=
response
.
rows
;
...
@@ -399,7 +447,9 @@ export default {
...
@@ -399,7 +447,9 @@ export default {
fRiskStructure
:
null
,
fRiskStructure
:
null
,
fRiskControlMeasures
:
null
,
fRiskControlMeasures
:
null
,
fRemark
:
null
,
fRemark
:
null
,
fUpdateTime
:
null
fUpdateTime
:
null
,
fUploadType
:
null
,
fUploadTime
:
null
};
};
this
.
resetForm
(
"form"
);
this
.
resetForm
(
"form"
);
},
},
...
@@ -485,6 +535,15 @@ export default {
...
@@ -485,6 +535,15 @@ export default {
type
:
"warning"
type
:
"warning"
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
exportLoading
=
true
;
this
.
exportLoading
=
true
;
// 企业查自己的数据
if
(
this
.
user
.
roleId
==
5
)
{
this
.
queryParams
.
fCompanyId
=
this
.
$store
.
state
.
user
.
enterpriseId
}
// 政府如果按照状态查的话,是查的 govUploadState
if
(
this
.
user
.
roleId
==
3
)
{
this
.
queryParams
.
govUploadState
=
this
.
queryParams
.
entUploadState
;
}
return
exportInfor
(
queryParams
);
return
exportInfor
(
queryParams
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
download
(
response
.
msg
);
...
@@ -516,18 +575,66 @@ export default {
...
@@ -516,18 +575,66 @@ export default {
handleDetail
(
row
){
handleDetail
(
row
){
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fRiskDevMajInforId
);
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fRiskDevMajInforId
);
},
},
/** 删除按钮操作 */
//上传状态动态展示
uploadStateFormat
(
row
,
column
)
{
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
if
(
roleId
==
5
)
{
if
(
row
.
entUploadState
==
'0'
)
{
return
"未上传"
}
else
{
return
"已上传"
}
}
else
{
if
(
row
.
govUploadState
==
'0'
)
{
return
"未上传"
}
else
{
return
"已上传"
}
}
},
//上传时间动态展示
uploadTimeFormat
(
row
,
column
)
{
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
if
(
roleId
==
5
)
{
return
row
.
entUploadTime
;
}
else
{
return
row
.
govUploadTime
;
}
},
/** 上传按钮操作 */
handleReport
(
row
)
{
handleReport
(
row
)
{
this
.
$confirm
(
'是否确认上传重要风险点编码为"'
+
row
.
fRiskCode
+
'"的数据项?'
,
"警告"
,
{
// 如果是 企业,并且 企业端上传状态为0
if
(
this
.
user
.
roleId
==
5
&&
row
.
entUploadState
==
'0'
)
{
this
.
$confirm
(
'是否确认上传重要风险点编码为"'
+
row
.
fRiskCode
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
()
{
return
entReportRiskInfo
({
fRiskDevMajInforId
:
row
.
fRiskDevMajInforId
});
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"上传成功"
);
}).
catch
(()
=>
{});
}
// 如果是 政府,并且 政府端上传状态为0
if
(
this
.
user
.
roleId
==
3
&&
row
.
govUploadState
==
'0'
)
{
this
.
$confirm
(
'是否确认上传重要风险点编码为"'
+
row
.
fRiskCode
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
type
:
"warning"
}).
then
(
function
()
{
}).
then
(
function
()
{
return
reportAccidentInfo
({
fRiskDevMajInforId
:
row
.
fRiskDevMajInforId
});
return
reportRiskInfo
({
fRiskDevMajInforId
:
row
.
fRiskDevMajInforId
});
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"上传成功"
);
this
.
msgSuccess
(
"上传成功"
);
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
}
},
},
}
}
};
};
...
...
zh-baseversion-web/src/views/thirdbuild/accident/index.vue
View file @
74192512
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
<el-table-column
label=
"项目编码"
align=
"center"
prop=
"projectCode"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"项目编码"
align=
"center"
prop=
"projectCode"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"意外事件标题"
align=
"center"
prop=
"fTitle"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"意外事件标题"
align=
"center"
prop=
"fTitle"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"意外事件描述"
align=
"center"
prop=
"fDescription"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"意外事件描述"
align=
"center"
prop=
"fDescription"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"意外事件发生
事件
"
align=
"center"
prop=
"fOccurrenctTime"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"意外事件发生
时间
"
align=
"center"
prop=
"fOccurrenctTime"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"附件"
align=
"center"
prop=
"fAttachment"
>
<el-table-column
label=
"附件"
align=
"center"
prop=
"fAttachment"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span
<span
...
@@ -501,6 +501,16 @@ export default {
...
@@ -501,6 +501,16 @@ export default {
type
:
"warning"
type
:
"warning"
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
exportLoading
=
true
;
this
.
exportLoading
=
true
;
// 企业查自己的数据
if
(
this
.
user
.
roleId
==
5
)
{
this
.
queryParams
.
fCompanyInfoId
=
this
.
$store
.
state
.
user
.
enterpriseId
this
.
queryParams
.
entUploadState
=
this
.
queryParams
.
fUploadType
;
}
// 政府如果按照状态查的话,是查的 govUploadState
if
(
this
.
user
.
roleId
==
3
)
{
this
.
queryParams
.
govUploadState
=
this
.
queryParams
.
fUploadType
;
}
return
exportInc
(
queryParams
);
return
exportInc
(
queryParams
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
download
(
response
.
msg
);
...
...
zh-baseversion-web/src/views/thirdbuild/project/index.vue
View file @
74192512
...
@@ -831,6 +831,16 @@ export default {
...
@@ -831,6 +831,16 @@ export default {
type
:
"warning"
type
:
"warning"
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
exportLoading
=
true
;
this
.
exportLoading
=
true
;
// 企业查自己的数据
if
(
this
.
user
.
roleId
==
5
)
{
this
.
queryParams
.
fCompanyInfoId
=
this
.
$store
.
state
.
user
.
enterpriseId
this
.
queryParams
.
entUploadState
=
this
.
queryParams
.
fUploadType
;
}
// 政府如果按照状态查的话,是查的 govUploadState
if
(
this
.
user
.
roleId
==
3
)
{
this
.
queryParams
.
govUploadState
=
this
.
queryParams
.
fUploadType
;
}
return
exportInfor
(
queryParams
);
return
exportInfor
(
queryParams
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
download
(
response
.
msg
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment