Browse Source

Merge branch 'beta' into HK

lsc 1 year ago
parent
commit
c14d3fd2c3
2 changed files with 1510 additions and 62 deletions
  1. 735 6
      src/components/pages/easy/addCourse.vue
  2. 775 56
      src/components/pages/task/addCourse.vue

+ 735 - 6
src/components/pages/easy/addCourse.vue

@@ -449,6 +449,699 @@
                             ].taskDetail
                             "></textarea>
                       </div>
+                      <div class="toolChoose" style="padding: 0 0 0 30px">
+                        <div class="tools">
+                          <div class="leftTools" style="
+                          width: 95%;
+                          padding: 0 0 15px 0;
+                          border-bottom: 1px solid #efefef;
+                          margin-bottom: 15px;
+                        " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
+                            <div>
+                              <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
+                                style="margin: 0 0 20px 0; width: 71.5% !important"
+                                v-model="itemTool.toolDetail"></textarea>
+                            </div>
+                            <div style="
+                            display: flex;
+                            flex-direction: row;
+                            align-items: baseline;
+                            flex-wrap: nowrap;
+                            justify-content: flex-start;
+                            position: relative;
+                          ">
+                              <div style="margin-right: 20px; font-weight: bold">
+                                步骤 {{ toolIndex + 1 }} :
+                              </div>
+                              <div class="chooseWho">
+                                <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
+                                  " @click="(itemTool.toolType = 0), $forceUpdate()">
+                                  互动类
+                                </div>
+                                <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
+                                  " @click="(itemTool.toolType = 1), $forceUpdate()">
+                                  思维类
+                                </div>
+                                <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
+                                  " @click="(itemTool.toolType = 2), $forceUpdate()">
+                                  评价类
+                                </div>
+                                <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
+                                  " @click="(itemTool.toolType = 3), $forceUpdate()">
+                                  编程类
+                                </div>
+                                <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
+                                  " @click="(itemTool.toolType = 5), $forceUpdate()">
+                                  学科类
+                                </div>
+                                <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
+                                  " @click="(itemTool.toolType = 4), $forceUpdate()">
+                                  其他
+                                </div>
+                              </div>
+                              <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
+                                v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
+                            </div>
+
+                            <div style="min-height: 163px">
+                              <div class="toolSort" v-if="itemTool.toolType == 0">
+                                <!-- <div class="tool">
+                              <div
+                                class="whiteBIcon"
+                                @click="addTools(8, itemTaskIndex, toolIndex)"
+                              >
+                                <img src="../../../assets/icon/secondToolList/library.png" alt />
+                                <div style="margin: 5px 0">素材库</div>
+                              </div>
+                              <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
+                                <img
+                                  src="../../../assets/icon/checkNo.png"
+                                  alt
+                                  v-if="itemTool.tool.indexOf(8) == -1"
+                                />
+                                <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
+                                    alt /><span>已选择</span></div>
+                              </div>
+                            </div>-->
+                                <!-- <div class="tool">
+                              <div
+                                class="whiteBIcon"
+                                @click="addTools(17, itemTaskIndex, toolIndex)"
+                              >
+                                <img
+                                  src="../../../assets/icon/secondToolList/library.png"
+                                  alt
+                               />
+                                <div style="margin: 5px 0">学习资料</div>
+                              </div>
+                              <div
+                                class="check"
+                                @click="addTools(17, itemTaskIndex, toolIndex)"
+                              >
+                                <img
+                                  src="../../../assets/icon/checkNo.png"
+                                  alt
+                                  v-if="itemTool.tool.indexOf(17) == -1"
+                                />
+                                <img
+                                  src="../../../assets/icon/checkedIs.png"
+                                  alt
+                                  v-else
+                                />
+                              </div>10
+                            </div> -->
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/time.png" alt />
+                                    <div style="margin: 5px 0">倒计时</div>
+                                  </div>
+                                  <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(10) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/group.png" alt />
+                                    <div style="margin: 5px 0">学生分组</div>
+                                  </div>
+                                  <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(49) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
+                                    <div style="margin: 5px 0">交互视频</div>
+                                  </div>
+                                  <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(62) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                              </div>
+                              <div class="toolSort" v-if="itemTool.toolType == 1">
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
+                                    <div style="margin: 5px 0">思维网格</div>
+                                  </div>
+                                  <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(7) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
+                                    <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
+                                    <div style="margin: 5px 0">电子白板</div>
+                                  </div>
+                                  <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(1) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <!-- <div class="tool">
+                              <div
+                                class="whiteBIcon"
+                                @click="addTools(2, itemTaskIndex, toolIndex)"
+                              >
+                                <img
+                                  src="../../../assets/icon/secondToolList/note.png"
+                                  alt
+                                />
+                                <div style="margin: 5px 0">便签</div>
+                              </div>
+                              <div
+                                class="check"
+                                @click="addTools(2, itemTaskIndex, toolIndex)"
+                              >
+                                <img
+                                  src="../../../assets/icon/checkNo.png"
+                                  alt
+                                  v-if="itemTool.tool.indexOf(2) == -1"
+                                />
+                                <div class="checkDiv" v-else>
+                                  <img
+                                    src="../../../assets/icon/checkedIs.png"
+                                    alt
+                                  /><span>已选择</span>
+                                </div>
+                              </div>
+                            </div> -->
+                                <!-- <div class="tool">
+                              <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
+                                <img src="../../../assets/icon/secondToolList/doc.png" alt />
+                                <div style="margin: 5px 0">协同文档</div>
+                              </div>
+                              <div
+                                class="check"
+                                @click="addTools(6, itemTaskIndex, toolIndex)"
+                              >
+                                <img
+                                  src="../../../assets/icon/checkNo.png"
+                                  alt
+                                  v-if="itemTool.tool.indexOf(6) == -1"
+                                />
+                                <div class="checkDiv" v-else>
+                                  <img
+                                    src="../../../assets/icon/checkedIs.png"
+                                    alt
+                                  /><span>已选择</span>
+                                </div>
+                              </div>
+                            </div> -->
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/text.png" alt />
+                                    <div style="margin: 5px 0">文档</div>
+                                  </div>
+                                  <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(52) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
+                                    <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
+                                    <div style="margin: 5px 0">思维导图</div>
+                                  </div>
+                                  <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(3) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/table.png" alt />
+                                    <div style="margin: 5px 0">表格</div>
+                                  </div>
+                                  <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(48) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                              </div>
+                              <div class="toolSort" v-if="itemTool.toolType == 2">
+                                <!-- <div class="tool">
+                              <div
+                                class="whiteBIcon"
+                                @click="addTools(5, itemTaskIndex, toolIndex)"
+                              >
+                                <img
+                                  src="../../../assets/icon/thirdToolList/score.png"
+                                  alt
+                                />
+                                <div style="margin: 5px 0">量规评分</div>
+                              </div>
+                              <div
+                                class="check"
+                                @click="addTools(5, itemTaskIndex, toolIndex)"
+                              >
+                                <img
+                                  src="../../../assets/icon/checkNo.png"
+                                  alt
+                                  v-if="itemTool.tool.indexOf(5) == -1"
+                                />
+                                <img
+                                  src="../../../assets/icon/checkedIs.png"
+                                  alt
+                                  v-else
+                                />
+                              </div>
+                            </div>-->
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/ask.png" alt />
+                                    <div style="margin: 5px 0">问卷调查</div>
+                                  </div>
+                                  <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(4) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/choose.png" alt />
+                                    <div style="margin: 5px 0">选择题</div>
+                                  </div>
+                                  <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(45) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/answer.png" alt />
+                                    <div style="margin: 5px 0">问答工具</div>
+                                  </div>
+                                  <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(15) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/work.png" alt />
+                                    <div style="margin: 5px 0">作业提交</div>
+                                  </div>
+                                  <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(16) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(50, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
+                                    <div style="margin: 5px 0">批量上传</div>
+                                  </div>
+                                  <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(50) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/eval.png" alt />
+                                    <div style="margin: 5px 0">个人评价</div>
+                                  </div>
+                                  <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(40) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/select.png" alt />
+                                    <div style="margin: 5px 0">选择填空</div>
+                                  </div>
+                                  <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(41) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
+                                    <div style="margin: 5px 0">连词成句</div>
+                                  </div>
+                                  <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(47) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <!-- <div class="tool">
+                              <div
+                                class="whiteBIcon"
+                                @click="openTools(itemTaskIndex, 42, toolIndex)"
+                              >
+                                <img
+                                  src="../../../assets/icon/thirdToolList/mp3.png"
+                                  alt
+                                />
+                                <div style="margin: 5px 0">上传音频</div>
+                              </div>
+                              <div
+                                class="check"
+                                @click="addTools(42, itemTaskIndex, toolIndex)"
+                              >
+                                <img
+                                  src="../../../assets/icon/checkNo.png"
+                                  alt
+                                  v-if="itemTool.tool.indexOf(42) == -1"
+                                />
+                                <img
+                                  src="../../../assets/icon/checkedIs.png"
+                                  alt
+                                  v-else
+                                />
+                              </div>
+                            </div> -->
+                              </div>
+                              <div class="toolSort" v-if="itemTool.toolType == 3">
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
+                                    <div style="margin: 5px 0">训练平台</div>
+                                  </div>
+                                  <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(18) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/program.png" alt />
+                                    <div style="margin: 5px 0">编程平台</div>
+                                  </div>
+                                  <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(21) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
+                                    <div style="margin: 5px 0">AI体验</div>
+                                  </div>
+                                  <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(22) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
+                                    <div style="margin: 5px 0">Python</div>
+                                  </div>
+                                  <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(23) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
+                                    <div style="margin: 5px 0">AI平台</div>
+                                  </div>
+                                  <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(24) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(32, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/code.png" alt />
+                                    <div style="margin: 5px 0">源码编辑</div>
+                                  </div>
+                                  <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(32) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(57, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
+                                    <div style="margin: 5px 0">CocoPi</div>
+                                  </div>
+                                  <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(57) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(63, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
+                                    <div style="margin: 5px 0">海龟编程</div>
+                                  </div>
+                                  <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(63) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                              </div>
+                              <div class="toolSort" v-if="itemTool.toolType == 5">
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/secondToolList/translation.png" alt />
+                                    <div style="margin: 5px 0">翻译</div>
+                                  </div>
+                                  <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(28) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/secondToolList/mohe.png" alt />
+                                    <div style="margin: 5px 0">魔盒识字</div>
+                                  </div>
+                                  <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(37) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/secondToolList/24game.png" alt />
+                                    <div style="margin: 5px 0">24点</div>
+                                  </div>
+                                  <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(38) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
+                                    <div style="margin: 5px 0">数学画板</div>
+                                  </div>
+                                  <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(31) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
+                                    <div style="margin: 5px 0">GeoGebra</div>
+                                  </div>
+                                  <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(39) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/car.png" alt />
+                                    <div style="margin: 5px 0">模拟驾驶</div>
+                                  </div>
+                                  <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(58) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
+                                    <div style="margin: 5px 0">路径搜索</div>
+                                  </div>
+                                  <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(59) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
+                                    <div style="margin: 5px 0">深度学习</div>
+                                  </div>
+                                  <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(60) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
+                                    <div style="margin: 5px 0">全历史</div>
+                                  </div>
+                                  <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(61) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                              </div>
+                              <div class="toolSort" v-if="itemTool.toolType == 4">
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
+                                    <div style="margin: 5px 0">课程设计</div>
+                                  </div>
+                                  <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(26) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
+                                    <div style="margin: 5px 0">目标管理</div>
+                                  </div>
+                                  <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(25) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <!-- <div class="tool">
+                              <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
+                                <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
+                                <div style="margin: 5px 0">汉字宫</div>
+                              </div>
+                              <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
+                                <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
+                                <div class="checkDiv" v-else>
+                                  <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                </div>
+                              </div>
+                            </div> -->
+                              </div>
+                            </div>
+                          </div>
+                          <div class="addToolFun" @click="addToolFun(itemTaskIndex)">
+                            <div class="addToolImg">
+                              <img src="../../../assets/icon/add.png" alt />
+                            </div>
+                            <div>添加工具</div>
+                          </div>
+                        </div>
+                      </div>
                     </div>
                     <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
                       <div>
@@ -3621,7 +4314,6 @@ export default {
           return;
         } else {
           this.addWork();
-          this.steps = 4
         }
       } else {
         if (this.courseName == "") {
@@ -3633,7 +4325,6 @@ export default {
           } else {
             this.updateWork();
           }
-          this.steps = 4
         }
       }
       this.$refs.stepBox.scrollTop = 0;
@@ -4842,6 +5533,25 @@ export default {
           this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
           this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
 
+          if (
+            this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
+          ) {
+            for (
+              var z = 0;
+              z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
+              z++
+            ) {
+              if (
+                !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
+                  .length
+              ) {
+                this.$message.error("请把工具添加完整");
+                cPan = 2;
+                break;
+              }
+            }
+          }
+
           if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
             this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
               i
@@ -4854,7 +5564,6 @@ export default {
       this.inputShow = true;
 
       if (cPan == 2) {
-        this.steps--;
         return;
       }
       for (var i = 0; i < this.unitJson.length; i++) {
@@ -4903,6 +5612,7 @@ export default {
           this.cid = res.data.courseId;
           this.courseUserid = this.userid;
           this.islogin = true;
+          this.steps = 4
         })
         .catch((err) => {
           this.$message.error("网络不佳");
@@ -4935,7 +5645,6 @@ export default {
       }
       this.inputShow = true;
       if (cPan == 2) {
-        this.steps--;
         return;
       }
       let params = [
@@ -4970,6 +5679,26 @@ export default {
         ) {
           this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
           this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
+
+          if (
+            this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
+          ) {
+            for (
+              var z = 0;
+              z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
+              z++
+            ) {
+              if (
+                !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
+                  .length
+              ) {
+                this.$message.error("请把工具添加完整");
+                cPan = 2;
+                break;
+              }
+            }
+          }
+
           if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
             this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
               i
@@ -4981,7 +5710,6 @@ export default {
       }
       this.inputShow = true;
       if (cPan == 2) {
-        this.steps--;
         return;
       }
       for (var i = 0; i < this.unitJson.length; i++) {
@@ -5034,6 +5762,7 @@ export default {
           }
           this.number = this.nbOrder;
           this.courseId = this.cid;
+          this.steps = 4
         })
         .catch((err) => {
           this.$message.error("网络不佳");
@@ -9176,7 +9905,7 @@ ol {
   border: 1px dashed;
   border-radius: 5px;
   height: 50px;
-  margin: 35px auto 0;
+  margin: 20px auto 35px;
   cursor: pointer;
 }
 

+ 775 - 56
src/components/pages/task/addCourse.vue

@@ -241,18 +241,11 @@
                           itemTaskIndex
                         ].taskDetail
                           " @change="change"></editor-bar> -->
-                        <textarea
-                          rows="2"
-                          class="binfo_input"
-                          placeholder="请输入任务描述"
-                          cols
-                          style="width: 90% !important; resize:none"
-                          v-model="
-                            unitJson[unitIndex].chapterInfo[0].taskJson[
+                        <textarea rows="2" class="binfo_input" placeholder="请输入任务描述" cols
+                          style="width: 90% !important; resize:none" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
                               itemTaskIndex
                             ].taskDetail
-                          "
-                        ></textarea>
+                            "></textarea>
                       </div>
                       <div class="basic_box" style="
                       margin: 0;
@@ -384,9 +377,9 @@
                         </div>
                         <div class="add_info_box">
                           <button class="info_btn" @click="addImg($event)">
-                                添加文件
+                            添加文件
                             <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 13, itemTaskIndex)
-                                  " />
+                              " />
                           </button>
                           <!-- <button class="info_btn" @click="addImg($event)">
                             添加视频
@@ -454,6 +447,699 @@
                           </div>
                         </div>
                       </div>
+                      <div class="toolChoose" style="padding: 0 0 0 30px">
+                        <div class="tools">
+                          <div class="leftTools" style="
+                          width: 95%;
+                          padding: 0 0 15px 0;
+                          border-bottom: 1px solid #efefef;
+                          margin-bottom: 15px;
+                        " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
+                            <div>
+                              <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
+                                style="margin: 0 0 20px 0; width: 71.5% !important"
+                                v-model="itemTool.toolDetail"></textarea>
+                            </div>
+                            <div style="
+                            display: flex;
+                            flex-direction: row;
+                            align-items: baseline;
+                            flex-wrap: nowrap;
+                            justify-content: flex-start;
+                            position: relative;
+                          ">
+                              <div style="margin-right: 20px; font-weight: bold">
+                                步骤 {{ toolIndex + 1 }} :
+                              </div>
+                              <div class="chooseWho">
+                                <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
+                                  " @click="(itemTool.toolType = 0), $forceUpdate()">
+                                  互动类
+                                </div>
+                                <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
+                                  " @click="(itemTool.toolType = 1), $forceUpdate()">
+                                  思维类
+                                </div>
+                                <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
+                                  " @click="(itemTool.toolType = 2), $forceUpdate()">
+                                  评价类
+                                </div>
+                                <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
+                                  " @click="(itemTool.toolType = 3), $forceUpdate()">
+                                  编程类
+                                </div>
+                                <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
+                                  " @click="(itemTool.toolType = 5), $forceUpdate()">
+                                  学科类
+                                </div>
+                                <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
+                                  " @click="(itemTool.toolType = 4), $forceUpdate()">
+                                  其他
+                                </div>
+                              </div>
+                              <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
+                                v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
+                            </div>
+
+                            <div style="min-height: 163px">
+                              <div class="toolSort" v-if="itemTool.toolType == 0">
+                                <!-- <div class="tool">
+                              <div
+                                class="whiteBIcon"
+                                @click="addTools(8, itemTaskIndex, toolIndex)"
+                              >
+                                <img src="../../../assets/icon/secondToolList/library.png" alt />
+                                <div style="margin: 5px 0">素材库</div>
+                              </div>
+                              <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
+                                <img
+                                  src="../../../assets/icon/checkNo.png"
+                                  alt
+                                  v-if="itemTool.tool.indexOf(8) == -1"
+                                />
+                                <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
+                                    alt /><span>已选择</span></div>
+                              </div>
+                            </div>-->
+                                <!-- <div class="tool">
+                              <div
+                                class="whiteBIcon"
+                                @click="addTools(17, itemTaskIndex, toolIndex)"
+                              >
+                                <img
+                                  src="../../../assets/icon/secondToolList/library.png"
+                                  alt
+                               />
+                                <div style="margin: 5px 0">学习资料</div>
+                              </div>
+                              <div
+                                class="check"
+                                @click="addTools(17, itemTaskIndex, toolIndex)"
+                              >
+                                <img
+                                  src="../../../assets/icon/checkNo.png"
+                                  alt
+                                  v-if="itemTool.tool.indexOf(17) == -1"
+                                />
+                                <img
+                                  src="../../../assets/icon/checkedIs.png"
+                                  alt
+                                  v-else
+                                />
+                              </div>10
+                            </div> -->
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/time.png" alt />
+                                    <div style="margin: 5px 0">倒计时</div>
+                                  </div>
+                                  <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(10) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/group.png" alt />
+                                    <div style="margin: 5px 0">学生分组</div>
+                                  </div>
+                                  <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(49) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
+                                    <div style="margin: 5px 0">交互视频</div>
+                                  </div>
+                                  <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(62) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                              </div>
+                              <div class="toolSort" v-if="itemTool.toolType == 1">
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
+                                    <div style="margin: 5px 0">思维网格</div>
+                                  </div>
+                                  <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(7) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
+                                    <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
+                                    <div style="margin: 5px 0">电子白板</div>
+                                  </div>
+                                  <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(1) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <!-- <div class="tool">
+                              <div
+                                class="whiteBIcon"
+                                @click="addTools(2, itemTaskIndex, toolIndex)"
+                              >
+                                <img
+                                  src="../../../assets/icon/secondToolList/note.png"
+                                  alt
+                                />
+                                <div style="margin: 5px 0">便签</div>
+                              </div>
+                              <div
+                                class="check"
+                                @click="addTools(2, itemTaskIndex, toolIndex)"
+                              >
+                                <img
+                                  src="../../../assets/icon/checkNo.png"
+                                  alt
+                                  v-if="itemTool.tool.indexOf(2) == -1"
+                                />
+                                <div class="checkDiv" v-else>
+                                  <img
+                                    src="../../../assets/icon/checkedIs.png"
+                                    alt
+                                  /><span>已选择</span>
+                                </div>
+                              </div>
+                            </div> -->
+                                <!-- <div class="tool">
+                              <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
+                                <img src="../../../assets/icon/secondToolList/doc.png" alt />
+                                <div style="margin: 5px 0">协同文档</div>
+                              </div>
+                              <div
+                                class="check"
+                                @click="addTools(6, itemTaskIndex, toolIndex)"
+                              >
+                                <img
+                                  src="../../../assets/icon/checkNo.png"
+                                  alt
+                                  v-if="itemTool.tool.indexOf(6) == -1"
+                                />
+                                <div class="checkDiv" v-else>
+                                  <img
+                                    src="../../../assets/icon/checkedIs.png"
+                                    alt
+                                  /><span>已选择</span>
+                                </div>
+                              </div>
+                            </div> -->
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/text.png" alt />
+                                    <div style="margin: 5px 0">文档</div>
+                                  </div>
+                                  <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(52) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
+                                    <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
+                                    <div style="margin: 5px 0">思维导图</div>
+                                  </div>
+                                  <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(3) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/table.png" alt />
+                                    <div style="margin: 5px 0">表格</div>
+                                  </div>
+                                  <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(48) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                              </div>
+                              <div class="toolSort" v-if="itemTool.toolType == 2">
+                                <!-- <div class="tool">
+                              <div
+                                class="whiteBIcon"
+                                @click="addTools(5, itemTaskIndex, toolIndex)"
+                              >
+                                <img
+                                  src="../../../assets/icon/thirdToolList/score.png"
+                                  alt
+                                />
+                                <div style="margin: 5px 0">量规评分</div>
+                              </div>
+                              <div
+                                class="check"
+                                @click="addTools(5, itemTaskIndex, toolIndex)"
+                              >
+                                <img
+                                  src="../../../assets/icon/checkNo.png"
+                                  alt
+                                  v-if="itemTool.tool.indexOf(5) == -1"
+                                />
+                                <img
+                                  src="../../../assets/icon/checkedIs.png"
+                                  alt
+                                  v-else
+                                />
+                              </div>
+                            </div>-->
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/ask.png" alt />
+                                    <div style="margin: 5px 0">问卷调查</div>
+                                  </div>
+                                  <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(4) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/choose.png" alt />
+                                    <div style="margin: 5px 0">选择题</div>
+                                  </div>
+                                  <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(45) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/answer.png" alt />
+                                    <div style="margin: 5px 0">问答工具</div>
+                                  </div>
+                                  <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(15) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/work.png" alt />
+                                    <div style="margin: 5px 0">作业提交</div>
+                                  </div>
+                                  <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(16) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(50, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
+                                    <div style="margin: 5px 0">批量上传</div>
+                                  </div>
+                                  <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(50) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/eval.png" alt />
+                                    <div style="margin: 5px 0">个人评价</div>
+                                  </div>
+                                  <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(40) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/select.png" alt />
+                                    <div style="margin: 5px 0">选择填空</div>
+                                  </div>
+                                  <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(41) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
+                                    <div style="margin: 5px 0">连词成句</div>
+                                  </div>
+                                  <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(47) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <!-- <div class="tool">
+                              <div
+                                class="whiteBIcon"
+                                @click="openTools(itemTaskIndex, 42, toolIndex)"
+                              >
+                                <img
+                                  src="../../../assets/icon/thirdToolList/mp3.png"
+                                  alt
+                                />
+                                <div style="margin: 5px 0">上传音频</div>
+                              </div>
+                              <div
+                                class="check"
+                                @click="addTools(42, itemTaskIndex, toolIndex)"
+                              >
+                                <img
+                                  src="../../../assets/icon/checkNo.png"
+                                  alt
+                                  v-if="itemTool.tool.indexOf(42) == -1"
+                                />
+                                <img
+                                  src="../../../assets/icon/checkedIs.png"
+                                  alt
+                                  v-else
+                                />
+                              </div>
+                            </div> -->
+                              </div>
+                              <div class="toolSort" v-if="itemTool.toolType == 3">
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
+                                    <div style="margin: 5px 0">训练平台</div>
+                                  </div>
+                                  <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(18) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/program.png" alt />
+                                    <div style="margin: 5px 0">编程平台</div>
+                                  </div>
+                                  <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(21) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
+                                    <div style="margin: 5px 0">AI体验</div>
+                                  </div>
+                                  <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(22) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
+                                    <div style="margin: 5px 0">Python</div>
+                                  </div>
+                                  <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(23) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
+                                    <div style="margin: 5px 0">AI平台</div>
+                                  </div>
+                                  <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(24) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(32, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/code.png" alt />
+                                    <div style="margin: 5px 0">源码编辑</div>
+                                  </div>
+                                  <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(32) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(57, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
+                                    <div style="margin: 5px 0">CocoPi</div>
+                                  </div>
+                                  <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(57) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(63, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
+                                    <div style="margin: 5px 0">海龟编程</div>
+                                  </div>
+                                  <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(63) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                              </div>
+                              <div class="toolSort" v-if="itemTool.toolType == 5">
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/secondToolList/translation.png" alt />
+                                    <div style="margin: 5px 0">翻译</div>
+                                  </div>
+                                  <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(28) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/secondToolList/mohe.png" alt />
+                                    <div style="margin: 5px 0">魔盒识字</div>
+                                  </div>
+                                  <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(37) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/secondToolList/24game.png" alt />
+                                    <div style="margin: 5px 0">24点</div>
+                                  </div>
+                                  <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(38) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
+                                    <div style="margin: 5px 0">数学画板</div>
+                                  </div>
+                                  <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(31) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
+                                    <div style="margin: 5px 0">GeoGebra</div>
+                                  </div>
+                                  <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(39) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/car.png" alt />
+                                    <div style="margin: 5px 0">模拟驾驶</div>
+                                  </div>
+                                  <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(58) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
+                                    <div style="margin: 5px 0">路径搜索</div>
+                                  </div>
+                                  <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(59) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
+                                    <div style="margin: 5px 0">深度学习</div>
+                                  </div>
+                                  <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(60) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
+                                    <div style="margin: 5px 0">全历史</div>
+                                  </div>
+                                  <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(61) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                              </div>
+                              <div class="toolSort" v-if="itemTool.toolType == 4">
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
+                                    <div style="margin: 5px 0">课程设计</div>
+                                  </div>
+                                  <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(26) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
+                                    <div style="margin: 5px 0">目标管理</div>
+                                  </div>
+                                  <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(25) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                                <!-- <div class="tool">
+                              <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
+                                <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
+                                <div style="margin: 5px 0">汉字宫</div>
+                              </div>
+                              <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
+                                <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
+                                <div class="checkDiv" v-else>
+                                  <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                </div>
+                              </div>
+                            </div> -->
+                              </div>
+                            </div>
+                          </div>
+                          <div class="addToolFun" @click="addToolFun(itemTaskIndex)">
+                            <div class="addToolImg">
+                              <img src="../../../assets/icon/add.png" alt />
+                            </div>
+                            <div>添加工具</div>
+                          </div>
+                        </div>
+                      </div>
                     </div>
                     <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
                       <div>
@@ -828,9 +1514,9 @@
                     </div>
                     <div class="add_info_box">
                       <button class="info_btn" @click="addImg($event)">
-                            添加文件
+                        添加文件
                         <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 13, itemTaskIndex)
-                              " />
+                          " />
                       </button>
                       <!-- <button class="info_btn" @click="addImg($event)">
                         添加视频
@@ -3626,7 +4312,6 @@ export default {
           return;
         } else {
           this.addWork();
-          this.steps = 4
         }
       } else {
         if (this.courseName == "") {
@@ -3638,7 +4323,6 @@ export default {
           } else {
             this.updateWork();
           }
-          this.steps = 4
         }
       }
       this.$refs.stepBox.scrollTop = 0;
@@ -3757,7 +4441,7 @@ export default {
       var _this = this;
       //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
       _this
-        .$confirm("确定删除此任务吗?" , "提示", {
+        .$confirm("确定删除此任务吗?", "提示", {
           confirmButtonText: "确定",
           cancelButtonText: "取消",
           type: "warning",
@@ -4329,7 +5013,7 @@ export default {
                   "POTM",
                   "PPAM",
                   "POTX",
-                  "PPSM","XLSX", "XLS"
+                  "PPSM", "XLSX", "XLS"
                 ];
                 var videoA = [
                   "AVI",
@@ -4842,7 +5526,24 @@ export default {
         ) {
           this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
           this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
-
+          if (
+            this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
+          ) {
+            for (
+              var z = 0;
+              z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
+              z++
+            ) {
+              if (
+                !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
+                  .length
+              ) {
+                this.$message.error("请把工具添加完整");
+                cPan = 2;
+                break;
+              }
+            }
+          }
           if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
             this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
               i
@@ -4855,7 +5556,6 @@ export default {
       this.inputShow = true;
 
       if (cPan == 2) {
-        this.steps--;
         return;
       }
       for (var i = 0; i < this.unitJson.length; i++) {
@@ -4936,7 +5636,6 @@ export default {
       }
       this.inputShow = true;
       if (cPan == 2) {
-        this.steps--;
         return;
       }
       let params = [
@@ -4971,6 +5670,26 @@ export default {
         ) {
           this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
           this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
+
+          if (
+            this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
+          ) {
+            for (
+              var z = 0;
+              z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
+              z++
+            ) {
+              if (
+                !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
+                  .length
+              ) {
+                this.$message.error("请把工具添加完整");
+                cPan = 2;
+                break;
+              }
+            }
+          }
+
           if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
             this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
               i
@@ -4982,7 +5701,7 @@ export default {
       }
       this.inputShow = true;
       if (cPan == 2) {
-        this.steps--;
+        this.step--
         return;
       }
       for (var i = 0; i < this.unitJson.length; i++) {
@@ -5035,6 +5754,7 @@ export default {
           }
           this.number = this.nbOrder;
           this.courseId = this.cid;
+          this.steps = 4
         })
         .catch((err) => {
           this.$message.error("网络不佳");
@@ -7294,37 +8014,37 @@ export default {
       //     type: "warning",
       //   })
       //   .then(() => {
-          if (type == 1) {
-            if (index > 0) {
-              let a = JSON.parse(
-                JSON.stringify(
-                  this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
-                )
-              );
-              this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
-                this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
-              this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
-            }
-          } else {
-            if (
-              index <
-              this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
-            ) {
-              let a = JSON.parse(
-                JSON.stringify(
-                  this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
-                )
-              );
-              this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
-                this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
-              this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
-            }
-          }
-          this.$forceUpdate();
-        // })
-        // .catch(() => {
-        //   return;
-        // })
+      if (type == 1) {
+        if (index > 0) {
+          let a = JSON.parse(
+            JSON.stringify(
+              this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
+            )
+          );
+          this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
+            this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
+          this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
+        }
+      } else {
+        if (
+          index <
+          this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
+        ) {
+          let a = JSON.parse(
+            JSON.stringify(
+              this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
+            )
+          );
+          this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
+            this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
+          this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
+        }
+      }
+      this.$forceUpdate();
+      // })
+      // .catch(() => {
+      //   return;
+      // })
     },
     addGroup(i) {
       // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
@@ -9158,7 +9878,7 @@ ol {
   border: 1px dashed;
   border-radius: 5px;
   height: 50px;
-  margin: 35px auto 0;
+  margin: 20px auto 35px;
   cursor: pointer;
 }
 
@@ -10323,5 +11043,4 @@ ol {
 
 .noneBox>img {
   width: 300px;
-}
-</style>
+}</style>