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
33f941cc
Commit
33f941cc
authored
Feb 17, 2022
by
zhangjianqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
投诉处置
parent
ab8c0400
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
285 additions
and
238 deletions
+285
-238
TComplainDealController.java
.../web/controller/complainDeal/TComplainDealController.java
+21
-1
TComplainDeal.java
...src/main/java/com/zehong/system/domain/TComplainDeal.java
+8
-8
TComplainDealMapper.java
...in/java/com/zehong/system/mapper/TComplainDealMapper.java
+11
-0
ITComplainDealService.java
...java/com/zehong/system/service/ITComplainDealService.java
+4
-0
TComplainDealServiceImpl.java
.../zehong/system/service/impl/TComplainDealServiceImpl.java
+6
-0
TComplainDealMapper.xml
.../src/main/resources/mapper/system/TComplainDealMapper.xml
+4
-0
complainDeal.js
gassafetyprogress-web/src/api/complainDeal/complainDeal.js
+7
-0
index.vue
gassafetyprogress-web/src/views/complainDeal/index.vue
+172
-162
index.vue
gassafetyprogress-web/src/views/system/eventInfo/index.vue
+25
-36
index.vue
gassafetyprogress-web/src/views/system/planInfo/index.vue
+27
-31
No files found.
gassafetyprogress-admin/src/main/java/com/zehong/web/controller/complainDeal/TComplainDealController.java
View file @
33f941cc
package
com
.
zehong
.
web
.
controller
.
complainDeal
;
import
java.util.List
;
import
com.zehong.common.core.domain.model.LoginUser
;
import
com.zehong.framework.web.service.SysLoginService
;
import
com.zehong.framework.web.service.TokenService
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
...
@@ -20,6 +24,8 @@ import com.zehong.system.service.ITComplainDealService;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
import
javax.servlet.http.HttpServletRequest
;
/**
* 投诉处置Controller
*
...
...
@@ -32,14 +38,20 @@ public class TComplainDealController extends BaseController
{
@Autowired
private
ITComplainDealService
tComplainDealService
;
@Autowired
private
TokenService
tokenService
;
/**
* 查询投诉处置列表
*/
@PreAuthorize
(
"@ss.hasPermi('complainDeal:complainDeal:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TComplainDeal
tComplainDeal
)
public
TableDataInfo
list
(
TComplainDeal
tComplainDeal
,
HttpServletRequest
request
)
{
LoginUser
loginUser
=
tokenService
.
getLoginUser
(
request
);
if
(
loginUser
.
getUser
().
getDeptId
()!=-
2
){
tComplainDeal
.
setComplainAssignEnterproseId
(
loginUser
.
getUser
().
getDeptId
());
}
startPage
();
List
<
TComplainDeal
>
list
=
tComplainDealService
.
selectTComplainDealList
(
tComplainDeal
);
return
getDataTable
(
list
);
...
...
@@ -100,4 +112,12 @@ public class TComplainDealController extends BaseController
{
return
toAjax
(
tComplainDealService
.
deleteTComplainDealByIds
(
complainDealIds
));
}
@GetMapping
(
"/getuserList/{enterproseId}"
)
public
AjaxResult
selectUserByenterproseId
(
@PathVariable
(
"enterproseId"
)
String
enterproseId
)
{
return
AjaxResult
.
success
(
tComplainDealService
.
selectUserByenterproseId
(
enterproseId
));
}
}
gassafetyprogress-system/src/main/java/com/zehong/system/domain/TComplainDeal.java
View file @
33f941cc
...
...
@@ -47,12 +47,12 @@ public class TComplainDeal extends BaseEntity
private
Long
complainAssignEnterproseId
;
/** 指派人 */
@Excel
(
name
=
"指派人"
)
private
Stri
ng
complainAssignManId
;
@Excel
(
name
=
"指派人
id
"
)
private
Lo
ng
complainAssignManId
;
/** 指派人id */
@Excel
(
name
=
"指派人
id
"
)
private
Lo
ng
complainAssignMan
;
@Excel
(
name
=
"指派人"
)
private
Stri
ng
complainAssignMan
;
/** 任务状态:1.派发中 2.反馈 3.归档 */
@Excel
(
name
=
"任务状态:1.派发中 2.反馈 3.归档"
)
...
...
@@ -138,21 +138,21 @@ public class TComplainDeal extends BaseEntity
{
return
complainAssignEnterproseId
;
}
public
void
setComplainAssignManId
(
String
complainAssignManId
)
public
void
setComplainAssignManId
(
Long
complainAssignManId
)
{
this
.
complainAssignManId
=
complainAssignManId
;
}
public
String
getComplainAssignManId
()
public
Long
getComplainAssignManId
()
{
return
complainAssignManId
;
}
public
void
setComplainAssignMan
(
Long
complainAssignMan
)
public
void
setComplainAssignMan
(
String
complainAssignMan
)
{
this
.
complainAssignMan
=
complainAssignMan
;
}
public
Long
getComplainAssignMan
()
public
String
getComplainAssignMan
()
{
return
complainAssignMan
;
}
...
...
gassafetyprogress-system/src/main/java/com/zehong/system/mapper/TComplainDealMapper.java
View file @
33f941cc
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
import
com.zehong.system.domain.TComplainDeal
;
import
org.apache.ibatis.annotations.Param
;
/**
* 投诉处置Mapper接口
...
...
@@ -58,4 +62,11 @@ public interface TComplainDealMapper
* @return 结果
*/
public
int
deleteTComplainDealByIds
(
Long
[]
complainDealIds
);
/**
* 查询公司下用户
* @param enterproseId
* @return
*/
public
List
<
Map
<
String
,
Object
>>
selectUserByenterproseId
(
@Param
(
"enterproseId"
)
String
enterproseId
);
}
gassafetyprogress-system/src/main/java/com/zehong/system/service/ITComplainDealService.java
View file @
33f941cc
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
java.util.Map
;
import
com.zehong.system.domain.TComplainDeal
;
/**
...
...
@@ -58,4 +60,6 @@ public interface ITComplainDealService
* @return 结果
*/
public
int
deleteTComplainDealById
(
Long
complainDealId
);
public
List
<
Map
<
String
,
Object
>>
selectUserByenterproseId
(
String
enterproseId
);
}
gassafetyprogress-system/src/main/java/com/zehong/system/service/impl/TComplainDealServiceImpl.java
View file @
33f941cc
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
java.util.Map
;
import
com.zehong.common.utils.DateUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -93,4 +95,8 @@ public class TComplainDealServiceImpl implements ITComplainDealService
{
return
tComplainDealMapper
.
deleteTComplainDealById
(
complainDealId
);
}
@Override
public
List
<
Map
<
String
,
Object
>>
selectUserByenterproseId
(
String
enterproseId
){
return
tComplainDealMapper
.
selectUserByenterproseId
(
enterproseId
);
}
}
gassafetyprogress-system/src/main/resources/mapper/system/TComplainDealMapper.xml
View file @
33f941cc
...
...
@@ -124,4 +124,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{complainDealId}
</foreach>
</delete>
<select
id=
"selectUserByenterproseId"
resultType=
"java.util.HashMap"
>
SELECT user_id as id ,nick_name as nickName FROM sys_user
WHERE del_flag!=2 and dept_id = #{enterproseId}
</select>
</mapper>
\ No newline at end of file
gassafetyprogress-web/src/api/complainDeal/complainDeal.js
View file @
33f941cc
...
...
@@ -51,3 +51,10 @@ export function exportComplainDeal(query) {
params
:
query
})
}
export
function
getUserList
(
cId
)
{
return
request
({
url
:
'/complainDeal/getuserList/'
+
cId
,
method
:
'get'
})
}
gassafetyprogress-web/src/views/complainDeal/index.vue
View file @
33f941cc
This diff is collapsed.
Click to expand it.
gassafetyprogress-web/src/views/system/eventInfo/index.vue
View file @
33f941cc
...
...
@@ -66,28 +66,6 @@
v-hasPermi=
"['system:eventInfo: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=
"['system:eventInfo: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=
"['system:eventInfo:remove']"
>
删除
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
...
...
@@ -103,7 +81,7 @@
</el-row>
<el-table
v-loading=
"loading"
:data=
"eventInfoList"
@
selection-change=
"handleSelectionChange"
>
<
el-table-column
type=
"selection"
width=
"55"
align=
"center"
/
>
<
!--
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
--
>
<!--
<el-table-column
label=
"事件id"
align=
"center"
prop=
"eventId"
/>
-->
<el-table-column
label=
"事件名称"
align=
"center"
prop=
"eventTitle"
/>
<el-table-column
label=
"所属企业"
align=
"center"
prop=
"beyondEnterpriseName"
/>
...
...
@@ -116,9 +94,21 @@
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"报案人"
align
=
"center"
prop
=
"reportPerson"
/>
<
el
-
table
-
column
label
=
"事件处置信息"
align
=
"center"
prop
=
"eventDeal"
/>
<
el
-
table
-
column
label
=
"事件评估信息"
align
=
"center"
prop
=
"eventAssessment"
/>
<
el
-
table
-
column
label
=
"备注"
align
=
"center"
prop
=
"remarks"
/>
<
el
-
table
-
column
label
=
"附件"
align
=
"center"
prop
=
"iconUrl"
width
=
"150px"
>
<
template
slot
-
scope
=
"scope"
>
<
span
class
=
"dbtn"
@
click
=
"checkFile(scope.row.iconUrl)"
v
-
if
=
"scope.row.iconUrl != null && scope.row.iconUrl!=''"
>
<
i
class
=
"el-icon el-icon-view"
><
/i>查看/
下载
<
/span
>
<
span
v
-
else
>-<
/span
>
<
/template
>
<
/el-table-column
>
<!--
<
el
-
table
-
column
label
=
"事件处置信息"
align
=
"center"
prop
=
"eventDeal"
/>-->
<!--
<
el
-
table
-
column
label
=
"事件评估信息"
align
=
"center"
prop
=
"eventAssessment"
/>-->
<!--
<
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
...
...
@@ -134,7 +124,6 @@
icon
=
"el-icon-document-copy"
@
click
=
"handleDtail(scope.row)"
>
详情
<
/el-button
>
<
el
-
button
<
el
-
button
size
=
"mini"
type
=
"text"
...
...
@@ -216,10 +205,10 @@
<
/el-form-item
>
<
/div
>
<
/div
>
<
el
-
form
-
item
label
=
"事件处置信息"
prop
=
"eventDeal"
style
=
"width:
60
%"
>
<
el
-
form
-
item
label
=
"事件处置信息"
prop
=
"eventDeal"
style
=
"width:
95
%"
>
<
el
-
input
v
-
model
=
"form.eventDeal"
type
=
"textarea"
placeholder
=
"请输入事件处置信息"
:
disabled
=
"readonly"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"事件评估信息"
prop
=
"eventAssessment"
style
=
"width:
60
%"
>
<
el
-
form
-
item
label
=
"事件评估信息"
prop
=
"eventAssessment"
style
=
"width:
95
%"
>
<
el
-
input
v
-
model
=
"form.eventAssessment"
type
=
"textarea"
placeholder
=
"请输入事件评估信息"
:
disabled
=
"readonly"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"事件附件"
prop
=
"iconUrl"
:
style
=
"display"
>
...
...
@@ -234,14 +223,14 @@
<!--
<
el
-
input
v
-
model
=
"form.iconUrl"
type
=
"textarea"
placeholder
=
"请输入内容"
/>-->
<
/el-form-item
>
<
el
-
form
-
item
label
=
"事件附件"
prop
=
"iconUrl"
:
style
=
"display1"
>
<
span
class
=
"dbtn"
@
click
=
"checkFile(form.iconUrl)"
v
-
if
=
"
form.iconUrl != ''"
>
<
span
class
=
"dbtn"
@
click
=
"checkFile(form.iconUrl)"
v
-
if
=
"form.iconUrl!=null &&
form.iconUrl != ''"
>
<
i
class
=
"el-icon el-icon-view"
><
/i>查看/
下载
<
/span
>
<
span
v
-
else
>-<
/span
>
<
span
v
-
else
>-<
/span
>
<
/el-form-item
>
<!--
<
el
-
form
-
item
label
=
"所属企业名称"
prop
=
"beyondEnterpriseName"
>-->
<!--
<
el
-
input
v
-
model
=
"form.beyondEnterpriseName"
placeholder
=
"请输入所属企业名称"
/>-->
...
...
@@ -382,7 +371,7 @@ export default {
let
obj
=
{
}
;
obj
=
this
.
enterpriseList
.
find
((
item
)
=>
{
return
item
.
enterpriseId
===
value
;
}
);
``
}
);
this
.
form
.
beyondEnterpriseName
=
obj
.
enterpriseName
;
this
.
form
.
beyondEnterpriseId
=
value
;
}
,
...
...
gassafetyprogress-web/src/views/system/planInfo/index.vue
View file @
33f941cc
...
...
@@ -57,28 +57,28 @@
v-hasPermi=
"['system:planInfo: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=
"['system:planInfo: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=
"['system:planInfo:remove']"
>
删除
</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="['system:planInfo: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="['system:planInfo:remove']"-->
<!-->删除
</el-button>
--
>
<
!--
</el-col>
--
>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
...
...
@@ -94,7 +94,7 @@
</el-row>
<el-table
v-loading=
"loading"
:data=
"planInfoList"
@
selection-change=
"handleSelectionChange"
>
<
el-table-column
type=
"selection"
width=
"55"
align=
"center"
/
>
<
!--
<el-table-column
type=
"selection"
width=
"25"
align=
"center"
/>
--
>
<!--
<el-table-column
label=
"预案id"
align=
"center"
prop=
"planId"
/>
-->
<el-table-column
label=
"预案标题"
align=
"center"
prop=
"planTitle"
/>
<el-table-column
label=
"所属企业名称"
align=
"center"
prop=
"beyondEnterpriseName"
/>
...
...
@@ -102,12 +102,12 @@
<el-table-column
label=
"预案等级"
align=
"center"
prop=
"planLevel"
:formatter=
"planLevelFormat"
/>
<!--
<el-table-column
label=
"应急方案"
align=
"center"
prop=
"planContents"
/>
-->
<el-table-column
label=
"应急设备及车辆"
align=
"center"
prop=
"planEquipment"
/>
<el-table-column
label=
"方案附件"
align=
"center"
prop=
"
dealPla
nUrl"
width=
"150px"
>
<el-table-column
label=
"方案附件"
align=
"center"
prop=
"
ico
nUrl"
width=
"150px"
>
<template
slot-scope=
"scope"
>
<span
class=
"dbtn"
@
click=
"checkFile(scope.row.iconUrl)"
v-if=
"scope.row.iconUrl != ''"
v-if=
"scope.row.iconUrl !=
null && scope.row.iconUrl!=
''"
>
<i
class=
"el-icon el-icon-view"
></i>
查看/下载
</span>
...
...
@@ -216,7 +216,7 @@
<
span
class
=
"dbtn"
@
click
=
"checkFile(form.iconUrl)"
v
-
if
=
"form.iconUrl != ''"
v
-
if
=
"form.iconUrl
!=null && form.iconUrl
!= ''"
>
<
i
class
=
"el-icon el-icon-view"
><
/i>查看/
下载
<
/span
>
...
...
@@ -346,7 +346,6 @@ export default {
}
);
}
,
qiyechang
(
value
){
console
.
log
(
value
)
let
obj
=
{
}
;
obj
=
this
.
enterpriseList
.
find
((
item
)
=>
{
return
item
.
enterpriseId
===
value
;
...
...
@@ -475,11 +474,8 @@ export default {
this
.
title
=
"修改应急预案"
;
if
(
this
.
form
.
iconUrl
!=
null
||
this
.
form
.
iconUrl
==
""
){
this
.
fileList
=
[{
name
:
'file'
,
url
:
uploadfile
}
];
this
.
$nextTick
(()
=>
{
document
.
getElementsByClassName
(
"el-upload--picture-card"
)[
0
].
style
.
display
=
"none"
document
.
getElementById
(
"yesbutton"
).
style
.
display
=
""
;
}
)
}
document
.
getElementById
(
"yesbutton"
).
style
.
display
=
""
;
document
.
getElementById
(
"fujian"
).
style
.
display
=
""
document
.
getElementById
(
"fujianxia"
).
style
.
display
=
"none"
}
);
...
...
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