From 01bcf534119297468283976ed22a43c587f6cb38 Mon Sep 17 00:00:00 2001 From: Cloud Zhang <941187371@qq.com> Date: 星期四, 16 五月 2024 16:10:23 +0800 Subject: [PATCH] 飞达操作 --- src/views/tigerprojects/mes/eng/route/components/FormProps.vue | 96 ++++++++++++++++++++++++++++++++++-------------- 1 files changed, 68 insertions(+), 28 deletions(-) diff --git a/src/views/tigerprojects/mes/eng/route/components/FormProps.vue b/src/views/tigerprojects/mes/eng/route/components/FormProps.vue index f10bda1..e178bfa 100644 --- a/src/views/tigerprojects/mes/eng/route/components/FormProps.vue +++ b/src/views/tigerprojects/mes/eng/route/components/FormProps.vue @@ -4,40 +4,80 @@ <template> <div class="properties-content"> <Form class="properties-body" label-align="left" layout="vertical"> - <!-- <e-upload v-model="fileList"></e-upload>--> - - <FormItem label="琛ㄥ崟甯冨眬"> - <RadioGroup button-style="solid" v-model:value="formConfig.layout"> - <RadioButton value="horizontal">姘村钩</RadioButton> - <RadioButton value="vertical" :disabled="formConfig.labelLayout === 'Grid'"> - 鍨傜洿 - </RadioButton> - <RadioButton value="inline" :disabled="formConfig.labelLayout === 'Grid'"> - 琛屽唴 - </RadioButton> - </RadioGroup> + <FormItem label="宸ヨ壓璺嚎缂栫爜" name="宸ヨ壓璺嚎缂栫爜"> + <Input + :style="{ width: '100%' }" + v-model:value="mesRoute.ROT_CODE" + :min="0" + :step="1" + :readonly="true" + /> </FormItem> - - <!-- <Row> --> + <FormItem label="宸ヨ壓璺嚎鍚嶇О" name="宸ヨ壓璺嚎鍚嶇О"> + <Input + :style="{ width: '100%' }" + v-model:value="mesRoute.ROT_NAME" + :min="0" + :step="1" + :readonly="true" + /> + </FormItem> + <FormItem label="宸ヨ壓璺嚎绫诲瀷" name="宸ヨ壓璺嚎绫诲瀷"> + <Select + ref="select" + v-model:value="mesRoute.ROT_TYPE" + style="width: 120px" + :options="options2" + :readonly="true" + /> + </FormItem> + <FormItem label="宸ヨ壓璺嚎鐗堟湰" name="宸ヨ壓璺嚎鐗堟湰"> + <InputNumber + :style="{ width: '100%' }" + v-model:value="mesRoute.ROT_VER" + :min="0" + :step="1" + :readonly="true" + /> + </FormItem> + <FormItem label="鏄惁鍚敤" name="鏄惁鍚敤"> + <Select + ref="select" + v-model:value="mesRoute.IS_ACTIVE" + style="width: 120px" + :options="options1" + :readonly="true" + /> + </FormItem> </Form> </div> </template> <script lang="ts" setup> - import { Radio, Form, FormItem } from 'ant-design-vue'; + import { Select, Input, InputNumber, Form, FormItem } from 'ant-design-vue'; + import { useRouteDesignState } from '../hooks/useRouteDesignState'; + import { SelectTypes } from 'ant-design-vue/es/select'; import { ref } from 'vue'; + import { RouteTypeStatus } from '/@/api/tigerapi/mes/router'; - const RadioGroup = Radio.Group; - const RadioButton = Radio.Button; - - const formConfig = ref({ - colon: true, - disabled: false, - hideRequiredMark: true, - layout: 'horizontal', - size: 120, - labelLayout: 'Grid', - labelWidth: '120', - labelCol: 24, - labelAlign: 'Left', + const { mesRoute } = useRouteDesignState(); + const options1 = ref<SelectTypes['options']>([ + { + value: 'Y', + label: '鍚敤', + }, + { + value: 'N', + label: '涓嶅惎鐢�', + }, + ]); + const options2 = ref<SelectTypes['options']>([]); + RouteTypeStatus().then((res) => { + console.log(res); + res.Data.forEach((d) => { + options2.value.push({ + value: d.Value, + label: d.Desc, + }); + }); }); </script> -- Gitblit v1.9.3