fix(测试跟踪): 功能用例导入多值输入后,列表不展示数据

This commit is contained in:
chenjianxing 2023-02-03 16:53:54 +08:00 committed by jianxing
parent d7ebb803c3
commit 3a84cdc20e
5 changed files with 16 additions and 6 deletions

View File

@ -47,6 +47,7 @@ export default {
watch: { watch: {
innerTags() { innerTags() {
this.data[this.prop] = this.innerTags; this.data[this.prop] = this.innerTags;
this.tagChange();
}, },
}, },
methods: { methods: {

View File

@ -76,6 +76,7 @@ export default {
watch: { watch: {
innerTags() { innerTags() {
this.currentScenario[this.prop] = this.innerTags; this.currentScenario[this.prop] = this.innerTags;
this.tagChange();
}, },
'currentScenario.tags'() { 'currentScenario.tags'() {
if (this.prop === 'tags') { if (this.prop === 'tags') {

View File

@ -55,6 +55,7 @@ export default {
watch: { watch: {
innerTags() { innerTags() {
this.data[this.prop] = this.innerTags; this.data[this.prop] = this.innerTags;
this.tagChange();
} }
}, },
methods: { methods: {

View File

@ -569,7 +569,9 @@ export function getCustomFieldValue(row, field, members) {
* @returns {*[]|*} * @returns {*[]|*}
*/ */
export function parseMultipleInputToArray(mulInputStr) { export function parseMultipleInputToArray(mulInputStr) {
if (mulInputStr.indexOf(",")) { if (mulInputStr instanceof Array) {
return mulInputStr;
} else if (mulInputStr.indexOf(",")) {
return mulInputStr.split(",") return mulInputStr.split(",")
} else if (mulInputStr.indexOf(";")) { } else if (mulInputStr.indexOf(";")) {
return mulInputStr.split(";") return mulInputStr.split(";")

View File

@ -560,11 +560,16 @@ export default {
let param = this.buildPram(); let param = this.buildPram();
this.parseOldFields(param); this.parseOldFields(param);
let option = this.getOption(param); let option = this.getOption(param);
saveOrUpdateIssue(option.url, option.data).then((response) => { this.result.loading = true;
this.$emit('close'); saveOrUpdateIssue(option.url, option.data)
this.$success(this.$t('commons.save_success')); .then((response) => {
this.$emit('refresh', response.data); this.$emit('close');
}) this.$success(this.$t('commons.save_success'));
this.$emit('refresh', response.data);
this.result.loading = false;
}).catch(() => {
this.result.loading = false;
});
}, },
parseOldFields(param) { parseOldFields(param) {
let customFieldsStr = param.customFields; let customFieldsStr = param.customFields;