Commit 08fe7b634925d577e2719db5fd2f0f485754b7f0

Authored by fengwotao
1 parent c4dac8da

pref:优化长度限制

... ... @@ -135,12 +135,10 @@ export const step1Schemas: FormSchema[] = [
135 135 required: true,
136 136 component: 'Input',
137 137 colProps: { span: 14 },
138   - componentProps() {
139   - return {
140   - disabled: false,
141   - ength: 255,
142   - placeholder: '请输入产品名称',
143   - };
  138 + componentProps: {
  139 + disabled: false,
  140 + maxLength: 63,
  141 + placeholder: '请输入产品名称',
144 142 },
145 143 },
146 144 {
... ...
... ... @@ -321,7 +321,6 @@ export const formSchema: QFormSchema[] = [
321 321 {
322 322 field: 'devices',
323 323 label: '设备',
324   - helpMessage: ['报表配置只对拥有"数值型"属性的设备才能配置'],
325 324 component: 'Select',
326 325 slot: 'devices',
327 326 colProps: { span: 24 },
... ...
... ... @@ -13,7 +13,12 @@
13 13 :name="ifAdd ? 'name' : 'params'"
14 14 :rules="[{ required: true, message: ifAdd ? '请输入脚本名称' : '请输入参数' }]"
15 15 >
16   - <a-input v-if="ifAdd" v-model:value="scriptForm.name" placeholder="请输入脚本名称" />
  16 + <a-input
  17 + v-if="ifAdd"
  18 + :maxlength="36"
  19 + v-model:value="scriptForm.name"
  20 + placeholder="请输入脚本名称"
  21 + />
17 22 <a-input
18 23 @change="handleInputChange"
19 24 v-else
... ...
... ... @@ -127,7 +127,7 @@ export const accountFormSchema: FormSchema[] = [
127 127 colProps: { span: 12 },
128 128 required: true,
129 129 componentProps: {
130   - maxLength: 255,
  130 + maxLength: 10,
131 131 },
132 132 },
133 133 {
... ...