Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tacc-frontend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wen Wei Li
tacc-frontend
Commits
8ff47778
Commit
8ff47778
authored
May 08, 2024
by
Wen Wei Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add table column and row in agentDetail view and debuging for form input
parent
be080e89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
8 deletions
+22
-8
src/components/AgentDetail.vue
src/components/AgentDetail.vue
+7
-5
src/components/Form.vue
src/components/Form.vue
+15
-3
No files found.
src/components/AgentDetail.vue
View file @
8ff47778
...
...
@@ -10,7 +10,9 @@
<CTableHeaderCell
scope=
"col"
>
Name
</CTableHeaderCell>
<CTableHeaderCell
scope=
"col"
>
OS
</CTableHeaderCell>
<CTableHeaderCell
scope=
"col"
>
Status
</CTableHeaderCell>
<CTableHeaderCell
scope=
"col"
>
IP
</CTableHeaderCell>
<CTableHeaderCell
scope=
"col"
>
SCA Score
</CTableHeaderCell>
<CTableHeaderCell
scope=
"col"
>
Vulnerability
</CTableHeaderCell>
<CTableHeaderCell
scope=
"col"
>
Healthy Check
</CTableHeaderCell>
</CTableRow>
</CTableHead>
...
...
@@ -20,11 +22,13 @@
<CTableDataCell>
{{
data
.
node_name
}}
</CTableDataCell>
<CTableDataCell>
{{
data
.
OS
}}
</CTableDataCell>
<CTableDataCell>
{{
data
.
status
}}
</CTableDataCell>
<CTableDataCell>
{{
data
.
sca_score
}}
</CTableDataCell>
<CTableDataCell>
{{
data
.
ip
}}
</CTableDataCell>
<CTableDataCell>
{{
data
.
sca_score
}}
</CTableDataCell>
<CTableDataCell>
{{
data
.
cvss3_score
}}
</CTableDataCell>
<CTableDataCell
v-if=
"healthy === 'true'"
>
<CIcon
icon=
"cilCheckAlt"
/></CTableDataCell>
<CIcon
icon=
"cilCheckAlt"
style=
"color: #94D82D;"
/></CTableDataCell>
<CTableDataCell
v-else
>
<CIcon
icon=
"cilX"
/></CTableDataCell>
<CIcon
icon=
"cilX"
style=
"color: #F44336;"
/></CTableDataCell>
</CTableRow>
</CTableBody>
...
...
@@ -36,8 +40,6 @@
</
template
>
<
script
>
import
{
onMounted
}
from
'
vue
'
;
import
{
useRoute
}
from
'
vue-router
'
export
default
{
name
:
"
AgentDetail
"
,
data
()
{
...
...
src/components/Form.vue
View file @
8ff47778
...
...
@@ -10,19 +10,22 @@
{ label: 'SCA Benchmark', value: 'sca' },
{ label: 'Nework Interface', value: 'netiface' },
{ label: 'Hotfix', value: 'hotfix' },
{ label: 'Vulnerability', value: 'vulnerability' },
{ label: 'Rule Level', value: 'rule_level'}
]">
</CFormSelect>
<CCol
xs
>
<CFormInput
type=
"text"
placeholder=
"Threshold"
aria-label=
"Threshold"
v-model=
"threshold"
@
input=
"updateParent"
@
input=
"handleThresholdInput"
@
change=
"updateParent"
/>
</CCol>
</CRow>
</CContainer>
</
template
>
<
script
>
import
{
nextTick
}
from
'
vue
'
;
export
default
{
name
:
'
Form
'
,
props
:
{
...
...
@@ -35,9 +38,18 @@ export default {
};
},
methods
:{
handleThresholdInput
(
event
)
{
this
.
threshold
=
event
.
target
.
value
;
this
.
updateParent
();
},
updateParent
()
{
this
.
$emit
(
'
update-data
'
,
{
attribute
:
this
.
attribute
,
threshold
:
this
.
threshold
});
console
.
log
(
this
.
threshold
)
nextTick
(()
=>
{
this
.
$emit
(
'
update-data
'
,
{
attribute
:
this
.
attribute
,
threshold
:
this
.
threshold
});
});
}
}
...
...
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