Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
IoTSharp
IoTSharp
提交
4625cd72
IoTSharp
项目概览
IoTSharp
/
IoTSharp
9 个月 前同步成功
通知
15
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
IoTSharp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4625cd72
编写于
7月 07, 2021
作者:
W
wq1234wq
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
移除属性提交过程中多余的accesstoken和设备Id
上级
dce56c38
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
8 deletion
+13
-8
ClientApp/Vue/src/api/iotsharp/device.ts
ClientApp/Vue/src/api/iotsharp/device.ts
+2
-2
ClientApp/Vue/src/views/iotsharp/device/propform.vue
ClientApp/Vue/src/views/iotsharp/device/propform.vue
+10
-5
ClientApp/Vue/src/views/iotsharp/user/userlist.vue
ClientApp/Vue/src/views/iotsharp/user/userlist.vue
+1
-1
未找到文件。
ClientApp/Vue/src/api/iotsharp/device.ts
浏览文件 @
4625cd72
...
...
@@ -23,9 +23,9 @@ export const DeviceListApi = (params: BasicPageParams) => {
});
};
export
const
SetAttribute
=
(
params
:
BasicPageParams
)
=>
{
export
const
SetAttribute
=
(
params
:
BasicPageParams
,
accesstoken
:
string
)
=>
{
return
defHttp
.
post
({
url
:
'
Devices/
'
+
params
.
accesstoken
+
'
/Attributes
'
,
url
:
'
Devices/
'
+
accesstoken
+
'
/Attributes
'
,
params
,
headers
:
{
ignoreCancelToken
:
true
,
...
...
ClientApp/Vue/src/views/iotsharp/device/propform.vue
浏览文件 @
4625cd72
...
...
@@ -59,13 +59,16 @@
async
function
handleSubmit
()
{
try
{
const
values
=
await
validate
();
console
.
log
(
values
);
setDrawerProps
({
confirmLoading
:
true
});
// TODO custom api
GetIdentity
(
values
.
id
).
then
((
x
)
=>
{
values
.
accesstoken
=
x
.
identityId
;
SetAttribute
(
values
).
then
((
y
)
=>
{
GetIdentity
(
values
.
id
).
then
((
x
)
=>
{
delete
values
.
id
;
//remove extra data
// delete values.accesstoken;
SetAttribute
(
values
,
x
.
identityId
).
then
((
y
)
=>
{
emit
(
'
success
'
);
closeDrawer
();
});
...
...
@@ -86,7 +89,7 @@
field
:
x
.
keyName
,
component
:
'
Input
'
,
label
:
x
.
keyName
,
defaultValue
:
x
.
value
,
defaultValue
:
x
.
value
,
//not works,after form created,you need rebind data
colProps
:
{
span
:
8
,
},
...
...
@@ -105,13 +108,15 @@
// },
// });
});
//hide id field
updateSchema
({
field
:
'
id
'
,
label
:
'
id
'
,
component
:
'
Input
'
,
show
:
false
,
});
//binding field value
setFieldsValue
({
...
o
,
});
...
...
ClientApp/Vue/src/views/iotsharp/user/userlist.vue
浏览文件 @
4625cd72
...
...
@@ -11,7 +11,7 @@
:actions=
"[
{
label: '修改',
icon: '
ic:outline-delete-out
line',
icon: '
clarity:note-edit-
line',
onClick: Edit.bind(null, record),
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录