Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rongtong-pc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
融通安全管理系统
rongtong-pc
Commits
a255e982
Commit
a255e982
authored
Jul 24, 2023
by
陈晓晋
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'xjchen' into 'develop'
任务管理列表修改20230724-1 See merge request
!3
parents
44d5e8b3
768fc7ab
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
351 additions
and
484 deletions
+351
-484
src/views/risk/plan/ledger.vue
src/views/risk/plan/ledger.vue
+116
-160
src/views/risk/plan/ledgerdata.vue
src/views/risk/plan/ledgerdata.vue
+235
-324
No files found.
src/views/risk/plan/ledger.vue
View file @
a255e982
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-form
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"任务名称"
prop=
"name"
>
<el-form-item
label=
"任务名称"
prop=
"name"
>
<el-input
<el-input
v-model=
"queryParams.name"
placeholder=
"请输入任务名称"
clearable
@
keyup.enter.native=
"handleQuery"
/>
v-model=
"queryParams.name"
placeholder=
"请输入任务名称"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
type=
"primary"
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
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-item>
</el-form>
</el-form>
<el-table
<el-table
v-loading=
"loading"
:data=
"planList"
@
selection-change=
"handleSelectionChange"
>
v-loading=
"loading"
:data=
"planList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
label=
"序号"
align=
"center"
>
<el-table-column
label=
"序号"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
$index
+
1
}}
</span>
<span>
{{
scope
.
$index
+
1
}}
</span>
...
@@ -48,159 +24,139 @@
...
@@ -48,159 +24,139 @@
<el-table-column
label=
"创建单位"
align=
"center"
prop=
"createDeptName"
/>
<el-table-column
label=
"创建单位"
align=
"center"
prop=
"createDeptName"
/>
<el-table-column
label=
"负责人"
align=
"center"
prop=
"leaderUserName"
/>
<el-table-column
label=
"负责人"
align=
"center"
prop=
"leaderUserName"
/>
<el-table-column
label=
"执行人员"
align=
"center"
prop=
"workUserNames"
/>
<el-table-column
label=
"执行人员"
align=
"center"
prop=
"workUserNames"
/>
<el-table-column
<el-table-column
label=
"开始时间"
align=
"center"
prop=
"startTime"
width=
"180"
>
label=
"开始时间"
align=
"center"
prop=
"startTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
startTime
,
"
{y
}
-{m
}
-{d
}
"
)
}}
<
/span
>
<span>
{{
parseTime
(
scope
.
row
.
startTime
,
"
{y
}
-{m
}
-{d
}
"
)
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
label
=
"
结束时间
"
align
=
"
center
"
prop
=
"
endTime
"
width
=
"
180
"
>
label
=
"
结束时间
"
align
=
"
center
"
prop
=
"
endTime
"
width
=
"
180
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
span
>
{{
parseTime
(
scope
.
row
.
endTime
,
"
{y
}
-{m
}
-{d
}
"
)
}}
<
/span
>
<
span
>
{{
parseTime
(
scope
.
row
.
endTime
,
"
{y
}
-{m
}
-{d
}
"
)
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
状态
"
align
=
"
center
"
prop
=
"
statusName
"
/>
<
el
-
table
-
column
label
=
"
状态
"
align
=
"
center
"
prop
=
"
statusName
"
/>
<
el
-
table
-
column
<
el
-
table
-
column
label
=
"
操作
"
align
=
"
center
"
:
show
-
overflow
-
tooltip
=
"
true
"
>
label
=
"
操作
"
align
=
"
center
"
:
show
-
overflow
-
tooltip
=
"
true
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
router
-
link
<
router
-
link
:
to
=
"
'/risk/plan/ledgerdata/index/' + scope.row.id
"
class
=
"
link-type
"
>
:
to
=
"
'/risk/plan/ledgerdata/index/' + scope.row.id
"
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-view
"
>
详情
<
/el-button
>
class
=
"
link-type
"
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-view
"
>
详情
<
/el-butto
n
>
<
/router-link
>
<
/router-link
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
/el-table
>
<
/el-table
>
<
pagination
<
pagination
v
-
show
=
"
total > 0
"
:
total
=
"
total
"
:
page
.
sync
=
"
queryParams.pageNum
"
:
limit
.
sync
=
"
queryParams.pageSize
"
v
-
show
=
"
total > 0
"
@
pagination
=
"
getList
"
/>
:
total
=
"
total
"
:
page
.
sync
=
"
queryParams.pageNum
"
:
limit
.
sync
=
"
queryParams.pageSize
"
@
pagination
=
"
getList
"
/>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
script
>
<
script
>
import
{
listPlan
,
addPlan
,
updatePlan
}
from
"
@/api/risk/plan
"
;
import
{
listPlan
,
addPlan
,
updatePlan
}
from
"
@/api/risk/plan
"
;
export
default
{
export
default
{
name
:
"
Plan
"
,
name
:
"
Plan
"
,
data
()
{
data
()
{
return
{
return
{
// 遮罩层
// 遮罩层
loading
:
true
,
loading
:
true
,
// 选中数组
// 选中数组
ids
:
[],
ids
:
[],
// 非单个禁用
// 非单个禁用
single
:
true
,
single
:
true
,
// 非多个禁用
// 非多个禁用
multiple
:
true
,
multiple
:
true
,
// 显示搜索条件
// 显示搜索条件
showSearch
:
true
,
showSearch
:
true
,
// 总条数
// 总条数
total
:
0
,
total
:
0
,
// 风险计划表格数据
// 风险计划表格数据
planList
:
[],
planList
:
[],
// 弹出层标题
// 弹出层标题
title
:
""
,
title
:
""
,
// 是否显示弹出层
// 是否显示弹出层
open
:
false
,
open
:
false
,
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
name
:
null
,
name
:
null
,
no
:
null
,
no
:
null
,
projectId
:
null
,
projectId
:
null
,
buildingIds
:
null
,
buildingIds
:
null
,
createUserId
:
null
,
createUserId
:
null
,
createDeptId
:
null
,
createDeptId
:
null
,
leaderUserId
:
null
,
leaderUserId
:
null
,
workUserIds
:
null
,
workUserIds
:
null
,
startTime
:
null
,
startTime
:
null
,
endTime
:
null
,
endTime
:
null
,
status
:
null
,
status
:
null
,
}
,
}
,
// 表单参数
// 表单参数
form
:
{
}
,
form
:
{
}
,
// 表单校验
// 表单校验
rules
:
{
}
,
rules
:
{
}
,
}
;
}
,
created
()
{
this
.
getList
();
}
,
methods
:
{
/** 查询风险计划列表 */
getList
()
{
this
.
loading
=
true
;
listPlan
(
this
.
queryParams
).
then
((
response
)
=>
{
this
.
planList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
}
);
}
,
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
}
,
// 表单重置
reset
()
{
this
.
form
=
{
id
:
null
,
name
:
null
,
no
:
null
,
projectId
:
null
,
buildingIds
:
null
,
createUserId
:
null
,
createDeptId
:
null
,
leaderUserId
:
null
,
workUserIds
:
null
,
startTime
:
null
,
endTime
:
null
,
status
:
null
,
delFlag
:
null
,
createBy
:
null
,
createTime
:
null
,
updateBy
:
null
,
updateTime
:
null
,
}
;
}
;
this
.
resetForm
(
"
form
"
);
}
,
}
,
/** 搜索按钮操作 */
created
()
{
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
this
.
getList
();
}
,
}
,
/** 重置按钮操作 */
methods
:
{
resetQuery
()
{
/** 查询风险计划列表 */
this
.
resetForm
(
"
queryForm
"
);
getList
()
{
this
.
handleQuery
();
this
.
loading
=
true
;
}
,
listPlan
(
this
.
queryParams
).
then
((
response
)
=>
{
// 多选框选中数据
this
.
planList
=
response
.
rows
;
handleSelectionChange
(
selection
)
{
this
.
total
=
response
.
total
;
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
id
);
this
.
loading
=
false
;
this
.
single
=
selection
.
length
!==
1
;
}
);
this
.
multiple
=
!
selection
.
length
;
}
,
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
}
,
// 表单重置
reset
()
{
this
.
form
=
{
id
:
null
,
name
:
null
,
no
:
null
,
projectId
:
null
,
buildingIds
:
null
,
createUserId
:
null
,
createDeptId
:
null
,
leaderUserId
:
null
,
workUserIds
:
null
,
startTime
:
null
,
endTime
:
null
,
status
:
null
,
delFlag
:
null
,
createBy
:
null
,
createTime
:
null
,
updateBy
:
null
,
updateTime
:
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
.
id
);
this
.
single
=
selection
.
length
!==
1
;
this
.
multiple
=
!
selection
.
length
;
}
,
}
,
}
,
}
,
}
;
}
;
<
/script>
<
/script
>
\ No newline at end of file
src/views/risk/plan/ledgerdata.vue
View file @
a255e982
This diff is collapsed.
Click to expand it.
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