Feature/0723/zr #8
@@ -16,8 +16,11 @@ export interface SysOperationLogVO {
|
||||
|
||||
/** 赛事操作日志列表项 */
|
||||
export interface TournamentAdminOperationPageVO {
|
||||
opName: string;
|
||||
/** 操作类型:1=创建赛事、2=删除赛事、3=取消报名、4=编辑选手、5=对阵管理、6=批量修改组别 */
|
||||
type: string;
|
||||
/** 操作来源:1=PC、2=小程序 */
|
||||
source: string;
|
||||
opName: string;
|
||||
nickname: string;
|
||||
phone: string;
|
||||
tournamentName: string;
|
||||
|
||||
@@ -81,12 +81,25 @@ export default defineComponent({
|
||||
const { containerRef, height } = useContainerSize({ headerOffset: 55 });
|
||||
|
||||
/** 渲染 bodyCell */
|
||||
const renderBodyCell = ({ column, text }: { column: any; text: any }) => {
|
||||
const renderBodyCell = ({
|
||||
column,
|
||||
text,
|
||||
record,
|
||||
index,
|
||||
}: {
|
||||
column: any;
|
||||
text: any;
|
||||
record: any;
|
||||
index: number;
|
||||
}) => {
|
||||
if (column.key === 'content') {
|
||||
const raw = text || '';
|
||||
return raw ? <LogContentCell text={raw} /> : <span>-</span>;
|
||||
}
|
||||
// 其他列使用 columns 中的 customRender
|
||||
// 有 customRender 的列使用其渲染函数(如操作类型/操作来源的代码→中文映射)
|
||||
if (column.customRender) {
|
||||
return column.customRender({ text, record, index, column });
|
||||
}
|
||||
return <span>{text || '-'}</span>;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user