|
@@ -227,6 +227,7 @@
|
|
<div v-if="t.tool == 25">目标管理</div>
|
|
<div v-if="t.tool == 25">目标管理</div>
|
|
<div v-if="t.tool == 26">课程设计</div>
|
|
<div v-if="t.tool == 26">课程设计</div>
|
|
<div v-if="t.tool == 62">交互视频</div>
|
|
<div v-if="t.tool == 62">交互视频</div>
|
|
|
|
+ <div v-if="t.tool == 71">AI智能体</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -1265,6 +1266,14 @@
|
|
/>
|
|
/>
|
|
<div style="margin: 5px 0">海龟编程</div>
|
|
<div style="margin: 5px 0">海龟编程</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div v-if="tooC == 71">
|
|
|
|
+ <img
|
|
|
|
+ @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
|
+ src="../assets/icon/fourthToolList/chatgpt.png"
|
|
|
|
+ alt
|
|
|
|
+ />
|
|
|
|
+ <div style="margin: 5px 0">AI智能体</div>
|
|
|
|
+ </div>
|
|
<div v-if="tooC == 65">
|
|
<div v-if="tooC == 65">
|
|
<img
|
|
<img
|
|
@click="addTools(tooC, toolIndex, taskCount)"
|
|
@click="addTools(tooC, toolIndex, taskCount)"
|
|
@@ -8490,6 +8499,23 @@
|
|
<div v-else class="isChoose"></div>
|
|
<div v-else class="isChoose"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div
|
|
|
|
+ class="tool"
|
|
|
|
+ :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
|
|
|
|
+ @click="addTools2(71)"
|
|
|
|
+ >
|
|
|
|
+ <div class="whiteBIcon">
|
|
|
|
+ <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
|
|
|
|
+ <div style="margin: 5px 0">AI智能体</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="check">
|
|
|
|
+ <div
|
|
|
|
+ v-if="checktoolArray.indexOf(71) == -1"
|
|
|
|
+ class="noChoose"
|
|
|
|
+ ></div>
|
|
|
|
+ <div v-else class="isChoose"></div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="toolSort" v-if="toolType == 7">
|
|
<div class="toolSort" v-if="toolType == 7">
|
|
<div
|
|
<div
|
|
@@ -13936,7 +13962,7 @@ export default {
|
|
})
|
|
})
|
|
.catch(() => {});
|
|
.catch(() => {});
|
|
},
|
|
},
|
|
- commentOther(w, toolIndex, wIndex, gindex, gid) {
|
|
|
|
|
|
+ async commentOther(w, toolIndex, wIndex, gindex, gid) {
|
|
this.commentIndexJson = {
|
|
this.commentIndexJson = {
|
|
toolIndex: toolIndex,
|
|
toolIndex: toolIndex,
|
|
wIndex: wIndex,
|
|
wIndex: wIndex,
|
|
@@ -13947,7 +13973,7 @@ export default {
|
|
this.commentDialogVisible = true;
|
|
this.commentDialogVisible = true;
|
|
this.commentDetail = w;
|
|
this.commentDetail = w;
|
|
if (w.works && w.type == 1) {
|
|
if (w.works && w.type == 1) {
|
|
- this.pptImgUrl = "";
|
|
|
|
|
|
+ // this.pptImgUrl = "";
|
|
var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
|
|
var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
|
|
if (
|
|
if (
|
|
a.indexOf(
|
|
a.indexOf(
|
|
@@ -13956,8 +13982,9 @@ export default {
|
|
[w.works.split(".").length - 1].toLocaleUpperCase()
|
|
[w.works.split(".").length - 1].toLocaleUpperCase()
|
|
) != -1
|
|
) != -1
|
|
) {
|
|
) {
|
|
|
|
+ let _uuurl = await this.checkLink(w.works);
|
|
this.pptImgUrl =
|
|
this.pptImgUrl =
|
|
- "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(w.works);
|
|
|
|
|
|
+ "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
|
|
this.showPDF = false;
|
|
this.showPDF = false;
|
|
} else if (
|
|
} else if (
|
|
w.works
|
|
w.works
|
|
@@ -13987,7 +14014,7 @@ export default {
|
|
].toolChoose[toolIndex].wordJson;
|
|
].toolChoose[toolIndex].wordJson;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- openScore(w, index) {
|
|
|
|
|
|
+ async openScore(w, index) {
|
|
this.wScore = 0;
|
|
this.wScore = 0;
|
|
this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
|
|
this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
|
|
this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
|
|
this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
|
|
@@ -14009,8 +14036,9 @@ export default {
|
|
[w.works.split(".").length - 1].toLocaleUpperCase()
|
|
[w.works.split(".").length - 1].toLocaleUpperCase()
|
|
) != -1
|
|
) != -1
|
|
) {
|
|
) {
|
|
|
|
+ let _uuurl = await this.checkLink(w.works);
|
|
this.pptImgUrl =
|
|
this.pptImgUrl =
|
|
- "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(w.works);
|
|
|
|
|
|
+ "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
|
|
this.showPDF = false;
|
|
this.showPDF = false;
|
|
} else if (
|
|
} else if (
|
|
w.works
|
|
w.works
|
|
@@ -17202,15 +17230,16 @@ export default {
|
|
this.chapTools = this.chapToolList[i][t];
|
|
this.chapTools = this.chapToolList[i][t];
|
|
this.dialogVisible2 = true;
|
|
this.dialogVisible2 = true;
|
|
},
|
|
},
|
|
- openFile(f) {
|
|
|
|
|
|
+ async openFile(f) {
|
|
this.pptImgUrl = "";
|
|
this.pptImgUrl = "";
|
|
var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
|
|
var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
|
|
if (
|
|
if (
|
|
a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
|
|
a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
|
|
-1
|
|
-1
|
|
) {
|
|
) {
|
|
|
|
+ let _uuurl = await this.checkLink(f);
|
|
this.pptImgUrl =
|
|
this.pptImgUrl =
|
|
- "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f);
|
|
|
|
|
|
+ "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
|
|
this.showPDF = false;
|
|
this.showPDF = false;
|
|
this.dialogVisible3 = true;
|
|
this.dialogVisible3 = true;
|
|
} else if (
|
|
} else if (
|
|
@@ -17251,7 +17280,7 @@ export default {
|
|
this.isClickNav = i;
|
|
this.isClickNav = i;
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
},
|
|
},
|
|
- downFile(f, i) {
|
|
|
|
|
|
+ async downFile(f, i) {
|
|
this.isClickNav = "";
|
|
this.isClickNav = "";
|
|
this.pptImgUrl1 = "";
|
|
this.pptImgUrl1 = "";
|
|
var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
|
|
var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
|
|
@@ -17260,8 +17289,9 @@ export default {
|
|
f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
|
|
f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
|
|
) != -1
|
|
) != -1
|
|
) {
|
|
) {
|
|
|
|
+ let _uuurl = await this.checkLink(f.url);
|
|
this.pptImgUrl1 =
|
|
this.pptImgUrl1 =
|
|
- "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f.url);
|
|
|
|
|
|
+ "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
|
|
// this.dialogVisible3 = true;
|
|
// this.dialogVisible3 = true;
|
|
this.showType = 2;
|
|
this.showType = 2;
|
|
} else if (
|
|
} else if (
|
|
@@ -17988,6 +18018,8 @@ export default {
|
|
window.parent.postMessage({ tools: "61" }, "*");
|
|
window.parent.postMessage({ tools: "61" }, "*");
|
|
} else if (t == 63) {
|
|
} else if (t == 63) {
|
|
window.parent.postMessage({ tools: "63" }, "*");
|
|
window.parent.postMessage({ tools: "63" }, "*");
|
|
|
|
+ } else if (t == 71) {
|
|
|
|
+ window.parent.postMessage({ tools: "71" }, "*");
|
|
} else if (t == 69) {
|
|
} else if (t == 69) {
|
|
if (this.worksStudent[i].length) {
|
|
if (this.worksStudent[i].length) {
|
|
for (var k = 0; k < this.worksStudent[i].length; k++) {
|
|
for (var k = 0; k < this.worksStudent[i].length; k++) {
|
|
@@ -18572,7 +18604,7 @@ export default {
|
|
this.fulltype = type;
|
|
this.fulltype = type;
|
|
this.fullUrl = url;
|
|
this.fullUrl = url;
|
|
},
|
|
},
|
|
- checkFileFull1(t, f) {
|
|
|
|
|
|
+ async checkFileFull1(t, f) {
|
|
this.fullDialogVisible = true;
|
|
this.fullDialogVisible = true;
|
|
if (t == 6) {
|
|
if (t == 6) {
|
|
this.fulltype = 1;
|
|
this.fulltype = 1;
|
|
@@ -18589,8 +18621,9 @@ export default {
|
|
this.fullUrl = f.url;
|
|
this.fullUrl = f.url;
|
|
} else if (t == 3) {
|
|
} else if (t == 3) {
|
|
this.fulltype = 2;
|
|
this.fulltype = 2;
|
|
|
|
+ let _uuurl = await this.checkLink(f.url);
|
|
this.fullUrl =
|
|
this.fullUrl =
|
|
- "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f.url);
|
|
|
|
|
|
+ "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
openSname(n, id, i, uid) {
|
|
openSname(n, id, i, uid) {
|
|
@@ -19705,6 +19738,23 @@ export default {
|
|
this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
|
|
this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
},
|
|
},
|
|
|
|
+ async checkLink(url) {
|
|
|
|
+ console.log(url)
|
|
|
|
+ let _url = url
|
|
|
|
+ try {
|
|
|
|
+ const response = await fetch(url);
|
|
|
|
+ if(!response.ok){
|
|
|
|
+ _url = await this.checkLink("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" + encodeURIComponent(_url.split('https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/')[1]))
|
|
|
|
+ }
|
|
|
|
+ console.log(response.ok)
|
|
|
|
+ } catch (error) {
|
|
|
|
+ console.error('Error checking link:', error);
|
|
|
|
+ // console.log(false)
|
|
|
|
+ _url = await this.checkLink("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" + encodeURIComponent(_url.split('https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/')[1]))
|
|
|
|
+ }
|
|
|
|
+ // console.log(_url)
|
|
|
|
+ return _url
|
|
|
|
+ }
|
|
},
|
|
},
|
|
directives: {
|
|
directives: {
|
|
// 使用局部注册指令的方式
|
|
// 使用局部注册指令的方式
|
|
@@ -19856,7 +19906,6 @@ export default {
|
|
return c;
|
|
return c;
|
|
};
|
|
};
|
|
},
|
|
},
|
|
-
|
|
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
document.body.addEventListener("click", (e) => {
|
|
document.body.addEventListener("click", (e) => {
|