dengzedong
2024-11-12 d8e4bea595e2aac3a1ea1bf7750ee7846f545f51
src/views/model/pre/dm/DmModuleForm.vue
@@ -22,24 +22,12 @@
      <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>
@@ -65,10 +53,7 @@
  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'}],
@@ -126,10 +111,7 @@
    id: undefined,
    modulename: undefined,
    moduletype: undefined,
    cycle: undefined,
    modulenavconfig: undefined,
    predicttime: undefined,
    collecttime: undefined
    cycle: undefined
  }
  formRef.value?.resetFields()
}