|
@@ -574,16 +574,16 @@
|
|
|
placeholder="请输入教案摘要" v-if="teacherCourseTextB"></textarea>
|
|
|
<div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="teacherCourseText" v-else-if="teacherTextLoading"></div>
|
|
|
<div class="markBox vditor-reset" v-html="MarkdownT(teacherCourseText)" v-else></div>
|
|
|
- <div class="op_box">
|
|
|
+ <div class="op_box" :class="{op_box_isquote: isQuote['aiteacherTextDetail']}">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
- <div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aiteacherTextDetail']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiteacherTextDetail')"></el-switch>
|
|
|
+ <div class="op_box_right">
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op"
|
|
|
@contextmenu.prevent="openAiDialog(1, 'aiteacherTextDetail', 2)"
|
|
|
@click="openAiDialog(2, 'aiteacherTextDetail', 2)">智能优化</div>
|
|
|
</el-tooltip>
|
|
|
<div class="r_pub_button_edit" style="margin-left:10px" @click="teacherCourseTextB = !teacherCourseTextB,forceUpdate2()">{{ teacherCourseTextB ? '确定' : '编辑'}}</div>
|
|
|
+ <el-switch style="margin-left: 10px" v-model="isQuote['aiteacherTextDetail']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiteacherTextDetail')"></el-switch>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -607,16 +607,16 @@
|
|
|
placeholder="请输入课程目标" v-if="targetCourseTextB"></textarea>
|
|
|
<div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="targetCourseText" v-else-if="targetTextLoading"></div>
|
|
|
<div class="markBox vditor-reset" v-html="MarkdownT(targetCourseText)" v-else></div>
|
|
|
- <div class="op_box">
|
|
|
+ <div class="op_box" :class="{op_box_isquote: isQuote['aitargetTextDetail']}">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
- <div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aitargetTextDetail']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aitargetTextDetail')"></el-switch>
|
|
|
+ <div class="op_box_right">
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op"
|
|
|
@contextmenu.prevent="openAiDialog(1, 'aitargetTextDetail', 2)"
|
|
|
@click="openAiDialog(2, 'aitargetTextDetail', 2)">智能优化</div>
|
|
|
</el-tooltip>
|
|
|
<div class="r_pub_button_edit" style="margin-left:10px" @click="targetCourseTextB = !targetCourseTextB,forceUpdate2()">{{ targetCourseTextB ? '确定' : '编辑'}}</div>
|
|
|
+ <el-switch style="margin-left: 10px" v-model="isQuote['aitargetTextDetail']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aitargetTextDetail')"></el-switch>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1101,16 +1101,16 @@
|
|
|
placeholder="请输入课程简要描述" v-if="courseTextB"></textarea>
|
|
|
<div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="courseText" v-else-if="textLoading"></div>
|
|
|
<div class="markBox vditor-reset" v-html="MarkdownT(courseText)" v-else></div>
|
|
|
- <div class="op_box">
|
|
|
+ <div class="op_box" :class="{op_box_isquote: isQuote['aiDetail']}">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
- <div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aiDetail']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiDetail')"></el-switch>
|
|
|
+ <div class="op_box_right">
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op"
|
|
|
@contextmenu.prevent="openAiDialog(1, 'aiDetail', 2)"
|
|
|
@click="openAiDialog(2, 'aiDetail', 2)">智能优化</div>
|
|
|
</el-tooltip>
|
|
|
<div class="r_pub_button_edit" style="margin-left:10px" @click="courseTextB = !courseTextB,forceUpdate2()">{{ courseTextB ? '确定' : '编辑'}}</div>
|
|
|
+ <el-switch style="margin-left: 10px" v-model="isQuote['aiDetail']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiDetail')"></el-switch>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1146,16 +1146,16 @@
|
|
|
placeholder="请输入课程简要描述" v-else-if="courseTextB && !interPan"></textarea>
|
|
|
<div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="courseText" :style="{height: interPan ? '500px' : 'auto', overflowY:'auto'}" v-else-if="textLoading"></div>
|
|
|
<div class="markBox vditor-reset" :style="{height: interPan ? '500px' : 'auto', overflowY:'auto'}" v-html="MarkdownT(courseText)" v-else></div>
|
|
|
- <div class="op_box">
|
|
|
+ <div class="op_box" :class="{op_box_isquote: isQuote['aiDetail']}">
|
|
|
<div class="op_remark"></div>
|
|
|
- <div style="display: flex;">
|
|
|
+ <div class="op_box_right">
|
|
|
<!-- <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op"
|
|
|
@contextmenu.prevent="openAiDialog(1, 'aiDetail', 2)"
|
|
|
@click="openAiDialog(2, 'aiDetail', 2)">智能优化</div>
|
|
|
</el-tooltip> -->
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aiDetail']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiDetail')"></el-switch>
|
|
|
<div class="r_pub_button_edit" style="margin-left:10px" @click="courseTextB = !courseTextB,forceUpdate2()">{{ courseTextB ? '确定' : '编辑'}}</div>
|
|
|
+ <el-switch style="margin-left: 10px" v-model="isQuote['aiDetail']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiDetail')"></el-switch>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1323,16 +1323,16 @@
|
|
|
placeholder="请输入课程目标" v-if="targetCourseText2B"></textarea>
|
|
|
<div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="targetCourseText2" v-else-if="targetTextLoading2"></div>
|
|
|
<div class="markBox vditor-reset" v-html="MarkdownT(targetCourseText2)" v-else></div>
|
|
|
- <div class="op_box">
|
|
|
+ <div class="op_box" :class="{op_box_isquote: isQuote['aitargetTextDetail2']}">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
- <div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aitargetTextDetail2']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aitargetTextDetail2')"></el-switch>
|
|
|
+ <div class="op_box_right">
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op"
|
|
|
@contextmenu.prevent="openAiDialog(1, 'aitargetTextDetail2', 2)"
|
|
|
@click="openAiDialog(2, 'aitargetTextDetail2', 2)">智能优化</div>
|
|
|
</el-tooltip>
|
|
|
<div class="r_pub_button_edit" style="margin-left:10px" @click="targetCourseText2B = !targetCourseText2B,forceUpdate2()">{{ targetCourseText2B ? '确定' : '编辑'}}</div>
|
|
|
+ <el-switch style="margin-left: 10px" v-model="isQuote['aitargetTextDetail2']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aitargetTextDetail2')"></el-switch>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1652,10 +1652,9 @@
|
|
|
placeholder="请输入任务描述" v-model="item.taskDetail2" v-if="item.isTask2"></textarea>
|
|
|
<div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="item.taskDetail2" v-else-if="ttaskDetailLoading.indexOf('task-' + index) !== -1"></div>
|
|
|
<div class="markBox vditor-reset" v-html="MarkdownT(item.taskDetail2)" v-else></div>
|
|
|
- <div class="op_box">
|
|
|
+ <div class="op_box" :class="{op_box_isquote: isQuote['aiDetail1-'+index]}">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
- <div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aiDetail1-'+index]" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiDetail1-'+index)"></el-switch>
|
|
|
+ <div class="op_box_right">
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op"
|
|
|
@contextmenu.prevent="openAiDialog(1, 'aiDetail1', item, index)"
|
|
@@ -1663,6 +1662,7 @@
|
|
|
</el-tooltip>
|
|
|
<div class="r_pub_button_edit" style="margin-left:10px" @click="editTask2(index)">{{
|
|
|
item.isTask2 ? '确定' : '编辑'}}</div>
|
|
|
+ <el-switch style="margin-left: 10px" v-model="isQuote['aiDetail1-'+index]" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiDetail1-'+index)"></el-switch>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1683,17 +1683,17 @@
|
|
|
v-model="cpote.cpote1" v-if="cpote.cpote1s"></textarea>
|
|
|
<div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="cpote.cpote1" v-else-if="cpotetLoading.cpote1"></div>
|
|
|
<div class="markBox vditor-reset" v-html="MarkdownT(cpote.cpote1)" v-else></div>
|
|
|
- <div class="op_box">
|
|
|
+ <div class="op_box" :class="{op_box_isquote: isQuote['aiCpote1']}">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
- <div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aiCpote1']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiCpote1')"></el-switch>
|
|
|
+ <div class="op_box_right">
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote1')"
|
|
|
@click="openAiDialog(2, 'aiCpote1')">智能优化</div>
|
|
|
</el-tooltip>
|
|
|
<div class="r_pub_button_edit" style="margin-left:10px" @click="editCpote('cpote1s')">{{
|
|
|
cpote.cpote1s ? '确定' : '编辑'}}</div>
|
|
|
- </div>
|
|
|
+ <el-switch style="margin-left: 10px" v-model="isQuote['aiCpote1']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiCpote1')"></el-switch>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1712,17 +1712,17 @@
|
|
|
v-model="cpote.cpote2" v-if="cpote.cpote2s"></textarea>
|
|
|
<div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="cpote.cpote2" v-else-if="cpotetLoading.cpote2"></div>
|
|
|
<div class="markBox vditor-reset" v-html="MarkdownT(cpote.cpote2)" v-else></div>
|
|
|
- <div class="op_box">
|
|
|
+ <div class="op_box" :class="{op_box_isquote: isQuote['aiCpote2']}">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
- <div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aiCpote2']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiCpote2')"></el-switch>
|
|
|
+ <div class="op_box_right">
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote2')"
|
|
|
@click="openAiDialog(2, 'aiCpote2')">智能优化</div>
|
|
|
</el-tooltip>
|
|
|
<div class="r_pub_button_edit" style="margin-left:10px" @click="editCpote('cpote2s')">{{
|
|
|
cpote.cpote2s ? '确定' : '编辑'}}</div>
|
|
|
- </div>
|
|
|
+ <el-switch style="margin-left: 10px" v-model="isQuote['aiCpote2']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiCpote2')"></el-switch>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1741,17 +1741,17 @@
|
|
|
v-model="cpote.cpote3" v-if="cpote.cpote3s"></textarea>
|
|
|
<div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="cpote.cpote3" v-else-if="cpotetLoading.cpote3"></div>
|
|
|
<div class="markBox vditor-reset" v-html="MarkdownT(cpote.cpote3)" v-else></div>
|
|
|
- <div class="op_box">
|
|
|
+ <div class="op_box" :class="{op_box_isquote: isQuote['aiCpote3']}">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
- <div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aiCpote3']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiCpote3')"></el-switch>
|
|
|
+ <div class="op_box_right">
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote3')"
|
|
|
@click="openAiDialog(2, 'aiCpote3')">智能优化</div>
|
|
|
</el-tooltip>
|
|
|
<div class="r_pub_button_edit" style="margin-left:10px" @click="editCpote('cpote3s')">{{
|
|
|
cpote.cpote3s ? '确定' : '编辑'}}</div>
|
|
|
- </div>
|
|
|
+ <el-switch style="margin-left: 10px" v-model="isQuote['aiCpote3']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiCpote3')"></el-switch>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1770,17 +1770,17 @@
|
|
|
v-model="cpote.cpote4" v-if="cpote.cpote4s"></textarea>
|
|
|
<div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="cpote.cpote4" v-else-if="cpotetLoading.cpote4"></div>
|
|
|
<div class="markBox vditor-reset" v-html="MarkdownT(cpote.cpote4)" v-else></div>
|
|
|
- <div class="op_box">
|
|
|
+ <div class="op_box" :class="{op_box_isquote: isQuote['aiCpote4']}">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
- <div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aiCpote4']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiCpote4')"></el-switch>
|
|
|
+ <div class="op_box_right">
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote4')"
|
|
|
@click="openAiDialog(2, 'aiCpote4')">智能优化</div>
|
|
|
</el-tooltip>
|
|
|
<div class="r_pub_button_edit" style="margin-left:10px" @click="editCpote('cpote4s')">{{
|
|
|
cpote.cpote4s ? '确定' : '编辑'}}</div>
|
|
|
- </div>
|
|
|
+ <el-switch style="margin-left: 10px" v-model="isQuote['aiCpote4']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiCpote4')"></el-switch>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1817,10 +1817,9 @@
|
|
|
v-model="item.taskDetail3" v-if="item.isTask3"></textarea>
|
|
|
<div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="item.taskDetail3" v-else-if="ttaskDetailLoading5.indexOf('task-' + index) !== -1"></div>
|
|
|
<div class="markBox vditor-reset" v-html="MarkdownT(item.taskDetail3)" v-else></div>
|
|
|
- <div class="op_box">
|
|
|
+ <div class="op_box" :class="{op_box_isquote: isQuote['teacherDetail2-'+index]}">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
- <div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['teacherDetail2-'+index]" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('teacherDetail2-'+index)"></el-switch>
|
|
|
+ <div class="op_box_right">
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op"
|
|
|
@contextmenu.prevent="openAiDialog(1, 'teacherDetail2', item.taskDetail3, index)"
|
|
@@ -1828,6 +1827,7 @@
|
|
|
</el-tooltip>
|
|
|
<div class="r_pub_button_edit" style="margin-left:10px" @click="editTask3(index)">{{
|
|
|
item.isTask3 ? '确定' : '编辑'}}</div>
|
|
|
+ <el-switch style="margin-left: 10px" v-model="isQuote['teacherDetail2-'+index]" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('teacherDetail2-'+index)"></el-switch>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -2729,10 +2729,9 @@
|
|
|
itemTaskIndex
|
|
|
].taskDetail
|
|
|
"></textarea> -->
|
|
|
- <div class="op_box">
|
|
|
+ <div class="op_box" :class="{op_box_isquote: isQuote['aiDetail2-'+itemTaskIndex]}">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
- <div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aiDetail2-'+itemTaskIndex]" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiDetail2-'+itemTaskIndex)"></el-switch>
|
|
|
+ <div class="op_box_right">
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiDetail2', unitJson[unitIndex].chapterInfo[0].taskJson[
|
|
|
itemTaskIndex
|
|
@@ -2740,7 +2739,8 @@
|
|
|
itemTaskIndex
|
|
|
], itemTaskIndex)">智能优化</div>
|
|
|
</el-tooltip>
|
|
|
- </div>
|
|
|
+ <el-switch style="margin-left: 10px" v-model="isQuote['aiDetail2-'+itemTaskIndex]" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiDetail2-'+itemTaskIndex)"></el-switch>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -4847,10 +4847,9 @@
|
|
|
margin: 0 0 20px 0;
|
|
|
width: 100% !important;
|
|
|
" v-model="itemTool.toolDetail"></textarea>
|
|
|
- <div class="op_box">
|
|
|
+ <div class="op_box" :class="{op_box_isquote: isQuote['aiDetail3-'+itemTaskIndex+'-'+toolIndex]}">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在工具描述后,点击“智能优化”,自动进行修改</div>
|
|
|
- <div style="display: flex">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aiDetail3-'+itemTaskIndex+'-'+toolIndex]" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiDetail3-'+itemTaskIndex+'-'+toolIndex)"></el-switch>
|
|
|
+ <div class="op_box_right">
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op"
|
|
|
@contextmenu.prevent="openAiDialog(1, 'aiDetail3', itemTool, itemTaskIndex, toolIndex)"
|
|
@@ -4858,6 +4857,7 @@
|
|
|
智能优化</div>
|
|
|
|
|
|
</el-tooltip>
|
|
|
+ <el-switch style="margin-left: 10px" v-model="isQuote['aiDetail3-'+itemTaskIndex+'-'+toolIndex]" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiDetail3-'+itemTaskIndex+'-'+toolIndex)"></el-switch>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -5146,7 +5146,7 @@
|
|
|
<textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="itemTask.eList[eIndex].rule" placeholder="请输入评价细则"></textarea>
|
|
|
<div class="op_box">
|
|
|
<div class="op_remark"></div>
|
|
|
- <div style="display: flex;">
|
|
|
+ <div class="op_box_right">
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op"
|
|
|
@contextmenu.prevent="openAiDialog(1, 'aiRateRule', itemTaskIndex, eIndex)"
|
|
@@ -5375,7 +5375,8 @@
|
|
|
<aiTips ttitle="任务详情" title="任务评价优化" :detail="aiJson.aiDetail4" pan="aiDetail4" @setAiJson="setAiJson" />
|
|
|
<aiTips ttitle="任务详情" title="生成评价细则" :detail="aiJson.aiRateRule" pan="aiRateRule" @setAiJson="setAiJson"/>
|
|
|
</div>
|
|
|
- <div class="leftBar2" v-if="istemplate != 1 && dialogTemplateArray.indexOf(templateid) != -1 && chatid">
|
|
|
+ <div class="leftBar2 " v-show="istemplate != 1 && dialogTemplateArray.indexOf(templateid) != -1 && chatid && isDisplay">
|
|
|
+ <!-- <div class="resizer"></div> resizable-->
|
|
|
<aiBoxRight
|
|
|
:languageSetting="languageSetting"
|
|
|
:courseId="chatid"
|
|
@@ -5388,6 +5389,9 @@
|
|
|
:cpote="cpote"
|
|
|
@setIsQuote="setIsQuote"></aiBoxRight>
|
|
|
</div>
|
|
|
+ <div class="close_btn" @click="closeRight" :class="!isDisplay ? 'close_btn_voice' : ''" v-show="istemplate != 1 && dialogTemplateArray.indexOf(templateid) != -1 && chatid">
|
|
|
+ <img src="../../../assets/icon/course/arrow.svg" >
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
|
|
|
class="dialog_diy2 customWidth">
|
|
@@ -7422,6 +7426,7 @@ export default {
|
|
|
dialogTemplateArray: [ 'cf5722a4-401b-11ef-b873-005056b86cd2', '68629cfb-e719-48e9-a03d-56f189fb9cb0' ],
|
|
|
taskCancelToken1: [],
|
|
|
taskCancelToken2: [],
|
|
|
+ isDisplay: true
|
|
|
};
|
|
|
},
|
|
|
directives: {
|
|
@@ -23620,7 +23625,10 @@ ${msg}
|
|
|
if(this.$refs[this.unitIndex + '-' + task + 'mindTask'] && this.$refs[this.unitIndex + '-' + task + 'mindTask'][0]){
|
|
|
this.$refs[this.unitIndex + '-' + task + 'mindTask'][0].refresh()
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ closeRight(){
|
|
|
+ this.isDisplay = !this.isDisplay;
|
|
|
+ },
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
// clearTimeout(this.timer);
|
|
@@ -23639,6 +23647,35 @@ ${msg}
|
|
|
this.pasteTimer = null;
|
|
|
next();
|
|
|
},
|
|
|
+ mounted(){
|
|
|
+ // const resizable = this.$el.querySelector('.resizable');
|
|
|
+ // const resizer = this.$el.querySelector('.resizer');
|
|
|
+ // let startX, startWidth;
|
|
|
+
|
|
|
+ // const mouseMoveHandler = (e) => {
|
|
|
+ // const dx = startX - e.clientX;
|
|
|
+ // const newWidth = startWidth + dx + 40;
|
|
|
+ // if (newWidth >= 200 && newWidth <= 600) {
|
|
|
+ // resizable.style.width = `${newWidth}px`;
|
|
|
+ // }
|
|
|
+ // };
|
|
|
+
|
|
|
+ // const mouseUpHandler = () => {
|
|
|
+ // document.removeEventListener('mousemove', mouseMoveHandler);
|
|
|
+ // document.removeEventListener('mouseup', mouseUpHandler);
|
|
|
+ // document.body.style.cursor = 'default';
|
|
|
+ // };
|
|
|
+
|
|
|
+ // const mouseDownHandler = (e) => {
|
|
|
+ // startX = e.clientX;
|
|
|
+ // startWidth = resizable.getBoundingClientRect().width;
|
|
|
+ // document.addEventListener('mousemove', mouseMoveHandler);
|
|
|
+ // document.addEventListener('mouseup', mouseUpHandler);
|
|
|
+ // document.body.style.cursor = 'ew-resize';
|
|
|
+ // };
|
|
|
+
|
|
|
+ // resizer.addEventListener('mousedown', mouseDownHandler);
|
|
|
+ },
|
|
|
created() {
|
|
|
this.selectFileid();
|
|
|
// this.selectAiFileid();
|
|
@@ -27917,6 +27954,34 @@ ol {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
+.op_box_right{
|
|
|
+ display: flex;
|
|
|
+}
|
|
|
+
|
|
|
+.op_box_isquote{
|
|
|
+ display: flex;
|
|
|
+}
|
|
|
+
|
|
|
+.op_box_isquote *{
|
|
|
+ display: none;
|
|
|
+}
|
|
|
+
|
|
|
+.op_box_isquote .op_box_right,
|
|
|
+.op_box_isquote .custom-switch{
|
|
|
+ display: flex;
|
|
|
+ margin-left: auto;
|
|
|
+}
|
|
|
+
|
|
|
+.op_task_box:hover .op_box_isquote *{
|
|
|
+ display: flex;
|
|
|
+}
|
|
|
+
|
|
|
+.op_task_box:hover .op_box_isquote .op_box_right,
|
|
|
+.op_task_box:hover .op_box_isquote .custom-switch{
|
|
|
+ display: flex;
|
|
|
+ margin-left: unset;
|
|
|
+}
|
|
|
+
|
|
|
.rb_c_nav {
|
|
|
width: calc(100% - 20px);
|
|
|
margin: 15px auto 0;
|
|
@@ -28139,4 +28204,46 @@ ol {
|
|
|
color: #0061FF;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+.close_btn{
|
|
|
+ position: absolute;
|
|
|
+ top: 40px;
|
|
|
+ right: 10px;
|
|
|
+ box-shadow: 0 0 4px 2px #00000033;
|
|
|
+ border-radius: 70px 0 0 70px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding-left: 5px;
|
|
|
+ padding: 10px 7px 10px 12px;
|
|
|
+ background: #fff;
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
+
|
|
|
+.close_btn > img {
|
|
|
+ width: 15px;
|
|
|
+ transition: 0.3s;
|
|
|
+ transform: rotate(0deg);
|
|
|
+}
|
|
|
+
|
|
|
+.close_btn_voice > img{
|
|
|
+ transform: rotate(180deg);
|
|
|
+}
|
|
|
+
|
|
|
+.resizable {
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ min-width: 200px; /* 最小宽度 */
|
|
|
+ max-width: 600px; /* 最大宽度 */
|
|
|
+}
|
|
|
+
|
|
|
+.resizer {
|
|
|
+ width: 5px;
|
|
|
+ height: 35px;
|
|
|
+ background: #ccc;
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ left: 0;
|
|
|
+ cursor: ew-resize;
|
|
|
+ transform: translateY(-50%);
|
|
|
+}
|
|
|
</style>
|