lsc 7 months ago
parent
commit
25fc4bb7db

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       width: 100%;
       background: #e6eaf0;
       background: #e6eaf0;
       font-family: '黑体';
       font-family: '黑体';
-    }</style><link href=./static/css/app.75a5dba6a379f297eff410f11b31f635.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.571c38d63f24b1ae9e16.js></script><script type=text/javascript src=./static/js/vendor.ee476e38463461edca63.js></script><script type=text/javascript src=./static/js/app.b899c717cdee800252f9.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.2192b50d94532bb08c26fe5fa650eb40.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.571c38d63f24b1ae9e16.js></script><script type=text/javascript src=./static/js/vendor.ee476e38463461edca63.js></script><script type=text/javascript src=./static/js/app.c948d2cc59a0d2fdd93b.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {
     document.documentElement.addEventListener("touchstart", function (event) {

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


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


BIN
dist/static/img/model6-3.dac4e87.png


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


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


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


BIN
src/assets/icon/ppt/model6-3.png


+ 51 - 10
src/components/pages/aiAddCourse/addCourse.vue

@@ -794,11 +794,8 @@
                             item1.type == 12 ||
                             item1.type == 12 ||
                             item1.type == 13 ||
                             item1.type == 13 ||
                             item1.type == 7
                             item1.type == 7
-                          " :placeholder="item1.name" @click="
-                            updataVideoT(
-                              $event,
-                              index1
-                            )
+                          " :placeholder="item1.name"  @click.stop="
+                            checkChpater2($event, index1 )
                             " style="
                             " style="
                                         border: none;
                                         border: none;
                                         outline: none;
                                         outline: none;
@@ -7524,10 +7521,52 @@ export default {
       if (this.steps == 1) {
       if (this.steps == 1) {
         if (this.courseName != "") {
         if (this.courseName != "") {
           if ((this.ttaskDetailLoading5.join(",").indexOf('task-') !== -1) || (this.ttaskDetailLoading.join(",").indexOf('task-') !== -1) || this.cpotetLoading.cpote1 || this.cpotetLoading.cpote2 || this.cpotetLoading.cpote3 || this.cpotetLoading.cpote4) {
           if ((this.ttaskDetailLoading5.join(",").indexOf('task-') !== -1) || (this.ttaskDetailLoading.join(",").indexOf('task-') !== -1) || this.cpotetLoading.cpote1 || this.cpotetLoading.cpote2 || this.cpotetLoading.cpote3 || this.cpotetLoading.cpote4) {
-            this.$message({
-              message: "请回答完毕后再次发送",
-              type: "warning"
-            });
+            // this.$message({
+            //   message: "请回答完毕后再次发送",
+            //   type: "warning"
+            // });
+            if(this.ttaskDetailLoading5.length){
+              let num = parseInt(this.ttaskDetailLoading5[0].split("task-")[1]) + 1
+              this.$message({
+                message: "教案任务"+num+"描述还未生成完,请前往查看,回答完毕后再次操作。",
+                type: "warning"
+              });
+            }
+            if(this.ttaskDetailLoading.length){
+              let num = parseInt(this.ttaskDetailLoading[0].split("task-")[1]) + 1
+              this.$message({
+                message: "生成大纲任务"+num+"描述还未生成完,请前往查看,回答完毕后再次操作。",
+                type: "warning"
+              });
+            }
+            if(this.cpotetLoading.cpote1){
+              this.$message({
+                message: "概念群还未生成完,请前往查看,回答完毕后再次操作。",
+                type: "warning"
+              });
+            }
+            if(this.cpotetLoading.cpote2){
+              this.$message({
+                message: "问题链还未生成完,请前往查看,回答完毕后再次操作。",
+                type: "warning"
+              });
+            }
+            if(this.cpotetLoading.cpote3){
+              this.$message({
+                message: "目标层还未生成完,请前往查看,回答完毕后再次操作。",
+                type: "warning"
+              });
+            }
+            if(this.cpotetLoading.cpote4){
+              this.$message({
+                message: "任务簇还未生成完,请前往查看,回答完毕后再次操作。",
+                type: "warning"
+              });
+            }
+            
+          
+          
+          
             return;
             return;
           }
           }
 
 
@@ -15344,7 +15383,9 @@ ${message} 以及##参考资料 ${(!this.yiKeTemplateArray.includes(this.templat
 
 
 ${(this.templateid != 'cf5722a4-401b-11ef-b873-005056b86dc4') && '## Format example 课程简要描述:课程内容的简单叙述。 驱动性问题:1个驱动整个项目的问题。 最终作品:对应解决驱动性问题的作品,可个人可团队。'}
 ${(this.templateid != 'cf5722a4-401b-11ef-b873-005056b86dc4') && '## Format example 课程简要描述:课程内容的简单叙述。 驱动性问题:1个驱动整个项目的问题。 最终作品:对应解决驱动性问题的作品,可个人可团队。'}
 
 
-${this.courseText && this.aiCallback == 2 ? '注意,优化原有的<参考内容>即可不用重新生成,让内容更具体化,更具体' : ''}`
+${this.courseText && this.aiCallback == 2 ? '注意,优化原有的<参考内容>即可不用重新生成,让内容更具体化,更具体' : ''}
+
+如果在上传的文件中没有找到相关的课程简要描述、驱动性问题和最终作品的信息,请用自身的理解输出`
       this.aiGet(msg)
       this.aiGet(msg)
     },
     },
     setUnitJson() {
     setUnitJson() {

+ 165 - 84
src/components/pages/aiAddCourse/aiCreateDialog.vue

@@ -442,7 +442,7 @@ export default {
                                 fontSize: 18, // 字号
                                 fontSize: 18, // 字号
                                 align: "center",
                                 align: "center",
                             }
                             }
-                        },
+                        },//内容页1
                         {
                         {
                             img: require('../../../assets/icon/ppt/model6-2.png'),
                             img: require('../../../assets/icon/ppt/model6-2.png'),
                             title: {
                             title: {
@@ -484,7 +484,85 @@ export default {
                                 h: "100%",
                                 h: "100%",
                                 fill: { color: "C2CFEF" }
                                 fill: { color: "C2CFEF" }
                             }
                             }
-                        }
+                        },//内容页2
+                        {
+                            img: require('../../../assets/icon/ppt/model6-2.png'),
+                            title: {
+                                x: "5%", // 横坐标
+                                y: 1,
+                                w: "60%",
+                                color: '4F73DA',
+                                bold: true,
+                                fontSize: 35, // 字号
+                                align: "left",
+                            },
+                            subTitle: {
+                                x: "5%", // 横坐标
+                                y: 1.7,
+                                w: "60%",
+                                color: "333333",
+                                fontSize: 20, // 字号
+                                align: "left",
+                            },
+                            content: {
+                                x: "5%", // 横坐标
+                                y: 2.5,
+                                w: "60%",
+                                color: "333333",
+                                fontSize: 18, // 字号
+                                align: "left",
+                            },
+                            image: {
+                                x: "70%",
+                                y: "22%",
+                                w: "30%",
+                                h: "56%",
+                                sizing: "contain",
+                                path: require('../../../assets/icon/ppt/model6-3.png')
+                            },
+                        },//内容页3
+                        {
+                            img: require('../../../assets/icon/ppt/model6-2.png'),
+                            title: {
+                                x: 0, // 横坐标
+                                y: "30%",
+                                w: "35%",
+                                h: "40%",
+                                color: 'ffffff',
+                                bold: true,
+                                fontSize: 30, // 字号
+                                align: "right",
+                                fill: { color: "4F73DA"},
+                                margin: 10,
+                            },
+                            subTitle: {
+                                x: "37.5%", // 横坐标
+                                y: 1,
+                                w: "53%",
+                                color: "333333",
+                                fontSize: 20, // 字号
+                                align: "left",
+                            },
+                            content: {
+                                x: "37.5%", // 横坐标
+                                y: 2,
+                                w: "53%",
+                                color: "333333",
+                                fontSize: 18, // 字号
+                                align: "left",
+                            },
+                            square: {
+                                x: "5%",
+                                y: "10%",
+                                w: "90%",
+                                h: "80%",
+                                fill: { color: "ffffff" },
+                                line: {
+                                    width: '2',
+                                    color: "3B4564"
+                                }
+                            },
+                        }, //内容页5
                     ],
                     ],
                     imgEnd: {
                     imgEnd: {
                         img: require('../../../assets/icon/ppt/model6-1-2.png'),
                         img: require('../../../assets/icon/ppt/model6-1-2.png'),
@@ -525,7 +603,7 @@ export default {
             if (this.url) {
             if (this.url) {
                 this.$emit("createAiPpt", this.uJson);
                 this.$emit("createAiPpt", this.uJson);
             } else {
             } else {
-                this.$message.error("请先生成ppt");
+                this.$message.error("请点击“生成PPT”按钮");
             }
             }
         },
         },
         changeRadio() {
         changeRadio() {
@@ -784,87 +862,87 @@ ${mclass.length ? "面向年级:" + mclass.join(",") : ""}
             return Math.floor(Math.random() * (max - min + 1)) + min;
             return Math.floor(Math.random() * (max - min + 1)) + min;
         },
         },
         createPpt(arr) {
         createPpt(arr) {
-            let array = arr
-            // let array = [
-            //     {
-            //         "page": 1,
-            //         "title": "引入阶段",
-            //         "task": "课程背景",
-            //         "points": "同学们,让我们一起了解一下这门有趣的熊猫课程吧!今天,我们将探索熊猫的生活环境,并尝试去理解这些环境是如何影响熊猫的生存的。"
-            //     },
-            //     {
-            //         "page": 2,
-            //         "title": "引入阶段",
-            //         "task": "整体目标和任务要求",
-            //         "points": "这门课程的主要目标是让大家了解熊猫生活的环境以及生存所需的关键因素。我们将完成一个任务,具体要求是观察、记录、绘制和制作模型哦!"
-            //     },
-            //     {
-            //         "page": 3,
-            //         "title": "引入阶段",
-            //         "task": "驱动性问题",
-            //         "points": "大家思考一下这样一个问题:‘熊猫的生活环境对它们的生存有何重要影响?’ 我们接下去的活动将帮助大家找到答案。"
-            //     },
-            //     {
-            //         "page": 4,
-            //         "title": "引入阶段",
-            //         "task": "观察与记录技巧",
-            //         "points": "今天我们会运用图片和视频,来帮助大家观察熊猫栖息地和它们所吃的竹子等特征。细心观察,并将所见的特征记录下来是非常重要的技能哦!"
-            //     },
-            //     {
-            //         "page": 5,
-            //         "title": "探究阶段",
-            //         "task": "绘图工具和材料",
-            //         "points": "现在我们分发绘图工具和材料,来学习基本的绘图和建模技巧吧!熟练掌握这些工具会帮助我们更好地记录和展示我们的观察结果。"
-            //     },
-            //     {
-            //         "page": 6,
-            //         "title": "探究阶段",
-            //         "task": "观察和记录特征",
-            //         "points": "让我们好好观察一下身边的常见物体,把它们的特征记录下来。这个过程会训练你们的观察力和手眼协调能力。"
-            //     },
-            //     {
-            //         "page": 7,
-            //         "title": "探究阶段",
-            //         "task": "转换二维图像",
-            //         "points": "接下来,我们要把记录的三维物体转化为二维图像。这个步骤非常有趣,大家可以尽情发挥自己的绘画天赋哦!"
-            //     },
-            //     {
-            //         "page": 8,
-            //         "title": "探究阶段",
-            //         "task": "三维模型制作",
-            //         "points": "现在我们提供一些简单的材料,比如纸张和纸板,示范一下如何制作三维模型。记住,比例和结构是模型制作的关键!"
-            //     },
-            //     {
-            //         "page": 9,
-            //         "title": "评估与反馈阶段",
-            //         "task": "评估和检查",
-            //         "points": "大家完成了任务后,我们来检查和评估你们的二维图像和三维模型。确保它们的结构合理、比例协调。"
-            //     },
-            //     {
-            //         "page": 10,
-            //         "title": "评估与反馈阶段",
-            //         "task": "提出改进建议",
-            //         "points": "针对你们完成的作品,我们会提出一些改进建议。大家也可以相互评价,分享制作经验,这样可以互相学习哦!"
-            //     },
-            //     {
-            //         "page": 11,
-            //         "title": "评估与反馈阶段",
-            //         "task": "任务总结",
-            //         "points": "最后,我们要总结这次任务的执行情况,并表扬表现特别突出的同学。希望大家都能有所收获,并继续努力!"
-            //     },
-            //     {
-            //         "page": 12,
-            //         "title": "练习",
-            //         "task": "练习1:二维图像绘制",
-            //         "points": "选择一件日常物品(如书本、杯子),观察其特征,尝试通过手绘将其转换为二维图像。示例:通过绘制书本的正面、侧面和顶面图,展示其主要特征和比例关系。"
-            //     },
-            //     {
-            //         "page": 13,
-            //         "title": "练习",
-            //         "task": "练习2:三维模型制作",
-            //         "points": "使用纸张和纸板制作简单的模型,比如一个基本的房子或盒子。关注其结构和比例哦! 示例:通过折叠和粘贴纸张,制作一个四面体,确保各个面的比例协调,结构稳定。"
-            //     }
-            // ]
+            // let array = arr
+            let array = [
+                {
+                    "page": 1,
+                    "title": "引入阶段",
+                    "task": "课程背景",
+                    "points": "同学们,让我们一起了解一下这门有趣的熊猫课程吧!今天,我们将探索熊猫的生活环境,并尝试去理解这些环境是如何影响熊猫的生存的。"
+                },
+                {
+                    "page": 2,
+                    "title": "引入阶段",
+                    "task": "整体目标和任务要求",
+                    "points": "这门课程的主要目标是让大家了解熊猫生活的环境以及生存所需的关键因素。我们将完成一个任务,具体要求是观察、记录、绘制和制作模型哦!"
+                },
+                {
+                    "page": 3,
+                    "title": "引入阶段",
+                    "task": "驱动性问题",
+                    "points": "大家思考一下这样一个问题:‘熊猫的生活环境对它们的生存有何重要影响?’ 我们接下去的活动将帮助大家找到答案。"
+                },
+                {
+                    "page": 4,
+                    "title": "引入阶段",
+                    "task": "观察与记录技巧",
+                    "points": "今天我们会运用图片和视频,来帮助大家观察熊猫栖息地和它们所吃的竹子等特征。细心观察,并将所见的特征记录下来是非常重要的技能哦!"
+                },
+                {
+                    "page": 5,
+                    "title": "探究阶段",
+                    "task": "绘图工具和材料",
+                    "points": "现在我们分发绘图工具和材料,来学习基本的绘图和建模技巧吧!熟练掌握这些工具会帮助我们更好地记录和展示我们的观察结果。"
+                },
+                {
+                    "page": 6,
+                    "title": "探究阶段",
+                    "task": "观察和记录特征",
+                    "points": "让我们好好观察一下身边的常见物体,把它们的特征记录下来。这个过程会训练你们的观察力和手眼协调能力。"
+                },
+                {
+                    "page": 7,
+                    "title": "探究阶段",
+                    "task": "转换二维图像",
+                    "points": "接下来,我们要把记录的三维物体转化为二维图像。这个步骤非常有趣,大家可以尽情发挥自己的绘画天赋哦!"
+                },
+                {
+                    "page": 8,
+                    "title": "探究阶段",
+                    "task": "三维模型制作",
+                    "points": "现在我们提供一些简单的材料,比如纸张和纸板,示范一下如何制作三维模型。记住,比例和结构是模型制作的关键!"
+                },
+                {
+                    "page": 9,
+                    "title": "评估与反馈阶段",
+                    "task": "评估和检查",
+                    "points": "大家完成了任务后,我们来检查和评估你们的二维图像和三维模型。确保它们的结构合理、比例协调。"
+                },
+                {
+                    "page": 10,
+                    "title": "评估与反馈阶段",
+                    "task": "提出改进建议",
+                    "points": "针对你们完成的作品,我们会提出一些改进建议。大家也可以相互评价,分享制作经验,这样可以互相学习哦!"
+                },
+                {
+                    "page": 11,
+                    "title": "评估与反馈阶段",
+                    "task": "任务总结",
+                    "points": "最后,我们要总结这次任务的执行情况,并表扬表现特别突出的同学。希望大家都能有所收获,并继续努力!"
+                },
+                {
+                    "page": 12,
+                    "title": "练习",
+                    "task": "练习1:二维图像绘制",
+                    "points": "选择一件日常物品(如书本、杯子),观察其特征,尝试通过手绘将其转换为二维图像。示例:通过绘制书本的正面、侧面和顶面图,展示其主要特征和比例关系。"
+                },
+                {
+                    "page": 13,
+                    "title": "练习",
+                    "task": "练习2:三维模型制作",
+                    "points": "使用纸张和纸板制作简单的模型,比如一个基本的房子或盒子。关注其结构和比例哦! 示例:通过折叠和粘贴纸张,制作一个四面体,确保各个面的比例协调,结构稳定。"
+                }
+            ]
             // 1. 创建PPT
             // 1. 创建PPT
             const pres = new Pptxgen();
             const pres = new Pptxgen();
             const _slideTou = pres.addSlide();
             const _slideTou = pres.addSlide();
@@ -893,6 +971,9 @@ ${mclass.length ? "面向年级:" + mclass.join(",") : ""}
                     _slide.addText("", pContent.square);
                     _slide.addText("", pContent.square);
                     _slide.addText("", pContent.square2);
                     _slide.addText("", pContent.square2);
                 }
                 }
+                if(pContent.image){
+                    _slide.addImage(pContent.image);
+                }
                 const tempResult1 = page + " " + array[i].title;
                 const tempResult1 = page + " " + array[i].title;
                 _slide.addText(tempResult1, pContent.title);
                 _slide.addText(tempResult1, pContent.title);
                 const tempResult2 = array[i].task;
                 const tempResult2 = array[i].task;

+ 24 - 2
src/components/pages/course.vue

@@ -461,11 +461,32 @@ export default {
       pTypeCheckName: [],
       pTypeCheckName: [],
       btnDisplay: false,
       btnDisplay: false,
       dialogVisibleTemplate: false,
       dialogVisibleTemplate: false,
-      orgArray:['1973f6c7-1561-11ee-91d8-005056b86db5','777559d2-7239-11ee-b98c-005056b86db5','884c5665-a453-46f3-b7b6-01d575290aa9','0fec3a8a-ad04-11ed-b13d-005056b86db5','c9a6de59-8b4f-4be1-8565-a08081f649d3','7ada499f-4ec7-11ed-8c78-005056b86db5'],
-      oidArray:['f297fbdc-f0a0-11ee-b534-005056b86db5','45facc0a-1211-11ec-80ad-005056b86db5']
+      orgArray:[],
+      oidArray:[]
     };
     };
   },
   },
   methods: {
   methods: {
+    getAIJ(){
+      this.ajax
+        .get(this.$store.state.api + "getAIJ", "")
+        .then((res) => {
+          let oid = res.data[0];
+          let org = res.data[1];
+          let oidArray = []
+          let orgArray = []
+          for(var i = 0; i < oid.length; i++){
+            oidArray.push(oid[i].oid)
+          }
+          for(var i = 0; i < org.length; i++){
+            orgArray.push(org[i].oid)
+          }
+          this.orgArray = orgArray
+          this.oidArray = oidArray
+        })
+        .catch((err) => {
+          console.error(err);
+        });
+    },
 		// 分析按钮
 		// 分析按钮
 		shareCourse(courseId){
 		shareCourse(courseId){
 			this.$refs.shareDialogRef.open(courseId)
 			this.$refs.shareDialogRef.open(courseId)
@@ -1345,6 +1366,7 @@ export default {
     if (this.role == "1") {
     if (this.role == "1") {
       this.groupA = "4";
       this.groupA = "4";
     }
     }
+    this.getAIJ();
     this.page = 1;
     this.page = 1;
     // this.selectType();
     // this.selectType();
     this.selectAllType();
     this.selectAllType();

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