fix(测试跟踪): 功能用例导入多值输入后,列表不展示数据
This commit is contained in:
parent
d7ebb803c3
commit
3a84cdc20e
|
@ -47,6 +47,7 @@ export default {
|
|||
watch: {
|
||||
innerTags() {
|
||||
this.data[this.prop] = this.innerTags;
|
||||
this.tagChange();
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -76,6 +76,7 @@ export default {
|
|||
watch: {
|
||||
innerTags() {
|
||||
this.currentScenario[this.prop] = this.innerTags;
|
||||
this.tagChange();
|
||||
},
|
||||
'currentScenario.tags'() {
|
||||
if (this.prop === 'tags') {
|
||||
|
|
|
@ -55,6 +55,7 @@ export default {
|
|||
watch: {
|
||||
innerTags() {
|
||||
this.data[this.prop] = this.innerTags;
|
||||
this.tagChange();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -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(";")
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue