|
@@ -37,6 +37,7 @@ import type {
|
|
interface Props {
|
|
interface Props {
|
|
info: Partial<ProtocolBaseInfo>;
|
|
info: Partial<ProtocolBaseInfo>;
|
|
isRecognized: boolean;
|
|
isRecognized: boolean;
|
|
|
|
+ disabledForm?: boolean;
|
|
}
|
|
}
|
|
|
|
|
|
const props = defineProps<Props>();
|
|
const props = defineProps<Props>();
|
|
@@ -462,12 +463,12 @@ defineExpose({
|
|
|
|
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
- <AForm ref="formRef" :model="info" :rules="rules" layout="vertical">
|
|
|
|
|
|
+ <AForm ref="formRef" :model="info" :rules="rules" layout="vertical" :disabled="disabledForm">
|
|
<div class="protocol-label">{{ $t('common.basicInfo') }}</div>
|
|
<div class="protocol-label">{{ $t('common.basicInfo') }}</div>
|
|
<ARow :gutter="33">
|
|
<ARow :gutter="33">
|
|
<ACol flex="20%">
|
|
<ACol flex="20%">
|
|
<AFormItem :label="$t('setupProtocol.protocolName')" name="protocolName">
|
|
<AFormItem :label="$t('setupProtocol.protocolName')" name="protocolName">
|
|
- <AInput v-model:value="info.protocolName" :placeholder="$t('common.plzEnter')" />
|
|
|
|
|
|
+ <AInput v-model:value="info.protocolName" :placeholder="$t('common.plzEnter')" :disabled="false" />
|
|
</AFormItem>
|
|
</AFormItem>
|
|
</ACol>
|
|
</ACol>
|
|
<ACol flex="20%">
|
|
<ACol flex="20%">
|
|
@@ -905,6 +906,10 @@ defineExpose({
|
|
background-color: initial;
|
|
background-color: initial;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ .ant-input-number-disabled + .ant-input-number-group-addon {
|
|
|
|
+ background-color: rgb(0 0 0 / 2%);
|
|
|
|
+ }
|
|
|
|
+
|
|
.ant-radio-wrapper span.ant-radio + * {
|
|
.ant-radio-wrapper span.ant-radio + * {
|
|
padding-inline: 6px;
|
|
padding-inline: 6px;
|
|
}
|
|
}
|