| | |
| | | <el-form |
| | | :model="dataForm" |
| | | v-loading="formLoading" |
| | | label-width="120px" |
| | | label-width="100px" |
| | | > |
| | | <el-row> |
| | | <el-col :span="12"> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="数据时间" prop="dataTime"> |
| | | <el-input v-model="dataForm.dataTime" readonly/> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="单位转换" prop="unittransfactor"> |
| | | <el-input v-model="dataForm.unittransfactor" readonly /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="数据值" prop="dataValue"> |
| | | <el-input v-model="dataForm.dataValue" readonly> |
| | | <template #append>{{ dataForm.unit }}</template> |
| | |
| | | <ContentWrap v-if="dataForm.pointType === 'CALCULATE'"> |
| | | <el-table border stripe v-loading="tableLoading" :data="list"> |
| | | <el-table-column type="index" header-align="center" align="center" fixed="left" width="50"/> |
| | | <el-table-column fixed label="测点编码" header-align="center" align="left" min-width="130" prop="pointNo" /> |
| | | <el-table-column fixed label="测点编码" header-align="center" align="left" min-width="150" prop="pointNo" /> |
| | | <el-table-column fixed label="测点名称" header-align="center" align="left" min-width="240" prop="pointName" /> |
| | | <el-table-column fixed label="当前值" header-align="center" align="left" min-width="240" prop="currentValue" /> |
| | | <el-table-column fixed label="当前值" header-align="center" align="left" min-width="150" prop="currentValue" /> |
| | | </el-table> |
| | | <!-- 分页 --> |
| | | <Pagination |
| | |
| | | |
| | | /** 打开弹窗 */ |
| | | const open = async (row: object) => { |
| | | console.log(row) |
| | | visible.value = true |
| | | resetForm() |
| | | dataForm.value.id = row.id; |
| | |
| | | dataForm.value.pointName = row.pointName; |
| | | dataForm.value.pointType = row.pointType; |
| | | dataForm.value.unit = row.unit; |
| | | dataForm.value.unittransfactor = row.unittransfactor; |
| | | getCurrentData() |
| | | queryParams.pointNo = row.pointNo; |
| | | if (dataForm.value.pointType === "CALCULATE") { |