Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
operation-web-project
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 68224c97
authored
Sep 18, 2020
by
jack
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复设备导入
1 parent
f2a0958f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
10 deletions
src/views/main/device.vue
src/views/main/imeiInventory.vue
src/views/main/device.vue
View file @
68224c9
...
...
@@ -141,7 +141,7 @@ import {
EXPORTDEVICECODE
,
UNSTOCKDOWNLOADTEMPLATE
,
PREDEVICEIMPORT
,
DEVICEIMPORT
DEVICEIMPORT
,
}
from
'@/http/interface'
import
addDevice
from
'./addDevice'
import
{
exportExcel
}
from
'@/common/common'
...
...
@@ -172,12 +172,12 @@ export default {
exportLoading
:
false
,
addShow
:
false
,
showDialog
:
false
,
uploadForm
:
{
isOnlyimsi
:
false
},
uploadForm
:
{
isOnlyimsi
:
false
},
uploadFile
:
{},
uploadError
:
{},
PREDEVICEIMPORT
:
PREDEVICEIMPORT
,
UNSTOCKDOWNLOADTEMPLATE
:
UNSTOCKDOWNLOADTEMPLATE
,
fileLoading
:
false
fileLoading
:
false
,
}
},
created
()
{},
...
...
@@ -351,19 +351,25 @@ export default {
/**手动上传文件 */
uploadInfoToServer
:
function
()
{
let
_this
=
this
;
let
_this
=
this
let
o
=
this
.
fileInfo
let
m
=
this
.
uploadForm
;
let
m
=
this
.
uploadForm
if
(
!
o
)
{
return
false
}
let
oParams
=
JSON
.
parse
(
o
)
_this
.
fileLoading
=
true
;
oParams
[
0
].
deviceCode
=
m
.
deviceCode
;
oParams
[
0
].
isOnlyimsi
=
m
.
isOnlyimsi
;
_this
.
fileLoading
=
true
oParams
[
0
].
deviceCode
=
m
.
deviceCode
oParams
[
0
].
isOnlyimsi
=
m
.
isOnlyimsi
DEVICEIMPORT
(
oParams
).
then
((
res
)
=>
{
_this
.
fileLoading
=
false
;
console
.
log
(
res
)
_this
.
fileLoading
=
false
if
(
res
.
returnCode
==
0
)
{
_this
.
closeDialog
()
_this
.
$Util
.
Info
({
message
:
'导入成功'
,
type
:
'success'
,
})
}
})
},
...
...
src/views/main/imeiInventory.vue
View file @
68224c9
...
...
@@ -258,6 +258,13 @@ export default {
let
oParams
=
JSON
.
parse
(
o
);
DEVICEIMEISTOKEIMPORT
(
oParams
).
then
(
res
=>
{
console
.
log
(
res
);
if
(
res
.
returnCode
==
0
)
{
_this
.
closeDialog
()
_this
.
$Util
.
Info
({
message
:
'导入成功'
,
type
:
'success'
,
})
}
})
},
...
...
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