浏览代码

AI应用文案

11wqe1 2 月之前
父节点
当前提交
929cbe6023

+ 43 - 0
package-lock.json

@@ -34,6 +34,7 @@
         "qrcodejs2": "^0.0.2",
         "recordrtc": "^5.6.2",
         "relation-graph": "^2.0.26",
+        "turndown": "^7.2.0",
         "vue": "^2.5.2",
         "vue-audio-better": "^3.0.1",
         "vue-cookies": "^1.7.4",
@@ -2113,6 +2114,12 @@
       "resolved": "https://registry.npmjs.org/@microsoft/fetch-event-source/-/fetch-event-source-2.0.1.tgz",
       "integrity": "sha512-W6CLUJ2eBMw3Rec70qrsEW0jOm/3twwJv21mrmj2yORiaVmVYGS4sSS5yUwvQc1ZlDLYGPnClVWmUUMagKNsfA=="
     },
+    "node_modules/@mixmark-io/domino": {
+      "version": "2.2.0",
+      "resolved": "https://registry.npmmirror.com/@mixmark-io/domino/-/domino-2.2.0.tgz",
+      "integrity": "sha512-Y28PR25bHXUg88kCV7nivXrP2Nj2RueZ3/l/jdx6J9f8J4nsEGcgX0Qe6lt7Pa+J79+kPiJU3LguR6O/6zrLOw==",
+      "license": "BSD-2-Clause"
+    },
     "node_modules/@mrmlnc/readdir-enhanced": {
       "version": "2.2.1",
       "resolved": "https://registry.npmmirror.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz",
@@ -21337,6 +21344,15 @@
         "node": "*"
       }
     },
+    "node_modules/turndown": {
+      "version": "7.2.0",
+      "resolved": "https://registry.npmmirror.com/turndown/-/turndown-7.2.0.tgz",
+      "integrity": "sha512-eCZGBN4nNNqM9Owkv9HAtWRYfLA4h909E/WGAWWBpmB275ehNhZyk87/Tpvjbp0jjNl9XwCsbe6bm6CqFsgD+A==",
+      "license": "MIT",
+      "dependencies": {
+        "@mixmark-io/domino": "^2.2.0"
+      }
+    },
     "node_modules/tweetnacl": {
       "version": "0.14.5",
       "resolved": "https://registry.npm.taobao.org/tweetnacl/download/tweetnacl-0.14.5.tgz",
@@ -25639,6 +25655,11 @@
       "resolved": "https://registry.npmjs.org/@microsoft/fetch-event-source/-/fetch-event-source-2.0.1.tgz",
       "integrity": "sha512-W6CLUJ2eBMw3Rec70qrsEW0jOm/3twwJv21mrmj2yORiaVmVYGS4sSS5yUwvQc1ZlDLYGPnClVWmUUMagKNsfA=="
     },
+    "@mixmark-io/domino": {
+      "version": "2.2.0",
+      "resolved": "https://registry.npmmirror.com/@mixmark-io/domino/-/domino-2.2.0.tgz",
+      "integrity": "sha512-Y28PR25bHXUg88kCV7nivXrP2Nj2RueZ3/l/jdx6J9f8J4nsEGcgX0Qe6lt7Pa+J79+kPiJU3LguR6O/6zrLOw=="
+    },
     "@mrmlnc/readdir-enhanced": {
       "version": "2.2.1",
       "resolved": "https://registry.npmmirror.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz",
@@ -37399,6 +37420,7 @@
         "selenium-server": "^3.0.1",
         "semver": "^5.3.0",
         "shelljs": "^0.7.6",
+        "turndown": "^7.2.0",
         "uglifyjs-webpack-plugin": "^1.1.1",
         "url-loader": "^0.5.8",
         "vue": "^2.5.2",
@@ -38864,6 +38886,11 @@
           "resolved": "https://registry.npmjs.org/@microsoft/fetch-event-source/-/fetch-event-source-2.0.1.tgz",
           "integrity": "sha512-W6CLUJ2eBMw3Rec70qrsEW0jOm/3twwJv21mrmj2yORiaVmVYGS4sSS5yUwvQc1ZlDLYGPnClVWmUUMagKNsfA=="
         },
+        "@mixmark-io/domino": {
+          "version": "2.2.0",
+          "resolved": "https://registry.npmmirror.com/@mixmark-io/domino/-/domino-2.2.0.tgz",
+          "integrity": "sha512-Y28PR25bHXUg88kCV7nivXrP2Nj2RueZ3/l/jdx6J9f8J4nsEGcgX0Qe6lt7Pa+J79+kPiJU3LguR6O/6zrLOw=="
+        },
         "@mrmlnc/readdir-enhanced": {
           "version": "2.2.1",
           "resolved": "https://registry.npmmirror.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz",
@@ -54833,6 +54860,14 @@
             "safe-buffer": "^5.0.1"
           }
         },
+        "turndown": {
+          "version": "7.2.0",
+          "resolved": "https://registry.npmmirror.com/turndown/-/turndown-7.2.0.tgz",
+          "integrity": "sha512-eCZGBN4nNNqM9Owkv9HAtWRYfLA4h909E/WGAWWBpmB275ehNhZyk87/Tpvjbp0jjNl9XwCsbe6bm6CqFsgD+A==",
+          "requires": {
+            "@mixmark-io/domino": "^2.2.0"
+          }
+        },
         "tweetnacl": {
           "version": "0.14.5",
           "resolved": "https://registry.npm.taobao.org/tweetnacl/download/tweetnacl-0.14.5.tgz",
@@ -61522,6 +61557,14 @@
         "safe-buffer": "^5.0.1"
       }
     },
+    "turndown": {
+      "version": "7.2.0",
+      "resolved": "https://registry.npmmirror.com/turndown/-/turndown-7.2.0.tgz",
+      "integrity": "sha512-eCZGBN4nNNqM9Owkv9HAtWRYfLA4h909E/WGAWWBpmB275ehNhZyk87/Tpvjbp0jjNl9XwCsbe6bm6CqFsgD+A==",
+      "requires": {
+        "@mixmark-io/domino": "^2.2.0"
+      }
+    },
     "tweetnacl": {
       "version": "0.14.5",
       "resolved": "https://registry.npm.taobao.org/tweetnacl/download/tweetnacl-0.14.5.tgz",

+ 8 - 4
src/components/easy2/studyStudent.vue

@@ -13823,7 +13823,8 @@
       :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
     >
       <div slot="title" class="header-title">
-        <div style="color: #fff">查看文档</div>
+        <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
+        <div v-else style="color: #fff">查看文档</div>
         <div
           @click="
             () => {
@@ -13866,7 +13867,7 @@
         <div
           class="wheel"
           v-if="
-            fulltype == 2 &&
+            (fulltype == 2 || fulltype == 4) &&
               fullUrl.indexOf(
                 'https://view.officeapps.live.com/op/view.aspx?src='
               ) != -1
@@ -13880,13 +13881,13 @@
         </div>
         <iframe
             style="width: 100%; height: 100%; border: none"
-            v-else-if="fulltype == 2 && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1)"
+            v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1)"
             :src="fullUrl"
           ></iframe>
           <iframe
             style="width: 100%; height: 100%; border: none"
             security="restricted"
-            v-else-if="fulltype == 2"
+            v-else-if="(fulltype == 2 || fulltype == 4)"
             sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
             :src="fullUrl"
           ></iframe>
@@ -24191,6 +24192,9 @@ export default {
       } else if (t == 8) {
         this.fulltype = 2;
         this.fullUrl = f.url;
+      }else if (t == 15) {
+        this.fulltype = 4;
+        this.fullUrl = f.url;
       } else if (
         t == 3 &&
         f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==

+ 8 - 4
src/components/easy3/studyStudent.vue

@@ -10411,7 +10411,8 @@
 
     >
       <div slot="title" class="header-title">
-        <div style="color: #fff">查看文档</div>
+        <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
+        <div v-else style="color: #fff">查看文档</div>
         <div
           @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
           style="
@@ -10449,7 +10450,7 @@
         <div
           class="wheel"
           v-if="
-            fulltype == 2 &&
+            (fulltype == 2 || fulltype == 4) &&
             fullUrl.indexOf(
               'https://view.officeapps.live.com/op/view.aspx?src='
             ) != -1
@@ -10463,13 +10464,13 @@
         </div>
         <iframe
             style="width: 100%; height: 100%; border: none"
-            v-else-if="fulltype == 2 && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1)"
+            v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1)"
             :src="fullUrl"
           ></iframe>
           <iframe
             style="width: 100%; height: 100%; border: none"
             security="restricted"
-            v-else-if="fulltype == 2"
+            v-else-if="(fulltype == 2 || fulltype == 4)"
             sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
             :src="fullUrl"
           ></iframe>
@@ -19621,6 +19622,9 @@ export default {
       } else if (t == 8) {
         this.fulltype = 2;
         this.fullUrl = f.url;
+      }else if (t == 15) {
+        this.fulltype = 4;
+        this.fullUrl = f.url;
       } else if (
         t == 3 &&
         f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==

+ 9 - 5
src/components/studyStudent.vue

@@ -10346,7 +10346,8 @@
 
     >
       <div slot="title" class="header-title">
-        <div style="color: #fff">查看文档</div>
+        <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
+        <div v-else style="color: #fff">查看文档</div>
         <div
           @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
           style="
@@ -10384,7 +10385,7 @@
         <div
           class="wheel"
           v-if="
-            fulltype == 2 &&
+            (fulltype == 2 || fulltype == 4) &&
             fullUrl.indexOf(
               'https://view.officeapps.live.com/op/view.aspx?src='
             ) != -1
@@ -10405,13 +10406,13 @@
         ></iframe> -->
           <iframe
             style="width: 100%; height: 100%; border: none"
-            v-else-if="fulltype == 2 && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1)"
+            v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1)"
             :src="fullUrl"
           ></iframe>
           <iframe
             style="width: 100%; height: 100%; border: none"
             security="restricted"
-            v-else-if="fulltype == 2"
+            v-else-if="(fulltype == 2 || fulltype == 4)"
             sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
             :src="fullUrl"
           ></iframe>
@@ -19608,9 +19609,12 @@ export default {
       if (t == 6) {
         this.fulltype = 1;
         this.fullUrl = JSON.parse(JSON.stringify(f));
-      } else if (t == 8 || t == 15) {
+      } else if (t == 8 ) {
         this.fulltype = 2;
         this.fullUrl = f.url;
+      }else if (t == 15) {
+        this.fulltype = 4;
+        this.fullUrl = f.url;
       } else if (
         t == 3 &&
         f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==

+ 8 - 4
src/components/studySutdentClass/studyStudent.vue

@@ -13592,7 +13592,8 @@
 
     >
       <div slot="title" class="header-title">
-        <div style="color: #fff">查看文档</div>
+        <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
+        <div v-else style="color: #fff">查看文档</div>
         <div
           @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
           style="
@@ -13630,7 +13631,7 @@
         <div
           class="wheel"
           v-if="
-            fulltype == 2 &&
+            (fulltype == 2 || fulltype == 4) &&
             fullUrl.indexOf(
               'https://view.officeapps.live.com/op/view.aspx?src='
             ) != -1
@@ -13644,13 +13645,13 @@
         </div>
         <iframe
             style="width: 100%; height: 100%; border: none"
-            v-else-if="fulltype == 2 && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1)"
+            v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1)"
             :src="fullUrl"
           ></iframe>
           <iframe
             style="width: 100%; height: 100%; border: none"
             security="restricted"
-            v-else-if="fulltype == 2"
+            v-else-if="(fulltype == 2 || fulltype == 4)"
             sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
             :src="fullUrl"
           ></iframe>
@@ -23595,6 +23596,9 @@ export default {
       } else if (t == 8) {
         this.fulltype = 2;
         this.fullUrl = f.url;
+      }else if (t == 15) {
+        this.fulltype = 4;
+        this.fullUrl = f.url;
       } else if (
         t == 3 &&
         f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==