Commit b604b630 authored by XieZhiXiong's avatar XieZhiXiong

fixbug

parent 22280e63
...@@ -15,6 +15,7 @@ import { ...@@ -15,6 +15,7 @@ import {
MehFilled, MehFilled,
FrownFilled, FrownFilled,
} from '@ant-design/icons'; } from '@ant-design/icons';
import { isJSONStr } from '@/utils';
import PolymericTable from '@/components/PolymericTable'; import PolymericTable from '@/components/PolymericTable';
import { EditableColumns } from '@/components/PolymericTable/interface'; import { EditableColumns } from '@/components/PolymericTable/interface';
import { Pie } from '@/components/Charts'; import { Pie } from '@/components/Charts';
...@@ -298,11 +299,17 @@ const SincerityInfo: React.FC<SincerityInfoProps> = ({ ...@@ -298,11 +299,17 @@ const SincerityInfo: React.FC<SincerityInfoProps> = ({
title: '评价内容', title: '评价内容',
dataIndex: 'comment', dataIndex: 'comment',
align: 'center', align: 'center',
ellipsis: true,
}, },
{ {
title: '交易商品', title: '交易商品',
dataIndex: 'product', dataIndex: 'product',
align: 'center', align: 'center',
ellipsis: true,
render: text => {
const product = isJSONStr(text) || {};
return product.productName || '';
},
}, },
{ {
title: '评价方', title: '评价方',
......
...@@ -291,7 +291,9 @@ export interface FileData { ...@@ -291,7 +291,9 @@ export interface FileData {
url: string; url: string;
}; };
// 初始化 Upload 数据 /**
* 初始化 Upload 数据
*/
export function normalizeFiledata<T>(url: T): T export function normalizeFiledata<T>(url: T): T
export function normalizeFiledata(url: string): FileData export function normalizeFiledata(url: string): FileData
export function normalizeFiledata(url: any): any { export function normalizeFiledata(url: any): any {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment