Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
mqttsnet
thinglinks
提交
69cdf1e9
thinglinks
项目概览
mqttsnet
/
thinglinks
通知
1
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
thinglinks
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
69cdf1e9
编写于
5月 16, 2022
作者:
xiaonannet
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'release/1.0.0' into main
上级
41e33a03
9c861675
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
32 addition
and
17 deletion
+32
-17
thinglinks-ui/src/views/link/device/index.vue
thinglinks-ui/src/views/link/device/index.vue
+32
-17
未找到文件。
thinglinks-ui/src/views/link/device/index.vue
浏览文件 @
69cdf1e9
...
...
@@ -81,8 +81,11 @@
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
v-if=
"advancedSearch"
label=
"产品标识"
prop=
"productIdentification"
>
<el-input
v-model=
"queryParams.productIdentification"
placeholder=
"请输入产品标识"
clearable
size=
"small"
@
keyup.enter.native=
"handleQuery"
/>
<el-select
v-model=
"form.productIdentification"
placeholder=
"请选择产品标识"
>
<el-option
v-for=
"item in productOptions"
:key=
"item.productIdentification"
:label=
"item.productName"
@
keyup.enter.native=
"handleQuery"
:value=
"item.productIdentification"
:disabled=
"item.status === 0"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
v-if=
"advancedSearch"
label=
"产品协议类型"
prop=
"protocolType"
>
<el-select
v-model=
"queryParams.protocolType"
placeholder=
"请选择产品协议类型"
clearable
size=
"small"
>
...
...
@@ -132,12 +135,15 @@
<el-table-column
label=
"id"
align=
"center"
prop=
"id"
/>
<el-table-column
label=
"客户端标识"
align=
"center"
prop=
"clientId"
width=
"180"
/>
<el-table-column
label=
"用户名"
align=
"center"
prop=
"userName"
width=
"180"
/>
<el-table-column
label=
"密码"
align=
"center"
prop=
"password"
width=
"180"
>
<el-table-column
label=
"密码"
align=
"center"
prop=
"password"
width=
"180"
>
<template
slot-scope=
"scope"
>
<div
disable=
"disable"
style=
"width:100%;display:flex; justify-content: center;align-items:center"
>
<i
style=
"cursor: pointer;"
title=
"复制"
class=
"el-icon-copy-document"
@
click=
"copy(deviceList[scope.$index].password)"
></i>
<el-input
class=
"inputDeep"
v-model=
"deviceList[scope.$index].password"
show-password
></el-input>
<span
v-show=
"currentIndex != scope.$index"
ref=
"start"
>
********
</span>
<span
v-show=
"currentIndex == scope.$index"
ref=
"pWord"
>
{{
deviceList
[
scope
.
$index
].
password
}}
</span>
<i
style=
"cursor: pointer;"
:ind=
"scope.$index"
class=
"el-icon-view"
@
click=
"setShow(scope.$index, $event)"
></i>
</div>
</
template
>
</el-table-column>
...
...
@@ -153,8 +159,7 @@
<dict-tag
:options=
"dict.type.link_device_connector"
:value=
"scope.row.connector"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"设备标签"
align=
"center"
prop=
"deviceTags"
width=
"180"
/>
<el-table-column
label=
"产品标识"
align=
"center"
prop=
"productIdentification"
width=
"180"
/>
<el-table-column
label=
"产品标识"
align=
"center"
prop=
"productIdentification"
width=
"180"
/>
<el-table-column
label=
"产品协议类型"
align=
"center"
prop=
"protocolType"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.link_device_protocol_type"
:value=
"scope.row.protocolType"
/>
...
...
@@ -180,6 +185,7 @@
<dict-tag
:options=
"dict.type.link_device_is_will"
:value=
"scope.row.isWill"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"设备标签"
align=
"center"
prop=
"deviceTags"
width=
"180"
/>
<el-table-column
label=
"设备描述"
align=
"center"
prop=
"deviceDescription"
width=
"180"
/>
<el-table-column
label=
"创建者"
align=
"center"
prop=
"createBy"
/>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
width=
"180"
>
...
...
@@ -340,13 +346,8 @@
<
el
-
col
:
span
=
"
11
"
>
<
el
-
form
-
item
label
=
"
所属产品
"
>
<
el
-
select
v
-
model
=
"
form.productIdentification
"
placeholder
=
"
请选择所属产品
"
>
<
el
-
option
v
-
for
=
"
item in productOptions
"
:
key
=
"
item.productIdentification
"
:
label
=
"
item.productName
"
:
value
=
"
item.productIdentification
"
:
disabled
=
"
item.status === 0
"
><
/el-option
>
<
el
-
option
v
-
for
=
"
item in productOptions
"
:
key
=
"
item.productIdentification
"
:
label
=
"
item.productName
"
:
value
=
"
item.productIdentification
"
:
disabled
=
"
item.status === 0
"
><
/el-option
>
<
/el-select
>
<
/el-form-item
>
<
/el-col
>
...
...
@@ -400,10 +401,10 @@ export default {
],
data
()
{
return
{
productOptions
:
[],
//密码显示隐藏
passWord
:
"
******
"
,
flag
:
true
,
index_x
:
[],
show
:
true
,
currentIndex
:
null
,
// 高级搜索切换
advancedSearch
:
false
,
// 高级搜索icon
...
...
@@ -498,8 +499,22 @@ export default {
}
,
created
()
{
this
.
getList
();
getDevice
().
then
(
response
=>
{
this
.
productOptions
=
response
.
products
;
this
.
title
=
"
添加设备档案
"
;
}
);
}
,
methods
:
{
//显示隐藏
setShow
(
index
)
{
if
(
this
.
show
)
{
this
.
currentIndex
=
index
this
.
show
=
false
}
else
{
this
.
currentIndex
=
null
this
.
show
=
true
}
s
}
,
// 复制
copy
(
shareLink
)
{
var
input
=
document
.
createElement
(
"
input
"
);
...
...
@@ -722,7 +737,7 @@ export default {
align
-
items
:
center
;
}
.
inputDeep
{
.
inputDeep
{
border
:
0
!
important
;
}
<
/style
>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录