Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zentaoatf
提交
af76c27c
Z
zentaoatf
项目概览
易企天创
/
zentaoatf
10 个月 前同步成功
通知
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 搜索 >>
提交
af76c27c
编写于
6月 06, 2022
作者:
H
Hao Sun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
* optimize style for forms.
上级
748ee657
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
82 addition
and
72 deletion
+82
-72
ui/src/views/exec/TabPageExecUnit.vue
ui/src/views/exec/TabPageExecUnit.vue
+4
-4
ui/src/views/interpreter/FormInterpreter.vue
ui/src/views/interpreter/FormInterpreter.vue
+6
-2
ui/src/views/result/FormBug.vue
ui/src/views/result/FormBug.vue
+41
-30
ui/src/views/result/FormResult.vue
ui/src/views/result/FormResult.vue
+10
-7
ui/src/views/workspace/FormWorkspace.vue
ui/src/views/workspace/FormWorkspace.vue
+21
-29
未找到文件。
ui/src/views/exec/TabPageExecUnit.vue
浏览文件 @
af76c27c
<
template
>
<div
class=
"tab-page-exec-unit"
>
<Form
labelCol=
"6"
wrapperCol=
"26"
>
<FormItem
name=
"cmd"
:label=
"t('test_cmd')"
:info=
"validateInfos.cmd"
>
<FormItem
labelWidth=
"100px"
name=
"cmd"
:label=
"t('test_cmd')"
:info=
"validateInfos.cmd"
>
<input
v-model=
"modelRef.cmd"
@
keydown=
"keydown"
/>
</FormItem>
<FormItem
v-if=
"currProduct.id"
name=
"submitResult"
:label=
"t('submit_result_to_zentao')"
>
<FormItem
labelWidth=
"100px"
v-if=
"currProduct.id"
name=
"submitResult"
:label=
"t('submit_result_to_zentao')"
>
<input
v-model=
"modelRef.submitResult"
type=
"checkbox"
>
</FormItem>
<FormItem>
<FormItem
labelWidth=
"100px"
>
<Button
:disabled=
"isRunning === 'true' || !modelRef.cmd"
@
click=
"start"
class=
"rounded"
>
{{
t
(
'
exec
'
)
}}
</Button>
...
...
@@ -18,7 +18,7 @@
</Button>
</FormItem>
<FormItem>
<FormItem
labelWidth=
"100px"
>
<span
class=
"t-tips"
>
{{
t
(
'
cmd_nav
'
)
}}
</span>
</FormItem>
</Form>
...
...
ui/src/views/interpreter/FormInterpreter.vue
浏览文件 @
af76c27c
...
...
@@ -3,11 +3,12 @@
:showModal=
"showModalRef"
@
onCancel=
"cancel"
@
onOk=
"submit"
:title=
"info == undefined ? t('create_interpreter') : t('edit_interpreter')"
:contentStyle=
"
{width: '
6
00px'}"
:title=
"info == undefined ? t('create_interpreter') : t('edit_interpreter')"
:contentStyle=
"
{width: '
5
00px'}"
>
<Form
class=
"form-interpreter"
labelCol=
"6"
wrapperCol=
"16"
>
<FormItem
labelWidth=
"100px"
name=
"lang"
:label=
"t('script_lang')"
:info=
"validateInfos.lang"
...
...
@@ -23,6 +24,7 @@
</select>
</FormItem>
<FormItem
labelWidth=
"100px"
v-if=
"isElectron"
name=
"path"
:label=
"t('interpreter_path')"
...
...
@@ -34,6 +36,7 @@
<Button
v-if=
"isElectron"
@
click=
"selectFile"
class=
"state secondary select-dir-btn"
>
{{
t
(
'
select
'
)
}}
</Button>
</FormItem>
<FormItem
labelWidth=
"100px"
v-if=
"!isElectron"
name=
"path"
:label=
"t('interpreter_path')"
...
...
@@ -42,6 +45,7 @@
<input
v-model=
"modelRef.path"
/>
</FormItem>
<FormItem
labelWidth=
"100px"
name=
"lang"
v-if=
"interpreterInfos.length > 0"
:label=
"t('script_lang')"
...
...
ui/src/views/result/FormBug.vue
浏览文件 @
af76c27c
...
...
@@ -4,6 +4,7 @@
@
onCancel=
"close"
@
onOk=
"submit"
:title=
"t('submit_result_to_zentao')"
:contentStyle=
"
{width: '500px'}"
>
<Form
labelCol=
"6"
wrapperCol=
"16"
>
<FormItem
name=
"title"
:label=
"t('title')"
:info=
"validateInfos.title"
>
...
...
@@ -11,50 +12,60 @@
</FormItem>
<FormItem
name=
"module"
:label=
"t('module')"
>
<select
name=
"module"
v-model=
"modelRef.module"
>
<option
value=
""
></option>
<option
v-for=
"item in modules"
:key=
"item.code"
:value=
"item.code+''"
>
{{
item
.
name
}}
</option>
</select>
<div
class=
"select"
>
<select
name=
"module"
v-model=
"modelRef.module"
>
<option
value=
""
></option>
<option
v-for=
"item in modules"
:key=
"item.code"
:value=
"item.code+''"
>
{{
item
.
name
}}
</option>
</select>
</div>
</FormItem>
<FormItem
name=
"type"
:label=
"t('category')"
>
<select
name=
"type"
v-model=
"modelRef.type"
>
<option
value=
""
></option>
<option
v-for=
"item in types"
:key=
"item.code"
:value=
"item.code+''"
>
{{
item
.
name
}}
</option>
</select>
<div
class=
"select"
>
<select
name=
"type"
v-model=
"modelRef.type"
>
<option
value=
""
></option>
<option
v-for=
"item in types"
:key=
"item.code"
:value=
"item.code+''"
>
{{
item
.
name
}}
</option>
</select>
</div>
</FormItem>
<FormItem
name=
"openedBuild"
:label=
"t('version')"
>
<select
name=
"openedBuild"
v-model=
"modelRef.openedBuild"
>
<option
value=
""
></option>
<option
v-for=
"item in builds"
:key=
"item.code"
:value=
"item.code+''"
>
{{
item
.
name
}}
</option>
</select>
<div
class=
"select"
>
<select
name=
"openedBuild"
v-model=
"modelRef.openedBuild"
>
<option
value=
""
></option>
<option
v-for=
"item in builds"
:key=
"item.code"
:value=
"item.code+''"
>
{{
item
.
name
}}
</option>
</select>
</div>
</FormItem>
<FormItem
name=
"severity"
:label=
"t('severity')"
>
<select
name=
"severity"
v-model=
"modelRef.severity"
>
<option
v-for=
"item in severities"
:key=
"item.code"
:value=
"item.code+''"
>
{{
item
.
name
}}
</option>
</select>
<div
class=
"select"
>
<select
name=
"severity"
v-model=
"modelRef.severity"
>
<option
v-for=
"item in severities"
:key=
"item.code"
:value=
"item.code+''"
>
{{
item
.
name
}}
</option>
</select>
</div>
</FormItem>
<FormItem
name=
"priority"
:label=
"t('priority')"
>
<select
name=
"priority"
v-model=
"modelRef.pri"
>
<option
v-for=
"item in priorities"
:key=
"item.code"
:value=
"item.code+''"
>
{{
item
.
name
}}
</option>
</select>
<div
class=
"select"
>
<select
name=
"priority"
v-model=
"modelRef.pri"
>
<option
v-for=
"item in priorities"
:key=
"item.code"
:value=
"item.code+''"
>
{{
item
.
name
}}
</option>
</select>
</div>
</FormItem>
<FormItem
name=
"type"
:label=
"t('step')"
>
<textarea
v-model=
"modelRef.steps"
rows=
"
3
"
/>
<textarea
v-model=
"modelRef.steps"
rows=
"
6
"
/>
</FormItem>
</Form>
</ZModal>
...
...
@@ -177,4 +188,4 @@ defineExpose({
<
style
lang=
"less"
scoped
>
</
style
>
\ No newline at end of file
</
style
>
ui/src/views/result/FormResult.vue
浏览文件 @
af76c27c
...
...
@@ -4,15 +4,18 @@
@
onCancel=
"close"
@
onOk=
"submit"
:title=
"t('submit_result_to_zentao')"
:contentStyle=
"
{width: '300px'}"
>
<Form
labelCol=
"6"
wrapperCol=
"16"
>
<FormItem
name=
"taskId"
:label=
"t('task')"
>
<select
name=
"taskId"
v-model=
"modelRef.taskId"
>
<option
value=
"0"
></option>
<option
v-for=
"item in tasks"
:key=
"item.id"
:value=
"item.id"
>
{{
item
.
name
}}
</option>
</select>
<div
class=
"select"
>
<select
name=
"taskId"
v-model=
"modelRef.taskId"
>
<option
value=
"0"
></option>
<option
v-for=
"item in tasks"
:key=
"item.id"
:value=
"item.id"
>
{{
item
.
name
}}
</option>
</select>
</div>
</FormItem>
</Form>
</ZModal>
...
...
@@ -116,4 +119,4 @@ defineExpose({
<
style
lang=
"less"
scoped
>
</
style
>
\ No newline at end of file
</
style
>
ui/src/views/workspace/FormWorkspace.vue
浏览文件 @
af76c27c
...
...
@@ -10,23 +10,23 @@
<FormItem
name=
"name"
:label=
"t('name')"
:info=
"validateInfos.name"
>
<input
v-model=
"modelRef.name"
/>
</FormItem>
<FormItem
name=
"path"
:label=
"t('path')"
:info=
"validateInfos.path"
>
<input
v-if=
"isElectron"
v-model=
"modelRef.path"
/>
<Button
v-if=
"isElectron"
@
click=
"selectDir"
class=
"state secondary select-dir-btn"
>
{{
t
(
'
select
'
)
}}
</Button>
<input
v-if=
"isElectron"
v-model=
"modelRef.path"
/>
<Button
v-if=
"isElectron"
@
click=
"selectDir"
class=
"state secondary flex-none rounded"
>
{{
t
(
'
select
'
)
}}
</Button>
<input
v-if=
"!isElectron"
v-model=
"modelRef.path"
/>
</FormItem>
<FormItem
name=
"type"
:label=
"t('type')"
:info=
"validateInfos.type"
>
<select
name=
"type"
@
change=
"selectType"
v-model=
"modelRef.type"
>
<option
v-for=
"item in testTypes"
:key=
"item.value"
:value=
"item.value"
>
{{
item
.
label
}}
</option>
</select>
<div
class=
"select"
>
<select
name=
"type"
@
change=
"selectType"
v-model=
"modelRef.type"
>
<option
v-for=
"item in testTypes"
:key=
"item.value"
:value=
"item.value"
>
{{
item
.
label
}}
</option>
</select>
</div>
</FormItem>
<FormItem
v-if=
"modelRef.type === 'ztf'"
...
...
@@ -34,17 +34,16 @@
:label=
"t('default_lang')"
:info=
"validateInfos.lang"
>
<select
name=
"type"
v-model=
"modelRef.lang"
>
<option
v-for=
"item in langs"
:key=
"item.code"
:value=
"item.code"
>
{{
item
.
name
}}
</option>
</select>
<div
class=
"select"
>
<select
name=
"type"
v-model=
"modelRef.lang"
>
<option
v-for=
"item in langs"
:key=
"item.code"
:value=
"item.code"
>
{{
item
.
name
}}
</option>
</select>
</div>
</FormItem>
<FormItem
v-if=
"showCmd"
name=
"cmd"
:label=
"t('cmd')"
:info=
"validateInfos.cmd"
>
<FormItem
v-if=
"showCmd"
name=
"cmd"
:label=
"t('cmd')"
:info=
"validateInfos.cmd"
:helpText=
"t('tips_test_cmd',
{cmd: cmdSample})"
>
<textarea
v-model=
"modelRef.cmd"
/>
<div
class=
"t-tips"
style=
"margin-top: 5px;"
>
<div>
{{
t
(
'
tips_test_cmd
'
,
{
cmd
:
cmdSample
}
)
}}
<
/div
>
<
/div
>
</FormItem>
</Form>
</ZModal>
...
...
@@ -168,10 +167,3 @@ defineExpose({
clearFormData
,
});
</
script
>
<
style
>
.
select
-
dir
-
btn
{
position
:
absolute
;
right
:
20
px
;
}
<
/style>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录