| | |
| | | } |
| | | export default defineComponent({ |
| | | name: 'tempElectForm', |
| | | setup() { |
| | | props: { |
| | | teForm: Object |
| | | }, |
| | | setup(props) { |
| | | const userInfo = useUserInfo() |
| | | const { userInfos } = storeToRefs(userInfo); |
| | | const state = reactive<stateType>({}); |
| | | const teForm = reactive({ |
| | | teDepartment: '', |
| | | teApplyName: '', |
| | | teLevel: '', |
| | | teHeight: '' |
| | | }) |
| | | const teForm1 = reactive(props.teForm) |
| | | const ruleFormRef = ref<FormInstance>() |
| | | const teRules = reactive<FormRules>({ |
| | | teDepartment:[{required: true,message: '此处不可为空',trigger: 'blur'}], |
| | |
| | | }; |
| | | return { |
| | | renderMenu, |
| | | teForm, |
| | | teForm1, |
| | | ruleFormRef, |
| | | teRules, |
| | | ...toRefs(state), |