Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
IoTSharp
IoTSharp
提交
187776ab
IoTSharp
项目概览
IoTSharp
/
IoTSharp
10 个月 前同步成功
通知
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 搜索 >>
提交
187776ab
编写于
3月 21, 2022
作者:
W
wq1234wq
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
前端修改,挂载类型,复制失败修正
上级
367611dd
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
26 addition
and
10 deletion
+26
-10
IoTSharp/ClientApp/src/app/routes/customer/customerlist/customerlist.component.ts
...pp/routes/customer/customerlist/customerlist.component.ts
+6
-2
IoTSharp/ClientApp/src/app/routes/user/userlist/userlist.component.ts
...entApp/src/app/routes/user/userlist/userlist.component.ts
+14
-5
IoTSharp/Controllers/RulesController.cs
IoTSharp/Controllers/RulesController.cs
+5
-2
IoTSharp/Handlers/EventBusHandler.cs
IoTSharp/Handlers/EventBusHandler.cs
+1
-1
未找到文件。
IoTSharp/ClientApp/src/app/routes/customer/customerlist/customerlist.component.ts
浏览文件 @
187776ab
...
...
@@ -195,10 +195,14 @@ export class CustomerlistComponent implements OnInit {
delete
(
id
:
string
)
{
this
.
http
.
delete
(
'
api/Customers/
'
+
id
,
{}).
subscribe
(
()
=>
{
next
=>
{
this
.
msg
.
info
(
'
用户已删除
'
)
this
.
getData
();
},
()
=>
{},
error
=>
{
this
.
msg
.
warning
(
'
用户删除失败
'
)
},
()
=>
{},
);
}
...
...
IoTSharp/ClientApp/src/app/routes/user/userlist/userlist.component.ts
浏览文件 @
187776ab
...
...
@@ -65,7 +65,11 @@ export class UserlistComponent implements OnInit {
},
{
acl
:
10
,
text
:
'
删除
'
,
text
:
'
删除
'
,
pop
:
{
title
:
'
确认删除用户?
'
,
okType
:
'
danger
'
,
icon
:
'
warning
'
,
},
click
:
(
item
:
any
)
=>
{
this
.
delete
(
item
.
id
);
},
...
...
@@ -131,12 +135,17 @@ export class UserlistComponent implements OnInit {
reset
()
{}
delete
(
id
:
string
)
{
this
.
http
.
delete
(
'
/api/Tenants
/
'
+
id
,
{}).
subscribe
(
()
=>
{
this
.
msg
.
info
(
'
租
户已删除
'
);
this
.
http
.
delete
(
'
api/Account
/
'
+
id
,
{}).
subscribe
(
next
=>
{
this
.
msg
.
info
(
'
用
户已删除
'
);
this
.
getData
();
},
()
=>
{},
error
=>
{
this
.
msg
.
warning
(
'
用户删除失败
'
);
this
.
getData
();
},
()
=>
{},
);
}
...
...
IoTSharp/Controllers/RulesController.cs
浏览文件 @
187776ab
...
...
@@ -193,11 +193,14 @@ namespace IoTSharp.Controllers
newrule
.
ExecutableCode
=
rule
.
ExecutableCode
;
newrule
.
RuleDesc
=
flowRule
.
RuleDesc
;
newrule
.
RuleStatus
=
1
;
newrule
.
MountType
=
flowR
ule
.
MountType
;
newrule
.
MountType
=
r
ule
.
MountType
;
newrule
.
ParentRuleId
=
rule
.
RuleId
;
newrule
.
CreateId
=
new
Guid
();
newrule
.
SubVersion
=
rule
.
SubVersion
+
0.01
;
newrule
.
Runner
=
rule
.
Runner
;
newrule
.
Customer
=
await
_context
.
Customer
.
SingleOrDefaultAsync
(
c
=>
c
.
Id
==
profile
.
Comstomer
);
newrule
.
Tenant
=
await
_context
.
Tenant
.
SingleOrDefaultAsync
(
c
=>
c
.
Id
==
profile
.
Tenant
);
newrule
.
Creator
=
profile
.
Id
.
ToString
();
_context
.
FlowRules
.
Add
(
newrule
);
await
_context
.
SaveChangesAsync
();
...
...
IoTSharp/Handlers/EventBusHandler.cs
浏览文件 @
187776ab
...
...
@@ -107,7 +107,7 @@ namespace IoTSharp.Handlers
{
obj
.
TryAdd
(
kv
.
Key
,
kv
.
Value
);
});
await
RunRules
(
msg
.
DeviceId
,
obj
,
MountType
.
Telemetry
);
await
RunRules
(
msg
.
DeviceId
,
obj
,
MountType
.
Attribute
);
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录