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"