fix: 修改项目配置第三方模板样式
This commit is contained in:
parent
26186a2ee0
commit
fbeb09e44c
|
@ -19,14 +19,16 @@
|
|||
<template-select :data="form" scene="API_CASE" prop="caseTemplateId" ref="caseTemplate"/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item v-if="form.platform == 'Jira'" :label-width="labelWidth" :label="$t('test_track.issue.use_third_party')" prop="scenarioCustomNum">
|
||||
<el-switch v-model="form.thirdPartTemplate"></el-switch>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item v-if="!form.thirdPartTemplate" :label-width="labelWidth"
|
||||
<el-form-item :label-width="labelWidth"
|
||||
:label="$t('workspace.issue_template_manage')" prop="issueTemplateId">
|
||||
<template-select :platform="form.platform" :data="form" scene="ISSUE" prop="issueTemplateId"
|
||||
:disabled="form.platform === 'Jira' && form.thirdPartTemplate"
|
||||
ref="issueTemplate"/>
|
||||
|
||||
<el-checkbox @change="thirdPartTemplateChange" v-if="form.platform === 'Jira'" v-model="form.thirdPartTemplate" style="margin-left: 10px">
|
||||
{{ $t('test_track.issue.use_third_party') }}
|
||||
</el-checkbox>
|
||||
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item :label-width="labelWidth" label="TCP Mock Port">
|
||||
|
@ -215,6 +217,10 @@ export default {
|
|||
this.$refs.caseTemplate.getTemplateOptions();
|
||||
}
|
||||
},
|
||||
thirdPartTemplateChange(val) {
|
||||
if (val)
|
||||
this.form.issueTemplateId = '';
|
||||
},
|
||||
edit(row) {
|
||||
this.title = this.$t('project.edit');
|
||||
this.getOptions();
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<el-select filterable v-model="data[prop]">
|
||||
<el-option
|
||||
:disabled="disabled"
|
||||
v-for="(item, index) in templateFilterOptions"
|
||||
:key="index"
|
||||
:label="item.name"
|
||||
|
@ -19,6 +20,7 @@ export default {
|
|||
scene: String,
|
||||
prop: String,
|
||||
platform: String,
|
||||
disabled: Boolean,
|
||||
data: {
|
||||
type: Object,
|
||||
default() {
|
||||
|
|
Loading…
Reference in New Issue