lsc пре 4 дана
родитељ
комит
f231267bd6

BIN
src/assets/icon/firstToolList/appStore.png


+ 2 - 1
src/common/tools.js

@@ -36,5 +36,6 @@ export const tools = {
     25: { name: "目标管理" },
     26: { name: "课程设计" },
     71: { name: "AI智能体" },
-    62: { name: "交互视频" }
+    62: { name: "交互视频" },
+    72: { name: "应用中心" }
 };

+ 7 - 0
src/components/courseDetail.vue

@@ -721,6 +721,13 @@
                                 />
                                 <div>AI智能体</div>
                               </div>
+                              <div v-if="item3.tool == 72">
+                                <img
+                                  src="../assets/icon/firstToolList/appStore.png"
+                                  alt
+                                />
+                                <div>应用中心</div>
+                              </div>
                               <div v-if="item3.tool == undefined">
                                 <img
                                   src="../assets/icon/empytool.png"

+ 20 - 0
src/components/easy2/studyStudent.vue

@@ -248,6 +248,7 @@
                       <div v-if="t.tool == 26">课程设计</div>
                       <div v-if="t.tool == 62">交互视频</div>
                       <div v-if="t.tool == 71">AI智能体</div>
+                      <div v-if="t.tool == 72">应用中心</div>
                     </div>
                   </div>
                 </div>
@@ -1434,6 +1435,14 @@
                             />
                             <div style="margin: 5px 0">AI智能体</div>
                           </div>
+                          <div v-if="tooC == 72">
+                            <img
+                              @click="addTools(tooC, toolIndex, taskCount)"
+                              src="../../assets/icon/firstToolList/appStore.png"
+                              alt
+                            />
+                            <div style="margin: 5px 0">AI智能体</div>
+                          </div>
                           <div v-if="tooC == 65">
                             <img
                               @click="addTools(tooC, toolIndex, taskCount)"
@@ -22851,6 +22860,17 @@ export default {
         //   return
         // }
         window.parent.postMessage({ tools: "71" }, "*");
+      } else if (t == 72) {
+        let item = this.chapInfoList[this.courseType].chapterInfo[0]
+          .taskJson[index].toolChoose[i].appJson
+          ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
+              .toolChoose[i].appJson
+          : "";
+        if(!item || !item.url){
+          this.$message.error("应用连接为空, 请到课程管理中添加");
+          return;
+        }
+        window.open(item.url, "_blank");
       } else if (t == 69) {
         if (this.worksStudent[i].length) {
           for (var k = 0; k < this.worksStudent[i].length; k++) {

+ 20 - 0
src/components/easy3/studyStudent.vue

@@ -225,6 +225,7 @@
                       <div v-if="t.tool == 26">课程设计</div>
                       <div v-if="t.tool == 62">交互视频</div>
                       <div v-if="t.tool == 71">AI智能体</div>
+                      <div v-if="t.tool == 72">应用中心</div>
                     </div>
                   </div>
                 </div>
@@ -1367,6 +1368,14 @@
                             />
                             <div style="margin: 5px 0">AI智能体</div>
                           </div>
+                          <div v-if="tooC == 72">
+                            <img
+                              @click="addTools(tooC, toolIndex, taskCount)"
+                              src="../../assets/icon/firstToolList/appStore.png"
+                              alt
+                            />
+                            <div style="margin: 5px 0">应用中心</div>
+                          </div>
                           <div v-if="tooC == 65">
                             <img
                               @click="addTools(tooC, toolIndex, taskCount)"
@@ -18528,6 +18537,17 @@ export default {
         //   return
         // }
         window.parent.postMessage({ tools: "71" }, "*");
+      } else if (t == 72) {
+        let item = this.chapInfoList[this.courseType].chapterInfo[0]
+          .taskJson[index].toolChoose[i].appJson
+          ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
+              .toolChoose[i].appJson
+          : "";
+        if(!item || !item.url){
+          this.$message.error("应用连接为空, 请到课程管理中添加");
+          return;
+        }
+        window.open(item.url, "_blank");
       } else if (t == 69) {
         if (this.worksStudent[i].length) {
           for (var k = 0; k < this.worksStudent[i].length; k++) {

+ 20 - 1
src/components/studyStudent.vue

@@ -230,7 +230,7 @@
                       <div v-if="t.tool == 26">课程设计</div>
                       <div v-if="t.tool == 62">交互视频</div>
                       <div v-if="t.tool == 71">AI智能体</div>
-
+                      <div v-if="t.tool == 72">应用中心</div>
                     </div>
                   </div>
                 </div>
@@ -1329,6 +1329,14 @@
                             />
                             <div style="margin: 5px 0">AI智能体</div>
                           </div>
+                          <div v-if="tooC == 72">
+                            <img
+                              @click="addTools(tooC, toolIndex, taskCount)"
+                              src="../assets/icon/firstToolList/appStore.png"
+                              alt
+                            />
+                            <div style="margin: 5px 0">应用中心</div>
+                          </div>
                           <div v-if="tooC == 65">
                             <img
                               @click="addTools(tooC, toolIndex, taskCount)"
@@ -18512,6 +18520,17 @@ export default {
         //   return
         // }
         window.parent.postMessage({ tools: "71" }, "*");
+      } else if (t == 72) {
+        let item = this.chapInfoList[this.courseType].chapterInfo[0]
+          .taskJson[index].toolChoose[i].appJson
+          ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
+              .toolChoose[i].appJson
+          : "";
+        if(!item || !item.url){
+          this.$message.error("应用连接为空, 请到课程管理中添加");
+          return;
+        }
+        window.open(item.url, "_blank");
       } else if (t == 69) {
         if (this.worksStudent[i].length) {
           for (var k = 0; k < this.worksStudent[i].length; k++) {

+ 20 - 0
src/components/studySutdentClass/studyStudent.vue

@@ -225,6 +225,7 @@
                       <div v-if="t.tool == 26">课程设计</div>
                       <div v-if="t.tool == 62">交互视频</div>
                       <div v-if="t.tool == 71">AI智能体</div>
+                      <div v-if="t.tool == 72">应用中心</div>
                     </div>
                   </div>
                 </div>
@@ -1387,6 +1388,14 @@
                             />
                             <div style="margin: 5px 0">AI智能体</div>
                           </div>
+                          <div v-if="tooC == 72">
+                            <img
+                              @click="addTools(tooC, toolIndex, taskCount)"
+                              src="../../assets/icon/firstToolList/appStore.png"
+                              alt
+                            />
+                            <div style="margin: 5px 0">AI智能体</div>
+                          </div>
                           <div v-if="tooC == 65">
                             <img
                               @click="addTools(tooC, toolIndex, taskCount)"
@@ -22260,6 +22269,17 @@ export default {
         //   return
         // }
         window.parent.postMessage({ tools: "71" }, "*");
+      } else if (t == 72) {
+        let item = this.chapInfoList[this.courseType].chapterInfo[0]
+          .taskJson[index].toolChoose[i].appJson
+          ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
+              .toolChoose[i].appJson
+          : "";
+        if(!item || !item.url){
+          this.$message.error("应用连接为空, 请到课程管理中添加");
+          return;
+        }
+        window.open(item.url, "_blank");
       } else if (t == 69) {
         if (this.worksStudent[i].length) {
           for (var k = 0; k < this.worksStudent[i].length; k++) {