Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
gold-brick-anti-fake
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
黄麒宇
gold-brick-anti-fake
Commits
7fa0b727
Commit
7fa0b727
authored
Aug 23, 2022
by
huangqy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
假如音频模块
parent
8711ef40
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
84 行增加
和
60 行删除
+84
-60
index.html
public/index.html
+1
-1
error.mp3
src/assets/error.mp3
+0
-0
success.mp3
src/assets/success.mp3
+0
-0
check.vue
src/views/basicData/check.vue
+20
-8
produce.vue
src/views/basicData/produce.vue
+60
-48
index.vue
src/views/index.vue
+1
-1
index全显示.vue
src/views/index全显示.vue
+2
-2
没有找到文件。
public/index.html
View file @
7fa0b727
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<title>
金锭生产防伪
管理系统
</title>
<title>
贵金属生产
管理系统
</title>
</head>
</head>
<body>
<body>
<noscript>
<noscript>
...
...
src/assets/error.mp3
0 → 100644
View file @
7fa0b727
File added
src/assets/success.mp3
0 → 100644
View file @
7fa0b727
File added
src/views/basicData/check.vue
View file @
7fa0b727
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
<div
class=
"body"
:style=
"'height:' + height + 'px'"
>
<div
class=
"body"
:style=
"'height:' + height + 'px'"
>
<div
class=
"inner_border"
>
<div
class=
"inner_border"
>
<el-card
:style=
"'height:' + (height - 60) + 'px; overflow-y: auto; position:relative;'"
>
<el-card
:style=
"'height:' + (height - 60) + 'px; overflow-y: auto; position:relative;'"
>
<audio
controls=
"controls"
hidden
src=
"../../assets/error.mp3"
ref=
"audio"
></audio>
<audio
controls=
"controls"
hidden
src=
"../../assets/success.mp3"
ref=
"audio1"
></audio>
<el-form
:inline=
"true"
:model=
"searchData"
size=
"medium"
label-position=
"left"
>
<el-form
:inline=
"true"
:model=
"searchData"
size=
"medium"
label-position=
"left"
>
<el-row
type=
"flex"
justify=
"space-between"
align=
"middle"
>
<el-row
type=
"flex"
justify=
"space-between"
align=
"middle"
>
<el-col>
<el-col>
...
@@ -86,7 +88,7 @@
...
@@ -86,7 +88,7 @@
</el-card>
</el-card>
<el-dialog
:append-to-body=
"true"
title=
"生产自检"
:visible
.
sync=
"dialogVisible"
@
close=
"dialogClose()"
width=
"1
0
00px"
:close-on-click-modal=
"false"
>
<el-dialog
:append-to-body=
"true"
title=
"生产自检"
:visible
.
sync=
"dialogVisible"
@
close=
"dialogClose()"
width=
"1
2
00px"
:close-on-click-modal=
"false"
>
<el-card>
<el-card>
<div
slot=
"header"
class=
"clearfix"
>
<div
slot=
"header"
class=
"clearfix"
>
<span
style=
"font-size: 20px;flex: 1"
>
已自检数:
<span
style=
"color: green;font-size: 20px;"
>
{{ formData.checkedNum }}
</span>
件
</span>
<span
style=
"font-size: 20px;flex: 1"
>
已自检数:
<span
style=
"color: green;font-size: 20px;"
>
{{ formData.checkedNum }}
</span>
件
</span>
...
@@ -104,7 +106,7 @@
...
@@ -104,7 +106,7 @@
<div
style=
"max-height: 130px;overflow:auto"
>
<div
style=
"max-height: 130px;overflow:auto"
>
<ul>
<ul>
<li
v-for=
"item in logList"
style=
"margin-top: 8px;"
:key=
"item.time + item.log"
>
<li
v-for=
"item in logList"
style=
"margin-top: 8px;"
:key=
"item.time + item.log"
>
<div
style=
"display: flex;justify-content: center;align-items: center"
>
<div
style=
"display: flex;justify-content: center;align-items: center"
:class=
"item.status === 1 ? 'greenFont': 'redFont' "
>
<div
style=
"flex: 1;line-height: 16px; font-size: 16px;text-align: center"
>
{{ item.log }}
</div>
<div
style=
"flex: 1;line-height: 16px; font-size: 16px;text-align: center"
>
{{ item.log }}
</div>
<div
style=
"flex: 1;line-height: 16px; font-size: 16px;text-align: center"
>
{{ item.time }}
</div>
<div
style=
"flex: 1;line-height: 16px; font-size: 16px;text-align: center"
>
{{ item.time }}
</div>
</div>
</div>
...
@@ -115,8 +117,8 @@
...
@@ -115,8 +117,8 @@
</el-card>
</el-card>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<a-button
@
click=
"dialogVisible = false"
ghost
type=
"danger"
>
取 消
</a-button>
<a-button
@
click=
"dialogVisible = false"
ghost
type=
"danger"
size=
"large"
>
取 消
</a-button>
<a-button
type=
"primary"
ghost
@
click=
"bindBatch()"
style=
"margin-left:
10px;"
:loading=
"loading
"
>
自 检
</a-button>
<a-button
type=
"primary"
ghost
@
click=
"bindBatch()"
style=
"margin-left:
20px;"
:loading=
"loading"
size=
"large
"
>
自 检
</a-button>
</span>
</span>
</el-dialog>
</el-dialog>
</div>
</div>
...
@@ -226,9 +228,11 @@ export default {
...
@@ -226,9 +228,11 @@ export default {
},
},
websocketOnopen
(
e
)
{
websocketOnopen
(
e
)
{
this
.
logList
.
unshift
({
time
:
this
.
parseTime
(
new
Date
()),
log
:
'WebSocket连接建立'
})
this
.
logList
.
unshift
({
time
:
this
.
parseTime
(
new
Date
()),
log
:
'WebSocket连接建立'
,
status
:
1
})
},
},
websocketOnerror
:
function
(
e
)
{
websocketOnerror
:
function
(
e
)
{
this
.
logList
.
unshift
({
time
:
this
.
parseTime
(
new
Date
()),
log
:
'写入服务连接失败'
,
status
:
2
})
this
.
$refs
.
audio
.
play
()
console
.
log
(
"WebSocket连接发生错误"
);
console
.
log
(
"WebSocket连接发生错误"
);
},
},
websocketOnclose
:
function
(
e
)
{
websocketOnclose
:
function
(
e
)
{
...
@@ -252,7 +256,6 @@ export default {
...
@@ -252,7 +256,6 @@ export default {
// obj = obj.substring(index+3, obj.length)
// obj = obj.substring(index+3, obj.length)
// var sendObj = { Uid: this.uid, Data: obj }
// var sendObj = { Uid: this.uid, Data: obj }
var
sendObj
=
{
Uid
:
this
.
uid
,
Data
:
backMessObj
.
Code
}
var
sendObj
=
{
Uid
:
this
.
uid
,
Data
:
backMessObj
.
Code
}
console
.
log
(
JSON
.
stringify
({
Cmd
:
3
,
Data
:
sendObj
}))
this
.
websock
.
send
(
JSON
.
stringify
({
Cmd
:
3
,
Data
:
sendObj
}))
this
.
websock
.
send
(
JSON
.
stringify
({
Cmd
:
3
,
Data
:
sendObj
}))
}
}
else
if
(
backMessObj
.
Cmd
===
254
)
{
else
if
(
backMessObj
.
Cmd
===
254
)
{
...
@@ -261,14 +264,17 @@ export default {
...
@@ -261,14 +264,17 @@ export default {
this
.
websock
.
send
(
JSON
.
stringify
({
Cmd
:
1
,
Data
:
''
}))
this
.
websock
.
send
(
JSON
.
stringify
({
Cmd
:
1
,
Data
:
''
}))
},
1000
)
},
1000
)
}
else
{
}
else
{
this
.
logList
.
unshift
({
time
:
this
.
parseTimes
(
new
Date
()),
log
:
backMessObj
.
Data
.
Message
})
this
.
$refs
.
audio
.
play
()
this
.
logList
.
unshift
({
time
:
this
.
parseTimes
(
new
Date
()),
log
:
backMessObj
.
Data
.
Message
,
status
:
2
})
setTimeout
(()
=>
alert
(
backMessObj
.
Data
.
Message
),
500
)
}
}
}
}
},
},
async
tagCheck
(
productCode
)
{
async
tagCheck
(
productCode
)
{
const
{
data
:
res
}
=
await
this
.
$axios
.
post
(
'/api/tag/check'
,
{
tagUid
:
this
.
uid
,
productCode
:
productCode
})
const
{
data
:
res
}
=
await
this
.
$axios
.
post
(
'/api/tag/check'
,
{
tagUid
:
this
.
uid
,
productCode
:
productCode
})
if
(
res
.
code
!=
99200
)
return
this
.
$message
.
error
(
res
.
message
)
if
(
res
.
code
!=
99200
)
return
this
.
$message
.
error
(
res
.
message
)
this
.
logList
.
unshift
({
time
:
this
.
parseTimes
(
new
Date
()),
log
:
'自检成功'
})
this
.
logList
.
unshift
({
time
:
this
.
parseTimes
(
new
Date
()),
log
:
'自检成功'
,
status
:
1
})
this
.
$refs
.
audio1
.
play
()
this
.
findNumber
()
this
.
findNumber
()
},
},
async
findNumber
()
{
async
findNumber
()
{
...
@@ -312,4 +318,10 @@ export default {
...
@@ -312,4 +318,10 @@ export default {
align-items
:
center
;
align-items
:
center
;
text-align
:
center
;
text-align
:
center
;
}
}
.greenFont
{
color
:
green
;
}
.redFont
{
color
:
red
;
}
</
style
>
</
style
>
src/views/basicData/produce.vue
View file @
7fa0b727
...
@@ -4,6 +4,8 @@
...
@@ -4,6 +4,8 @@
<div
class=
"inner_border"
>
<div
class=
"inner_border"
>
<!-- 主体区域 - 卡片视图 -->
<!-- 主体区域 - 卡片视图 -->
<el-card
:style=
"'height:' + (height - 60) + 'px;overflow-y: auto;position:relative;'"
>
<el-card
:style=
"'height:' + (height - 60) + 'px;overflow-y: auto;position:relative;'"
>
<audio
controls=
"controls"
hidden
src=
"../../assets/error.mp3"
ref=
"audio"
></audio>
<audio
controls=
"controls"
hidden
src=
"../../assets/success.mp3"
ref=
"audio1"
></audio>
<!-- 查询功能区域 -->
<!-- 查询功能区域 -->
<el-form
:inline=
"true"
:model=
"searchData"
size=
"medium"
label-position=
"left"
>
<el-form
:inline=
"true"
:model=
"searchData"
size=
"medium"
label-position=
"left"
>
<el-row
type=
"flex"
justify=
"space-between"
align=
"middle"
>
<el-row
type=
"flex"
justify=
"space-between"
align=
"middle"
>
...
@@ -100,7 +102,7 @@
...
@@ -100,7 +102,7 @@
:title=
"title"
:title=
"title"
:visible
.
sync=
"dialogVisible"
:visible
.
sync=
"dialogVisible"
@
close=
"dialogClose()"
@
close=
"dialogClose()"
width=
"
8
00px"
width=
"
10
00px"
:close-on-click-modal=
"false"
:close-on-click-modal=
"false"
>
>
<!-- 表单区域 -->
<!-- 表单区域 -->
...
@@ -159,13 +161,13 @@
...
@@ -159,13 +161,13 @@
</el-dialog>
</el-dialog>
<el-dialog
:append-to-body=
"true"
title=
"数据绑定"
:visible
.
sync=
"bindVisible"
@
close=
"bindDialogClose()"
width=
"1
0
00px"
:close-on-click-modal=
"false"
>
<el-dialog
:append-to-body=
"true"
title=
"数据绑定"
:visible
.
sync=
"bindVisible"
@
close=
"bindDialogClose()"
width=
"1
2
00px"
:close-on-click-modal=
"false"
>
<el-card>
<el-card>
<div
slot=
"header"
class=
"clearfix"
>
<div
slot=
"header"
class=
"clearfix"
>
<span
style=
"font-size: 20px;flex: 1"
>
生产总数:
<span
style=
"color: green;font-size: 20px;"
>
{{ bindForm.total }}
</span>
件
</span>
<span
style=
"font-size: 20px;flex: 1"
>
生产总数:
<span
style=
"color: green;font-size: 20px;"
>
{{ bindForm.total }}
</span>
件
</span>
<span
style=
"font-size: 20px;flex: 1"
>
已绑定数量:
<span
style=
"color: red;font-size: 20px;"
>
{{ bindForm.doneNum }}
</span>
件
</span>
<span
style=
"font-size: 20px;flex: 1"
>
已绑定数量:
<span
style=
"color: red;font-size: 20px;"
>
{{ bindForm.doneNum }}
</span>
件
</span>
</div>
</div>
<el-descriptions
direction=
"vertical"
border
:column=
"5"
>
<el-descriptions
direction=
"vertical"
border
:column=
"5"
size=
"medium"
>
<el-descriptions-item
label=
"批次号"
:labelStyle=
"{'text-align': 'center'}"
:contentStyle=
"{'text-align': 'center'}"
>
{{ bindForm.batchNo }}
</el-descriptions-item>
<el-descriptions-item
label=
"批次号"
:labelStyle=
"{'text-align': 'center'}"
:contentStyle=
"{'text-align': 'center'}"
>
{{ bindForm.batchNo }}
</el-descriptions-item>
<el-descriptions-item
label=
"产品名称"
:labelStyle=
"{'text-align': 'center'}"
:contentStyle=
"{'text-align': 'center'}"
>
{{ bindForm.productName }}
</el-descriptions-item>
<el-descriptions-item
label=
"产品名称"
:labelStyle=
"{'text-align': 'center'}"
:contentStyle=
"{'text-align': 'center'}"
>
{{ bindForm.productName }}
</el-descriptions-item>
<el-descriptions-item
label=
"规格"
:labelStyle=
"{'text-align': 'center'}"
:contentStyle=
"{'text-align': 'center'}"
>
{{ bindForm.spec }}
</el-descriptions-item>
<el-descriptions-item
label=
"规格"
:labelStyle=
"{'text-align': 'center'}"
:contentStyle=
"{'text-align': 'center'}"
>
{{ bindForm.spec }}
</el-descriptions-item>
...
@@ -177,10 +179,10 @@
...
@@ -177,10 +179,10 @@
<div
style=
"max-height: 130px;overflow:auto"
>
<div
style=
"max-height: 130px;overflow:auto"
>
<ul>
<ul>
<li
v-for=
"item in logList"
style=
"margin-top: 8px;"
:key=
"item.time + item.log"
>
<li
v-for=
"item in logList"
style=
"margin-top: 8px;"
:key=
"item.time + item.log"
>
<div
style=
"display: flex;justify-content: center;align-items: center
"
>
<div
style=
"display: flex;justify-content: center;align-items: center"
:class=
"item.status === 1 ? 'greenFont': 'redFont'
"
>
<div
style=
"flex: 1;line-height: 16px; font-size: 16px;text-align: center"
>
{{ item.log }}
</div>
<div
style=
"flex: 1;line-height: 16px; font-size: 16px;text-align: center"
>
{{ item.log }}
</div>
<div
style=
"flex: 1;line-height: 16px; font-size: 16px;text-align: center"
>
{{ item.time }}
</div>
<div
style=
"flex: 1;line-height: 16px; font-size: 16px;text-align: center"
>
{{ item.time }}
</div>
</div>
</div>
</li>
</li>
</ul>
</ul>
</div>
</div>
...
@@ -188,8 +190,8 @@
...
@@ -188,8 +190,8 @@
</el-card>
</el-card>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<a-button
@
click=
"bindVisible = false"
ghost
type=
"danger"
>
取 消
</a-button>
<a-button
@
click=
"bindVisible = false"
ghost
type=
"danger"
size=
"large"
>
取 消
</a-button>
<a-button
type=
"primary"
ghost
@
click=
"bindBatch()"
style=
"margin-left:
10px;"
:loading=
"loading
"
>
绑 定
</a-button>
<a-button
type=
"primary"
ghost
@
click=
"bindBatch()"
style=
"margin-left:
20px;"
:loading=
"loading"
size=
"large
"
>
绑 定
</a-button>
</span>
</span>
</el-dialog>
</el-dialog>
</el-card>
</el-card>
...
@@ -199,24 +201,24 @@
...
@@ -199,24 +201,24 @@
<
script
>
<
script
>
import
initData
from
'../../mixins/initData'
import
initData
from
'../../mixins/initData'
import
Speech
from
'speak-tts'
//
import Speech from 'speak-tts'
const
speech
=
new
Speech
()
// will throw an exception if not browser supported
//
const speech = new Speech() // will throw an exception if not browser supported
if
(
speech
.
hasBrowserSupport
())
{
// returns a boolean
//
if(speech.hasBrowserSupport()) { // returns a boolean
console
.
log
(
"speech synthesis supported"
)
//
console.log("speech synthesis supported")
}
//
}
speech
.
init
({
//
speech.init({
'volume'
:
1
,
//
'volume': 1,
'lang'
:
'zh-CN'
,
//
'lang': 'zh-CN',
'rate'
:
1
,
//
'rate': 1,
'pitch'
:
1
,
//
'pitch': 1,
'voice'
:
'Google 普通话(中国大陆)'
,
//
'voice':'Google 普通话(中国大陆)',
'splitSentences'
:
true
,
//
'splitSentences': true,
'listeners'
:
{
//
'listeners': {
'onvoiceschanged'
:
(
voices
)
=>
{
//
'onvoiceschanged': (voices) => {
console
.
log
(
"Event voiceschanged"
,
voices
)
//
console.log("Event voiceschanged", voices)
}
//
}
}
//
}
})
//
})
export
default
{
export
default
{
mixins
:
[
initData
],
mixins
:
[
initData
],
data
()
{
data
()
{
...
@@ -245,23 +247,22 @@ export default {
...
@@ -245,23 +247,22 @@ export default {
methods
:
{
methods
:
{
speak
(
text
)
{
speak
(
text
)
{
console
.
log
(
text
)
speech
.
speak
({
speech
.
speak
({
text
:
text
,
text
:
text
,
queue
:
true
,
// current speech will be interrupted,
queue
:
true
,
// current speech will be interrupted,
listeners
:
{
listeners
:
{
onstart
:
()
=>
{
onstart
:
()
=>
{
console
.
log
(
"Start utterance"
)
console
.
log
(
"Start utterance"
)
},
},
onend
:
()
=>
{
onend
:
()
=>
{
console
.
log
(
"End utterance"
)
console
.
log
(
"End utterance"
)
},
},
onresume
:
()
=>
{
onresume
:
()
=>
{
console
.
log
(
"Resume utterance"
)
console
.
log
(
"Resume utterance"
)
},
},
onboundary
:
(
event
)
=>
{
onboundary
:
(
event
)
=>
{
console
.
log
(
event
.
name
+
' boundary reached after '
+
event
.
elapsedTime
+
' milliseconds.'
)
console
.
log
(
event
.
name
+
' boundary reached after '
+
event
.
elapsedTime
+
' milliseconds.'
)
}
}
}
}
}).
then
(()
=>
{
}).
then
(()
=>
{
console
.
log
(
"Success !"
)
console
.
log
(
"Success !"
)
...
@@ -382,9 +383,11 @@ export default {
...
@@ -382,9 +383,11 @@ export default {
this
.
bindVisible
=
true
this
.
bindVisible
=
true
},
},
websocketOnopen
(
e
)
{
websocketOnopen
(
e
)
{
this
.
logList
.
unshift
({
time
:
this
.
parseTime
(
new
Date
()),
log
:
'
WebSocket连接建立'
})
this
.
logList
.
unshift
({
time
:
this
.
parseTime
(
new
Date
()),
log
:
'
写入服务连接建立'
,
status
:
1
})
},
},
websocketOnerror
:
function
(
e
)
{
websocketOnerror
:
function
(
e
)
{
this
.
logList
.
unshift
({
time
:
this
.
parseTime
(
new
Date
()),
log
:
'写入服务连接失败'
,
status
:
2
})
this
.
$refs
.
audio
.
play
()
console
.
log
(
"WebSocket连接发生错误"
);
console
.
log
(
"WebSocket连接发生错误"
);
},
},
websocketOnclose
:
function
(
e
)
{
websocketOnclose
:
function
(
e
)
{
...
@@ -398,13 +401,14 @@ export default {
...
@@ -398,13 +401,14 @@ export default {
this
.
updateContent
(
backMessObj
.
Data
.
Access
,
backMessObj
.
Data
.
Data
)
this
.
updateContent
(
backMessObj
.
Data
.
Access
,
backMessObj
.
Data
.
Data
)
}
else
if
(
backMessObj
.
Cmd
===
1
){
}
else
if
(
backMessObj
.
Cmd
===
1
){
if
(
this
.
oldUid
!==
this
.
newUid
)
{
if
(
this
.
oldUid
!==
this
.
newUid
)
{
this
.
logList
.
unshift
({
time
:
this
.
parseTime
(
new
Date
()),
log
:
'读取到UID:'
+
backMessObj
.
Data
})
//
this.logList.unshift({time: this.parseTime(new Date()), log: '读取到UID:' + backMessObj.Data })
}
}
this
.
updateUid
(
backMessObj
.
Data
)
this
.
updateUid
(
backMessObj
.
Data
)
}
}
else
if
(
backMessObj
.
Cmd
===
4
){
else
if
(
backMessObj
.
Cmd
===
4
){
this
.
speak
(
'D'
)
//this.speak('D')
this
.
logList
.
unshift
({
time
:
this
.
parseTime
(
new
Date
()),
log
:
'标签成功写入生产数据'
})
this
.
$refs
.
audio1
.
play
()
this
.
logList
.
unshift
({
time
:
this
.
parseTime
(
new
Date
()),
log
:
'写入成功'
,
status
:
1
})
this
.
bindForm
.
doneNum
++
this
.
bindForm
.
doneNum
++
this
.
oldUid
=
this
.
newUid
this
.
oldUid
=
this
.
newUid
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
@@ -417,8 +421,10 @@ export default {
...
@@ -417,8 +421,10 @@ export default {
this
.
websock
.
send
(
JSON
.
stringify
({
Cmd
:
1
,
Data
:
''
}))
this
.
websock
.
send
(
JSON
.
stringify
({
Cmd
:
1
,
Data
:
''
}))
},
1000
)
},
1000
)
}
else
{
}
else
{
this
.
logList
.
unshift
({
time
:
this
.
parseTime
(
new
Date
()),
log
:
backMessObj
.
Data
.
Message
})
this
.
logList
.
unshift
({
time
:
this
.
parseTime
(
new
Date
()),
log
:
backMessObj
.
Data
.
Message
,
status
:
2
})
this
.
speak
(
backMessObj
.
Data
.
Message
+
',请重新绑定'
)
this
.
$refs
.
audio
.
play
()
setTimeout
(()
=>
alert
(
backMessObj
.
Data
.
Message
),
500
)
// this.speak(backMessObj.Data.Message + ',请重新绑定')
}
}
}
}
},
},
...
@@ -441,8 +447,8 @@ export default {
...
@@ -441,8 +447,8 @@ export default {
this
.
websock
.
send
(
JSON
.
stringify
({
Cmd
:
4
,
Data
:
{
Access
:
password
,
Data
:
res
.
data
.
content
,
Code
:
res
.
data
.
productCode
}
}))
this
.
websock
.
send
(
JSON
.
stringify
({
Cmd
:
4
,
Data
:
{
Access
:
password
,
Data
:
res
.
data
.
content
,
Code
:
res
.
data
.
productCode
}
}))
},
},
bindBatch
()
{
bindBatch
()
{
this
.
loading
=
true
this
.
loading
=
true
this
.
websock
.
send
(
JSON
.
stringify
({
Cmd
:
1
,
Data
:
''
}))
this
.
websock
.
send
(
JSON
.
stringify
({
Cmd
:
1
,
Data
:
''
}))
}
}
}
}
}
}
...
@@ -454,4 +460,10 @@ export default {
...
@@ -454,4 +460,10 @@ export default {
align-items
:
center
;
align-items
:
center
;
text-align
:
center
;
text-align
:
center
;
}
}
.greenFont
{
color
:
green
;
}
.redFont
{
color
:
red
;
}
</
style
>
</
style
>
src/views/index.vue
View file @
7fa0b727
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<el-header
class=
"ltk-header"
>
<el-header
class=
"ltk-header"
>
<div
class=
"logo"
>
<div
class=
"logo"
>
<img
src=
"../assets/logo.png"
alt=
"logo"
/>
<img
src=
"../assets/logo.png"
alt=
"logo"
/>
<span>
金锭生产防伪
管理系统
</span>
<span>
贵金属生产
管理系统
</span>
</div>
</div>
<div
class=
"time_box"
@
click=
"cut"
>
<div
class=
"time_box"
@
click=
"cut"
>
<bo-time></bo-time>
<bo-time></bo-time>
...
...
src/views/index全显示.vue
View file @
7fa0b727
<
temp
late
>
<
temp
late
>
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<el-header
class=
"ltk-header"
>
<el-header
class=
"ltk-header"
>
<div
class=
"logo"
@
click=
"goHome()"
>
<div
class=
"logo"
@
click=
"goHome()"
>
<img
src=
"../assets/logo.png"
alt=
"logo"
/>
<img
src=
"../assets/logo.png"
alt=
"logo"
/>
<span>
金锭生产防伪
管理系统
</span>
<span>
贵金属生产
管理系统
</span>
</div>
</div>
<div
class=
"time_box"
@
click=
"cut"
>
<div
class=
"time_box"
@
click=
"cut"
>
<bo-time></bo-time>
<bo-time></bo-time>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论