|
@@ -16964,15 +16964,16 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
}
|
|
}
|
|
// this.$forceUpdate();
|
|
// this.$forceUpdate();
|
|
};
|
|
};
|
|
|
|
+ let _this = this
|
|
this.isTextCancelSource.onerror = function(event) {
|
|
this.isTextCancelSource.onerror = function(event) {
|
|
// 处理错误,可以尝试重新连接
|
|
// 处理错误,可以尝试重新连接
|
|
- console.error('EventSource error:', event);
|
|
|
|
- this.$message.error("网络错误")
|
|
|
|
- this.textLoading = false
|
|
|
|
- this.ttextLoading = false
|
|
|
|
- this.isTextCancelToken = null
|
|
|
|
- this.isTextCancelSource.close();
|
|
|
|
- this.isTextCancelSource = null;
|
|
|
|
|
|
+ console.log('EventSource error:', event);
|
|
|
|
+ _this.$message.error("网络错误")
|
|
|
|
+ _this.textLoading = false
|
|
|
|
+ _this.ttextLoading = false
|
|
|
|
+ _this.isTextCancelToken = null
|
|
|
|
+ _this.isTextCancelSource.close();
|
|
|
|
+ _this.isTextCancelSource = null;
|
|
};
|
|
};
|
|
},
|
|
},
|
|
numberToChinese(number) {
|
|
numberToChinese(number) {
|
|
@@ -19535,15 +19536,17 @@ ${msg}
|
|
}
|
|
}
|
|
// this.$forceUpdate();
|
|
// this.$forceUpdate();
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+ let _this = _this
|
|
this.isOutlineTaskCancelSource[_tindex2].onerror = function(event) {
|
|
this.isOutlineTaskCancelSource[_tindex2].onerror = function(event) {
|
|
// 处理错误,可以尝试重新连接
|
|
// 处理错误,可以尝试重新连接
|
|
- console.error('EventSource error:', event);
|
|
|
|
- this.$message.error("网络错误")
|
|
|
|
- this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
|
|
|
|
- this.ttaskDetailLoading.splice(this.ttaskDetailLoading.indexOf(loading), 1)
|
|
|
|
- this.isOutlineTaskCancelToken[_tindex2] = null
|
|
|
|
- this.isOutlineTaskCancelSource[_tindex2].close();
|
|
|
|
- this.isOutlineTaskCancelSource[_tindex2] = null;
|
|
|
|
|
|
+ console.log('EventSource error:', event);
|
|
|
|
+ _this.$message.error("网络错误")
|
|
|
|
+ _this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
|
|
|
|
+ _this.ttaskDetailLoading.splice(this.ttaskDetailLoading.indexOf(loading), 1)
|
|
|
|
+ _this.isOutlineTaskCancelToken[_tindex2] = null
|
|
|
|
+ _this.isOutlineTaskCancelSource[_tindex2].close();
|
|
|
|
+ _this.isOutlineTaskCancelSource[_tindex2] = null;
|
|
};
|
|
};
|
|
},
|
|
},
|
|
async aiOutlineDetail(msg, index) {
|
|
async aiOutlineDetail(msg, index) {
|
|
@@ -19862,15 +19865,17 @@ ${taskArray.length ? '其他任务大纲内容' + taskArray.join(',') : ''}
|
|
}
|
|
}
|
|
// this.$forceUpdate();
|
|
// this.$forceUpdate();
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+ let _this = this
|
|
this.isOutlineTaskCancelSource[_tindex2].onerror = function(event) {
|
|
this.isOutlineTaskCancelSource[_tindex2].onerror = function(event) {
|
|
// 处理错误,可以尝试重新连接
|
|
// 处理错误,可以尝试重新连接
|
|
- console.error('EventSource error:', event);
|
|
|
|
- this.$message.error("网络错误")
|
|
|
|
- this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
|
|
|
|
- this.ttaskDetailLoading.splice(this.ttaskDetailLoading.indexOf(loading), 1)
|
|
|
|
- this.isOutlineTaskCancelToken[_tindex2] = null
|
|
|
|
- this.isOutlineTaskCancelSource[_tindex2].close();
|
|
|
|
- this.isOutlineTaskCancelSource[_tindex2] = null;
|
|
|
|
|
|
+ console.log('EventSource error:', event);
|
|
|
|
+ _this.$message.error("网络错误")
|
|
|
|
+ _this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
|
|
|
|
+ _this.ttaskDetailLoading.splice(this.ttaskDetailLoading.indexOf(loading), 1)
|
|
|
|
+ _this.isOutlineTaskCancelToken[_tindex2] = null
|
|
|
|
+ _this.isOutlineTaskCancelSource[_tindex2].close();
|
|
|
|
+ _this.isOutlineTaskCancelSource[_tindex2] = null;
|
|
};
|
|
};
|
|
},
|
|
},
|
|
async aiDetail2(msg, index) {
|
|
async aiDetail2(msg, index) {
|
|
@@ -20020,12 +20025,13 @@ ${_this.aiCallBack.taskDetail}
|
|
}
|
|
}
|
|
// this.$forceUpdate();
|
|
// this.$forceUpdate();
|
|
};
|
|
};
|
|
|
|
+ let _this = this
|
|
_source.onerror = function(event) {
|
|
_source.onerror = function(event) {
|
|
// 处理错误,可以尝试重新连接
|
|
// 处理错误,可以尝试重新连接
|
|
- console.error('EventSource error:', event);
|
|
|
|
- this.$message.error("网络错误")
|
|
|
|
- this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
|
|
|
|
- this.ttaskDetailLoading2.splice(this.ttaskDetailLoading2.indexOf(loading), 1)
|
|
|
|
|
|
+ console.log('EventSource error:', event);
|
|
|
|
+ _this.$message.error("网络错误")
|
|
|
|
+ _this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
|
|
|
|
+ _this.ttaskDetailLoading2.splice(this.ttaskDetailLoading2.indexOf(loading), 1)
|
|
_source.close();
|
|
_source.close();
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -20177,12 +20183,14 @@ ${msg} 输出格式和内容要求参考#格式与要求
|
|
}
|
|
}
|
|
// this.$forceUpdate();
|
|
// this.$forceUpdate();
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+ let _this = this
|
|
_source.onerror = function(event) {
|
|
_source.onerror = function(event) {
|
|
// 处理错误,可以尝试重新连接
|
|
// 处理错误,可以尝试重新连接
|
|
- console.error('EventSource error:', event);
|
|
|
|
- this.$message.error("网络错误")
|
|
|
|
- this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
|
|
|
|
- this.ttaskDetailLoading3.splice(this.ttaskDetailLoading3.indexOf(loading), 1)
|
|
|
|
|
|
+ console.log('EventSource error:', event);
|
|
|
|
+ _this.$message.error("网络错误")
|
|
|
|
+ _this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
|
|
|
|
+ _this.ttaskDetailLoading3.splice(this.ttaskDetailLoading3.indexOf(loading), 1)
|
|
_source.close();
|
|
_source.close();
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -20523,12 +20531,14 @@ ${_text2}`
|
|
}
|
|
}
|
|
// this.$forceUpdate();
|
|
// this.$forceUpdate();
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+ let _this = this
|
|
_source.onerror = function(event) {
|
|
_source.onerror = function(event) {
|
|
// 处理错误,可以尝试重新连接
|
|
// 处理错误,可以尝试重新连接
|
|
- console.error('EventSource error:', event);
|
|
|
|
- this.$message.error("网络错误")
|
|
|
|
- this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
|
|
|
|
- this.ttaskDetailLoading5.splice(this.ttaskDetailLoading5.indexOf(loading), 1)
|
|
|
|
|
|
+ console.log('EventSource error:', event);
|
|
|
|
+ _this.$message.error("网络错误")
|
|
|
|
+ _this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
|
|
|
|
+ _this.ttaskDetailLoading5.splice(this.ttaskDetailLoading5.indexOf(loading), 1)
|
|
_source.close();
|
|
_source.close();
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -20700,13 +20710,15 @@ ${(_this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" || _this.templatei
|
|
// 处理流数据
|
|
// 处理流数据
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+ let _this = this
|
|
_source.onerror = function(event) {
|
|
_source.onerror = function(event) {
|
|
- // 处理错误,可以尝试重新连接
|
|
|
|
- console.error('EventSource error:', event);
|
|
|
|
- this.$message.error("网络错误")
|
|
|
|
- this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
|
|
|
|
- this.ttaskDetailLoading5.splice(this.ttaskDetailLoading5.indexOf(loading), 1)
|
|
|
|
- _source.close();
|
|
|
|
|
|
+ // 处理错误,可以尝试重新连接
|
|
|
|
+ console.log('EventSource error:', event);
|
|
|
|
+ _this.$message.error("网络错误")
|
|
|
|
+ _this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
|
|
|
|
+ _this.ttaskDetailLoading5.splice(this.ttaskDetailLoading5.indexOf(loading), 1)
|
|
|
|
+ _source.close();
|
|
};
|
|
};
|
|
},
|
|
},
|
|
aiDetail52getAiContentText(_e, loading, _tindex2, _source){
|
|
aiDetail52getAiContentText(_e, loading, _tindex2, _source){
|
|
@@ -20910,12 +20922,14 @@ ${this.aitype == 'aiCpote4' ? '## 目标层\n'+this.cpote['cpote3'] : ''}`
|
|
}
|
|
}
|
|
// this.$forceUpdate();
|
|
// this.$forceUpdate();
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+ let _this = this
|
|
_source.onerror = function(event) {
|
|
_source.onerror = function(event) {
|
|
// 处理错误,可以尝试重新连接
|
|
// 处理错误,可以尝试重新连接
|
|
- console.error('EventSource error:', event);
|
|
|
|
- this.$message.error("网络错误")
|
|
|
|
- this.cpoteLoading[loading] = false
|
|
|
|
- this.cpotetLoading[loading] = false
|
|
|
|
|
|
+ console.log('EventSource error:', event);
|
|
|
|
+ _this.$message.error("网络错误")
|
|
|
|
+ _this.cpoteLoading[loading] = false
|
|
|
|
+ _this.cpotetLoading[loading] = false
|
|
_source.close();
|
|
_source.close();
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -21093,15 +21107,17 @@ ${this.teacherCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
|
|
|
// this.$forceUpdate();
|
|
// this.$forceUpdate();
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+ let _this = this
|
|
this.isTeacherTextCancelSource.onerror = function(event) {
|
|
this.isTeacherTextCancelSource.onerror = function(event) {
|
|
// 处理错误,可以尝试重新连接
|
|
// 处理错误,可以尝试重新连接
|
|
- console.error('EventSource error:', event);
|
|
|
|
- this.$message.error("网络错误")
|
|
|
|
- this.teacherTextLoading = false
|
|
|
|
- this.tteacherTextLoading = false
|
|
|
|
- this.isTeacherTextCancelToken = null
|
|
|
|
- this.isTeacherTextCancelSource.close();
|
|
|
|
- this.isTeacherTextCancelSource = null;
|
|
|
|
|
|
+ console.log('EventSource error:', event);
|
|
|
|
+ _this.$message.error("网络错误")
|
|
|
|
+ _this.teacherTextLoading = false
|
|
|
|
+ _this.tteacherTextLoading = false
|
|
|
|
+ _this.isTeacherTextCancelToken = null
|
|
|
|
+ _this.isTeacherTextCancelSource.close();
|
|
|
|
+ _this.isTeacherTextCancelSource = null;
|
|
};
|
|
};
|
|
},
|
|
},
|
|
async aitargetTextDetail(msg) {
|
|
async aitargetTextDetail(msg) {
|
|
@@ -21279,15 +21295,17 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
|
|
|
// this.$forceUpdate();
|
|
// this.$forceUpdate();
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+ let _this = this
|
|
this.isTargetCancelSource1.onerror = function(event) {
|
|
this.isTargetCancelSource1.onerror = function(event) {
|
|
// 处理错误,可以尝试重新连接
|
|
// 处理错误,可以尝试重新连接
|
|
- console.error('EventSource error:', event);
|
|
|
|
- this.$message.error("网络错误")
|
|
|
|
- this.targetTextLoading = false
|
|
|
|
- this.ttargetTextLoading = false
|
|
|
|
- this.isTargetCancelToken1 = null
|
|
|
|
- this.isTargetCancelSource1.close();
|
|
|
|
- this.isTargetCancelSource1 = null;
|
|
|
|
|
|
+ console.log('EventSource error:', event);
|
|
|
|
+ _this.$message.error("网络错误")
|
|
|
|
+ _this.targetTextLoading = false
|
|
|
|
+ _this.ttargetTextLoading = false
|
|
|
|
+ _this.isTargetCancelToken1 = null
|
|
|
|
+ _this.isTargetCancelSource1.close();
|
|
|
|
+ _this.isTargetCancelSource1 = null;
|
|
};
|
|
};
|
|
},
|
|
},
|
|
async aitargetTextDetail2(msg) {
|
|
async aitargetTextDetail2(msg) {
|
|
@@ -21628,15 +21646,17 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
}
|
|
}
|
|
// this.$forceUpdate();
|
|
// this.$forceUpdate();
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+ let _this = this
|
|
this.isTargetCancelSource2.onerror = function(event) {
|
|
this.isTargetCancelSource2.onerror = function(event) {
|
|
// 处理错误,可以尝试重新连接
|
|
// 处理错误,可以尝试重新连接
|
|
- console.error('EventSource error:', event);
|
|
|
|
- this.$message.error("网络错误")
|
|
|
|
- this.targetTextLoading2 = false
|
|
|
|
- this.ttargetTextLoading2 = false
|
|
|
|
- this.isTargetCancelToken2 = null
|
|
|
|
- this.isTargetCancelSource2.close();
|
|
|
|
- this.isTargetCancelSource2 = null;
|
|
|
|
|
|
+ console.log('EventSource error:', event);
|
|
|
|
+ _this.$message.error("网络错误")
|
|
|
|
+ _this.targetTextLoading2 = false
|
|
|
|
+ _this.ttargetTextLoading2 = false
|
|
|
|
+ _this.isTargetCancelToken2 = null
|
|
|
|
+ _this.isTargetCancelSource2.close();
|
|
|
|
+ _this.isTargetCancelSource2 = null;
|
|
};
|
|
};
|
|
},
|
|
},
|
|
async aitargetTextDetail3(msg) {
|
|
async aitargetTextDetail3(msg) {
|