123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <template>
- <div>
- <CtForm ref="CtFormRef" :items="formItems" style="width: 900px;margin: 0 auto"></CtForm>
- </div>
- </template>
- <script setup>
- defineOptions({ name: 'schoolInfo' })
- import { ref } from 'vue'
- const CtFormRef = ref()
- const formItems = ref({
- options: [
- {
- type: 'text',
- key: 'name',
- value: '',
- col: 6,
- label: '昵称 *',
- flexStyle: 'mr-3',
- slotName: 'name',
- rules: [v => !!v || '请输入您的昵称']
- },
- {
- type: 'text',
- key: 'anotherName',
- value: '',
- col: 6,
- label: '企业展示名称 *',
- rules: [v => !!v || '请输入企业展示名称']
- },
- {
- type: 'text',
- key: 'website',
- value: '',
- col: 6,
- flexStyle: 'mr-3',
- label: '企业官网'
- },
- {
- type: 'text',
- key: 'contact',
- value: '',
- col: 6,
- label: '联系人'
- },
- {
- type: 'phoneNumber',
- key: 'phone',
- value: '',
- col: 6,
- flexStyle: 'mr-3',
- label: '联系电话'
- },
- {
- slotName: 'industryId',
- key: 'industryId',
- value: null,
- label: '所在行业 *',
- outlined: true,
- clearable: false,
- itemText: 'label',
- itemValue: 'value',
- col: 6,
- noParam: true,
- rules: [v => !!v || '请选择所在行业']
- },
- {
- type: 'autocomplete',
- key: 'scale',
- value: null,
- label: '企业规模 *',
- outlined: true,
- clearable: false,
- itemText: 'label',
- itemValue: 'value',
- dictTypeName: 'menduner_scale',
- rules: [v => !!v || '请选择企业规模'],
- items: []
- },
- {
- type: 'datePicker',
- mode: 'month',
- key: 'openTime',
- value: null,
- format: 'YYYY-MM',
- disabledDate: true,
- label: '开业时间',
- labelWidth: 120,
- col: 6,
- flexStyle: 'mr-3',
- },
- {
- slotName: 'prepare',
- key: 'prepare',
- value: true,
- col: 6
- },
- {
- type: 'textarea',
- key: 'introduce',
- value: null,
- counter: 2000,
- rows: 6,
- label: '企业介绍 *',
- outlined: true,
- rules: [v => !!v || '请输入企业介绍']
- },
- ]
- })
- </script>
- <style scoped lang="scss">
- </style>
|