优化域名所有者下拉框显示逻辑

This commit is contained in:
jingrow 2025-08-02 17:34:52 +08:00
parent 68b9c75ac1
commit 0059fb7eee

View File

@ -156,7 +156,7 @@
> >
<option value="">请选择域名所有者</option> <option value="">请选择域名所有者</option>
<option v-for="owner in domainOwners" :key="owner.name" :value="owner.name"> <option v-for="owner in domainOwners" :key="owner.name" :value="owner.name">
{{ owner.title }} {{ getOwnerDisplayName(owner) }}
</option> </option>
</select> </select>
<button <button
@ -1108,6 +1108,18 @@ export default {
} }
} }
}, },
getOwnerDisplayName(owner) {
// fullnametitle
if (owner.c_regtype === 'I') {
return owner.fullname || owner.title;
}
// c_org_mtitle
else if (owner.c_regtype === 'E') {
return owner.c_org_m || owner.title;
}
// title
return owner.title;
},
}, },
}; };
</script> </script>