| | |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="是否累计" prop="mmPredictItem.iscumulant"> |
| | | <el-select v-model="dataForm.mmPredictItem.iscumulant" placeholder="请选择"> |
| | | <el-option |
| | | v-for="dict in getIntDictOptions(DICT_TYPE.COM_IS_INT)" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="累计除数" prop="mmPredictItem.cumuldivisor"> |
| | | <el-input-number v-model="dataForm.mmPredictItem.cumuldivisor" style="width: 100%" |
| | | :min="1" :max="60" |
| | | :controls="false"/> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="累计测点"> |
| | | <el-select |
| | | v-model="dataForm.mmPredictItem.cumulpoint" |
| | | filterable |
| | | clearable |
| | | placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in pointList" |
| | | :key="item.id" |
| | | :label="item.pointName" |
| | | :value="item.id"/> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="管网" prop="dmModuleItem.moduleid"> |
| | | <el-select v-model="dataForm.dmModuleItem.moduleid" placeholder="请选择" @change="clearExpressionList"> |
| | | <el-option |
| | |
| | | import * as DaPoint from '@/api/data/da/point' |
| | | import {useUpload} from '@/api/model/pre/item' |
| | | import * as ScheduleModelApi from '@/api/model/sche/model' |
| | | import {getPointSimpleList} from "@/api/data/da/point"; |
| | | |
| | | const {uploadUrl, httpRequest} = useUpload() |
| | | |
| | |
| | | predictphase: undefined, |
| | | workchecked: 0, |
| | | unittransfactor: undefined, |
| | | saveindex: undefined |
| | | saveindex: undefined, |
| | | iscumulant: undefined, |
| | | cumuldivisor: undefined, |
| | | cumulpoint: undefined, |
| | | }, |
| | | dmModuleItem: { |
| | | id: undefined, |
| | |
| | | trigger: 'blur' |
| | | }], |
| | | 'mmPredictItem.status': [{required: true, message: '是否启用不能为空', trigger: 'blur'}], |
| | | 'mmPredictItem.iscumulant': [{required: true, message: '是否累计不能为空', trigger: 'blur'}], |
| | | 'mmPredictItem.cumuldivisor': [{required: true, message: '累计除数不能为空', trigger: 'blur'}], |
| | | 'dmModuleItem.moduleid': [{required: true, message: '管网不能为空', trigger: 'blur'}], |
| | | 'dmModuleItem.itemorder': [{required: true, message: '排序不能为空', trigger: 'blur'}], |
| | | 'mmPredictItem.predictlength': [{required: true, message: '预测长度不能为空', trigger: 'blur'}], |
| | |
| | | mpkProjectList.value = await ProjectApi.list() |
| | | |
| | | // 获取数据点列表 |
| | | pointNoList.value = await DaPoint.getPointList(queryParams) |
| | | pointNoList.value = await DaPoint.getPointSimpleList(queryParams) |
| | | if (pointNoList.value.length > 0) { |
| | | pointList.value = [] |
| | | pointNoList.value.forEach(function (value) { |
| | |
| | | predictphase: '', |
| | | workchecked: 0, |
| | | unittransfactor: '', |
| | | saveindex: '' |
| | | saveindex: '', |
| | | iscumulant: 0, |
| | | cumuldivisor: 60, |
| | | cumulpoint: '', |
| | | }, |
| | | dmModuleItem: { |
| | | id: '', |