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
e6714fc7
Commit
e6714fc7
authored
Jun 25, 2019
by
huai.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复新建工单
parent
2ac46e87
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
caseModal.vue
src/components/case/caseModal.vue
+5
-3
timeSearchForm.vue
src/components/common/timeSearchForm.vue
+1
-1
No files found.
src/components/case/caseModal.vue
View file @
e6714fc7
<
template
>
<
template
>
<section>
<section>
<sidePopup
ref=
"sidePopup"
title=
"新建
文档
"
:width=
"50"
@
update:close=
"() => btnClose()"
>
<sidePopup
ref=
"sidePopup"
title=
"新建
工单
"
:width=
"50"
@
update:close=
"() => btnClose()"
>
<CaseForm
<CaseForm
ref=
"form"
ref=
"form"
:model=
"model"
>
:model=
"model"
>
...
@@ -69,9 +69,11 @@ export default {
...
@@ -69,9 +69,11 @@ export default {
},
},
save
()
{
save
()
{
let
_params
=
Object
.
assign
({},
setModule
(
this
.
model
,
'Documents'
))
let
_params
=
Object
.
assign
({},
setModule
(
this
.
model
,
'Cases'
))
_params
[
'CaseAssignments[engineer_id]'
]
=
_params
[
'Cases[engineer_id]'
]
delete
_params
[
'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
[
'
Document
s[id]'
]
!
this
.
model
.
id
&&
delete
_params
[
'
Case
s[id]'
]
this
.
$refs
[
'form'
].
_validate
(()
=>
{
this
.
$refs
[
'form'
].
_validate
(()
=>
{
requestAPI
(
Object
.
assign
(
_apiUrl
,
{
method
:
'POST'
}),
_params
)
requestAPI
(
Object
.
assign
(
_apiUrl
,
{
method
:
'POST'
}),
_params
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
...
...
src/components/common/timeSearchForm.vue
View file @
e6714fc7
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</el-col>
</el-col>
</el-form>
</el-form>
<el-form
ref=
"clientTimeRange"
:model=
"clientTimeRange"
size=
"mini"
>
<el-form
ref=
"clientTimeRange"
:model=
"clientTimeRange"
size=
"mini"
>
<el-col
:span=
"
8"
:offset=
"8
"
:xs=
"
{span: 24, offset: 0}" class="form-content-time-range">
<el-col
:span=
"
9"
:offset=
"7
"
:xs=
"
{span: 24, offset: 0}" class="form-content-time-range">
<el-form-item
label-width=
"0"
>
<el-form-item
label-width=
"0"
>
<el-date-picker
<el-date-picker
size=
"mini"
size=
"mini"
...
...
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