..
This commit is contained in:
@@ -24,7 +24,8 @@
|
||||
单位信息
|
||||
</view>
|
||||
<t-form-item label="参加单位" name="unitName" :rules="[{required:true,message: '请输入单位名称'}]">
|
||||
<t-input v-model="formData.unitName" borderless placeholder="请输入参加单位名称"></t-input>
|
||||
<!-- <t-input v-model="formData.unitName" borderless placeholder="请输入参加单位名称"></t-input>-->
|
||||
<search-picker v-model="formData.unitName" :options="unitOptions" placeholder="请选择单位"></search-picker>
|
||||
</t-form-item>
|
||||
<t-form-item label="联系人" name="contactName" :rules="[{required:true,message: '请输入联系人姓名'}]">
|
||||
<t-input v-model="formData.contactName" borderless placeholder="请输入联系人姓名"></t-input>
|
||||
@@ -112,6 +113,7 @@ import {ref} from 'vue'
|
||||
import {useRequest} from '@/utils/request';
|
||||
import {Dialog, Toast} from "tdesign-mobile-vue";
|
||||
import {onLoad} from "@dcloudio/uni-app";
|
||||
import SearchPicker from "@/components/SearchPicker.vue";
|
||||
|
||||
const request = useRequest()
|
||||
const actId = ref(null)
|
||||
@@ -132,6 +134,12 @@ const formData = ref({
|
||||
}]
|
||||
})
|
||||
|
||||
const unitOptions = ref([
|
||||
{value:'单位1',label:'单位1'},
|
||||
{value:'单位2',label:'单位2'},
|
||||
{value:'单位3',label:'单位3'},
|
||||
])
|
||||
|
||||
onLoad((option) => {
|
||||
if (option.id) {
|
||||
actId.value = option.id
|
||||
|
||||
Reference in New Issue
Block a user