Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
gassafety-progress
Commits
111cd450
Commit
111cd450
authored
Jan 24, 2022
by
wuqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2022-1-24 吴卿华 增加燃 气经营企业信息列表功能
parent
a2f8805b
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1038 additions
and
1 deletion
+1038
-1
TEnterpriseInfoController.java
...hong/web/controller/system/TEnterpriseInfoController.java
+103
-0
TEnterpriseInfo.java
...c/main/java/com/zehong/system/domain/TEnterpriseInfo.java
+166
-0
TEnterpriseInfoMapper.java
.../java/com/zehong/system/mapper/TEnterpriseInfoMapper.java
+61
-0
ITEnterpriseInfoService.java
...va/com/zehong/system/service/ITEnterpriseInfoService.java
+61
-0
TEnterpriseInfoServiceImpl.java
...ehong/system/service/impl/TEnterpriseInfoServiceImpl.java
+96
-0
TEnterpriseInfoMapper.xml
...rc/main/resources/mapper/system/TEnterpriseInfoMapper.xml
+113
-0
info.js
gassafetyprogress-web/src/api/regulation/info.js
+53
-0
index.vue
gassafetyprogress-web/src/views/regulation/info/index.vue
+384
-0
vue.config.js
gassafetyprogress-web/vue.config.js
+1
-1
No files found.
gassafetyprogress-admin/src/main/java/com/zehong/web/controller/system/TEnterpriseInfoController.java
0 → 100644
View file @
111cd450
package
com
.
zehong
.
web
.
controller
.
system
;
import
java.util.List
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.system.domain.TEnterpriseInfo
;
import
com.zehong.system.service.ITEnterpriseInfoService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 企业信息Controller
*
* @author zehong
* @date 2022-01-24
*/
@RestController
@RequestMapping
(
"/regulation/info"
)
public
class
TEnterpriseInfoController
extends
BaseController
{
@Autowired
private
ITEnterpriseInfoService
tEnterpriseInfoService
;
/**
* 查询企业信息列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:info:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TEnterpriseInfo
tEnterpriseInfo
)
{
startPage
();
List
<
TEnterpriseInfo
>
list
=
tEnterpriseInfoService
.
selectTEnterpriseInfoList
(
tEnterpriseInfo
);
return
getDataTable
(
list
);
}
/**
* 导出企业信息列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:info:export')"
)
@Log
(
title
=
"企业信息"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TEnterpriseInfo
tEnterpriseInfo
)
{
List
<
TEnterpriseInfo
>
list
=
tEnterpriseInfoService
.
selectTEnterpriseInfoList
(
tEnterpriseInfo
);
ExcelUtil
<
TEnterpriseInfo
>
util
=
new
ExcelUtil
<
TEnterpriseInfo
>(
TEnterpriseInfo
.
class
);
return
util
.
exportExcel
(
list
,
"企业信息数据"
);
}
/**
* 获取企业信息详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('system:info:query')"
)
@GetMapping
(
value
=
"/{enterpriseId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"enterpriseId"
)
Long
enterpriseId
)
{
return
AjaxResult
.
success
(
tEnterpriseInfoService
.
selectTEnterpriseInfoById
(
enterpriseId
));
}
/**
* 新增企业信息
*/
@PreAuthorize
(
"@ss.hasPermi('system:info:add')"
)
@Log
(
title
=
"企业信息"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TEnterpriseInfo
tEnterpriseInfo
)
{
return
toAjax
(
tEnterpriseInfoService
.
insertTEnterpriseInfo
(
tEnterpriseInfo
));
}
/**
* 修改企业信息
*/
@PreAuthorize
(
"@ss.hasPermi('system:info:edit')"
)
@Log
(
title
=
"企业信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TEnterpriseInfo
tEnterpriseInfo
)
{
return
toAjax
(
tEnterpriseInfoService
.
updateTEnterpriseInfo
(
tEnterpriseInfo
));
}
/**
* 删除企业信息
*/
@PreAuthorize
(
"@ss.hasPermi('system:info:remove')"
)
@Log
(
title
=
"企业信息"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{enterpriseIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
enterpriseIds
)
{
return
toAjax
(
tEnterpriseInfoService
.
deleteTEnterpriseInfoByIds
(
enterpriseIds
));
}
}
gassafetyprogress-system/src/main/java/com/zehong/system/domain/TEnterpriseInfo.java
0 → 100644
View file @
111cd450
package
com
.
zehong
.
system
.
domain
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
* 企业信息对象 t_enterprise_info
*
* @author zehong
* @date 2022-01-24
*/
public
class
TEnterpriseInfo
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 企业id */
private
Long
enterpriseId
;
/** 企业名称 */
@Excel
(
name
=
"企业名称"
)
private
String
enterpriseName
;
/** 注册地址 */
@Excel
(
name
=
"注册地址"
)
private
String
registerAddress
;
/** 法定代表人 */
@Excel
(
name
=
"法定代表人"
)
private
String
legalRepresentative
;
/** 经营区域 */
@Excel
(
name
=
"经营区域"
)
private
String
businessArea
;
/** 许可证编号 */
@Excel
(
name
=
"许可证编号"
)
private
String
licenseKey
;
/** 许可证有效期 */
@Excel
(
name
=
"许可证有效期"
)
private
String
licenseValidityTime
;
/** 年度监督检查情况 */
@Excel
(
name
=
"年度监督检查情况"
)
private
String
annualSupervisionInspection
;
/** 是否删除(0正常,1删除) */
private
String
isDel
;
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
remarks
;
public
void
setEnterpriseId
(
Long
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
Long
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseName
(
String
enterpriseName
)
{
this
.
enterpriseName
=
enterpriseName
;
}
public
String
getEnterpriseName
()
{
return
enterpriseName
;
}
public
void
setRegisterAddress
(
String
registerAddress
)
{
this
.
registerAddress
=
registerAddress
;
}
public
String
getRegisterAddress
()
{
return
registerAddress
;
}
public
void
setLegalRepresentative
(
String
legalRepresentative
)
{
this
.
legalRepresentative
=
legalRepresentative
;
}
public
String
getLegalRepresentative
()
{
return
legalRepresentative
;
}
public
void
setBusinessArea
(
String
businessArea
)
{
this
.
businessArea
=
businessArea
;
}
public
String
getBusinessArea
()
{
return
businessArea
;
}
public
void
setLicenseKey
(
String
licenseKey
)
{
this
.
licenseKey
=
licenseKey
;
}
public
String
getLicenseKey
()
{
return
licenseKey
;
}
public
void
setLicenseValidityTime
(
String
licenseValidityTime
)
{
this
.
licenseValidityTime
=
licenseValidityTime
;
}
public
String
getLicenseValidityTime
()
{
return
licenseValidityTime
;
}
public
void
setAnnualSupervisionInspection
(
String
annualSupervisionInspection
)
{
this
.
annualSupervisionInspection
=
annualSupervisionInspection
;
}
public
String
getAnnualSupervisionInspection
()
{
return
annualSupervisionInspection
;
}
public
void
setIsDel
(
String
isDel
)
{
this
.
isDel
=
isDel
;
}
public
String
getIsDel
()
{
return
isDel
;
}
public
void
setRemarks
(
String
remarks
)
{
this
.
remarks
=
remarks
;
}
public
String
getRemarks
()
{
return
remarks
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"enterpriseId"
,
getEnterpriseId
())
.
append
(
"enterpriseName"
,
getEnterpriseName
())
.
append
(
"registerAddress"
,
getRegisterAddress
())
.
append
(
"legalRepresentative"
,
getLegalRepresentative
())
.
append
(
"businessArea"
,
getBusinessArea
())
.
append
(
"licenseKey"
,
getLicenseKey
())
.
append
(
"licenseValidityTime"
,
getLicenseValidityTime
())
.
append
(
"annualSupervisionInspection"
,
getAnnualSupervisionInspection
())
.
append
(
"createBy"
,
getCreateBy
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"isDel"
,
getIsDel
())
.
append
(
"remarks"
,
getRemarks
())
.
toString
();
}
}
gassafetyprogress-system/src/main/java/com/zehong/system/mapper/TEnterpriseInfoMapper.java
0 → 100644
View file @
111cd450
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TEnterpriseInfo
;
/**
* 企业信息Mapper接口
*
* @author zehong
* @date 2022-01-24
*/
public
interface
TEnterpriseInfoMapper
{
/**
* 查询企业信息
*
* @param enterpriseId 企业信息ID
* @return 企业信息
*/
public
TEnterpriseInfo
selectTEnterpriseInfoById
(
Long
enterpriseId
);
/**
* 查询企业信息列表
*
* @param tEnterpriseInfo 企业信息
* @return 企业信息集合
*/
public
List
<
TEnterpriseInfo
>
selectTEnterpriseInfoList
(
TEnterpriseInfo
tEnterpriseInfo
);
/**
* 新增企业信息
*
* @param tEnterpriseInfo 企业信息
* @return 结果
*/
public
int
insertTEnterpriseInfo
(
TEnterpriseInfo
tEnterpriseInfo
);
/**
* 修改企业信息
*
* @param tEnterpriseInfo 企业信息
* @return 结果
*/
public
int
updateTEnterpriseInfo
(
TEnterpriseInfo
tEnterpriseInfo
);
/**
* 删除企业信息
*
* @param enterpriseId 企业信息ID
* @return 结果
*/
public
int
deleteTEnterpriseInfoById
(
Long
enterpriseId
);
/**
* 批量删除企业信息
*
* @param enterpriseIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTEnterpriseInfoByIds
(
Long
[]
enterpriseIds
);
}
gassafetyprogress-system/src/main/java/com/zehong/system/service/ITEnterpriseInfoService.java
0 → 100644
View file @
111cd450
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TEnterpriseInfo
;
/**
* 企业信息Service接口
*
* @author zehong
* @date 2022-01-24
*/
public
interface
ITEnterpriseInfoService
{
/**
* 查询企业信息
*
* @param enterpriseId 企业信息ID
* @return 企业信息
*/
public
TEnterpriseInfo
selectTEnterpriseInfoById
(
Long
enterpriseId
);
/**
* 查询企业信息列表
*
* @param tEnterpriseInfo 企业信息
* @return 企业信息集合
*/
public
List
<
TEnterpriseInfo
>
selectTEnterpriseInfoList
(
TEnterpriseInfo
tEnterpriseInfo
);
/**
* 新增企业信息
*
* @param tEnterpriseInfo 企业信息
* @return 结果
*/
public
int
insertTEnterpriseInfo
(
TEnterpriseInfo
tEnterpriseInfo
);
/**
* 修改企业信息
*
* @param tEnterpriseInfo 企业信息
* @return 结果
*/
public
int
updateTEnterpriseInfo
(
TEnterpriseInfo
tEnterpriseInfo
);
/**
* 批量删除企业信息
*
* @param enterpriseIds 需要删除的企业信息ID
* @return 结果
*/
public
int
deleteTEnterpriseInfoByIds
(
Long
[]
enterpriseIds
);
/**
* 删除企业信息信息
*
* @param enterpriseId 企业信息ID
* @return 结果
*/
public
int
deleteTEnterpriseInfoById
(
Long
enterpriseId
);
}
gassafetyprogress-system/src/main/java/com/zehong/system/service/impl/TEnterpriseInfoServiceImpl.java
0 → 100644
View file @
111cd450
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
com.zehong.common.utils.DateUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TEnterpriseInfoMapper
;
import
com.zehong.system.domain.TEnterpriseInfo
;
import
com.zehong.system.service.ITEnterpriseInfoService
;
/**
* 企业信息Service业务层处理
*
* @author zehong
* @date 2022-01-24
*/
@Service
public
class
TEnterpriseInfoServiceImpl
implements
ITEnterpriseInfoService
{
@Autowired
private
TEnterpriseInfoMapper
tEnterpriseInfoMapper
;
/**
* 查询企业信息
*
* @param enterpriseId 企业信息ID
* @return 企业信息
*/
@Override
public
TEnterpriseInfo
selectTEnterpriseInfoById
(
Long
enterpriseId
)
{
return
tEnterpriseInfoMapper
.
selectTEnterpriseInfoById
(
enterpriseId
);
}
/**
* 查询企业信息列表
*
* @param tEnterpriseInfo 企业信息
* @return 企业信息
*/
@Override
public
List
<
TEnterpriseInfo
>
selectTEnterpriseInfoList
(
TEnterpriseInfo
tEnterpriseInfo
)
{
return
tEnterpriseInfoMapper
.
selectTEnterpriseInfoList
(
tEnterpriseInfo
);
}
/**
* 新增企业信息
*
* @param tEnterpriseInfo 企业信息
* @return 结果
*/
@Override
public
int
insertTEnterpriseInfo
(
TEnterpriseInfo
tEnterpriseInfo
)
{
tEnterpriseInfo
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
tEnterpriseInfoMapper
.
insertTEnterpriseInfo
(
tEnterpriseInfo
);
}
/**
* 修改企业信息
*
* @param tEnterpriseInfo 企业信息
* @return 结果
*/
@Override
public
int
updateTEnterpriseInfo
(
TEnterpriseInfo
tEnterpriseInfo
)
{
tEnterpriseInfo
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
tEnterpriseInfoMapper
.
updateTEnterpriseInfo
(
tEnterpriseInfo
);
}
/**
* 批量删除企业信息
*
* @param enterpriseIds 需要删除的企业信息ID
* @return 结果
*/
@Override
public
int
deleteTEnterpriseInfoByIds
(
Long
[]
enterpriseIds
)
{
return
tEnterpriseInfoMapper
.
deleteTEnterpriseInfoByIds
(
enterpriseIds
);
}
/**
* 删除企业信息信息
*
* @param enterpriseId 企业信息ID
* @return 结果
*/
@Override
public
int
deleteTEnterpriseInfoById
(
Long
enterpriseId
)
{
return
tEnterpriseInfoMapper
.
deleteTEnterpriseInfoById
(
enterpriseId
);
}
}
gassafetyprogress-system/src/main/resources/mapper/system/TEnterpriseInfoMapper.xml
0 → 100644
View file @
111cd450
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.zehong.system.mapper.TEnterpriseInfoMapper"
>
<resultMap
type=
"TEnterpriseInfo"
id=
"TEnterpriseInfoResult"
>
<result
property=
"enterpriseId"
column=
"enterprise_id"
/>
<result
property=
"enterpriseName"
column=
"enterprise_name"
/>
<result
property=
"registerAddress"
column=
"register_address"
/>
<result
property=
"legalRepresentative"
column=
"legal_representative"
/>
<result
property=
"businessArea"
column=
"business_area"
/>
<result
property=
"licenseKey"
column=
"license_key"
/>
<result
property=
"licenseValidityTime"
column=
"license_validity_time"
/>
<result
property=
"annualSupervisionInspection"
column=
"annual_supervision_inspection"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"isDel"
column=
"is_del"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
<sql
id=
"selectTEnterpriseInfoVo"
>
select enterprise_id, enterprise_name, register_address, legal_representative,
business_area, license_key, license_validity_time, annual_supervision_inspection,
create_by, create_time, update_by, update_time, remarks from t_enterprise_info
</sql>
<select
id=
"selectTEnterpriseInfoList"
parameterType=
"TEnterpriseInfo"
resultMap=
"TEnterpriseInfoResult"
>
<include
refid=
"selectTEnterpriseInfoVo"
/>
<where>
1=1 and is_del='0'
<if
test=
"enterpriseName != null and enterpriseName != ''"
>
and enterprise_name like concat('%', #{enterpriseName}, '%')
</if>
<if
test=
"registerAddress != null and registerAddress != ''"
>
and register_address = #{registerAddress}
</if>
<if
test=
"legalRepresentative != null and legalRepresentative != ''"
>
and legal_representative = #{legalRepresentative}
</if>
<if
test=
"businessArea != null and businessArea != ''"
>
and business_area = #{businessArea}
</if>
<if
test=
"licenseKey != null and licenseKey != ''"
>
and license_key = #{licenseKey}
</if>
<if
test=
"licenseValidityTime != null and licenseValidityTime != ''"
>
and license_validity_time = #{licenseValidityTime}
</if>
<if
test=
"annualSupervisionInspection != null and annualSupervisionInspection != ''"
>
and annual_supervision_inspection = #{annualSupervisionInspection}
</if>
<if
test=
"remarks != null and remarks != ''"
>
and remarks = #{remarks}
</if>
</where>
</select>
<select
id=
"selectTEnterpriseInfoById"
parameterType=
"Long"
resultMap=
"TEnterpriseInfoResult"
>
<include
refid=
"selectTEnterpriseInfoVo"
/>
where enterprise_id = #{enterpriseId} and is_del='0'
</select>
<insert
id=
"insertTEnterpriseInfo"
parameterType=
"TEnterpriseInfo"
useGeneratedKeys=
"true"
keyProperty=
"enterpriseId"
>
insert into t_enterprise_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"enterpriseName != null"
>
enterprise_name,
</if>
<if
test=
"registerAddress != null"
>
register_address,
</if>
<if
test=
"legalRepresentative != null"
>
legal_representative,
</if>
<if
test=
"businessArea != null"
>
business_area,
</if>
<if
test=
"licenseKey != null"
>
license_key,
</if>
<if
test=
"licenseValidityTime != null"
>
license_validity_time,
</if>
<if
test=
"annualSupervisionInspection != null"
>
annual_supervision_inspection,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"isDel != null"
>
is_del,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"enterpriseName != null"
>
#{enterpriseName},
</if>
<if
test=
"registerAddress != null"
>
#{registerAddress},
</if>
<if
test=
"legalRepresentative != null"
>
#{legalRepresentative},
</if>
<if
test=
"businessArea != null"
>
#{businessArea},
</if>
<if
test=
"licenseKey != null"
>
#{licenseKey},
</if>
<if
test=
"licenseValidityTime != null"
>
#{licenseValidityTime},
</if>
<if
test=
"annualSupervisionInspection != null"
>
#{annualSupervisionInspection},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"isDel != null"
>
#{isDel},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
</trim>
</insert>
<update
id=
"updateTEnterpriseInfo"
parameterType=
"TEnterpriseInfo"
>
update t_enterprise_info
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"enterpriseName != null"
>
enterprise_name = #{enterpriseName},
</if>
<if
test=
"registerAddress != null"
>
register_address = #{registerAddress},
</if>
<if
test=
"legalRepresentative != null"
>
legal_representative = #{legalRepresentative},
</if>
<if
test=
"businessArea != null"
>
business_area = #{businessArea},
</if>
<if
test=
"licenseKey != null"
>
license_key = #{licenseKey},
</if>
<if
test=
"licenseValidityTime != null"
>
license_validity_time = #{licenseValidityTime},
</if>
<if
test=
"annualSupervisionInspection != null"
>
annual_supervision_inspection = #{annualSupervisionInspection},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
where enterprise_id = #{enterpriseId}
</update>
<update
id=
"deleteTEnterpriseInfoById"
parameterType=
"Long"
>
update t_enterprise_info set is_del='1' where enterprise_id = #{enterpriseId}
</update>
<update
id=
"deleteTEnterpriseInfoByIds"
parameterType=
"String"
>
update t_enterprise_info set is_del='1' where enterprise_id in
<foreach
item=
"enterpriseId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{enterpriseId}
</foreach>
</update>
</mapper>
gassafetyprogress-web/src/api/regulation/info.js
0 → 100644
View file @
111cd450
import
request
from
'@/utils/request'
// 查询企业信息列表
export
function
listInfo
(
query
)
{
return
request
({
url
:
'/regulation/info/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询企业信息详细
export
function
getInfo
(
enterpriseId
)
{
return
request
({
url
:
'/regulation/info/'
+
enterpriseId
,
method
:
'get'
})
}
// 新增企业信息
export
function
addInfo
(
data
)
{
return
request
({
url
:
'/regulation/info'
,
method
:
'post'
,
data
:
data
})
}
// 修改企业信息
export
function
updateInfo
(
data
)
{
return
request
({
url
:
'/regulation/info'
,
method
:
'put'
,
data
:
data
})
}
// 删除企业信息
export
function
delInfo
(
enterpriseId
)
{
return
request
({
url
:
'/regulation/info/'
+
enterpriseId
,
method
:
'delete'
})
}
// 导出企业信息
export
function
exportInfo
(
query
)
{
return
request
({
url
:
'/regulation/info/export'
,
method
:
'get'
,
params
:
query
})
}
gassafetyprogress-web/src/views/regulation/info/index.vue
0 → 100644
View file @
111cd450
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"企业名称"
prop=
"enterpriseName"
>
<el-input
v-model=
"queryParams.enterpriseName"
placeholder=
"请输入企业名称"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<!--
<el-form-item
label=
"注册地址"
prop=
"registerAddress"
>
-->
<!--
<el-input-->
<!-- v-model="queryParams.registerAddress"-->
<!-- placeholder="请输入注册地址"-->
<!-- clearable-->
<!-- size="small"-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!--
</el-form-item>
-->
<!--
<el-form-item
label=
"法定代表人"
prop=
"legalRepresentative"
>
-->
<!--
<el-input-->
<!-- v-model="queryParams.legalRepresentative"-->
<!-- placeholder="请输入法定代表人"-->
<!-- clearable-->
<!-- size="small"-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!--
</el-form-item>
-->
<!--
<el-form-item
label=
"经营区域"
prop=
"businessArea"
>
-->
<!--
<el-input-->
<!-- v-model="queryParams.businessArea"-->
<!-- placeholder="请输入经营区域"-->
<!-- clearable-->
<!-- size="small"-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!--
</el-form-item>
-->
<el-form-item
label=
"许可证编号"
prop=
"licenseKey"
>
<el-input
v-model=
"queryParams.licenseKey"
placeholder=
"请输入许可证编号"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<!--
<el-form-item
label=
"许可证有效期"
prop=
"licenseValidityTime"
>
-->
<!--
<el-input-->
<!-- v-model="queryParams.licenseValidityTime"-->
<!-- placeholder="请输入许可证有效期"-->
<!-- clearable-->
<!-- size="small"-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!--
</el-form-item>
-->
<!--
<el-form-item
label=
"年度监督检查情况"
prop=
"annualSupervisionInspection"
>
-->
<!--
<el-input-->
<!-- v-model="queryParams.annualSupervisionInspection"-->
<!-- placeholder="请输入年度监督检查情况"-->
<!-- clearable-->
<!-- size="small"-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!--
</el-form-item>
-->
<!--
<el-form-item
label=
"是否删除(0正常,1删除)"
prop=
"isDel"
>
-->
<!--
<el-input-->
<!-- v-model="queryParams.isDel"-->
<!-- placeholder="请输入是否删除(0正常,1删除)"-->
<!-- clearable-->
<!-- size="small"-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!--
</el-form-item>
-->
<!--
<el-form-item
label=
"备注"
prop=
"remarks"
>
-->
<!--
<el-input-->
<!-- v-model="queryParams.remarks"-->
<!-- placeholder="请输入备注"-->
<!-- clearable-->
<!-- size="small"-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!--
</el-form-item>
-->
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['regulation:info:add']"
>
新增
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"success"
plain
icon=
"el-icon-edit"
size=
"mini"
:disabled=
"single"
@
click=
"handleUpdate"
v-hasPermi=
"['regulation:info:edit']"
>
修改
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"danger"
plain
icon=
"el-icon-delete"
size=
"mini"
:disabled=
"multiple"
@
click=
"handleDelete"
v-hasPermi=
"['regulation:info:remove']"
>
删除
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
:loading=
"exportLoading"
@
click=
"handleExport"
v-hasPermi=
"['regulation:info:export']"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
v-loading=
"loading"
:data=
"infoList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<!--
<el-table-column
label=
"企业id"
align=
"center"
prop=
"enterpriseId"
/>
-->
<el-table-column
label=
"企业名称"
align=
"center"
prop=
"enterpriseName"
/>
<el-table-column
label=
"注册地址"
align=
"center"
prop=
"registerAddress"
/>
<el-table-column
label=
"法定代表人"
align=
"center"
prop=
"legalRepresentative"
/>
<el-table-column
label=
"经营区域"
align=
"center"
prop=
"businessArea"
/>
<el-table-column
label=
"许可证编号"
align=
"center"
prop=
"licenseKey"
/>
<el-table-column
label=
"许可证有效期"
align=
"center"
prop=
"licenseValidityTime"
/>
<el-table-column
label=
"年度监督检查情况"
align=
"center"
prop=
"annualSupervisionInspection"
/>
<el-table-column
label=
"备注"
align=
"center"
prop=
"remarks"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['regulation:info:edit']"
>
修改
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['regulation:info:remove']"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<!-- 添加或修改企业信息对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"企业名称"
prop=
"enterpriseName"
>
<el-input
v-model=
"form.enterpriseName"
placeholder=
"请输入企业名称"
/>
</el-form-item>
<el-form-item
label=
"注册地址"
prop=
"registerAddress"
>
<el-input
v-model=
"form.registerAddress"
placeholder=
"请输入注册地址"
/>
</el-form-item>
<el-form-item
label=
"法定代表人"
prop=
"legalRepresentative"
>
<el-input
v-model=
"form.legalRepresentative"
placeholder=
"请输入法定代表人"
/>
</el-form-item>
<el-form-item
label=
"经营区域"
prop=
"businessArea"
>
<el-input
v-model=
"form.businessArea"
placeholder=
"请输入经营区域"
/>
</el-form-item>
<el-form-item
label=
"许可证编号"
prop=
"licenseKey"
>
<el-input
v-model=
"form.licenseKey"
placeholder=
"请输入许可证编号"
/>
</el-form-item>
<el-form-item
label=
"许可证有效期"
prop=
"licenseValidityTime"
>
<el-input
v-model=
"form.licenseValidityTime"
placeholder=
"请输入许可证有效期"
/>
</el-form-item>
<el-form-item
label=
"年度监督检查情况"
prop=
"annualSupervisionInspection"
>
<el-input
v-model=
"form.annualSupervisionInspection"
placeholder=
"请输入年度监督检查情况"
/>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"remarks"
>
<el-input
v-model=
"form.remarks"
placeholder=
"请输入备注"
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</el-dialog>
</div>
</template>
<
script
>
import
{
listInfo
,
getInfo
,
delInfo
,
addInfo
,
updateInfo
,
exportInfo
}
from
"@/api/regulation/info"
;
export
default
{
name
:
"Info"
,
components
:
{
},
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 企业信息表格数据
infoList
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
enterpriseName
:
null
,
registerAddress
:
null
,
legalRepresentative
:
null
,
businessArea
:
null
,
licenseKey
:
null
,
licenseValidityTime
:
null
,
annualSupervisionInspection
:
null
,
isDel
:
null
,
remarks
:
null
},
// 表单参数
form
:
{},
// 表单校验
rules
:
{
}
};
},
created
()
{
this
.
getList
();
},
methods
:
{
/** 查询企业信息列表 */
getList
()
{
this
.
loading
=
true
;
listInfo
(
this
.
queryParams
).
then
(
response
=>
{
this
.
infoList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
});
},
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
},
// 表单重置
reset
()
{
this
.
form
=
{
enterpriseId
:
null
,
enterpriseName
:
null
,
registerAddress
:
null
,
legalRepresentative
:
null
,
businessArea
:
null
,
licenseKey
:
null
,
licenseValidityTime
:
null
,
annualSupervisionInspection
:
null
,
createBy
:
null
,
createTime
:
null
,
updateBy
:
null
,
updateTime
:
null
,
isDel
:
null
,
remarks
:
null
};
this
.
resetForm
(
"form"
);
},
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"queryForm"
);
this
.
handleQuery
();
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
enterpriseId
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
},
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"添加企业信息"
;
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
enterpriseId
=
row
.
enterpriseId
||
this
.
ids
getInfo
(
enterpriseId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改企业信息"
;
});
},
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
enterpriseId
!=
null
)
{
updateInfo
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
getList
();
});
}
else
{
addInfo
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
getList
();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
enterpriseIds
=
row
.
enterpriseId
||
this
.
ids
;
this
.
$confirm
(
'是否确认删除企业信息编号为"'
+
enterpriseIds
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
()
{
return
delInfo
(
enterpriseIds
);
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
}).
catch
(()
=>
{});
},
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
;
this
.
$confirm
(
'是否确认导出所有企业信息数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportInfo
(
queryParams
);
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}
}
};
</
script
>
gassafetyprogress-web/vue.config.js
View file @
111cd450
...
...
@@ -34,7 +34,7 @@ module.exports = {
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
target
:
`http://
192.168.2.28
:8080`
,
target
:
`http://
localhost
:8080`
,
changeOrigin
:
true
,
pathRewrite
:
{
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment