Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
5297c0ab
M
metersphere
项目概览
MeterSphere
/
metersphere
上一次同步 大约 3 年
通知
25
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
metersphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5297c0ab
编写于
4月 29, 2021
作者:
F
fit2-zhao
提交者:
fit2-zhao
4月 29, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
style(接口自动化): 接口导入界面显示问题修复
上级
d203b6cb
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
266 addition
and
327 deletion
+266
-327
frontend/src/business/components/api/automation/scenario/api/RelevanceApiList.vue
...mponents/api/automation/scenario/api/RelevanceApiList.vue
+266
-327
未找到文件。
frontend/src/business/components/api/automation/scenario/api/RelevanceApiList.vue
浏览文件 @
5297c0ab
...
...
@@ -67,7 +67,7 @@
show-overflow-tooltip
width=
"120px"
:key=
"index"
>
<
template
v-slot:default=
"scope"
class=
"request-method"
>
<
template
v-slot:default=
"scope"
>
<el-tag
size=
"mini"
:style=
"
{'background-color': getColor(true, scope.row.method), border: getColor(true, scope.row.method)}"
class="api-el-tag">
...
...
@@ -144,68 +144,7 @@
show-overflow-tooltip
:key=
"index"
/>
</template>
</ms-table>
<!-- <el-table v-loading="result.loading"-->
<!-- border-->
<!-- :data="tableData" row-key="id" class="test-content adjust-table"-->
<!-- @select-all="handleSelectAll"-->
<!-- @select="handleSelect" ref="table">-->
<!-- <el-table-column reserve-selection type="selection"/>-->
<!-- <el-table-column prop="name" :label="$t('api_test.definition.api_name')" show-overflow-tooltip/>-->
<!-- <el-table-column-->
<!-- prop="status"-->
<!-- column-key="api_status"-->
<!-- :label="$t('api_test.definition.api_status')"-->
<!-- show-overflow-tooltip>-->
<!-- <template v-slot:default="scope">-->
<!-- <ms-tag v-if="scope.row.status == 'Prepare'" type="info" effect="plain" :content="$t('test_track.plan.plan_status_prepare')"/>-->
<!-- <ms-tag v-if="scope.row.status == 'Underway'" type="warning" effect="plain" :content="$t('test_track.plan.plan_status_running')"/>-->
<!-- <ms-tag v-if="scope.row.status == 'Completed'" type="success" effect="plain" :content="$t('test_track.plan.plan_status_completed')"/>-->
<!-- <ms-tag v-if="scope.row.status == 'Trash'" type="danger" effect="plain" :content="$t('test_track.plan.plan_status_trash')"/>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="method"-->
<!-- :label="$t('api_test.definition.api_type')"-->
<!-- show-overflow-tooltip>-->
<!-- <template v-slot:default="scope" class="request-method">-->
<!-- <el-tag size="mini" :style="{'background-color': getColor(scope.row.method), border: getColor(true, scope.row.method)}" class="api-el-tag">-->
<!-- {{ scope.row.method }}-->
<!-- </el-tag>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="path"-->
<!-- :label="$t('api_test.definition.api_path')"-->
<!-- show-overflow-tooltip/>-->
<!-- <el-table-column width="160" :label="$t('api_test.definition.api_last_time')" prop="updateTime">-->
<!-- <template v-slot:default="scope">-->
<!-- <span>{{ scope.row.updateTime | timestampFormatDate }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="caseTotal"-->
<!-- :label="$t('api_test.definition.api_case_number')"-->
<!-- show-overflow-tooltip/>-->
<!-- <el-table-column-->
<!-- prop="caseStatus"-->
<!-- :label="$t('api_test.definition.api_case_status')"-->
<!-- show-overflow-tooltip/>-->
<!-- <el-table-column-->
<!-- prop="casePassingRate"-->
<!-- :label="$t('api_test.definition.api_case_passing_rate')"-->
<!-- show-overflow-tooltip/>-->
<!-- </el-table>-->
<ms-table-pagination
:change=
"initTable"
:current-page.sync=
"currentPage"
:page-size.sync=
"pageSize"
:total=
"total"
/>
</api-list-container>
...
...
@@ -216,236 +155,69 @@
<
script
>
import
MsTable
from
"
@/business/components/common/components/table/MsTable
"
;
import
MsTableColumn
from
"
@/business/components/common/components/table/Ms-table-column
"
;
import
MsTableOperator
from
"
../../../../common/components/MsTableOperator
"
;
import
MsTableOperatorButton
from
"
../../../../common/components/MsTableOperatorButton
"
;
import
MsTablePagination
from
"
../../../../common/pagination/TablePagination
"
;
import
MsTag
from
"
../../../../common/components/MsTag
"
;
import
MsBottomContainer
from
"
../../../definition/components/BottomContainer
"
;
import
ShowMoreBtn
from
"
../../../../track/case/components/ShowMoreBtn
"
;
import
MsBatchEdit
from
"
../../../definition/components/basis/BatchEdit
"
;
import
{
API_METHOD_COLOUR
,
CASE_PRIORITY
}
from
"
../../../definition/model/JsonData
"
;
import
{
getCurrentProjectID
}
from
"
@/common/js/utils
"
;
import
ApiListContainer
from
"
../../../definition/components/list/ApiListContainer
"
;
import
PriorityTableItem
from
"
../../../../track/common/tableItems/planview/PriorityTableItem
"
;
import
MsEnvironmentSelect
from
"
../../../definition/components/case/MsEnvironmentSelect
"
;
import
TableSelectCountBar
from
"
./TableSelectCountBar
"
;
import
{
_filter
,
_handleSelect
,
_handleSelectAll
,
_sort
,
buildBatchParam
,
getLabel
,}
from
"
@/common/js/tableUtils
"
;
import
{
API_LIST
,
WORKSPACE_ID
}
from
"
@/common/js/constants
"
;
export
default
{
name
:
"
RelevanceApiList
"
,
components
:
{
TableSelectCountBar
,
MsEnvironmentSelect
,
PriorityTableItem
,
ApiListContainer
,
MsTableOperatorButton
,
MsTableOperator
,
MsTablePagination
,
MsTag
,
MsBottomContainer
,
ShowMoreBtn
,
MsBatchEdit
,
MsTable
,
MsTableColumn
},
data
()
{
return
{
condition
:
{},
selectCase
:
{},
tableLabel
:
[],
result
:
{},
moduleId
:
""
,
deletePath
:
"
/test/case/delete
"
,
screenHeight
:
document
.
documentElement
.
clientHeight
-
500
,
//屏幕高度,
typeArr
:
[
{
id
:
'
priority
'
,
name
:
this
.
$t
(
'
test_track.case.priority
'
)},
],
priorityFilters
:
[
{
text
:
'
P0
'
,
value
:
'
P0
'
},
{
text
:
'
P1
'
,
value
:
'
P1
'
},
{
text
:
'
P2
'
,
value
:
'
P2
'
},
{
text
:
'
P3
'
,
value
:
'
P3
'
}
],
valueArr
:
{
priority
:
CASE_PRIORITY
,
},
methodColorMap
:
new
Map
(
API_METHOD_COLOUR
),
tableData
:
[],
currentPage
:
1
,
pageSize
:
10
,
total
:
0
,
environmentId
:
""
,
methodFilters
:
[
{
text
:
'
GET
'
,
value
:
'
GET
'
},
{
text
:
'
POST
'
,
value
:
'
POST
'
},
{
text
:
'
PUT
'
,
value
:
'
PUT
'
},
{
text
:
'
PATCH
'
,
value
:
'
PATCH
'
},
{
text
:
'
DELETE
'
,
value
:
'
DELETE
'
},
{
text
:
'
OPTIONS
'
,
value
:
'
OPTIONS
'
},
{
text
:
'
HEAD
'
,
value
:
'
HEAD
'
},
{
text
:
'
CONNECT
'
,
value
:
'
CONNECT
'
},
{
text
:
'
DUBBO
'
,
value
:
'
DUBBO
'
},
{
text
:
'
dubbo://
'
,
value
:
'
dubbo://
'
},
{
text
:
'
SQL
'
,
value
:
'
SQL
'
},
{
text
:
'
TCP
'
,
value
:
'
TCP
'
},
],
userFilters
:
[],
}
},
props
:
{
currentProtocol
:
String
,
selectNodeIds
:
Array
,
visible
:
{
type
:
Boolean
,
default
:
false
,
},
isApiListEnable
:
{
type
:
Boolean
,
default
:
false
,
},
isReadOnly
:
{
type
:
Boolean
,
default
:
false
},
isCaseRelevance
:
{
type
:
Boolean
,
default
:
false
,
},
projectId
:
String
,
planId
:
String
,
isTestPlan
:
Boolean
},
created
:
function
()
{
if
(
this
.
$refs
.
apitable
)
{
this
.
$refs
.
apitable
.
clearSelectRows
();
}
this
.
initTable
();
this
.
getMaintainerOptions
();
},
watch
:
{
selectNodeIds
()
{
this
.
initTable
();
},
currentProtocol
()
{
this
.
initTable
();
},
projectId
()
{
this
.
initTable
();
}
},
computed
:
{
selectRows
()
{
if
(
this
.
$refs
.
apitable
)
{
return
this
.
$refs
.
apitable
.
getSelectRows
();
}
else
{
return
new
Set
();
}
}
},
methods
:
{
isApiListEnableChange
(
data
)
{
this
.
$emit
(
'
isApiListEnableChange
'
,
data
);
},
initTable
(
projectId
)
{
this
.
condition
.
filters
=
{
status
:
[
"
Prepare
"
,
"
Underway
"
,
"
Completed
"
]};
this
.
condition
.
moduleIds
=
this
.
selectNodeIds
;
if
(
this
.
trashEnable
)
{
this
.
condition
.
filters
=
{
status
:
[
"
Trash
"
]};
this
.
condition
.
moduleIds
=
[];
}
if
(
projectId
!=
null
&&
typeof
projectId
===
'
string
'
)
{
this
.
condition
.
projectId
=
projectId
;
}
else
if
(
this
.
projectId
!=
null
)
{
this
.
condition
.
projectId
=
this
.
projectId
;
}
if
(
this
.
currentProtocol
!=
null
)
{
this
.
condition
.
protocol
=
this
.
currentProtocol
;
}
else
{
this
.
condition
.
protocol
=
"
HTTP
"
;
}
let
url
=
'
/api/definition/list/
'
;
if
(
this
.
isTestPlan
)
{
url
=
'
/api/definition/list/relevance/
'
;
this
.
condition
.
planId
=
this
.
planId
;
}
this
.
result
=
this
.
$post
(
url
+
this
.
currentPage
+
"
/
"
+
this
.
pageSize
,
this
.
condition
,
response
=>
{
this
.
total
=
response
.
data
.
itemCount
;
this
.
tableData
=
response
.
data
.
listObject
;
this
.
genProtocalFilter
(
this
.
condition
.
protocol
);
this
.
$nextTick
(
function
()
{
if
(
this
.
$refs
.
apitable
)
{
this
.
$refs
.
apitable
.
doLayout
();
this
.
$refs
.
apitable
.
checkTableRowIsSelect
();
}
});
});
//添加自定义列的查询
getLabel
(
this
,
API_LIST
);
},
showExecResult
(
row
)
{
this
.
visible
=
false
;
this
.
$emit
(
'
showExecResult
'
,
row
);
},
filter
(
filters
)
{
_filter
(
filters
,
this
.
condition
);
this
.
initTable
();
},
sort
(
column
)
{
// 每次只对一个字段排序
if
(
this
.
condition
.
orders
)
{
this
.
condition
.
orders
=
[];
}
_sort
(
column
,
this
.
condition
);
this
.
initTable
();
},
buildPagePath
(
path
)
{
return
path
+
"
/
"
+
this
.
currentPage
+
"
/
"
+
this
.
pageSize
;
},
getColor
(
method
)
{
return
this
.
methodColorMap
.
get
(
method
);
},
setEnvironment
(
data
)
{
this
.
environmentId
=
data
.
id
;
},
clearSelection
()
{
if
(
this
.
$refs
.
apitable
)
{
this
.
$refs
.
apitable
.
clearSelectRows
();
this
.
$refs
.
apitable
.
clearSelection
();
}
import
MsTable
from
"
@/business/components/common/components/table/MsTable
"
;
import
MsTableColumn
from
"
@/business/components/common/components/table/Ms-table-column
"
;
import
MsTableOperator
from
"
../../../../common/components/MsTableOperator
"
;
import
MsTableOperatorButton
from
"
../../../../common/components/MsTableOperatorButton
"
;
import
MsTablePagination
from
"
../../../../common/pagination/TablePagination
"
;
import
MsTag
from
"
../../../../common/components/MsTag
"
;
import
MsBottomContainer
from
"
../../../definition/components/BottomContainer
"
;
import
ShowMoreBtn
from
"
../../../../track/case/components/ShowMoreBtn
"
;
import
MsBatchEdit
from
"
../../../definition/components/basis/BatchEdit
"
;
import
{
API_METHOD_COLOUR
,
CASE_PRIORITY
}
from
"
../../../definition/model/JsonData
"
;
import
{
getCurrentProjectID
}
from
"
@/common/js/utils
"
;
import
ApiListContainer
from
"
../../../definition/components/list/ApiListContainer
"
;
import
PriorityTableItem
from
"
../../../../track/common/tableItems/planview/PriorityTableItem
"
;
import
MsEnvironmentSelect
from
"
../../../definition/components/case/MsEnvironmentSelect
"
;
import
TableSelectCountBar
from
"
./TableSelectCountBar
"
;
import
{
_filter
,
_handleSelect
,
_handleSelectAll
,
_sort
,
buildBatchParam
,
getLabel
,}
from
"
@/common/js/tableUtils
"
;
import
{
API_LIST
,
WORKSPACE_ID
}
from
"
@/common/js/constants
"
;
export
default
{
name
:
"
RelevanceApiList
"
,
components
:
{
TableSelectCountBar
,
MsEnvironmentSelect
,
PriorityTableItem
,
ApiListContainer
,
MsTableOperatorButton
,
MsTableOperator
,
MsTablePagination
,
MsTag
,
MsBottomContainer
,
ShowMoreBtn
,
MsBatchEdit
,
MsTable
,
MsTableColumn
},
genProtocalFilter
(
protocalType
)
{
if
(
protocalType
===
"
HTTP
"
)
{
this
.
methodFilters
=
[
{
text
:
'
GET
'
,
value
:
'
GET
'
},
{
text
:
'
POST
'
,
value
:
'
POST
'
},
{
text
:
'
PUT
'
,
value
:
'
PUT
'
},
{
text
:
'
PATCH
'
,
value
:
'
PATCH
'
},
{
text
:
'
DELETE
'
,
value
:
'
DELETE
'
},
{
text
:
'
OPTIONS
'
,
value
:
'
OPTIONS
'
},
{
text
:
'
HEAD
'
,
value
:
'
HEAD
'
},
{
text
:
'
CONNECT
'
,
value
:
'
CONNECT
'
},
];
}
else
if
(
protocalType
===
"
TCP
"
)
{
this
.
methodFilters
=
[
{
text
:
'
TCP
'
,
value
:
'
TCP
'
},
];
}
else
if
(
protocalType
===
"
SQL
"
)
{
this
.
methodFilters
=
[
{
text
:
'
SQL
'
,
value
:
'
SQL
'
},
];
}
else
if
(
protocalType
===
"
DUBBO
"
)
{
this
.
methodFilters
=
[
{
text
:
'
DUBBO
'
,
value
:
'
DUBBO
'
},
{
text
:
'
dubbo://
'
,
value
:
'
dubbo://
'
},
];
}
else
{
this
.
methodFilters
=
[
data
()
{
return
{
condition
:
{},
selectCase
:
{},
tableLabel
:
[],
result
:
{},
moduleId
:
""
,
deletePath
:
"
/test/case/delete
"
,
screenHeight
:
document
.
documentElement
.
clientHeight
-
500
,
//屏幕高度,
typeArr
:
[
{
id
:
'
priority
'
,
name
:
this
.
$t
(
'
test_track.case.priority
'
)},
],
priorityFilters
:
[
{
text
:
'
P0
'
,
value
:
'
P0
'
},
{
text
:
'
P1
'
,
value
:
'
P1
'
},
{
text
:
'
P2
'
,
value
:
'
P2
'
},
{
text
:
'
P3
'
,
value
:
'
P3
'
}
],
valueArr
:
{
priority
:
CASE_PRIORITY
,
},
methodColorMap
:
new
Map
(
API_METHOD_COLOUR
),
tableData
:
[],
currentPage
:
1
,
pageSize
:
10
,
total
:
0
,
environmentId
:
""
,
methodFilters
:
[
{
text
:
'
GET
'
,
value
:
'
GET
'
},
{
text
:
'
POST
'
,
value
:
'
POST
'
},
{
text
:
'
PUT
'
,
value
:
'
PUT
'
},
...
...
@@ -458,48 +230,215 @@ export default {
{
text
:
'
dubbo://
'
,
value
:
'
dubbo://
'
},
{
text
:
'
SQL
'
,
value
:
'
SQL
'
},
{
text
:
'
TCP
'
,
value
:
'
TCP
'
},
];
],
userFilters
:
[],
}
},
getMaintainerOptions
()
{
let
workspaceId
=
localStorage
.
getItem
(
WORKSPACE_ID
);
this
.
$post
(
'
/user/ws/member/tester/list
'
,
{
workspaceId
:
workspaceId
},
response
=>
{
this
.
valueArr
.
userId
=
response
.
data
;
this
.
userFilters
=
response
.
data
.
map
(
u
=>
{
return
{
text
:
u
.
name
,
value
:
u
.
id
};
props
:
{
currentProtocol
:
String
,
selectNodeIds
:
Array
,
visible
:
{
type
:
Boolean
,
default
:
false
,
},
isApiListEnable
:
{
type
:
Boolean
,
default
:
false
,
},
isReadOnly
:
{
type
:
Boolean
,
default
:
false
},
isCaseRelevance
:
{
type
:
Boolean
,
default
:
false
,
},
projectId
:
String
,
planId
:
String
,
isTestPlan
:
Boolean
},
created
:
function
()
{
if
(
this
.
$refs
.
apitable
)
{
this
.
$refs
.
apitable
.
clearSelectRows
();
}
this
.
initTable
();
this
.
getMaintainerOptions
();
},
watch
:
{
selectNodeIds
()
{
this
.
initTable
();
},
currentProtocol
()
{
this
.
initTable
();
},
projectId
()
{
this
.
initTable
();
}
},
computed
:
{
selectRows
()
{
if
(
this
.
$refs
.
apitable
)
{
return
this
.
$refs
.
apitable
.
getSelectRows
();
}
else
{
return
new
Set
();
}
}
},
methods
:
{
isApiListEnableChange
(
data
)
{
this
.
$emit
(
'
isApiListEnableChange
'
,
data
);
},
initTable
(
projectId
)
{
this
.
condition
.
filters
=
{
status
:
[
"
Prepare
"
,
"
Underway
"
,
"
Completed
"
]};
this
.
condition
.
moduleIds
=
this
.
selectNodeIds
;
if
(
this
.
trashEnable
)
{
this
.
condition
.
filters
=
{
status
:
[
"
Trash
"
]};
this
.
condition
.
moduleIds
=
[];
}
if
(
projectId
!=
null
&&
typeof
projectId
===
'
string
'
)
{
this
.
condition
.
projectId
=
projectId
;
}
else
if
(
this
.
projectId
!=
null
)
{
this
.
condition
.
projectId
=
this
.
projectId
;
}
if
(
this
.
currentProtocol
!=
null
)
{
this
.
condition
.
protocol
=
this
.
currentProtocol
;
}
else
{
this
.
condition
.
protocol
=
"
HTTP
"
;
}
let
url
=
'
/api/definition/list/
'
;
if
(
this
.
isTestPlan
)
{
url
=
'
/api/definition/list/relevance/
'
;
this
.
condition
.
planId
=
this
.
planId
;
}
this
.
result
=
this
.
$post
(
url
+
this
.
currentPage
+
"
/
"
+
this
.
pageSize
,
this
.
condition
,
response
=>
{
this
.
total
=
response
.
data
.
itemCount
;
this
.
tableData
=
response
.
data
.
listObject
;
this
.
genProtocalFilter
(
this
.
condition
.
protocol
);
this
.
$nextTick
(
function
()
{
if
(
this
.
$refs
.
apitable
)
{
this
.
$refs
.
apitable
.
doLayout
();
this
.
$refs
.
apitable
.
checkTableRowIsSelect
();
}
});
});
//添加自定义列的查询
getLabel
(
this
,
API_LIST
);
},
showExecResult
(
row
)
{
this
.
visible
=
false
;
this
.
$emit
(
'
showExecResult
'
,
row
);
},
filter
(
filters
)
{
_filter
(
filters
,
this
.
condition
);
this
.
initTable
();
},
sort
(
column
)
{
// 每次只对一个字段排序
if
(
this
.
condition
.
orders
)
{
this
.
condition
.
orders
=
[];
}
_sort
(
column
,
this
.
condition
);
this
.
initTable
();
},
buildPagePath
(
path
)
{
return
path
+
"
/
"
+
this
.
currentPage
+
"
/
"
+
this
.
pageSize
;
},
getColor
(
flag
,
method
)
{
return
this
.
methodColorMap
.
get
(
method
);
},
setEnvironment
(
data
)
{
this
.
environmentId
=
data
.
id
;
},
clearSelection
()
{
if
(
this
.
$refs
.
apitable
)
{
this
.
$refs
.
apitable
.
clearSelectRows
();
this
.
$refs
.
apitable
.
clearSelection
();
}
},
genProtocalFilter
(
protocalType
)
{
if
(
protocalType
===
"
HTTP
"
)
{
this
.
methodFilters
=
[
{
text
:
'
GET
'
,
value
:
'
GET
'
},
{
text
:
'
POST
'
,
value
:
'
POST
'
},
{
text
:
'
PUT
'
,
value
:
'
PUT
'
},
{
text
:
'
PATCH
'
,
value
:
'
PATCH
'
},
{
text
:
'
DELETE
'
,
value
:
'
DELETE
'
},
{
text
:
'
OPTIONS
'
,
value
:
'
OPTIONS
'
},
{
text
:
'
HEAD
'
,
value
:
'
HEAD
'
},
{
text
:
'
CONNECT
'
,
value
:
'
CONNECT
'
},
];
}
else
if
(
protocalType
===
"
TCP
"
)
{
this
.
methodFilters
=
[
{
text
:
'
TCP
'
,
value
:
'
TCP
'
},
];
}
else
if
(
protocalType
===
"
SQL
"
)
{
this
.
methodFilters
=
[
{
text
:
'
SQL
'
,
value
:
'
SQL
'
},
];
}
else
if
(
protocalType
===
"
DUBBO
"
)
{
this
.
methodFilters
=
[
{
text
:
'
DUBBO
'
,
value
:
'
DUBBO
'
},
{
text
:
'
dubbo://
'
,
value
:
'
dubbo://
'
},
];
}
else
{
this
.
methodFilters
=
[
{
text
:
'
GET
'
,
value
:
'
GET
'
},
{
text
:
'
POST
'
,
value
:
'
POST
'
},
{
text
:
'
PUT
'
,
value
:
'
PUT
'
},
{
text
:
'
PATCH
'
,
value
:
'
PATCH
'
},
{
text
:
'
DELETE
'
,
value
:
'
DELETE
'
},
{
text
:
'
OPTIONS
'
,
value
:
'
OPTIONS
'
},
{
text
:
'
HEAD
'
,
value
:
'
HEAD
'
},
{
text
:
'
CONNECT
'
,
value
:
'
CONNECT
'
},
{
text
:
'
DUBBO
'
,
value
:
'
DUBBO
'
},
{
text
:
'
dubbo://
'
,
value
:
'
dubbo://
'
},
{
text
:
'
SQL
'
,
value
:
'
SQL
'
},
{
text
:
'
TCP
'
,
value
:
'
TCP
'
},
];
}
},
getMaintainerOptions
()
{
let
workspaceId
=
localStorage
.
getItem
(
WORKSPACE_ID
);
this
.
$post
(
'
/user/ws/member/tester/list
'
,
{
workspaceId
:
workspaceId
},
response
=>
{
this
.
valueArr
.
userId
=
response
.
data
;
this
.
userFilters
=
response
.
data
.
map
(
u
=>
{
return
{
text
:
u
.
name
,
value
:
u
.
id
};
});
});
});
},
getConditions
()
{
let
sampleSelectRows
=
this
.
$refs
.
apitable
.
getSelectRows
();
let
param
=
buildBatchParam
(
this
);
param
.
ids
=
Array
.
from
(
sampleSelectRows
).
map
(
row
=>
row
.
id
);
return
param
;
}
},
getConditions
()
{
let
sampleSelectRows
=
this
.
$refs
.
apitable
.
getSelectRows
();
let
param
=
buildBatchParam
(
this
);
param
.
ids
=
Array
.
from
(
sampleSelectRows
).
map
(
row
=>
row
.
id
);
return
param
;
}
},
}
}
</
script
>
<
style
scoped
>
.operate-button
>
div
{
display
:
inline-block
;
margin-left
:
10px
;
}
.request-method
{
padding
:
0
5px
;
color
:
#1E90FF
;
}
.api-el-tag
{
color
:
white
;
}
.search-input
{
float
:
right
;
width
:
30%
;
margin-bottom
:
20px
;
margin-right
:
20px
;
}
.operate-button
>
div
{
display
:
inline-block
;
margin-left
:
10px
;
}
.request-method
{
padding
:
0
5px
;
color
:
#1E90FF
;
}
.api-el-tag
{
color
:
white
;
}
.search-input
{
float
:
right
;
width
:
30%
;
margin-bottom
:
20px
;
margin-right
:
20px
;
}
</
style
>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录