This commit is contained in:
‘Liammcl’
2024-12-19 00:43:57 +08:00
parent 7ba9f537fb
commit aa5918aacf
2 changed files with 12 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
import React, { useEffect, useState } from 'react';
import { Card, Table, Button, message, Popconfirm, Tag, Space, Tooltip } from 'antd';
import { PlusOutlined, EditOutlined, DeleteOutlined, EyeOutlined } from '@ant-design/icons';
import { PlusOutlined, EditOutlined, DeleteOutlined, EyeOutlined,CopyOutlined } from '@ant-design/icons';
import { useResources } from '@/hooks/resource/useResource';
import { useNavigate } from 'react-router-dom';
import { formatCurrency } from '@/utils/format'; // 假设你有这个工具函数,如果没有我会提供
@@ -90,9 +90,18 @@ const QuotationPage = () => {
{
title: '操作',
key: 'action',
width:200,
width:250,
render: (_, record) => (
<Space size={0}>
<Button
size='small'
type="link"
icon={<CopyOutlined />}
// onClick={() => navigate(`/company/quotaInfo/preview/${record.id}`)}
>
复制
</Button>
<Button
size='small'
type="link"

View File

@@ -256,7 +256,7 @@ const StorageManager = () => {
// 判断是否是HTML
const isHtml = (file) => {
return file.metadata?.mimetype === "text/html";
return file.metadata?.mimetype === "text/html"||file.metadata?.mimetype === "text/plain";
};
// 保存文件内容