From 75af002d256d669348bf7fe60bbd858b573c95d7 Mon Sep 17 00:00:00 2001 From: yanyan Date: Mon, 5 Feb 2024 11:37:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=AD=94=E6=A1=88=E9=80=89?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/project/question/index.html | 33 +++++++++++-------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/question/index.html b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/question/index.html index 481026db..2d584462 100644 --- a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/question/index.html +++ b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/question/index.html @@ -300,20 +300,19 @@ break; case 'template': - var template = ` -
-
答案
-
- -
-
- `; - editor.addNode('template', 1, 1, pos_x, pos_y, 'template', {"template": 'Write your template'}, template); + var guid = getUuid(); + var template ="
" + + "
答案
" + + "
" + + " " + + "
" + + "
"; + editor.addNode(guid, 1, 1, pos_x, pos_y, 'template', {"option": 'A', "value": ''}, template); break; case 'multiple': var multiple = ` @@ -412,6 +411,12 @@ $.modal.open("新增题目", "/small/project/question/addNew?guid="+guid+"&parentId=" + sceneRole.guid, 600, 450); } + function selectAnswer(guid,obj){ + let val = $(obj).val(); + //editor.getNodesFromName(guid).at(0).data = JSON.stringify(val); + + } + function getUuid() { var s = []; var hexDigits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"