| | |
| | | startA200ParamPl, |
| | | } from "./api"; |
| | | import useElement from "@/hooks/useElement.js"; |
| | | import testVal from "@/assets/js/testVal.js"; |
| | | import const_params from "./const_params.js"; |
| | | |
| | | const { $alert, $loading, $message, $confirm } = useElement(); |
| | | |
| | | const $emit = defineEmits(["update:model-value"]); |
| | |
| | | required: true, |
| | | message: "不能为空", |
| | | trigger: "blur", |
| | | }, |
| | | { |
| | | validator(rule, value, callback) { |
| | | testVal(rule, value, callback, const_params.Rules.batteryNumber); |
| | | }, |
| | | trigger: ['blur', 'change'], |
| | | }, |
| | | ], |
| | | diffBatteryVoltage: [ |
| | |
| | | } |
| | | |
| | | onMounted(() => { |
| | | // testType 有可能出现0值这种不合法数据 取值范围是1 / 2 |
| | | if (props.isBatch) { |
| | | // console.log('dev0', props.devs[0], '============='); |
| | | params.testType = props.devs[0].state.testType; |
| | | params.testType = props.devs[0].state.testType || 1; |
| | | } else { |
| | | params.testType = props.devs.state.testType; |
| | | params.testType = props.devs.state.testType || 1; |
| | | // console.log("type", params.testType, "============="); |
| | | } |
| | | getParams(); |