B4 补充:办件下拉给 Option 显式 label(#id 标题),filterable 搜索与选中回显不依赖槽内富文本
This commit is contained in:
@@ -214,7 +214,8 @@ watch(() => props.modelValue, (v) => {
|
||||
</label>
|
||||
<Select v-model="pickedId" filterable clearable :loading="instLoading"
|
||||
placeholder="按标题/业务键搜索最近 50 条办件" @on-change="fillFromInstance">
|
||||
<Option v-for="r in shownInstances" :key="r.id" :value="r.id">
|
||||
<Option v-for="r in shownInstances" :key="r.id" :value="r.id"
|
||||
:label="`#${r.id} ${r.bizTitle || r.bizId || ''}`">
|
||||
#{{ r.id }} · {{ r.bizType || "-" }}/{{ r.bizId || "-" }} · {{ r.bizTitle || "(无标题)" }}
|
||||
· {{ r.submitterName || r.submitterId || "-" }} ·
|
||||
{{ (r.submitTime || "").replace("T", " ").slice(0, 16) || "-" }}
|
||||
|
||||
Reference in New Issue
Block a user