feat(web): 增加审查状态类型的展示
This commit is contained in:
@@ -182,6 +182,11 @@ export const confirmationStateMapping = [
|
||||
mappingItem('驳回', 'REJECT', 'bg-danger'),
|
||||
]
|
||||
|
||||
export const checkTypeMapping = [
|
||||
mappingItem('确权审查', 'CONFIRMATION', 'bg-blue-500'),
|
||||
mappingItem('授权审查', 'AUTHENTICATION', 'bg-purple-500'),
|
||||
]
|
||||
|
||||
function api(method, url) {
|
||||
return {
|
||||
method: method,
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
import {apiGet, apiPost, checkerOnly, crudCommonOptions} from "../../components/constants.js";
|
||||
import {
|
||||
apiGet,
|
||||
apiPost,
|
||||
checkerOnly,
|
||||
checkTypeMapping,
|
||||
crudCommonOptions,
|
||||
mappingField
|
||||
} from "../../components/constants.js";
|
||||
import {permissionDetailDialog} from "../../components/permission/dialog-permission.js";
|
||||
|
||||
export function tabCheck() {
|
||||
@@ -20,6 +27,12 @@ export function tabCheck() {
|
||||
name: 'name',
|
||||
label: '描述',
|
||||
},
|
||||
{
|
||||
label: '类型',
|
||||
width: 80,
|
||||
align: 'center',
|
||||
...mappingField('type', checkTypeMapping)
|
||||
},
|
||||
{
|
||||
label: '操作',
|
||||
width: 100,
|
||||
@@ -29,7 +42,7 @@ export function tabCheck() {
|
||||
buttons: [
|
||||
{
|
||||
type: 'action',
|
||||
label: '查看',
|
||||
label: '处理',
|
||||
level: 'link',
|
||||
...permissionDetailDialog(
|
||||
'parameters.confirmationId',
|
||||
|
||||
Reference in New Issue
Block a user