需求
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { Card, Table, Button, message, Popconfirm, Tag, Space, Tooltip } from 'antd';
|
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 { useResources } from '@/hooks/resource/useResource';
|
||||||
import { useNavigate } from 'react-router-dom';
|
import { useNavigate } from 'react-router-dom';
|
||||||
import { formatCurrency } from '@/utils/format'; // 假设你有这个工具函数,如果没有我会提供
|
import { formatCurrency } from '@/utils/format'; // 假设你有这个工具函数,如果没有我会提供
|
||||||
@@ -90,9 +90,18 @@ const QuotationPage = () => {
|
|||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
key: 'action',
|
key: 'action',
|
||||||
width:200,
|
width:250,
|
||||||
render: (_, record) => (
|
render: (_, record) => (
|
||||||
<Space size={0}>
|
<Space size={0}>
|
||||||
|
<Button
|
||||||
|
size='small'
|
||||||
|
type="link"
|
||||||
|
icon={<CopyOutlined />}
|
||||||
|
|
||||||
|
// onClick={() => navigate(`/company/quotaInfo/preview/${record.id}`)}
|
||||||
|
>
|
||||||
|
复制
|
||||||
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
size='small'
|
size='small'
|
||||||
type="link"
|
type="link"
|
||||||
|
|||||||
@@ -256,7 +256,7 @@ const StorageManager = () => {
|
|||||||
|
|
||||||
// 判断是否是HTML
|
// 判断是否是HTML
|
||||||
const isHtml = (file) => {
|
const isHtml = (file) => {
|
||||||
return file.metadata?.mimetype === "text/html";
|
return file.metadata?.mimetype === "text/html"||file.metadata?.mimetype === "text/plain";
|
||||||
};
|
};
|
||||||
|
|
||||||
// 保存文件内容
|
// 保存文件内容
|
||||||
|
|||||||
Reference in New Issue
Block a user