Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NewTruckTerminalSyetem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
SQL_Mou
NewTruckTerminalSyetem
Commits
83c522c1
Commit
83c522c1
authored
Dec 07, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
eae6ce45
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
10 deletions
+39
-10
index.html
public/index.html
+1
-1
Login.vue
src/views/Login.vue
+34
-5
index.vue
src/views/MLargeScreen/index.vue
+3
-3
vue.config.js
vue.config.js
+1
-1
No files found.
public/index.html
View file @
83c522c1
...
...
@@ -8,7 +8,7 @@
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<script
src=
"https://cdn.bootcss.com/eruda/1.5.8/eruda.min.js"
></script>
<script>
//
eruda.init();
eruda
.
init
();
</script>
<!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
...
...
src/views/Login.vue
View file @
83c522c1
...
...
@@ -72,16 +72,45 @@ export default {
this
.
getCookie
();
},
mounted
()
{
if
(
window
.
plus
)
{
this
.
plusReady
();
}
else
{
document
.
addEventListener
(
'
plusready
'
,
this
.
plusReady
,
false
);
}
//app获取设备号方法
this
.
appGetDeviceId
();
//5+app获取OAID方法
// if (window.plus) {
// this.plusReady();
// } else {
// document.addEventListener('plusready', this.plusReady, false);
// }
},
components
:
{
// Keyboard
},
methods
:
{
//app获取设备号方法
appGetDeviceId
(){
let
appDeviceId1
=
window
.
Device
.
getDeviceId
();
if
(
appDeviceId1
){
console
.
log
(
'
app设备号
'
,
appDeviceId1
);
that
.
deviceOAID
=
appDeviceId1
;
//查询设备表是否存在该设备编号
httpGet
(
apiEquipmentQuery
,{
name
:
that
.
deviceOAID
}).
then
((
resSheiBei
)
=>
{
if
(
resSheiBei
.
code
==
200
&&
resSheiBei
.
data
.
totalElements
!=
0
){
//查询车辆表中设备是否与车辆绑定
httpGet
(
vehicleInformationQuery
,{
equipmentName
:
that
.
deviceOAID
}).
then
((
resCar
)
=>
{
if
(
resCar
.
code
==
200
&&
resCar
.
data
.
totalElements
!=
0
){
that
.
bindingStatus
=
true
;
}
else
{
that
.
bindingStatus
=
false
;
}
})
}
else
{
httpPostForJson
(
apiEquipmentQuery
,{
name
:
that
.
deviceOAID
,
status
:
'
正常
'
}).
then
((
res
)
=>
{
that
.
bindingStatus
=
false
;
})
}
});
}
},
//5+app获取OAID方法
plusReady
(){
let
that
=
this
;
plus
.
device
.
getOAID
({
...
...
src/views/MLargeScreen/index.vue
View file @
83c522c1
...
...
@@ -256,8 +256,8 @@ export default {
},
//初始化weosocket
initWebSocketIndex
(){
//
const wsuri1 = "ws://192.168.0.105:9095/ws";//连接地址,可加参数
const
wsuri1
=
"
ws://8.143.203.103:9095/ws
"
;
//连接地址,可加参数
const
wsuri1
=
"
ws://192.168.0.105:9095/ws
"
;
//连接地址,可加参数
//
const wsuri1 = "ws://8.143.203.103:9095/ws";//连接地址,可加参数
this
.
websocketIndex
=
new
WebSocket
(
wsuri1
);
this
.
websocketIndex
.
onopen
=
this
.
websocketonopenIndex
;
this
.
websocketIndex
.
onerror
=
this
.
websocketonerrorIndex
;
...
...
@@ -280,7 +280,7 @@ export default {
if
(
e
==
undefined
){
return
}
else
{
console
.
log
(
"
indexWebsocketMessage
"
,
e
.
data
);
//
console.log("indexWebsocketMessage",e.data);
if
(
this
.
antennaConnectorBoolean
){
//this.getSerialSendIndex(e.data)
}
else
{
...
...
vue.config.js
View file @
83c522c1
...
...
@@ -49,7 +49,7 @@ module.exports = {
// },
},
//
https: true,
https
:
true
,
},
configureWebpack
:
{
plugins
:
[
...
...
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