Commit 968365b0 authored by 耿迪迪's avatar 耿迪迪
parents 164a799f c1e5c241
...@@ -107,7 +107,7 @@ public class TPipeOldPlanProcessController extends BaseController ...@@ -107,7 +107,7 @@ public class TPipeOldPlanProcessController extends BaseController
} }
/** /**
* 上传计划和进度 * 政府端 上传计划和进度
* @param fOldPlanProcessId 计划id * @param fOldPlanProcessId 计划id
* @return * @return
*/ */
...@@ -120,4 +120,14 @@ public class TPipeOldPlanProcessController extends BaseController ...@@ -120,4 +120,14 @@ public class TPipeOldPlanProcessController extends BaseController
return AjaxResult.error("上传计划和进度接口异常"); return AjaxResult.error("上传计划和进度接口异常");
} }
} }
/**
* 企业端 上传计划和进度
* @param fOldPlanProcessId 计划id
* @return
*/
@GetMapping("/entReportPipeOldPlanProcess")
public AjaxResult entReportPipeOldPlanProcess(Long fOldPlanProcessId) {
return toAjax(tPipeOldPlanProcessService.entReportPipeOldPlanProcess(fOldPlanProcessId));
}
} }
...@@ -74,6 +74,18 @@ public class TEnterpriseInfoController extends BaseController ...@@ -74,6 +74,18 @@ public class TEnterpriseInfoController extends BaseController
return getDataTable(list); return getDataTable(list);
} }
/**
*无条件查询所有企业
* @return
*/
@GetMapping("/queryAllEnterprise")
public List<TEnterpriseInfo> queryAllEnterprise()
{
//获取用户信息
return tEnterpriseInfoService.queryAllEnterprise();
}
/** /**
*查询所有企业信息 *查询所有企业信息
* @param tEnterpriseInfo * @param tEnterpriseInfo
......
...@@ -109,4 +109,15 @@ public class TConGasProIncController extends BaseController ...@@ -109,4 +109,15 @@ public class TConGasProIncController extends BaseController
return AjaxResult.error("上传第三方施工意外事件接口异常"); return AjaxResult.error("上传第三方施工意外事件接口异常");
} }
} }
/**
* 企业端上传第三方施工意外事件
* @param fConGasProIncId 第三方施工意外事件id
* @return
*/
@GetMapping("/entReportConGasProInfo")
public AjaxResult entReportConGasProInfo(Long fConGasProIncId){
return toAjax(tConGasProIncService.entReportConGasProInfo(fConGasProIncId));
}
} }
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;
import com.zehong.common.core.domain.BaseEntity; import com.zehong.common.core.domain.BaseEntity;
import java.util.Date;
/** /**
* 第三方施工-涉气第三方施工意外事件对象 t_con_gas_pro_inc * 第三方施工-涉气第三方施工意外事件对象 t_con_gas_pro_inc
* *
...@@ -48,6 +51,68 @@ public class TConGasProInc extends BaseEntity ...@@ -48,6 +51,68 @@ public class TConGasProInc extends BaseEntity
@Excel(name = "最后修改时间") @Excel(name = "最后修改时间")
private String fUpdateTime; private String fUpdateTime;
/**
* 企业端上传时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date entUploadTime;
/**
* 企业端上传状态 0-未上传,1-已上传*/
private String entUploadState;
/**
* 政府端上传时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date govUploadTime;
/**
* 企业端上传状态 0-未上传,1-已上传*/
private String govUploadState;
/** 燃气企业编码 */
@Excel(name = "燃气企业编码")
private String fCompanyInfoId;
public Date getEntUploadTime() {
return entUploadTime;
}
public void setEntUploadTime(Date entUploadTime) {
this.entUploadTime = entUploadTime;
}
public String getEntUploadState() {
return entUploadState;
}
public void setEntUploadState(String entUploadState) {
this.entUploadState = entUploadState;
}
public Date getGovUploadTime() {
return govUploadTime;
}
public void setGovUploadTime(Date govUploadTime) {
this.govUploadTime = govUploadTime;
}
public String getGovUploadState() {
return govUploadState;
}
public void setGovUploadState(String govUploadState) {
this.govUploadState = govUploadState;
}
public String getfCompanyInfoId() {
return fCompanyInfoId;
}
public void setfCompanyInfoId(String fCompanyInfoId) {
this.fCompanyInfoId = fCompanyInfoId;
}
public void setfConGasProIncId(Long fConGasProIncId) public void setfConGasProIncId(Long fConGasProIncId)
{ {
this.fConGasProIncId = fConGasProIncId; this.fConGasProIncId = fConGasProIncId;
......
...@@ -5,6 +5,8 @@ import org.apache.commons.lang3.builder.ToStringStyle; ...@@ -5,6 +5,8 @@ import org.apache.commons.lang3.builder.ToStringStyle;
import com.zehong.common.annotation.Excel; import com.zehong.common.annotation.Excel;
import com.zehong.common.core.domain.BaseEntity; import com.zehong.common.core.domain.BaseEntity;
import java.util.Date;
/** /**
* 老旧管网-改造计划和进度对象 t_pipe_old_plan_process * 老旧管网-改造计划和进度对象 t_pipe_old_plan_process
* *
...@@ -89,11 +91,11 @@ public class TPipeOldPlanProcess extends BaseEntity ...@@ -89,11 +91,11 @@ public class TPipeOldPlanProcess extends BaseEntity
/** 当前改造进度,填写百分比,100为完成 */ /** 当前改造进度,填写百分比,100为完成 */
@Excel(name = "当前改造进度") @Excel(name = "当前改造进度")
private Long fReconstructionProgress; private Float fReconstructionProgress;
/** 当前资金拨付进度,填写百分比,100为完成 */ /** 当前资金拨付进度,填写百分比,100为完成 */
@Excel(name = "当前资金拨付进度") @Excel(name = "当前资金拨付进度")
private Long fFundsDisbursementProgress; private Float fFundsDisbursementProgress;
/** 是否已上传,1-是,0-否 */ /** 是否已上传,1-是,0-否 */
@Excel(name = "是否已上传",readConverterExp = "1=是,0=否") @Excel(name = "是否已上传",readConverterExp = "1=是,0=否")
...@@ -105,6 +107,29 @@ public class TPipeOldPlanProcess extends BaseEntity ...@@ -105,6 +107,29 @@ public class TPipeOldPlanProcess extends BaseEntity
private Long fEnterpriseId; private Long fEnterpriseId;
/**
* 政府端上传数据
*/
private String govUploadState;
private Date govUploadTime;
public String getGovUploadState() {
return govUploadState;
}
public void setGovUploadState(String govUploadState) {
this.govUploadState = govUploadState;
}
public Date getGovUploadTime() {
return govUploadTime;
}
public void setGovUploadTime(Date govUploadTime) {
this.govUploadTime = govUploadTime;
}
public Long getfEnterpriseId() { public Long getfEnterpriseId() {
return fEnterpriseId; return fEnterpriseId;
} }
...@@ -266,21 +291,21 @@ public class TPipeOldPlanProcess extends BaseEntity ...@@ -266,21 +291,21 @@ public class TPipeOldPlanProcess extends BaseEntity
{ {
return fActualFinishTime; return fActualFinishTime;
} }
public void setfReconstructionProgress(Long fReconstructionProgress) public void setfReconstructionProgress(Float fReconstructionProgress)
{ {
this.fReconstructionProgress = fReconstructionProgress; this.fReconstructionProgress = fReconstructionProgress;
} }
public Long getfReconstructionProgress() public Float getfReconstructionProgress()
{ {
return fReconstructionProgress; return fReconstructionProgress;
} }
public void setfFundsDisbursementProgress(Long fFundsDisbursementProgress) public void setfFundsDisbursementProgress(Float fFundsDisbursementProgress)
{ {
this.fFundsDisbursementProgress = fFundsDisbursementProgress; this.fFundsDisbursementProgress = fFundsDisbursementProgress;
} }
public Long getfFundsDisbursementProgress() public Float getfFundsDisbursementProgress()
{ {
return fFundsDisbursementProgress; return fFundsDisbursementProgress;
} }
......
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.TConGasProInc; import com.zehong.system.domain.TConGasProInc;
import org.apache.ibatis.annotations.Param;
/** /**
* 第三方施工-涉气第三方施工意外事件Mapper接口 * 第三方施工-涉气第三方施工意外事件Mapper接口
...@@ -43,6 +45,11 @@ public interface TConGasProIncMapper ...@@ -43,6 +45,11 @@ public interface TConGasProIncMapper
*/ */
public int updateTConGasProInc(TConGasProInc tConGasProInc); public int updateTConGasProInc(TConGasProInc tConGasProInc);
/**
*
* 根据id修改 企业端上传状态*/
public int updateEntUploadStateById(@Param("state") String state, @Param("entUploadTime") Date entUploadTime,
@Param("fConGasProIncId") Long fConGasProIncId);
/** /**
* 删除第三方施工-涉气第三方施工意外事件 * 删除第三方施工-涉气第三方施工意外事件
* *
......
...@@ -35,6 +35,12 @@ public interface TEnterpriseInfoMapper ...@@ -35,6 +35,12 @@ public interface TEnterpriseInfoMapper
*/ */
public List<TEnterpriseInfo> selectTEnterpriseInfoList(TEnterpriseInfo tEnterpriseInfo); public List<TEnterpriseInfo> selectTEnterpriseInfoList(TEnterpriseInfo tEnterpriseInfo);
/**
* 无条件查询所有企业
* @return r
*/
public List<TEnterpriseInfo> queryAllEnterprise();
/** /**
* 新增企业信息 * 新增企业信息
* *
......
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.TPipeOldPlanProcess; import com.zehong.system.domain.TPipeOldPlanProcess;
import org.apache.ibatis.annotations.Param;
/** /**
* 老旧管网-改造计划和进度Mapper接口 * 老旧管网-改造计划和进度Mapper接口
...@@ -43,6 +45,13 @@ public interface TPipeOldPlanProcessMapper ...@@ -43,6 +45,13 @@ public interface TPipeOldPlanProcessMapper
*/ */
public int updateTPipeOldPlanProcess(TPipeOldPlanProcess tPipeOldPlanProcess); public int updateTPipeOldPlanProcess(TPipeOldPlanProcess tPipeOldPlanProcess);
/**
* 企业端上传数据
* @return
*/
public int entReportPipeOldPlanProcess(@Param("state") String state, @Param("entUploadTime") Date entUploadTime,
@Param("fOldPlanProcessId") Long fOldPlanProcessId);
/** /**
* 删除老旧管网-改造计划和进度 * 删除老旧管网-改造计划和进度
* *
......
...@@ -65,4 +65,11 @@ public interface ITConGasProIncService ...@@ -65,4 +65,11 @@ public interface ITConGasProIncService
* @return * @return
*/ */
int reportAccidentInfo(Long fConGasProIncId) throws Exception ; int reportAccidentInfo(Long fConGasProIncId) throws Exception ;
/**
* 企业端上传第三方施工意外事件
* @param fConGasProIncId 意外事件工id
* @return
*/
int entReportConGasProInfo(Long fConGasProIncId);
} }
...@@ -30,6 +30,11 @@ public interface ITEnterpriseInfoService ...@@ -30,6 +30,11 @@ public interface ITEnterpriseInfoService
*/ */
public List<TEnterpriseInfo> selectTEnterpriseInfoList(TEnterpriseInfo tEnterpriseInfo); public List<TEnterpriseInfo> selectTEnterpriseInfoList(TEnterpriseInfo tEnterpriseInfo);
/**
* 无条件查询所有企业
*/
public List<TEnterpriseInfo> queryAllEnterprise();
/** /**
* 新增企业信息 * 新增企业信息
* *
......
...@@ -65,4 +65,11 @@ public interface ITPipeOldPlanProcessService ...@@ -65,4 +65,11 @@ public interface ITPipeOldPlanProcessService
* @return * @return
*/ */
int reportPipeOldPlanProcess(Long fOldPlanProcessId) throws Exception; int reportPipeOldPlanProcess(Long fOldPlanProcessId) throws Exception;
/**
* 企业端上传 计划
* @param fOldPlanProcessId f
* @return r
*/
int entReportPipeOldPlanProcess(Long fOldPlanProcessId);
} }
package com.zehong.system.service.impl; package com.zehong.system.service.impl;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.zehong.common.core.domain.entity.SysRole;
import com.zehong.common.exception.CustomException; import com.zehong.common.exception.CustomException;
import com.zehong.common.utils.GovernmentDataCopyUtil; import com.zehong.common.utils.GovernmentDataCopyUtil;
import com.zehong.common.utils.GovernmentDataUtil; import com.zehong.common.utils.GovernmentDataUtil;
import com.zehong.common.utils.SecurityUtils;
import com.zehong.system.domain.TConGasProInc; import com.zehong.system.domain.TConGasProInc;
import com.zehong.system.domain.vo.TConGasProIncVo; import com.zehong.system.domain.vo.TConGasProIncVo;
import com.zehong.system.mapper.TConGasProIncMapper; import com.zehong.system.mapper.TConGasProIncMapper;
...@@ -30,7 +32,7 @@ public class TConGasProIncServiceImpl implements ITConGasProIncService ...@@ -30,7 +32,7 @@ public class TConGasProIncServiceImpl implements ITConGasProIncService
{ {
private static final Logger log = LoggerFactory.getLogger(TConGasProIncServiceImpl.class); private static final Logger log = LoggerFactory.getLogger(TConGasProIncServiceImpl.class);
@Autowired @Resource
private TConGasProIncMapper tConGasProIncMapper; private TConGasProIncMapper tConGasProIncMapper;
@Resource @Resource
...@@ -58,6 +60,12 @@ public class TConGasProIncServiceImpl implements ITConGasProIncService ...@@ -58,6 +60,12 @@ public class TConGasProIncServiceImpl implements ITConGasProIncService
@Override @Override
public List<TConGasProInc> selectTConGasProIncList(TConGasProInc tConGasProInc) public List<TConGasProInc> selectTConGasProIncList(TConGasProInc tConGasProInc)
{ {
SysRole sysRole = SecurityUtils.getLoginUser().getUser().getRoles().get(0);
// 不是超级管理员也不是企业
if (sysRole.getRoleId() != 1 && sysRole.getRoleId() != 5) {
tConGasProInc.setEntUploadState("1");
}
return tConGasProIncMapper.selectTConGasProIncList(tConGasProInc); return tConGasProIncMapper.selectTConGasProIncList(tConGasProInc);
} }
...@@ -127,6 +135,20 @@ public class TConGasProIncServiceImpl implements ITConGasProIncService ...@@ -127,6 +135,20 @@ public class TConGasProIncServiceImpl implements ITConGasProIncService
JSONObject reportResult = governmentDataUtil.setInfo("construction/gas/project/incident","WRITE",data); JSONObject reportResult = governmentDataUtil.setInfo("construction/gas/project/incident","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("上传第三方施意外事件工接口失败");
conGasProInc.setGovUploadState("1");
conGasProInc.setGovUploadTime(new Date());
tConGasProIncMapper.updateTConGasProInc(conGasProInc);
return 1;
}
/**
* 企业端上传
* @param fConGasProIncId 意外事件工id
* @return r
*/
@Override
public int entReportConGasProInfo(Long fConGasProIncId) {
tConGasProIncMapper.updateEntUploadStateById("1",new Date(),fConGasProIncId);
return 1; return 1;
} }
} }
...@@ -76,6 +76,16 @@ public class TEnterpriseInfoServiceImpl implements ITEnterpriseInfoService ...@@ -76,6 +76,16 @@ public class TEnterpriseInfoServiceImpl implements ITEnterpriseInfoService
return tEnterpriseInfoMapper.selectTEnterpriseInfoList(tEnterpriseInfo); return tEnterpriseInfoMapper.selectTEnterpriseInfoList(tEnterpriseInfo);
} }
/**
* 无条件查询所有企业
* @return re
*/
@Override
public List<TEnterpriseInfo> queryAllEnterprise() {
return tEnterpriseInfoMapper.queryAllEnterprise();
}
/** /**
* 新增企业信息 * 新增企业信息
* *
......
...@@ -31,7 +31,7 @@ public class TPipeOldPlanProcessServiceImpl implements ITPipeOldPlanProcessServi ...@@ -31,7 +31,7 @@ public class TPipeOldPlanProcessServiceImpl implements ITPipeOldPlanProcessServi
{ {
private static final Logger log = LoggerFactory.getLogger(TPipeOldPlanProcessServiceImpl.class); private static final Logger log = LoggerFactory.getLogger(TPipeOldPlanProcessServiceImpl.class);
@Autowired @Resource
private TPipeOldPlanProcessMapper tPipeOldPlanProcessMapper; private TPipeOldPlanProcessMapper tPipeOldPlanProcessMapper;
@Resource @Resource
...@@ -121,6 +121,20 @@ public class TPipeOldPlanProcessServiceImpl implements ITPipeOldPlanProcessServi ...@@ -121,6 +121,20 @@ public class TPipeOldPlanProcessServiceImpl implements ITPipeOldPlanProcessServi
JSONObject reportResult = governmentDataUtil.setInfo("pipeline/old/plan/process","WRITE",data); JSONObject reportResult = governmentDataUtil.setInfo("pipeline/old/plan/process","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("上传计划和进度接口失败");
tPipeOldPlanProcess.setGovUploadState("1");
tPipeOldPlanProcess.setGovUploadTime(new Date());
tPipeOldPlanProcessMapper.updateTPipeOldPlanProcess(tPipeOldPlanProcess);
return 1;
}
/**
* 企业端上传数据
* @param fOldPlanProcessId f
* @return r
*/
@Override
public int entReportPipeOldPlanProcess(Long fOldPlanProcessId) {
tPipeOldPlanProcessMapper.entReportPipeOldPlanProcess("1",new Date(),fOldPlanProcessId);
return 1; return 1;
} }
} }
...@@ -13,6 +13,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -13,6 +13,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="fAttachment" column="f_attachment" /> <result property="fAttachment" column="f_attachment" />
<result property="fRemark" column="f_remark" /> <result property="fRemark" column="f_remark" />
<result property="fUpdateTime" column="f_update_time" /> <result property="fUpdateTime" column="f_update_time" />
<result property="fCompanyInfoId" column="f_company_info_id" />
<result property="entUploadTime" column="f_ent_upload_time" />
<result property="entUploadState" column="f_ent_upload_state" />
<result property="govUploadTime" column="f_gov_upload_time" />
<result property="govUploadState" column="f_gov_upload_state" />
</resultMap> </resultMap>
<sql id="selectTConGasProIncVo"> <sql id="selectTConGasProIncVo">
...@@ -25,6 +31,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -25,6 +31,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
inc.f_attachment, inc.f_attachment,
inc.f_remark, inc.f_remark,
inc.f_update_time, inc.f_update_time,
inc.f_ent_upload_time,
inc.f_ent_upload_state,
inc.f_gov_upload_time,
inc.f_gov_upload_state,
info.f_project_code AS projectCode info.f_project_code AS projectCode
FROM FROM
t_con_gas_pro_inc inc t_con_gas_pro_inc inc
...@@ -34,13 +44,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -34,13 +44,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectTConGasProIncList" parameterType="TConGasProInc" resultMap="TConGasProIncResult"> <select id="selectTConGasProIncList" parameterType="TConGasProInc" resultMap="TConGasProIncResult">
<include refid="selectTConGasProIncVo"/> <include refid="selectTConGasProIncVo"/>
<where> <where>
<if test="fIntersectConstructionId != null and fIntersectConstructionId != ''"> and inc.f_intersect_construction_id = #{fIntersectConstructionId}</if> <if test="fIntersectConstructionId != null and fIntersectConstructionId != ''"> and info.f_project_code like concat('%', #{fIntersectConstructionId}, '%')</if>
<if test="fTitle != null and fTitle != ''"> and inc.f_title = #{fTitle}</if> <if test="fTitle != null and fTitle != ''"> and inc.f_title like concat('%', #{fTitle}, '%')</if>
<if test="fDescription != null and fDescription != ''"> and inc.f_description = #{fDescription}</if> <if test="fDescription != null and fDescription != ''"> and inc.f_description = #{fDescription}</if>
<if test="fOccurrenctTime != null and fOccurrenctTime != ''"> and inc.f_occurrenct_time = #{fOccurrenctTime}</if> <if test="fOccurrenctTime != null and fOccurrenctTime != ''"> and inc.f_occurrenct_time = #{fOccurrenctTime}</if>
<if test="fAttachment != null and fAttachment != ''"> and inc.f_attachment = #{fAttachment}</if> <if test="fAttachment != null and fAttachment != ''"> and inc.f_attachment = #{fAttachment}</if>
<if test="fRemark != null and fRemark != ''"> and inc.f_remark = #{fRemark}</if> <if test="fRemark != null and fRemark != ''"> and inc.f_remark = #{fRemark}</if>
<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="entUploadState != null and entUploadState != ''"> and inc.f_ent_upload_state = #{entUploadState}</if>
</where> </where>
order by f_update_time desc order by f_update_time desc
</select> </select>
...@@ -60,6 +72,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -60,6 +72,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fAttachment != null and fAttachment != ''">f_attachment,</if> <if test="fAttachment != null and fAttachment != ''">f_attachment,</if>
<if test="fRemark != null and fRemark != ''">f_remark,</if> <if test="fRemark != null and fRemark != ''">f_remark,</if>
<if test="fUpdateTime != null and fUpdateTime != ''">f_update_time,</if> <if test="fUpdateTime != null and fUpdateTime != ''">f_update_time,</if>
<if test="fCompanyInfoId != null and fCompanyInfoId != ''">f_company_info_id,</if>
<if test="entUploadTime != null and entUploadTime != ''">f_ent_upload_time,</if>
<if test="entUploadState != null and entUploadState != ''">f_ent_upload_state,</if>
<if test="govUploadTime != null and govUploadTime != ''">f_gov_upload_time,</if>
<if test="govUploadState != null and govUploadState != ''">f_gov_upload_state,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="fIntersectConstructionId != null and fIntersectConstructionId != ''">#{fIntersectConstructionId},</if> <if test="fIntersectConstructionId != null and fIntersectConstructionId != ''">#{fIntersectConstructionId},</if>
...@@ -69,6 +87,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -69,6 +87,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fAttachment != null and fAttachment != ''">#{fAttachment},</if> <if test="fAttachment != null and fAttachment != ''">#{fAttachment},</if>
<if test="fRemark != null and fRemark != ''">#{fRemark},</if> <if test="fRemark != null and fRemark != ''">#{fRemark},</if>
<if test="fUpdateTime != null and fUpdateTime != ''">#{fUpdateTime},</if> <if test="fUpdateTime != null and fUpdateTime != ''">#{fUpdateTime},</if>
<if test="fCompanyInfoId != null and fCompanyInfoId != ''">#{fCompanyInfoId},</if>
<if test="entUploadTime != null and entUploadTime != ''">#{entUploadTime},</if>
<if test="entUploadState != null and entUploadState != ''">#{entUploadState},</if>
<if test="govUploadTime != null and govUploadTime != ''">#{govUploadTime},</if>
<if test="govUploadState != null and govUploadState != ''">#{govUploadState},</if>
</trim> </trim>
</insert> </insert>
...@@ -82,6 +106,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -82,6 +106,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fAttachment != null and fAttachment != ''">f_attachment = #{fAttachment},</if> <if test="fAttachment != null and fAttachment != ''">f_attachment = #{fAttachment},</if>
<if test="fRemark != null and fRemark != ''">f_remark = #{fRemark},</if> <if test="fRemark != null and fRemark != ''">f_remark = #{fRemark},</if>
<if test="fUpdateTime != null and fUpdateTime != ''">f_update_time = #{fUpdateTime},</if> <if test="fUpdateTime != null and fUpdateTime != ''">f_update_time = #{fUpdateTime},</if>
<if test="entUploadTime != null">f_ent_upload_time = #{entUploadTime},</if>
<if test="entUploadState != null and entUploadState != ''">f_ent_upload_state = #{entUploadState},</if>
<if test="govUploadTime != null">f_gov_upload_time = #{govUploadTime},</if>
<if test="govUploadState != null and govUploadState != ''">f_gov_upload_state = #{govUploadState},</if>
</trim> </trim>
where f_con_gas_pro_inc_id = #{fConGasProIncId} where f_con_gas_pro_inc_id = #{fConGasProIncId}
</update> </update>
...@@ -90,6 +119,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -90,6 +119,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
delete from t_con_gas_pro_inc where f_con_gas_pro_inc_id = #{fConGasProIncId} delete from t_con_gas_pro_inc where f_con_gas_pro_inc_id = #{fConGasProIncId}
</delete> </delete>
<update id="updateEntUploadStateById">
update t_con_gas_pro_inc set f_ent_upload_state = #{state}, f_ent_upload_time = #{entUploadTime} where f_con_gas_pro_inc_id = #{fConGasProIncId}
</update>
<delete id="deleteTConGasProIncByIds" parameterType="String"> <delete id="deleteTConGasProIncByIds" parameterType="String">
delete from t_con_gas_pro_inc where f_con_gas_pro_inc_id in delete from t_con_gas_pro_inc where f_con_gas_pro_inc_id in
<foreach item="fConGasProIncId" collection="array" open="(" separator="," close=")"> <foreach item="fConGasProIncId" collection="array" open="(" separator="," close=")">
......
...@@ -64,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -64,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fProjectName != null and fProjectName != ''"> and f_project_name like concat('%', #{fProjectName}, '%')</if> <if test="fProjectName != null and fProjectName != ''"> and f_project_name like concat('%', #{fProjectName}, '%')</if>
<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>
</where> </where>
order by f_update_time desc order by f_update_time desc
</select> </select>
......
...@@ -52,6 +52,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -52,6 +52,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where> </where>
order by enterprise_id desc order by enterprise_id desc
</select> </select>
<select id="queryAllEnterprise" resultMap="TEnterpriseInfoResult">
<include refid="selectTEnterpriseInfoVo"/>
</select>
<select id="selectTEnterpriseInfoById" parameterType="String" resultMap="TEnterpriseInfoResult"> <select id="selectTEnterpriseInfoById" parameterType="String" resultMap="TEnterpriseInfoResult">
<include refid="selectTEnterpriseInfoVo"/> <include refid="selectTEnterpriseInfoVo"/>
......
...@@ -27,10 +27,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -27,10 +27,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="fUploadType" column="f_upload_type" /> <result property="fUploadType" column="f_upload_type" />
<result property="fUploadTime" column="f_upload_time" /> <result property="fUploadTime" column="f_upload_time" />
<result property="fEnterpriseId" column="f_enterprise_id" /> <result property="fEnterpriseId" column="f_enterprise_id" />
<result property="govUploadState" column="f_gov_upload_state" />
<result property="govUploadTime" column="f_gov_upload_time" />
</resultMap> </resultMap>
<sql id="selectTPipeOldPlanProcessVo"> <sql id="selectTPipeOldPlanProcessVo">
select f_old_plan_process_id, f_uuid, f_enterprise_id,f_ent_uuid, f_region, f_project_name, f_relation_object_type, f_year, f_start_time, f_end_time, f_total_investment, f_create_time, f_update_time, f_subject_implementation, f_concat_person, f_concat_tel, f_construction_content, f_actual_finish_time, f_reconstruction_progress, f_funds_disbursement_progress, f_upload_type, f_upload_time from t_pipe_old_plan_process select f_old_plan_process_id, f_uuid, f_enterprise_id,f_ent_uuid, f_region, f_project_name, f_relation_object_type, f_year, f_start_time, f_end_time, f_total_investment, f_create_time, f_update_time, f_subject_implementation, f_concat_person, f_concat_tel, f_construction_content, f_actual_finish_time, f_reconstruction_progress, f_funds_disbursement_progress, f_upload_type, f_upload_time,f_gov_upload_state, f_gov_upload_time from t_pipe_old_plan_process
</sql> </sql>
<select id="selectTPipeOldPlanProcessList" parameterType="TPipeOldPlanProcess" resultMap="TPipeOldPlanProcessResult"> <select id="selectTPipeOldPlanProcessList" parameterType="TPipeOldPlanProcess" resultMap="TPipeOldPlanProcessResult">
...@@ -42,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -42,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fConcatTel != null and fConcatTel != ''"> and f_concat_tel like concat('%', #{fConcatTel}, '%')</if> <if test="fConcatTel != null and fConcatTel != ''"> and f_concat_tel like concat('%', #{fConcatTel}, '%')</if>
<if test="fFundsDisbursementProgress != null "> and f_funds_disbursement_progress = #{fFundsDisbursementProgress}</if> <if test="fFundsDisbursementProgress != null "> and f_funds_disbursement_progress = #{fFundsDisbursementProgress}</if>
<if test="fUploadType != null and fUploadType != ''"> and f_upload_type = #{fUploadType}</if> <if test="fUploadType != null and fUploadType != ''"> and f_upload_type = #{fUploadType}</if>
<if test="fEnterpriseId != null and fEnterpriseId != ''"> and f_enterprise_id = #{fEnterpriseId}</if>
</where> </where>
</select> </select>
...@@ -74,6 +78,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -74,6 +78,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fUploadType != null">f_upload_type,</if> <if test="fUploadType != null">f_upload_type,</if>
<if test="fUploadTime != null">f_upload_time,</if> <if test="fUploadTime != null">f_upload_time,</if>
<if test="fEnterpriseId != null">f_enterprise_id,</if> <if test="fEnterpriseId != null">f_enterprise_id,</if>
<if test="govUploadState != null">f_gov_upload_state,</if>
<if test="govUploadTime != null">f_gov_upload_time,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="fUuid != null and fUuid != ''">#{fUuid},</if> <if test="fUuid != null and fUuid != ''">#{fUuid},</if>
...@@ -97,6 +104,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -97,6 +104,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fUploadType != null">#{fUploadType},</if> <if test="fUploadType != null">#{fUploadType},</if>
<if test="fUploadTime != null">#{fUploadTime},</if> <if test="fUploadTime != null">#{fUploadTime},</if>
<if test="fEnterpriseId != null">#{fEnterpriseId},</if> <if test="fEnterpriseId != null">#{fEnterpriseId},</if>
<if test="govUploadState != null">#{govUploadState},</if>
<if test="govUploadTime != null">#{govUploadTime},</if>
</trim> </trim>
</insert> </insert>
...@@ -124,6 +134,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -124,6 +134,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fUploadType != null">f_upload_type = #{fUploadType},</if> <if test="fUploadType != null">f_upload_type = #{fUploadType},</if>
<if test="fUploadTime != null">f_upload_time = #{fUploadTime},</if> <if test="fUploadTime != null">f_upload_time = #{fUploadTime},</if>
<if test="fEnterpriseId != null">f_enterprise_id = #{fEnterpriseId},</if> <if test="fEnterpriseId != null">f_enterprise_id = #{fEnterpriseId},</if>
<if test="govUploadState != null">f_gov_upload_state = #{govUploadState},</if>
<if test="govUploadTime != null">f_gov_upload_time = #{govUploadTime},</if>
</trim> </trim>
where f_old_plan_process_id = #{fOldPlanProcessId} where f_old_plan_process_id = #{fOldPlanProcessId}
</update> </update>
...@@ -132,6 +145,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -132,6 +145,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
delete from t_pipe_old_plan_process where f_old_plan_process_id = #{fOldPlanProcessId} delete from t_pipe_old_plan_process where f_old_plan_process_id = #{fOldPlanProcessId}
</delete> </delete>
<update id="entReportPipeOldPlanProcess">
update t_pipe_old_plan_process set f_upload_type = #{state}, f_upload_time = #{entUploadTime} where f_old_plan_process_id = #{fOldPlanProcessId}
</update>
<delete id="deleteTPipeOldPlanProcessByIds" parameterType="String"> <delete id="deleteTPipeOldPlanProcessByIds" parameterType="String">
delete from t_pipe_old_plan_process where f_old_plan_process_id in delete from t_pipe_old_plan_process where f_old_plan_process_id in
<foreach item="fOldPlanProcessId" collection="array" open="(" separator="," close=")"> <foreach item="fOldPlanProcessId" collection="array" open="(" separator="," close=")">
......
...@@ -51,3 +51,21 @@ export function exportProcess(query) { ...@@ -51,3 +51,21 @@ export function exportProcess(query) {
params: query params: query
}) })
} }
// 企业端上传 老旧官网
export function entReportPipeOldPlanProcess(query) {
return request({
url: '/oldPipeSystem/plan/entReportPipeOldPlanProcess',
method: 'get',
params: query
})
}
// 政府端上传 老旧官网
export function reportPipeOldPlanProcess(query) {
return request({
url: '/oldPipeSystem/plan/reportPipeOldPlanProcess',
method: 'get',
params: query
})
}
\ No newline at end of file
...@@ -19,6 +19,14 @@ export function enterpriseLists(query) { ...@@ -19,6 +19,14 @@ export function enterpriseLists(query) {
} }
// 无条件查询企业所有信息
export function queryAllEnterprise() {
return request({
url: '/regulation/info/queryAllEnterprise',
method: 'get',
})
}
// 查询企业信息详细 // 查询企业信息详细
export function getInfo(enterpriseId) { export function getInfo(enterpriseId) {
......
...@@ -59,3 +59,11 @@ export function reportAccidentInfo(query) { ...@@ -59,3 +59,11 @@ export function reportAccidentInfo(query) {
params: query params: query
}) })
} }
export function entReportConGasProInfo(query) {
return request({
url: '/third/accident/entReportConGasProInfo',
method: 'get',
params: query
})
}
\ No newline at end of file
...@@ -746,3 +746,7 @@ ...@@ -746,3 +746,7 @@
// pointer-events:auto !important; // pointer-events:auto !important;
// top:-30px !important; // top:-30px !important;
} }
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
--> -->
<template> <template>
<div> <div>
<div class="pipePressure"> <!-- <div class="pipePressure"> -->
<!-- <!--
<div style="float: left;margin-right: 5px;"> <div style="float: left;margin-right: 5px;">
<div class="hasColorBox"> <div class="hasColorBox">
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
监控 监控
</div> </div>
</div> --> </div> -->
<div> <!-- <div>
<div class="hasColorBox" :style="{ color: pipeColor[`1`] }"> <div class="hasColorBox" :style="{ color: pipeColor[`1`] }">
<div :style="{ backgroundColor: pipeColor[`1`] }"></div> <div :style="{ backgroundColor: pipeColor[`1`] }"></div>
低压管线 低压管线
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
高压管线 高压管线
</div> </div>
</div> </div>
</div> </div> -->
<div class="mapChange"> <div class="mapChange">
<div :class="{ active: mapStyle }" @click="mapChange(2)">全景地图</div> <div :class="{ active: mapStyle }" @click="mapChange(2)">全景地图</div>
......
...@@ -1151,6 +1151,7 @@ export default { ...@@ -1151,6 +1151,7 @@ export default {
.rightb { .rightb {
width: 98%; width: 98%;
height: 100%; height: 100%;
} }
.rightbar1 { .rightbar1 {
width: 90%; width: 90%;
...@@ -1161,7 +1162,7 @@ export default { ...@@ -1161,7 +1162,7 @@ export default {
.rightbar2 { .rightbar2 {
width: 76%; width: 76%;
height: 37%; height: 37%;
padding-top: 15px; padding-top: 30px;
margin-left: 20%; margin-left: 20%;
pointer-events: auto; pointer-events: auto;
} }
......
<!-- <!--
* @Author: 纪泽龙 jizelong@qq.com * @Author: 纪泽龙 jizelong@qq.com
* @Date: 2023-07-12 13:58:25 * @Date: 2024-07-15 10:26:41
* @LastEditors: 纪泽龙 jizelong@qq.com * @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2023-07-12 17:12:59 * @LastEditTime: 2024-07-16 17:27:41
* @FilePath: /gassafetyprogress-web/src/views/bigWindow/components/Bottom.vue * @FilePath: /zh-baseversion-web/src/views/bigWindow/components/Bottom.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
<template> <template>
<div class="bigwindow-bottom listingsSty"> <div class="big-bottom">
<div class="left">
<img <img
src="~@/assets/firstimage/bottombk.svg" v-if="cont != list.length - 3"
@click.stop="cont++"
src="@/assets/firstimage/l.png"
alt="" alt=""
style="backdrop-filter: blur(4px)"
/> />
<div class="listingsSty"> </div>
<div class="container">
<transition name="fade" mode="out-in">
<div v-if="activeCom.label" class="children">
<div
v-for="item in activeCom.children"
:key="item.value"
:title="'河北冉盛升新能源有限公123123123司'"
class="child zzz"
:class="[{ active: selectActive.includes(item.value) }]"
@click.stop="selectActiveChange(item.value)"
>
{{ item.label }}
</div>
</div>
</transition>
<div <div
class="firsty selectAll" class="all"
@click.stop="selectAll" @click.stop="selectAll"
:class="[ :class="{
{
active: active:
selectActive.length == listFlatArr.length && selectActive.length == listFlatArr.length &&
selectActive.length > 1, selectActive.length > 1,
}, }"
]"
> >
全部 全部
</div> </div>
<div class="firsty item" v-for="(item, index) in list" :key="item.value"> <div class="other">
<div class="other2">
<div class="move" :style="{ left: -cont * 144 + 'px' }">
<div <div
class="itemCompany" v-for="item in list"
@click.stop="selectChange(item.value)" @click.stop="itemClick(item)"
:key="item.value"
class="item"
:class="[ :class="[
{ active: selectSome(index) }, { active: item.label == activeCom.label },
{ activeAll: selectEvery(index) }, { minOne: selectSome(item) },
{ maxAll: selectEvery(item) },
]" ]"
> >
{{ item.label }} {{ item.label }}
</div> </div>
<div
class="up-select"
:class="[{ hide: !selectShowNum.includes(item.value) }]"
:style="{ height: item.children.length * 35 + 'px' }"
>
<div
class="selectItem"
v-for="selectItem in item.children"
:class="[{ active: selectActive.includes(selectItem.value) }]"
:key="selectItem.value"
@click.stop="selectActiveChange(selectItem.value)"
>
{{ selectItem.label }}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="right">
<img
v-if="cont != 0"
@click.stop="cont--"
src="@/assets/firstimage/r.png"
alt=""
/>
</div>
</div> </div>
</template> </template>
<script> <script>
import { mapGetters, mapActions } from "vuex"; import { mapGetters, mapActions } from "vuex";
export default { export default {
name: "", name: "",
data() { data() {
return { return {
cont: 0,
list: [ list: [
{ {
value: 1, value: 1,
...@@ -92,6 +108,8 @@ export default { ...@@ -92,6 +108,8 @@ export default {
], ],
}, },
], ],
// 被选中的公司
activeCom: {},
selectShowNum: [], selectShowNum: [],
// 被选中的值 // 被选中的值
selectActive: [], selectActive: [],
...@@ -101,12 +119,10 @@ export default { ...@@ -101,12 +119,10 @@ export default {
computed: { computed: {
...mapGetters(["company", "systemSetting"]), ...mapGetters(["company", "systemSetting"]),
}, },
beforeCreate() {},
mounted() { mounted() {
this.GetCompany().then((res) => { this.GetCompany().then((res) => {
this.company.forEach((item) => { this.company.forEach((item) => {
this.list[item.companyType-1].children.push({ this.list[item.companyType - 1].children.push({
value: item.conpanyId, value: item.conpanyId,
label: item.companyName, label: item.companyName,
}); });
...@@ -118,9 +134,8 @@ export default { ...@@ -118,9 +134,8 @@ export default {
...mapActions({ ...mapActions({
GetCompany: "bigWindowCompany/GetCompany", GetCompany: "bigWindowCompany/GetCompany",
}), }),
// 把下拉框放下 selectUpClear() {
selectUpClear(){ this.activeCom = {};
this.selectShowNum=[];
}, },
selectAll() { selectAll() {
// 生成所有都选中的数组 // 生成所有都选中的数组
...@@ -141,12 +156,12 @@ export default { ...@@ -141,12 +156,12 @@ export default {
} }
this.$emit("listChange", this.selectActive); this.$emit("listChange", this.selectActive);
}, },
selectChange(value) { itemClick(item) {
const num = this.selectShowNum.indexOf(value); if (item.children.length == 0) return;
if (num >= 0) { if (this.activeCom == item) {
this.selectShowNum.splice(num, 1); this.activeCom = {};
} else { } else {
this.selectShowNum.push(value); this.activeCom = item;
} }
}, },
selectActiveChange(value) { selectActiveChange(value) {
...@@ -158,20 +173,19 @@ export default { ...@@ -158,20 +173,19 @@ export default {
} }
this.$emit("listChange", this.selectActive); this.$emit("listChange", this.selectActive);
}, },
// 至少有一个被选中 selectSome(item) {
selectSome(index) {
return ( return (
this.list[index].children.length > 0 && item.children.length > 0 &&
this.list[index].children.some((item) => { item.children.some((item) => {
return this.selectActive.includes(item.value); return this.selectActive.includes(item.value);
}) })
); );
}, },
// 都被选中 // 都被选中
selectEvery(index) { selectEvery(item) {
return ( return (
this.list[index].children.length > 0 && item.children.length > 0 &&
this.list[index].children.every((item) => { item.children.every((item) => {
return this.selectActive.includes(item.value); return this.selectActive.includes(item.value);
}) })
); );
...@@ -180,84 +194,188 @@ export default { ...@@ -180,84 +194,188 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.bigwindow-bottom { .big-bottom {
width: 40%; width: 810px;
height: 70px; height: 50px;
position: fixed; position: fixed;
bottom: 0; bottom: 38px;
margin-left: 30%; left: 50%;
display: flex; margin-left: -405px;
// z-index: 1000; background: url("~@/assets/firstimage/btmA.png") no-repeat bottom center,
img { url("~@/assets/firstimage/btmB.png") no-repeat bottom center;
width: 100%;
height: 100%;
position: absolute;
z-index: -1;
bottom: -10px;
}
.listingsSty {
padding-left: 15%;
padding-right: 15%;
box-sizing: border-box; box-sizing: border-box;
width: 180%; padding: 0 80px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.firsty { align-items: center;
// width: 15%;
min-width: 80px; .container {
height: 35px; // background: red;
flex: 1;
margin-right: 22px;
height: 28px;
display: flex;
.all {
transition: all 0.2s linear;
width: 128px;
margin-right: 16px;
text-align: center; text-align: center;
line-height: 35px; line-height: 28px;
color: #fff; color: #fff;
font-size: 16px; font-size: 16px;
cursor: pointer; cursor: pointer;
&.selectAll { background: url("~@/assets/firstimage/btm-item.png") no-repeat bottom
transition: all 0.5s ease; center;
&.active { &.active {
color: #00ffff; background: url("~@/assets/firstimage/btm-item-active.png") no-repeat
text-shadow: 0 0 20px rgba(0, 255, 255, 1), bottom center;
0 0 35px rgb(0, 255, 255, 1);
} }
&:hover {
opacity: 0.7;
} }
}
.other {
flex: 1;
width: 0;
position: relative;
.other2 {
width: 100%;
height: 100%;
overflow: hidden;
&.item { .move {
min-width: 180px; transition: all 0.5s linear;
width: 1000px;
height: 100%;
// background: blue;
position: relative; position: relative;
.itemCompany { display: flex;
transition: all 0.5s ease; align-items: center;
left: 0px;
.item {
transition: all 0.2s linear;
width: 128px;
margin-right: 16px;
text-align: center;
line-height: 28px;
color: #fff;
font-size: 16px;
cursor: pointer;
background: url("~@/assets/firstimage/btm-item.png") no-repeat
bottom center;
&.active { &.active {
color: #00ffff; color: #1ec9e3;
text-shadow: 0 0 20px rgba(0, 255, 255, 0.3), }
0 0 35px rgb(0, 255, 255, 0.3); // 最少选中一个
&.minOne {
background: url("~@/assets/firstimage/btm-item-one.png") no-repeat
bottom center;
}
// 全选中
&.maxAll {
background: url("~@/assets/firstimage/btm-item-active.png")
no-repeat bottom center;
}
&:hover {
opacity: 0.7;
}
} }
&.activeAll {
color: #00ffff;
text-shadow: 0 0 20px rgba(0, 255, 255, 1),
0 0 35px rgb(0, 255, 255, 1);
} }
} }
.up-select { }
transition: all 0.5s ease; .children {
transition: all 1s linear;
width: 620px;
max-height: 214px;
position: absolute; position: absolute;
// background: red;
background: rgba(2, 26, 51, 0.9);
border: 1px solid #127bd1;
box-shadow: inset 0px 0px 10px 0px #164db2;
left: 50%;
margin-left: -310px;
// top: -215px;
bottom: 50px; bottom: 50px;
left: 0; display: flex;
width: 100%; flex-wrap: wrap;
background: rgb(18, 92, 155, 0.3); justify-content: space-between;
overflow: hidden; box-sizing: border-box;
&.hide { padding: 20px 20px 0px 20px;
height: 0px !important; // 滚动条
overflow-y: auto;
&::-webkit-scrollbar {
width: 10px;
background: #012a53;
position: absolute;
top: 0;
}
&::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
// border-radius: 10px;
// box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
background: #00000052;
border-radius: 8px;
}
&::-webkit-scrollbar-track {
/*滚动条里面轨道*/
// box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
// border-radius: 10px;
// background-color: red;
} }
.selectItem {
transition: all 0.5s ease; &::-webkit-scrollbar-button:start {
// overflow: hidden;
}
&::-webkit-scrollbar-button:end {
// overflow: hidden;
}
.child {
width: 275px;
height: 32px;
margin-bottom: 16px;
background: #0b2d47;
box-sizing: border-box;
padding-left: 21px;
line-height: 32px;
color: #fff;
border: 1px solid rgba(54, 136, 255, 0.2392);
cursor: pointer;
&.active { &.active {
color: #00ffff; background: rgba(255, 141, 70, 0.29);
text-shadow: 0 0 20px #00ffff, 0 0 35px #00ffff; box-sizing: border-box;
border: 1px solid rgba(255, 178, 130, 0.4);
}
&:hover {
opacity: 0.7;
} }
} }
} }
} }
.left {
margin-right: 32px;
color: white;
} }
.right {
color: white;
} }
.left,
.right {
width: 14px;
height: 20px;
img {
transition: all 0.5s linear;
width: 100%;
height: 100%;
cursor: pointer;
&:hover {
opacity: 0.7;
}
}
}
// background: red;
} }
</style> </style>
<!--
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2023-07-12 13:58:25
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2023-07-12 17:12:59
* @FilePath: /gassafetyprogress-web/src/views/bigWindow/components/Bottom.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="bigwindow-bottom listingsSty">
<img
src="~@/assets/firstimage/bottombk.svg"
alt=""
style="backdrop-filter: blur(4px)"
/>
<div class="listingsSty">
<div
class="firsty selectAll"
@click.stop="selectAll"
:class="[
{
active:
selectActive.length == listFlatArr.length &&
selectActive.length > 1,
},
]"
>
全部
</div>
<div class="firsty item" v-for="(item, index) in list" :key="item.value">
<div
class="itemCompany"
@click.stop="selectChange(item.value)"
:class="[
{ active: selectSome(index) },
{ activeAll: selectEvery(index) },
]"
>
{{ item.label }}
</div>
<div
class="up-select"
:class="[{ hide: !selectShowNum.includes(item.value) }]"
:style="{ height: item.children.length * 35 + 'px' }"
>
<div
class="selectItem"
v-for="selectItem in item.children"
:class="[{ active: selectActive.includes(selectItem.value) }]"
:key="selectItem.value"
@click.stop="selectActiveChange(selectItem.value)"
>
{{ selectItem.label }}
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import { mapGetters, mapActions } from "vuex";
export default {
name: "",
data() {
return {
list: [
{
value: 1,
label: "天然气公司",
children: [
// { value: 10, label: "东阿道夫阿" },
// { value: 11, label: "阿发送到" },
// { value: 19, label: "发打算发大水" },
],
},
{
value: 2,
label: "液化气公司",
children: [
// { value: 21, label: "2-1" },
// { value: 22, label: "2-2" },
],
},
{
value: 3,
label: "加气站",
children: [
// { value: 31, label: "3-1" },
// { value: 32, label: "3-2" },
],
},
],
selectShowNum: [],
// 被选中的值
selectActive: [],
listFlatArr: [],
};
},
computed: {
...mapGetters(["company", "systemSetting"]),
},
beforeCreate() {},
mounted() {
this.GetCompany().then((res) => {
this.company.forEach((item) => {
this.list[item.companyType-1].children.push({
value: item.conpanyId,
label: item.companyName,
});
});
this.selectAll();
});
},
methods: {
...mapActions({
GetCompany: "bigWindowCompany/GetCompany",
}),
// 把下拉框放下
selectUpClear(){
this.selectShowNum=[];
},
selectAll() {
// 生成所有都选中的数组
this.listFlatArr = this.list
.map((item) => {
return item.children.map((iten) => {
return iten.value;
});
})
.flat();
// 如果是全选中状态,则全取消,否则全选
if (this.selectActive.length == this.listFlatArr.length) {
this.selectActive = [];
} else {
this.selectActive = [...this.listFlatArr];
}
this.$emit("listChange", this.selectActive);
},
selectChange(value) {
const num = this.selectShowNum.indexOf(value);
if (num >= 0) {
this.selectShowNum.splice(num, 1);
} else {
this.selectShowNum.push(value);
}
},
selectActiveChange(value) {
const num = this.selectActive.indexOf(value);
if (num >= 0) {
this.selectActive.splice(num, 1);
} else {
this.selectActive.push(value);
}
this.$emit("listChange", this.selectActive);
},
// 至少有一个被选中
selectSome(index) {
return (
this.list[index].children.length > 0 &&
this.list[index].children.some((item) => {
return this.selectActive.includes(item.value);
})
);
},
// 都被选中
selectEvery(index) {
return (
this.list[index].children.length > 0 &&
this.list[index].children.every((item) => {
return this.selectActive.includes(item.value);
})
);
},
},
};
</script>
<style lang="scss" scoped>
.bigwindow-bottom {
width: 40%;
height: 70px;
position: fixed;
bottom: 0;
margin-left: 30%;
display: flex;
// z-index: 1000;
img {
width: 100%;
height: 100%;
position: absolute;
z-index: -1;
bottom: -10px;
}
.listingsSty {
padding-left: 15%;
padding-right: 15%;
box-sizing: border-box;
width: 180%;
display: flex;
justify-content: space-between;
.firsty {
// width: 15%;
min-width: 80px;
height: 35px;
text-align: center;
line-height: 35px;
color: #fff;
font-size: 16px;
cursor: pointer;
&.selectAll {
transition: all 0.5s ease;
&.active {
color: #00ffff;
text-shadow: 0 0 20px rgba(0, 255, 255, 1),
0 0 35px rgb(0, 255, 255, 1);
}
}
&.item {
min-width: 180px;
position: relative;
.itemCompany {
transition: all 0.5s ease;
&.active {
color: #00ffff;
text-shadow: 0 0 20px rgba(0, 255, 255, 0.3),
0 0 35px rgb(0, 255, 255, 0.3);
}
&.activeAll {
color: #00ffff;
text-shadow: 0 0 20px rgba(0, 255, 255, 1),
0 0 35px rgb(0, 255, 255, 1);
}
}
.up-select {
transition: all 0.5s ease;
position: absolute;
bottom: 50px;
left: 0;
width: 100%;
background: rgb(18, 92, 155, 0.3);
overflow: hidden;
&.hide {
height: 0px !important;
}
.selectItem {
transition: all 0.5s ease;
&.active {
color: #00ffff;
text-shadow: 0 0 20px #00ffff, 0 0 35px #00ffff;
}
}
}
}
}
}
}
</style>
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-01-11 13:44:17 * @Date: 2022-01-11 13:44:17
* @LastEditTime: 2023-07-12 17:13:16 * @LastEditTime: 2024-07-15 14:29:45
* @LastEditors: 纪泽龙 jizelong@qq.com * @LastEditors: 纪泽龙 jizelong@qq.com
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/views/Home.vue * @FilePath: /test/hello-world/src/views/Home.vue
--> -->
<template> <template>
<div class="home bigwindow" @click='windowClick'> <div class="home bigwindow" @click="windowClick">
<div class="goSystem" @click="$router.push('/index')">进入管理系统</div> <div class="goSystem" @click="$router.push('/index')">进入管理系统</div>
<div id="map"></div> <div id="map"></div>
<!-- <Center :show="show" :centerData="centerData" /> --> <!-- <Center :show="show" :centerData="centerData" /> -->
...@@ -30,7 +30,10 @@ ...@@ -30,7 +30,10 @@
:pageSize="20" :pageSize="20"
/> />
<PipeColor /> <PipeColor />
<PipeSelect @transmit="getPipeSelectMessage" @closeMediumPressureLine="clearBigWindowsSelectPipe"/> <!-- <PipeSelect
@transmit="getPipeSelectMessage"
@closeMediumPressureLine="clearBigWindowsSelectPipe"
/> -->
<!-- 底部按钮 --> <!-- 底部按钮 -->
<!-- <div class="home-div"> <!-- <div class="home-div">
...@@ -54,7 +57,7 @@ ...@@ -54,7 +57,7 @@
</div> </div>
</div> </div>
</div> --> </div> -->
<Bottom v-if="enterpriseId==-2" @listChange="listChange" ref='Bottom'/> <Bottom v-if="enterpriseId == -2" @listChange="listChange" ref="Bottom" />
<!-- 设备按钮 --> <!-- 设备按钮 -->
<div class="typelist-div"> <div class="typelist-div">
<div <div
...@@ -83,18 +86,21 @@ ...@@ -83,18 +86,21 @@
<!-- 头部 --> <!-- 头部 -->
<div class="banner-test"> <div class="banner-test">
<!-- <dv-decoration-5 style="width:100%;height:100%;" /> --> <!-- <dv-decoration-5 style="width:100%;height:100%;" /> -->
<img v-if="this.enterpriseId==-2" src="../../assets/images/zibk.png" alt="" /> <img
v-if="this.enterpriseId == -2"
src="../../assets/images/zibk.png"
alt=""
/>
<img v-else src="../../assets/images/20230805152711.png" alt="" /> <img v-else src="../../assets/images/20230805152711.png" alt="" />
</div> </div>
<!-- 左边 --> <!-- 左边 -->
<div class="leftbar"> <div class="leftbar" :style="changeLeftBarStyle">
<leftBar ref="mychild2"></leftBar> <leftBar ref="mychild2"></leftBar>
</div> </div>
<!-- 右边 --> <!-- 右边 -->
<div class="rightbar"> <div class="rightbar" :style="changeRightBarStyle">
<rightBar ref="mychild"></rightBar> <rightBar ref="mychild"></rightBar>
</div> </div>
<!-- <img src="../../assets/images/leftbk.svg" alt=""> --> <!-- <img src="../../assets/images/leftbk.svg" alt=""> -->
...@@ -150,7 +156,11 @@ ...@@ -150,7 +156,11 @@
import { EditorMap } from "@/utils/mapClass/map"; import { EditorMap } from "@/utils/mapClass/map";
import { mapGetters, mapActions } from "vuex"; import { mapGetters, mapActions } from "vuex";
import { listDetectorInfo } from "@/api/detector/detectorInfo"; import { listDetectorInfo } from "@/api/detector/detectorInfo";
import { detectorUserList,massMarksDetectorUserList,labelsLayerMarksDetectorUserList } from "@/api/detector/detectorUser"; import {
detectorUserList,
massMarksDetectorUserList,
labelsLayerMarksDetectorUserList,
} from "@/api/detector/detectorUser";
import { import {
pipeData, pipeData,
tiaoyaxiang, tiaoyaxiang,
...@@ -171,7 +181,7 @@ import { ...@@ -171,7 +181,7 @@ import {
userAlarm, userAlarm,
getTcqDevice, getTcqDevice,
getYhq, getYhq,
deviceUser deviceUser,
} from "@/api/bigWindow/getDevice"; } from "@/api/bigWindow/getDevice";
import Line from "@/components/bigWindow/Line.vue"; import Line from "@/components/bigWindow/Line.vue";
import VideoView from "@/components/bigWindow/VideoView.vue"; import VideoView from "@/components/bigWindow/VideoView.vue";
...@@ -190,9 +200,9 @@ import { getUserProfile } from "@/api/system/user"; ...@@ -190,9 +200,9 @@ import { getUserProfile } from "@/api/system/user";
import leftBar from "@/components/bigWindow/leftBar.vue"; import leftBar from "@/components/bigWindow/leftBar.vue";
import rightBar from "@/components/bigWindow/rightBar.vue"; import rightBar from "@/components/bigWindow/rightBar.vue";
import Bottom from "./components/Bottom.vue"; import Bottom from "./components/Bottom.vue";
import { mapState } from 'vuex' import { mapState } from "vuex";
import MediumPressureLineVue from '../../components/bigWindow/MediumPressureLine.vue'; import MediumPressureLineVue from "../../components/bigWindow/MediumPressureLine.vue";
import PipeSelect from '../../components/bigWindow/PipeSelect.vue'; import PipeSelect from "../../components/bigWindow/PipeSelect.vue";
export default { export default {
name: "Home", name: "Home",
components: { components: {
...@@ -217,6 +227,8 @@ export default { ...@@ -217,6 +227,8 @@ export default {
nowDate: "", nowDate: "",
nowweek: "", nowweek: "",
nowtime: "", // 当前日期 nowtime: "", // 当前日期
changeRightBarStyle: "",
changeLeftBarStyle: "",
typeList: [ typeList: [
{ {
val: 1, val: 1,
...@@ -300,7 +312,7 @@ export default { ...@@ -300,7 +312,7 @@ export default {
}, },
computed: { computed: {
...mapGetters(["company", "systemSetting","enterpriseId"]), ...mapGetters(["company", "systemSetting", "enterpriseId"]),
companyLength() { companyLength() {
return this.typeList.length; return this.typeList.length;
}, },
...@@ -313,6 +325,12 @@ export default { ...@@ -313,6 +325,12 @@ export default {
} }
}, },
}, },
created() {
window.addEventListener("resize", this.leftRightBarChange);
this.leftRightBarChange();
// changeRightBarStyle
},
async mounted() { async mounted() {
// console.log(99999999999999) // console.log(99999999999999)
// getPipe().then(res=>{ // getPipe().then(res=>{
...@@ -334,10 +352,10 @@ export default { ...@@ -334,10 +352,10 @@ export default {
this this
); );
getUserProfile().then(response => { getUserProfile().then((response) => {
var user = response.data; var user = response.data;
if(user.deptId ==13){ if (user.deptId == 13) {
this.map.setCenter(["117.908541","39.688353"]) this.map.setCenter(["117.908541", "39.688353"]);
} }
}); });
...@@ -369,22 +387,32 @@ export default { ...@@ -369,22 +387,32 @@ export default {
await this.goMap(getEnterprise, this.addDevice, Company, true); await this.goMap(getEnterprise, this.addDevice, Company, true);
// this.goMap(getPipe, this.addPipeLine, Line, true); // this.goMap(getPipe, this.addPipeLine, Line, true);
//管道 //管道
this.goMediumPressureLineMap(getPipe, this.addMediumPipeLine, Line,MediumPressureLineVue, true); this.goMediumPressureLineMap(
getPipe,
this.addMediumPipeLine,
Line,
MediumPressureLineVue,
true
);
//调压箱 //调压箱
this.labelsLayerMarksTysGoMap(getTyx, Device, false); this.labelsLayerMarksTysGoMap(getTyx, Device, false);
//阀门井 //阀门井
this.labelsLayerMarksFmjGoMap(getFm, Device, false); this.labelsLayerMarksFmjGoMap(getFm, Device, false);
//场站 //场站
this.labelsLayerMarksCzGoMap(getCz,Cz, false); this.labelsLayerMarksCzGoMap(getCz, Cz, false);
//监控 //监控
this.labelsLayerMarksVideoGoMap(getVideo,VideoView, false); this.labelsLayerMarksVideoGoMap(getVideo, VideoView, false);
//this.goMap(getYhq, this.addDevice2, yhqUser, false); //液化气用户上图 //this.goMap(getYhq, this.addDevice2, yhqUser, false); //液化气用户上图
if (this.enterpriseId==-2){ if (this.enterpriseId == -2) {
this.labelsLayerMarksDeviceUserGoMap(deviceUser, yhqUser, false); //用户上图 this.labelsLayerMarksDeviceUserGoMap(deviceUser, yhqUser, false); //用户上图
} }
// 用户要等一下 因为有报警数据 // 用户要等一下 因为有报警数据
this.labelsLayerMarksDetectorUserGoMap(labelsLayerMarksDetectorUserList,User, false).then((res) => { this.labelsLayerMarksDetectorUserGoMap(
labelsLayerMarksDetectorUserList,
User,
false
).then((res) => {
// 先查一下,然后开启定时器 // 先查一下,然后开启定时器
this.userAlarm(); this.userAlarm();
this.alarmTimer = setInterval(() => { this.alarmTimer = setInterval(() => {
...@@ -403,17 +431,42 @@ export default { ...@@ -403,17 +431,42 @@ export default {
...mapActions({ ...mapActions({
GetCompany: "bigWindowCompany/GetCompany", GetCompany: "bigWindowCompany/GetCompany",
}), }),
windowClick(){ leftRightBarChange() {
const scale = window.innerHeight / 1080;
let right = 0;
if (scale >= 1) {
right = (585 / 2) * (scale - 1) - 20;
} else {
right = (585 / 2) * (scale - 1) - 20;
}
// console.log("right", right, "scale", scale);
this.changeRightBarStyle = [
{ right: right + "px" },
{ transform: `scale(${scale})` },
];
this.changeLeftBarStyle = [
{ left: right + 20 + "px" },
{ transform: `scale(${scale})` },
];
},
windowClick() {
this.$refs.Bottom.selectUpClear(); this.$refs.Bottom.selectUpClear();
}, },
// 点击了 大屏端 管道搜索的清除键 // 点击了 大屏端 管道搜索的清除键
clearBigWindowsSelectPipe(){ clearBigWindowsSelectPipe() {
this.map.infowindowClose(); this.map.infowindowClose();
}, },
getPipeSelectMessage(data,id) { getPipeSelectMessage(data, id) {
let arrArea = data.split(','); let arrArea = data.split(",");
this.map.setCenter([arrArea[0],arrArea[1]]) this.map.setCenter([arrArea[0], arrArea[1]]);
this.map.filterSelectPipe(id,MediumPressureLineVue,arrArea[0],arrArea[1]); this.map.filterSelectPipe(
id,
MediumPressureLineVue,
arrArea[0],
arrArea[1]
);
}, },
// 管道上图 // 管道上图
addPipeLine(data, component) { addPipeLine(data, component) {
...@@ -424,10 +477,10 @@ export default { ...@@ -424,10 +477,10 @@ export default {
} }
}, },
// 管道上图 // 管道上图
addMediumPipeLine(data, component,mediumComponent) { addMediumPipeLine(data, component, mediumComponent) {
for (let comp in data) { for (let comp in data) {
data[comp].forEach((pipe) => { data[comp].forEach((pipe) => {
this.map.addMediumPipeLine(pipe, component,mediumComponent); this.map.addMediumPipeLine(pipe, component, mediumComponent);
}); });
} }
}, },
...@@ -461,7 +514,13 @@ export default { ...@@ -461,7 +514,13 @@ export default {
}); });
} }
}, },
goMediumPressureLineMap(httpFunc, addFunc, component,mediumComponent, show){ goMediumPressureLineMap(
httpFunc,
addFunc,
component,
mediumComponent,
show
) {
return httpFunc().then((res) => { return httpFunc().then((res) => {
// 给用户加icontype // 给用户加icontype
if (res.data && !res.data[0].iconType) { if (res.data && !res.data[0].iconType) {
...@@ -482,46 +541,41 @@ export default { ...@@ -482,46 +541,41 @@ export default {
} else { } else {
config = { data: res.data || res.rows }; config = { data: res.data || res.rows };
} }
addFunc(config, component, mediumComponent,show); addFunc(config, component, mediumComponent, show);
return config.iconType; return config.iconType;
}); });
}, },
labelsLayerMarksDeviceUserGoMap(httpFunc,component,show){ labelsLayerMarksDeviceUserGoMap(httpFunc, component, show) {
return httpFunc().then((res) => { return httpFunc().then((res) => {
const mapData = res.data; const mapData = res.data;
this.map.labelsLayerMarksDeviceUserGoMap(mapData, component, show); this.map.labelsLayerMarksDeviceUserGoMap(mapData, component, show);
}) });
} },
, labelsLayerMarksVideoGoMap(httpFunc, component, show) {
labelsLayerMarksVideoGoMap(httpFunc,component,show){
return httpFunc().then((res) => { return httpFunc().then((res) => {
const mapData = res.data; const mapData = res.data;
this.map.labelsLayerMarksVideoGoMap(mapData, component, show); this.map.labelsLayerMarksVideoGoMap(mapData, component, show);
}) });
} },
, labelsLayerMarksCzGoMap(httpFunc, component, show) {
labelsLayerMarksCzGoMap(httpFunc,component,show){
return httpFunc().then((res) => { return httpFunc().then((res) => {
const mapData = res.data; const mapData = res.data;
this.map.labelsLayerMarksCzGoMap(mapData, component, show); this.map.labelsLayerMarksCzGoMap(mapData, component, show);
}) });
} },
, labelsLayerMarksFmjGoMap(httpFunc, component, show) {
labelsLayerMarksFmjGoMap(httpFunc,component,show){
return httpFunc().then((res) => { return httpFunc().then((res) => {
const mapData = res.data; const mapData = res.data;
this.map.labelsLayerMarksFmjGoMap(mapData, component, show); this.map.labelsLayerMarksFmjGoMap(mapData, component, show);
}) });
} },
, labelsLayerMarksTysGoMap(httpFunc, component, show) {
labelsLayerMarksTysGoMap(httpFunc,component,show){
return httpFunc().then((res) => { return httpFunc().then((res) => {
const mapData = res.data; const mapData = res.data;
this.map.labelsLayerMarksTysGoMap(mapData, component, show); this.map.labelsLayerMarksTysGoMap(mapData, component, show);
}) });
} },
,
labelsLayerMarksDetectorUserGoMap(httpFunc, component, show) { labelsLayerMarksDetectorUserGoMap(httpFunc, component, show) {
return httpFunc().then((res) => { return httpFunc().then((res) => {
const mapData = res.data; const mapData = res.data;
...@@ -572,9 +626,9 @@ export default { ...@@ -572,9 +626,9 @@ export default {
// }, // },
// 更改下方列表 // 更改下方列表
listChange(arr) { listChange(arr) {
console.log(arr) console.log(arr);
// return; // return;
this.selarr=[...arr] this.selarr = [...arr];
this.map.allfilter(this.selarr, this.selarr1); this.map.allfilter(this.selarr, this.selarr1);
this.map.infowindowClose(); this.map.infowindowClose();
this.show = false; this.show = false;
...@@ -653,7 +707,6 @@ export default { ...@@ -653,7 +707,6 @@ export default {
getTcqDevice(queryParams, title) { getTcqDevice(queryParams, title) {
console.log(queryParams); console.log(queryParams);
return getTcqDevice(queryParams).then((res) => { return getTcqDevice(queryParams).then((res) => {
this.detcetorList = res; this.detcetorList = res;
this.centerUserId = queryParams.devId; this.centerUserId = queryParams.devId;
// 总数据 // 总数据
...@@ -700,6 +753,7 @@ export default { ...@@ -700,6 +753,7 @@ export default {
}, },
// 销毁定时器 // 销毁定时器
beforeDestroy() { beforeDestroy() {
window.removeEventListener("resize",this.leftRightBarChange);
if (this.formatDate) { if (this.formatDate) {
clearInterval(this.formatDate); // 在Vue实例销毁前,清除时间定时器 clearInterval(this.formatDate); // 在Vue实例销毁前,清除时间定时器
} }
...@@ -755,9 +809,13 @@ export default { ...@@ -755,9 +809,13 @@ export default {
.leftbar { .leftbar {
width: 565px; width: 565px;
height: 93%; // height: 93%;
height: 1010px;
position: fixed; position: fixed;
top: 70px; // top: 70px;
top: 50%;
margin-top: -470px;
z-index: 999; z-index: 999;
background: url("../../assets/firstimage/le.png"); background: url("../../assets/firstimage/le.png");
background-size: 105% 100%; background-size: 105% 100%;
...@@ -767,15 +825,15 @@ export default { ...@@ -767,15 +825,15 @@ export default {
} }
.rightbar { .rightbar {
width: 585px; width: 585px;
height: 93%; height: 1010px;
position: fixed; position: fixed;
top: 70px; top: 50%;
margin-top: -470px;
z-index: 999; z-index: 999;
right: 0; // right: 861px;
background: url("../../assets/firstimage/ri.png"); background: url("../../assets/firstimage/ri.png");
background-size: 100% 100%; background-size: 100% 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
margin-right: -20px;
pointer-events: none; pointer-events: none;
} }
.home-div { .home-div {
......
...@@ -2,22 +2,22 @@ ...@@ -2,22 +2,22 @@
<el-dialog title="详情" :visible.sync="detailOpen" width="1000px" append-to-body destroy-on-close :close-on-click-modal="false"> <el-dialog title="详情" :visible.sync="detailOpen" width="1000px" append-to-body destroy-on-close :close-on-click-modal="false">
<el-form label-width="170px"> <el-form label-width="170px">
<el-row class="el-row-table"> <el-row class="el-row-table">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="项目名称"> <el-form-item label="燃气企业" >
<span v-if="detailInfo.fProjectName">{{ detailInfo.fProjectName }}</span> <span>{{ enterpriseName }}</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.fEntUuid">{{ detailInfo.fEntUuid }}</span> <span v-if="detailInfo.fProjectName">{{ detailInfo.fProjectName }}</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="项目所在县级行政区ID" > <el-form-item label="项目所在县级行政区" >
<span v-if="detailInfo.fRegion">{{ detailInfo.fRegion }}</span> <span v-if="detailInfo.fRegion">{{ detailInfo.fRegion }}</span>
<span v-else>-</span> <span v-else>-</span>
</el-form-item> </el-form-item>
...@@ -143,19 +143,55 @@ ...@@ -143,19 +143,55 @@
<script> <script>
import { getProcess } from "@/api/oldpipesystem/process"; import { getProcess } from "@/api/oldpipesystem/process";
import { enterpriseLists ,queryAllEnterprise} from "@/api/regulation/info";
import { getDefaultCountyList } from "@/api/area/county";
export default { export default {
name: "detail-info", name: "detail-info",
data(){ data(){
return{ return{
enterprises: [],
countyInfo: [],
detailInfo: {}, detailInfo: {},
enterpriseName:"",
detailOpen: false detailOpen: false
} }
}, },
created() {
this.getCountyInfo();
this.getEnterpriseLists();
},
methods:{ methods:{
//获取县级
getCountyInfo(){
getDefaultCountyList().then(res =>{
if(res.code == 200 && res.data){
this.countyInfo = res.data;
}
})
},
//所属单位
getEnterpriseLists(){
queryAllEnterprise().then(response => {
this.enterprises = response;
});
},
beyondCountyFormat(row){
let info = this.countyInfo.find(item => item.fId == row.fRegion);
return info?info.fName:"-";
},
beyondCompanyFormat(row){
let info = this.enterprises.find(item => item.enterpriseId == row.fEnterpriseId);
return info?info.enterpriseName:"-";
},
getDetailInfo(id){ getDetailInfo(id){
getProcess(id).then(res =>{ getProcess(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.fRegion = this.beyondCountyFormat(this.detailInfo);
let fEnterpriseId = this.detailInfo.fEnterpriseId;
if (fEnterpriseId != null) {
this.enterpriseName= this.beyondCompanyFormat(this.detailInfo);
}
this.detailOpen = true; this.detailOpen = true;
} }
}) })
......
...@@ -131,18 +131,9 @@ ...@@ -131,18 +131,9 @@
<span v-else>-</span> <span v-else>-</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="是否已上传" align="center" prop="fUploadType"> <el-table-column label="上传状态" align="center" prop="fUploadType" :formatter="uploadStateFormat">
<template slot-scope="scope">
<span v-if="scope.row.fUploadType == '0'"></span>
<span v-else-if="scope.row.fUploadType == '1'"></span>
<span v-else>-</span>
</template>
</el-table-column> </el-table-column>
<el-table-column label="上传时间" align="center" prop="fUploadTime" width="150"> <el-table-column label="上传时间" align="center" prop="fUploadTime" width="150" :formatter="uploadTimeFormat">
<template slot-scope="scope">
<span v-if="scope.row.fUploadTime != null">{{ scope.row.fUploadTime }}</span>
<span v-else>-</span>
</template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -170,13 +161,7 @@ ...@@ -170,13 +161,7 @@
size="mini" size="mini"
type="text" type="text"
@click="handleReport(scope.row)" @click="handleReport(scope.row)"
v-if="(user.roleId==1||user.roleId==5)&&scope.row.fUploadType==0" v-if="judgeUploadIsShow((scope.row))"
>上传</el-button>
<el-button
size="mini"
type="text"
@click="handleReport2(scope.row)"
v-if="(user.roleId==1||user.roleId==3)&&scope.row.fUploadType==1"
>上传</el-button> >上传</el-button>
</template> </template>
</el-table-column> </el-table-column>
...@@ -203,14 +188,7 @@ ...@@ -203,14 +188,7 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="燃气企业" prop="beyondEnterpriseId"> <el-form-item label="燃气企业" prop="beyondEnterpriseId">
<el-select v-model="form.fEnterpriseId" placeholder="请选择所属企业名称" style="width: 100%" > <el-input v-model="enterpriseName" :disabled="true"></el-input>
<el-option
v-for="item in enterprises"
:key="parseInt(item.enterpriseId)"
:label="item.enterpriseName"
:value="parseInt(item.enterpriseId)">
</el-option>
</el-select>
</el-form-item> </el-form-item>
<!--<el-form-item label="燃气企业编码" prop="fEntUuid">--> <!--<el-form-item label="燃气企业编码" prop="fEntUuid">-->
<!--<el-input v-model="form.fEntUuid" placeholder="请输入燃气企业编码" />--> <!--<el-input v-model="form.fEntUuid" placeholder="请输入燃气企业编码" />-->
...@@ -287,7 +265,7 @@ ...@@ -287,7 +265,7 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="项目总投资/万元" prop="fTotalInvestment"> <el-form-item label="项目总投资/万元" prop="fTotalInvestment">
<el-input v-model="form.fTotalInvestment" placeholder="请输入项目总投资/万元" /> <el-input-number style="width: 100%;" v-model="form.fTotalInvestment" class="left-aligned-input" :controls="false" :min="0" placeholder="请输入项目总投资/万元" />
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -330,13 +308,13 @@ ...@@ -330,13 +308,13 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="当前改造进度/百分比" prop="fReconstructionProgress"> <el-form-item label="当前改造进度/百分比" prop="fReconstructionProgress">
<el-input v-model="form.fReconstructionProgress" placeholder="请输入当前改造进度/百分比" /> <el-input-number style="width: 100%;" v-model="form.fReconstructionProgress" class="left-aligned-input" :controls="false" :min="0" :max="100" precision="2" placeholder="请输入当前改造进度/百分比" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="当前资金拨付进度/百分比" prop="fFundsDisbursementProgress"> <el-form-item label="当前资金拨付进度/百分比" prop="fFundsDisbursementProgress">
<el-input v-model="form.fFundsDisbursementProgress" placeholder="请输入当前资金拨付进度/百分比" /> <el-input-number style="width: 100%;" v-model="form.fFundsDisbursementProgress" class="left-aligned-input" :controls="false" :min="0" :max="100" precision="2" placeholder="请输入当前资金拨付进度/百分比" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -354,7 +332,7 @@ ...@@ -354,7 +332,7 @@
</template> </template>
<script> <script>
import { listProcess, getProcess, delProcess, addProcess, updateProcess, exportProcess } from "@/api/oldpipesystem/process"; import { listProcess, getProcess, delProcess, addProcess, updateProcess, exportProcess,reportPipeOldPlanProcess,entReportPipeOldPlanProcess } from "@/api/oldpipesystem/process";
import DetailInfo from "./components/DetailInfo"; import DetailInfo from "./components/DetailInfo";
import{getInfo} from "@/api/login" import{getInfo} from "@/api/login"
import { enterpriseLists } from "@/api/regulation/info"; import { enterpriseLists } from "@/api/regulation/info";
...@@ -368,6 +346,7 @@ export default { ...@@ -368,6 +346,7 @@ export default {
}, },
data() { data() {
return { return {
enterpriseName:"",
user:{}, user:{},
enterprises: [], enterprises: [],
countyInfo: [], countyInfo: [],
...@@ -426,7 +405,6 @@ export default { ...@@ -426,7 +405,6 @@ export default {
}; };
}, },
created() { created() {
this.getList();
this.getuserInfo(); this.getuserInfo();
this.getDicts("t_relation_object_type").then(response => { this.getDicts("t_relation_object_type").then(response => {
this.fRelationObjectTypeOptions = response.data; this.fRelationObjectTypeOptions = response.data;
...@@ -451,6 +429,7 @@ export default { ...@@ -451,6 +429,7 @@ export default {
getInfo().then(response => { getInfo().then(response => {
console.log(response); console.log(response);
this.user = response.user.roles[0] this.user = response.user.roles[0]
this.getList();
}); });
}, },
//所属单位 //所属单位
...@@ -460,9 +439,10 @@ export default { ...@@ -460,9 +439,10 @@ export default {
enterpriseLists(param).then(response => { enterpriseLists(param).then(response => {
if (response.rows.length>1){ if (response.rows.length>1){
this.enterprises = response.rows; this.enterprises = response.rows;
this.enterpriseName = response.rows[0].enterpriseName;
}else { }else {
this.form.fEnterpriseId=response.rows[0].enterpriseId;
this.enterprises = response.rows; this.enterprises = response.rows;
this.enterpriseName = response.rows[0].enterpriseName;
} }
}); });
...@@ -475,6 +455,10 @@ export default { ...@@ -475,6 +455,10 @@ export default {
/** 查询老旧管网改造计划列表 */ /** 查询老旧管网改造计划列表 */
getList() { getList() {
this.loading = true; this.loading = true;
// 企业查自己的数据
if (this.user.roleId == 5) {
this.queryParams.fEnterpriseId = this.$store.state.user.enterpriseId
}
listProcess(this.queryParams).then(response => { listProcess(this.queryParams).then(response => {
this.processList = response.rows; this.processList = response.rows;
this.total = response.total; this.total = response.total;
...@@ -490,6 +474,66 @@ export default { ...@@ -490,6 +474,66 @@ export default {
this.open = false; this.open = false;
this.reset(); this.reset();
}, },
//判断 上传是否需要显示,上传分为企业上传 和 政府端上传
judgeUploadIsShow(row) {
//角色 1 超级管理员 5 企业
let roleId = this.user.roleId;
// 企业端 上传状态 0-未上传,1-已上传
let entUploadState = row.fUploadType;
// 政府端 上传状态 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;
},
//上传状态动态展示
uploadStateFormat(row, column) {
//角色 1 超级管理员 5 企业
let roleId = this.user.roleId;
if (roleId == 5) {
if (row.fUploadType == '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.fUploadTime;
} else {
return row.govUploadTime;
}
},
// 表单重置 // 表单重置
reset() { reset() {
this.form = { this.form = {
...@@ -561,6 +605,7 @@ export default { ...@@ -561,6 +605,7 @@ export default {
this.getList(); this.getList();
}); });
} else { } else {
this.form.fEnterpriseId=this.enterprises[0].enterpriseId;
addProcess(this.form).then(response => { addProcess(this.form).then(response => {
this.msgSuccess("新增成功"); this.msgSuccess("新增成功");
this.open = false; this.open = false;
...@@ -605,35 +650,42 @@ export default { ...@@ -605,35 +650,42 @@ export default {
this.$refs.detail.getDetailInfo(row.fOldPlanProcessId); this.$refs.detail.getDetailInfo(row.fOldPlanProcessId);
}, },
handleReport(row){ handleReport(row){
console.log("-----------------------------"+row.fOldPlanProcessId) // 如果是 超级管理员或者 企业,并且 企业端上传状态为0
if ((this.user.roleId == 5 || this.user.roleId == 1) && row.fUploadType == '0') {
this.$confirm('是否确认上传老旧管网改造计划项目名称为"' + row.fProjectName + '"的数据项?', "警告", { this.$confirm('是否确认上传老旧管网改造计划项目名称为"' + row.fProjectName + '"的数据项?', "警告", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(function() { }).then(function() {
updateProcess({fOldPlanProcessId:row.fOldPlanProcessId,fUploadType:1}).then(response => { return entReportPipeOldPlanProcess({fOldPlanProcessId : row.fOldPlanProcessId});
this.msgSuccess("上传成功");
this.open = false;
this.getList();
});
return ;
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("上传成功"); this.msgSuccess("上传成功");
}).catch(() => {}); }).catch(() => {});
}, }
handleReport2(row){
var that = this
// 如果是 超级管理员或者 政府,并且 政府端上传状态为0
if ((this.user.roleId == 3 || this.user.roleId == 1) && row.govUploadState == '0') {
this.$confirm('是否确认上传老旧管网改造计划项目名称为"' + row.fProjectName + '"的数据项?', "警告", { this.$confirm('是否确认上传老旧管网改造计划项目名称为"' + row.fProjectName + '"的数据项?', "警告", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(function() { }).then(function() {
that.msgSuccess("上传成功"); return reportPipeOldPlanProcess({fOldPlanProcessId : row.fOldPlanProcessId});
this.open = false; }).then(() => {
return ; this.getList();
this.msgSuccess("上传成功");
}).catch(() => {}); }).catch(() => {});
} }
},
} }
}; };
</script> </script>
<style>
/* 自定义输入框样式 */
.left-aligned-input .el-input__inner{
text-align: left;
padding-left: 5px; /* 根据需要调整内边距 */
}
</style>
\ No newline at end of file
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-if="user.roleId==1||user.roleId==5"
>新增</el-button> >新增</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
...@@ -43,6 +44,7 @@ ...@@ -43,6 +44,7 @@
size="mini" size="mini"
:disabled="single" :disabled="single"
@click="handleUpdate" @click="handleUpdate"
v-if="user.roleId==1||user.roleId==5"
>修改</el-button> >修改</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
...@@ -53,6 +55,7 @@ ...@@ -53,6 +55,7 @@
size="mini" size="mini"
:disabled="multiple" :disabled="multiple"
@click="handleDelete" @click="handleDelete"
v-if="user.roleId==1||user.roleId==5"
>删除</el-button> >删除</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
...@@ -94,7 +97,8 @@ ...@@ -94,7 +97,8 @@
<span v-else>-</span> <span v-else>-</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="最后修改时间" align="center" prop="fUpdateTime" /> <el-table-column label="上传状态" align="center" prop="uploadState" :formatter="uploadStateFormat" />
<el-table-column label="上传时间" align="center" prop="uploadTime" :formatter="uploadTimeFormat" />
<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
...@@ -108,17 +112,20 @@ ...@@ -108,17 +112,20 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-if="user.roleId==1||user.roleId==5"
>修改</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="user.roleId==1||user.roleId==5"
>删除</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>
...@@ -210,10 +217,12 @@ ...@@ -210,10 +217,12 @@
</template> </template>
<script> <script>
import { listInc, getInc, delInc, addInc, updateInc, exportInc, reportAccidentInfo} from "@/api/thirdbuild/accident"; import { listInc, getInc, delInc, addInc, updateInc, exportInc, reportAccidentInfo,entReportConGasProInfo} from "@/api/thirdbuild/accident";
import { conGasProInfoList } from "@/api/thirdbuild/project"; import { conGasProInfoList } from "@/api/thirdbuild/project";
import FileUpload from '@/components/FileUpload'; import FileUpload from '@/components/FileUpload';
import{getInfo} from "@/api/login"
let uploadfile = require("@/assets/uploadfile.png"); let uploadfile = require("@/assets/uploadfile.png");
import { enterpriseLists } from "@/api/regulation/info";
import DetailInfo from "./components/DetailInfo"; import DetailInfo from "./components/DetailInfo";
export default { export default {
name: "Inc", name: "Inc",
...@@ -223,6 +232,8 @@ export default { ...@@ -223,6 +232,8 @@ export default {
}, },
data() { data() {
return { return {
user:{},
enterprises: [],
// 遮罩层 // 遮罩层
loading: true, loading: true,
// 导出遮罩层 // 导出遮罩层
...@@ -280,19 +291,104 @@ export default { ...@@ -280,19 +291,104 @@ export default {
}; };
}, },
created() { created() {
this.getuserInfo();
this.getEnterpriseLists();
},
methods: {
//所属单位
getEnterpriseLists(){
const param = {};
enterpriseLists(param).then(response => {
if (response.rows.length>1){
this.enterprises = response.rows;
this.enterpriseName = response.rows[0].enterpriseName;
}else {
this.enterprises = response.rows;
this.enterpriseName = response.rows[0].enterpriseName;
}
});
},
getuserInfo(){
getInfo().then(response => {
this.user = response.user.roles[0]
this.getList(); this.getList();
this.getProjectInfo(); this.getProjectInfo();
});
},
//上传状态动态展示
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;
}
}, },
methods: {
/** 查询涉气第三方施工意外事件列表 */ /** 查询涉气第三方施工意外事件列表 */
getList() { getList() {
this.loading = true; this.loading = true;
// 企业查自己的数据
if (this.user.roleId == 5) {
this.queryParams.fCompanyInfoId = this.$store.state.user.enterpriseId
}
listInc(this.queryParams).then(response => { listInc(this.queryParams).then(response => {
this.incList = response.rows; this.incList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
}); });
}, },
//判断 上传是否需要显示,上传分为企业上传 和 政府端上传
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;
},
// 取消按钮 // 取消按钮
cancel() { cancel() {
this.open = false; this.open = false;
...@@ -340,6 +436,10 @@ export default { ...@@ -340,6 +436,10 @@ export default {
const fConGasProIncId = row.fConGasProIncId || this.ids const fConGasProIncId = row.fConGasProIncId || this.ids
getInc(fConGasProIncId).then(response => { getInc(fConGasProIncId).then(response => {
this.form = response.data; this.form = response.data;
if (this.form.fAttachment) {
this.fileList = [{name: '附件', url: uploadfile}];
}
this.open = true; this.open = true;
this.title = "修改涉气第三方施工意外事件"; this.title = "修改涉气第三方施工意外事件";
}); });
...@@ -355,6 +455,7 @@ export default { ...@@ -355,6 +455,7 @@ export default {
this.getList(); this.getList();
}); });
} else { } else {
this.form.fCompanyInfoId=this.enterprises[0].enterpriseId;
addInc(this.form).then(response => { addInc(this.form).then(response => {
this.msgSuccess("新增成功"); this.msgSuccess("新增成功");
this.open = false; this.open = false;
...@@ -395,7 +496,12 @@ export default { ...@@ -395,7 +496,12 @@ export default {
}, },
//获取第三方施工项目信息 //获取第三方施工项目信息
getProjectInfo(){ getProjectInfo(){
conGasProInfoList({}).then(res =>{ // 企业查自己的数据
let conGasProInfoQueryParams = {};
if (this.user.roleId == 5) {
conGasProInfoQueryParams.fCompanyInfoId= this.$store.state.user.enterpriseId
}
conGasProInfoList(conGasProInfoQueryParams).then(res =>{
if(res.code == 200 && res.data){ if(res.code == 200 && res.data){
this.projectInfo = res.data; this.projectInfo = res.data;
} }
...@@ -420,8 +526,25 @@ export default { ...@@ -420,8 +526,25 @@ export default {
handleDetail(row){ handleDetail(row){
this.$refs.detail.getDetailInfo(row.fConGasProIncId); this.$refs.detail.getDetailInfo(row.fConGasProIncId);
}, },
/** 删除按钮操作 */ /** 上传按钮操作 */
handleReport(row) { handleReport(row) {
// 如果是 超级管理员 或这企业,并且 企业端上传状态为0
if ((this.user.roleId == 5 || this.user.roleId == 1) && row.entUploadState == '0') {
this.$confirm('是否确认上传项目编号为"' + row.projectCode + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
return entReportConGasProInfo({fConGasProIncId : row.fConGasProIncId});
}).then(() => {
this.getList();
this.msgSuccess("上传成功");
}).catch(() => {});
}
// 如果是 超级管理员 或这政府,并且 政府端上传状态为0
if ((this.user.roleId == 3 || this.user.roleId == 1) && row.govUploadState == '0') {
this.$confirm('是否确认上传项目编号为"' + row.projectCode + '"的数据项?', "警告", { this.$confirm('是否确认上传项目编号为"' + row.projectCode + '"的数据项?', "警告", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
...@@ -432,6 +555,7 @@ export default { ...@@ -432,6 +555,7 @@ export default {
this.getList(); this.getList();
this.msgSuccess("上传成功"); this.msgSuccess("上传成功");
}).catch(() => {}); }).catch(() => {});
}
}, },
} }
}; };
......
...@@ -257,37 +257,55 @@ ...@@ -257,37 +257,55 @@
<script> <script>
import { getInfor } from "@/api/thirdbuild/project"; import { getInfor } from "@/api/thirdbuild/project";
import { enterpriseLists } from "@/api/regulation/info"; import { enterpriseLists ,queryAllEnterprise} from "@/api/regulation/info";
import { getDefaultCountyList } from "@/api/area/county";
export default { export default {
name: "detail-info", name: "detail-info",
data(){ data(){
return{ return{
enterprises: [],
countyInfo: [],
enterpriseName:"", enterpriseName:"",
detailInfo: {}, detailInfo: {},
detailOpen: false detailOpen: false
} }
}, },
created() { created() {
this.getCountyInfo();
this.getEnterpriseLists(); this.getEnterpriseLists();
}, },
methods:{ methods:{
//获取县级
getCountyInfo(){
getDefaultCountyList().then(res =>{
if(res.code == 200 && res.data){
this.countyInfo = res.data;
}
})
},
beyondCountyFormat(row){
let info = this.countyInfo.find(item => item.fId == row.fDistrictId);
return info?info.fName:"-";
},
beyondCompanyFormat(row){
let info = this.enterprises.find(item => item.enterpriseId == row.fCompanyInfoId);
return info?info.enterpriseName:"-";
},
//所属单位 //所属单位
getEnterpriseLists(){ getEnterpriseLists(){
const param = {}; queryAllEnterprise().then(response => {
enterpriseLists(param).then(response => { this.enterprises = response;
if (response.rows.length>1){
this.enterprises = response.rows;
this.enterpriseName = response.rows[0].enterpriseName;
}else {
this.enterprises = response.rows;
this.enterpriseName = response.rows[0].enterpriseName;
}
}); });
}, },
getDetailInfo(id){ getDetailInfo(id){
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.fDistrictId = this.beyondCountyFormat(this.detailInfo);
let companyInfoId = this.detailInfo.fCompanyInfoId;
if (companyInfoId != null) {
this.enterpriseName= this.beyondCompanyFormat(this.detailInfo);
}
this.detailOpen = true; this.detailOpen = true;
} }
}) })
......
...@@ -99,6 +99,8 @@ ...@@ -99,6 +99,8 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="管道压力等级分类" align="center" prop="fPipePress" :formatter="fPipePressFormat" /> <el-table-column label="管道压力等级分类" align="center" prop="fPipePress" :formatter="fPipePressFormat" />
<el-table-column label="上传状态" align="center" prop="uploadState" :formatter="uploadStateFormat" />
<el-table-column label="上传时间" align="center" prop="uploadTime" :formatter="uploadTimeFormat" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="210"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="210">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
...@@ -144,7 +146,7 @@ ...@@ -144,7 +146,7 @@
<el-form ref="form" :model="form" :rules="rules" label-width="180px"> <el-form ref="form" :model="form" :rules="rules" label-width="180px">
<el-row class="el-row-table"> <el-row class="el-row-table">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="燃气企业" prop="fEnterpriseId"> <el-form-item label="燃气企业" prop="fCompanyInfoId">
<el-input v-model="enterpriseName" :disabled="true"></el-input> <el-input v-model="enterpriseName" :disabled="true"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -496,6 +498,7 @@ export default { ...@@ -496,6 +498,7 @@ export default {
data() { data() {
return { return {
enterpriseName:"", enterpriseName:"",
enterprises: [],
user:{}, user:{},
countyInfo: [], countyInfo: [],
// 遮罩层 // 遮罩层
...@@ -529,6 +532,7 @@ export default { ...@@ -529,6 +532,7 @@ export default {
fProjectNo: null, fProjectNo: null,
fProjectName: null, fProjectName: null,
fPipePress: null, fPipePress: null,
fCompanyInfoId: null,
}, },
// 表单参数 // 表单参数
form: {}, form: {},
...@@ -577,7 +581,6 @@ export default { ...@@ -577,7 +581,6 @@ export default {
}, },
created() { created() {
this.getuserInfo(); this.getuserInfo();
this.getList();
this.getCountyInfo(); this.getCountyInfo();
this.getEnterpriseLists(); this.getEnterpriseLists();
this.getDicts("t_pipe_press").then(response => { this.getDicts("t_pipe_press").then(response => {
...@@ -591,11 +594,9 @@ export default { ...@@ -591,11 +594,9 @@ export default {
enterpriseLists(param).then(response => { enterpriseLists(param).then(response => {
if (response.rows.length>1){ if (response.rows.length>1){
this.enterprises = response.rows; this.enterprises = response.rows;
this.form.fEnterpriseId=response.rows[0].enterpriseId;
this.enterpriseName = response.rows[0].enterpriseName; this.enterpriseName = response.rows[0].enterpriseName;
}else { }else {
this.enterprises = response.rows; this.enterprises = response.rows;
this.form.fEnterpriseId=response.rows[0].enterpriseId;
this.enterpriseName = response.rows[0].enterpriseName; this.enterpriseName = response.rows[0].enterpriseName;
} }
}); });
...@@ -615,6 +616,11 @@ export default { ...@@ -615,6 +616,11 @@ export default {
/** 查询涉气第三方施工项目档案列表 */ /** 查询涉气第三方施工项目档案列表 */
getList() { getList() {
this.loading = true; this.loading = true;
// 企业查自己的数据
if (this.user.roleId == 5) {
this.queryParams.fCompanyInfoId = this.$store.state.user.enterpriseId
}
console.log("this.queryParams = " + this.queryParams)
listInfor(this.queryParams).then(response => { listInfor(this.queryParams).then(response => {
this.inforList = response.rows; this.inforList = response.rows;
this.total = response.total; this.total = response.total;
...@@ -625,6 +631,35 @@ export default { ...@@ -625,6 +631,35 @@ export default {
fPipePressFormat(row, column) { fPipePressFormat(row, column) {
return this.selectDictLabel(this.fPipePressOptions, row.fPipePress); return this.selectDictLabel(this.fPipePressOptions, row.fPipePress);
}, },
//上传状态动态展示
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;
}
},
// 取消按钮 // 取消按钮
cancel() { cancel() {
this.open = false; this.open = false;
...@@ -698,8 +733,6 @@ export default { ...@@ -698,8 +733,6 @@ export default {
this.reset(); this.reset();
this.open = true; this.open = true;
this.title = "添加涉气第三方施工项目档案"; this.title = "添加涉气第三方施工项目档案";
this.formData.operator_id = this.operatorLists[0].id
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
...@@ -714,8 +747,6 @@ export default { ...@@ -714,8 +747,6 @@ export default {
//判断 上传是否需要显示,上传分为企业上传 和 政府端上传 //判断 上传是否需要显示,上传分为企业上传 和 政府端上传
judgeUploadIsShow(row) { judgeUploadIsShow(row) {
console.log("judgeUploadIsShow"+row)
//角色 1 超级管理员 5 企业 //角色 1 超级管理员 5 企业
let roleId = this.user.roleId; let roleId = this.user.roleId;
...@@ -730,9 +761,9 @@ export default { ...@@ -730,9 +761,9 @@ export default {
return false; return false;
} }
// 如果企业端上传了,则企业端就不能显示了,政府端能显示 // 如果企业端上传了,则企业端就不能显示了,政府端和 超级管理员能显示
if(entUploadState === '1' && govUploadState === '0') { if(entUploadState === '1' && govUploadState === '0') {
if (roleId === 1 | roleId === 5) { if (roleId === 5) {
return false; return false;
} else { } else {
return true; return true;
...@@ -745,12 +776,13 @@ export default { ...@@ -745,12 +776,13 @@ export default {
}, },
getuserInfo(){ getuserInfo(){
getInfo().then(response => { getInfo().then(response => {
console.log(response);
this.user = response.user.roles[0] this.user = response.user.roles[0]
this.getList();
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
this.form.fCompanyInfoId=this.enterprises[0].enterpriseId;
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
if (this.form.fConGasProInforId != null) { if (this.form.fConGasProInforId != null) {
...@@ -827,8 +859,8 @@ export default { ...@@ -827,8 +859,8 @@ export default {
/** 上传按钮操作 */ /** 上传按钮操作 */
handleReport(row) { handleReport(row) {
if (this.user.roleId == 1 || this.user.roleId == 5 ) { // 如果是 超级管理员 或这企业,并且 企业端上传状态为0
if ((this.user.roleId == 5 || this.user.roleId == 1) && row.entUploadState == '0') {
this.$confirm('是否确认上传涉气第三方施工项目档案名称为"' + row.fProjectName + '"的数据项?', "警告", { this.$confirm('是否确认上传涉气第三方施工项目档案名称为"' + row.fProjectName + '"的数据项?', "警告", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
...@@ -839,7 +871,10 @@ export default { ...@@ -839,7 +871,10 @@ export default {
this.getList(); this.getList();
this.msgSuccess("上传成功"); this.msgSuccess("上传成功");
}).catch(() => {}); }).catch(() => {});
} else { }
// 如果是 超级管理员 或这政府,并且 政府端上传状态为0
if ((this.user.roleId == 3 || this.user.roleId == 1) && row.govUploadState == '0') {
this.$confirm('是否确认上传涉气第三方施工项目档案名称为"' + row.fProjectName + '"的数据项?', "警告", { this.$confirm('是否确认上传涉气第三方施工项目档案名称为"' + row.fProjectName + '"的数据项?', "警告", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
......
...@@ -35,8 +35,9 @@ module.exports = { ...@@ -35,8 +35,9 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
target: `http://localhost:8905/gassafety`, // target: `http://localhost:8905/gassafety`,
// target: `http://27.128.233.145:8905/gassafety`, // target: `http://27.128.233.145:8905/gassafety`,
target: ` http://36.138.180.82:8905/gassafety`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment