1
0

feat(web): 审查页面增加操作人展示

This commit is contained in:
2024-12-01 11:35:54 +08:00
parent b072b83f80
commit b6418e1e3a
3 changed files with 37 additions and 8 deletions

View File

@@ -178,6 +178,23 @@ export function timeField(field, label, width = 150) {
}
}
/**
* @param {string} field
* @param {string} label
* @param {number} width
*/
export function stringField(field, label, width = undefined) {
let data = {
name: field,
label: label,
className: 'nowrap',
}
if (width) {
data['width'] = width
}
return data
}
/**
* @param {string} field
* @param {string} label

View File

@@ -5,7 +5,9 @@ import {
checkTypeMapping,
crudCommonOptions,
mappingField,
operationField
operationField,
stringField,
timeField
} from "../../components/constants.js";
import {permissionDetailDialog} from "../../components/permission/dialog-permission.js";
@@ -24,12 +26,13 @@ export function tabCheck() {
'reload',
],
columns: [
{
name: 'description',
label: '描述',
},
stringField('description', '描述'),
mappingField('type', '类型', checkTypeMapping),
mappingField('over', '状态', checkOverMapping),
timeField('createdTime', '创建时间'),
stringField('createdUsername', '创建人', 100),
timeField('modifiedTime', '最后修改时间'),
stringField('modifiedUsername', '最后操作人', 100),
operationField('操作', undefined, [
{
visibleOn: '${!over}',