Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
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
Commits
7b6b3281
Commit
7b6b3281
authored
Jun 30, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业基本信息
parent
9d27444d
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1459 additions
and
0 deletions
+1459
-0
TEnterpriseInfoController.java
.../web/controller/enterprise/TEnterpriseInfoController.java
+103
-0
TEnterpriseInfo.java
...c/main/java/com/zehong/system/domain/TEnterpriseInfo.java
+446
-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
info.js
gassafety-web/src/api/enterprise/info.js
+53
-0
index.vue
gassafety-web/src/views/enterprise/info/index.vue
+639
-0
No files found.
gassafety-admin/src/main/java/com/zehong/web/controller/enterprise/TEnterpriseInfoController.java
0 → 100644
View file @
7b6b3281
package
com
.
zehong
.
web
.
controller
.
enterprise
;
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
;
/**
* 企业基本信息
*
* @author zehong
* @date 2021-06-30
*/
@RestController
@RequestMapping
(
"/enterprise/info"
)
public
class
TEnterpriseInfoController
extends
BaseController
{
@Autowired
private
ITEnterpriseInfoService
tEnterpriseInfoService
;
/**
* 查询企业基本信息列表
*/
@PreAuthorize
(
"@ss.hasPermi('enterprise:info:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TEnterpriseInfo
tEnterpriseInfo
)
{
startPage
();
List
<
TEnterpriseInfo
>
list
=
tEnterpriseInfoService
.
selectTEnterpriseInfoList
(
tEnterpriseInfo
);
return
getDataTable
(
list
);
}
/**
* 导出企业基本信息列表
*/
@PreAuthorize
(
"@ss.hasPermi('enterprise: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('enterprise:info:query')"
)
@GetMapping
(
value
=
"/{infoId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"infoId"
)
Long
infoId
)
{
return
AjaxResult
.
success
(
tEnterpriseInfoService
.
selectTEnterpriseInfoById
(
infoId
));
}
/**
* 新增企业基本信息
*/
@PreAuthorize
(
"@ss.hasPermi('enterprise:info:add')"
)
@Log
(
title
=
"企业基本信息"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TEnterpriseInfo
tEnterpriseInfo
)
{
return
toAjax
(
tEnterpriseInfoService
.
insertTEnterpriseInfo
(
tEnterpriseInfo
));
}
/**
* 修改企业基本信息
*/
@PreAuthorize
(
"@ss.hasPermi('enterprise:info:edit')"
)
@Log
(
title
=
"企业基本信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TEnterpriseInfo
tEnterpriseInfo
)
{
return
toAjax
(
tEnterpriseInfoService
.
updateTEnterpriseInfo
(
tEnterpriseInfo
));
}
/**
* 删除企业基本信息
*/
@PreAuthorize
(
"@ss.hasPermi('enterprise:info:remove')"
)
@Log
(
title
=
"企业基本信息"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{infoIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
infoIds
)
{
return
toAjax
(
tEnterpriseInfoService
.
deleteTEnterpriseInfoByIds
(
infoIds
));
}
}
gassafety-system/src/main/java/com/zehong/system/domain/TEnterpriseInfo.java
0 → 100644
View file @
7b6b3281
package
com
.
zehong
.
system
.
domain
;
import
java.math.BigDecimal
;
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 2021-06-30
*/
public
class
TEnterpriseInfo
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** $column.columnComment */
private
Long
infoId
;
/** 单位名称 */
@Excel
(
name
=
"单位名称"
)
private
String
unitName
;
/** 组织机构代码 */
@Excel
(
name
=
"组织机构代码"
)
private
String
orgCode
;
/** 营业执照图片路径 */
@Excel
(
name
=
"营业执照图片路径"
)
private
String
orgFilePath
;
/** 文件名称 */
@Excel
(
name
=
"文件名称"
)
private
String
orgFileName
;
/** 生产经营地址 */
@Excel
(
name
=
"生产经营地址"
)
private
String
runAddress
;
/** 注册地址 */
@Excel
(
name
=
"注册地址"
)
private
String
regAddress
;
/** 监管分类大类 */
@Excel
(
name
=
"监管分类大类"
)
private
String
regulationBigType
;
/** 监管分类小类 */
@Excel
(
name
=
"监管分类小类"
)
private
String
regulationSmallType
;
/** 省份代码 */
@Excel
(
name
=
"省份代码"
)
private
String
provinceId
;
/** 省份名称 */
@Excel
(
name
=
"省份名称"
)
private
String
provinceName
;
/** 城市代码 */
@Excel
(
name
=
"城市代码"
)
private
String
cityId
;
/** 城市名称 */
@Excel
(
name
=
"城市名称"
)
private
String
cityName
;
/** 区县代码 */
@Excel
(
name
=
"区县代码"
)
private
String
countyId
;
/** 区县名称 */
@Excel
(
name
=
"区县名称"
)
private
String
countyName
;
/** 所属地区 */
@Excel
(
name
=
"所属地区"
)
private
String
areaName
;
/** 所属街道 */
@Excel
(
name
=
"所属街道"
)
private
String
streetName
;
/** 经度 */
@Excel
(
name
=
"经度"
)
private
BigDecimal
longitude
;
/** 纬度 */
@Excel
(
name
=
"纬度"
)
private
BigDecimal
latitude
;
/** 法定代表人 */
@Excel
(
name
=
"法定代表人"
)
private
String
legalPerson
;
/** 法定代表人手机 */
@Excel
(
name
=
"法定代表人手机"
)
private
String
legalPersonPhone
;
/** 法定代表人座机号码 */
@Excel
(
name
=
"法定代表人座机号码"
)
private
String
legalPersonTelephone
;
/** 法人邮箱 */
@Excel
(
name
=
"法人邮箱"
)
private
String
legalPersonEmail
;
/** 授权书 */
@Excel
(
name
=
"授权书"
)
private
String
authorizeFile
;
/** 授权书文件原名 */
@Excel
(
name
=
"授权书文件原名"
)
private
String
authorizeFileOriginalName
;
/** 厂区边界 */
@Excel
(
name
=
"厂区边界"
)
private
String
boundary
;
/** 是否启用,0启用,1禁用 */
@Excel
(
name
=
"是否启用,0启用,1禁用"
)
private
String
isEnable
;
/** 创建人id */
@Excel
(
name
=
"创建人id"
)
private
String
createUserId
;
/** 更新人id */
@Excel
(
name
=
"更新人id"
)
private
String
updateUserId
;
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
remarks
;
public
void
setInfoId
(
Long
infoId
)
{
this
.
infoId
=
infoId
;
}
public
Long
getInfoId
()
{
return
infoId
;
}
public
void
setUnitName
(
String
unitName
)
{
this
.
unitName
=
unitName
;
}
public
String
getUnitName
()
{
return
unitName
;
}
public
void
setOrgCode
(
String
orgCode
)
{
this
.
orgCode
=
orgCode
;
}
public
String
getOrgCode
()
{
return
orgCode
;
}
public
void
setOrgFilePath
(
String
orgFilePath
)
{
this
.
orgFilePath
=
orgFilePath
;
}
public
String
getOrgFilePath
()
{
return
orgFilePath
;
}
public
void
setOrgFileName
(
String
orgFileName
)
{
this
.
orgFileName
=
orgFileName
;
}
public
String
getOrgFileName
()
{
return
orgFileName
;
}
public
void
setRunAddress
(
String
runAddress
)
{
this
.
runAddress
=
runAddress
;
}
public
String
getRunAddress
()
{
return
runAddress
;
}
public
void
setRegAddress
(
String
regAddress
)
{
this
.
regAddress
=
regAddress
;
}
public
String
getRegAddress
()
{
return
regAddress
;
}
public
void
setRegulationBigType
(
String
regulationBigType
)
{
this
.
regulationBigType
=
regulationBigType
;
}
public
String
getRegulationBigType
()
{
return
regulationBigType
;
}
public
void
setRegulationSmallType
(
String
regulationSmallType
)
{
this
.
regulationSmallType
=
regulationSmallType
;
}
public
String
getRegulationSmallType
()
{
return
regulationSmallType
;
}
public
void
setProvinceId
(
String
provinceId
)
{
this
.
provinceId
=
provinceId
;
}
public
String
getProvinceId
()
{
return
provinceId
;
}
public
void
setProvinceName
(
String
provinceName
)
{
this
.
provinceName
=
provinceName
;
}
public
String
getProvinceName
()
{
return
provinceName
;
}
public
void
setCityId
(
String
cityId
)
{
this
.
cityId
=
cityId
;
}
public
String
getCityId
()
{
return
cityId
;
}
public
void
setCityName
(
String
cityName
)
{
this
.
cityName
=
cityName
;
}
public
String
getCityName
()
{
return
cityName
;
}
public
void
setCountyId
(
String
countyId
)
{
this
.
countyId
=
countyId
;
}
public
String
getCountyId
()
{
return
countyId
;
}
public
void
setCountyName
(
String
countyName
)
{
this
.
countyName
=
countyName
;
}
public
String
getCountyName
()
{
return
countyName
;
}
public
void
setAreaName
(
String
areaName
)
{
this
.
areaName
=
areaName
;
}
public
String
getAreaName
()
{
return
areaName
;
}
public
void
setStreetName
(
String
streetName
)
{
this
.
streetName
=
streetName
;
}
public
String
getStreetName
()
{
return
streetName
;
}
public
void
setLongitude
(
BigDecimal
longitude
)
{
this
.
longitude
=
longitude
;
}
public
BigDecimal
getLongitude
()
{
return
longitude
;
}
public
void
setLatitude
(
BigDecimal
latitude
)
{
this
.
latitude
=
latitude
;
}
public
BigDecimal
getLatitude
()
{
return
latitude
;
}
public
void
setLegalPerson
(
String
legalPerson
)
{
this
.
legalPerson
=
legalPerson
;
}
public
String
getLegalPerson
()
{
return
legalPerson
;
}
public
void
setLegalPersonPhone
(
String
legalPersonPhone
)
{
this
.
legalPersonPhone
=
legalPersonPhone
;
}
public
String
getLegalPersonPhone
()
{
return
legalPersonPhone
;
}
public
void
setLegalPersonTelephone
(
String
legalPersonTelephone
)
{
this
.
legalPersonTelephone
=
legalPersonTelephone
;
}
public
String
getLegalPersonTelephone
()
{
return
legalPersonTelephone
;
}
public
void
setLegalPersonEmail
(
String
legalPersonEmail
)
{
this
.
legalPersonEmail
=
legalPersonEmail
;
}
public
String
getLegalPersonEmail
()
{
return
legalPersonEmail
;
}
public
void
setAuthorizeFile
(
String
authorizeFile
)
{
this
.
authorizeFile
=
authorizeFile
;
}
public
String
getAuthorizeFile
()
{
return
authorizeFile
;
}
public
void
setAuthorizeFileOriginalName
(
String
authorizeFileOriginalName
)
{
this
.
authorizeFileOriginalName
=
authorizeFileOriginalName
;
}
public
String
getAuthorizeFileOriginalName
()
{
return
authorizeFileOriginalName
;
}
public
void
setBoundary
(
String
boundary
)
{
this
.
boundary
=
boundary
;
}
public
String
getBoundary
()
{
return
boundary
;
}
public
void
setIsEnable
(
String
isEnable
)
{
this
.
isEnable
=
isEnable
;
}
public
String
getIsEnable
()
{
return
isEnable
;
}
public
void
setCreateUserId
(
String
createUserId
)
{
this
.
createUserId
=
createUserId
;
}
public
String
getCreateUserId
()
{
return
createUserId
;
}
public
void
setUpdateUserId
(
String
updateUserId
)
{
this
.
updateUserId
=
updateUserId
;
}
public
String
getUpdateUserId
()
{
return
updateUserId
;
}
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
(
"infoId"
,
getInfoId
())
.
append
(
"unitName"
,
getUnitName
())
.
append
(
"orgCode"
,
getOrgCode
())
.
append
(
"orgFilePath"
,
getOrgFilePath
())
.
append
(
"orgFileName"
,
getOrgFileName
())
.
append
(
"runAddress"
,
getRunAddress
())
.
append
(
"regAddress"
,
getRegAddress
())
.
append
(
"regulationBigType"
,
getRegulationBigType
())
.
append
(
"regulationSmallType"
,
getRegulationSmallType
())
.
append
(
"provinceId"
,
getProvinceId
())
.
append
(
"provinceName"
,
getProvinceName
())
.
append
(
"cityId"
,
getCityId
())
.
append
(
"cityName"
,
getCityName
())
.
append
(
"countyId"
,
getCountyId
())
.
append
(
"countyName"
,
getCountyName
())
.
append
(
"areaName"
,
getAreaName
())
.
append
(
"streetName"
,
getStreetName
())
.
append
(
"longitude"
,
getLongitude
())
.
append
(
"latitude"
,
getLatitude
())
.
append
(
"legalPerson"
,
getLegalPerson
())
.
append
(
"legalPersonPhone"
,
getLegalPersonPhone
())
.
append
(
"legalPersonTelephone"
,
getLegalPersonTelephone
())
.
append
(
"legalPersonEmail"
,
getLegalPersonEmail
())
.
append
(
"authorizeFile"
,
getAuthorizeFile
())
.
append
(
"authorizeFileOriginalName"
,
getAuthorizeFileOriginalName
())
.
append
(
"boundary"
,
getBoundary
())
.
append
(
"isEnable"
,
getIsEnable
())
.
append
(
"createUserId"
,
getCreateUserId
())
.
append
(
"updateUserId"
,
getUpdateUserId
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"remarks"
,
getRemarks
())
.
toString
();
}
}
gassafety-system/src/main/java/com/zehong/system/mapper/TEnterpriseInfoMapper.java
0 → 100644
View file @
7b6b3281
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TEnterpriseInfo
;
/**
* 企业基本信息Mapper接口
*
* @author zehong
* @date 2021-06-30
*/
public
interface
TEnterpriseInfoMapper
{
/**
* 查询企业基本信息
*
* @param infoId 企业基本信息ID
* @return 企业基本信息
*/
public
TEnterpriseInfo
selectTEnterpriseInfoById
(
Long
infoId
);
/**
* 查询企业基本信息列表
*
* @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 infoId 企业基本信息ID
* @return 结果
*/
public
int
deleteTEnterpriseInfoById
(
Long
infoId
);
/**
* 批量删除企业基本信息
*
* @param infoIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTEnterpriseInfoByIds
(
Long
[]
infoIds
);
}
gassafety-system/src/main/java/com/zehong/system/service/ITEnterpriseInfoService.java
0 → 100644
View file @
7b6b3281
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TEnterpriseInfo
;
/**
* 企业基本信息Service接口
*
* @author zehong
* @date 2021-06-30
*/
public
interface
ITEnterpriseInfoService
{
/**
* 查询企业基本信息
*
* @param infoId 企业基本信息ID
* @return 企业基本信息
*/
public
TEnterpriseInfo
selectTEnterpriseInfoById
(
Long
infoId
);
/**
* 查询企业基本信息列表
*
* @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 infoIds 需要删除的企业基本信息ID
* @return 结果
*/
public
int
deleteTEnterpriseInfoByIds
(
Long
[]
infoIds
);
/**
* 删除企业基本信息信息
*
* @param infoId 企业基本信息ID
* @return 结果
*/
public
int
deleteTEnterpriseInfoById
(
Long
infoId
);
}
gassafety-system/src/main/java/com/zehong/system/service/impl/TEnterpriseInfoServiceImpl.java
0 → 100644
View file @
7b6b3281
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 2021-06-30
*/
@Service
public
class
TEnterpriseInfoServiceImpl
implements
ITEnterpriseInfoService
{
@Autowired
private
TEnterpriseInfoMapper
tEnterpriseInfoMapper
;
/**
* 查询企业基本信息
*
* @param infoId 企业基本信息ID
* @return 企业基本信息
*/
@Override
public
TEnterpriseInfo
selectTEnterpriseInfoById
(
Long
infoId
)
{
return
tEnterpriseInfoMapper
.
selectTEnterpriseInfoById
(
infoId
);
}
/**
* 查询企业基本信息列表
*
* @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 infoIds 需要删除的企业基本信息ID
* @return 结果
*/
@Override
public
int
deleteTEnterpriseInfoByIds
(
Long
[]
infoIds
)
{
return
tEnterpriseInfoMapper
.
deleteTEnterpriseInfoByIds
(
infoIds
);
}
/**
* 删除企业基本信息信息
*
* @param infoId 企业基本信息ID
* @return 结果
*/
@Override
public
int
deleteTEnterpriseInfoById
(
Long
infoId
)
{
return
tEnterpriseInfoMapper
.
deleteTEnterpriseInfoById
(
infoId
);
}
}
gassafety-web/src/api/enterprise/info.js
0 → 100644
View file @
7b6b3281
import
request
from
'@/utils/request'
// 查询企业基本信息列表
export
function
listInfo
(
query
)
{
return
request
({
url
:
'/enterprise/info/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询企业基本信息详细
export
function
getInfo
(
infoId
)
{
return
request
({
url
:
'/enterprise/info/'
+
infoId
,
method
:
'get'
})
}
// 新增企业基本信息
export
function
addInfo
(
data
)
{
return
request
({
url
:
'/enterprise/info'
,
method
:
'post'
,
data
:
data
})
}
// 修改企业基本信息
export
function
updateInfo
(
data
)
{
return
request
({
url
:
'/enterprise/info'
,
method
:
'put'
,
data
:
data
})
}
// 删除企业基本信息
export
function
delInfo
(
infoId
)
{
return
request
({
url
:
'/enterprise/info/'
+
infoId
,
method
:
'delete'
})
}
// 导出企业基本信息
export
function
exportInfo
(
query
)
{
return
request
({
url
:
'/enterprise/info/export'
,
method
:
'get'
,
params
:
query
})
}
gassafety-web/src/views/enterprise/info/index.vue
0 → 100644
View file @
7b6b3281
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"单位名称"
prop=
"unitName"
>
<el-input
v-model=
"queryParams.unitName"
placeholder=
"请输入单位名称"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"组织机构代码"
prop=
"orgCode"
>
<el-input
v-model=
"queryParams.orgCode"
placeholder=
"请输入组织机构代码"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"生产经营地址"
prop=
"runAddress"
>
<el-input
v-model=
"queryParams.runAddress"
placeholder=
"请输入生产经营地址"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"注册地址"
prop=
"regAddress"
>
<el-input
v-model=
"queryParams.regAddress"
placeholder=
"请输入注册地址"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"监管分类大类"
prop=
"regulationBigType"
>
<el-select
v-model=
"queryParams.regulationBigType"
placeholder=
"请选择监管分类大类"
clearable
size=
"small"
>
<el-option
label=
"请选择字典生成"
value=
""
/>
</el-select>
</el-form-item>
<el-form-item
label=
"监管分类小类"
prop=
"regulationSmallType"
>
<el-select
v-model=
"queryParams.regulationSmallType"
placeholder=
"请选择监管分类小类"
clearable
size=
"small"
>
<el-option
label=
"请选择字典生成"
value=
""
/>
</el-select>
</el-form-item>
<el-form-item
label=
"省份代码"
prop=
"provinceId"
>
<el-input
v-model=
"queryParams.provinceId"
placeholder=
"请输入省份代码"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"省份名称"
prop=
"provinceName"
>
<el-input
v-model=
"queryParams.provinceName"
placeholder=
"请输入省份名称"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"城市代码"
prop=
"cityId"
>
<el-input
v-model=
"queryParams.cityId"
placeholder=
"请输入城市代码"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"城市名称"
prop=
"cityName"
>
<el-input
v-model=
"queryParams.cityName"
placeholder=
"请输入城市名称"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"区县代码"
prop=
"countyId"
>
<el-input
v-model=
"queryParams.countyId"
placeholder=
"请输入区县代码"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"区县名称"
prop=
"countyName"
>
<el-input
v-model=
"queryParams.countyName"
placeholder=
"请输入区县名称"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"所属地区"
prop=
"areaName"
>
<el-input
v-model=
"queryParams.areaName"
placeholder=
"请输入所属地区"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"所属街道"
prop=
"streetName"
>
<el-input
v-model=
"queryParams.streetName"
placeholder=
"请输入所属街道"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"经度"
prop=
"longitude"
>
<el-input
v-model=
"queryParams.longitude"
placeholder=
"请输入经度"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"纬度"
prop=
"latitude"
>
<el-input
v-model=
"queryParams.latitude"
placeholder=
"请输入纬度"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"法定代表人"
prop=
"legalPerson"
>
<el-input
v-model=
"queryParams.legalPerson"
placeholder=
"请输入法定代表人"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"法定代表人手机"
prop=
"legalPersonPhone"
>
<el-input
v-model=
"queryParams.legalPersonPhone"
placeholder=
"请输入法定代表人手机"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"法定代表人座机号码"
prop=
"legalPersonTelephone"
>
<el-input
v-model=
"queryParams.legalPersonTelephone"
placeholder=
"请输入法定代表人座机号码"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"法人邮箱"
prop=
"legalPersonEmail"
>
<el-input
v-model=
"queryParams.legalPersonEmail"
placeholder=
"请输入法人邮箱"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"是否启用,0启用,1禁用"
prop=
"isEnable"
>
<el-input
v-model=
"queryParams.isEnable"
placeholder=
"请输入是否启用,0启用,1禁用"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"创建人id"
prop=
"createUserId"
>
<el-input
v-model=
"queryParams.createUserId"
placeholder=
"请输入创建人id"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"更新人id"
prop=
"updateUserId"
>
<el-input
v-model=
"queryParams.updateUserId"
placeholder=
"请输入更新人id"
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=
"['enterprise: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=
"['enterprise: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=
"['enterprise: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=
"['enterprise: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=
"备注"
align=
"center"
prop=
"infoId"
/>
<el-table-column
label=
"单位名称"
align=
"center"
prop=
"unitName"
/>
<el-table-column
label=
"组织机构代码"
align=
"center"
prop=
"orgCode"
/>
<el-table-column
label=
"营业执照图片路径"
align=
"center"
prop=
"orgFilePath"
/>
<el-table-column
label=
"文件名称"
align=
"center"
prop=
"orgFileName"
/>
<el-table-column
label=
"生产经营地址"
align=
"center"
prop=
"runAddress"
/>
<el-table-column
label=
"注册地址"
align=
"center"
prop=
"regAddress"
/>
<el-table-column
label=
"监管分类大类"
align=
"center"
prop=
"regulationBigType"
/>
<el-table-column
label=
"监管分类小类"
align=
"center"
prop=
"regulationSmallType"
/>
<el-table-column
label=
"省份代码"
align=
"center"
prop=
"provinceId"
/>
<el-table-column
label=
"省份名称"
align=
"center"
prop=
"provinceName"
/>
<el-table-column
label=
"城市代码"
align=
"center"
prop=
"cityId"
/>
<el-table-column
label=
"城市名称"
align=
"center"
prop=
"cityName"
/>
<el-table-column
label=
"区县代码"
align=
"center"
prop=
"countyId"
/>
<el-table-column
label=
"区县名称"
align=
"center"
prop=
"countyName"
/>
<el-table-column
label=
"所属地区"
align=
"center"
prop=
"areaName"
/>
<el-table-column
label=
"所属街道"
align=
"center"
prop=
"streetName"
/>
<el-table-column
label=
"经度"
align=
"center"
prop=
"longitude"
/>
<el-table-column
label=
"纬度"
align=
"center"
prop=
"latitude"
/>
<el-table-column
label=
"法定代表人"
align=
"center"
prop=
"legalPerson"
/>
<el-table-column
label=
"法定代表人手机"
align=
"center"
prop=
"legalPersonPhone"
/>
<el-table-column
label=
"法定代表人座机号码"
align=
"center"
prop=
"legalPersonTelephone"
/>
<el-table-column
label=
"法人邮箱"
align=
"center"
prop=
"legalPersonEmail"
/>
<el-table-column
label=
"授权书"
align=
"center"
prop=
"authorizeFile"
/>
<el-table-column
label=
"授权书文件原名"
align=
"center"
prop=
"authorizeFileOriginalName"
/>
<el-table-column
label=
"厂区边界"
align=
"center"
prop=
"boundary"
/>
<el-table-column
label=
"是否启用,0启用,1禁用"
align=
"center"
prop=
"isEnable"
/>
<el-table-column
label=
"创建人id"
align=
"center"
prop=
"createUserId"
/>
<el-table-column
label=
"更新人id"
align=
"center"
prop=
"updateUserId"
/>
<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=
"['enterprise:info:edit']"
>
修改
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['enterprise: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=
"unitName"
>
<el-input
v-model=
"form.unitName"
placeholder=
"请输入单位名称"
/>
</el-form-item>
<el-form-item
label=
"组织机构代码"
prop=
"orgCode"
>
<el-input
v-model=
"form.orgCode"
placeholder=
"请输入组织机构代码"
/>
</el-form-item>
<el-form-item
label=
"营业执照图片路径"
prop=
"orgFilePath"
>
<el-input
v-model=
"form.orgFilePath"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
<el-form-item
label=
"文件名称"
prop=
"orgFileName"
>
<el-input
v-model=
"form.orgFileName"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
<el-form-item
label=
"生产经营地址"
prop=
"runAddress"
>
<el-input
v-model=
"form.runAddress"
placeholder=
"请输入生产经营地址"
/>
</el-form-item>
<el-form-item
label=
"注册地址"
prop=
"regAddress"
>
<el-input
v-model=
"form.regAddress"
placeholder=
"请输入注册地址"
/>
</el-form-item>
<el-form-item
label=
"监管分类大类"
prop=
"regulationBigType"
>
<el-select
v-model=
"form.regulationBigType"
placeholder=
"请选择监管分类大类"
>
<el-option
label=
"请选择字典生成"
value=
""
/>
</el-select>
</el-form-item>
<el-form-item
label=
"监管分类小类"
prop=
"regulationSmallType"
>
<el-select
v-model=
"form.regulationSmallType"
placeholder=
"请选择监管分类小类"
>
<el-option
label=
"请选择字典生成"
value=
""
/>
</el-select>
</el-form-item>
<el-form-item
label=
"省份代码"
prop=
"provinceId"
>
<el-input
v-model=
"form.provinceId"
placeholder=
"请输入省份代码"
/>
</el-form-item>
<el-form-item
label=
"省份名称"
prop=
"provinceName"
>
<el-input
v-model=
"form.provinceName"
placeholder=
"请输入省份名称"
/>
</el-form-item>
<el-form-item
label=
"城市代码"
prop=
"cityId"
>
<el-input
v-model=
"form.cityId"
placeholder=
"请输入城市代码"
/>
</el-form-item>
<el-form-item
label=
"城市名称"
prop=
"cityName"
>
<el-input
v-model=
"form.cityName"
placeholder=
"请输入城市名称"
/>
</el-form-item>
<el-form-item
label=
"区县代码"
prop=
"countyId"
>
<el-input
v-model=
"form.countyId"
placeholder=
"请输入区县代码"
/>
</el-form-item>
<el-form-item
label=
"区县名称"
prop=
"countyName"
>
<el-input
v-model=
"form.countyName"
placeholder=
"请输入区县名称"
/>
</el-form-item>
<el-form-item
label=
"所属地区"
prop=
"areaName"
>
<el-input
v-model=
"form.areaName"
placeholder=
"请输入所属地区"
/>
</el-form-item>
<el-form-item
label=
"所属街道"
prop=
"streetName"
>
<el-input
v-model=
"form.streetName"
placeholder=
"请输入所属街道"
/>
</el-form-item>
<el-form-item
label=
"经度"
prop=
"longitude"
>
<el-input
v-model=
"form.longitude"
placeholder=
"请输入经度"
/>
</el-form-item>
<el-form-item
label=
"纬度"
prop=
"latitude"
>
<el-input
v-model=
"form.latitude"
placeholder=
"请输入纬度"
/>
</el-form-item>
<el-form-item
label=
"法定代表人"
prop=
"legalPerson"
>
<el-input
v-model=
"form.legalPerson"
placeholder=
"请输入法定代表人"
/>
</el-form-item>
<el-form-item
label=
"法定代表人手机"
prop=
"legalPersonPhone"
>
<el-input
v-model=
"form.legalPersonPhone"
placeholder=
"请输入法定代表人手机"
/>
</el-form-item>
<el-form-item
label=
"法定代表人座机号码"
prop=
"legalPersonTelephone"
>
<el-input
v-model=
"form.legalPersonTelephone"
placeholder=
"请输入法定代表人座机号码"
/>
</el-form-item>
<el-form-item
label=
"法人邮箱"
prop=
"legalPersonEmail"
>
<el-input
v-model=
"form.legalPersonEmail"
placeholder=
"请输入法人邮箱"
/>
</el-form-item>
<el-form-item
label=
"授权书"
>
<fileUpload
v-model=
"form.authorizeFile"
/>
</el-form-item>
<el-form-item
label=
"授权书文件原名"
prop=
"authorizeFileOriginalName"
>
<el-input
v-model=
"form.authorizeFileOriginalName"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
<el-form-item
label=
"厂区边界"
prop=
"boundary"
>
<el-input
v-model=
"form.boundary"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
<el-form-item
label=
"是否启用,0启用,1禁用"
prop=
"isEnable"
>
<el-input
v-model=
"form.isEnable"
placeholder=
"请输入是否启用,0启用,1禁用"
/>
</el-form-item>
<el-form-item
label=
"创建人id"
prop=
"createUserId"
>
<el-input
v-model=
"form.createUserId"
placeholder=
"请输入创建人id"
/>
</el-form-item>
<el-form-item
label=
"更新人id"
prop=
"updateUserId"
>
<el-input
v-model=
"form.updateUserId"
placeholder=
"请输入更新人id"
/>
</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/enterprise/info"
;
import
FileUpload
from
'@/components/FileUpload'
;
export
default
{
name
:
"Info"
,
components
:
{
FileUpload
,
},
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 企业基本信息表格数据
infoList
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
unitName
:
null
,
orgCode
:
null
,
orgFilePath
:
null
,
orgFileName
:
null
,
runAddress
:
null
,
regAddress
:
null
,
regulationBigType
:
null
,
regulationSmallType
:
null
,
provinceId
:
null
,
provinceName
:
null
,
cityId
:
null
,
cityName
:
null
,
countyId
:
null
,
countyName
:
null
,
areaName
:
null
,
streetName
:
null
,
longitude
:
null
,
latitude
:
null
,
legalPerson
:
null
,
legalPersonPhone
:
null
,
legalPersonTelephone
:
null
,
legalPersonEmail
:
null
,
authorizeFile
:
null
,
authorizeFileOriginalName
:
null
,
boundary
:
null
,
isEnable
:
null
,
createUserId
:
null
,
updateUserId
:
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
=
{
infoId
:
null
,
unitName
:
null
,
orgCode
:
null
,
orgFilePath
:
null
,
orgFileName
:
null
,
runAddress
:
null
,
regAddress
:
null
,
regulationBigType
:
null
,
regulationSmallType
:
null
,
provinceId
:
null
,
provinceName
:
null
,
cityId
:
null
,
cityName
:
null
,
countyId
:
null
,
countyName
:
null
,
areaName
:
null
,
streetName
:
null
,
longitude
:
null
,
latitude
:
null
,
legalPerson
:
null
,
legalPersonPhone
:
null
,
legalPersonTelephone
:
null
,
legalPersonEmail
:
null
,
authorizeFile
:
null
,
authorizeFileOriginalName
:
null
,
boundary
:
null
,
isEnable
:
null
,
createUserId
:
null
,
updateUserId
:
null
,
updateTime
:
null
,
createTime
:
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
.
infoId
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
},
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"添加企业基本信息"
;
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
infoId
=
row
.
infoId
||
this
.
ids
getInfo
(
infoId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改企业基本信息"
;
});
},
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
infoId
!=
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
infoIds
=
row
.
infoId
||
this
.
ids
;
this
.
$confirm
(
'是否确认删除企业基本信息编号为"'
+
infoIds
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
()
{
return
delInfo
(
infoIds
);
}).
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
>
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