lsc hace 1 año
padre
commit
7886a74482

+ 1 - 1
dist/index.html

@@ -25,7 +25,7 @@
       height: 100%;
       width: 100%;
       background: #e6eaf0;
-    }</style><link href=./static/css/app.ba5dcd35f0f6e94999eca251df1f834e.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3512a67a6213c2df4180.js></script><script type=text/javascript src=./static/js/vendor.f1661c5ebfd33221b88f.js></script><script type=text/javascript src=./static/js/app.c10bfbf20c4fc9b30f09.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.bb8d8d70356425c0e3c7ff1e9231a006.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3512a67a6213c2df4180.js></script><script type=text/javascript src=./static/js/vendor.f1661c5ebfd33221b88f.js></script><script type=text/javascript src=./static/js/app.2edf8ea16a476d0a6b2b.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/static/css/app.ba5dcd35f0f6e94999eca251df1f834e.css


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/static/css/app.ba5dcd35f0f6e94999eca251df1f834e.css.map


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/static/css/app.bb8d8d70356425c0e3c7ff1e9231a006.css


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/static/css/app.bb8d8d70356425c0e3c7ff1e9231a006.css.map


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/static/js/app.2edf8ea16a476d0a6b2b.js


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/static/js/app.2edf8ea16a476d0a6b2b.js.map


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/static/js/app.c10bfbf20c4fc9b30f09.js


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/static/js/manifest.3512a67a6213c2df4180.js.map


+ 167 - 73
src/components/pages/addCourse.vue

@@ -141,7 +141,7 @@
                     <!-- <div class="ai_box">
                       <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
                     </div> -->
-                    <div style="margin-top: auto;">
+                    <div style="margin: auto;">
                       <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
                         <img src="../../assets/icon/addPoster.png" alt="" />
                         <div>点击添加封面</div>
@@ -190,7 +190,7 @@
               <div class="c_info_title">课程简要描述</div>
               <div style="width: 95%; padding: 0 0px 0 20px">
                 <div style="width: 55%">
-                  <textarea rows="6" class="binfo_input binfo_textarea" cols v-model="courseText" ></textarea>
+                  <textarea rows="6" class="binfo_input binfo_textarea" cols v-model="courseText"></textarea>
                 </div>
               </div>
             </div>
@@ -432,7 +432,8 @@
                   box-sizing: border-box;
                   background: #f0f4fa
                 ">
-                    <div class="cru_selectBox" :style="{width:(userid == courseUserid || role == '1') ? 'calc(100% - 300px)':'calc(100% - 175px)'}">
+                    <div class="cru_selectBox"
+                      :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }">
                       <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
                         :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
                         <!-- item.dyName ? item.dyName :  -->
@@ -452,7 +453,9 @@
                       ">
                       <img src="../../assets/icon/new/addStage.png" alt />
                     </div>
-                    <button class="c_pub_button_add" @click="openStageBox" v-if="steps == 3 && (userid == courseUserid || role == '1')" style="margin: 0 0 0 auto;">阶段顺序</button>
+                    <button class="c_pub_button_add" @click="openStageBox"
+                      v-if="steps == 3 && (userid == courseUserid || role == '1')"
+                      style="margin: 0 0 0 auto;">阶段顺序</button>
                     <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
                   </div>
 
@@ -480,7 +483,7 @@
                   添加任务
                 </div> -->
                     <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
-                      :class="{smallTaskBorder:itemTask.isFold === 1}"
+                      :class="{ smallTaskBorder: itemTask.isFold === 1 }"
                       v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
                       <div v-if="unitJson[unitIndex].easy != 1">
                         <div :style="{
@@ -506,8 +509,12 @@
                                   itemTaskIndex
                                 ].task
                                   " />
-                                  <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />收起任务描述</div>
-                                <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD" @click="fold2(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />展开任务描述</div>
+                              <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2"
+                                class="show_taskD show" @click="fold2(itemTaskIndex)"><img
+                                  src="../../assets/icon/new/icon-slide.png" />收起任务描述</div>
+                              <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
+                                @click="fold2(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />展开任务描述
+                              </div>
                             </div>
                             <div class="remove" v-if="item.taskJson.length > 1 &&
                               (!unitJson[unitIndex].easy ||
@@ -1993,7 +2000,7 @@
                       </div>
                       <div class="funBlock" style="padding: 0">
                         <div class="fold" @click="fold(itemTaskIndex, $event)">
-                          <div class="arrow" :class="{arrowZ:itemTask.isFold === 1}">
+                          <div class="arrow" :class="{ arrowZ: itemTask.isFold === 1 }">
                           </div>
                           <div>{{ itemTask.isFold === 1 ? '展开' : '折叠' }}</div>
                         </div>
@@ -2054,7 +2061,8 @@
             <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
               {{ steps == 4 ? "返回课程" : "上一步" }}
             </button>
-            <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps" :class="{pub_btn_next_img:steps != 3,pub_btn_finish_img:steps == 3}">
+            <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
+              :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
               {{ steps == 3 ? "确认上传" : "下一步" }}
             </button>
           </div>
@@ -2174,7 +2182,8 @@
             <div class="people_search">
               <el-select v-model="gradeId" placeholder="请选择年级" class="student_input" clearable @change="getClass()">
                 <el-option label="全部" value=""></el-option>
-                <el-option v-for="(item, index) in gradeList" :key="index" :label="item.name" :value="item.id"></el-option>
+                <el-option v-for="(item, index) in gradeList" :key="index" :label="item.name"
+                  :value="item.id"></el-option>
               </el-select>
               <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
               <!-- @click="getClass()" 
@@ -2187,7 +2196,8 @@
           </div>
           <div class="people_nav">选择班级</div>
         </div>
-        <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange" v-if="grade2.length" >
+        <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange"
+          v-if="grade2.length">
           <div v-for="item in grade2" :key="item.id" class="p_box">
             <el-checkbox :label="item.id">
               {{ item.name }}
@@ -2269,8 +2279,8 @@
             <div class="a_add_head">
               <div style="display: flex;align-items: center;">
                 {{ index1 + 1 + "、" }}
-                <textarea class="a_add_head_input textarea_css"  v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
-                        " placeholder="请输入题目..." ></textarea>
+                <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
+                  " placeholder="请输入题目"></textarea>
               </div>
               <div class="a_add_head_div">
                 <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
@@ -2280,12 +2290,13 @@
             </div>
             <div class="a_add_body">
               <div class="a_add_input" style="flex-direction: column;">
-                <div  v-for="(item2, checkIndex) in askJson.askJson[index1].askItem"  :key="checkIndex" style=" margin: 20px 10px 0 0;display: flex;align-items:center;">
+                <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
+                  style=" margin: 20px 10px 0 0;display: flex;align-items:center;">
                   <div style="margin-right: 10px">
                     选项{{ checkIndex + 1 }}
                   </div>
-                  <textarea class="a_add_head_input textarea_css"   v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
-                        " placeholder="请输入选项..." style="width: 300px;" ></textarea>  
+                  <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
+                    " placeholder="请输入选项" style="width: 300px;"></textarea>
                 </div>
               </div>
               <div class="a_add_body_div">
@@ -2319,7 +2330,8 @@
         <div class="a_addBox">
           <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
             请输入题目内容
-            <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px">智能粘贴</button>
+            <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption"
+              style="margin-left: 10px">智能粘贴</button>
           </div>
           <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
             <div class="a_add_checkType">
@@ -2333,9 +2345,10 @@
                 <div style="display: flex;align-items: center;">
                   {{ index1 + 1 + "、" }}
                   <!-- <el-input class="a_add_head_input"  v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
-                    placeholder="请输入题目...">
+                    placeholder="请输入题目">
                   </el-input> -->
-                  <textarea class="a_add_head_input textarea_css"  v-autoHeight="40" v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目..."></textarea>
+                  <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
+                    v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"></textarea>
                 </div>
                 <div class="xzUpImg" @click.stop="addImg($event)">
                   <img src="../../assets/icon/xzUpImg.png" alt="" />
@@ -2390,8 +2403,8 @@
                         </div>
                       </div>
 
-                      <textarea class="a_add_head_input textarea_css"  v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
-                        " placeholder="请输入选项..." style="width: 300px; margin-right: 10px" ></textarea>
+                      <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
+                        " placeholder="请输入选项" style="width: 300px; margin-right: 10px"></textarea>
                       <div class="xzUpImg" @click.stop="addImg($event)">
                         <img src="../../assets/icon/xzUpImg.png" alt="" />
                         <input type="file" accept="image/*" style="display: none"
@@ -2430,8 +2443,8 @@
                         </div>
                       </div>
 
-                      <textarea class="a_add_head_input textarea_css"  v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
-                        " placeholder="请输入选项..." style="width: 300px; margin-right: 10px" ></textarea>
+                      <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
+                        " placeholder="请输入选项" style="width: 300px; margin-right: 10px"></textarea>
                       <div class="xzUpImg" @click.stop="addImg($event)">
                         <img src="../../assets/icon/xzUpImg.png" alt="" />
                         <input type="file" accept="image/*" style="display: none"
@@ -2735,7 +2748,7 @@
             </div>
             <div class="select_box1_select_box">
               <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
-                v-model="selectJson.select[checkIndex]" placeholder="请输入选项..."
+                v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
                 style="width: 150px; margin: 10px 10px 0 0"></el-input>
               <div class="select_box1_select_box_add">
                 <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
@@ -3020,10 +3033,24 @@
       </span>
     </el-dialog>
     <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
-    <el-dialog title="切换阶段顺序" :visible.sync="dialogVisibleStageChange" :append-to-body="true" width="650px"
-      :before-close="handleClose" class="dialog_diy">
+    <el-dialog title="切换阶段顺序" :visible.sync="dialogVisibleStageChange" :append-to-body="true" width="400px"
+      :before-close="handleClose" class="dialog_diy dialog_diyStage">
       <div class="change_stageBox">
-   
+        <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
+          <div class="nt_taskBox">
+            <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
+            <div class="nt_taskName">
+              <el-tooltip effect="light" :content="t.dyName" placement="top">
+                <span>{{ t.dyName }}</span>
+              </el-tooltip>
+            </div>
+          </div>
+          <div class="moveBtn" v-if="unitJson3.length > 1">
+            <div class="chapter_upload_up" @click.stop="stageMove(1, tIndex)">
+            </div>
+            <div class="chapter_upload_down" @click.stop="stageMove(2, tIndex)"></div>
+          </div>
+        </div>
       </div>
       <span slot="footer" class="dialog-footer">
         <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
@@ -3165,6 +3192,7 @@ export default {
       selectJson: {},
       rateJson: [],
       unitJson2: [],
+      unitJson3: [],
       unitJson: [
         {
           dyName: "", //单元标题
@@ -3215,7 +3243,7 @@ export default {
       checkboxList2: [],
       checkboxList3: [],
       classSearch: "",
-      gradeId:"",
+      gradeId: "",
       number: "",
       tTitle: "",
       tdetail: "",
@@ -3445,7 +3473,7 @@ export default {
     },
   },
   methods: {
-    openAI(){
+    openAI() {
       window.parent.postMessage({ tools: "64" }, "*");
     },
     setMan() {
@@ -4923,7 +4951,7 @@ export default {
       var a =
         JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
       this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
-      JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
+        JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
       this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
       this.$forceUpdate();
     },
@@ -4932,14 +4960,14 @@ export default {
       if (
         ic ==
         this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
-          1
+        1
       ) {
         return;
       }
       var a =
         JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
       this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
-      JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
+        JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
       this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
       this.$forceUpdate();
     },
@@ -6148,9 +6176,9 @@ export default {
     },
     checkTestType(type, json) {
       json.type = type;
-      setTimeout(()=>{
+      setTimeout(() => {
         json.answer = [];
-      },100)
+      }, 100)
     },
     checkAskType(type, json) {
       json.type = type;
@@ -6498,8 +6526,28 @@ export default {
           return;
         });
     },
-    openStageBox(){
-
+    openStageBox() {
+      this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson))
+      this.dialogVisibleStageChange = true;
+    },
+    updateChange() {
+      this.$confirm(
+        "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
+        "提示",
+        {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning",
+        }
+      )
+        .then(() => {
+          this.unitJson = JSON.parse(JSON.stringify(this.unitJson3))
+          this.updateWork()
+          this.dialogVisibleStageChange = false;
+        })
+        .catch(() => {
+          return;
+        });
     },
     addAnswer() {
       if (this.answerQ == "") {
@@ -6959,8 +7007,8 @@ export default {
       this.ajax
         .get(this.$store.state.api + "selectAllType", params)
         .then((res) => {
-          if(this.oid == "69893dca-1d47-11ed-8c78-005056b86db5"){
-            res.data[0] = [...res.data[0],...res.data[4]]
+          if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
+            res.data[0] = [...res.data[0], ...res.data[4]]
           }
           this.CourseType = res.data;
           this.CourseType2 = [
@@ -6974,17 +7022,17 @@ export default {
               res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
             ) {
               this.CourseType2[0].id.push(res.data[0][cti].id);
-            }else if(res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
-              res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"){
+            } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
+              res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
               this.CourseType2[1].id.push(res.data[0][cti].id);
             } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
               this.CourseType2[2].id.push(res.data[0][cti].id);
             }
-            if(res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"){
+            if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
               res.data[0][cti].name = "年级";
-            }else if(res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"){
+            } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
               res.data[0][cti].name = "学科";
-            }else if(res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"){
+            } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
               res.data[0][cti].name = "主题";
             }
           }
@@ -7521,6 +7569,45 @@ export default {
           return;
         });
     },
+    stageMove(type, index) {
+      if (type == 1) {
+        if (index > 0) {
+          let a = JSON.parse(
+            JSON.stringify(
+              this.unitJson3[index - 1]
+            )
+          );
+          let acid = JSON.parse(JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid))
+          let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
+          this.unitJson3[index - 1] = this.unitJson3[index];
+          this.unitJson3[index] = a;
+          this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
+          this.unitJson3[index].chapterInfo[0].chapterid = bcid;
+
+        }
+      } else {
+        if (
+          index <
+          this.unitJson3.length - 1
+        ) {
+          let a = JSON.parse(
+            JSON.stringify(
+              this.unitJson3[
+              index + 1
+              ]
+            )
+          );
+          let acid = JSON.parse(JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid))
+          let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
+          this.unitJson3[index + 1] =
+            this.unitJson3[index];
+          this.unitJson3[index] = a;
+          this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
+          this.unitJson3[index].chapterInfo[0].chapterid = bcid;
+        }
+      }
+      this.$forceUpdate();
+    },
     addGroup(i) {
       // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
       this.groupJson.group.push({
@@ -7803,6 +7890,10 @@ export default {
   padding: 20px 20px;
 }
 
+.dialog_diyStage>>>.el-dialog__body {
+  padding: 10px;
+}
+
 .source_diy>>>.el-dialog {
   height: 100% !important;
   margin: 0 auto !important;
@@ -8159,11 +8250,11 @@ export default {
 
 .chapter_contentbox .cc_input {
   width: 100%;
-  display:flex;
+  display: flex;
 }
 
-.show_taskD{
-  min-width:fit-content;
+.show_taskD {
+  min-width: fit-content;
   margin-left: 10px;
   display: flex;
   align-items: center;
@@ -8172,14 +8263,15 @@ export default {
   color: #717C8D;
 }
 
-.show_taskD > img{
-  width:15px;
-  margin-right:5px;
+.show_taskD>img {
+  width: 15px;
+  margin-right: 5px;
 }
 
-.show_taskD.show > img{
+.show_taskD.show>img {
   transform: rotate(180deg);
 }
+
 .remove {
   background-image: url("../../assets/icon/new/delete_u.png");
   cursor: pointer;
@@ -8216,7 +8308,7 @@ export default {
   font-size: 16px;
   resize: none;
   font-family: 'Microsoft YaHei';
-  min-height:48px;
+  min-height: 48px;
   border: 1px solid #3682fc00;
 }
 
@@ -8334,13 +8426,13 @@ export default {
   overflow-x: hidden;
 }
 
-.add_chapters_box.add_c_none{
+.add_chapters_box.add_c_none {
   display: flex;
   justify-content: center;
   align-items: center;
 }
 
-.add_c_none > img{
+.add_c_none>img {
   width: 135px;
 }
 
@@ -8438,29 +8530,30 @@ export default {
   justify-content: center;
   border-left: 1px solid #E0E2ED;
   box-sizing: border-box;
-  padding-bottom:20px;
+  padding-bottom: 20px;
   flex-direction: column;
 }
 
-.ai_box{
+.ai_box {
   width: 204px;
-    display: flex;
-    justify-content: flex-end;
-    margin-bottom: 15px;
+  display: flex;
+  justify-content: flex-end;
+  margin-bottom: 15px;
 }
-.ai_content{
+
+.ai_content {
   display: flex;
   align-items: center;
   font-size: 14px;
   padding: 7px 20px;
   box-sizing: border-box;
-  box-shadow: 0px 0px 12px 1px rgba(0,0,0,0.16);
+  box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
   border-radius: 12px;
   font-weight: 700;
   cursor: pointer;
 }
 
-.ai_content>img{
+.ai_content>img {
   width: 40px;
   margin-right: 5px;
 }
@@ -9252,7 +9345,7 @@ ol {
 }
 
 .a_add_head .a_add_head_input {
-  width: 300px;
+  width: 550px;
 }
 
 .a_add_head .a_add_head_div {
@@ -9367,7 +9460,7 @@ ol {
   display: flex;
   flex-direction: row;
   align-items: center;
-  margin-right:10px;
+  margin-right: 10px;
 }
 
 .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
@@ -9487,7 +9580,7 @@ ol {
   width: 50%;
 }
 
-.leftTools+.leftTools{
+.leftTools+.leftTools {
   border-top: 1px solid #dbdbdb;
   padding-top: 30px;
 }
@@ -9537,7 +9630,8 @@ ol {
   min-height: 1160px;
   position: relative;
   background: #F0F4FA;
-  padding: 30px 30px;
+  padding: 20px 20px 0;
+  overflow: hidden;
   box-sizing: border-box;
 }
 
@@ -9607,7 +9701,7 @@ ol {
   transition: all .3s;
 }
 
-.arrowZ{
+.arrowZ {
   transform: rotate(180deg);
 }
 
@@ -9633,7 +9727,7 @@ ol {
   justify-content: center;
   border-radius: 5px;
   height: 50px;
-  margin: 35px auto 0;
+  margin: 0 auto 0;
   cursor: pointer;
 }
 
@@ -9766,7 +9860,7 @@ ol {
 .lineTitle {
   /* margin-top: 15px; */
   width: 110px;
-  font-size:18px;
+  font-size: 18px;
 }
 
 .courseTop {
@@ -10846,7 +10940,7 @@ ol {
   overflow: auto;
 }
 
-.textarea_css{
+.textarea_css {
   display: block;
   resize: none;
   padding: 10px 15px;
@@ -10859,14 +10953,14 @@ ol {
   background-image: none;
   border: 1px solid #DCDFE6;
   border-radius: 4px;
-  transition: border-color .2s cubic-bezier(.645,.045,.355,1);
+  transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
   outline: none;
-  overflow:hidden;
+  overflow: hidden;
   height: 40px;
 }
 
 .textarea_css:focus {
-    border-color: #409EFF;
-    outline: 0;
+  border-color: #409EFF;
+  outline: 0;
 }
 </style>

+ 12 - 11
src/components/pages/easy/addCourse.vue

@@ -84,7 +84,7 @@
                     <!-- <div class="ai_box">
                       <div class="ai_content" @click="openAI"><img src="../../../assets/icon/new/ai.png"/><span>AI共创</span></div>
                     </div> -->
-                    <div style="margin-top: auto;">
+                    <div style="margin: auto;">
                       <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
                         <img src="../../../assets/icon/addPoster.png" alt="" />
                         <div>点击添加封面</div>
@@ -3324,7 +3324,7 @@
               <div style="display: flex;align-items: center;">
                 {{ index1 + 1 + "、" }}
                 <textarea class="a_add_head_input textarea_css"  v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
-                        " placeholder="请输入题目..." ></textarea>
+                        " placeholder="请输入题目" ></textarea>
               </div>
               <div class="a_add_head_div">
                 <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
@@ -3339,7 +3339,7 @@
                     选项{{ checkIndex + 1 }}
                   </div>
                   <textarea class="a_add_head_input textarea_css"   v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
-                        " placeholder="请输入选项..." style="width: 300px;" ></textarea>  
+                        " placeholder="请输入选项" style="width: 300px;" ></textarea>  
                 </div>
               </div>
               <div class="a_add_body_div">
@@ -3387,9 +3387,9 @@
                 <div style="display: flex;align-items: center;">
                   {{ index1 + 1 + "、" }}
                   <!-- <el-input class="a_add_head_input"  v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
-                    placeholder="请输入题目...">
+                    placeholder="请输入题目">
                   </el-input> -->
-                  <textarea class="a_add_head_input textarea_css"  v-autoHeight="40" v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目..."></textarea>
+                  <textarea class="a_add_head_input textarea_css"  v-autoHeight="40" v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"></textarea>
                 </div>
                 <div class="xzUpImg" @click.stop="addImg($event)">
                   <img src="../../../assets/icon/xzUpImg.png" alt="" />
@@ -3444,7 +3444,7 @@
                         </div>
                       </div>
                      <textarea class="a_add_head_input textarea_css"  v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
-                        " placeholder="请输入选项..." style="width: 300px; margin-right: 10px" ></textarea>
+                        " placeholder="请输入选项" style="width: 300px; margin-right: 10px" ></textarea>
                       <div class="xzUpImg" @click.stop="addImg($event)">
                         <img src="../../../assets/icon/xzUpImg.png" alt="" />
                         <input type="file" accept="image/*" style="display: none"
@@ -3484,7 +3484,7 @@
                       </div>
 
                       <textarea class="a_add_head_input textarea_css"  v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
-                        " placeholder="请输入选项..." style="width: 300px; margin-right: 10px" ></textarea>
+                        " placeholder="请输入选项" style="width: 300px; margin-right: 10px" ></textarea>
                       <div class="xzUpImg" @click.stop="addImg($event)">
                         <img src="../../../assets/icon/xzUpImg.png" alt="" />
                         <input type="file" accept="image/*" style="display: none"
@@ -3789,7 +3789,7 @@
             </div>
             <div class="select_box1_select_box">
               <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
-                v-model="selectJson.select[checkIndex]" placeholder="请输入选项..."
+                v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
                 style="width: 150px; margin: 10px 10px 0 0"></el-input>
               <div class="select_box1_select_box_add">
                 <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
@@ -10187,7 +10187,7 @@ ol {
 }
 
 .a_add_head .a_add_head_input {
-  width: 300px;
+  width: 550px;
 }
 
 .a_add_head .a_add_head_div {
@@ -10468,7 +10468,8 @@ ol {
   /* min-height: 1160px; */
   position: relative;
   background: #F0F4FA;
-  padding: 20px;
+  padding: 20px 20px 0;
+  overflow: hidden;
   box-sizing: border-box;
 }
 
@@ -10555,7 +10556,7 @@ ol {
   justify-content: center;
   border-radius: 5px;
   height: 50px;
-  margin: 35px auto 0;
+  margin: 0 auto 0;
   cursor: pointer;
 }
 

+ 12 - 11
src/components/pages/task/addCourse.vue

@@ -98,7 +98,7 @@
                     <!-- <div class="ai_box">
                       <div class="ai_content" @click="openAI"><img src="../../../assets/icon/new/ai.png"/><span>AI共创</span></div>
                     </div> -->
-                    <div style="margin-top: auto;">
+                    <div style="margin: auto;">
                       <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
                         <img src="../../../assets/icon/addPoster.png" alt="" />
                         <div>点击添加封面</div>
@@ -5399,7 +5399,7 @@
               <div style="display: flex;align-items: center;">
                 {{ index1 + 1 + "、" }}
                 <textarea class="a_add_head_input textarea_css"  v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
-                        " placeholder="请输入题目..." ></textarea>
+                        " placeholder="请输入题目" ></textarea>
               </div>
               <div class="a_add_head_div">
                 <el-button type="primary" size="small" @click="addAskList()"
@@ -5421,7 +5421,7 @@
                     选项{{ checkIndex + 1 }}
                   </div>
                   <textarea class="a_add_head_input textarea_css"   v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
-                        " placeholder="请输入选项..." style="width: 300px;" ></textarea>  
+                        " placeholder="请输入选项" style="width: 300px;" ></textarea>  
                 </div>
               </div>
               <div class="a_add_body_div">
@@ -5495,9 +5495,9 @@
                 <div style="display: flex;align-items: center;">
                   {{ index1 + 1 + "、" }}
                   <!-- <el-input class="a_add_head_input"  v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
-                    placeholder="请输入题目...">
+                    placeholder="请输入题目">
                   </el-input> -->
-                  <textarea class="a_add_head_input textarea_css"  v-autoHeight="40" v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目..."></textarea>
+                  <textarea class="a_add_head_input textarea_css"  v-autoHeight="40" v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"></textarea>
                 </div>
                 <div class="xzUpImg" @click.stop="addImg($event)">
                   <img src="../../../assets/icon/xzUpImg.png" alt="" />
@@ -5591,7 +5591,7 @@
                       </div>
 
                       <textarea class="a_add_head_input textarea_css"  v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
-                        " placeholder="请输入选项..." style="width: 300px; margin-right: 10px" ></textarea>
+                        " placeholder="请输入选项" style="width: 300px; margin-right: 10px" ></textarea>
                       <div class="xzUpImg" @click.stop="addImg($event)">
                         <img src="../../../assets/icon/xzUpImg.png" alt="" />
                         <input
@@ -5652,7 +5652,7 @@
                       </div>
 
                       <textarea class="a_add_head_input textarea_css"  v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
-                        " placeholder="请输入选项..." style="width: 300px; margin-right: 10px" ></textarea>
+                        " placeholder="请输入选项" style="width: 300px; margin-right: 10px" ></textarea>
                       <div class="xzUpImg" @click.stop="addImg($event)">
                         <img src="../../../assets/icon/xzUpImg.png" alt="" />
                         <input
@@ -6163,7 +6163,7 @@
                 v-for="(item2, checkIndex) in selectJson.select"
                 :key="checkIndex"
                 v-model="selectJson.select[checkIndex]"
-                placeholder="请输入选项..."
+                placeholder="请输入选项"
                 style="width: 150px; margin: 10px 10px 0 0"
               ></el-input>
               <div class="select_box1_select_box_add">
@@ -12720,7 +12720,7 @@ ol {
 }
 
 .a_add_head .a_add_head_input {
-  width: 300px;
+  width: 550px;
 }
 
 .a_add_head .a_add_head_div {
@@ -13003,7 +13003,8 @@ ol {
     /* min-height: 1160px; */
     position: relative;
     background: #F0F4FA;
-    padding: 20px;
+    padding: 20px 20px 0;
+  overflow: hidden;
     box-sizing: border-box;
 }
 .smallTaskBorder {
@@ -13089,7 +13090,7 @@ ol {
   justify-content: center;
   border-radius: 5px;
   height: 50px;
-  margin: 35px auto 0;
+  margin: 0 auto 0;
   cursor: pointer;
 }
 

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio