Commit 43074339 authored by mhw's avatar mhw

界面优化

parent ed58da1a
...@@ -279,8 +279,6 @@ const doUrl = function (url, type, params, axiosOption, options) { ...@@ -279,8 +279,6 @@ const doUrl = function (url, type, params, axiosOption, options) {
}; };
const streamRequest = (url, params) => { const streamRequest = (url, params) => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
// requestUrl(url)
console.log(url);
axios({ axios({
method: 'post', method: 'post',
url: url, url: url,
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
<template> <template>
<div> <div>
<el-steps :active="active"> <el-steps :active="active" style="width:100%;margin:0 auto 20px auto">
<el-step title="基本信息"></el-step> <el-step title="基本信息" icon="el-icon-s-order"></el-step>
<el-step title="导入配置"></el-step> <el-step title="导入配置" icon="el-icon-upload"></el-step>
<!-- <el-step title="索引配置"></el-step> --> <!-- <el-step title="索引配置"></el-step> -->
</el-steps> </el-steps>
......
<!--导入配置 --> <!--导入配置 -->
<template> <template>
<el-form label-position="left" ref="form" label-width="120px" :model="form" :size="defaultFormItemSize" :rules="rules" v-loading.fullscreen.lock="fullscreenLoading"> <el-form label-position="left" ref="form" label-width="130px" :model="form" :size="defaultFormItemSize" :rules="rules" v-loading.fullscreen.lock="fullscreenLoading">
<el-form-item label="上传知识库文件:" prop="filesArr"> <el-form-item label="上传知识库文件:" prop="filesArr">
<el-button @click="clickUp" :size="defaultFormItemSize" type="primary">上传</el-button> <el-button @click="clickUp" :size="defaultFormItemSize" type="primary">上传</el-button>
<input style="display:none" ref="upFile" type="file" @change="fileinfo($event.target.files)" > <input style="display:none" ref="upFile" type="file" @change="fileinfo($event.target.files)" >
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
<el-row type="flex" justify="end" class="dialog-btn-layer mt20"> <el-row type="flex" justify="end" class="dialog-btn-layer mt20">
<template> <template>
<el-button :size="defaultFormItemSize" :plain="true" @click="back" >上一步</el-button> <el-button :size="defaultFormItemSize" :plain="true" @click="back" >上一步</el-button>
<el-button :size="defaultFormItemSize" :plain="true" @click="$parent.onCancel(false)" >取消</el-button>
<el-button :size="defaultFormItemSize" :plain="true" @click="onSubmit">确认上传</el-button> <el-button :size="defaultFormItemSize" :plain="true" @click="onSubmit">确认上传</el-button>
</template> </template>
</el-row> </el-row>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div style="position: relative"> <div style="position: relative">
<div class="topBox"> <div class="topBox">
<div class="title">知识库</div> <div class="title">知识库</div>
<div class="instructions">面向客户构建私域文档或知识管理的能力,实现本地或BOS等多种数据源文档的上传、分段和清洗并储存至向量数据库中。</div> <div class="instructions">面向客户构建私域文档或知识管理的能力,实现本地数据源文档的上传、分段和清洗并储存至向量数据库中。</div>
</div> </div>
<div class="tableBox" :style="{ height: tableHeight }"> <div class="tableBox" :style="{ height: tableHeight }">
<el-form ref="myDataSetPage" :model="myDataSetPage" label-width="75px" :size="defaultFormItemSize" label-position="right" @submit.native.prevent> <el-form ref="myDataSetPage" :model="myDataSetPage" label-width="75px" :size="defaultFormItemSize" label-position="right" @submit.native.prevent>
......
...@@ -59,7 +59,6 @@ export default { ...@@ -59,7 +59,6 @@ export default {
} else { } else {
url = tagUrl.replace(/^http:\/\/[^/]+\//, `http://${window.location.hostname}:${window.location.port}/`); url = tagUrl.replace(/^http:\/\/[^/]+\//, `http://${window.location.hostname}:${window.location.port}/`);
} }
console.log(url);
that.$dialog.show('文件预览', filePreview, { that.$dialog.show('文件预览', filePreview, {
area: ['100%', '100%'] area: ['100%', '100%']
}, {url}).then(res => { }, {url}).then(res => {
......
...@@ -155,7 +155,6 @@ export default { ...@@ -155,7 +155,6 @@ export default {
let params = {} let params = {}
KnowledgeManage.listForTree(this, params).then(res => { KnowledgeManage.listForTree(this, params).then(res => {
this.knowledgeList = res.data this.knowledgeList = res.data
console.log(res.data);
}).catch(e => { }).catch(e => {
console.log(e); console.log(e);
}); });
......
...@@ -124,7 +124,6 @@ export default { ...@@ -124,7 +124,6 @@ export default {
getData.initeventSource() getData.initeventSource()
}, },
success () { success () {
console.log(1111);
this.isSuccess = true this.isSuccess = true
}, },
onmessage (data) { onmessage (data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment