闫增涛
2024-06-05 23ebc0d9ee7d4b06916478f84b411d0406f11a3a
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
@@ -3035,7 +3102,7 @@
  </div>
</template>
<script>
import getResourcePath from "@/assets/methods/resources.js";
import { getResourcePath } from "@/assets/methods/resources.js";
import examinations from "@/components/examinations/index.vue";
import { getFileMd5, getPublicImage } from "../js/tool.js";
import drawflow from "@/components/drawflow";
@@ -3049,6 +3116,10 @@
    },
    questionData: {
      type: Object,
    },
    isSearch: {
      type: Boolean,
      default: false,
    },
  },
  data() {
@@ -3436,7 +3507,7 @@
          ["", "", "", ""],
        ],
        // 1-5-3
        headers153: ["适合月龄", "7-2月龄", "13-24月龄", "24以上月龄"], // 表头
        headers153: ["适合月龄", "7-12月龄", "13-24月龄", "24以上月龄"], // 表头
        tableData153: [
          // 二维数组作为表格数据
          ["食物名称", "", "", ""],
@@ -3458,7 +3529,7 @@
        headers155: [
          "喂养原则",
          "适合月龄",
          "7-2月龄",
          "7-12月龄",
          "13-24月龄",
          "24以上月龄",
        ],
@@ -3479,6 +3550,7 @@
        ],
        textAreaItem: {},
        radio: {},
        textTh: {},
      },
    };
  },
@@ -3487,30 +3559,24 @@
    drawflow,
  },
  async created() {
    const localData = JSON.parse(localStorage.getItem("chapter005"));
    if (localData) {
      this.chapter005 = { ...Object.assign(this.chapter005, localData) };
    if (!this.isSearch) {
      const localData = JSON.parse(localStorage.getItem("chapter005"));
      if (localData) {
        this.chapter005 = { ...Object.assign(this.chapter005, localData) };
      }
      this.chapter005.videOneUrl = await getResourcePath(
        "439b0bde62a5098875c77e2492676577"
      );
      this.chapter005.videoTwoUrl = await getResourcePath(
        "1a878261410b01ee8e4e0602a1fe935f"
      );
      this.chapter005.videoFourUrl = await getResourcePath(
        "6cf2619beb704b3d79de04f0775c8ba3"
      );
      this.chapter005.videoFiveUrl = await getResourcePath(
        "8400384441ad9236d5eab24f500ec2c7"
      );
    }
    this.chapter005.videOneUrl = getResourcePath(
      "439b0bde62a5098875c77e2492676577"
    );
    this.chapter005.videoTwoUrl = getResourcePath(
      "1a878261410b01ee8e4e0602a1fe935f"
    );
    this.chapter005.videoFourUrl = getResourcePath(
      "6cf2619beb704b3d79de04f0775c8ba3"
    );
    this.chapter005.videoFiveUrl = getResourcePath(
      "8400384441ad9236d5eab24f500ec2c7"
    );
    this.chapter005.videOneUrl =
      "https://jsek.bnuic.com/file/api/ApiDownload?md5=439b0bde62a5098875c77e2492676577";
    this.chapter005.videoTwoUrl =
      "https://jsek.bnuic.com/file/api/ApiDownload?md5=1a878261410b01ee8e4e0602a1fe935f";
    this.chapter005.videoFourUrl =
      "https://jsek.bnuic.com/file/api/ApiDownload?md5=6cf2619beb704b3d79de04f0775c8ba3";
    this.chapter005.videoFiveUrl =
      "https://jsek.bnuic.com/file/api/ApiDownload?md5=8400384441ad9236d5eab24f500ec2c7";
  },
  methods: {
    activityOne() {
@@ -3643,6 +3709,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));
    },
@@ -3676,8 +3747,8 @@
            if (type == "3") {
              that.chapter005.pictrueListThree.push(getPublicImage(e));
            }
            that.isLoding = false;
            localStorage.setItem("chapter005", JSON.stringify(this.chapter005));
            that.$emit("Upload_initViewer", "");
            localStorage.setItem("chapter005", JSON.stringify(that.chapter005));
          }, 1000);
        })
        .catch((e) => {
@@ -3686,13 +3757,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>