|
|
@@ -173,11 +173,11 @@
|
|
|
</p>
|
|
|
<p v-else></p>
|
|
|
<div v-if="chat_type !== 'huitu'">
|
|
|
- <a-tooltip content="重新生成">
|
|
|
+ <!-- <a-tooltip content="重新生成">
|
|
|
<p @click="reQuestion(item.question)" :class="[readonly ? 'disabled' : '']">
|
|
|
<img src="@/assets/icons/refresh.png" width="15" />
|
|
|
</p>
|
|
|
- </a-tooltip>
|
|
|
+ </a-tooltip> -->
|
|
|
|
|
|
<a-tooltip content="复制">
|
|
|
<p @click="copyAnswer(item.answer)" :class="[readonly ? 'disabled' : '']">
|
|
|
@@ -186,7 +186,7 @@
|
|
|
</a-tooltip>
|
|
|
|
|
|
|
|
|
- <a-tooltip content="收藏">
|
|
|
+ <!-- <a-tooltip content="收藏">
|
|
|
<p @click="saveAnswer(key)" :class="[readonly ? 'disabled' : '']" v-if="!isSetting">
|
|
|
<img src="@/assets/icons/star-full.png" width="15" v-if="menuList[key]?.save" />
|
|
|
<img src="@/assets/icons/star.png" width="15" v-else />
|
|
|
@@ -206,7 +206,7 @@
|
|
|
<p :class="[readonly ? 'disabled' : '']" v-if="!isSetting">
|
|
|
<img src="@/assets/icons/share.png" width="15" />
|
|
|
</p>
|
|
|
- </a-tooltip>
|
|
|
+ </a-tooltip> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -284,7 +284,8 @@ export default defineComponent({
|
|
|
const DOCUMENT_RESULT = {};
|
|
|
|
|
|
const getHTML = (string) => {
|
|
|
- return formatAnwserString(string);
|
|
|
+ // return formatAnwserString(string);
|
|
|
+ return string;
|
|
|
};
|
|
|
const replaceCode = (text, index) => {
|
|
|
const icon = ` <span class="circle" data-list-index="${index || 0}"></span>`
|
|
|
@@ -385,12 +386,14 @@ export default defineComponent({
|
|
|
|
|
|
const copyAnswer = (text) => {
|
|
|
if (!props.readonly) {
|
|
|
+
|
|
|
if (props.type !== 'document_report') {
|
|
|
// 非文档报告:复制markdown原文
|
|
|
copyMarkdown(text, "复制成功", 1);
|
|
|
} else {
|
|
|
// 文档报告:复制纯文本
|
|
|
- copyMarkdown(text, "复制成功", 3);
|
|
|
+ // copyMarkdown(text, "复制成功", 3);
|
|
|
+ copyMarkdown(text, "复制成功", 1);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
@@ -954,16 +957,11 @@ export default defineComponent({
|
|
|
workflow: workflow,
|
|
|
title: value,
|
|
|
upload_files: docReport.upload_files,
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 当workflow值为2或者3时,存在此参数
|
|
|
- */
|
|
|
- sub_titles: '',
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (workflow === 2) {
|
|
|
+ // 文档报告
|
|
|
sendData = {
|
|
|
workflow: workflow,
|
|
|
title: value,
|
|
|
@@ -971,13 +969,14 @@ export default defineComponent({
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 当workflow值为2或者3时,存在此参数
|
|
|
+ * 当workflow值为2时,存在此参数
|
|
|
*/
|
|
|
sub_titles: docReport.sub_titles,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (workflow === 3) {
|
|
|
+ // 小标题生成
|
|
|
// 第一次参数
|
|
|
const is_first = docReport.is_first / 1;
|
|
|
|