| | |
| | | } |
| | | export default defineComponent({ |
| | | name: 'cutLineForm', |
| | | setup() { |
| | | props: { |
| | | clForm: Object |
| | | }, |
| | | setup(props) { |
| | | const userInfo = useUserInfo() |
| | | const { userInfos } = storeToRefs(userInfo); |
| | | const state = reactive<stateType>({}); |
| | | const clForm = reactive({ |
| | | clDepartment: '', |
| | | clApplyName: '', |
| | | clReason: '', |
| | | clUnits: [], |
| | | fileList: [] |
| | | }) |
| | | const clForm1 = reactive(props.clForm) |
| | | const ruleFormRef = ref<FormInstance>() |
| | | const clFormRules = reactive<FormRules>({ |
| | | clDepartment:[{required: true,message: '此处不可为空',trigger: 'blur'}], |
| | |
| | | }; |
| | | return { |
| | | renderMenu, |
| | | clForm, |
| | | clForm1, |
| | | Search, |
| | | clFormRules, |
| | | ruleFormRef, |
| | | fileList, |