feat(web): 适配flowable
This commit is contained in:
@@ -261,13 +261,13 @@ export const permissionStateMapping = [
|
||||
export const checkTypeMapping = [
|
||||
mappingItem('确权审查', 'CONFIRMATION', 'bg-blue-500'),
|
||||
mappingItem('授权审查', 'AUTHENTICATION', 'bg-purple-500'),
|
||||
mappingItem('上架审查', 'MARKET', 'bg-green-500'),
|
||||
mappingItem('上架审查', 'WARE', 'bg-green-500'),
|
||||
]
|
||||
|
||||
export const checkOverMapping = [
|
||||
mappingItem('进行中', 'CHECKING', 'bg-warning'),
|
||||
mappingItem('已撤销', 'RETRACT', 'bg-primary'),
|
||||
mappingItem('已办结', 'OVER', 'bg-success'),
|
||||
mappingItem('进行中', 'RUNNING', 'bg-warning'),
|
||||
mappingItem('已撤销', 'TERMINAL', 'bg-primary'),
|
||||
mappingItem('已办结', 'COMPLETED', 'bg-success'),
|
||||
]
|
||||
|
||||
function api(method, url) {
|
||||
|
||||
@@ -31,7 +31,7 @@ export function tabCheck() {
|
||||
stringField('modifiedUsername', '最后操作人', 100),
|
||||
operationField('操作', undefined, [
|
||||
{
|
||||
visibleOn: "${type === 'CONFIRMATION' && state === 'CHECKING'}",
|
||||
visibleOn: "${type === 'CONFIRMATION' && state === 'RUNNING'}",
|
||||
type: 'action',
|
||||
label: '处理',
|
||||
level: 'link',
|
||||
@@ -43,7 +43,7 @@ export function tabCheck() {
|
||||
label: '同意',
|
||||
actionType: 'ajax',
|
||||
close: true,
|
||||
api: apiGet('${base}/check_order/operation/${checkOrderId}/APPLY'),
|
||||
api: apiGet('${base}/check_order/approve/${instanceId}'),
|
||||
reload: 'check_order_list',
|
||||
},
|
||||
{
|
||||
@@ -51,7 +51,7 @@ export function tabCheck() {
|
||||
label: '拒绝',
|
||||
actionType: 'ajax',
|
||||
close: true,
|
||||
api: apiGet('${base}/check_order/operation/${checkOrderId}/REJECT'),
|
||||
api: apiGet('${base}/check_order/reject/${instanceId}'),
|
||||
reload: 'check_order_list',
|
||||
},
|
||||
],
|
||||
@@ -65,7 +65,7 @@ export function tabCheck() {
|
||||
...confirmationDetailDialog('parameters.confirmationId'),
|
||||
},
|
||||
{
|
||||
visibleOn: "${type === 'AUTHENTICATION' && state === 'CHECKING'}",
|
||||
visibleOn: "${type === 'AUTHENTICATION' && state === 'RUNNING'}",
|
||||
type: 'action',
|
||||
label: '处理',
|
||||
level: 'link',
|
||||
@@ -77,7 +77,7 @@ export function tabCheck() {
|
||||
label: '同意',
|
||||
actionType: 'ajax',
|
||||
close: true,
|
||||
api: apiGet('${base}/check_order/operation/${checkOrderId}/APPLY'),
|
||||
api: apiGet('${base}/check_order/approve/${instanceId}'),
|
||||
reload: 'check_order_list',
|
||||
},
|
||||
{
|
||||
@@ -85,7 +85,7 @@ export function tabCheck() {
|
||||
label: '拒绝',
|
||||
actionType: 'ajax',
|
||||
close: true,
|
||||
api: apiGet('${base}/check_order/operation/${checkOrderId}/REJECT'),
|
||||
api: apiGet('${base}/check_order/reject/${instanceId}'),
|
||||
reload: 'check_order_list',
|
||||
},
|
||||
],
|
||||
@@ -99,7 +99,7 @@ export function tabCheck() {
|
||||
...authenticationDetailDialog('parameters.authenticationId'),
|
||||
},
|
||||
{
|
||||
visibleOn: "${type === 'MARKET' && state === 'CHECKING'}",
|
||||
visibleOn: "${type === 'WARE' && state === 'RUNNING'}",
|
||||
type: 'action',
|
||||
label: '处理',
|
||||
level: 'link',
|
||||
@@ -111,7 +111,7 @@ export function tabCheck() {
|
||||
label: '同意',
|
||||
actionType: 'ajax',
|
||||
close: true,
|
||||
api: apiGet('${base}/check_order/operation/${checkOrderId}/APPLY'),
|
||||
api: apiGet('${base}/check_order/approve/${instanceId}'),
|
||||
reload: 'check_order_list',
|
||||
},
|
||||
{
|
||||
@@ -119,14 +119,14 @@ export function tabCheck() {
|
||||
label: '拒绝',
|
||||
actionType: 'ajax',
|
||||
close: true,
|
||||
api: apiGet('${base}/check_order/operation/${checkOrderId}/REJECT'),
|
||||
api: apiGet('${base}/check_order/reject/${instanceId}'),
|
||||
reload: 'check_order_list',
|
||||
},
|
||||
],
|
||||
),
|
||||
},
|
||||
{
|
||||
visibleOn: "${type === 'MARKET' && state !== NORMAL}",
|
||||
visibleOn: "${type === 'WARE' && state !== NORMAL}",
|
||||
type: 'action',
|
||||
label: '查看',
|
||||
level: 'link',
|
||||
|
||||
Reference in New Issue
Block a user