Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bms-vue-obear
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
daywrite
bms-vue-obear
Commits
1d897c75
Commit
1d897c75
authored
Jun 27, 2019
by
huai.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复图标
parent
d8354aee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
11 deletions
+28
-11
analysis-app.scss
src/assets/css/analysis-app.scss
+7
-0
caseForm.vue
src/components/case/caseForm.vue
+15
-1
caseModal.vue
src/components/case/caseModal.vue
+6
-10
No files found.
src/assets/css/analysis-app.scss
View file @
1d897c75
...
@@ -62,4 +62,11 @@
...
@@ -62,4 +62,11 @@
.ec-page-wrapper
.el-form-item__label
{
.ec-page-wrapper
.el-form-item__label
{
color
:
white
;
color
:
white
;
}
}
.chart-avatar
{
width
:
34px
;
height
:
34px
;
}
.img-circle
{
}
}
}
src/components/case/caseForm.vue
View file @
1d897c75
...
@@ -142,10 +142,19 @@ export default {
...
@@ -142,10 +142,19 @@ export default {
val
.
forEach
(
item
=>
{
val
.
forEach
(
item
=>
{
this
.
$set
(
this
.
list
,
item
.
key
,
this
.
list
[
item
.
key
]
||
item
.
value
)
this
.
$set
(
this
.
list
,
item
.
key
,
this
.
list
[
item
.
key
]
||
item
.
value
)
})
})
this
.
$emit
(
'update:list'
,
this
.
list
)
//
this.$emit('update:list', this.list)
},
{
deep
:
true
})
},
{
deep
:
true
})
},
},
watch
:
{
'list'
:
{
handler
(
newVal
,
oldVal
)
{
this
.
$emit
(
'update:list'
,
newVal
)
},
deep
:
true
}
},
mounted
()
{
mounted
()
{
},
},
...
@@ -156,6 +165,11 @@ export default {
...
@@ -156,6 +165,11 @@ export default {
remove
(
key
)
{
remove
(
key
)
{
let
_index
=
this
.
quantityArr
.
findIndex
(
ele
=>
ele
.
key
===
key
)
let
_index
=
this
.
quantityArr
.
findIndex
(
ele
=>
ele
.
key
===
key
)
this
.
quantityArr
.
splice
(
_index
,
1
)
this
.
quantityArr
.
splice
(
_index
,
1
)
this
.
list
=
{}
this
.
quantityArr
.
forEach
(
item
=>
{
this
.
$set
(
this
.
list
,
item
.
key
,
this
.
list
[
item
.
key
]
||
item
.
value
)
})
this
.
$emit
(
'update:list'
,
this
.
list
)
},
},
getNew
()
{
getNew
()
{
...
...
src/components/case/caseModal.vue
View file @
1d897c75
...
@@ -44,16 +44,16 @@ export default {
...
@@ -44,16 +44,16 @@ export default {
alarm_before
:
''
,
alarm_before
:
''
,
engineer_id
:
''
,
engineer_id
:
''
,
description
:
''
,
description
:
''
,
quantity
:
[]
caseServices
:
[]
}
}
}
}
},
},
methods
:
{
methods
:
{
formatList
(
val
)
{
formatList
(
val
)
{
this
.
model
.
quantity
=
[]
this
.
model
.
caseServices
=
[]
Object
.
keys
(
val
).
forEach
(
item
=>
{
Object
.
keys
(
val
).
forEach
(
item
=>
{
this
.
model
.
quantity
[
item
]
=
val
[
item
]
this
.
model
.
caseServices
[
item
]
=
val
[
item
]
})
})
},
},
show
(
model
)
{
show
(
model
)
{
...
@@ -79,13 +79,9 @@ export default {
...
@@ -79,13 +79,9 @@ export default {
},
},
save
()
{
save
()
{
debugger
let
_params
=
Object
.
assign
({},
setModule
(
this
.
model
,
'Cases'
))
let
_model
=
Object
.
assign
({},
this
.
model
)
_params
[
'CaseAssignments[engineer_id]'
]
=
_params
[
'Cases[engineer_id]'
]
let
_params
=
Object
.
assign
({},
setModule
({
quantity
:
this
.
model
.
quantity
},
'CaseServices'
))
delete
_params
[
'Cases[engineer_id]'
]
delete
_model
[
'quantity'
]
let
_params1
=
Object
.
assign
(
_params
,
setModule
(
_model
,
'Cases'
))
_params1
[
'CaseAssignments[engineer_id]'
]
=
_params1
[
'Cases[engineer_id]'
]
delete
_params1
[
'Cases[engineer_id]'
]
let
_apiUrl
=
!
this
.
model
.
id
?
api
.
saveCaseNew
:
api
.
saveCaseEdit
let
_apiUrl
=
!
this
.
model
.
id
?
api
.
saveCaseNew
:
api
.
saveCaseEdit
!
this
.
model
.
id
&&
delete
_params
[
'Cases[id]'
]
!
this
.
model
.
id
&&
delete
_params
[
'Cases[id]'
]
this
.
$refs
[
'form'
].
_validate
(()
=>
{
this
.
$refs
[
'form'
].
_validate
(()
=>
{
...
...
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