Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
witiumCloud2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WitCloud
witiumCloud2
Commits
8adb5856
Commit
8adb5856
authored
Apr 19, 2021
by
yating.lin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.以下页面增加“是否为标签”:③主题模板详情的主题配置模板通道页面、及添加/修改弹窗
parent
f7df279c
Pipeline
#929
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
6 deletions
+23
-6
topic-module-way.component.html
...app/main/topic-module-way/topic-module-way.component.html
+17
-0
topic-module-way.component.ts
src/app/main/topic-module-way/topic-module-way.component.ts
+6
-6
No files found.
src/app/main/topic-module-way/topic-module-way.component.html
View file @
8adb5856
...
...
@@ -22,6 +22,7 @@
<th
nz-th
><span>
{{'alarmMaxMax' | translate}}
</span></th>
<th
nz-th
><span>
{{'alarmMin' | translate}}
</span></th>
<th
nz-th
><span>
{{'alarmMinMin' | translate}}
</span></th>
<th
nz-th
><span>
{{'isTag' | translate}}
</span></th>
<th
nz-th
><span>
{{'isAlarm' | translate}}
</span></th>
<th
nz-th
><span>
{{'oper' | translate}}
</span></th>
</tr>
...
...
@@ -39,6 +40,7 @@
<td
nz-td
>
{{one.upperAlarmLimit}}
</td>
<td
nz-td
>
{{one.alarmDown}}
</td>
<td
nz-td
>
{{one.lowerAlarmLimit}}
</td>
<td
nz-td
>
{{one.isTag === 1 ? '是': '否'}}
</td>
<td
nz-td
>
{{one.isAlarm === 1 ? '是': '否'}}
</td>
<td
nz-td
>
<span
class=
"editSpan"
(
click
)="
update
(
one
)"
>
{{'update' | translate}}
</span>
...
...
@@ -57,6 +59,17 @@
[(
value
)]="
req
.
name
"
></app-search-item>
<app-search-select
isMust=
"true"
inModal=
"true"
[
label
]="'
wayType
'
|
translate
"
[(
value
)]="
req
.
type
"
[
data
]="[{
a:
'
AI
'},
{
a:
'
AO
'},
{
a:
'
DI
'},
{
a:
'
DO
'}]"
optL=
"a"
optV=
"a"
></app-search-select>
<div
class=
"searchItem inModal"
>
<div
class=
"item-label"
><span
class=
"deleteFontColor"
>
*
</span>
{{'isTag' | translate}}
</div>
<div
class=
"item-input"
>
<nz-radio-group
[(
ngModel
)]="
req
.
isTag
"
>
<label
nz-radio
[
nzValue
]="
1
"
>
是
</label>
<label
nz-radio
[
nzValue
]="
0
"
>
否
</label>
</nz-radio-group>
</div>
</div>
<div
class=
"searchItem inModal"
>
<div
class=
"item-label"
><span
class=
"deleteFontColor"
>
*
</span>
{{'isAlarm' | translate}}
</div>
<div
class=
"item-input"
>
...
...
@@ -81,6 +94,10 @@
[
label
]="'
per
'
|
translate
"
[(
value
)]="
req
.
unit
"
></app-search-item>
<app-search-item
isMust=
"true"
inModal=
"true"
[
label
]="'
wayDescription
'
|
translate
"
[(
value
)]="
req
.
description
"
></app-search-item>
<div
class=
"searchItem inModal"
style=
"height: 30px;"
>
</div>
<app-search-item
inModal=
"true"
[
label
]="'
min
'
|
translate
"
[(
value
)]="
req
.
rangeMin
"
></app-search-item>
<app-search-item
*
ngIf=
"req.isAlarm"
inModal=
"true"
[
label
]="'
alarmMin
'
|
translate
"
[(
value
)]="
req
.
alarmDown
"
></app-search-item>
...
...
src/app/main/topic-module-way/topic-module-way.component.ts
View file @
8adb5856
...
...
@@ -80,10 +80,10 @@ export class TopicModuleWayComponent implements OnInit {
this
.
isUpdate
=
false
;
this
.
isV
=
true
;
this
.
try
=
{
trans
:
{
name
:
'wayName'
,
alias
:
'wayAlias'
,
description
:
'wayDescription'
,
type
:
'per'
,
is
Alarm
:
'isAlarm
'
,
alarmUp
:
'alarmMax'
,
upperAlarmLimit
:
'alarmMaxMax'
,
rangeMax
:
'max'
,
alarmDown
:
'alarmMin'
,
trans
:
{
name
:
'wayName'
,
alias
:
'wayAlias'
,
description
:
'wayDescription'
,
type
:
'per'
,
is
Tag
:
'isTag
'
,
isAlarm
:
'isAlarm'
,
alarmUp
:
'alarmMax'
,
upperAlarmLimit
:
'alarmMaxMax'
,
rangeMax
:
'max'
,
alarmDown
:
'alarmMin'
,
lowerAlarmLimit
:
'alarmMinMin'
,
alarmInterval
:
'alarmInterval'
,
rangeMin
:
'min'
},
field
:
[
'topicModelNo'
,
'topicName'
,
'name'
,
'alias'
,
'description'
,
'type'
,
'isAlarm'
],
field
:
[
'topicModelNo'
,
'topicName'
,
'name'
,
'alias'
,
'description'
,
'type'
,
'is
Tag'
,
'is
Alarm'
],
canFloat2
:
[
'alarmUp'
,
'upperAlarmLimit'
,
'rangeMax'
,
'alarmDown'
,
'lowerAlarmLimit'
,
'rangeMin'
],
num
:
[
'alarmInterval'
],
eng
:
[
'name'
,
'alias'
]
...
...
@@ -96,10 +96,10 @@ export class TopicModuleWayComponent implements OnInit {
this
.
req
.
oldName
=
one
.
name
;
this
.
isV
=
true
;
this
.
try
=
{
trans
:
{
name
:
'wayName'
,
alias
:
'wayAlias'
,
description
:
'wayDescription'
,
type
:
'per'
,
is
Alarm
:
'isAlarm
'
,
alarmUp
:
'alarmMax'
,
upperAlarmLimit
:
'alarmMaxMax'
,
rangeMax
:
'max'
,
alarmDown
:
'alarmMin'
,
trans
:
{
name
:
'wayName'
,
alias
:
'wayAlias'
,
description
:
'wayDescription'
,
type
:
'per'
,
is
Tag
:
'isTag
'
,
isAlarm
:
'isAlarm'
,
alarmUp
:
'alarmMax'
,
upperAlarmLimit
:
'alarmMaxMax'
,
rangeMax
:
'max'
,
alarmDown
:
'alarmMin'
,
lowerAlarmLimit
:
'alarmMinMin'
,
alarmInterval
:
'alarmInterval'
,
rangeMin
:
'min'
},
field
:
[
'topicModelNo'
,
'topicName'
,
'name'
,
'alias'
,
'description'
,
'type'
,
'isAlarm'
],
field
:
[
'topicModelNo'
,
'topicName'
,
'name'
,
'alias'
,
'description'
,
'type'
,
'is
Tag'
,
'is
Alarm'
],
canFloat2
:
[
'alarmUp'
,
'upperAlarmLimit'
,
'rangeMax'
,
'alarmDown'
,
'lowerAlarmLimit'
,
'rangeMin'
],
num
:
[
'alarmInterval'
],
eng
:
[
'name'
,
'alias'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment