修改域名解析记录时主机名和类型设置为禁止编辑状态
This commit is contained in:
parent
29ca4bab25
commit
69739f7d2b
@ -120,7 +120,9 @@
|
|||||||
v-model="record.item"
|
v-model="record.item"
|
||||||
type="text"
|
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="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="主机名"
|
placeholder="主机名"
|
||||||
|
:disabled="!record.isNew"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="text-sm text-gray-900">
|
<div v-else class="text-sm text-gray-900">
|
||||||
@ -133,6 +135,8 @@
|
|||||||
<select
|
<select
|
||||||
v-model="record.type"
|
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="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="A">A</option>
|
||||||
<option value="AAAA">AAAA</option>
|
<option value="AAAA">AAAA</option>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user