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: {
innerTags() {
this.data[this.prop] = this.innerTags;
this.tagChange();
},
},
methods: {

View File

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

View File

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

View File

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

View File

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