| | |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="周期" prop="cycle"> |
| | | <el-input v-model="formData.cycle" placeholder="请输入周期"/> |
| | | <el-input-number v-model="formData.cycle" :min="0" clearable controls-position="right" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="模块配置" prop="modulenavconfig"> |
| | | <el-input v-model="formData.modulenavconfig" placeholder="请输入模块配置"/> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="预测时间" prop="predicttime"> |
| | | <el-input v-model="formData.predicttime" placeholder="请输入预测时间"/> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="采集时间" prop="collecttime"> |
| | | <el-input v-model="formData.collecttime" placeholder="请输入采集时间"/> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | id: undefined, |
| | | modulename: undefined, |
| | | moduletype: undefined, |
| | | cycle: undefined, |
| | | modulenavconfig: undefined, |
| | | predicttime: undefined, |
| | | collecttime: undefined |
| | | cycle: undefined |
| | | }) |
| | | const formRules = reactive({ |
| | | modulename: [{required: true, message: '名称不能为空', trigger: 'blur'}], |
| | |
| | | id: undefined, |
| | | modulename: undefined, |
| | | moduletype: undefined, |
| | | cycle: undefined, |
| | | modulenavconfig: undefined, |
| | | predicttime: undefined, |
| | | collecttime: undefined |
| | | cycle: undefined |
| | | } |
| | | formRef.value?.resetFields() |
| | | } |