Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
integrate-admin
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
integrate-admin
Commits
956f2704
提交
956f2704
authored
12月 14, 2022
作者:
刘旭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
获取Mac地址
上级
236895c0
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
25 行增加
和
1 行删除
+25
-1
synchronizationAPI.ts
...vices/api/systemApi/synchronization/synchronizationAPI.ts
+8
-0
synchronousMonitoring.vue
src/views/manage/synchronousMonitoring.vue
+17
-1
没有找到文件。
src/services/api/systemApi/synchronization/synchronizationAPI.ts
浏览文件 @
956f2704
...
...
@@ -90,3 +90,11 @@ export function putConnectParam(data: any) {
data
,
});
}
// 获取mac地址 /api/mac/address/detail
export
function
getMacAddress
()
{
return
request
({
url
:
"/api/mac/address/detail"
,
method
:
"get"
,
});
}
src/views/manage/synchronousMonitoring.vue
浏览文件 @
956f2704
...
...
@@ -33,6 +33,11 @@
</el-button>
<el-button
type=
"primary"
icon=
"RefreshRight"
@
click=
"handleManual"
>
手动同步
</el-button>
<el-button
type=
"primary"
@
click=
"handleSelected"
>
导入 lic 文件
</el-button>
<!--
<el-button
type=
"primary"
@
click=
"handleMacAddress"
>
获取mac地址
</el-button>
-->
<div
v-show=
"macAddress"
style=
"font-size: 14px; color: #ccc;"
>
mac地址:
{{
macAddress
}}
</div>
<input
ref=
"uploadInput"
type=
"file"
style=
"display: none;"
accept=
".tmp"
@
change=
"submitUpload"
>
</el-space>
</div>
...
...
@@ -92,7 +97,8 @@ import {
getOff
,
getabnormal
,
getSRecords
,
importFile
importFile
,
getMacAddress
}
from
"@/services/api/systemApi/synchronization/synchronizationAPI"
;
const
loading
=
ref
(
true
)
...
...
@@ -111,6 +117,8 @@ const pageData = reactive({
pageSize
:
10
})
const
macAddress
=
ref
()
// 1、 启动 0、 关闭
const
flag
=
ref
()
...
...
@@ -258,6 +266,14 @@ let uploadInput = ref()
// 点击导入文件
const
handleSelected
=
()
=>
uploadInput
.
value
.
click
()
const
handleMacAddress
=
()
=>
{
getMacAddress
().
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
200
)
{
macAddress
.
value
=
res
.
data
}
})
}
handleMacAddress
()
// //选好文件之后点击打开按钮
const
submitUpload
=
(
e
:
any
)
=>
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论