Skip to content

Commit 453dec1

Browse files
author
奇淼(piexlmax
authored
Merge pull request #133 from HXSecurity/issue4+
Feature:HXSecurity/DongTai#348
2 parents 936266a + 689e750 commit 453dec1

File tree

6 files changed

+127
-33
lines changed

6 files changed

+127
-33
lines changed

src/views/setting/AgentManage.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
<el-table
5757
:data="tableData"
5858
class="agentManageTable"
59+
border
5960
header-align="center"
6061
@selection-change="handleSelectionChange"
6162
>
@@ -785,4 +786,12 @@ export default class AgentManage extends VueBase {
785786
padding-right: 60px;
786787
}
787788
}
789+
790+
.agentManageTable {
791+
&.el-table {
792+
/deep/th {
793+
background: #f6f8fa;
794+
}
795+
}
796+
}
788797
</style>

src/views/setting/LogManage.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</el-button>
1818
</div>
1919
</div>
20-
<el-table class="logListTable" :data="tableData">
20+
<el-table class="logListTable" :data="tableData" border>
2121
<el-table-column width="40px">
2222
<template slot-scope="{ row }">
2323
<div @click.prevent="selectIdChange(row.log_id)">
@@ -285,4 +285,12 @@ main {
285285
border: 1px solid #4a72ae;
286286
color: #4a72ae;
287287
}
288+
289+
.logListTable {
290+
&.el-table {
291+
/deep/th {
292+
background: #f6f8fa;
293+
}
294+
}
295+
}
288296
</style>

src/views/setting/StrategyManage.vue

Lines changed: 46 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
</el-button>
2222
</div>
2323
</div>
24-
<el-table :data="tableData" class="strategyManageTable">
24+
<el-table :data="tableData" class="strategyManageTable" border>
2525
<el-table-column
2626
:label="$t('views.strategyManage.name')"
2727
prop="vul_name"
28-
width="160px"
28+
min-width="260px"
2929
>
3030
<template slot-scope="{ row }">
3131
<div class="two-line vul_name" @click="toPath(1, row.id)">
@@ -37,7 +37,7 @@
3737
<el-table-column
3838
:label="$t('views.strategyManage.level')"
3939
prop="level_id"
40-
min-width="200px"
40+
width="200px"
4141
align="center"
4242
>
4343
<template slot-scope="{ row }">
@@ -51,7 +51,8 @@
5151
v-if="userInfo.role === 1 || userInfo.role === 2"
5252
:label="$t('views.strategyManage.status')"
5353
prop="state"
54-
width="100px"
54+
width="140px"
55+
align="center"
5556
>
5657
<template slot-scope="{ row }">
5758
<div @click="stateChange(row.id, row.state)">
@@ -68,18 +69,27 @@
6869
v-if="userInfo.role === 1 || userInfo.role === 2"
6970
:label="$t('views.strategyManage.settings')"
7071
width="160px"
72+
align="center"
7173
>
7274
<template slot-scope="{ row }">
73-
<el-button
74-
v-if="!row.isEdit"
75-
size="small"
76-
class="btn"
77-
@click="toPath(undefined, row.id)"
78-
>{{ $t('views.strategyManage.edit') }}</el-button
79-
>
80-
<el-button size="small" class="btn" @click="deleteManage(row)">{{
81-
$t('views.strategyManage.del')
82-
}}</el-button>
75+
<div class="table-btn-box">
76+
<el-button
77+
v-if="!row.isEdit"
78+
type="text"
79+
size="small"
80+
style="color: #4a72ae"
81+
@click="toPath(undefined, row.id)"
82+
>{{ $t('views.strategyManage.edit') }}</el-button
83+
>
84+
<span class="l"> | </span>
85+
<el-button
86+
style="color: #f56262"
87+
size="small"
88+
type="text"
89+
@click="deleteManage(row)"
90+
>{{ $t('views.strategyManage.del') }}</el-button
91+
>
92+
</div>
8393
</template>
8494
</el-table-column>
8595
</el-table>
@@ -409,4 +419,26 @@ export default class StrategyManage extends VueBase {
409419
color: #4a72ae;
410420
border-color: #4a72ae;
411421
}
422+
.strategyManageTable {
423+
margin-top: 16px;
424+
&.el-table {
425+
/deep/th {
426+
background: #f6f8fa;
427+
}
428+
}
429+
}
430+
.table-btn-box {
431+
display: flex;
432+
justify-content: center;
433+
align-items: center;
434+
.l {
435+
color: #38435a;
436+
line-height: 13px;
437+
padding: 10px 4px;
438+
display: inline-block;
439+
}
440+
.el-button + .el-button {
441+
margin-left: 0;
442+
}
443+
}
412444
</style>

src/views/setting/components/dangerTable.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@
7676
</div>
7777
</div>
7878
<el-table
79+
class="hookTable"
7980
:data="tableData"
8081
style="width: 100%"
82+
border
8183
:header-row-style="{
8284
color: '#000',
8385
fontWeight: 600,
@@ -858,4 +860,12 @@ export default class HookTable extends VueBase {
858860
/deep/.el-table th {
859861
background: #f8f9fb;
860862
}
863+
864+
.hookTable {
865+
&.el-table {
866+
/deep/th {
867+
background: #f6f8fa;
868+
}
869+
}
870+
}
861871
</style>

src/views/setting/components/hookTable.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@
7777
</div>
7878
<el-table
7979
:data="tableData"
80+
class="hookTable"
81+
border
8082
:header-row-style="{
8183
color: '#000',
8284
fontWeight: 600,
@@ -909,4 +911,11 @@ export default class HookTable extends VueBase {
909911
/deep/.el-table th {
910912
background: #f8f9fb;
911913
}
914+
.hookTable {
915+
&.el-table {
916+
/deep/th {
917+
background: #f6f8fa;
918+
}
919+
}
920+
}
912921
</style>

src/views/setting/sensitiveManage.vue

Lines changed: 44 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</el-button>
4646
</div>
4747
</div>
48-
<el-table :data="tableData" class="sensitiveManageTable">
48+
<el-table :data="tableData" class="sensitiveManageTable" border>
4949
<el-table-column
5050
:label="$t('views.sensitiveManage.name')"
5151
prop="vul_name"
@@ -60,7 +60,7 @@
6060
<el-table-column
6161
:label="$t('views.sensitiveManage.detail')"
6262
prop="vul_desc"
63-
min-width="300px"
63+
min-width="140px"
6464
>
6565
<template slot-scope="{ row }">
6666
<div>
@@ -75,8 +75,7 @@
7575
<el-table-column
7676
:label="$t('views.sensitiveManage.fix')"
7777
prop="vul_fix"
78-
min-width="200px"
79-
align="center"
78+
min-width="140px"
8079
>
8180
<template slot-scope="{ row }">
8281
<div>
@@ -88,7 +87,8 @@
8887
<el-table-column
8988
:label="$t('views.sensitiveManage.status')"
9089
prop="state"
91-
width="100px"
90+
width="140px"
91+
align="center"
9292
>
9393
<template slot-scope="{ row }">
9494
<div style="cursor: pointer" @click="stateChange(row)">
@@ -106,21 +106,26 @@
106106
v-if="userInfo.role === 1 || userInfo.role === 2"
107107
:label="$t('views.sensitiveManage.settings')"
108108
width="160px"
109+
align="center"
109110
>
110111
<template slot-scope="{ row }">
111-
<el-button
112-
size="small"
113-
class="btn"
114-
@click="sensitiveDialogEdit(row)"
115-
>{{ $t('views.sensitiveManage.edit') }}</el-button
116-
>
117-
118-
<el-button
119-
size="small"
120-
class="btn"
121-
@click="sensitiveDialogDelete(row)"
122-
>{{ $t('views.sensitiveManage.del') }}</el-button
123-
>
112+
<div class="table-btn-box">
113+
<el-button
114+
size="small"
115+
style="color: #4a72ae"
116+
type="text"
117+
@click="sensitiveDialogEdit(row)"
118+
>{{ $t('views.sensitiveManage.edit') }}</el-button
119+
>
120+
<span class="l"> | </span>
121+
<el-button
122+
size="small"
123+
type="text"
124+
style="color: #f56262"
125+
@click="sensitiveDialogDelete(row)"
126+
>{{ $t('views.sensitiveManage.del') }}</el-button
127+
>
128+
</div>
124129
</template>
125130
</el-table-column>
126131
</el-table>
@@ -349,4 +354,25 @@ export default class sensitiveManage extends VueBase {
349354
display: flex;
350355
justify-content: flex-end;
351356
}
357+
.sensitiveManageTable {
358+
margin-top: 16px;
359+
&.el-table {
360+
/deep/th {
361+
background: #f6f8fa;
362+
}
363+
}
364+
}
365+
.table-btn-box {
366+
justify-content: center;
367+
align-items: center;
368+
.l {
369+
color: #38435a;
370+
line-height: 13px;
371+
padding: 10px 4px;
372+
display: inline-block;
373+
}
374+
.el-button + .el-button {
375+
margin-left: 0;
376+
}
377+
}
352378
</style>

0 commit comments

Comments
 (0)