diff --git a/test-track/frontend/src/business/case/components/RelateDemand.vue b/test-track/frontend/src/business/case/components/RelateDemand.vue index 8133979d15..540a429dde 100644 --- a/test-track/frontend/src/business/case/components/RelateDemand.vue +++ b/test-track/frontend/src/business/case/components/RelateDemand.vue @@ -19,11 +19,11 @@ clearable filterable :filter-method="filterDemand" style="width: 100%;"> @@ -121,6 +121,28 @@ export default { }) } }, + handleDemandOptionPlatform(data){ + if(data.platform){ + return data.platform + } + if(data.label){ + let arr = data.label.split(": ") + if(arr && arr.length > 1){ + return arr[0]; + } + } + return ""; + }, + handleDemandOptionLabel(data){ + if(data.label){ + let arr = data.label.split(": ") + if(arr && arr.length > 1){ + return arr[1]; + } + return data.label; + } + return ""; + }, buildDemandCascaderOptions(data, options, pathArray) { data.forEach(item => { let option = { @@ -236,5 +258,6 @@ export default { .story-label { line-height: 22px; color: #1f2329; + max-width: 300px; }