|
@@ -928,15 +928,15 @@
|
|
|
)
|
|
|
" />
|
|
|
</button>
|
|
|
- <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
+ <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom" v-show="false">
|
|
|
<button class="c_pub_button_confirm" style="margin: 0px 0 0px auto;"
|
|
|
@contextmenu.prevent="openAiDialog(1, 'aitargetTextDetail2',1)"
|
|
|
- @click="openAiDialog(2, 'aitargetTextDetail2',1)">生成目标</button>
|
|
|
+ @click="openAiDialog(2, 'aitargetTextDetail2',1)">生成目标2</button>
|
|
|
</el-tooltip>
|
|
|
- <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom" v-show="false">
|
|
|
- <button class="c_pub_button_confirm" style="margin: 0 0 0 0;"
|
|
|
+ <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
+ <button class="c_pub_button_confirm" style="margin: 0px 0 0px auto;"
|
|
|
@contextmenu.prevent="openAiDialog(1, 'aitargetTextDetail3',1)"
|
|
|
- @click="openAiDialog(2, 'aitargetTextDetail3',1)">生成目标2</button>
|
|
|
+ @click="openAiDialog(2, 'aitargetTextDetail3',1)">生成目标</button>
|
|
|
</el-tooltip>
|
|
|
<div style="margin-top: 10px;width:100%" v-if="mubiaoInfoData.length">
|
|
|
<div class="add_chapters_box add_c_none" v-if="
|
|
@@ -5025,8 +5025,9 @@
|
|
|
<div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
|
|
|
<div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
|
|
|
<div class="elist_inptu_text">
|
|
|
- <span>目标:</span>
|
|
|
- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写目标" style="width: calc(100% - 280px);"/>
|
|
|
+ <!-- <span>目标:</span> -->
|
|
|
+ <span>核心素养:</span>
|
|
|
+ <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写核心素养" style="width: calc(100% - 280px);"/>
|
|
|
<el-switch
|
|
|
style="margin-left: auto;"
|
|
|
v-model="itemTask.eList[eIndex].isai"
|
|
@@ -5037,9 +5038,10 @@
|
|
|
</el-switch>
|
|
|
</div>
|
|
|
<div class="elist_inptu_text">
|
|
|
- <span>评价维度:</span>
|
|
|
+ <!-- <span>评价维度:</span> -->
|
|
|
+ <span>目标:</span>
|
|
|
<!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].value || '填写评价维度'" placement="top" popper-class="text_tooltip2"> -->
|
|
|
- <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价维度" />
|
|
|
+ <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写目标" />
|
|
|
<!-- </el-tooltip> -->
|
|
|
<!-- <span>评星等级:</span>
|
|
|
<el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
|
|
@@ -5053,9 +5055,10 @@
|
|
|
"></div>
|
|
|
</div>
|
|
|
<div class="elist_inptu_text">
|
|
|
- <span>维度描述:</span>
|
|
|
+ <!-- <span>维度描述:</span> -->
|
|
|
+ <span>评价标准:</span>
|
|
|
<!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].detail || '填写维度描述'" placement="top" popper-class="text_tooltip2"> -->
|
|
|
- <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写维度描述" />
|
|
|
+ <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价标准" />
|
|
|
<!-- </el-tooltip> -->
|
|
|
</div>
|
|
|
<div class="elist_inptu_text" v-if="evalua">
|
|
@@ -5287,7 +5290,7 @@
|
|
|
<aiTips ttitle="基础资料" title="提取目标" :detail="aiJson.aiTarget" pan="aiTarget" @setAiJson="setAiJson" v-if="!yiKeTemplateArray.includes(templateid)"/>
|
|
|
<aiTips ttitle="基础资料" title="智能检索资料" :detail="aiJson.aiSearchFile" pan="aiSearchFile" @setAiJson="setAiJson" v-if="!yiKeTemplateArray.includes(templateid)"/>
|
|
|
<aiTips ttitle="基础资料" title="课程描述优化" :detail="aiJson.aiDetail" pan="aiDetail" @setAiJson="setAiJson" />
|
|
|
- <!-- <aiTips ttitle="基础资料" title="目标文件检索" :detail="aiJson.aiTargetGet" pan="aiTargetGet" @setAiJson="setAiJson" v-if="!yiKeTemplateArray.includes(templateid)"/> -->
|
|
|
+ <aiTips ttitle="基础资料" title="目标文件检索" :detail="aiJson.aiTargetGet" pan="aiTargetGet" @setAiJson="setAiJson" v-if="!yiKeTemplateArray.includes(templateid)"/>
|
|
|
<aiTips ttitle="基础资料" title="生成目标" :detail="aiJson.aiTarget2" pan="aiTarget2" @setAiJson="setAiJson" v-if="!yiKeTemplateArray.includes(templateid)"/>
|
|
|
<aiTips ttitle="基础资料" title="生成大纲按钮" :detail="aiJson.aiOutline" pan="aiOutline" @setAiJson="setAiJson" v-if="templateid != '61c628b9-3d96-11ef-b873-005056b86db5' && templateid != '4480d65a-1e48-11ef-bee5-005056b86db5' && templateid != 'cf5722a4-401b-11ef-b873-005056b86dc3'"/>
|
|
|
<aiTips ttitle="课程大纲" title="大纲任务生成" :detail="aiJson.aiOutlineTask" pan="aiOutlineTask" @setAiJson="setAiJson" v-if="templateid == '61c628b9-3d96-11ef-b873-005056b86db5'"/>
|
|
@@ -9602,6 +9605,17 @@ export default {
|
|
|
var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
|
|
|
var _this = this;
|
|
|
var xianObj = ['DOCX','DOC','PPT','PPTX','MD','TXT','PDF']
|
|
|
+ if (
|
|
|
+ ['DOC'].indexOf(
|
|
|
+ file.name
|
|
|
+ .split(".")
|
|
|
+ [file.name.split(".").length - 1].toLocaleUpperCase()
|
|
|
+ ) !== -1
|
|
|
+ ) {
|
|
|
+ this.$message.error("抱歉,小可暂时不支持.doc的文件呢");
|
|
|
+ this.inputShow = true;
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (
|
|
|
xianObj.indexOf(
|
|
|
file.name
|
|
@@ -15727,7 +15741,8 @@ export default {
|
|
|
}
|
|
|
this.openAiDialog(2, 'aiDetail',1)
|
|
|
setTimeout(() => {
|
|
|
- this.openAiDialog(2, 'aitargetTextDetail2',1)
|
|
|
+ // this.openAiDialog(2, 'aitargetTextDetail2',1)
|
|
|
+ this.openAiDialog(2, 'aitargetTextDetail3',1)
|
|
|
}, 500);
|
|
|
this.courseTextBool = true
|
|
|
},
|
|
@@ -19732,7 +19747,12 @@ ${_text2}`
|
|
|
url.push(this.infoData[i].url)
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ let taskN = []
|
|
|
+ for(var ti = 0; ti < _this.unitJson[0].chapterInfo[0].taskJson.length; ti++){
|
|
|
+ if(_tindex2 != ti){
|
|
|
+ taskN.push("任务"+(ti+1)+":"+_this.unitJson[0].chapterInfo[0].taskJson[ti].task)
|
|
|
+ }
|
|
|
+ }
|
|
|
let messages = `NOTICE
|
|
|
Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容)
|
|
|
Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
|
|
@@ -19744,6 +19764,7 @@ ${msg}
|
|
|
## 补充描述
|
|
|
课程简要描述:${_this.courseText}
|
|
|
任务名:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
|
|
|
+其他大纲的任务名:${taskN.join(",")}
|
|
|
${(_this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" || _this.templateid == "cf5722a4-401b-11ef-b873-005056b86dc3") ? 'index:'+(_tindex2+1) : ''}
|
|
|
${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 ? '任务描述:' + _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}
|
|
|
${(_this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" || _this.templateid == "cf5722a4-401b-11ef-b873-005056b86dc3") ? '#目标层:'+_this.cpote.cpote3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}
|
|
@@ -20400,7 +20421,7 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
async aitargetTextDetail2(msg) {
|
|
|
let _this = this
|
|
|
|
|
|
- let fileid = ['file-okF1PSRw4VYjRl81SykkxWSo'] // file-okF1PSRw4VYjRl81SykkxWSo 科学目标fileid
|
|
|
+ let fileid = []
|
|
|
if(_this.mubiaoInfoData.length){
|
|
|
for (var i = 0; i < _this.mubiaoInfoData.length; i++) {
|
|
|
if(_this.mubiaoInfoData[i].fileid){
|
|
@@ -20443,6 +20464,11 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if(sub.length){
|
|
|
+ let _fileid = _this.importFileid(sub)
|
|
|
+ fileid = [...fileid, ..._fileid]
|
|
|
+ }
|
|
|
+
|
|
|
let messages = `NOTICE
|
|
|
Role: 你是创建课程的老师,内容以markdown形式出现(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容)。
|
|
|
Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
|
|
@@ -20520,10 +20546,54 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
});
|
|
|
await _this.aitargetTextDetail2getAiContent(_uuid)
|
|
|
},
|
|
|
+ importFileid(sub){
|
|
|
+ // file-SNthYVubrHGg4HjFcp3FPkZq 英语
|
|
|
+ // file-QOKhi8i84T8eR6DYhb9TaTlG 科学核心素养
|
|
|
+ // file-nkAUyRCEMncICGuFBC1WXnM1 科学素养内涵
|
|
|
+ // file-aQmfmgrwdrHa9sCTTZkjvK7Z 语文
|
|
|
+ // file-G1bRfSFnQaQtzA3c8dLshg0a 数学核心素养
|
|
|
+ // file-35koyXrFO2T4FsrQe4qXm0io 数学素养内涵
|
|
|
+ let _sub = converter(sub.join(","))
|
|
|
+ let fileid = []
|
|
|
+ if(_sub.indexOf(converter('STEM')) != -1){
|
|
|
+ fileid.push('file-SNthYVubrHGg4HjFcp3FPkZq')
|
|
|
+ fileid.push('file-QOKhi8i84T8eR6DYhb9TaTlG')
|
|
|
+ fileid.push('file-nkAUyRCEMncICGuFBC1WXnM1')
|
|
|
+ fileid.push('file-aQmfmgrwdrHa9sCTTZkjvK7Z')
|
|
|
+ fileid.push('file-G1bRfSFnQaQtzA3c8dLshg0a')
|
|
|
+ fileid.push('file-35koyXrFO2T4FsrQe4qXm0io')
|
|
|
+ }
|
|
|
+ if(_sub.indexOf(converter('语文')) != -1){
|
|
|
+ if(fileid.indexOf('file-aQmfmgrwdrHa9sCTTZkjvK7Z') == -1){
|
|
|
+ fileid.push('file-aQmfmgrwdrHa9sCTTZkjvK7Z')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(_sub.indexOf(converter('数学')) != -1){
|
|
|
+ if(fileid.indexOf('file-G1bRfSFnQaQtzA3c8dLshg0a') == -1){
|
|
|
+ fileid.push('file-G1bRfSFnQaQtzA3c8dLshg0a')
|
|
|
+ }
|
|
|
+ if(fileid.indexOf('file-35koyXrFO2T4FsrQe4qXm0io') == -1){
|
|
|
+ fileid.push('file-35koyXrFO2T4FsrQe4qXm0io')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(_sub.indexOf(converter('英语')) != -1){
|
|
|
+ if(fileid.indexOf('file-SNthYVubrHGg4HjFcp3FPkZq') == -1){
|
|
|
+ fileid.push('file-SNthYVubrHGg4HjFcp3FPkZq')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(_sub.indexOf(converter('科学')) != -1){
|
|
|
+ if(fileid.indexOf('file-QOKhi8i84T8eR6DYhb9TaTlG') == -1){
|
|
|
+ fileid.push('file-QOKhi8i84T8eR6DYhb9TaTlG')
|
|
|
+ }
|
|
|
+ if(fileid.indexOf('file-nkAUyRCEMncICGuFBC1WXnM1') == -1){
|
|
|
+ fileid.push('file-nkAUyRCEMncICGuFBC1WXnM1')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return fileid
|
|
|
+ },
|
|
|
async aitargetTextDetail22(msg,msg2) {
|
|
|
let _this = this
|
|
|
-
|
|
|
- let fileid = [] // file-okF1PSRw4VYjRl81SykkxWSo 科学目标fileid 'file-okF1PSRw4VYjRl81SykkxWSo' 目标
|
|
|
+ let fileid = []
|
|
|
_this.targetTextLoading2 = true
|
|
|
_this.ttargetTextLoading2 = true
|
|
|
let sub = []
|
|
@@ -20549,6 +20619,11 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if(!msg2 && sub.length){
|
|
|
+ let _fileid = _this.importFileid(sub)
|
|
|
+ fileid = [...fileid, ..._fileid]
|
|
|
+ }
|
|
|
+
|
|
|
let messages = `NOTICE
|
|
|
Role: 你是创建课程的老师,内容以markdown形式出现(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容)。
|
|
|
Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
|
|
@@ -20675,7 +20750,7 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
async aitargetTextDetail3(msg) {
|
|
|
let _this = this
|
|
|
|
|
|
- let fileid = ['file-okF1PSRw4VYjRl81SykkxWSo'] // file-okF1PSRw4VYjRl81SykkxWSo 科学目标fileid
|
|
|
+ let fileid = []
|
|
|
if(_this.mubiaoInfoData.length){
|
|
|
for (var i = 0; i < _this.mubiaoInfoData.length; i++) {
|
|
|
if(_this.mubiaoInfoData[i].fileid){
|
|
@@ -20718,6 +20793,11 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if(sub.length){
|
|
|
+ let _fileid = _this.importFileid(sub)
|
|
|
+ fileid = [...fileid, ..._fileid]
|
|
|
+ }
|
|
|
+
|
|
|
let messages = `${msg}`
|
|
|
let _uuid = uuidv4();
|
|
|
// let params = JSON.stringify({
|