fix(测试跟踪): 修复功能用例复制标签不回显问题
--bug=1010536--user=郭雨琦 修复测试计划列表空标签显示问题 https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001010536&url_cache_key=from_url_iteration_list_af1c2a348ba1b2cbec7f7734af247d0e&action_entry_type=bugs
This commit is contained in:
parent
15f4fa13d6
commit
d6e31834fd
|
@ -73,9 +73,9 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item :label="$t('commons.tag')" :label-width="formLabelWidth" prop="tag">
|
<el-form-item :label="$t('commons.tag')" :label-width="formLabelWidth" prop="tags">
|
||||||
<ms-input-tag :read-only="readOnly" :currentScenario="form" v-if="showInputTag" ref="tag"
|
<ms-input-tag :read-only="readOnly" :currentScenario="form" v-if="showInputTag" ref="tag"
|
||||||
class="ms-case-input"/>
|
class="ms-case-input"></ms-input-tag>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -611,6 +611,7 @@ export default {
|
||||||
this.operationType = 'edit';
|
this.operationType = 'edit';
|
||||||
//复制
|
//复制
|
||||||
if (this.type === 'copy') {
|
if (this.type === 'copy') {
|
||||||
|
this.showInputTag = false;
|
||||||
this.operationType = 'add';
|
this.operationType = 'add';
|
||||||
this.setFormData(testCase);
|
this.setFormData(testCase);
|
||||||
this.setTestCaseExtInfo(testCase);
|
this.setTestCaseExtInfo(testCase);
|
||||||
|
@ -618,6 +619,9 @@ export default {
|
||||||
//设置自定义熟悉默认值
|
//设置自定义熟悉默认值
|
||||||
this.customFieldForm = parseCustomField(this.form, this.testCaseTemplate, this.customFieldRules, buildTestCaseOldFields(this.form));
|
this.customFieldForm = parseCustomField(this.form, this.testCaseTemplate, this.customFieldRules, buildTestCaseOldFields(this.form));
|
||||||
this.reload();
|
this.reload();
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.showInputTag = true;
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
this.getTestCase(testCase.id);
|
this.getTestCase(testCase.id);
|
||||||
}
|
}
|
||||||
|
@ -868,7 +872,7 @@ export default {
|
||||||
resetForm() {
|
resetForm() {
|
||||||
//防止点击修改后,点击新建触发校验
|
//防止点击修改后,点击新建触发校验
|
||||||
if (this.$refs['caseFrom']) {
|
if (this.$refs['caseFrom']) {
|
||||||
this.$refs['caseFrom'].validate((valid) => {
|
this.$refs['caseFrom'].validate(() => {
|
||||||
this.$refs['caseFrom'].resetFields();
|
this.$refs['caseFrom'].resetFields();
|
||||||
this._resetForm();
|
this._resetForm();
|
||||||
return true;
|
return true;
|
||||||
|
@ -894,6 +898,7 @@ export default {
|
||||||
result: ''
|
result: ''
|
||||||
}];
|
}];
|
||||||
this.form.customNum = '';
|
this.form.customNum = '';
|
||||||
|
this.form.tags = [];
|
||||||
},
|
},
|
||||||
addListener() {
|
addListener() {
|
||||||
document.addEventListener("keydown", this.createCtrlSHandle);
|
document.addEventListener("keydown", this.createCtrlSHandle);
|
||||||
|
|
Loading…
Reference in New Issue