update 机器人库增加重命名
This commit is contained in:
@@ -67,7 +67,7 @@ import FilePreview from '@/components/common/filePreview/index.vue';
|
||||
import { downloadFileById } from '@/utils/file';
|
||||
import FileTypeChange from '@/components/common/fileTable/fileTypeChange.vue';
|
||||
import { ElMessage, ElMessageBox } from 'element-plus';
|
||||
import { View, Download, Delete, EditPen, Refresh } from '@element-plus/icons-vue';
|
||||
import { View, Download, Delete, EditPen, Refresh, Edit } from '@element-plus/icons-vue';
|
||||
import { dataDelFileApi } from '@/api/data/data';
|
||||
import FileRename from '@/components/common/fileTable/fileRename.vue';
|
||||
|
||||
@@ -89,7 +89,7 @@ const props = defineProps({
|
||||
// 文件名称字段
|
||||
fileNameField: {
|
||||
type: String,
|
||||
default: 'fileName',
|
||||
default: 'originalName',
|
||||
},
|
||||
// 是否需要右键菜单,默认需要
|
||||
needContextMenu: {
|
||||
@@ -173,7 +173,7 @@ const deleteFileFun = async (id: number) => {
|
||||
};
|
||||
// 展示的操作栏
|
||||
const allActionList = computed(() => {
|
||||
return [...defaultActionList.value, ...props.actionList];
|
||||
return [...props.actionList, ...defaultActionList.value];
|
||||
});
|
||||
// 文件下载
|
||||
const downloadFile = (id: any) => {
|
||||
@@ -267,6 +267,7 @@ const getMenuIcon = (action: any) => {
|
||||
if (title.includes('删除')) return Delete;
|
||||
if (title.includes('重命名')) return EditPen;
|
||||
if (title.includes('刷新')) return Refresh;
|
||||
if (title.includes('编辑')) return Edit;
|
||||
return null;
|
||||
};
|
||||
// 全局点击处理
|
||||
|
||||
@@ -62,13 +62,14 @@
|
||||
/>
|
||||
</div>
|
||||
<div class="table">
|
||||
<BaseTable
|
||||
<FileTable
|
||||
ref="baseTableRef"
|
||||
:tableName="dynamicTableName"
|
||||
:api="apiName"
|
||||
:params="searchParams"
|
||||
showIndex
|
||||
:actionList="actionList"
|
||||
:defaultActions="folderPermission.import ? ['rename', 'refresh'] : ['refresh']"
|
||||
:exportApi="dataExportKnowledgeListApi"
|
||||
fullHeight
|
||||
:exportFileName="$t('知识库.知识库列表')"
|
||||
@@ -140,7 +141,7 @@
|
||||
{{ KNOWLEDGE_APPROVE_TYPE.O[row[column.field]] }}
|
||||
</el-button>
|
||||
</template>
|
||||
</BaseTable>
|
||||
</FileTable>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -207,7 +208,8 @@ import {
|
||||
type Ref,
|
||||
} from 'vue';
|
||||
import { DArrowLeft, Plus } from '@element-plus/icons-vue';
|
||||
import BaseTable from '@/components/common/table/baseTable.vue';
|
||||
// import BaseTable from '@/components/common/table/baseTable.vue';
|
||||
import FileTable from '@/components/common/fileTable/index.vue';
|
||||
import FileTree from '@/components/common/fileTree/index.vue';
|
||||
import DetailModal from './detailModal.vue';
|
||||
import FolderModal from './folderModal.vue';
|
||||
|
||||
Reference in New Issue
Block a user