|
@@ -29,18 +29,35 @@
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
import CtForm from '@/components/CtForm'
|
|
import CtForm from '@/components/CtForm'
|
|
-import { ref } from 'vue';
|
|
|
|
|
|
+import { enterpriseSearchByName } from '@/api/resume'
|
|
|
|
+import { ref } from 'vue'
|
|
|
|
+
|
|
defineOptions({name: 'enterprise-enterpriseRegister-binding'})
|
|
defineOptions({name: 'enterprise-enterpriseRegister-binding'})
|
|
const loginLoading = ref(false)
|
|
const loginLoading = ref(false)
|
|
|
|
|
|
|
|
+// 企业名称下拉列表
|
|
|
|
+const getSchoolListData = async (name) => {
|
|
|
|
+ const item = formItems.value.options.find(e => e.key === 'enterpriseId')
|
|
|
|
+ if (!item) return
|
|
|
|
+ const data = await enterpriseSearchByName({ name })
|
|
|
|
+ item.items = data
|
|
|
|
+}
|
|
|
|
+
|
|
const formItems = ref({
|
|
const formItems = ref({
|
|
options: [
|
|
options: [
|
|
{
|
|
{
|
|
- type: 'text',
|
|
|
|
- key: 'phone',
|
|
|
|
- value: '',
|
|
|
|
- label: '公司名称 *',
|
|
|
|
- rules: [v => !!v || '公司名称']
|
|
|
|
|
|
+ type: 'autocomplete',
|
|
|
|
+ key: 'enterpriseId',
|
|
|
|
+ value: null,
|
|
|
|
+ default: null,
|
|
|
|
+ label: '企业名称 *',
|
|
|
|
+ outlined: true,
|
|
|
|
+ clearable: true,
|
|
|
|
+ itemText: 'value',
|
|
|
|
+ itemValue: 'key',
|
|
|
|
+ rules: [v => !!v || '请选择企业名称'],
|
|
|
|
+ search: getSchoolListData,
|
|
|
|
+ items: []
|
|
},
|
|
},
|
|
{
|
|
{
|
|
type: 'text',
|
|
type: 'text',
|