| | |
| | | } |
| | | export default defineComponent({ |
| | | name: 'highWorkForm', |
| | | setup() { |
| | | props:{ |
| | | hwForm: Object |
| | | }, |
| | | setup(props) { |
| | | const userInfo = useUserInfo() |
| | | const { userInfos } = storeToRefs(userInfo); |
| | | const state = reactive<stateType>({}); |
| | | const hwForm = reactive({ |
| | | hwDepartment: '', |
| | | hwApplyName: '', |
| | | hwLevel: '', |
| | | hwHeight: '' |
| | | }) |
| | | const hwForm1 = reactive(props.hwForm) |
| | | const ruleFormRef = ref<FormInstance>() |
| | | const hwRules = reactive<FormRules>({ |
| | | hwDepartment:[{required: true,message: '此处不可为空',trigger: 'blur'}], |
| | |
| | | }; |
| | | return { |
| | | renderMenu, |
| | | hwForm, |
| | | hwForm1, |
| | | ruleFormRef, |
| | | hwRules, |
| | | ...toRefs(state), |