Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4ac64d6b
authored
Mar 10, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加为空判断
1 parent
e8b6f260
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
src/views/work/edit.vue
src/views/work/edit.vue
View file @
4ac64d6
...
@@ -241,9 +241,9 @@ export default {
...
@@ -241,9 +241,9 @@ export default {
devices
:
[{
sn
:
value
}],
devices
:
[{
sn
:
value
}],
workOrderId
:
_this
.
editForm
.
id
,
workOrderId
:
_this
.
editForm
.
id
,
};
};
_this
.
gpsloading
=
true
_this
.
gpsloading
=
true
;
VERIFY_WORKORDER_INFO
(
oParams
).
then
((
res
)
=>
{
VERIFY_WORKORDER_INFO
(
oParams
).
then
((
res
)
=>
{
_this
.
gpsloading
=
false
_this
.
gpsloading
=
false
;
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
console
.
log
(
res
);
console
.
log
(
res
);
let
m
=
_this
.
editForm
.
snList
;
let
m
=
_this
.
editForm
.
snList
;
...
@@ -264,7 +264,7 @@ export default {
...
@@ -264,7 +264,7 @@ export default {
// });
// });
cb
();
cb
();
}
else
{
}
else
{
_this
.
gpsloading
=
false
_this
.
gpsloading
=
false
;
cb
(
new
Error
(
res
.
message
));
cb
(
new
Error
(
res
.
message
));
}
}
});
});
...
@@ -390,7 +390,7 @@ export default {
...
@@ -390,7 +390,7 @@ export default {
formRules
:
{},
formRules
:
{},
logList
:
[],
logList
:
[],
isDisabled
:
false
,
isDisabled
:
false
,
gpsloading
:
false
gpsloading
:
false
,
};
};
},
},
watch
:
{
watch
:
{
...
@@ -789,23 +789,23 @@ export default {
...
@@ -789,23 +789,23 @@ export default {
let
bsInfo
=
row
.
gpsBsData
?
row
.
gpsBsData
.
bsLocation
:
{};
let
bsInfo
=
row
.
gpsBsData
?
row
.
gpsBsData
.
bsLocation
:
{};
let
oParams
=
{};
let
oParams
=
{};
oParams
.
sn
=
row
.
sn
;
oParams
.
sn
=
row
.
sn
||
""
;
//oParams.gpsData
//oParams.gpsData
oParams
.
name
=
row
.
ownerName
;
oParams
.
name
=
row
.
ownerName
||
""
;
oParams
.
standNo
=
m
.
vin
;
oParams
.
standNo
=
m
.
vin
||
""
;
oParams
.
source
=
row
.
source
;
oParams
.
source
=
row
.
source
||
""
;
// gps 信息
// gps 信息
oParams
.
lng
=
gpsInfo
.
lng
;
oParams
.
lng
=
gpsInfo
.
lng
;
oParams
.
lat
=
gpsInfo
.
lat
;
oParams
.
lat
=
gpsInfo
.
lat
;
oParams
.
address
=
gpsInfo
.
address
;
oParams
.
address
=
gpsInfo
.
address
||
""
;
oParams
.
time
=
gpsInfo
.
dateTime
;
oParams
.
time
=
gpsInfo
.
dateTime
||
""
;
//基站信息
//基站信息
oParams
.
bsLng
=
bsInfo
.
lng
;
oParams
.
bsLng
=
bsInfo
.
lng
;
oParams
.
bsLat
=
bsInfo
.
lat
;
oParams
.
bsLat
=
bsInfo
.
lat
;
oParams
.
bsAddress
=
bsInfo
.
address
;
oParams
.
bsAddress
=
bsInfo
.
address
||
""
;
oParams
.
bsTime
=
bsInfo
.
dateTime
;
oParams
.
bsTime
=
bsInfo
.
dateTime
||
""
;
// 定位类型
// 定位类型
oParams
.
type
=
2
;
oParams
.
type
=
2
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment