浏览代码

Merge branch 'test' of http://192.168.2.236:10080/zhouna/icssDService into test

zhangxc 6 年之前
父节点
当前提交
7ef5c94c3b
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/js/scale.js

+ 4 - 4
src/js/scale.js

@@ -99,17 +99,17 @@ function renderCalcu(scaleList) {
       for (var y = 0; y < scaleList.group[j].rows[x].row.length; y++) {
         var str2 = ''
         for (var z = 0; z < scaleList.group[j].rows[x].row[y].details.length; z++) {
-          str2 += '<span class="groupRowRadio"><input  type=radio data-index=' + j + ',' + x + ',' + y + ',' + z + '  name=' + j + x + y + ' id=' + j + x + y + z
+          str2 += '<span class="groupRowRadio"><input  type="radio" data-index="' + j + ',' + x + ',' + y + ',' + z + '"  name="' + j + x + y + '" id="' + j + x + y + z
           if (scaleList.group[j].rows[x].row[y].details[z].select == 1) {
             str2 += ' checked="checked"'
           }
-          str2 += ' />' + '<label for="' + j + x + y + z + '">' + scaleList.group[j].rows[x].row[y].details[z].detailName + '(' + scaleList.group[j].rows[x].row[y].details[z].score + ')' + '</label>'
+          str2 += '" />' + '<label for="' + j + x + y + z + '">' + scaleList.group[j].rows[x].row[y].details[z].detailName + '(' + scaleList.group[j].rows[x].row[y].details[z].score + ')' + '</label>'
           if (scaleList.group[j].rows[x].row[y].details[z].state == 1) {
             str2 += '<span class="groupRowRecommend">智能推荐</span>'
           }
           str2 += '</span>'
         }
-        str += '<div class="groupRowWrapper ' + j + x + '" data-group=' + j + x + ' id="' + j + x + y + '"><div class="groupRowName"> <span class="groupRowIndex">'
+        str += '<div class="groupRowWrapper ' + j + x + '" data-group="' + j + x + '" id="' + j + x + y + '"><div class="groupRowName"> <span class="groupRowIndex">'
         if (y == 0) {
           str += (x + 1) + '.'
         }
@@ -122,7 +122,6 @@ function renderCalcu(scaleList) {
 
     }
     str += '</div>'
-
   }
   var calcuStr = '<div class="allCalcuBox"><span class="allCalcu">总分:'
   if (scaleList.calculate && scaleList.calculate.result) {
@@ -130,6 +129,7 @@ function renderCalcu(scaleList) {
   }
   calcuStr += '</span><span class="calcuBtn">得分<span></div>'
   var allStr = '<div class="calcuWrapper">' + str + calcuStr + '</div>'
+  console.log(allStr)
   $('.content').append(allStr)
 }