riku
2022-10-21 0f2fdf16f47bd2d1d8fee86449c3a5095ccc8c23
pages/m_assessment/grade/grade.js
@@ -116,11 +116,13 @@
  onSubmit: function () {
    var itemList = []
    var totalcount = 0
    var evaluations = this.data.evaluations
    for (let i = 0; i < evaluations.length; i++) {
      const e1 = evaluations[i];
      for (let y = 0; y < e1.sub1.length; y++) {
        const e2 = e1.sub1[y];
        totalcount++
        for (let t = 0; t < e2.sub2.length; t++) {
          const s2 = e2.sub2[t];
          if (s2.select) {
@@ -133,9 +135,9 @@
      }
    }
    if (itemList.length == 0) {
    if (itemList.length < totalcount) {
      wx.showToast({
        title: '请至少选择一项进行评估',
        title: '请完成所有评估项',
        icon: 'none',
      })
    } else {