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 e66ecafc
authored
Sep 18, 2020
by
jack
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
test 部署
1 parent
d74ed360
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
154 additions
and
65 deletions
.env
src/http/api.js
src/http/interface.js
src/layout/header-aside/components/header-user/index.vue
src/layout/header-aside/components/personal-panel/index.vue
src/views/main/device.vue
src/views/main/deviceConnection.vue
src/views/main/deviceUnstock.vue
vue.config.js
.env
View file @
e66ecaf
...
@@ -16,4 +16,4 @@ VUE_APP_ELEMENT_COLOR=#409EFF
...
@@ -16,4 +16,4 @@ VUE_APP_ELEMENT_COLOR=#409EFF
VUE_APP_MAIN_COLOR=#3D6FE4
VUE_APP_MAIN_COLOR=#3D6FE4
VUE_APP_STORAGE_PREFIX=tfims
\ No newline at end of file
\ No newline at end of file
VUE_APP_STORAGE_PREFIX=operation
\ No newline at end of file
\ No newline at end of file
src/http/api.js
View file @
e66ecaf
...
@@ -72,15 +72,13 @@ export default function $axios(options) {
...
@@ -72,15 +72,13 @@ export default function $axios(options) {
response
=>
{
response
=>
{
let
data
;
let
data
;
// Util.closeLoading();
// Util.closeLoading();
console
.
log
(
response
)
console
.
log
(
'sdjdwww'
)
// IE9时response.data是undefined,因此需要使用response.request.responseText(Stringify后的字符串)
// IE9时response.data是undefined,因此需要使用response.request.responseText(Stringify后的字符串)
if
(
response
)
{
if
(
response
)
{
if
(
response
.
data
==
undefined
)
{
if
(
response
.
data
==
undefined
)
{
let
str
=
response
.
request
.
responseText
;
let
str
=
response
.
request
.
responseText
;
//判断未登录,未登录,后台会发送请求,返回一个html页面
//判断未登录,未登录,后台会发送请求,返回一个html页面
if
(
str
.
indexOf
(
'
广联赛讯运营平台
'
)
>=
0
)
{
if
(
str
.
indexOf
(
'
!DOCTYPE
'
)
>=
0
)
{
window
.
location
.
href
=
"http://sso.glsx.com.cn/#/login"
window
.
location
.
href
=
"http://sso.glsx.com.cn/#/login"
return
false
;
return
false
;
}
}
...
@@ -145,7 +143,6 @@ export default function $axios(options) {
...
@@ -145,7 +143,6 @@ export default function $axios(options) {
//alert(JSON.stringify(err));
//alert(JSON.stringify(err));
// Util.closeLoading();
// Util.closeLoading();
console
.
log
(
err
);
if
(
err
&&
err
.
response
)
{
if
(
err
&&
err
.
response
)
{
switch
(
err
.
response
.
status
)
{
switch
(
err
.
response
.
status
)
{
...
...
src/http/interface.js
View file @
e66ecaf
...
@@ -495,11 +495,33 @@ export const EXPORTDEVICERESETRECORD = BASEURL + 'deviceInfo/exportDeviceResetRe
...
@@ -495,11 +495,33 @@ export const EXPORTDEVICERESETRECORD = BASEURL + 'deviceInfo/exportDeviceResetRe
//设备管理-导出设备
//设备管理-导出设备
export
const
EXPORTDEVICECODE
=
BASEURL
+
'deviceInfo/exportDeviceCode'
;
export
const
EXPORTDEVICECODE
=
BASEURL
+
'deviceInfo/exportDeviceCode'
;
//设备管理-导入模板-校验模板
export
const
PREDEVICEIMPORT
=
BASEURL
+
'deviceInfo/preDeviceImport'
;
//设备管理-导入模板-文件数据上传
export
const
DEVICEIMPORT
=
params
=>
{
return
axios
({
url
:
'deviceInfo/deviceImport'
,
method
:
'post'
,
data
:
params
})
}
//日志管理-excel导出记录-列表
//日志管理-excel导出记录-列表
export
const
PAGETASKRECORDREPORT
=
params
=>
{
export
const
PAGETASKRECORDREPORT
=
params
=>
{
return
axios
({
return
axios
({
url
:
'taskReport/pageTaskRecordReport'
,
url
:
'taskReport/pageTaskRecordReport'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
data
:
params
})
}
//退出登录
export
const
LOGOUT
=
params
=>
{
return
axios
({
url
:
'/cas/logout'
,
method
:
'GET'
,
data
:
params
})
})
}
}
\ No newline at end of file
\ No newline at end of file
src/layout/header-aside/components/header-user/index.vue
View file @
e66ecaf
...
@@ -9,7 +9,13 @@
...
@@ -9,7 +9,13 @@
<
/el-dropdown-item
>
<
/el-dropdown-item
>
<
/el-dropdown-menu
>
<
/el-dropdown-menu
>
<
/el-dropdown>--
>
<
/el-dropdown>--
>
<
div
v
-
popover
:
popover
-
personal
class
=
"d2-mr personal-wrap"
>
<
div
class
=
"top_user_info"
>
<
el
-
avatar
icon
=
"el-icon-user-solid"
size
=
"small"
><
/el-avatar
>
<
span
class
=
"title"
>
{{
user
&&
user
.
userName
?
decodeURI
(
user
.
userName
)
:
'未登录'
}}
<
/span
>
<
el
-
divider
direction
=
"vertical"
><
/el-divider
>
<
el
-
link
type
=
"primary"
@
click
=
"logout"
>
退出
<
/el-link
>
<
/div
>
<!--
<
div
v
-
popover
:
popover
-
personal
class
=
"d2-mr personal-wrap"
>
<
span
class
=
"btn-text"
>
<
span
class
=
"btn-text"
>
{{
user
&&
user
.
userName
?
decodeURI
(
user
.
userName
)
:
'未登录'
}}
{{
user
&&
user
.
userName
?
decodeURI
(
user
.
userName
)
:
'未登录'
}}
<
d2
-
el
-
icon
name
=
"caret-bottom"
/>
<
d2
-
el
-
icon
name
=
"caret-bottom"
/>
...
@@ -17,20 +23,21 @@
...
@@ -17,20 +23,21 @@
<
el
-
popover
ref
=
"popover-personal"
placement
=
"bottom-end"
trigger
=
"hover"
>
<
el
-
popover
ref
=
"popover-personal"
placement
=
"bottom-end"
trigger
=
"hover"
>
<
personal
-
panel
:
user
=
"info"
><
/personal-panel
>
<
personal
-
panel
:
user
=
"info"
><
/personal-panel
>
<
/el-popover
>
<
/el-popover
>
<
/div
>
<
/div>
--
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
script
>
<
script
>
import
{
mapState
}
from
'vuex'
import
{
mapState
}
from
'vuex'
import
PersonalPanel
from
'../personal-panel'
import
PersonalPanel
from
'../personal-panel'
import
axios
from
'@/http/api'
export
default
{
export
default
{
components
:
{
components
:
{
PersonalPanel
,
PersonalPanel
,
}
,
}
,
data
()
{
data
()
{
return
{
return
{
user
:
{
}
user
:
{
}
,
}
}
}
,
}
,
mounted
()
{
mounted
()
{
...
@@ -39,15 +46,38 @@ export default {
...
@@ -39,15 +46,38 @@ export default {
?
JSON
.
parse
(
sessionStorage
.
getItem
(
'merchantInfo'
))
?
JSON
.
parse
(
sessionStorage
.
getItem
(
'merchantInfo'
))
:
{
}
:
{
}
this
.
user
=
user
this
.
user
=
user
}
,
}
,
computed
:
{
computed
:
{
...
mapState
(
'd2admin/user'
,
[
'info'
]),
...
mapState
(
'd2admin/user'
,
[
'info'
]),
}
,
}
,
methods
:
{
/**退出登录 */
logout
:
function
()
{
let
oParams
=
{
}
oParams
.
service
=
'http://sc.glsx.com.cn/admin-supplychain/'
axios
({
url
:
'http://sso.glsx.com.cn/cas/logout'
,
method
:
'GET'
,
data
:
oParams
,
}
).
then
((
res
)
=>
{
console
.
log
(
res
)
window
.
location
.
href
=
'http://sso.glsx.com.cn/#/login'
}
)
}
,
}
,
}
}
<
/script
>
<
/script
>
<
style
lang
=
"scss"
scoped
>
<
style
lang
=
"scss"
scoped
>
.
personal
-
wrap
{
.
personal
-
wrap
{
transform
:
translateY
(
-
3
px
);
transform
:
translateY
(
-
3
px
);
}
}
.
top_user_info
{
display
:
flex
;
align
-
items
:
center
;
font
-
size
:
14
px
;
padding
:
0
20
px
0
0
;
.
title
{
margin
:
0
0
px
0
10
px
;
}
}
<
/style
>
<
/style
>
src/layout/header-aside/components/personal-panel/index.vue
View file @
e66ecaf
...
@@ -14,19 +14,19 @@
...
@@ -14,19 +14,19 @@
<div
class=
"name-role"
>
<div
class=
"name-role"
>
<span
class=
"sender"
>
-
</span>
<span
class=
"sender"
>
-
</span>
</div>
</div>
<div
class=
"registe-info"
>
<
!--
<
div
class=
"registe-info"
>
<span
class=
"registe-info"
>
<span
class=
"registe-info"
>
<d2-el-icon
name=
"time"
/>
<d2-el-icon
name=
"time"
/>
有效期:
<span
v-text=
"user.validTime || '未知' "
></span>
有效期:
<span
v-text=
"user.validTime || '未知' "
></span>
</span>
</span>
</div>
</div>
-->
</div>
</div>
<!--
<div
class=
"personal-relation"
>
<!--
<div
class=
"personal-relation"
>
<span
class=
"relation-item"
>
followers
</span>
<span
class=
"relation-item"
>
followers
</span>
<span
class=
"relation-item"
>
watches
</span>
<span
class=
"relation-item"
>
watches
</span>
<span
class=
"relation-item"
>
friends
</span>
<span
class=
"relation-item"
>
friends
</span>
</div>
-->
</div>
-->
<div
class=
"main-operation"
>
<
!--
<
div
class=
"main-operation"
>
<span
class=
"main-operation-item"
>
<span
class=
"main-operation-item"
>
<el-button
<el-button
size=
"small"
size=
"small"
...
@@ -41,8 +41,8 @@
...
@@ -41,8 +41,8 @@
@
click=
"passwordVisible = true"
@
click=
"passwordVisible = true"
>
修改密码
</el-button>
>
修改密码
</el-button>
</span>
</span>
</div>
</div>
-->
<div
<
!--
<
div
class=
"other-operation"
class=
"other-operation"
@
click=
"clear"
@
click=
"clear"
>
>
...
@@ -50,12 +50,12 @@
...
@@ -50,12 +50,12 @@
<d2-el-icon
name=
"delete"
/>
<d2-el-icon
name=
"delete"
/>
清空本地缓存
清空本地缓存
</div>
</div>
</div>
</div>
-->
<div
<div
class=
"personal-footer"
class=
"personal-footer"
@
click=
"logOut"
@
click=
"logOut"
>
>
<el-button
type=
"text"
>
<el-button
type=
"text"
@
click=
"logout"
>
<d2-el-icon
name=
"switch-button"
/>
退出
<d2-el-icon
name=
"switch-button"
/>
退出
</el-button>
</el-button>
</div>
</div>
...
@@ -74,6 +74,8 @@
...
@@ -74,6 +74,8 @@
<
script
>
<
script
>
import
{
mapState
,
mapActions
}
from
'vuex'
import
{
mapState
,
mapActions
}
from
'vuex'
import
{
Message
,
MessageBox
}
from
'element-ui'
import
{
Message
,
MessageBox
}
from
'element-ui'
import
{
LOGOUT
}
from
'@/http/interface'
import
axios
from
'@/http/api'
export
default
{
export
default
{
name
:
'PersonalPanel'
,
name
:
'PersonalPanel'
,
props
:
{
props
:
{
...
@@ -172,7 +174,22 @@ export default {
...
@@ -172,7 +174,22 @@ export default {
reject
(
new
Error
(
'错误'
))
reject
(
new
Error
(
'错误'
))
})
})
})
})
},
/**退出登录 */
logout
:
function
(){
let
oParams
=
{};
oParams
.
service
=
'http://sc.glsx.com.cn/admin-supplychain/'
axios
({
url
:
'http://sso.glsx.com.cn/cas/logout'
,
method
:
'GET'
,
data
:
oParams
}).
then
(
res
=>
{
console
.
log
(
res
);
window
.
location
.
href
=
"http://sso.glsx.com.cn/#/login"
})
}
}
}
}
}
}
</
script
>
</
script
>
...
...
src/views/main/device.vue
View file @
e66ecaf
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
</el-table-column>
</el-table-column>
<el-table-column
prop=
"createdDate"
label=
"操作"
align=
"center"
>
<el-table-column
prop=
"createdDate"
label=
"操作"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-link
type=
"primary"
:underline=
"false"
@
click=
"openDialog()"
>
入库
</el-link>
<el-link
type=
"primary"
:underline=
"false"
@
click=
"openDialog(
scope.row
)"
>
入库
</el-link>
<el-link
type=
"danger"
:underline=
"false"
@
click=
"deleteDevice(scope.row)"
>
删除
</el-link>
<el-link
type=
"danger"
:underline=
"false"
@
click=
"deleteDevice(scope.row)"
>
删除
</el-link>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -92,7 +92,9 @@
...
@@ -92,7 +92,9 @@
<a
:href=
"UNSTOCKDOWNLOADTEMPLATE"
target=
"_blank"
>
下载导入设备模版
</a>
", 并填写导入信息
<a
:href=
"UNSTOCKDOWNLOADTEMPLATE"
target=
"_blank"
>
下载导入设备模版
</a>
", 并填写导入信息
</h2>
</h2>
<h3
class=
"h3"
>
*请先选择是否虚拟设备
</h3>
<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"
>
<div
class=
"upload_cell"
>
<span
class=
"name"
>
导入设备:
</span>
<span
class=
"name"
>
导入设备:
</span>
<div
class=
"content"
>
<div
class=
"content"
>
...
@@ -100,7 +102,7 @@
...
@@ -100,7 +102,7 @@
<el-upload
<el-upload
class=
"upload-demo"
class=
"upload-demo"
ref=
"upload"
ref=
"upload"
:action=
"PREDEVICE
FILEUNSTOCK
IMPORT"
:action=
"PREDEVICEIMPORT"
multiple
multiple
:limit=
"1"
:limit=
"1"
:data=
"uploadForm"
:data=
"uploadForm"
...
@@ -113,19 +115,21 @@
...
@@ -113,19 +115,21 @@
</el-upload>
</el-upload>
</div>
</div>
</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>
检验成功{{uploadError.successCount}}条,失败{{uploadError.failCount}}条
</span>
<span>
请下载
</span>
<span
v-if=
"uploadError.url"
>
请下载
</span>
<a
:href=
"uploadError.url"
target=
"_blank"
>
导出失败列表
</a>
<a
:href=
"uploadError.url"
target=
"_blank"
v-if=
"uploadError.url"
>
导出失败列表
</a>
</div>
</div>
</div>
</div>
<div
slot=
"footer"
class=
"btn_group"
>
<div
slot=
"footer"
class=
"btn_group"
>
<el-button
type=
"success"
@
click=
"uploadInfoToServer"
>
导入
</el-button>
<el-button
type=
"success"
@
click=
"uploadInfoToServer"
:loading=
"fileLoading"
>
导入
</el-button>
<el-button
@
click=
"closePopup"
>
取消
</el-button>
<el-button
@
click=
"closePopup"
>
取消
</el-button>
</div>
</div>
</glsx-dialog>
</glsx-dialog>
<!-- 弹框 end -->
<!-- 弹框 end -->
</d2-container>
</d2-container>
</template>
</template>
...
@@ -136,7 +140,8 @@ import {
...
@@ -136,7 +140,8 @@ import {
INSERTANDUPDATEDEVICE
,
INSERTANDUPDATEDEVICE
,
EXPORTDEVICECODE
,
EXPORTDEVICECODE
,
UNSTOCKDOWNLOADTEMPLATE
,
UNSTOCKDOWNLOADTEMPLATE
,
PREDEVICEFILEUNSTOCKIMPORT
PREDEVICEIMPORT
,
DEVICEIMPORT
}
from
'@/http/interface'
}
from
'@/http/interface'
import
addDevice
from
'./addDevice'
import
addDevice
from
'./addDevice'
import
{
exportExcel
}
from
'@/common/common'
import
{
exportExcel
}
from
'@/common/common'
...
@@ -145,7 +150,7 @@ export default {
...
@@ -145,7 +150,7 @@ export default {
name
:
'fimsTable3'
,
name
:
'fimsTable3'
,
components
:
{
components
:
{
'add-device'
:
addDevice
,
'add-device'
:
addDevice
,
'glsx-dialog'
:
GlsxDialog
'glsx-dialog'
:
GlsxDialog
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -166,11 +171,13 @@ export default {
...
@@ -166,11 +171,13 @@ export default {
deviceTypeList
:
[],
deviceTypeList
:
[],
exportLoading
:
false
,
exportLoading
:
false
,
addShow
:
false
,
addShow
:
false
,
showDialog
:
false
,
showDialog
:
false
,
uploadForm
:{},
uploadForm
:
{
isOnlyimsi
:
false
},
uploadFile
:{},
uploadFile
:
{},
uploadError
:{},
uploadError
:
{},
PREDEVICEFILEUNSTOCKIMPORT
:
PREDEVICEFILEUNSTOCKIMPORT
PREDEVICEIMPORT
:
PREDEVICEIMPORT
,
UNSTOCKDOWNLOADTEMPLATE
:
UNSTOCKDOWNLOADTEMPLATE
,
fileLoading
:
false
}
}
},
},
created
()
{},
created
()
{},
...
@@ -178,7 +185,6 @@ export default {
...
@@ -178,7 +185,6 @@ export default {
mounted
:
function
()
{
mounted
:
function
()
{
this
.
getList
()
this
.
getList
()
this
.
getDeviceList
()
this
.
getDeviceList
()
},
},
methods
:
{
methods
:
{
/**
/**
...
@@ -191,7 +197,7 @@ export default {
...
@@ -191,7 +197,7 @@ export default {
_this
.
tableLoading
=
true
_this
.
tableLoading
=
true
GETLISTDEVICECODE
(
oParams
).
then
((
res
)
=>
{
GETLISTDEVICECODE
(
oParams
).
then
((
res
)
=>
{
_this
.
tableLoading
=
false
_this
.
tableLoading
=
false
console
.
log
(
res
)
;
console
.
log
(
res
)
if
(
res
.
returnCode
==
0
)
{
if
(
res
.
returnCode
==
0
)
{
const
{
data
}
=
res
const
{
data
}
=
res
const
{
total
,
list
}
=
data
const
{
total
,
list
}
=
data
...
@@ -288,8 +294,8 @@ export default {
...
@@ -288,8 +294,8 @@ export default {
exportExcel
:
function
()
{
exportExcel
:
function
()
{
let
_this
=
this
let
_this
=
this
let
options
=
{}
let
options
=
{}
let
_obj
=
this
.
formInline
;
let
_obj
=
this
.
formInline
options
.
url
=
EXPORTDEVICECODE
;
options
.
url
=
EXPORTDEVICECODE
if
(
_obj
.
typeId
)
{
if
(
_obj
.
typeId
)
{
options
.
url
=
EXPORTDEVICECODE
+
'?typeId='
+
_obj
.
typeId
options
.
url
=
EXPORTDEVICECODE
+
'?typeId='
+
_obj
.
typeId
}
}
...
@@ -302,8 +308,10 @@ export default {
...
@@ -302,8 +308,10 @@ export default {
},
},
/**入库 */
/**入库 */
openDialog
:
function
()
{
openDialog
:
function
(
row
)
{
console
.
log
(
row
)
this
.
showDialog
=
true
this
.
showDialog
=
true
this
.
uploadForm
.
deviceCode
=
row
.
deviceCode
//this.getDeviceList()
//this.getDeviceList()
},
},
...
@@ -315,27 +323,43 @@ export default {
...
@@ -315,27 +323,43 @@ export default {
/**监听文件上传成功 */
/**监听文件上传成功 */
uploadSuccess
:
function
(
res
,
file
,
fileList
)
{
uploadSuccess
:
function
(
res
,
file
,
fileList
)
{
console
.
log
(
res
)
let
Util
=
this
.
$Util
//this.$refs.upload.submit();
//this.$refs.upload.submit();
let
o
=
res
.
data
||
[]
let
o
=
res
.
data
||
[]
let
m
=
o
[
0
]
||
{}
let
m
=
o
[
0
]
||
{}
if
(
m
.
isImported
==
2
||
m
.
isImported
==
3
||
m
.
isImported
==
4
)
{
if
(
m
.
url
)
{
Util
.
Info
(
{
this
.
$refs
.
upload
.
clearFiles
()
message
:
m
.
cause
,
this
.
uploadError
=
m
;
})
return
false
return
false
}
}
if
(
m
.
isImported
==
1
||
m
.
isImported
==
0
)
{
console
.
log
(
'jjjjjjjj'
)
this
.
uploadError
=
m
this
.
fileInfo
=
m
.
msg
this
.
fileInfo
=
m
.
msg
this
.
$refs
.
upload
.
clearFiles
()
}
// if (m.url) {
// this.$refs.upload.clearFiles()
// this.uploadError = m
// return false
// }
// this.fileInfo = m.msg
},
},
/**手动上传文件 */
/**手动上传文件 */
uploadInfoToServer
:
function
()
{
uploadInfoToServer
:
function
()
{
let
_this
=
this
;
let
o
=
this
.
fileInfo
let
o
=
this
.
fileInfo
if
(
!
o
)
{
if
(
!
o
)
{
return
false
return
false
}
}
let
oParams
=
JSON
.
parse
(
o
)
let
oParams
=
JSON
.
parse
(
o
)
DEVICEIMEISTOKEIMPORT
(
oParams
).
then
((
res
)
=>
{
_this
.
fileLoading
=
true
;
DEVICEIMPORT
(
oParams
).
then
((
res
)
=>
{
_this
.
fileLoading
=
false
;
console
.
log
(
res
)
console
.
log
(
res
)
})
})
},
},
...
@@ -345,8 +369,7 @@ export default {
...
@@ -345,8 +369,7 @@ export default {
this
.
$refs
.
upload
.
clearFiles
()
this
.
$refs
.
upload
.
clearFiles
()
this
.
uploadFile
=
{}
this
.
uploadFile
=
{}
this
.
showDialog
=
false
this
.
showDialog
=
false
}
},
},
},
}
}
</
script
>
</
script
>
...
@@ -363,16 +386,16 @@ export default {
...
@@ -363,16 +386,16 @@ export default {
color
:
#337ab7
;
color
:
#337ab7
;
}
}
}
}
.h3
{
.h3
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#f00
;
color
:
#f00
;
font-weight
:
normal
;
font-weight
:
normal
;
}
}
}
}
.upload_cell
{
.upload_cell
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin
:
10px
0
;
margin
:
10px
0
;
.name
{
.name
{
width
:
80px
;
width
:
80px
;
font-weight
:
bold
;
font-weight
:
bold
;
...
@@ -382,11 +405,11 @@ export default {
...
@@ -382,11 +405,11 @@ export default {
display
:
flex
;
display
:
flex
;
.a_input
{
.a_input
{
margin
:
0
8px
0
0
;
margin
:
0
8px
0
0
;
width
:
217px
;
width
:
217px
;
}
}
}
}
}
}
.cell_center
{
.cell_center
{
text-align
:
center
;
text-align
:
center
;
}
}
</
style
>
</
style
>
src/views/main/deviceConnection.vue
View file @
e66ecaf
...
@@ -157,7 +157,7 @@
...
@@ -157,7 +157,7 @@
<!-- 表格区域 end -->
<!-- 表格区域 end -->
<!-- 查看设备详情弹框区域 开始 -->
<!-- 查看设备详情弹框区域 开始 -->
<glsx-dialog
:show=
"showModal"
title=
"设备详情"
>
<glsx-dialog
:show=
"showModal"
title=
"设备详情"
@
closed=
"closeModal"
usefooter
>
<div
class=
"modal_box"
v-loading=
"modalLoading"
element-loading-text=
"数据加载中"
>
<div
class=
"modal_box"
v-loading=
"modalLoading"
element-loading-text=
"数据加载中"
>
<h2
class=
"h2"
>
出库详情
</h2>
<h2
class=
"h2"
>
出库详情
</h2>
<table
class=
"modal_tab"
>
<table
class=
"modal_tab"
>
...
...
src/views/main/deviceUnstock.vue
View file @
e66ecaf
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
<div
class=
"upload_cell"
>
<div
class=
"upload_cell"
>
<span
class=
"name"
>
硬件设备:
</span>
<span
class=
"name"
>
硬件设备:
</span>
<div
class=
"content"
>
<div
class=
"content"
>
<el-select
v-model=
"uploadForm.deviceCode"
>
<el-select
v-model=
"uploadForm.deviceCode"
filterable
>
<el-option
<el-option
v-for=
"item in deviceList"
v-for=
"item in deviceList"
:key=
"item.deviceCode"
:key=
"item.deviceCode"
...
...
vue.config.js
View file @
e66ecaf
...
@@ -47,16 +47,16 @@ module.exports = {
...
@@ -47,16 +47,16 @@ module.exports = {
warnings
:
false
,
warnings
:
false
,
errors
:
true
errors
:
true
},
},
//
proxy: {
proxy
:
{
//
'/admin-supplychain': {
'/admin-supplychain'
:
{
// target: 'http://192.168.3.174:9040
/admin-supplychain/',
target
:
'http://qcwx.glsx.com.cn
/admin-supplychain/'
,
//
changeOrigin: true,
changeOrigin
:
true
,
//
ws: true,
ws
:
true
,
//
pathRewrite: {
pathRewrite
:
{
//
'^/admin-supplychain': ''
'^/admin-supplychain'
:
''
//
}
}
//
}
}
//
}
}
},
},
css
:
{
css
:
{
loaderOptions
:
{
loaderOptions
:
{
...
...
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