Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zentaoatf
提交
b531108b
Z
zentaoatf
项目概览
易企天创
/
zentaoatf
8 个月 前同步成功
通知
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 搜索 >>
提交
b531108b
编写于
7月 21, 2022
作者:
Z
zhaoke
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
* Fix sync from zentao notice error.
上级
6239fc36
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
4 deletion
+12
-4
ui/src/locales/en-US.ts
ui/src/locales/en-US.ts
+1
-0
ui/src/locales/zh-CN.ts
ui/src/locales/zh-CN.ts
+1
-0
ui/src/views/script/WorkDir.vue
ui/src/views/script/WorkDir.vue
+10
-4
未找到文件。
ui/src/locales/en-US.ts
浏览文件 @
b531108b
...
...
@@ -184,6 +184,7 @@ export default {
'
extract_success
'
:
'
Extract comments to test steps and checkpoints successfully.
'
,
'
extract_none
'
:
'
Not found any test steps in script comments.
'
,
'
extract_fail
'
:
'
Extract comments to test steps and checkpoints failed.
'
,
'
sync_from_zentao_success
'
:
'
Success to sync {success} cases from Zentao
'
,
'
sync_success
'
:
'
Success to sync {success} cases to Zentao, ignore {ignore} cases.
'
,
'
sync_fail
'
:
'
Sync failed.
'
,
'
by_workspace
'
:
'
By WorkDir
'
,
...
...
ui/src/locales/zh-CN.ts
浏览文件 @
b531108b
...
...
@@ -191,6 +191,7 @@ export default {
'
extract_success
'
:
'
提取注释为测试步骤和验证点成功。
'
,
'
extract_none
'
:
'
脚本中未发现测试步骤。
'
,
'
extract_fail
'
:
'
提取注释为测试步骤和验证点失败。
'
,
'
sync_from_zentao_success
'
:
'
成功从禅道同步{success}个用例。
'
,
'
sync_success
'
:
'
成功同步{success}个用例到禅道,忽略{ignore}个。
'
,
'
sync_fail
'
:
'
同步失败
'
,
'
by_workspace
'
:
'
按目录
'
,
...
...
ui/src/views/script/WorkDir.vue
浏览文件 @
b531108b
...
...
@@ -561,7 +561,9 @@ const checkoutCases = (workspaceId, node) => {
}
});
notification
.
success
({
message
:
t
(
'
sync_success
'
),
message
:
t
(
'
sync_from_zentao_success
'
,
{
success
:
node
.
children
.
length
,
}),
});
}
const
checkoutFromModule
=
(
workspaceId
,
node
)
=>
{
...
...
@@ -573,7 +575,9 @@ const checkoutFromModule = (workspaceId, node) => {
store
.
dispatch
(
'
Script/syncFromZentao
'
,
data
).
then
((
resp
=>
{
if
(
resp
.
code
===
0
)
{
notification
.
success
({
message
:
t
(
'
sync_success
'
),
message
:
t
(
'
sync_from_zentao_success
'
,
{
success
:
resp
.
data
.
length
,
}),
});
}
else
{
notification
.
error
({
...
...
@@ -588,7 +592,9 @@ const checkout = (workspaceId, caseId, path, successNotice = true) => {
store
.
dispatch
(
'
Script/syncFromZentao
'
,
data
).
then
((
resp
=>
{
if
(
resp
.
code
===
0
)
{
successNotice
&&
notification
.
success
({
message
:
t
(
'
sync_success
'
),
message
:
t
(
'
sync_from_zentao_success
'
,
{
success
:
1
,
}),
});
}
else
{
notification
.
error
({
...
...
@@ -602,7 +608,7 @@ const syncFromZentaoSubmit = (model) => {
store
.
dispatch
(
"
Script/syncFromZentao
"
,
model
).
then
((
resp
)
=>
{
if
(
resp
.
code
===
0
)
{
notification
.
success
({
message
:
t
(
"
sync_success
"
,
{
success
:
resp
.
data
==
undefined
?
0
:
resp
.
data
.
length
,
ignore
:
0
}),
message
:
t
(
"
sync_
from_zentao_
success
"
,
{
success
:
resp
.
data
==
undefined
?
0
:
resp
.
data
.
length
,
ignore
:
0
}),
});
showSyncFromZentaoModal
.
value
=
false
;
syncFromZentaoRef
.
value
.
clearFormData
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录