修改域名解析记录时主机名和类型设置为禁止编辑状态

This commit is contained in:
jingrow 2025-08-04 22:39:23 +08:00
parent 29ca4bab25
commit 69739f7d2b

View File

@ -120,7 +120,9 @@
v-model="record.item"
type="text"
class="w-24 px-2 py-1 text-sm border border-gray-300 rounded focus:ring-2 focus:ring-blue-500 focus:border-blue-500"
:class="{ 'bg-gray-100 text-gray-500 cursor-not-allowed': !record.isNew }"
placeholder="主机名"
:disabled="!record.isNew"
/>
</div>
<div v-else class="text-sm text-gray-900">
@ -133,6 +135,8 @@
<select
v-model="record.type"
class="w-20 px-2 py-1 text-sm border border-gray-300 rounded focus:ring-2 focus:ring-blue-500 focus:border-blue-500"
:class="{ 'bg-gray-100 text-gray-500 cursor-not-allowed': !record.isNew }"
:disabled="!record.isNew"
>
<option value="A">A</option>
<option value="AAAA">AAAA</option>