|
@@ -11580,7 +11580,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
if(this.knowFileids2.indexOf(fileid) == -1){
|
|
|
this.knowFileids2.push(fileid)
|
|
|
}else {
|
|
|
- this.knowFileids2.splice(this.knowFileids.indexOf(fileid), 1)
|
|
|
+ this.knowFileids2.splice(this.knowFileids2.indexOf(fileid), 1)
|
|
|
}
|
|
|
},
|
|
|
deleteInfoData(e, ic) {
|
|
@@ -16976,7 +16976,30 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
|
|
|
});
|
|
|
},
|
|
|
- openAiDialog(clickType, type, callback, index, tindex) {
|
|
|
+ async openAiDialog(clickType, type, callback, index, tindex) {
|
|
|
+ let fileid = this.isFileSearch ? [...this.fileIds] : []
|
|
|
+ fileid = [...fileid]
|
|
|
+ if (this.infoData.length) {
|
|
|
+ for (var i = 0; i < this.infoData.length; i++) {
|
|
|
+ if(this.infoData[i].fileid){
|
|
|
+ fileid.push(this.infoData[i].fileid)
|
|
|
+ }else {
|
|
|
+ let _fileid = await this.createFileid(this.infoData[i].url)
|
|
|
+ if(_fileid){
|
|
|
+ this.infoData[i].fileid = _fileid == 1 ? '' : _fileid
|
|
|
+ _this.$forceUpdate();
|
|
|
+ if(_fileid != 1){
|
|
|
+ fileid.push(_fileid)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fileid = [...fileid, ...this.knowFileids, ...this.knowFileids2]
|
|
|
+ if(fileid.length > 10){
|
|
|
+ this.$message.error('目前检索文件不能超过10个噢,请减少一些')
|
|
|
+ return;
|
|
|
+ }
|
|
|
if(clickType == 1 && this.tipsJson.istips == 1 && this.istemplate != 1 && this.tipsJson.userid != this.userid && this.userid != '5943e08c-b7d4-11ed-8d51-005056b86db5'){
|
|
|
this.$message.error("您没有权限修改/查看提示词");
|
|
|
return;
|
|
@@ -20045,15 +20068,15 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
|
|
|
|
|
|
// _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
|
|
|
_this.$forceUpdate();
|
|
|
- _this.$nextTick(()=>{
|
|
|
- setTimeout(() => {
|
|
|
- for (var j = 0; j < _task.toolChoose.length; j++) {
|
|
|
- if(_this.panTaskElist() == 0 && _this.pjIndex.indexOf(_this.unitJson[0].chapterInfo[0].taskJson[index].toolChoose[j].tool[0]) != -1){
|
|
|
- _this.$refs['evalist'+index+j][0].openAiDialog('elist');
|
|
|
- }
|
|
|
- }
|
|
|
- }, 2000);
|
|
|
- })
|
|
|
+ // _this.$nextTick(()=>{
|
|
|
+ // setTimeout(() => {
|
|
|
+ // for (var j = 0; j < _task.toolChoose.length; j++) {
|
|
|
+ // if(_this.panTaskElist() == 0 && _this.pjIndex.indexOf(_this.unitJson[0].chapterInfo[0].taskJson[index].toolChoose[j].tool[0]) != -1){
|
|
|
+ // _this.$refs['evalist'+index+j][0].openAiDialog('elist');
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }, 2000);
|
|
|
+ // })
|
|
|
}
|
|
|
|
|
|
callback ? callback() : ''
|