CN-1066 feat: 知识库新增修改页面增加模板下载

This commit is contained in:
chenjinsong
2023-06-06 15:12:58 +08:00
parent 538c74ab19
commit 58edf3f006
8 changed files with 28 additions and 6 deletions

Binary file not shown.

View File

@@ -734,11 +734,22 @@
.upload-tip {
font-size: 12px;
color: #999999;
span {
padding-left: 6px;
color: #326EC3;
}
}
.el-upload-dragger {
padding-top: 20px;
width: 320px;
border-radius: 2px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
.cn-icon-upload2 {
font-size: 40px;
color: #999;
}
}
}

View File

@@ -1,8 +1,8 @@
@font-face {
font-family: "cn-icon"; /* Project id 2614877 */
src: url('iconfont.woff2?t=1685002294816') format('woff2'),
url('iconfont.woff?t=1685002294816') format('woff'),
url('iconfont.ttf?t=1685002294816') format('truetype');
src: url('iconfont.woff2?t=1686034345129') format('woff2'),
url('iconfont.woff?t=1686034345129') format('woff'),
url('iconfont.ttf?t=1686034345129') format('truetype');
}
.cn-icon {
@@ -13,6 +13,14 @@
-moz-osx-font-smoothing: grayscale;
}
.cn-icon-upload2:before {
content: "\e7f4";
}
.cn-icon-warn:before {
content: "\e7f3";
}
.cn-icon-providers:before {
content: "\e7f2";
}

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -58,10 +58,10 @@
:accept="fileTypeLimit"
ref="upload"
>
<i class="el-icon-upload"></i>
<i class="cn-icon cn-icon-upload2"></i>
<div class="el-upload__text">
<div>{{ $t('knowledgeBase.dropFileHereOr') }}<em>{{ $t('knowledgeBase.clickToUpload') }}</em></div>
<div class="upload-tip">{{ $t('knowledgeBase.supportCsv') }}</div>
<div class="upload-tip">{{ $t('knowledgeBase.supportCsv') }}<span @click.stop="downloadTemplate">{{$t('knowledgeBase.downloadTemplate')}}</span></div>
</div>
</el-upload>
<transition name="el-zoom-in-top">
@@ -1001,6 +1001,9 @@ export default {
this.editIndex = this.showImportedData.length - 1
}, 100)
}
},
downloadTemplate () {
window.open('/assets/knowledgeBaseTemplate.zip', '_blank')
}
},
computed: {