feat(web): 审查页面增加操作人展示
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}',
|
||||
|
||||
Reference in New Issue
Block a user