feat: 知识库预览
This commit is contained in:
@@ -115,6 +115,7 @@
|
|||||||
@ok="onOkFun"
|
@ok="onOkFun"
|
||||||
/>
|
/>
|
||||||
<folderModal v-model="folderModalVisible" :detail="currentFolder" :mode="currentFolderMode" @ok="onFolderOkFun" />
|
<folderModal v-model="folderModalVisible" :detail="currentFolder" :mode="currentFolderMode" @ok="onFolderOkFun" />
|
||||||
|
<FilePreview v-model="previewVisible" :fileId="currentRow?.id" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -137,6 +138,7 @@ import ApproveList from '@/components/common/approveList/index.vue';
|
|||||||
import { useDict } from '@/utils/useDict';
|
import { useDict } from '@/utils/useDict';
|
||||||
import ApprovalProcess from '@/components/common/approvalProcess/index.vue';
|
import ApprovalProcess from '@/components/common/approvalProcess/index.vue';
|
||||||
import i18n from '@/utils/i18n';
|
import i18n from '@/utils/i18n';
|
||||||
|
import FilePreview from '@/components/common/filePreview/index.vue';
|
||||||
|
|
||||||
const { KNOWLEDGE_APPROVE_STATUS, KNOWLEDGE_APPROVE_TYPE } = useDict('KNOWLEDGE_APPROVE_STATUS', 'KNOWLEDGE_APPROVE_TYPE');
|
const { KNOWLEDGE_APPROVE_STATUS, KNOWLEDGE_APPROVE_TYPE } = useDict('KNOWLEDGE_APPROVE_STATUS', 'KNOWLEDGE_APPROVE_TYPE');
|
||||||
|
|
||||||
@@ -344,9 +346,10 @@ const onOkFun = async (formData: any) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
const previewVisible = ref(false);
|
||||||
const previewFileFun = (row: any) => {
|
const previewFileFun = (row: any) => {
|
||||||
// TODO
|
currentRow.value = row;
|
||||||
console.log(row);
|
previewVisible.value = true;
|
||||||
};
|
};
|
||||||
const downloadFileFun = (row: any) => {
|
const downloadFileFun = (row: any) => {
|
||||||
// TODO
|
// TODO
|
||||||
|
|||||||
Reference in New Issue
Block a user