| | |
| | | } |
| | | export default defineComponent({ |
| | | name: 'limitedSpaceForm', |
| | | setup() { |
| | | props: { |
| | | lsForm: Object |
| | | }, |
| | | setup(props) { |
| | | const userInfo = useUserInfo() |
| | | const { userInfos } = storeToRefs(userInfo); |
| | | const state = reactive<stateType>({}); |
| | | const lsForm = reactive({ |
| | | lsDepartment: '', |
| | | lsApplyName: '', |
| | | lsUnitName: '', |
| | | lsUnit: '', |
| | | lsUnitMatterName: '' |
| | | }) |
| | | const lsForm1 = reactive(props.lsForm) |
| | | const ruleFormRef = ref<FormInstance>() |
| | | const lsFormRules = reactive<FormRules>({ |
| | | lsDepartment:[{required: true,message: '此处不可为空',trigger: 'blur'}], |
| | |
| | | }; |
| | | return { |
| | | renderMenu, |
| | | lsForm, |
| | | lsForm1, |
| | | lsFormRules, |
| | | ruleFormRef, |
| | | ...toRefs(state), |