|
@@ -468,6 +468,9 @@
|
|
|
</div>
|
|
|
<div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
|
|
|
</div>
|
|
|
+
|
|
|
+ <div v-if="item1.type == 15" class="chapter_upload_l_i15" style="margin-left: 1px">
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="chapter_upload_n" :class="{dataTips: !item1.fileid}">
|
|
|
<div v-if="
|
|
@@ -491,6 +494,9 @@
|
|
|
<div v-if="item1.type == 14" class="chapter_upload_box" @click="
|
|
|
openUpdateSource(0, index1)
|
|
|
" >{{ item1.title ? item1.title : '链接' }}</div>
|
|
|
+ <div v-if="item1.type == 15" class="chapter_upload_box" @click="
|
|
|
+ openUpdateSource(0, index1)
|
|
|
+ " >{{ item1.title ? item1.title : 'Ai应用' }}</div>
|
|
|
</div>
|
|
|
<div class="chapter_upload_ic">
|
|
|
<div class="chapter_upload_noSee" v-if="item1.type == 12"></div>
|
|
@@ -540,7 +546,7 @@
|
|
|
">
|
|
|
<div></div>
|
|
|
</div>
|
|
|
- <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
|
|
|
+ <div class="chapter_upload_ic_edit" v-if="item1.type == 8 || item1.type == 15"
|
|
|
@click="selectLine(0, index1)">
|
|
|
<div></div>
|
|
|
</div>
|
|
@@ -2938,6 +2944,11 @@
|
|
|
class="chapter_upload_l_i13"
|
|
|
style="margin-left: 1px"
|
|
|
></div>
|
|
|
+ <div
|
|
|
+ v-if="item1.type == 15"
|
|
|
+ class="chapter_upload_l_i15"
|
|
|
+ style="margin-left: 1px"
|
|
|
+ ></div>
|
|
|
</div>
|
|
|
<div class="chapter_upload_n">
|
|
|
<input
|
|
@@ -3020,6 +3031,22 @@
|
|
|
openUpdateSource(itemTaskIndex, index1)
|
|
|
"
|
|
|
/>
|
|
|
+ <input
|
|
|
+ :placeholder="
|
|
|
+ item1.title ? item1.title : 'Ai应用'
|
|
|
+ "
|
|
|
+ v-if="item1.type == 15"
|
|
|
+ style="
|
|
|
+ border: none;
|
|
|
+ outline: none;
|
|
|
+ width: 80%;
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ "
|
|
|
+ readonly="true"
|
|
|
+ @click="selectLine(0, index1)"
|
|
|
+ />
|
|
|
</div>
|
|
|
<div class="chapter_upload_ic">
|
|
|
<div
|
|
@@ -3091,7 +3118,7 @@
|
|
|
</div>
|
|
|
<div
|
|
|
class="chapter_upload_ic_edit"
|
|
|
- v-if="item1.type == 8"
|
|
|
+ v-if="item1.type == 8 || item1.type == 15"
|
|
|
@click="selectLine(itemTaskIndex, index1)"
|
|
|
>
|
|
|
<div></div>
|
|
@@ -7055,6 +7082,7 @@ import MindTask from "./jsmind2";
|
|
|
import ConvertApi from 'convertapi-js'
|
|
|
let convertApi = ConvertApi.auth('secret_U1EO5rhgMCnoBnBT')
|
|
|
import appDialog from '../components/appDialog.vue'
|
|
|
+import { myMixin } from "@/mixins/mixin.js"
|
|
|
|
|
|
var OpenCC = require("opencc-js");
|
|
|
let converter = OpenCC.Converter({
|
|
@@ -7106,6 +7134,7 @@ const getFile = (url) => {
|
|
|
};
|
|
|
|
|
|
export default {
|
|
|
+ mixins: [ myMixin ],
|
|
|
components: {
|
|
|
EditorBar,
|
|
|
Mind,
|
|
@@ -17912,7 +17941,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
this.aiText = this.aiJson.aiTaskName
|
|
|
this.aiCallBack = callback
|
|
|
} else if (type == "aiTaskG3") {
|
|
|
- if (this.taskGLoading[callback] && (this.taskGLoading[callback][0][2])) {
|
|
|
+ if (this.taskGLoading[callback] && this.taskGLoading[callback][0] && (this.taskGLoading[callback][0][2])) {
|
|
|
this.$message({
|
|
|
message: "请回答完毕后再次发送",
|
|
|
type: "warning"
|
|
@@ -17923,7 +17952,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
this.aiText = this.aiJson.aiTaskG3
|
|
|
this.aiCallBack = callback
|
|
|
} else if (type == "aiTaskG2") {
|
|
|
- if (this.taskGLoading[callback] && (this.taskGLoading[callback][0][1])) {
|
|
|
+ if (this.taskGLoading[callback] && this.taskGLoading[callback][0] && (this.taskGLoading[callback][0][1])) {
|
|
|
this.$message({
|
|
|
message: "请回答完毕后再次发送",
|
|
|
type: "warning"
|
|
@@ -25410,21 +25439,49 @@ ${msg}
|
|
|
},
|
|
|
openAddApp(i) {
|
|
|
this.lineCount = i;
|
|
|
- this.$refs.appDialog.openG("", "", "", "", 1);
|
|
|
+ let _index = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
+ this.lineCount
|
|
|
+ ].chapterData.findIndex(i => i.type == 15);
|
|
|
+
|
|
|
+ let _obj = {}
|
|
|
+
|
|
|
+ if (_index != -1) {
|
|
|
+ _obj = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
+ this.lineCount
|
|
|
+ ].chapterData[_index]
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$refs.appDialog.openG(_obj, "", "", "", 2);
|
|
|
},
|
|
|
selectAppSuccess({ data, type }) {
|
|
|
- console.log(data);
|
|
|
- data.forEach(i => {
|
|
|
+ let _index = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
+ this.lineCount
|
|
|
+ ].chapterData.findIndex(i => i.type == 15);
|
|
|
+ if (_index != -1) {
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
+ this.lineCount
|
|
|
+ ].chapterData.splice(_index, 1);
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
this.lineCount
|
|
|
].chapterData.push({
|
|
|
- name: i.name,
|
|
|
- title: i.name,
|
|
|
- url: i.url,
|
|
|
- type: 8
|
|
|
+ name: data.name,
|
|
|
+ title: data.name,
|
|
|
+ id:data.id,
|
|
|
+ url: data.url,
|
|
|
+ type: 15
|
|
|
});
|
|
|
- this.imgChange1(null, null, 8, this.lineCount);
|
|
|
- });
|
|
|
+ } else {
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
+ this.lineCount
|
|
|
+ ].chapterData.push({
|
|
|
+ name: data.name,
|
|
|
+ title: data.name,
|
|
|
+ id:data.id,
|
|
|
+ url: data.url,
|
|
|
+ type: 15
|
|
|
+ });
|
|
|
+ }
|
|
|
+ this.imgChange1(null, null, 8, this.lineCount);
|
|
|
this.dialogVisible7 = false;
|
|
|
}
|
|
|
},
|
|
@@ -26834,7 +26891,8 @@ ${msg}
|
|
|
.chapter_upload_l_i6,
|
|
|
.chapter_upload_l_i12,
|
|
|
.chapter_upload_l_i14,
|
|
|
-.chapter_upload_l_i13 {
|
|
|
+.chapter_upload_l_i13,
|
|
|
+.chapter_upload_l_i15 {
|
|
|
width: 15px;
|
|
|
height: 15px;
|
|
|
background-size: 100% 100%;
|
|
@@ -26856,6 +26914,11 @@ ${msg}
|
|
|
background-image: url("../../../assets/icon/new/u_source.png");
|
|
|
}
|
|
|
|
|
|
+.chapter_upload_l_i15 {
|
|
|
+ background-image: url("../../../assets/icon/new/appStore.png");
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
.chapter_upload_l_i6 {
|
|
|
background-image: url("../../../assets/icon/new/u_picture.png");
|
|
|
}
|