Browse Source

新增工具

zengyicheng 1 year ago
parent
commit
2eacc212ea

BIN
src/assets/icon/secondToolList/formulaEdi.png


BIN
src/assets/icon/secondToolList/molStr.png


BIN
src/assets/icon/secondToolList/timeAxis.png


+ 72 - 0
src/components/pages/addCourse.vue

@@ -1540,6 +1540,78 @@
                                     </div>
                                   </div>
                                 </div>
+                                <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(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(66, itemTaskIndex, toolIndex)">
+                                    <img src="../../assets/icon/secondToolList/formulaEdi.png" alt />
+                                    <div style="margin: 5px 0">公式编辑</div>
+                                  </div>
+                                  <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
+                                    <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(66) == -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(67, itemTaskIndex, toolIndex)">
+                                    <img src="../../assets/icon/secondToolList/molStr.png" alt />
+                                    <div style="margin: 5px 0">分子结构</div>
+                                  </div>
+                                  <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
+                                    <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(67) == -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(68, itemTaskIndex, toolIndex)">
+                                    <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
+                                    <div style="margin: 5px 0">时间轴</div>
+                                  </div>
+                                  <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
+                                    <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(68) == -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 == 7">
                                 <div class="tool">

+ 102 - 0
src/components/pages/easy/addCourse.vue

@@ -1105,6 +1105,108 @@
                                     </div>
                                   </div>
                                 </div>
+                                <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(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(66, itemTaskIndex, toolIndex)
+                                    ">
+                                    <img src="../../../assets/icon/secondToolList/formulaEdi.png" alt />
+                                    <div style="margin: 5px 0">公式编辑</div>
+                                  </div>
+                                  <div class="check" @click="
+                                    addTools(66, itemTaskIndex, toolIndex)
+                                    ">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(66) == -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(67, itemTaskIndex, toolIndex)
+                                    ">
+                                    <img src="../../../assets/icon/secondToolList/molStr.png" alt />
+                                    <div style="margin: 5px 0">分子结构</div>
+                                  </div>
+                                  <div class="check" @click="
+                                    addTools(67, itemTaskIndex, toolIndex)
+                                    ">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(67) == -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(68, itemTaskIndex, toolIndex)
+                                    ">
+                                    <img src="../../../assets/icon/secondToolList/timeAxis.png" alt />
+                                    <div style="margin: 5px 0">时间轴</div>
+                                  </div>
+                                  <div class="check" @click="
+                                    addTools(68, itemTaskIndex, toolIndex)
+                                    ">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(68) == -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">

+ 192 - 0
src/components/pages/task/addCourse.vue

@@ -1645,6 +1645,198 @@
                                     </div>
                                   </div>
                                 </div>
+                                <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(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(66, itemTaskIndex, toolIndex)
+                                    "
+                                  >
+                                    <img
+                                      src="../../../assets/icon/secondToolList/formulaEdi.png"
+                                      alt
+                                    />
+                                    <div style="margin: 5px 0">公式编辑</div>
+                                  </div>
+                                  <div
+                                    class="check"
+                                    @click="
+                                      addTools(66, itemTaskIndex, toolIndex)
+                                    "
+                                  >
+                                    <img
+                                      src="../../../assets/icon/checkNo.png"
+                                      alt
+                                      v-if="itemTool.tool.indexOf(66) == -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(67, itemTaskIndex, toolIndex)
+                                    "
+                                  >
+                                    <img
+                                      src="../../../assets/icon/secondToolList/molStr.png"
+                                      alt
+                                    />
+                                    <div style="margin: 5px 0">分子结构</div>
+                                  </div>
+                                  <div
+                                    class="check"
+                                    @click="
+                                      addTools(67, itemTaskIndex, toolIndex)
+                                    "
+                                  >
+                                    <img
+                                      src="../../../assets/icon/checkNo.png"
+                                      alt
+                                      v-if="itemTool.tool.indexOf(67) == -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(68, itemTaskIndex, toolIndex)
+                                    "
+                                  >
+                                    <img
+                                      src="../../../assets/icon/secondToolList/timeAxis.png"
+                                      alt
+                                    />
+                                    <div style="margin: 5px 0">时间轴</div>
+                                  </div>
+                                  <div
+                                    class="check"
+                                    @click="
+                                      addTools(68, itemTaskIndex, toolIndex)
+                                    "
+                                  >
+                                    <img
+                                      src="../../../assets/icon/checkNo.png"
+                                      alt
+                                      v-if="itemTool.tool.indexOf(68) == -1"
+                                    />
+                                    <div class="checkDiv" v-else>
+                                      <img
+                                        src="../../../assets/icon/checkedIs.png"
+                                        alt
+                                      /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
                               </div>
                               <div
                                 class="toolSort"

+ 2 - 2
src/components/pages/tencent/student.vue

@@ -33,13 +33,13 @@
         </div>
         <div class="head_right">
           <el-button @click="addStudent">添加学生</el-button>
-          <el-upload v-show="false" class="upload-demo newCss" :http-request="handleChange" :on-remove="handleRemove" action="#"
+          <el-upload  class="upload-demo newCss" :http-request="handleChange" :on-remove="handleRemove" action="#"
             :file-list="fileListUpload" accept=".xlsx">
             <el-button size="primary" type="primary">批量添加</el-button>
             <div slot="tip" class="el-upload__tip" style="margin-left:10px;">只能上传xlsx文件,且不超过500kb</div>
           </el-upload>
           <!-- <el-button @click="exportExcel">导出学生</el-button> -->
-          <div @click="getExcel" v-show="false">xls 上传样例</div>
+          <div @click="getExcel">xls 上传样例</div>
         </div>
       </div>
     </div>