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 9d6dcb94
authored
Sep 22, 2020
by
jack
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复搜索不到商户信息
1 parent
ac802734
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
19 deletions
src/views/main/deviceUnstock.vue
src/views/main/deviceUnstock.vue
View file @
9d6dcb9
...
...
@@ -70,7 +70,9 @@
<a
:href=
"UNSTOCKDOWNLOADTEMPLATE"
target=
"_blank"
>
下载导入设备模版
</a>
", 并填写导入信息
</h2>
<h3
class=
"h3"
>
*请先选择是否虚拟设备
</h3>
<div
class=
""
><el-checkbox
v-model=
"uploadForm.isOnlyimsi"
>
虚拟设备
</el-checkbox></div>
<div
class
>
<el-checkbox
v-model=
"uploadForm.isOnlyimsi"
>
虚拟设备
</el-checkbox>
</div>
<div
class=
"upload_cell"
>
<span
class=
"name"
>
硬件设备:
</span>
<div
class=
"content"
>
...
...
@@ -105,7 +107,10 @@
</el-upload>
</div>
</div>
<div
class=
"upload_cell cell_center"
v-if=
"uploadError.totalCount || uploadError.totalCount==0"
>
<div
class=
"upload_cell cell_center"
v-if=
"uploadError.totalCount || uploadError.totalCount==0"
>
<span>
检验成功{{uploadError.successCount}}条,失败{{uploadError.failCount}}条
</span>
<span>
请下载
</span>
<a
:href=
"uploadError.url"
target=
"_blank"
>
导出失败列表
</a>
...
...
@@ -121,7 +126,12 @@
</template>
<
script
>
import
{
GETLISTDEVICEFILEUNSTOCK
,
GETDEVICECATEGORY
,
UNSTOCKDOWNLOADTEMPLATE
,
PREDEVICEFILEUNSTOCKIMPORT
}
from
'@/http/interface'
import
{
GETLISTDEVICEFILEUNSTOCK
,
GETDEVICECATEGORY
,
UNSTOCKDOWNLOADTEMPLATE
,
PREDEVICEFILEUNSTOCKIMPORT
,
}
from
'@/http/interface'
import
GlsxDialog
from
'@/components/dialog/index'
export
default
{
components
:
{
...
...
@@ -151,10 +161,10 @@ export default {
showDialog
:
false
,
uploadFile
:
{},
deviceList
:
[],
UNSTOCKDOWNLOADTEMPLATE
:
UNSTOCKDOWNLOADTEMPLATE
,
PREDEVICEFILEUNSTOCKIMPORT
:
PREDEVICEFILEUNSTOCKIMPORT
,
uploadForm
:
{
isOnlyimsi
:
false
,
deviceCode
:
''
},
uploadError
:
{}
UNSTOCKDOWNLOADTEMPLATE
:
UNSTOCKDOWNLOADTEMPLATE
,
PREDEVICEFILEUNSTOCKIMPORT
:
PREDEVICEFILEUNSTOCKIMPORT
,
uploadForm
:
{
isOnlyimsi
:
false
,
deviceCode
:
''
},
uploadError
:
{},
}
},
created
()
{},
...
...
@@ -224,7 +234,7 @@ export default {
if
(
m
.
url
||
m
.
failCount
>
0
||
m
.
cause
)
{
this
.
$refs
.
upload
.
clearFiles
()
this
.
uploadError
=
m
;
this
.
uploadError
=
m
return
false
}
this
.
fileInfo
=
m
.
msg
...
...
@@ -232,12 +242,15 @@ export default {
/**手动上传文件 */
uploadInfoToServer
:
function
()
{
let
_this
=
this
;
let
_this
=
this
let
o
=
this
.
fileInfo
let
m
=
this
.
uploadForm
if
(
!
o
)
{
return
false
}
let
oParams
=
JSON
.
parse
(
o
)
oParams
[
0
].
deviceCode
=
m
.
deviceCode
oParams
[
0
].
isOnlyimsi
=
m
.
isOnlyimsi
DEVICEIMEISTOKEIMPORT
(
oParams
).
then
((
res
)
=>
{
console
.
log
(
res
)
_this
.
fileLoading
=
false
...
...
@@ -265,8 +278,8 @@ export default {
console
.
log
(
res
)
if
(
res
.
returnCode
==
0
)
{
let
_obj
=
res
.
data
||
[]
_this
.
deviceList
=
_obj
;
_this
.
uploadForm
.
deviceCode
=
_obj
[
0
]
?
_obj
[
0
].
deviceCode
:
''
;
_this
.
deviceList
=
_obj
_this
.
uploadForm
.
deviceCode
=
_obj
[
0
]
?
_obj
[
0
].
deviceCode
:
''
}
})
},
...
...
@@ -286,16 +299,16 @@ export default {
color
:
#337ab7
;
}
}
.h3
{
font-size
:
14px
;
color
:
#f00
;
font-weight
:
normal
;
.h3
{
font-size
:
14px
;
color
:
#f00
;
font-weight
:
normal
;
}
}
.upload_cell
{
display
:
flex
;
align-items
:
center
;
margin
:
10px
0
;
margin
:
10px
0
;
.name
{
width
:
80px
;
font-weight
:
bold
;
...
...
@@ -305,11 +318,11 @@ export default {
display
:
flex
;
.a_input
{
margin
:
0
8px
0
0
;
width
:
217px
;
width
:
217px
;
}
}
}
.cell_center
{
text-align
:
center
;
.cell_center
{
text-align
:
center
;
}
</
style
>
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