huangminghao 1 year ago
parent
commit
ca2338abfd

+ 1 - 1
dist/index.html

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

File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.5872eda8f958a989743193784f323f45.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.5872eda8f958a989743193784f323f45.css.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.0dd779a884f71287999a.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.0dd779a884f71287999a.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/manifest.4ae2783fdfe7ab52e4d5.js.map


+ 20 - 8
src/components/pages/synergyCourse/course.vue

@@ -11,9 +11,9 @@
         <div class="student_button">
           <button class="r_pub_button_course" @mouseenter="btnDisplay = true" @mouseleave="btnDisplay = false">
             <span @click="goToCourse3()">创建协同建构</span>
-            <!-- <div v-show="btnDisplay" class="buttonBox">
+            <div v-show="btnDisplay" class="buttonBox">
               <div type="primary" @click="goToCourseSimple()">极速创建</div>
-            </div> -->
+            </div>
           </button>
         </div>
       </div>
@@ -510,12 +510,23 @@ export default {
         );
       }
     },
+    formatDateTime2(timestamp){
+      const date = new Date(timestamp); // 根据时间戳创建Date对象
+      const year = date.getFullYear(); // 获取年份
+      const month = date.getMonth() + 1; // 获取月份,需要加1
+      const day = date.getDate(); // 获取日期
+      const formattedDate = `${year}-${this.handlerZero(month)}-${this.handlerZero(day)}`; // 拼接成格式化后的日期字符串
+      return formattedDate;
+    },
+    handlerZero(param){
+      return param= param<10?('0'+param):param
+    },
     goToCourseSimple(){
       let params = [
         {
           uid: this.userid,
-          //title: top.US.userInfo.username,
-          title: "黄明浩的创建",
+          title: top.US.userInfo.username+this.formatDateTime2(new Date().getTime())+"的快速创建",
+          //title: "黄明浩"+this.formatDateTime2(new Date().getTime())+"快速创建",
           brief: "",
           cover:
           JSON.stringify([
@@ -529,21 +540,22 @@ export default {
           evaId: "",
           astudent:"",
           see: 1,
-          chapters: "",
-          template:  "undefined" ,
+          chapters: JSON.stringify([{"dyName":"","chapterInfo":[{"isread":false,"chapterid":"468faf7e-ff3e-c2bf-2829-a78fd5fea04e","title":"","courseName":"","taskJson":[{"task":"","taskDetail":"","chapterData":[],"toolChoose":[{"tool":[],"toolDetail":"","toolType":0,"askCount":1,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}]}],"toolText":"","isShowTools":false,"askCount":1,"isFold":0,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"checkJson":[{"checkCount":[],"checkPerent":[]}],"homeworkList":[],"proVisible":false,"proVisible2":false}],"itemCount":1,"fileList1":[],"video":[],"testData":[],"pData":[],"templateArray":[]}]}]),
+          template:  "" ,
           courseType: JSON.stringify(this.courseTypeId),
           ateacher:"",
-          inviteCode: "",
+          inviteCode: "[]",
         },
       ];
       this.ajax
         .post(this.$store.state.api + "addSynergyCourse", params)
-        .then((res) => {
+        .then(() => {
           // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
           this.$message({
             message: "新增成功",
             type: "success",
           });
+          this.getCourse();
           // }
         })
         .catch((err) => {

Some files were not shown because too many files changed in this diff