Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rongtong-app
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-app
Commits
6dd99586
Commit
6dd99586
authored
Jul 10, 2023
by
杨帆
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-yf'' into 'develop'
Dev yf' See merge request
!11
parents
82c13bd1
4ac88765
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
21 deletions
+28
-21
src/views/riskProject/add/taskList.vue
src/views/riskProject/add/taskList.vue
+22
-16
src/views/riskProject/approve/index.vue
src/views/riskProject/approve/index.vue
+6
-5
No files found.
src/views/riskProject/add/taskList.vue
View file @
6dd99586
...
...
@@ -22,14 +22,18 @@
<div>
开始时间:
</div>
<div>
{{
timestampToTimes
(
messageList
.
startTime
,
'
DT2
'
)
||
messageList
.
startTime
timestampToTimes
(
messageList
.
startTime
,
"
DT2
"
)
||
messageList
.
startTime
}}
</div>
</van-grid-item>
<van-grid-item>
<div>
结束时间:
</div>
<div>
{{
timestampToTimes
(
messageList
.
endTime
,
'
DT2
'
)
||
messageList
.
endTime
}}
{{
timestampToTimes
(
messageList
.
endTime
,
"
DT2
"
)
||
messageList
.
endTime
}}
</div>
</van-grid-item>
</van-grid>
...
...
@@ -130,7 +134,7 @@
input-align=
"right"
:formatter=
"
() =>
{
return timestampToTimes(form.startTime,'DT2');
return timestampToTimes(form.startTime,
'DT2');
}
"
:rules="[{ required: true, message: '任务开始时间不能为空' }]"
...
...
@@ -143,7 +147,7 @@
label=
"任务结束时间"
:formatter=
"
() =>
{
return timestampToTimes(form.endTime,
'DT2')
return timestampToTimes(form.endTime,
'DT2');
}
"
input-align="right"
...
...
@@ -171,7 +175,7 @@
style=
"margin-top:10px;"
@
click=
"toRiskDetail(item)"
>
<van-col
span=
"20"
>
<van-col
span=
"20"
>
<van-col
span=
"5"
>
<van-image
width=
"46"
...
...
@@ -190,7 +194,7 @@
<van-col
span=
"4"
>
<van-row
type=
"flex"
>
详情
<van-icon
name=
"arrow"
size=
"26px"
/>
<van-icon
name=
"arrow"
size=
"26px"
/>
</van-row>
</van-col>
</van-row>
...
...
@@ -210,7 +214,7 @@
<van-row>
<van-col
span=
"24"
>
<div
class=
"info-title"
>
{{
timestampToTimes
(
item
.
startTime
,
"
DT1
"
)
}}
{{
timestampToTimes
(
item
.
startTime
,
"
DT1
"
)
}}
</div>
</van-col>
</van-row>
...
...
@@ -222,15 +226,17 @@
</van-row>
<van-row>
<van-col
span=
"7"
><span
class=
"field-title"
>
审批结果
:
</span></van-col
><span
class=
"field-title"
>
任务节点
:
</span></van-col
>
<van-col
span=
"17"
>
{{
item
.
taskName
}}
</van-col>
</van-row>
<van-row>
<van-row
v-show=
"item.taskResult"
>
<van-col
span=
"7"
><span
class=
"field-title"
>
岗位
:
</span></van-col
><span
class=
"field-title"
>
审批结果
:
</span></van-col
>
<van-col
span=
"17"
>
{{
item
.
taskResult
}}
</van-col>
<van-col
span=
"17"
>
{{
item
.
taskResult
==
1
?
"
审批通过
"
:
"
审批否决
"
}}
</van-col>
</van-row>
<!--
<van-row>
<van-col
span=
"7"
...
...
@@ -341,7 +347,7 @@
</div>
</div>
<div
v-show=
"pathAuth == 'riskApprove' && status == 2"
v-show=
"pathAuth == 'riskApprove
0
' && status == 2"
style=
"display: flex;
justify-content: space-around;
background-color: #fff;
...
...
@@ -426,7 +432,7 @@
<van-row
gutter=
""
>
<van-col
span=
"8"
>
发起时间:
</van-col>
<van-col
span=
"16"
>
{{
timestampToTimes
(
item
.
startTime
,
"
DT2
"
)
}}
>
{{
timestampToTimes
(
item
.
startTime
,
"
DT2
"
)
}}
</van-col>
</van-row>
</van-col>
...
...
@@ -555,12 +561,12 @@ export default {
this
.
getRiskTaskList
(
this
.
planId
,
buildingId
);
},
methods
:
{
timestampToTimes
(
time
,
type
)
{
timestampToTimes
(
time
,
type
)
{
return
timestampToTime
(
new
Date
(
time
),
type
,
true
);
},
//执行任务
performTasks
()
{
console
.
log
(
this
.
messageList
,
'
LLLL
'
)
console
.
log
(
this
.
messageList
,
"
LLLL
"
);
sessionStorage
.
setItem
(
"
buildingId
"
,
this
.
messageList
.
riskBuildingListDtos
[
0
].
buildingId
...
...
@@ -642,7 +648,7 @@ export default {
console
.
log
(
res
.
data
,
"
lll
"
);
this
.
riskList
=
res
.
data
;
});
}
else
{
}
else
{
getFun
(
`/risk/plan/inherent/list/
${
planId
}
`
).
then
(
res
=>
{
console
.
log
(
res
.
data
,
"
lll
"
);
this
.
riskList
=
res
.
data
;
...
...
src/views/riskProject/approve/index.vue
View file @
6dd99586
...
...
@@ -53,7 +53,7 @@
type=
"info"
size=
"mini"
@
click=
"todetail(index, item)"
>
{{
active
==
2
?
"
去处理
"
:
"
去审批
"
}}
</van-button
>
{{
active
==
0
?
"
去审批
"
:
"
查看详情
"
}}
</van-button
>
</van-row>
</van-col>
...
...
@@ -121,7 +121,7 @@ export default {
buildingList
:
[]
};
},
crea
ted
()
{
moun
ted
()
{
this
.
postList
(
0
);
},
methods
:
{
...
...
@@ -144,9 +144,9 @@ export default {
duration
:
0
});
let
url
=
`/risk/plan/approve/list?status=running`
;
if
(
nam
e
==
0
)
{
if
(
this
.
activ
e
==
0
)
{
url
=
`/risk/plan/approve/list?status=running`
;
}
else
if
(
nam
e
==
1
)
{
}
else
if
(
this
.
activ
e
==
1
)
{
url
=
`/risk/plan/approve/list?status=completed`
;
}
else
{
url
=
`/risk/plan/approve/list?status=return`
;
...
...
@@ -175,7 +175,8 @@ export default {
// buildingId: item.buildingId
}
});
sessionStorage
.
setItem
(
"
pathAuth
"
,
"
riskApprove
"
);
if
(
this
.
active
==
0
)
sessionStorage
.
setItem
(
"
pathAuth
"
,
"
riskApprove0
"
);
else
sessionStorage
.
setItem
(
"
pathAuth
"
,
"
riskApprove1
"
);
sessionStorage
.
setItem
(
"
planId
"
,
item
.
id
);
sessionStorage
.
setItem
(
"
buildingId
"
,
""
);
}
...
...
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