Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zh-baseversion-project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王浩
zh-baseversion-project
Commits
d9d6237b
Commit
d9d6237b
authored
Mar 20, 2026
by
zhangjianqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
液化气违法档案,气瓶异常分析
parent
a7a5d1df
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
2032 additions
and
0 deletions
+2032
-0
TGasAbnormalityController.java
.../controller/gasBottleTrack/TGasAbnormalityController.java
+97
-0
TGasIllegalController.java
.../web/controller/gasBottleTrack/TGasIllegalController.java
+97
-0
TGasAbnormality.java
...c/main/java/com/zehong/system/domain/TGasAbnormality.java
+147
-0
TGasIllegal.java
...m/src/main/java/com/zehong/system/domain/TGasIllegal.java
+149
-0
TGasAbnormalityMapper.java
.../java/com/zehong/system/mapper/TGasAbnormalityMapper.java
+61
-0
TGasIllegalMapper.java
...main/java/com/zehong/system/mapper/TGasIllegalMapper.java
+61
-0
ITGasAbnormalityService.java
...va/com/zehong/system/service/ITGasAbnormalityService.java
+61
-0
ITGasIllegalService.java
...n/java/com/zehong/system/service/ITGasIllegalService.java
+61
-0
TGasAbnormalityServiceImpl.java
...ehong/system/service/impl/TGasAbnormalityServiceImpl.java
+95
-0
TGasIllegalServiceImpl.java
...om/zehong/system/service/impl/TGasIllegalServiceImpl.java
+95
-0
TGasAbnormalityMapper.xml
...rc/main/resources/mapper/system/TGasAbnormalityMapper.xml
+90
-0
TGasIllegalMapper.xml
...em/src/main/resources/mapper/system/TGasIllegalMapper.xml
+90
-0
abnormality.js
zh-baseversion-web/src/api/gasBottleTrack/abnormality.js
+53
-0
illegal.js
zh-baseversion-web/src/api/gasBottleTrack/illegal.js
+53
-0
index.vue
...ersion-web/src/views/gasBottleTrack/abnormality/index.vue
+405
-0
index.vue
...aseversion-web/src/views/gasBottleTrack/illegal/index.vue
+417
-0
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/gasBottleTrack/TGasAbnormalityController.java
0 → 100644
View file @
d9d6237b
package
com
.
zehong
.
web
.
controller
.
gasBottleTrack
;
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.TGasAbnormality
;
import
com.zehong.system.service.ITGasAbnormalityService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 气瓶异常分析Controller
*
* @author zehong
* @date 2026-03-19
*/
@RestController
@RequestMapping
(
"/gasBottleTrack/abnormality"
)
public
class
TGasAbnormalityController
extends
BaseController
{
@Autowired
private
ITGasAbnormalityService
tGasAbnormalityService
;
/**
* 查询气瓶异常分析列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TGasAbnormality
tGasAbnormality
)
{
startPage
();
List
<
TGasAbnormality
>
list
=
tGasAbnormalityService
.
selectTGasAbnormalityList
(
tGasAbnormality
);
return
getDataTable
(
list
);
}
/**
* 导出气瓶异常分析列表
*/
@Log
(
title
=
"气瓶异常分析"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TGasAbnormality
tGasAbnormality
)
{
List
<
TGasAbnormality
>
list
=
tGasAbnormalityService
.
selectTGasAbnormalityList
(
tGasAbnormality
);
ExcelUtil
<
TGasAbnormality
>
util
=
new
ExcelUtil
<
TGasAbnormality
>(
TGasAbnormality
.
class
);
return
util
.
exportExcel
(
list
,
"气瓶异常分析数据"
);
}
/**
* 获取气瓶异常分析详细信息
*/
@GetMapping
(
value
=
"/{abnormalityId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"abnormalityId"
)
Long
abnormalityId
)
{
return
AjaxResult
.
success
(
tGasAbnormalityService
.
selectTGasAbnormalityById
(
abnormalityId
));
}
/**
* 新增气瓶异常分析
*/
@Log
(
title
=
"气瓶异常分析"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TGasAbnormality
tGasAbnormality
)
{
return
toAjax
(
tGasAbnormalityService
.
insertTGasAbnormality
(
tGasAbnormality
));
}
/**
* 修改气瓶异常分析
*/
@Log
(
title
=
"气瓶异常分析"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TGasAbnormality
tGasAbnormality
)
{
return
toAjax
(
tGasAbnormalityService
.
updateTGasAbnormality
(
tGasAbnormality
));
}
/**
* 删除气瓶异常分析
*/
@Log
(
title
=
"气瓶异常分析"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{abnormalityIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
abnormalityIds
)
{
return
toAjax
(
tGasAbnormalityService
.
deleteTGasAbnormalityByIds
(
abnormalityIds
));
}
}
zh-baseversion-admin/src/main/java/com/zehong/web/controller/gasBottleTrack/TGasIllegalController.java
0 → 100644
View file @
d9d6237b
package
com
.
zehong
.
web
.
controller
.
gasBottleTrack
;
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.TGasIllegal
;
import
com.zehong.system.service.ITGasIllegalService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 违法行为档案Controller
*
* @author zehong
* @date 2026-03-19
*/
@RestController
@RequestMapping
(
"/gasBottleTrack/illegal"
)
public
class
TGasIllegalController
extends
BaseController
{
@Autowired
private
ITGasIllegalService
tGasIllegalService
;
/**
* 查询违法行为档案列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TGasIllegal
tGasIllegal
)
{
startPage
();
List
<
TGasIllegal
>
list
=
tGasIllegalService
.
selectTGasIllegalList
(
tGasIllegal
);
return
getDataTable
(
list
);
}
/**
* 导出违法行为档案列表
*/
@Log
(
title
=
"违法行为档案"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TGasIllegal
tGasIllegal
)
{
List
<
TGasIllegal
>
list
=
tGasIllegalService
.
selectTGasIllegalList
(
tGasIllegal
);
ExcelUtil
<
TGasIllegal
>
util
=
new
ExcelUtil
<
TGasIllegal
>(
TGasIllegal
.
class
);
return
util
.
exportExcel
(
list
,
"违法行为档案数据"
);
}
/**
* 获取违法行为档案详细信息
*/
@GetMapping
(
value
=
"/{illegalId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"illegalId"
)
Long
illegalId
)
{
return
AjaxResult
.
success
(
tGasIllegalService
.
selectTGasIllegalById
(
illegalId
));
}
/**
* 新增违法行为档案
*/
@Log
(
title
=
"违法行为档案"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TGasIllegal
tGasIllegal
)
{
return
toAjax
(
tGasIllegalService
.
insertTGasIllegal
(
tGasIllegal
));
}
/**
* 修改违法行为档案
*/
@Log
(
title
=
"违法行为档案"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TGasIllegal
tGasIllegal
)
{
return
toAjax
(
tGasIllegalService
.
updateTGasIllegal
(
tGasIllegal
));
}
/**
* 删除违法行为档案
*/
@Log
(
title
=
"违法行为档案"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{illegalIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
illegalIds
)
{
return
toAjax
(
tGasIllegalService
.
deleteTGasIllegalByIds
(
illegalIds
));
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TGasAbnormality.java
0 → 100644
View file @
d9d6237b
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_gas_abnormality
*
* @author zehong
* @date 2026-03-19
*/
public
class
TGasAbnormality
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** id */
private
Long
abnormalityId
;
/** 异常类型 */
@Excel
(
name
=
"异常类型"
)
private
String
abnormalityType
;
/** 所属企业 */
@Excel
(
name
=
"所属企业"
)
private
String
enterpriseName
;
private
String
beyondEnterpriseId
;
/** 气瓶编号 */
@Excel
(
name
=
"气瓶编号"
)
private
String
bottleCode
;
/** 异常信息 */
@Excel
(
name
=
"异常信息"
)
private
String
message
;
/** 核实状态 0未核实 1无需处理 2已处理 */
@Excel
(
name
=
"核实状态 0未核实 1无需处理 2已处理"
)
private
String
status
;
/** 处理方式 */
@Excel
(
name
=
"处理方式"
)
private
String
content
;
/** 处理人 */
@Excel
(
name
=
"处理人"
)
private
String
people
;
public
String
getEnterpriseName
()
{
return
enterpriseName
;
}
public
void
setEnterpriseName
(
String
enterpriseName
)
{
this
.
enterpriseName
=
enterpriseName
;
}
public
void
setAbnormalityId
(
Long
abnormalityId
)
{
this
.
abnormalityId
=
abnormalityId
;
}
public
Long
getAbnormalityId
()
{
return
abnormalityId
;
}
public
void
setAbnormalityType
(
String
abnormalityType
)
{
this
.
abnormalityType
=
abnormalityType
;
}
public
String
getAbnormalityType
()
{
return
abnormalityType
;
}
public
void
setBeyondEnterpriseId
(
String
beyondEnterpriseId
)
{
this
.
beyondEnterpriseId
=
beyondEnterpriseId
;
}
public
String
getBeyondEnterpriseId
()
{
return
beyondEnterpriseId
;
}
public
void
setBottleCode
(
String
bottleCode
)
{
this
.
bottleCode
=
bottleCode
;
}
public
String
getBottleCode
()
{
return
bottleCode
;
}
public
void
setMessage
(
String
message
)
{
this
.
message
=
message
;
}
public
String
getMessage
()
{
return
message
;
}
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
public
String
getStatus
()
{
return
status
;
}
public
void
setContent
(
String
content
)
{
this
.
content
=
content
;
}
public
String
getContent
()
{
return
content
;
}
public
void
setPeople
(
String
people
)
{
this
.
people
=
people
;
}
public
String
getPeople
()
{
return
people
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"abnormalityId"
,
getAbnormalityId
())
.
append
(
"abnormalityType"
,
getAbnormalityType
())
.
append
(
"beyondEnterpriseId"
,
getBeyondEnterpriseId
())
.
append
(
"bottleCode"
,
getBottleCode
())
.
append
(
"message"
,
getMessage
())
.
append
(
"status"
,
getStatus
())
.
append
(
"content"
,
getContent
())
.
append
(
"people"
,
getPeople
())
.
append
(
"createTime"
,
getCreateTime
())
.
toString
();
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TGasIllegal.java
0 → 100644
View file @
d9d6237b
package
com
.
zehong
.
system
.
domain
;
import
java.util.Date
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
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_gas_illegal
*
* @author zehong
* @date 2026-03-19
*/
public
class
TGasIllegal
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 档案id */
private
Long
illegalId
;
/** 企业id */
private
String
beyondEnterpriseId
;
@Excel
(
name
=
"企业"
)
private
String
enterpriseName
;
/** 违法标题 */
@Excel
(
name
=
"违法标题"
)
private
String
illegalTitle
;
/** 违法内容 */
@Excel
(
name
=
"违法内容"
)
private
String
content
;
/** 违法人员 */
@Excel
(
name
=
"违法人员"
)
private
String
people
;
/** 违法时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"违法时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
illegalTime
;
/** 处罚结果 */
@Excel
(
name
=
"处罚结果"
)
private
String
penalty
;
/** 档案附件 */
@Excel
(
name
=
"档案附件"
)
private
String
fileUrl
;
public
String
getEnterpriseName
()
{
return
enterpriseName
;
}
public
void
setEnterpriseName
(
String
enterpriseName
)
{
this
.
enterpriseName
=
enterpriseName
;
}
public
void
setIllegalId
(
Long
illegalId
)
{
this
.
illegalId
=
illegalId
;
}
public
Long
getIllegalId
()
{
return
illegalId
;
}
public
void
setBeyondEnterpriseId
(
String
beyondEnterpriseId
)
{
this
.
beyondEnterpriseId
=
beyondEnterpriseId
;
}
public
String
getBeyondEnterpriseId
()
{
return
beyondEnterpriseId
;
}
public
void
setIllegalTitle
(
String
illegalTitle
)
{
this
.
illegalTitle
=
illegalTitle
;
}
public
String
getIllegalTitle
()
{
return
illegalTitle
;
}
public
void
setContent
(
String
content
)
{
this
.
content
=
content
;
}
public
String
getContent
()
{
return
content
;
}
public
void
setPeople
(
String
people
)
{
this
.
people
=
people
;
}
public
String
getPeople
()
{
return
people
;
}
public
void
setIllegalTime
(
Date
illegalTime
)
{
this
.
illegalTime
=
illegalTime
;
}
public
Date
getIllegalTime
()
{
return
illegalTime
;
}
public
void
setPenalty
(
String
penalty
)
{
this
.
penalty
=
penalty
;
}
public
String
getPenalty
()
{
return
penalty
;
}
public
void
setFileUrl
(
String
fileUrl
)
{
this
.
fileUrl
=
fileUrl
;
}
public
String
getFileUrl
()
{
return
fileUrl
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"illegalId"
,
getIllegalId
())
.
append
(
"beyondEnterpriseId"
,
getBeyondEnterpriseId
())
.
append
(
"illegalTitle"
,
getIllegalTitle
())
.
append
(
"content"
,
getContent
())
.
append
(
"people"
,
getPeople
())
.
append
(
"illegalTime"
,
getIllegalTime
())
.
append
(
"penalty"
,
getPenalty
())
.
append
(
"fileUrl"
,
getFileUrl
())
.
append
(
"createTime"
,
getCreateTime
())
.
toString
();
}
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TGasAbnormalityMapper.java
0 → 100644
View file @
d9d6237b
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TGasAbnormality
;
/**
* 气瓶异常分析Mapper接口
*
* @author zehong
* @date 2026-03-19
*/
public
interface
TGasAbnormalityMapper
{
/**
* 查询气瓶异常分析
*
* @param abnormalityId 气瓶异常分析ID
* @return 气瓶异常分析
*/
public
TGasAbnormality
selectTGasAbnormalityById
(
Long
abnormalityId
);
/**
* 查询气瓶异常分析列表
*
* @param tGasAbnormality 气瓶异常分析
* @return 气瓶异常分析集合
*/
public
List
<
TGasAbnormality
>
selectTGasAbnormalityList
(
TGasAbnormality
tGasAbnormality
);
/**
* 新增气瓶异常分析
*
* @param tGasAbnormality 气瓶异常分析
* @return 结果
*/
public
int
insertTGasAbnormality
(
TGasAbnormality
tGasAbnormality
);
/**
* 修改气瓶异常分析
*
* @param tGasAbnormality 气瓶异常分析
* @return 结果
*/
public
int
updateTGasAbnormality
(
TGasAbnormality
tGasAbnormality
);
/**
* 删除气瓶异常分析
*
* @param abnormalityId 气瓶异常分析ID
* @return 结果
*/
public
int
deleteTGasAbnormalityById
(
Long
abnormalityId
);
/**
* 批量删除气瓶异常分析
*
* @param abnormalityIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTGasAbnormalityByIds
(
Long
[]
abnormalityIds
);
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TGasIllegalMapper.java
0 → 100644
View file @
d9d6237b
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TGasIllegal
;
/**
* 违法行为档案Mapper接口
*
* @author zehong
* @date 2026-03-19
*/
public
interface
TGasIllegalMapper
{
/**
* 查询违法行为档案
*
* @param illegalId 违法行为档案ID
* @return 违法行为档案
*/
public
TGasIllegal
selectTGasIllegalById
(
Long
illegalId
);
/**
* 查询违法行为档案列表
*
* @param tGasIllegal 违法行为档案
* @return 违法行为档案集合
*/
public
List
<
TGasIllegal
>
selectTGasIllegalList
(
TGasIllegal
tGasIllegal
);
/**
* 新增违法行为档案
*
* @param tGasIllegal 违法行为档案
* @return 结果
*/
public
int
insertTGasIllegal
(
TGasIllegal
tGasIllegal
);
/**
* 修改违法行为档案
*
* @param tGasIllegal 违法行为档案
* @return 结果
*/
public
int
updateTGasIllegal
(
TGasIllegal
tGasIllegal
);
/**
* 删除违法行为档案
*
* @param illegalId 违法行为档案ID
* @return 结果
*/
public
int
deleteTGasIllegalById
(
Long
illegalId
);
/**
* 批量删除违法行为档案
*
* @param illegalIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTGasIllegalByIds
(
Long
[]
illegalIds
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/ITGasAbnormalityService.java
0 → 100644
View file @
d9d6237b
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TGasAbnormality
;
/**
* 气瓶异常分析Service接口
*
* @author zehong
* @date 2026-03-19
*/
public
interface
ITGasAbnormalityService
{
/**
* 查询气瓶异常分析
*
* @param abnormalityId 气瓶异常分析ID
* @return 气瓶异常分析
*/
public
TGasAbnormality
selectTGasAbnormalityById
(
Long
abnormalityId
);
/**
* 查询气瓶异常分析列表
*
* @param tGasAbnormality 气瓶异常分析
* @return 气瓶异常分析集合
*/
public
List
<
TGasAbnormality
>
selectTGasAbnormalityList
(
TGasAbnormality
tGasAbnormality
);
/**
* 新增气瓶异常分析
*
* @param tGasAbnormality 气瓶异常分析
* @return 结果
*/
public
int
insertTGasAbnormality
(
TGasAbnormality
tGasAbnormality
);
/**
* 修改气瓶异常分析
*
* @param tGasAbnormality 气瓶异常分析
* @return 结果
*/
public
int
updateTGasAbnormality
(
TGasAbnormality
tGasAbnormality
);
/**
* 批量删除气瓶异常分析
*
* @param abnormalityIds 需要删除的气瓶异常分析ID
* @return 结果
*/
public
int
deleteTGasAbnormalityByIds
(
Long
[]
abnormalityIds
);
/**
* 删除气瓶异常分析信息
*
* @param abnormalityId 气瓶异常分析ID
* @return 结果
*/
public
int
deleteTGasAbnormalityById
(
Long
abnormalityId
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/ITGasIllegalService.java
0 → 100644
View file @
d9d6237b
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TGasIllegal
;
/**
* 违法行为档案Service接口
*
* @author zehong
* @date 2026-03-19
*/
public
interface
ITGasIllegalService
{
/**
* 查询违法行为档案
*
* @param illegalId 违法行为档案ID
* @return 违法行为档案
*/
public
TGasIllegal
selectTGasIllegalById
(
Long
illegalId
);
/**
* 查询违法行为档案列表
*
* @param tGasIllegal 违法行为档案
* @return 违法行为档案集合
*/
public
List
<
TGasIllegal
>
selectTGasIllegalList
(
TGasIllegal
tGasIllegal
);
/**
* 新增违法行为档案
*
* @param tGasIllegal 违法行为档案
* @return 结果
*/
public
int
insertTGasIllegal
(
TGasIllegal
tGasIllegal
);
/**
* 修改违法行为档案
*
* @param tGasIllegal 违法行为档案
* @return 结果
*/
public
int
updateTGasIllegal
(
TGasIllegal
tGasIllegal
);
/**
* 批量删除违法行为档案
*
* @param illegalIds 需要删除的违法行为档案ID
* @return 结果
*/
public
int
deleteTGasIllegalByIds
(
Long
[]
illegalIds
);
/**
* 删除违法行为档案信息
*
* @param illegalId 违法行为档案ID
* @return 结果
*/
public
int
deleteTGasIllegalById
(
Long
illegalId
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TGasAbnormalityServiceImpl.java
0 → 100644
View file @
d9d6237b
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.TGasAbnormalityMapper
;
import
com.zehong.system.domain.TGasAbnormality
;
import
com.zehong.system.service.ITGasAbnormalityService
;
/**
* 气瓶异常分析Service业务层处理
*
* @author zehong
* @date 2026-03-19
*/
@Service
public
class
TGasAbnormalityServiceImpl
implements
ITGasAbnormalityService
{
@Autowired
private
TGasAbnormalityMapper
tGasAbnormalityMapper
;
/**
* 查询气瓶异常分析
*
* @param abnormalityId 气瓶异常分析ID
* @return 气瓶异常分析
*/
@Override
public
TGasAbnormality
selectTGasAbnormalityById
(
Long
abnormalityId
)
{
return
tGasAbnormalityMapper
.
selectTGasAbnormalityById
(
abnormalityId
);
}
/**
* 查询气瓶异常分析列表
*
* @param tGasAbnormality 气瓶异常分析
* @return 气瓶异常分析
*/
@Override
public
List
<
TGasAbnormality
>
selectTGasAbnormalityList
(
TGasAbnormality
tGasAbnormality
)
{
return
tGasAbnormalityMapper
.
selectTGasAbnormalityList
(
tGasAbnormality
);
}
/**
* 新增气瓶异常分析
*
* @param tGasAbnormality 气瓶异常分析
* @return 结果
*/
@Override
public
int
insertTGasAbnormality
(
TGasAbnormality
tGasAbnormality
)
{
tGasAbnormality
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
tGasAbnormalityMapper
.
insertTGasAbnormality
(
tGasAbnormality
);
}
/**
* 修改气瓶异常分析
*
* @param tGasAbnormality 气瓶异常分析
* @return 结果
*/
@Override
public
int
updateTGasAbnormality
(
TGasAbnormality
tGasAbnormality
)
{
return
tGasAbnormalityMapper
.
updateTGasAbnormality
(
tGasAbnormality
);
}
/**
* 批量删除气瓶异常分析
*
* @param abnormalityIds 需要删除的气瓶异常分析ID
* @return 结果
*/
@Override
public
int
deleteTGasAbnormalityByIds
(
Long
[]
abnormalityIds
)
{
return
tGasAbnormalityMapper
.
deleteTGasAbnormalityByIds
(
abnormalityIds
);
}
/**
* 删除气瓶异常分析信息
*
* @param abnormalityId 气瓶异常分析ID
* @return 结果
*/
@Override
public
int
deleteTGasAbnormalityById
(
Long
abnormalityId
)
{
return
tGasAbnormalityMapper
.
deleteTGasAbnormalityById
(
abnormalityId
);
}
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TGasIllegalServiceImpl.java
0 → 100644
View file @
d9d6237b
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.TGasIllegalMapper
;
import
com.zehong.system.domain.TGasIllegal
;
import
com.zehong.system.service.ITGasIllegalService
;
/**
* 违法行为档案Service业务层处理
*
* @author zehong
* @date 2026-03-19
*/
@Service
public
class
TGasIllegalServiceImpl
implements
ITGasIllegalService
{
@Autowired
private
TGasIllegalMapper
tGasIllegalMapper
;
/**
* 查询违法行为档案
*
* @param illegalId 违法行为档案ID
* @return 违法行为档案
*/
@Override
public
TGasIllegal
selectTGasIllegalById
(
Long
illegalId
)
{
return
tGasIllegalMapper
.
selectTGasIllegalById
(
illegalId
);
}
/**
* 查询违法行为档案列表
*
* @param tGasIllegal 违法行为档案
* @return 违法行为档案
*/
@Override
public
List
<
TGasIllegal
>
selectTGasIllegalList
(
TGasIllegal
tGasIllegal
)
{
return
tGasIllegalMapper
.
selectTGasIllegalList
(
tGasIllegal
);
}
/**
* 新增违法行为档案
*
* @param tGasIllegal 违法行为档案
* @return 结果
*/
@Override
public
int
insertTGasIllegal
(
TGasIllegal
tGasIllegal
)
{
tGasIllegal
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
tGasIllegalMapper
.
insertTGasIllegal
(
tGasIllegal
);
}
/**
* 修改违法行为档案
*
* @param tGasIllegal 违法行为档案
* @return 结果
*/
@Override
public
int
updateTGasIllegal
(
TGasIllegal
tGasIllegal
)
{
return
tGasIllegalMapper
.
updateTGasIllegal
(
tGasIllegal
);
}
/**
* 批量删除违法行为档案
*
* @param illegalIds 需要删除的违法行为档案ID
* @return 结果
*/
@Override
public
int
deleteTGasIllegalByIds
(
Long
[]
illegalIds
)
{
return
tGasIllegalMapper
.
deleteTGasIllegalByIds
(
illegalIds
);
}
/**
* 删除违法行为档案信息
*
* @param illegalId 违法行为档案ID
* @return 结果
*/
@Override
public
int
deleteTGasIllegalById
(
Long
illegalId
)
{
return
tGasIllegalMapper
.
deleteTGasIllegalById
(
illegalId
);
}
}
zh-baseversion-system/src/main/resources/mapper/system/TGasAbnormalityMapper.xml
0 → 100644
View file @
d9d6237b
<?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.TGasAbnormalityMapper"
>
<resultMap
type=
"TGasAbnormality"
id=
"TGasAbnormalityResult"
>
<result
property=
"abnormalityId"
column=
"abnormality_id"
/>
<result
property=
"abnormalityType"
column=
"abnormality_type"
/>
<result
property=
"beyondEnterpriseId"
column=
"beyond_enterprise_id"
/>
<result
property=
"bottleCode"
column=
"bottle_code"
/>
<result
property=
"message"
column=
"message"
/>
<result
property=
"status"
column=
"status"
/>
<result
property=
"content"
column=
"content"
/>
<result
property=
"people"
column=
"people"
/>
<result
property=
"createTime"
column=
"create_time"
/>
</resultMap>
<sql
id=
"selectTGasAbnormalityVo"
>
select abnormality_id, abnormality_type, beyond_enterprise_id, bottle_code, message,
(SELECT enterprise_name FROM t_enterprise_info WHERE enterprise_id = beyond_enterprise_id) AS enterpriseName,
status, content, people, create_time from t_gas_abnormality
</sql>
<select
id=
"selectTGasAbnormalityList"
parameterType=
"TGasAbnormality"
resultMap=
"TGasAbnormalityResult"
>
<include
refid=
"selectTGasAbnormalityVo"
/>
<where>
<if
test=
"abnormalityType != null and abnormalityType != ''"
>
and abnormality_type = #{abnormalityType}
</if>
<if
test=
"beyondEnterpriseId != null and beyondEnterpriseId != ''"
>
and beyond_enterprise_id = #{beyondEnterpriseId}
</if>
<if
test=
"bottleCode != null and bottleCode != ''"
>
and bottle_code = #{bottleCode}
</if>
<if
test=
"status != null and status != ''"
>
and status = #{status}
</if>
</where>
order by create_time desc
</select>
<select
id=
"selectTGasAbnormalityById"
parameterType=
"Long"
resultMap=
"TGasAbnormalityResult"
>
<include
refid=
"selectTGasAbnormalityVo"
/>
where abnormality_id = #{abnormalityId}
</select>
<insert
id=
"insertTGasAbnormality"
parameterType=
"TGasAbnormality"
useGeneratedKeys=
"true"
keyProperty=
"abnormalityId"
>
insert into t_gas_abnormality
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"abnormalityType != null"
>
abnormality_type,
</if>
<if
test=
"beyondEnterpriseId != null"
>
beyond_enterprise_id,
</if>
<if
test=
"bottleCode != null"
>
bottle_code,
</if>
<if
test=
"message != null"
>
message,
</if>
<if
test=
"status != null"
>
status,
</if>
<if
test=
"content != null"
>
content,
</if>
<if
test=
"people != null"
>
people,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"abnormalityType != null"
>
#{abnormalityType},
</if>
<if
test=
"beyondEnterpriseId != null"
>
#{beyondEnterpriseId},
</if>
<if
test=
"bottleCode != null"
>
#{bottleCode},
</if>
<if
test=
"message != null"
>
#{message},
</if>
<if
test=
"status != null"
>
#{status},
</if>
<if
test=
"content != null"
>
#{content},
</if>
<if
test=
"people != null"
>
#{people},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
</trim>
</insert>
<update
id=
"updateTGasAbnormality"
parameterType=
"TGasAbnormality"
>
update t_gas_abnormality
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"abnormalityType != null"
>
abnormality_type = #{abnormalityType},
</if>
<if
test=
"beyondEnterpriseId != null"
>
beyond_enterprise_id = #{beyondEnterpriseId},
</if>
<if
test=
"bottleCode != null"
>
bottle_code = #{bottleCode},
</if>
<if
test=
"message != null"
>
message = #{message},
</if>
<if
test=
"status != null"
>
status = #{status},
</if>
<if
test=
"content != null"
>
content = #{content},
</if>
<if
test=
"people != null"
>
people = #{people},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
</trim>
where abnormality_id = #{abnormalityId}
</update>
<delete
id=
"deleteTGasAbnormalityById"
parameterType=
"Long"
>
delete from t_gas_abnormality where abnormality_id = #{abnormalityId}
</delete>
<delete
id=
"deleteTGasAbnormalityByIds"
parameterType=
"String"
>
delete from t_gas_abnormality where abnormality_id in
<foreach
item=
"abnormalityId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{abnormalityId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
zh-baseversion-system/src/main/resources/mapper/system/TGasIllegalMapper.xml
0 → 100644
View file @
d9d6237b
<?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.TGasIllegalMapper"
>
<resultMap
type=
"TGasIllegal"
id=
"TGasIllegalResult"
>
<result
property=
"illegalId"
column=
"illegal_id"
/>
<result
property=
"beyondEnterpriseId"
column=
"beyond_enterprise_id"
/>
<result
property=
"illegalTitle"
column=
"illegal_title"
/>
<result
property=
"content"
column=
"content"
/>
<result
property=
"people"
column=
"people"
/>
<result
property=
"illegalTime"
column=
"illegal_time"
/>
<result
property=
"penalty"
column=
"penalty"
/>
<result
property=
"fileUrl"
column=
"file_url"
/>
<result
property=
"createTime"
column=
"create_time"
/>
</resultMap>
<sql
id=
"selectTGasIllegalVo"
>
SELECT illegal_id, beyond_enterprise_id, illegal_title,
(SELECT enterprise_name FROM t_enterprise_info WHERE enterprise_id = beyond_enterprise_id) AS enterpriseName,
content, people, illegal_time, penalty, file_url, create_time
FROM t_gas_illegal
</sql>
<select
id=
"selectTGasIllegalList"
parameterType=
"TGasIllegal"
resultMap=
"TGasIllegalResult"
>
<include
refid=
"selectTGasIllegalVo"
/>
<where>
<if
test=
"beyondEnterpriseId != null and beyondEnterpriseId != ''"
>
and beyond_enterprise_id = #{beyondEnterpriseId}
</if>
<if
test=
"illegalTitle != null and illegalTitle != ''"
>
and illegal_title like concat('%', #{illegalTitle},'%')
</if>
<if
test=
"illegalTime != null "
>
and illegal_time = #{illegalTime}
</if>
</where>
order by create_time desc
</select>
<select
id=
"selectTGasIllegalById"
parameterType=
"Long"
resultMap=
"TGasIllegalResult"
>
<include
refid=
"selectTGasIllegalVo"
/>
where illegal_id = #{illegalId}
</select>
<insert
id=
"insertTGasIllegal"
parameterType=
"TGasIllegal"
useGeneratedKeys=
"true"
keyProperty=
"illegalId"
>
insert into t_gas_illegal
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"beyondEnterpriseId != null"
>
beyond_enterprise_id,
</if>
<if
test=
"illegalTitle != null"
>
illegal_title,
</if>
<if
test=
"content != null"
>
content,
</if>
<if
test=
"people != null"
>
people,
</if>
<if
test=
"illegalTime != null"
>
illegal_time,
</if>
<if
test=
"penalty != null"
>
penalty,
</if>
<if
test=
"fileUrl != null"
>
file_url,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"beyondEnterpriseId != null"
>
#{beyondEnterpriseId},
</if>
<if
test=
"illegalTitle != null"
>
#{illegalTitle},
</if>
<if
test=
"content != null"
>
#{content},
</if>
<if
test=
"people != null"
>
#{people},
</if>
<if
test=
"illegalTime != null"
>
#{illegalTime},
</if>
<if
test=
"penalty != null"
>
#{penalty},
</if>
<if
test=
"fileUrl != null"
>
#{fileUrl},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
</trim>
</insert>
<update
id=
"updateTGasIllegal"
parameterType=
"TGasIllegal"
>
update t_gas_illegal
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"beyondEnterpriseId != null"
>
beyond_enterprise_id = #{beyondEnterpriseId},
</if>
<if
test=
"illegalTitle != null"
>
illegal_title = #{illegalTitle},
</if>
<if
test=
"content != null"
>
content = #{content},
</if>
<if
test=
"people != null"
>
people = #{people},
</if>
<if
test=
"illegalTime != null"
>
illegal_time = #{illegalTime},
</if>
<if
test=
"penalty != null"
>
penalty = #{penalty},
</if>
<if
test=
"fileUrl != null"
>
file_url = #{fileUrl},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
</trim>
where illegal_id = #{illegalId}
</update>
<delete
id=
"deleteTGasIllegalById"
parameterType=
"Long"
>
delete from t_gas_illegal where illegal_id = #{illegalId}
</delete>
<delete
id=
"deleteTGasIllegalByIds"
parameterType=
"String"
>
delete from t_gas_illegal where illegal_id in
<foreach
item=
"illegalId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{illegalId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
zh-baseversion-web/src/api/gasBottleTrack/abnormality.js
0 → 100644
View file @
d9d6237b
import
request
from
'@/utils/request'
// 查询气瓶异常分析列表
export
function
listAbnormality
(
query
)
{
return
request
({
url
:
'/gasBottleTrack/abnormality/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询气瓶异常分析详细
export
function
getAbnormality
(
abnormalityId
)
{
return
request
({
url
:
'/gasBottleTrack/abnormality/'
+
abnormalityId
,
method
:
'get'
})
}
// 新增气瓶异常分析
export
function
addAbnormality
(
data
)
{
return
request
({
url
:
'/gasBottleTrack/abnormality'
,
method
:
'post'
,
data
:
data
})
}
// 修改气瓶异常分析
export
function
updateAbnormality
(
data
)
{
return
request
({
url
:
'/gasBottleTrack/abnormality'
,
method
:
'put'
,
data
:
data
})
}
// 删除气瓶异常分析
export
function
delAbnormality
(
abnormalityId
)
{
return
request
({
url
:
'/gasBottleTrack/abnormality/'
+
abnormalityId
,
method
:
'delete'
})
}
// 导出气瓶异常分析
export
function
exportAbnormality
(
query
)
{
return
request
({
url
:
'/gasBottleTrack/abnormality/export'
,
method
:
'get'
,
params
:
query
})
}
\ No newline at end of file
zh-baseversion-web/src/api/gasBottleTrack/illegal.js
0 → 100644
View file @
d9d6237b
import
request
from
'@/utils/request'
// 查询违法行为档案列表
export
function
listIllegal
(
query
)
{
return
request
({
url
:
'/gasBottleTrack/illegal/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询违法行为档案详细
export
function
getIllegal
(
illegalId
)
{
return
request
({
url
:
'/gasBottleTrack/illegal/'
+
illegalId
,
method
:
'get'
})
}
// 新增违法行为档案
export
function
addIllegal
(
data
)
{
return
request
({
url
:
'/gasBottleTrack/illegal'
,
method
:
'post'
,
data
:
data
})
}
// 修改违法行为档案
export
function
updateIllegal
(
data
)
{
return
request
({
url
:
'/gasBottleTrack/illegal'
,
method
:
'put'
,
data
:
data
})
}
// 删除违法行为档案
export
function
delIllegal
(
illegalId
)
{
return
request
({
url
:
'/gasBottleTrack/illegal/'
+
illegalId
,
method
:
'delete'
})
}
// 导出违法行为档案
export
function
exportIllegal
(
query
)
{
return
request
({
url
:
'/gasBottleTrack/illegal/export'
,
method
:
'get'
,
params
:
query
})
}
\ No newline at end of file
zh-baseversion-web/src/views/gasBottleTrack/abnormality/index.vue
0 → 100644
View file @
d9d6237b
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"异常类型"
prop=
"abnormalityType"
>
<el-select
v-model=
"queryParams.abnormalityType"
placeholder=
"请选择异常类型"
clearable
size=
"small"
>
<el-option
v-for=
"dict in abnormalityTypeOptions"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"所属企业"
prop=
"beyondEnterpriseId"
>
<el-select
v-model=
"queryParams.beyondEnterpriseId"
placeholder=
"请选择所属企业"
clearable
size=
"small"
>
<el-option
v-for =
"dict in enterpriseList"
:key =
"dict.enterpriseId"
:label =
"dict.enterpriseName"
:value =
"dict.enterpriseId"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"气瓶编号"
prop=
"bottleCode"
>
<el-input
v-model=
"queryParams.bottleCode"
placeholder=
"请输入气瓶编号"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"核实状态"
prop=
"status"
>
<el-select
v-model=
"queryParams.status"
placeholder=
"请选择核实状态"
clearable
size=
"small"
>
<el-option
label=
"未核实"
value=
"0"
/>
<el-option
label=
"无需处理"
value=
"1"
/>
<el-option
label=
"已处理"
value=
"2"
/>
</el-select>
</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"-->
<!-->新增
</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="['gasBottleTrack:abnormality: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="['gasBottleTrack:abnormality: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=
"['gasBottleTrack:abnormality:export']"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
v-loading=
"loading"
:data=
"abnormalityList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"气瓶编号"
align=
"center"
prop=
"bottleCode"
/>
<el-table-column
label=
"异常类型"
align=
"center"
prop=
"abnormalityType"
:formatter=
"abnormalityTypeFormat"
/>
<el-table-column
label=
"所属企业"
align=
"center"
prop=
"enterpriseName"
/>
<el-table-column
label=
"异常信息"
align=
"center"
prop=
"message"
/>
<el-table-column
label=
"核实状态"
align=
"center"
prop=
"status"
>
<template
slot-scope=
"scope"
>
<span
:style=
"scope.row.status=='0'?'color: #ff0000':'color: rgb(48, 180, 107)'"
>
{{
abnormalityStatusFormat
(
scope
.
row
,
null
)
}}
</span>
</
template
>
:formatter="abnormalityStatusFormat"
</el-table-column>
<el-table-column
label=
"处理方式"
align=
"center"
prop=
"content"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.content"
>
{{
scope
.
row
.
content
}}
</span>
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"处理人"
align=
"center"
prop=
"people"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.people"
>
{{
scope
.
row
.
people
}}
</span>
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
/
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"scope.row.status=='0'"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['gasBottleTrack:abnormality:edit']"
>
处置
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['gasBottleTrack:abnormality: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=
"abnormalityType"
>
<el-select
v-model=
"form.abnormalityType"
placeholder=
"请选择异常类型"
disabled
>
<el-option
v-for=
"dict in abnormalityTypeOptions"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"所属企业"
prop=
"beyondEnterpriseId"
>
<el-input
v-model=
"form.enterpriseName"
placeholder=
"请输入所属企业"
disabled
/>
</el-form-item>
<el-form-item
label=
"气瓶编号"
prop=
"bottleCode"
>
<el-input
v-model=
"form.bottleCode"
placeholder=
"请输入气瓶编号"
disabled
/>
</el-form-item>
<el-form-item
label=
"异常信息"
prop=
"message"
>
<el-input
v-model=
"form.message"
placeholder=
"请输入异常信息"
disabled
/>
</el-form-item>
<el-form-item
label=
"核实状态"
>
<el-select
v-model=
"form.status"
placeholder=
"请选择核实状态"
size=
"small"
>
<el-option
v-for=
"dict in abnormalityStatusOptions"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"处理方式"
>
<el-input
type=
"textarea"
v-model=
"form.content"
placeholder=
"请输入处理方式"
/>
</el-form-item>
<el-form-item
label=
"处理人"
prop=
"people"
>
<el-input
v-model=
"form.people"
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
{
listAbnormality
,
getAbnormality
,
delAbnormality
,
addAbnormality
,
updateAbnormality
,
exportAbnormality
}
from
"@/api/gasBottleTrack/abnormality"
;
import
Editor
from
'@/components/Editor'
;
import
{
enterpriseList
}
from
"@/api/system/planInfo"
;
export
default
{
name
:
"Abnormality"
,
components
:
{
Editor
,
},
data
()
{
return
{
statuslist
:[
{
label
:
'未处理'
,
value
:
'0'
},
{
label
:
'无需处理'
,
value
:
'1'
},
{
label
:
'已处理'
,
value
:
'2'
}
],
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 气瓶异常分析表格数据
abnormalityList
:
[],
enterpriseList
:[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 异常类型字典
abnormalityTypeOptions
:
[],
abnormalityStatusOptions
:[],
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
abnormalityType
:
null
,
beyondEnterpriseId
:
null
,
bottleCode
:
null
,
status
:
null
,
},
// 表单参数
form
:
{},
// 表单校验
rules
:
{
}
};
},
created
()
{
this
.
getList
();
this
.
getEnterpriseList
()
this
.
getDicts
(
"t_abnormality_type"
).
then
(
response
=>
{
this
.
abnormalityTypeOptions
=
response
.
data
;
});
this
.
getDicts
(
"t_abnormality_status"
).
then
(
response
=>
{
this
.
abnormalityStatusOptions
=
response
.
data
;
});
},
methods
:
{
//公司列表
getEnterpriseList
()
{
enterpriseList
({
pageNum
:
1
,
pageSize
:
100
}).
then
(
response
=>
{
this
.
enterpriseList
=
response
.
data
;
});
},
/** 查询气瓶异常分析列表 */
getList
()
{
this
.
loading
=
true
;
listAbnormality
(
this
.
queryParams
).
then
(
response
=>
{
this
.
abnormalityList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
});
},
// 异常类型字典翻译
abnormalityTypeFormat
(
row
,
column
)
{
return
this
.
selectDictLabel
(
this
.
abnormalityTypeOptions
,
row
.
abnormalityType
);
},
abnormalityStatusFormat
(
row
,
column
)
{
return
this
.
selectDictLabel
(
this
.
abnormalityStatusOptions
,
row
.
status
);
},
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
},
// 表单重置
reset
()
{
this
.
form
=
{
abnormalityId
:
null
,
abnormalityType
:
null
,
beyondEnterpriseId
:
null
,
bottleCode
:
null
,
message
:
null
,
status
:
"0"
,
content
:
null
,
people
:
null
,
createTime
:
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
.
abnormalityId
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
},
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"添加气瓶异常分析"
;
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
abnormalityId
=
row
.
abnormalityId
||
this
.
ids
getAbnormality
(
abnormalityId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改气瓶异常分析"
;
});
},
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
abnormalityId
!=
null
)
{
updateAbnormality
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
getList
();
});
}
else
{
addAbnormality
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
getList
();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
abnormalityIds
=
row
.
abnormalityId
||
this
.
ids
;
this
.
$confirm
(
'是否确认删除气瓶异常分析编号为"'
+
abnormalityIds
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
()
{
return
delAbnormality
(
abnormalityIds
);
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
}).
catch
(()
=>
{});
},
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
;
this
.
$confirm
(
'是否确认导出所有气瓶异常分析数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportAbnormality
(
queryParams
);
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
::v-deep
.el-select
{
width
:
100%
;
}
</
style
>
zh-baseversion-web/src/views/gasBottleTrack/illegal/index.vue
0 → 100644
View file @
d9d6237b
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"企业"
prop=
"beyondEnterpriseId"
>
<el-select
v-model=
"queryParams.beyondEnterpriseId"
placeholder=
"请选择所属企业"
clearable
size=
"small"
>
<el-option
v-for =
"dict in enterpriseList"
:key =
"dict.enterpriseId"
:label =
"dict.enterpriseName"
:value =
"dict.enterpriseId"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"违法标题"
prop=
"illegalTitle"
>
<el-input
v-model=
"queryParams.illegalTitle"
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=
"['gasBottleTrack:illegal: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=
"['gasBottleTrack:illegal: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=
"['gasBottleTrack:illegal: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=
"['gasBottleTrack:illegal:export']"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
v-loading=
"loading"
:data=
"illegalList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"企业"
align=
"center"
prop=
"enterpriseName"
/>
<el-table-column
label=
"违法标题"
align=
"center"
prop=
"illegalTitle"
/>
<el-table-column
label=
"违法内容"
align=
"center"
prop=
"content"
/>
<el-table-column
label=
"违法人员"
align=
"center"
prop=
"people"
/>
<el-table-column
label=
"违法时间"
align=
"center"
prop=
"illegalTime"
width=
"180"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
illegalTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"处罚结果"
align
=
"center"
prop
=
"penalty"
/>
<
el
-
table
-
column
label
=
"档案附件"
align
=
"center"
prop
=
"fileUrl"
>
<
template
slot
-
scope
=
"scope"
>
<
span
class
=
"dbtn"
@
click
=
"checkFile(scope.row.fileUrl)"
v
-
if
=
"scope.row.fileUrl != null && scope.row.fileUrl!=''"
>
<
i
class
=
"el-icon el-icon-view"
><
/i>查看/
下载
<
/span
>
<
span
v
-
else
>-<
/span
>
<
/template
>
<
/el-table-column
>
<
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
=
"['gasBottleTrack:illegal:edit']"
>
修改
<
/el-button
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-delete"
@
click
=
"handleDelete(scope.row)"
v
-
hasPermi
=
"['gasBottleTrack:illegal: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
=
"600px"
append
-
to
-
body
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"80px"
>
<
el
-
form
-
item
label
=
"企业"
prop
=
"beyondEnterpriseId"
>
<
el
-
select
v
-
model
=
"form.beyondEnterpriseId"
placeholder
=
"请选择所属企业"
clearable
size
=
"small"
>
<
el
-
option
v
-
for
=
"dict in enterpriseList"
:
key
=
"dict.enterpriseId"
:
label
=
"dict.enterpriseName"
:
value
=
"dict.enterpriseId"
/>
<
/el-select
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"违法标题"
prop
=
"illegalTitle"
>
<
el
-
input
v
-
model
=
"form.illegalTitle"
placeholder
=
"请输入违法标题"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"违法内容"
prop
=
"content"
>
<
el
-
input
v
-
model
=
"form.content"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"违法人员"
prop
=
"people"
>
<
el
-
input
v
-
model
=
"form.people"
placeholder
=
"请输入违法人员"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"违法时间"
prop
=
"illegalTime"
>
<
el
-
date
-
picker
clearable
size
=
"small"
v
-
model
=
"form.illegalTime"
type
=
"date"
value
-
format
=
"yyyy-MM-dd"
placeholder
=
"选择违法时间"
>
<
/el-date-picker
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"处罚结果"
prop
=
"penalty"
>
<
el
-
input
v
-
model
=
"form.penalty"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"档案附件"
prop
=
"fileUrl"
>
<
FileUpload
listType
=
"picture"
@
resFun
=
"getFileInfo"
@
remove
=
"listRemove"
:
fileArr
=
"fileList"
/>
<
el
-
input
v
-
show
=
"false"
disabled
v
-
model
=
"form.fileUrl"
><
/el-input
>
<
/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
{
listIllegal
,
getIllegal
,
delIllegal
,
addIllegal
,
updateIllegal
,
exportIllegal
}
from
"@/api/gasBottleTrack/illegal"
;
import
{
enterpriseList
}
from
"@/api/system/planInfo"
;
import
FileUpload
from
'@/components/FileUpload'
;
let
uploadfile
=
require
(
"@/assets/uploadfile.png"
);
export
default
{
name
:
"Illegal"
,
components
:
{
FileUpload
}
,
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 违法行为档案表格数据
illegalList
:
[],
enterpriseList
:[],
fileList
:[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
beyondEnterpriseId
:
null
,
illegalTitle
:
null
,
illegalTime
:
null
,
}
,
// 表单参数
form
:
{
}
,
// 表单校验
rules
:
{
beyondEnterpriseId
:
[
{
required
:
true
,
message
:
"请选择企业"
,
trigger
:
"blur"
}
,
],
illegalTitle
:
[
{
required
:
true
,
message
:
"请输入违法标题"
,
trigger
:
"blur"
}
,
],
content
:
[
{
required
:
true
,
message
:
"请输入违法内容 "
,
trigger
:
"blur"
}
,
],
}
}
;
}
,
created
()
{
this
.
getList
();
this
.
getEnterpriseList
()
}
,
methods
:
{
//公司列表
getEnterpriseList
()
{
enterpriseList
({
pageNum
:
1
,
pageSize
:
100
}
).
then
(
response
=>
{
this
.
enterpriseList
=
response
.
data
;
}
);
}
,
/** 查询违法行为档案列表 */
getList
()
{
this
.
loading
=
true
;
listIllegal
(
this
.
queryParams
).
then
(
response
=>
{
this
.
illegalList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
}
);
}
,
//上传
getFileInfo
(
res
){
//this.form.dealPlan = res.fileName;
this
.
form
.
fileUrl
=
res
.
url
;
this
.
fileList
.
push
({
name
:
res
.
fileName
,
url
:
uploadfile
,
}
);
}
,
listRemove
(
e
)
{
this
.
form
.
fileUrl
=
""
;
this
.
fileList
=
[];
}
,
checkFile
(
url
)
{
window
.
open
(
url
,
'_blank'
);
}
,
// 取消按钮
cancel
()
{
this
.
fileList
=
[];
this
.
open
=
false
;
this
.
reset
();
}
,
//点击下载
downloadFile
()
{
var
item
=
this
.
fileurl
;
var
title
=
item
.
split
(
"/"
)[
item
.
split
(
"/"
).
length
-
1
];
this
.
download
(
item
,
title
);
}
,
download
(
src
,
fileName
)
{
let
x
=
new
XMLHttpRequest
();
x
.
open
(
"GET"
,
src
,
true
);
x
.
responseType
=
'blob'
;
x
.
onload
=
function
(
e
)
{
let
url
=
window
.
URL
.
createObjectURL
(
x
.
response
)
let
a
=
document
.
createElement
(
'a'
);
a
.
href
=
url
a
.
download
=
fileName
a
.
click
()
}
x
.
send
();
}
,
// 表单重置
reset
()
{
this
.
form
=
{
illegalId
:
null
,
beyondEnterpriseId
:
null
,
illegalTitle
:
null
,
content
:
null
,
people
:
null
,
illegalTime
:
null
,
penalty
:
null
,
fileUrl
:
null
,
createTime
:
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
.
illegalId
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
}
,
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"添加违法行为档案"
;
}
,
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
illegalId
=
row
.
illegalId
||
this
.
ids
getIllegal
(
illegalId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
if
(
this
.
form
.
fileUrl
!=
null
||
this
.
form
.
fileUrl
==
""
){
this
.
fileList
=
[{
name
:
'file'
,
url
:
uploadfile
}
];
}
this
.
open
=
true
;
this
.
title
=
"修改违法行为档案"
;
}
);
}
,
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
illegalId
!=
null
)
{
updateIllegal
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
else
{
addIllegal
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
}
}
);
}
,
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
illegalIds
=
row
.
illegalId
||
this
.
ids
;
this
.
$confirm
(
'是否确认删除违法行为档案编号为"'
+
illegalIds
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(
function
()
{
return
delIllegal
(
illegalIds
);
}
).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
}
).
catch
(()
=>
{
}
);
}
,
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
;
this
.
$confirm
(
'是否确认导出所有违法行为档案数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportIllegal
(
queryParams
);
}
).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
exportLoading
=
false
;
}
).
catch
(()
=>
{
}
);
}
}
}
;
<
/script
>
<
style
lang
=
"scss"
scoped
>
.
dbtn
{
display
:
inline
-
block
;
line
-
height
:
normal
;
padding
-
left
:
2
px
;
padding
-
right
:
2
px
;
cursor
:
pointer
;
border
-
radius
:
3
px
;
border
-
style
:
solid
;
border
-
width
:
0
;
color
:
rgb
(
48
,
180
,
107
);
}
::
v
-
deep
.
el
-
select
{
width
:
100
%
;
}
<
/style
>
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