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
8910a1be
Commit
8910a1be
authored
Aug 14, 2023
by
p-wanping.song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改楼层,清空所属房间
parent
565e2fc9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
src/views/riskProject/add/addCurrent.vue
src/views/riskProject/add/addCurrent.vue
+4
-2
src/views/riskProject/add/addInherent.vue
src/views/riskProject/add/addInherent.vue
+4
-3
src/views/riskProject/assess/model/step2.vue
src/views/riskProject/assess/model/step2.vue
+3
-1
No files found.
src/views/riskProject/add/addCurrent.vue
View file @
8910a1be
...
@@ -1038,8 +1038,7 @@ export default {
...
@@ -1038,8 +1038,7 @@ export default {
const
currentFloor
=
floors
.
find
(
x
=>
x
.
id
===
data
)
const
currentFloor
=
floors
.
find
(
x
=>
x
.
id
===
data
)
console
.
log
(
floors
,
currentFloor
);
console
.
log
(
floors
,
currentFloor
);
if
(
currentFloor
){
if
(
currentFloor
){
this
.
form
.
floorId
=
currentFloor
.
id
;
this
.
saveSlectfloor
(
currentFloor
);
this
.
form
.
floorName
=
currentFloor
.
text
}
}
})
})
}
}
...
@@ -1343,6 +1342,9 @@ export default {
...
@@ -1343,6 +1342,9 @@ export default {
this
.
ShowfloorList
=
false
;
this
.
ShowfloorList
=
false
;
},
},
saveSlectfloor
(
data
)
{
saveSlectfloor
(
data
)
{
if
(
this
.
form
.
floorId
!=
data
.
id
){
this
.
form
.
roomName
=
''
}
this
.
form
.
floorId
=
data
.
id
;
this
.
form
.
floorId
=
data
.
id
;
this
.
form
.
floorName
=
data
.
text
;
this
.
form
.
floorName
=
data
.
text
;
this
.
ShowfloorList
=
false
;
this
.
ShowfloorList
=
false
;
...
...
src/views/riskProject/add/addInherent.vue
View file @
8910a1be
...
@@ -860,8 +860,7 @@ export default {
...
@@ -860,8 +860,7 @@ export default {
const
floors
=
[].
concat
(
this
.
floorSource
.
map
(
x
=>
x
.
children
).
flat
())
const
floors
=
[].
concat
(
this
.
floorSource
.
map
(
x
=>
x
.
children
).
flat
())
const
currentFloor
=
floors
.
find
(
x
=>
x
.
id
===
data
)
const
currentFloor
=
floors
.
find
(
x
=>
x
.
id
===
data
)
if
(
currentFloor
){
if
(
currentFloor
){
this
.
form
.
floorId
=
currentFloor
.
id
;
this
.
saveSlectfloor
(
currentFloor
);
this
.
form
.
floorName
=
currentFloor
.
name
}
}
})
})
}
}
...
@@ -981,7 +980,6 @@ export default {
...
@@ -981,7 +980,6 @@ export default {
getFloor
()
{
getFloor
()
{
return
getFun
(
`/risk/plan/floor/list/
${
this
.
form
.
buildingIds
}
`
)
return
getFun
(
`/risk/plan/floor/list/
${
this
.
form
.
buildingIds
}
`
)
.
then
(
res
=>
{
.
then
(
res
=>
{
debugger
// this.$toast.clear();
// this.$toast.clear();
// this.showSource = true;
// this.showSource = true;
...
@@ -1058,6 +1056,9 @@ export default {
...
@@ -1058,6 +1056,9 @@ export default {
this
.
ShowfloorList
=
false
;
this
.
ShowfloorList
=
false
;
},
},
saveSlectfloor
(
data
)
{
saveSlectfloor
(
data
)
{
if
(
this
.
form
.
floorId
!=
data
.
id
){
this
.
form
.
roomName
=
''
}
this
.
form
.
floorId
=
data
.
id
;
this
.
form
.
floorId
=
data
.
id
;
this
.
form
.
floorName
=
data
.
text
;
this
.
form
.
floorName
=
data
.
text
;
this
.
ShowfloorList
=
false
;
this
.
ShowfloorList
=
false
;
...
...
src/views/riskProject/assess/model/step2.vue
View file @
8910a1be
...
@@ -74,7 +74,9 @@ import { getFun, postFun } from "@/service/table";
...
@@ -74,7 +74,9 @@ import { getFun, postFun } from "@/service/table";
},
},
methods
:{
methods
:{
getName
(
item
){
getName
(
item
){
return
item
.
factorItemsList
.
find
(
x
=>
x
.
id
===
item
.
value
)?.
indicatorItem
||
''
const
name
=
item
.
factorItemsList
.
find
(
x
=>
x
.
id
===
item
.
value
)
// return ?.indicatorItem||''
return
name
?
name
.
indicatorItem
:
''
},
},
// 根据ids获取列表
// 根据ids获取列表
getList
(){
getList
(){
...
...
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