Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web
Project
Project
Details
Activity
Releases
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
中汽测评-信息安全测评系统
web
Commits
e0ff653f
Commit
e0ff653f
authored
Dec 22, 2023
by
mzx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用例库管理页面修改
parent
d15d61b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
10 deletions
+36
-10
index.vue
src/views/setting/template/index.vue
+5
-3
index.vue
src/views/setting/useCaseLibrary/index.vue
+31
-7
No files found.
src/views/setting/template/index.vue
View file @
e0ff653f
...
@@ -38,16 +38,18 @@
...
@@ -38,16 +38,18 @@
<el-button
<el-button
v-hasPermi=
"['setting:template:update']"
v-hasPermi=
"['setting:template:update']"
size=
"mini"
size=
"mini"
type=
"
text
"
type=
"
primary
"
icon=
"el-icon-edit"
icon=
"el-icon-edit"
plain
@
click=
"handleUpdate(scope.row)"
@
click=
"handleUpdate(scope.row)"
>
>
编辑
</el-button
修改
</el-button
>
>
<el-button
<el-button
v-hasPermi=
"['setting:template:update']"
v-hasPermi=
"['setting:template:update']"
size=
"mini"
size=
"mini"
type=
"text"
type=
"primary"
plain
icon=
"el-icon-arrow-right"
icon=
"el-icon-arrow-right"
@
click=
"viewTemplate(scope.row)"
@
click=
"viewTemplate(scope.row)"
>
>
...
...
src/views/setting/useCaseLibrary/index.vue
View file @
e0ff653f
...
@@ -87,7 +87,8 @@
...
@@ -87,7 +87,8 @@
<span>
{{
scope
.
$index
+
1
}}
</span>
<span>
{{
scope
.
$index
+
1
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"用例编号"
align=
"center"
prop=
"code"
/>
<el-table-column
label=
"检验场景"
align=
"center"
prop=
"code"
/>
<!-- <el-table-column label="用例编号" align="center" prop="code" />-->
<el-table-column
label=
"测试类型"
align=
"center"
prop=
"type"
/>
<el-table-column
label=
"测试类型"
align=
"center"
prop=
"type"
/>
<el-table-column
label=
"工具"
align=
"center"
prop=
"tool"
/>
<el-table-column
label=
"工具"
align=
"center"
prop=
"tool"
/>
<el-table-column
label=
"对应输入"
align=
"center"
prop=
"corresponding"
/>
<el-table-column
label=
"对应输入"
align=
"center"
prop=
"corresponding"
/>
...
@@ -107,18 +108,18 @@
...
@@ -107,18 +108,18 @@
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
v-hasPermi=
"['system:post:edit']"
size=
"mini"
size=
"mini"
type=
"
text
"
type=
"
primary
"
icon=
"el-icon-edit"
icon=
"el-icon-edit"
plain
@
click=
"handleUpdate(scope.row)"
@
click=
"handleUpdate(scope.row)"
>
修改
</el-button
>
修改
</el-button
>
>
<el-button
<el-button
v-hasPermi=
"['system:post:remove']"
size=
"mini"
size=
"mini"
type=
"
text
"
type=
"
danger
"
icon=
"el-icon-delete"
icon=
"el-icon-delete"
plain
@
click=
"handleDelete(scope.row)"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button
>
删除
</el-button
>
>
...
@@ -147,7 +148,7 @@
...
@@ -147,7 +148,7 @@
clearable
clearable
class=
"select-width"
class=
"select-width"
>
>
<el-option
:value=
"1"
>
type
</el-option>
<el-option
value=
"1"
label=
"type"
>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"工具"
prop=
"tool"
>
<el-form-item
label=
"工具"
prop=
"tool"
>
...
@@ -173,6 +174,29 @@
...
@@ -173,6 +174,29 @@
:rows=
"4"
:rows=
"4"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"风险等级"
prop=
"level"
>
<el-select
v-model=
"form.level"
placeholder=
"请选择风险等级"
clearable
class=
"select-width"
>
<el-option
value=
"1"
label=
"无风险"
></el-option>
<el-option
value=
"2"
label=
"低风险"
></el-option>
<el-option
value=
"3"
label=
"中风险"
></el-option>
<el-option
value=
"4"
label=
"高风险"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"漏洞危害"
prop=
"hazards"
>
<el-input
v-model=
"form.hazards"
type=
"textarea"
placeholder=
"请输入漏洞危害"
maxlength=
"100"
show-word-limit
:rows=
"4"
/>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
...
@@ -197,7 +221,7 @@ export default {
...
@@ -197,7 +221,7 @@ export default {
// 表格数据
// 表格数据
postList
:
[
postList
:
[
{
{
code
:
'
101
'
,
code
:
'
TBOX-蜂窝以太网接口
'
,
type
:
'系统服务漏扫'
,
type
:
'系统服务漏扫'
,
tool
:
'CMW500+白卡、Nessus'
,
tool
:
'CMW500+白卡、Nessus'
,
corresponding
:
corresponding
:
...
...
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