mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-29 18:48:13 +08:00
fix(测试跟踪): 处理缺陷远程搜索字段回显问题
This commit is contained in:
parent
9947cfcf97
commit
7ff77b7929
@ -151,6 +151,7 @@ import MsTableColumn from "../table/MsTableColumn";
|
|||||||
import MsInputTag from "../MsInputTag";
|
import MsInputTag from "../MsInputTag";
|
||||||
import {getProjectMemberOption} from "../../api/user";
|
import {getProjectMemberOption} from "../../api/user";
|
||||||
import MsMarkDownText from "metersphere-frontend/src/components/MsMarkDownText";
|
import MsMarkDownText from "metersphere-frontend/src/components/MsMarkDownText";
|
||||||
|
import {OPTION_LABEL_PREFIX} from "../../utils/tableUtils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "CustomFiledComponent",
|
name: "CustomFiledComponent",
|
||||||
@ -222,6 +223,13 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$emit('change', this.data.name);
|
this.$emit('change', this.data.name);
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
|
if (this.data.inputSearch) {
|
||||||
|
// 处理 jira 的 sprint 字段
|
||||||
|
let selectOption = this.data.options.find(item => item.value === this.data[this.prop]);
|
||||||
|
if (selectOption) {
|
||||||
|
this.data.optionLabel = OPTION_LABEL_PREFIX + selectOption.text;
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleSelectInput(val) {
|
handleSelectInput(val) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
@ -138,6 +138,10 @@ export function buildCustomFields(data, param, template) {
|
|||||||
customField["value"] = item.defaultValue
|
customField["value"] = item.defaultValue
|
||||||
? JSON.stringify(item.defaultValue)
|
? JSON.stringify(item.defaultValue)
|
||||||
: "";
|
: "";
|
||||||
|
// 处理 jira 的 sprint 字段
|
||||||
|
if (item.optionLabel) {
|
||||||
|
customField["textValue"] = item.optionLabel;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (item.isEdit) {
|
if (item.isEdit) {
|
||||||
editFields.push(customField);
|
editFields.push(customField);
|
||||||
|
Loading…
Reference in New Issue
Block a user