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
93f5d01a
Commit
93f5d01a
authored
Jul 07, 2023
by
wei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kk
parent
d582e9e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
9 deletions
+66
-9
src/views/riskProject/add/addInherent.vue
src/views/riskProject/add/addInherent.vue
+2
-6
src/views/riskProject/add/taskList.vue
src/views/riskProject/add/taskList.vue
+64
-3
No files found.
src/views/riskProject/add/addInherent.vue
View file @
93f5d01a
...
...
@@ -17,7 +17,7 @@
<div
style=
"display: flex;"
>
<van-field
readonly
required
name=
"roomName"
:value=
"form.roomName"
label=
"所属房间"
placeholder=
"请输入"
@
click=
"seletRoom('room')"
:rules=
"[
{ required: true, message: '所属房间不能为空' }]" />
<van-button
icon=
"plus"
type=
"info"
/>
<van-button
style=
"color: #cccc;background-color: #f0f1f5;"
icon=
"plus"
type=
"info"
/>
</div>
<van-field
required
clickable
name=
"name"
v-model=
"form.name"
label=
"风险源名称"
placeholder=
"请输入"
...
...
@@ -771,9 +771,5 @@ export default {
padding: 10px;
box-sizing: border-box;
}
.van-button--info {
color: #cccc;
background-color: #f0f1f5;
border: 0.02667rem solid #f0f1f5;
}
</
style
>
src/views/riskProject/add/taskList.vue
View file @
93f5d01a
...
...
@@ -157,7 +157,47 @@
</van-form>
</van-tab>
<van-tab
title=
"风险清单"
>
<!--
<van-row
v-for=
"item in riskList"
:key=
"item.id"
>
<van-col
span=
"24"
>
{{
item
.
name
}}
</van-col>
</van-row>
-->
<van-cell-group
inset
v-for=
"(item, index) in riskList"
:key=
"index"
>
<div
style=
"font-size: 0.45rem;padding: 5px 0;"
>
{{
item
.
title
}}
</div>
<van-row
gutter=
""
>
<van-col
span=
"17"
>
<van-row
gutter=
""
>
<van-col
span=
"9"
>
风险名称:
</van-col>
<van-col
span=
"15"
>
{{
item
.
name
}}
</van-col>
</van-row>
</van-col>
<van-col
span=
"7"
>
<van-row
:style=
"
{
color: '#03b615'
}"
>
{{
item
.
state
}}
</van-row>
</van-col>
<van-col
span=
"7"
>
<van-row
:style=
"
{
color: '#03b615'
}"
>
<van-button
icon=
"plus"
@
click=
"goColorDetail"
></van-button>
</van-row>
</van-col>
</van-row>
</van-cell-group>
</van-tab>
<van-tab
title=
"审核记录"
>
<div
class=
"journal-wrap"
>
...
...
@@ -296,7 +336,8 @@ export default {
active
:
0
,
phase
:
1
,
form
:
{},
tabs
:
[]
tabs
:
[],
riskList
:[],
};
},
created
()
{
...
...
@@ -304,6 +345,7 @@ export default {
var
buildingId
=
this
.
$route
.
params
.
buildingId
||
sessionStorage
.
getItem
(
"
buildingId
"
);
this
.
postList
(
planId
,
buildingId
);
this
.
getRiskTaskList
(
planId
,
buildingId
)
},
methods
:
{
timestampToTimes
(
time
)
{
...
...
@@ -327,6 +369,13 @@ export default {
}
});
},
//风险清单列表
getRiskTaskList
(
planId
,
buildingId
){
getFun
(
`/risk/plan/inherent/list/
${
planId
}
/
${
buildingId
}
`
).
then
(
res
=>
{
console
.
log
(
res
.
data
,
'
lll
'
)
this
.
riskList
=
res
.
data
})
},
postList
(
id
,
buildingId
)
{
console
.
log
(
buildingId
,
"
123
"
);
this
.
$toast
.
loading
({
...
...
@@ -380,7 +429,19 @@ export default {
}
});
this
.
showIndex
=
null
;
}
},
//固定资产
goColorDetail
(){
// 楼层id: floorId
// 是否查看 : isView: true/false (true:查看,false:添加)
this
.
$router
.
push
({
name
:
"
riskView
"
,
params
:{
floorId
:
1
,
isView
:
true
}
})
},
}
};
</
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