| | |
| | | :tableData="tableData" |
| | | :tableLoading="tableLoading" |
| | | height="400"> |
| | | <template #typeSlot="{ row }"> |
| | | {{ row.parameterType === 1 ? '数字' : (row.parameterType === 0 ? '文字' : '') }} |
| | | </template> |
| | | <template #slot="{ row }"> |
| | | <el-input v-model="row.testValue" |
| | | clearable |
| | |
| | | prop: "unit", |
| | | }, |
| | | { |
| | | label: "参数类型", |
| | | prop: "parameterType", |
| | | dataType: "slot", |
| | | slot: "typeSlot", |
| | | }, |
| | | { |
| | | label: "标准值", |
| | | prop: "standardValue", |
| | | }, |
| | | { |
| | | label: "最大值", |
| | | prop: "maxValue", |
| | | }, |
| | | { |
| | | label: "最小值", |
| | | prop: "minValue", |
| | | }, |
| | | { |
| | | label: "内控值", |
| | |
| | | ...item, |
| | | id: null, |
| | | })); |
| | | |
| | | if (tableData.value.some(item => item.parameterType === null || item.parameterType === undefined)) { |
| | | proxy.$modal.msgWarning("参数类型未配置,请配置指标维护模板"); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.error("获取标准参数失败:", error); |