|
@@ -2,15 +2,11 @@
|
|
|
<div id="app">
|
|
<div id="app">
|
|
|
<Slider @select-nav="selectNav" :navId="navId" v-show="!closeOthers"></Slider>
|
|
<Slider @select-nav="selectNav" :navId="navId" v-show="!closeOthers"></Slider>
|
|
|
|
|
|
|
|
- <div class="main">
|
|
|
|
|
- <div :class="{ 'history-wrap': true, 'history-wrap-open': !closeOthers && navId > -1 }">
|
|
|
|
|
- <History
|
|
|
|
|
- :list="historyList"
|
|
|
|
|
- :selectId="selectId"
|
|
|
|
|
- @handle-click="selectHistory"
|
|
|
|
|
- @set-new="handelSetNewChat"
|
|
|
|
|
- />
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="main">
|
|
|
|
|
+ <div :class="{ 'history-wrap': true, 'history-wrap-open': !closeOthers && navId > -1 }">
|
|
|
|
|
+ <History :list="historyList" :selectId="selectId" @handle-click="selectHistory"
|
|
|
|
|
+ @set-new="handelSetNewChat" />
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
<div class="wrap">
|
|
<div class="wrap">
|
|
|
<Index v-if="navId === -1" :number="swiperNumber" @select-nav="selectNav" />
|
|
<Index v-if="navId === -1" :number="swiperNumber" @select-nav="selectNav" />
|
|
@@ -38,12 +34,12 @@
|
|
|
<!-- 文档出卷 -->
|
|
<!-- 文档出卷 -->
|
|
|
<DocumentQuestion v-if="navId === 7 && !showDialog" :agentId="selectId" />
|
|
<DocumentQuestion v-if="navId === 7 && !showDialog" :agentId="selectId" />
|
|
|
|
|
|
|
|
- <!-- 出题组卷 -->
|
|
|
|
|
- <DocumentQuestion2 v-if="navId === 8 && !showDialog" :agentId="selectId" />
|
|
|
|
|
|
|
+ <!-- 出题组卷 -->
|
|
|
|
|
+ <DocumentQuestion2 v-if="navId === 8 && !showDialog" :agentId="selectId" />
|
|
|
|
|
|
|
|
<!-- 文库详情 -->
|
|
<!-- 文库详情 -->
|
|
|
- <DocumentDetail v-if="navId === -2" :targetDocument="targetDocument" :dialogList="dialogList"
|
|
|
|
|
- @go-back="goBack" />
|
|
|
|
|
|
|
+ <DocumentDetail v-if="navId === -2" :targetDocument="targetDocument"
|
|
|
|
|
+ :dialogList="dialogList" @go-back="goBack" />
|
|
|
|
|
|
|
|
<dialog-wrap v-if="showDialog && initDialog" v-show="!hideDialog" :type="dialogType[navId]"
|
|
<dialog-wrap v-if="showDialog && initDialog" v-show="!hideDialog" :type="dialogType[navId]"
|
|
|
:isSetting="false" :readonly="readonly" :agentId="selectId" :dialogId="dialogId"
|
|
:isSetting="false" :readonly="readonly" :agentId="selectId" :dialogId="dialogId"
|
|
@@ -52,7 +48,7 @@
|
|
|
</section>
|
|
</section>
|
|
|
|
|
|
|
|
<footer
|
|
<footer
|
|
|
- v-if="navId !== -2 && navId !== 0 && navId !== 3 && navId !== 6 && navId !== 1 && !historyMode">
|
|
|
|
|
|
|
+ v-if="navId !== -2 && navId !== 0 && navId !== 3 && navId !== 6 && navId !== 1 && navId !== 9 && !historyMode">
|
|
|
<BtnIframeChujuan v-if="navId == 7" />
|
|
<BtnIframeChujuan v-if="navId == 7" />
|
|
|
<message-input :readonly="readonly" eventName="open-dialog" />
|
|
<message-input :readonly="readonly" eventName="open-dialog" />
|
|
|
</footer>
|
|
</footer>
|
|
@@ -66,32 +62,21 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
<div>
|
|
|
- <a-input :style="{ flex: '1' }" :placeholder="`请输入${item.variable_name}`" allow-clear
|
|
|
|
|
- @change="(event) => {
|
|
|
|
|
|
|
+ <a-input :style="{ flex: '1' }" :placeholder="`请输入${item.variable_name}`"
|
|
|
|
|
+ allow-clear @change="(event) => {
|
|
|
customChange(event, item.node_id, item.variable_name);
|
|
customChange(event, item.node_id, item.variable_name);
|
|
|
- }
|
|
|
|
|
- " v-if="item.value_type === 1" />
|
|
|
|
|
|
|
+ }" v-if="item.value_type === 1" />
|
|
|
<a-upload v-else :style="{ width: '300px' }" :multiple="false" :limit="1"
|
|
<a-upload v-else :style="{ width: '300px' }" :multiple="false" :limit="1"
|
|
|
:custom-request="(option) => {
|
|
:custom-request="(option) => {
|
|
|
customRequest(option, item.node_id, item.variable_name);
|
|
customRequest(option, item.node_id, item.variable_name);
|
|
|
- }
|
|
|
|
|
- " :show-upload-button="{ showOnExceedLimit: true }"
|
|
|
|
|
|
|
+ }" :show-upload-button="{ showOnExceedLimit: true }"
|
|
|
accept=".pdf,.doc,.docx,.txt,.md,.ppt.pptx" />
|
|
accept=".pdf,.doc,.docx,.txt,.md,.ppt.pptx" />
|
|
|
</div>
|
|
</div>
|
|
|
</section>
|
|
</section>
|
|
|
|
|
|
|
|
<a-textarea :max-length="maxLength" v-model="textValue"
|
|
<a-textarea :max-length="maxLength" v-model="textValue"
|
|
|
:show-word-limit="textValue.length > maxLength / 2" :auto-size="{ maxRows: 6 }"
|
|
:show-word-limit="textValue.length > maxLength / 2" :auto-size="{ maxRows: 6 }"
|
|
|
- placeholder="输入您想了解的内容,Shift+Enter换行" :style="{
|
|
|
|
|
- flex: 1,
|
|
|
|
|
- borderRadius: '12px',
|
|
|
|
|
- marginTop: '20px',
|
|
|
|
|
- padding: '0px 30px 0 16px',
|
|
|
|
|
- background: 'transparent',
|
|
|
|
|
- border: '1px solid #e3e3e3',
|
|
|
|
|
- minHeight: '120px',
|
|
|
|
|
- paddingBottom: `${textValue.length > maxLength / 2 ? '20px' : ''}`
|
|
|
|
|
- }">
|
|
|
|
|
|
|
+ placeholder="输入您想了解的内容,Shift+Enter换行" :style="text_area_style">
|
|
|
</a-textarea>
|
|
</a-textarea>
|
|
|
|
|
|
|
|
<a-button :style="{ width: '500px' }" type="primary" @click="beginCombine">开始</a-button>
|
|
<a-button :style="{ width: '500px' }" type="primary" @click="beginCombine">开始</a-button>
|
|
@@ -104,17 +89,17 @@
|
|
|
<span>{{ item.variable_name }}</span>
|
|
<span>{{ item.variable_name }}</span>
|
|
|
</p>
|
|
</p>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
<div>
|
|
<div>
|
|
|
- <a-input :style="{ flex: '1' }" :placeholder="`请输入${item.variable_name}`" allow-clear
|
|
|
|
|
- @change="(event) => {
|
|
|
|
|
|
|
+ <a-input :style="{ flex: '1' }" :placeholder="`请输入${item.variable_name}`"
|
|
|
|
|
+ allow-clear @change="(event) => {
|
|
|
customChange(event, item.node_id, item.variable_name);
|
|
customChange(event, item.node_id, item.variable_name);
|
|
|
- }
|
|
|
|
|
- " v-if="item.value_type === 1" />
|
|
|
|
|
|
|
+ }" v-if="item.value_type === 1" />
|
|
|
|
|
+
|
|
|
<a-upload v-else :style="{ width: '300px' }" :multiple="false" :limit="1"
|
|
<a-upload v-else :style="{ width: '300px' }" :multiple="false" :limit="1"
|
|
|
:custom-request="(option) => {
|
|
:custom-request="(option) => {
|
|
|
customRequest(option, item.node_id, item.variable_name);
|
|
customRequest(option, item.node_id, item.variable_name);
|
|
|
- }
|
|
|
|
|
- " :show-upload-button="{ showOnExceedLimit: true }"
|
|
|
|
|
|
|
+ }" :show-upload-button="{ showOnExceedLimit: true }"
|
|
|
accept=".pdf,.doc,.docx,.txt,.md,.ppt.pptx" />
|
|
accept=".pdf,.doc,.docx,.txt,.md,.ppt.pptx" />
|
|
|
</div>
|
|
</div>
|
|
|
</section>
|
|
</section>
|
|
@@ -124,16 +109,7 @@
|
|
|
<footer v-if="navId === 3 && showDialog && !historyMode" class="upload-footer">
|
|
<footer v-if="navId === 3 && showDialog && !historyMode" class="upload-footer">
|
|
|
<a-textarea :max-length="maxLength" v-model="textValue" :disabled="parseStatus"
|
|
<a-textarea :max-length="maxLength" v-model="textValue" :disabled="parseStatus"
|
|
|
:show-word-limit="textValue.length > maxLength / 2" :auto-size="{ maxRows: 6 }"
|
|
:show-word-limit="textValue.length > maxLength / 2" :auto-size="{ maxRows: 6 }"
|
|
|
- placeholder="输入您想了解的内容,Shift+Enter换行" :style="{
|
|
|
|
|
- flex: 1,
|
|
|
|
|
- borderRadius: '12px',
|
|
|
|
|
- marginTop: '20px',
|
|
|
|
|
- padding: '0px 30px 0 16px',
|
|
|
|
|
- background: 'transparent',
|
|
|
|
|
- border: '1px solid #e3e3e3',
|
|
|
|
|
- minHeight: '120px',
|
|
|
|
|
- paddingBottom: `${textValue.length > maxLength / 2 ? '20px' : ''}`
|
|
|
|
|
- }">
|
|
|
|
|
|
|
+ placeholder="输入您想了解的内容,Shift+Enter换行" :style="text_area_style">
|
|
|
</a-textarea>
|
|
</a-textarea>
|
|
|
<a-button :style="{ width: '500px' }" type="primary" @click="continueCombine">开始</a-button>
|
|
<a-button :style="{ width: '500px' }" type="primary" @click="continueCombine">开始</a-button>
|
|
|
</footer>
|
|
</footer>
|
|
@@ -141,6 +117,8 @@
|
|
|
<!-- 小数绘图底部输入栏 -->
|
|
<!-- 小数绘图底部输入栏 -->
|
|
|
<PictureFooter v-if="navId === 6 && !historyMode" :agentId="selectId" />
|
|
<PictureFooter v-if="navId === 6 && !historyMode" :agentId="selectId" />
|
|
|
|
|
|
|
|
|
|
+ <DocumentReportFooter v-if="navId === 9 && !showDialog" :agentId="selectId" />
|
|
|
|
|
+
|
|
|
<!-- 侧边栏切换按钮 -->
|
|
<!-- 侧边栏切换按钮 -->
|
|
|
<ToggleBtn v-if="navId !== -2" :closeOthers="closeOthers" @toggle="openAll" />
|
|
<ToggleBtn v-if="navId !== -2" :closeOthers="closeOthers" @toggle="openAll" />
|
|
|
</div>
|
|
</div>
|
|
@@ -173,6 +151,8 @@ import Analysis from "./Analysis.vue";
|
|
|
|
|
|
|
|
import ToggleBtn from '../components/ToggleBtn.vue';
|
|
import ToggleBtn from '../components/ToggleBtn.vue';
|
|
|
|
|
|
|
|
|
|
+import DocumentReportFooter from '../components/DocumentReportFooter.vue'
|
|
|
|
|
+
|
|
|
import BtnIframeChujuan from '../components/btn-iframe-chujuan/BtnIframeChujuan.vue'
|
|
import BtnIframeChujuan from '../components/btn-iframe-chujuan/BtnIframeChujuan.vue'
|
|
|
|
|
|
|
|
import { defineComponent, ref, onMounted, inject, onBeforeUnmount } from "vue";
|
|
import { defineComponent, ref, onMounted, inject, onBeforeUnmount } from "vue";
|
|
@@ -203,6 +183,8 @@ export default defineComponent({
|
|
|
|
|
|
|
|
ToggleBtn,
|
|
ToggleBtn,
|
|
|
BtnIframeChujuan, // 文档出卷按钮
|
|
BtnIframeChujuan, // 文档出卷按钮
|
|
|
|
|
+
|
|
|
|
|
+ DocumentReportFooter
|
|
|
},
|
|
},
|
|
|
setup() {
|
|
setup() {
|
|
|
// NOTE: 先把4文库问答的类型改成report类型,后续再改回来
|
|
// NOTE: 先把4文库问答的类型改成report类型,后续再改回来
|
|
@@ -215,7 +197,9 @@ export default defineComponent({
|
|
|
"smartData",
|
|
"smartData",
|
|
|
"huitu", // 小数绘图
|
|
"huitu", // 小数绘图
|
|
|
"question",
|
|
"question",
|
|
|
- "question"
|
|
|
|
|
|
|
+
|
|
|
|
|
+ "question",
|
|
|
|
|
+ 'document_report', // 文档报告生成
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
const { config, helper, ajax } = inject("$global");
|
|
const { config, helper, ajax } = inject("$global");
|
|
@@ -522,6 +506,17 @@ export default defineComponent({
|
|
|
// helper.write('sendData', {});
|
|
// helper.write('sendData', {});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ const text_area_style = {
|
|
|
|
|
+ flex: 1,
|
|
|
|
|
+ borderRadius: '12px',
|
|
|
|
|
+ marginTop: '20px',
|
|
|
|
|
+ padding: '0px 30px 0 16px',
|
|
|
|
|
+ background: 'transparent',
|
|
|
|
|
+ border: '1px solid #e3e3e3',
|
|
|
|
|
+ minHeight: '120px',
|
|
|
|
|
+ paddingBottom: `${textValue.value.length > maxLength.value / 2 ? '20px' : ''}`
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
return {
|
|
return {
|
|
|
SYSTEM_NAME,
|
|
SYSTEM_NAME,
|
|
|
customChange,
|
|
customChange,
|
|
@@ -556,7 +551,9 @@ export default defineComponent({
|
|
|
maxLength,
|
|
maxLength,
|
|
|
|
|
|
|
|
handelSetNewChat,
|
|
handelSetNewChat,
|
|
|
- targetDocument
|
|
|
|
|
|
|
+ targetDocument,
|
|
|
|
|
+
|
|
|
|
|
+ text_area_style
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|