MES项目点
一、项目局域网访问地址创建
host: '0.0.0.0',
二、select下拉表单内容
1、默认值设置为undefined,placeholder才生效
<a-col :sm="24" :md="12" :xl="6">
<a-form-item
name="opeCodeList"
:rules="[
{
required: true,
message: $t('input.Pleaseselect') + $t('table.Process'),
},
]"
:label="$t('table.Process')"
>
<a-select
v-model:value="formState.opeCodeList"
:getPopupContainer="trigger => trigger.parentNode"
:placeholder="$t('input.Pleaseselect') + $t('table.Process')"
allow-clear
@select="getToolList"
>
<a-select-option
v-for="item in opeList"
:id="item.id"
:key="item.id"
:value="item.opeCode"
>
{{ item.opeName }}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
2、重新绑定label和value
:fieldNames="{ label: 'name', value: 'id' }"