| | |
| | | <template> |
| | | <div class="comp-container"> |
| | | <el-form :model="fwForm" label-width="150px" :rules="fwRules" ref="ruleFormRef"> |
| | | <el-form :model="fwForm" label-width="150px" :rules="fwRules" ref="fwRef"> |
| | | <div class="homeCard"> |
| | | <el-row> |
| | | <el-col :span="8"> |
| | |
| | | const { userInfos } = storeToRefs(userInfo); |
| | | const state = reactive<stateType>({}); |
| | | const fwForm1 = reactive(props.fwForm) |
| | | const ruleFormRef = ref<FormInstance>() |
| | | const fwRef = ref<FormInstance>() |
| | | const fwRules = reactive<FormRules>({ |
| | | fwDepartment:[{required: true,message: '此处不可为空'}], |
| | | fwApplyName:[{required: true,message: '此处不可为空'}], |
| | |
| | | fwRiskIdentify: [{required: true,message: '此处不可为空'}], |
| | | fwWorkWay: [{required: true,message: '此处不可为空'}] |
| | | }) |
| | | const validateForm = async () => { |
| | | let flag = null |
| | | await fwRef.value.validate(valid=>{ |
| | | if(valid){ |
| | | flag = true |
| | | }else{ |
| | | flag = false |
| | | } |
| | | }) |
| | | return flag |
| | | } |
| | | // 折线图 |
| | | const renderMenu = async (value: string) => { |
| | | Session.set('projectId',value) |
| | |
| | | renderMenu, |
| | | Search, |
| | | fwForm1, |
| | | ruleFormRef, |
| | | fwRules, |
| | | fwRef, |
| | | validateForm, |
| | | ...toRefs(state), |
| | | }; |
| | | }, |