Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zentaoatf
提交
2eb05237
Z
zentaoatf
项目概览
易企天创
/
zentaoatf
9 个月 前同步成功
通知
11
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
3
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zentaoatf
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
3
Issue
3
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
2eb05237
编写于
4月 19, 2022
作者:
aaronchen2k2k
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
i118 issues
上级
39752ee4
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
26 addition
and
14 deletion
+26
-14
internal/server/modules/v1/service/test-script.go
internal/server/modules/v1/service/test-script.go
+1
-1
ui/src/locales/en-US.ts
ui/src/locales/en-US.ts
+6
-2
ui/src/locales/zh-CN.ts
ui/src/locales/zh-CN.ts
+4
-1
ui/src/utils/const.ts
ui/src/utils/const.ts
+3
-3
ui/src/views/result/index.vue
ui/src/views/result/index.vue
+1
-1
ui/src/views/script/component/execLog.vue
ui/src/views/script/component/execLog.vue
+3
-2
ui/src/views/script/component/tree.vue
ui/src/views/script/component/tree.vue
+4
-3
ui/src/views/workspace/index.vue
ui/src/views/workspace/index.vue
+4
-1
未找到文件。
internal/server/modules/v1/service/test-script.go
浏览文件 @
2eb05237
...
...
@@ -29,7 +29,7 @@ func (s *TestScriptService) LoadTestScriptsBySiteProduct(
workspaces
,
_
:=
s
.
WorkspaceRepo
.
ListByProduct
(
siteId
,
productId
)
// load scripts from disk
root
=
serverDomain
.
TestAsset
{
Path
:
""
,
Title
:
"
测试脚本
"
,
Type
:
commConsts
.
Root
,
Slots
:
iris
.
Map
{
"icon"
:
"icon"
}}
root
=
serverDomain
.
TestAsset
{
Path
:
""
,
Title
:
"
all
"
,
Type
:
commConsts
.
Root
,
Slots
:
iris
.
Map
{
"icon"
:
"icon"
}}
for
_
,
workspace
:=
range
workspaces
{
if
filerType
==
string
(
commConsts
.
FilterWorkspace
)
&&
...
...
ui/src/locales/en-US.ts
浏览文件 @
2eb05237
...
...
@@ -56,7 +56,7 @@ export default {
'
script_lang
'
:
'
Script Language
'
,
'
script
'
:
'
Script
'
,
'
test_script
'
:
'
Script
'
,
'
test_script
'
:
'
Test
Script
'
,
'
script.list
'
:
'
Script List
'
,
'
script.view
'
:
'
View Script
'
,
'
script.edit
'
:
'
Edit Script
'
,
...
...
@@ -104,7 +104,10 @@ export default {
'
test_env
'
:
'
Test Environment
'
,
'
test_type
'
:
'
Test Type
'
,
'
exec_type
'
:
'
Execution Type
'
,
'
case_num
'
:
'
Case Number
'
,
'
case_num
'
:
'
Case Number
'
,
'
enable
'
:
'
Enable
'
,
'
disable
'
:
'
Disable
'
,
'
submit
'
:
'
Submit
'
,
'
cancel
'
:
'
Cancel
'
,
...
...
@@ -116,6 +119,7 @@ export default {
'
view
'
:
'
View
'
,
'
edit
'
:
'
Edit
'
,
'
delete
'
:
'
Delete
'
,
'
remove
'
:
'
Remove
'
,
'
select
'
:
'
Select
'
,
'
pass
'
:
'
Pass
'
,
'
fail
'
:
'
Fail
'
,
...
...
ui/src/locales/zh-CN.ts
浏览文件 @
2eb05237
...
...
@@ -103,7 +103,10 @@ export default {
'
test_env
'
:
'
测试环境
'
,
'
test_type
'
:
'
测试类型
'
,
'
exec_type
'
:
'
执行类型
'
,
'
case_num
'
:
'
用例数
'
,
'
case_num
'
:
'
用例数
'
,
'
enable
'
:
'
启用
'
,
'
disable
'
:
'
禁用
'
,
'
submit
'
:
'
提交
'
,
'
cancel
'
:
'
取消
'
,
...
...
ui/src/utils/const.ts
浏览文件 @
2eb05237
...
...
@@ -51,15 +51,15 @@ export const MonacoOptions = {
export
const
disableStatusMap
=
[
{
label
:
'
所有状态
'
,
label
:
'
all
'
,
value
:
''
,
},
{
label
:
'
启用
'
,
label
:
'
enable
'
,
value
:
'
1
'
,
},
{
label
:
'
禁用
'
,
label
:
'
disable
'
,
value
:
'
0
'
,
},
]
...
...
ui/src/views/result/index.vue
浏览文件 @
2eb05237
...
...
@@ -56,7 +56,7 @@
<
template
#action=
"{ record }"
>
<a-button
@
click=
"() => view(record)"
type=
"link"
size=
"small"
>
{{
t
(
'
view
'
)
}}
</a-button>
<a-button
@
click=
"() => remove(record)"
type=
"link"
size=
"small"
:loading=
"removeLoading.includes(record.seq)"
>
{{
t
(
'
remov
e
'
)
}}
:loading=
"removeLoading.includes(record.seq)"
>
{{
t
(
'
delet
e
'
)
}}
</a-button>
</
template
>
...
...
ui/src/views/script/component/execLog.vue
浏览文件 @
2eb05237
...
...
@@ -301,7 +301,7 @@ export default defineComponent({
#logs {
margin: 0;
padding: 10px;
padding:
0 10px 10px
10px;
position: relative;
width: 100%;
overflow-y: auto;
...
...
@@ -318,7 +318,8 @@ export default defineComponent({
position: absolute;
top: 5px;
right: 5px;
width: 230px;
width: 260px;
text-align: right;
.ant-select {
margin: 0 3px;
}
...
...
ui/src/views/script/component/tree.vue
浏览文件 @
2eb05237
...
...
@@ -21,7 +21,7 @@
<a-select
v-model:value=
"filerValue"
@
change=
"selectFilerValue"
style=
"width:
20
0px"
style=
"width:
18
0px"
:dropdownMatchSelectWidth=
"false"
>
<a-select-option
value=
""
></a-select-option>
...
...
@@ -199,6 +199,7 @@ export default defineComponent({
watch
(
treeData
,
(
currConfig
)
=>
{
console
.
log
(
'
watch treeData
'
,
treeData
.
value
)
treeData
.
value
[
0
].
title
=
t
(
'
test_script
'
)
getNodeMap
(
treeData
.
value
[
0
])
getExpandedKeys
(
currSite
.
value
.
id
,
currProduct
.
value
.
id
).
then
(
async
keys
=>
{
...
...
@@ -489,8 +490,8 @@ export default defineComponent({
}
.right {
width:
4
0px;
text-align:
right
;
width:
6
0px;
text-align:
center
;
}
.ant-btn-link {
...
...
ui/src/views/workspace/index.vue
浏览文件 @
2eb05237
...
...
@@ -7,7 +7,10 @@
{{
t
(
'
workspace
'
)
}}
</div>
<div
class=
"right"
>
<a-select
@
change=
"onSearch"
v-model:value=
"queryParams.enabled"
:options=
"statusArr"
class=
"status-select"
>
<a-select
@
change=
"onSearch"
v-model:value=
"queryParams.enabled"
class=
"status-select"
>
<a-select-option
v-for=
"item in statusArr"
:key=
"item.value"
:value=
"item.value"
>
{{
t
(
item
.
label
)
}}
</a-select-option>
</a-select>
<a-input-search
@
change=
"onSearch"
@
search=
"onSearch"
v-model:value=
"queryParams.keywords"
:placeholder=
"t('input_keyword_to_search')"
style=
"width:270px;margin-left: 16px;"
/>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录