|
@@ -13,6 +13,19 @@
|
|
|
</template>
|
|
|
</ListItem>
|
|
|
</template>
|
|
|
+ <template #select="{ model: m, field, schema }">
|
|
|
+ <ListItem class="w-100%" v-model:value="m[field]" type="input" bordered :label-width="180" :value-width="80">
|
|
|
+ <template #label>
|
|
|
+ {{ schema.label }}
|
|
|
+ <Tooltip v-if="schema.helpMessage" :title="schema.helpMessage">
|
|
|
+ <InfoCircleOutlined />
|
|
|
+ </Tooltip>
|
|
|
+ </template>
|
|
|
+ <template #value>
|
|
|
+ <ApiSelect v-bind="schema.componentProps" v-model:value="m[field]" />
|
|
|
+ </template>
|
|
|
+ </ListItem>
|
|
|
+ </template>
|
|
|
</BasicForm>
|
|
|
</div>
|
|
|
<!-- <div class="setting-form__wrapper">
|
|
@@ -80,7 +93,7 @@
|
|
|
import { Button, Tooltip } from 'ant-design-vue';
|
|
|
import ListItem from '@/views/vent/gas/components/list/listItem.vue';
|
|
|
import FormTitle from '@/views/vent/gas/components/form/formTitle.vue';
|
|
|
- import { useForm, BasicForm } from '/@/components/Form';
|
|
|
+ import { useForm, BasicForm, ApiSelect } from '/@/components/Form';
|
|
|
import { /** workSurfaceFormSchema, extractionUnitFormSchema, */ calculationFormSchema, paramsFormSchema } from '../gasPumpSetting.data';
|
|
|
import { ref } from 'vue';
|
|
|
import { InfoCircleOutlined } from '@ant-design/icons-vue';
|