| | |
| | | <template> |
| | | <div class="h100 overflow-y-auto p-[16px]"> |
| | | <div class="mb-[10px] flex items-center"> |
| | | <el-button style="margin-left: 8px; width: 40px" text @click="handleExitFlow"> |
| | | <el-button style="margin-left: 8px; width: 40px" link @click="handleExitFlow"> |
| | | <el-icon style="font-size: 24px !important"> |
| | | <ArrowLeft /> |
| | | </el-icon> |
| | |
| | | <script setup lang="ts"> |
| | | import type { UploadUserFile } from 'element-plus'; |
| | | import { ElMessage } from 'element-plus'; |
| | | import { reactive, ref } from 'vue'; |
| | | import { onMounted, reactive, ref } from 'vue'; |
| | | import { useRoute, useRouter } from 'vue-router'; |
| | | import { add_knowledge_file } from '/@/api/knowledge/group'; |
| | | const uploadFileChange = (rule, value, callback) => { |
| | |
| | | const state = reactive({ |
| | | detailTitle: '导入数据', |
| | | categoryForm: { |
| | | ImportCategory: '默认类目', |
| | | ImportCategory: '', |
| | | CategoryType: '本地类目', |
| | | DocumentRecognition: '1', |
| | | }, |
| | |
| | | const handleExitFlow = () => { |
| | | //是否显示返回 |
| | | router.back(); |
| | | categoryFormRef.value.resetFields(); |
| | | fileList.value = []; |
| | | }; |
| | | const flag = ref(true); |
| | | const uploadFile = (file: UploadUserFile) => { |
| | |
| | | } |
| | | }); |
| | | }; |
| | | onMounted(() => { |
| | | const group_title = route.query.title; |
| | | state.categoryForm.ImportCategory = group_title; |
| | | }); |
| | | </script> |
| | | <style scoped lang="scss"> |
| | | .set-form-height { |