This commit is contained in:
53
src/config/constants/pollingScheduler.ts
Normal file
53
src/config/constants/pollingScheduler.ts
Normal file
@@ -0,0 +1,53 @@
|
||||
export const SCHEDULER_PERMISSIONS = {
|
||||
params: {
|
||||
page: 'polling_carrier_params:page',
|
||||
detailPage: 'polling_carrier_params:detail_page',
|
||||
detail: 'polling_carrier_params:detail'
|
||||
},
|
||||
scenes: { page: 'polling_check_scene:page' },
|
||||
alerts: {
|
||||
page: 'polling_failure_alert:page',
|
||||
detailPage: 'polling_failure_alert:detail_page',
|
||||
detail: 'polling_failure_alert:detail',
|
||||
summary: 'polling_failure_alert:summary',
|
||||
handle: 'polling_failure_alert:handle',
|
||||
close: 'polling_failure_alert:close_polling',
|
||||
export: 'polling_failure_alert:export'
|
||||
},
|
||||
queues: { page: 'polling_carrier_queue:page' },
|
||||
dryRun: { page: 'stop_resume_dry_run:page', export: 'stop_resume_dry_run:export' },
|
||||
pauses: {
|
||||
page: 'polling_pause:page',
|
||||
restore: 'polling_pause:restore',
|
||||
export: 'polling_pause:export'
|
||||
},
|
||||
imports: {
|
||||
page: 'polling_status_import:page',
|
||||
create: 'polling_status_import:create',
|
||||
detailPage: 'polling_status_import:detail_page',
|
||||
detail: 'polling_status_import:detail'
|
||||
},
|
||||
cardState: 'iot_info:polling_state',
|
||||
deviceCardState: 'device_info:polling_state',
|
||||
cardBatch: 'iot_card:batch_polling',
|
||||
deviceBatch: 'device:batch_polling'
|
||||
} as const
|
||||
export const POLLING_CLOSE_SOURCES = [
|
||||
['single', '单资产接口'],
|
||||
['batch', '勾选批量'],
|
||||
['import', '文件导入'],
|
||||
['risk_auto', '风险停机或已销户自动关闭'],
|
||||
['cascade', '设备级联'],
|
||||
['order', '支付或下单生效'],
|
||||
['expiry_change', '修改有效期'],
|
||||
['alert', '停机被拒告警处理'],
|
||||
['history', '历史数据']
|
||||
].map(([value, label]) => ({ value, label }))
|
||||
export const POLLING_CHECK_TYPES = [
|
||||
['card_status', '卡状态'],
|
||||
['carddata', '流量'],
|
||||
['realname', '实名'],
|
||||
['package', '套餐'],
|
||||
['stop_resume', '停复机'],
|
||||
['all', '账户级']
|
||||
].map(([value, label]) => ({ value, label }))
|
||||
Reference in New Issue
Block a user