fix(测试跟踪): 批量编辑标签未选择追加标签无法保存
--bug=1014990 --user=李玉号 【测试跟踪】功能用例-批量编辑用例-属性-标签-不追加标签保存失败-提示请选择属性对应的值 https://www.tapd.cn/55049933/s/1204091
This commit is contained in:
parent
d27f7fb0ac
commit
b66ef0c30e
|
@ -20,8 +20,8 @@
|
||||||
<el-form-item v-else-if="form.type === 'tags'" :label="$t('test_track.case.updated_attr_value')">
|
<el-form-item v-else-if="form.type === 'tags'" :label="$t('test_track.case.updated_attr_value')">
|
||||||
<ms-input-tag :currentScenario="form" v-if="showInputTag" ref="tag" class="ms-case-input"></ms-input-tag>
|
<ms-input-tag :currentScenario="form" v-if="showInputTag" ref="tag" class="ms-case-input"></ms-input-tag>
|
||||||
<el-checkbox v-model="form.appendTag">
|
<el-checkbox v-model="form.appendTag">
|
||||||
追加标签
|
{{ $t('commons.append_tag') }}
|
||||||
<el-tooltip class="item" effect="dark" content="勾选:新增标签;不勾选:覆盖原有标签;" placement="top">
|
<el-tooltip class="item" effect="dark" :content="$t('commons.append_tag_tip')" placement="top">
|
||||||
<i class="el-icon-info"></i>
|
<i class="el-icon-info"></i>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
|
@ -46,11 +46,11 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import MsDialogFooter from "../../../../common/components/MsDialogFooter";
|
import MsDialogFooter from "../../../../common/components/MsDialogFooter";
|
||||||
import {listenGoBack, removeGoBackListener} from "@/common/js/utils";
|
import {listenGoBack, removeGoBackListener} from "@/common/js/utils";
|
||||||
import MsInputTag from "@/business/components/api/automation/scenario/MsInputTag";
|
import MsInputTag from "@/business/components/api/automation/scenario/MsInputTag";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "BatchEdit",
|
name: "BatchEdit",
|
||||||
components: {
|
components: {
|
||||||
MsDialogFooter,
|
MsDialogFooter,
|
||||||
|
|
|
@ -30,11 +30,7 @@
|
||||||
ref="envPopover"/>
|
ref="envPopover"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item v-else-if="fieldType === 'custom'" prop="customFieldValue" :label="$t('test_track.case.updated_attr_value')">
|
<el-form-item v-else-if="form.type === 'tags'" :label="$t('test_track.case.updated_attr_value')">
|
||||||
<custom-filed-component :data="customField" prop="defaultValue"/>
|
|
||||||
</el-form-item>
|
|
||||||
|
|
||||||
<el-form-item v-else-if="form.type === 'tags'" prop="tags" :label="$t('test_track.case.updated_attr_value')">
|
|
||||||
<ms-input-tag :currentScenario="form" v-if="showInputTag" ref="tag" class="ms-case-input"></ms-input-tag>
|
<ms-input-tag :currentScenario="form" v-if="showInputTag" ref="tag" class="ms-case-input"></ms-input-tag>
|
||||||
<el-checkbox v-model="form.appendTag">
|
<el-checkbox v-model="form.appendTag">
|
||||||
{{ $t('commons.append_tag') }}
|
{{ $t('commons.append_tag') }}
|
||||||
|
@ -44,6 +40,10 @@
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item v-else-if="fieldType === 'custom'" prop="customFieldValue" :label="$t('test_track.case.updated_attr_value')">
|
||||||
|
<custom-filed-component :data="customField" prop="defaultValue"/>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item v-else :label="$t('test_track.case.updated_attr_value')" prop="value">
|
<el-form-item v-else :label="$t('test_track.case.updated_attr_value')" prop="value">
|
||||||
<el-select v-model="form.value" style="width: 100%" :filterable="filterable">
|
<el-select v-model="form.value" style="width: 100%" :filterable="filterable">
|
||||||
<el-option v-for="(option, index) in options" :key="index" :value="option.id" :label="option.name">
|
<el-option v-for="(option, index) in options" :key="index" :value="option.id" :label="option.name">
|
||||||
|
@ -214,7 +214,12 @@ export default {
|
||||||
if (val && val.startsWith("custom")) {
|
if (val && val.startsWith("custom")) {
|
||||||
this._handleCustomField(val);
|
this._handleCustomField(val);
|
||||||
}
|
}
|
||||||
|
if (val === 'tags') {
|
||||||
|
// 跳过form rules的检查
|
||||||
|
this.$set(this.form, "value", "tags");
|
||||||
|
} else {
|
||||||
this.$set(this.form, "value", "");
|
this.$set(this.form, "value", "");
|
||||||
|
}
|
||||||
if (val === 'projectEnv' && this.isScenario !== '') {
|
if (val === 'projectEnv' && this.isScenario !== '') {
|
||||||
this.projectIds.clear();
|
this.projectIds.clear();
|
||||||
this.map.clear();
|
this.map.clear();
|
||||||
|
|
Loading…
Reference in New Issue