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
43728b04
Commit
43728b04
authored
Jan 04, 2024
by
mzx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报告模板管理文件上传地址修改
parent
0313e3eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
15 deletions
+24
-15
index.vue
src/views/setting/template/index.vue
+11
-2
index.vue
src/views/setting/useCaseLibrary/index.vue
+13
-13
No files found.
src/views/setting/template/index.vue
View file @
43728b04
...
...
@@ -72,12 +72,13 @@
<el-form-item
label=
""
prop=
"conclusion"
>
<el-upload
class=
"upload-demo"
action=
"http
s://jsonplaceholder.typicode.com/posts
/"
action=
"http
://49.232.167.247:22032/common/uploadMinio
/"
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:before-remove=
"beforeRemove"
multiple
:limit=
"1"
:on-success=
"handleSuccess"
:on-exceed=
"handleExceed"
:file-list=
"fileList"
>
...
...
@@ -114,7 +115,7 @@ export default {
open
:
false
,
form
:
{},
loading
:
false
,
total
:
0
,
total
:
3
,
queryParams
:
{
page
:
1
,
size
:
10
...
...
@@ -176,6 +177,14 @@ export default {
handlePreview
(
file
)
{
console
.
log
(
file
)
},
handleSuccess
(
res
,
file
)
{
if
(
res
===
200
)
{
this
.
$message
.
success
(
'上传成功'
)
}
else
{
this
.
$message
.
error
(
'error'
)
console
.
log
(
res
,
file
)
}
},
handleExceed
(
files
,
fileList
)
{
this
.
$message
.
warning
(
`当前限制选择 1 个文件,本次选择了
${
files
.
length
}
个文件,共选择了
${
...
...
src/views/setting/useCaseLibrary/index.vue
View file @
43728b04
...
...
@@ -64,17 +64,17 @@
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<
el-col
:span=
"1.5"
>
<el-button
v-hasPermi=
"['setting:useCaseLibrary:add']"
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
>
新增
</el-button
>
<
/el-col
>
<
!--
<el-col
:span=
"1.5"
>
--
>
<!--
<el-button-->
<!-- v-hasPermi="['setting:useCaseLibrary:add']"-->
<!-- type="primary"-->
<!-- plain-->
<!-- icon="el-icon-plus"-->
<!-- size="mini"-->
<!-- @click="handleAdd"-->
<!-- >新增
</el-button-->
<!-- >--
>
<
!--
</el-col>
--
>
<right-toolbar
:show-search
.
sync=
"showSearch"
@
queryTable=
"getList"
...
...
@@ -87,7 +87,7 @@
<span>
{{
scope
.
$index
+
1
}}
</span>
</
template
>
</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=
"tool"
/>
...
...
@@ -219,7 +219,7 @@ export default {
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
total
:
1
,
// 表格数据
postList
:
[
{
...
...
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