| | |
| | | <el-form-item prop="extendSpeed"> |
| | | <template #label> |
| | | <span style="color: rgba(0, 9, 56, 1); font-size: 0.88rem" |
| | | >èªå¨ä¼¸åºé度m/minï¼</span |
| | | >å·¦PLCèªå¨ä¼¸åºç¼©åé度m/minï¼</span |
| | | > |
| | | </template> |
| | | <el-input |
| | |
| | | <el-form-item prop="retractionSpeed"> |
| | | <template #label> |
| | | <span style="color: rgba(0, 9, 56, 1); font-size: 0.88rem" |
| | | >èªå¨ç¼©åé度m/minï¼</span |
| | | >å³PLCèªå¨ä¼¸åºç¼©åé度m/minï¼</span |
| | | > |
| | | </template> |
| | | <el-input |
| | |
| | | <el-form-item prop="manualExtend"> |
| | | <template #label> |
| | | <span style="color: rgba(0, 9, 56, 1); font-size: 0.88rem" |
| | | >æå¨ä¼¸åºé度m/minï¼</span |
| | | >å·¦PLCæå¨ä¼¸åºç¼©åé度m/minï¼</span |
| | | > |
| | | </template> |
| | | <el-input |
| | |
| | | <el-form-item prop="manualRetraction"> |
| | | <template #label> |
| | | <span style="color: rgba(0, 9, 56, 1); font-size: 0.88rem" |
| | | >æå¨ç¼©åé度m/minï¼</span |
| | | >å³PLCæå¨ä¼¸åºç¼©åé度m/minï¼</span |
| | | > |
| | | </template> |
| | | <el-input |
| | |
| | | </div> |
| | | </template> |
| | | <script setup> |
| | | import { ref } from "vue"; |
| | | import { onMounted, ref } from "vue"; |
| | | import { ElMessage } from "element-plus"; |
| | | import { AddData } from "@/api/newapi/Parameters"; |
| | | import { AddData, GetParameter } from "@/api/newapi/Parameters"; |
| | | const userInfo = JSON.parse(localStorage.getItem("user")); |
| | | const ruleForm = ref({ |
| | | creater: "string", |
| | |
| | | manualExtend: 0, |
| | | manualRetraction: 0, |
| | | depid: userInfo.depid, |
| | | account: userInfo.userName, |
| | | }); |
| | | |
| | | //ä¿å |
| | |
| | | } |
| | | }); |
| | | }; |
| | | //è·ååæ° |
| | | const getParameter = () => { |
| | | GetParameter().then((res) => { |
| | | if (res.code == 0) { |
| | | ruleForm.value.extendSpeed = res.data == null ? 0 : res.data.extendSpeed; |
| | | ruleForm.value.retractionSpeed = |
| | | res.data == null ? 0 : res.data.retractionSpeed; |
| | | ruleForm.value.manualExtend = |
| | | res.data == null ? 0 : res.data.manualExtend; |
| | | ruleForm.value.manualRetraction = |
| | | res.data == null ? 0 : res.data.manualRetraction; |
| | | } |
| | | }); |
| | | }; |
| | | onMounted(() => { |
| | | getParameter(); |
| | | }); |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .Parametersettings { |