unknown
2024-05-31 28214e38ea02cca66c747034f57f8dce912bee42
src/books/lifeCare/view/chapter005.vue
@@ -383,8 +383,12 @@
          </div>
          <p><br /></p>
          <p>3.小组讨论分析各位成员的一日食谱,评出最佳一日食谱。</p>
          <p class="pic-wall">(1)请用图片形式呈现,并贴在下面。<span class="btnUpload-list" @click="handFile('fileTwo')">
            <svg
          <p class="pic-wall">
            (1)请用图片形式呈现,并贴在下面。<span
              class="btnUpload-list"
              @click="handFile('fileTwo')"
            >
              <svg
                t="1717059899765"
                class="icon"
                viewBox="0 0 1024 1024"
@@ -402,8 +406,7 @@
                <path
                  d="M796.366227 796.430223v-142.199112a28.414224 28.414224 0 0 1 56.892444 0v142.199112h142.199113a28.414224 28.414224 0 0 1 0 56.828448h-142.199113v142.263109a28.414224 28.414224 0 0 1-56.95644 0v-142.263109h-142.135116a28.414224 28.414224 0 0 1 0-56.828448h142.199112z"
                  p-id="2635"
                >
              </path>
                ></path>
              </svg>
            </span>
          </p>
@@ -2598,23 +2601,79 @@
              <thead>
                <tr>
                  <th>婴幼儿姓名</th>
                  <th></th>
                  <td>
                    <textarea
                      rows="2"
                      style="min-width: 80px;max-width:80px;font-size: 14px"
                      v-model="chapter005.textTh.text1"
                      @blur="changeThVal($event, 'text1')"
                    />
                  </td>
                  <th>性别</th>
                  <th></th>
                  <td>
                    <textarea
                      rows="2"
                      style="min-width: 80px;max-width:80px;font-size: 14px"
                      v-model="chapter005.textTh.text2"
                      @blur="changeThVal($event, 'text2')"
                    />
                  </td>
                  <th>年龄</th>
                  <th></th>
                  <td>
                    <textarea
                      rows="2"
                      style="min-width: 80px;max-width:80px;font-size: 14px"
                      v-model="chapter005.textTh.text3"
                      @blur="changeThVal($event, 'text3')"
                    />
                  </td>
                  <th>班级</th>
                  <th></th>
                  <td>
                    <textarea
                      rows="2"
                      style="min-width: 80px;max-width:80px;font-size: 14px"
                      v-model="chapter005.textTh.text4"
                      @blur="changeThVal($event, 'text4')"
                    />
                  </td>
                </tr>
                <tr>
                  <th>家长姓名</th>
                  <th></th>
                  <td>
                    <textarea
                      rows="2"
                      style="min-width: 80px;max-width:80px;font-size: 14px"
                      v-model="chapter005.textTh.text5"
                      @blur="changeThVal($event, 'text5')"
                    />
                  </td>
                  <th>联系方式</th>
                  <th></th>
                  <td>
                    <textarea
                      rows="2"
                      style="min-width: 80px;max-width:80px;font-size: 14px"
                      v-model="chapter005.textTh.text6"
                      @blur="changeThVal($event, 'text6')"
                    />
                  </td>
                  <th>家庭住址</th>
                  <th></th>
                  <td>
                    <textarea
                      rows="2"
                      style="min-width: 80px;max-width:80px;font-size: 14px"
                      v-model="chapter005.textTh.text7"
                      @blur="changeThVal($event, 'text7')"
                    />
                  </td>
                  <th>记录时间</th>
                  <th></th>
                  <td>
                    <textarea
                      rows="2"
                      style="min-width: 80px;max-width:80px;font-size: 14px"
                      v-model="chapter005.textTh.text8"
                      @blur="changeThVal($event, 'text8')"
                    />
                  </td>
                </tr>
              </thead>
              <tbody>
@@ -2642,6 +2701,13 @@
                    </template>
                    <template v-else>
                      <input
                        :readonly="
                          cell == '问题表现' ||
                          cell == '原因分析' ||
                          cell == '采取措施' ||
                          cell == '效果分析' ||
                          cell == '后续建议'
                        "
                        type="text"
                        :value="chapter005.tableData156[rowIndex][cellIndex]"
                        @blur="
@@ -2658,6 +2724,7 @@
              </tbody>
            </table>
          </div>
          <p><br/></p>
          <h3 id="c020">
            <span class="bk-h3"
              ><span class="bj1-h3">六</span>  餐后保育 </span
@@ -3436,7 +3503,7 @@
          ["", "", "", ""],
        ],
        // 1-5-3
        headers153: ["适合月龄", "7-2月龄", "13-24月龄", "24以上月龄"], // 表头
        headers153: ["适合月龄", "7-12月龄", "13-24月龄", "24以上月龄"], // 表头
        tableData153: [
          // 二维数组作为表格数据
          ["食物名称", "", "", ""],
@@ -3458,7 +3525,7 @@
        headers155: [
          "喂养原则",
          "适合月龄",
          "7-2月龄",
          "7-12月龄",
          "13-24月龄",
          "24以上月龄",
        ],
@@ -3479,6 +3546,7 @@
        ],
        textAreaItem: {},
        radio: {},
        textTh: {},
      },
    };
  },
@@ -3643,6 +3711,11 @@
      this.$set(this.chapter005.tableData155[rowIndex], cellIndex, value);
      localStorage.setItem("chapter005", JSON.stringify(this.chapter005));
    },
    updateCell156(rowIndex, cellIndex, value) {
      // 更新单元格数据
      this.$set(this.chapter005.tableData156[rowIndex], cellIndex, value);
      localStorage.setItem("chapter005", JSON.stringify(this.chapter005));
    },
    onBlurChange() {
      localStorage.setItem("chapter005", JSON.stringify(this.chapter005));
    },
@@ -3686,13 +3759,19 @@
        });
    },
    handFile(str) {
      let dom = (this.container ? this.container : document).getElementById(str);
      let dom = (this.container ? this.container : document).getElementById(
        str
      );
      dom.click();
    },
    drawflowDataClick(val) {
      this.chapter005.drawData = val;
      localStorage.setItem("chapter005", JSON.stringify(this.chapter005));
    },
    changeThVal(e, val) {
      this.chapter005.textTh[val] = e.target.value;
      localStorage.setItem("chapter005", JSON.stringify(this.chapter005));
    },
  },
};
</script>