From 381eb348f95dda0376d5e713258c4e770897b245 Mon Sep 17 00:00:00 2001 From: pengyb <726475269@qq.com> Date: Wed, 21 Aug 2024 14:47:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E6=8E=A5=E5=8F=A3=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hxy-web/js/wireManager/project/projectAdd.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hxy-web/js/wireManager/project/projectAdd.js b/hxy-web/js/wireManager/project/projectAdd.js index 1f9480a..5791eee 100644 --- a/hxy-web/js/wireManager/project/projectAdd.js +++ b/hxy-web/js/wireManager/project/projectAdd.js @@ -114,7 +114,17 @@ function addData(formData) { * @returns {boolean} */ function updateData(formData) { - formData.field.isTwo = workTypeValue; + var isTwo; + var isTwos = $('.btnOption1 > div'); + for (var i = 0; i < isTwos.length; i++) { + if($(isTwos[i]).attr("value")){ + isTwo = $(isTwos[i]).attr("value"); + } + } + + + + formData.field.isTwo = isTwo; formData.field.yjId = $("#taskSourceId").attr("stationId"); formData.field.yjName = $("#taskSourceId").attr("stationName"); // 加载提示