Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform-ui
Commits
78c0edf0
Commit
78c0edf0
authored
Sep 01, 2020
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug1389
parent
d6e4c43f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
oneVehicle.vue
src/views/vehicle/vehicleInfo/oneVehicle.vue
+7
-3
No files found.
src/views/vehicle/vehicleInfo/oneVehicle.vue
View file @
78c0edf0
...
...
@@ -187,7 +187,7 @@
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"上牌日期"
>
<el-date-picker
v-model=
"form.vehicleRegisterDate"
type =
"datetime"
placeholder =
"上牌日期"
value-format=
"
yyyy-MM-dd HH:mm"
format=
"yyyy-MM-dd HH:mm
"
></el-date-picker>
<el-date-picker
v-model=
"form.vehicleRegisterDate"
type =
"datetime"
placeholder =
"上牌日期"
value-format=
"
yyyy-MM-dd hh:mm:ss"
format=
"yyyy-MM-dd hh:mm:ss
"
></el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -386,6 +386,7 @@
getInsuranceCompany
}
from
'api/base_info/constant/'
import
{
getAllVehicleList
}
from
"../../../api/vehicleType"
;
import
{
objDeepCopy
}
from
"../../../utils"
;
export
default
{
props
:
[
'title'
,
'oneRow'
],
components
:
{
...
...
@@ -770,9 +771,12 @@
this
.
isClick
=
true
set
[
'form'
].
validate
(
valid
=>
{
if
(
valid
)
{
let
params
=
objDeepCopy
(
this
.
form
)
params
.
registerDate
=
this
.
form
.
vehicleRegisterDate
// 上班时间
params
.
vehicleRegisterDate
=
undefined
if
(
this
.
form
.
id
)
{
// 编辑
putObj
(
this
.
form
).
then
(
response
=>
{
putObj
(
params
).
then
(
response
=>
{
if
(
response
.
code
==
1
)
{
this
.
$notify
({
title
:
'成功'
,
...
...
@@ -793,7 +797,7 @@
})
}
else
{
// 添加
addObj
(
this
.
form
).
then
(
response
=>
{
addObj
(
params
).
then
(
response
=>
{
if
(
response
.
code
==
1
)
{
this
.
$notify
({
title
:
'成功'
,
...
...
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