export const publishStatus = { // 渲染状态标签列表 SAVED: { type: 'info', text: 'publishStatus_SAVED', color: '#909399' }, ONLINE_PENDING: { type: 'primary', text: 'publishStatus_ONLINE_PENDING', color: '#409EFF' }, ONLINE_REJECTED: { type: 'danger', text: 'publishStatus_ONLINE_REJECTED', color: '#F56C6C' }, ONLINE: { type: 'success', text: 'publishStatus_ONLINE', color: '#67C23A' }, OFFLINE_PENDING: { type: 'warning', text: 'publishStatus_OFFLINE_PENDING', color: '#E6A23C' }, OFFLINE_REJECTED: { type: 'danger', text: 'publishStatus_OFFLINE_REJECTED', color: '#F56C6C' }, OFFLINE: { type: 'info', text: 'publishStatus_OFFLINE', color: '#909399' } } export const execStatus = { RUNNING: { type: '', text: 'execStatus_RUNNING', code: 'RUNNING' }, SUCCEEDED: { type: 'success', text: 'execStatus_SUCCEEDED', code: 'SUCCEEDED' }, FAILED: { type: 'danger', text: 'execStatus_FAILED', code: 'FAILED' }, FIELD_SUCCESS: { type: 'danger', text: 'execStatus_FIELD_SUCCESS', code: 'FIELD_SUCCESS' }, READY: { type: '', text: 'execStatus_READY', code: 'READY' }, TIMEOUT: { type: 'info', text: 'execStatus_TIMEOUT', code: 'TIMEOUT' }, KILLED: { type: 'warning', text: 'execStatus_KILLED', code: 'KILLED' }, UNAVAILABLE: { type: 'info', text: 'execStatus_UNAVAILABLE', code: 'UNAVAILABLE' }, UNKNOWN: { type: 'info', text: 'execStatus_UNKNOWN', code: 'UNKNOWN' } } export const conditions = { EQUAL: { label: 'conditions_EQUAL_label', oper: '=', support: ['string', 'number', 'enum'] }, NOT_EQUAL: { label: 'conditions_NOT_EQUAL_label', oper: '<>', support: ['string', 'number', 'enum'] }, LIKE: { label: 'conditions_LIKE_label', alias: 'conditions_LIKE_alias', oper: 'LIKE', support: ['string'] }, NOT_LIKE: { label: 'conditions_NOT_LIKE_label', alias: 'conditions_NOT_LIKE_alias', oper: 'NOT LIKE', support: ['string'] }, IN: { label: 'conditions_IN_label', oper: 'IN', support: ['enum'] // 'string', }, NOT_IN: { label: 'conditions_NOT_IN_label', oper: 'NOT IN', support: ['enum'] }, BETWEEN: { label: 'conditions_BETWEEN_label', oper: 'BETWEEN', support: ['date', 'number'] }, NOT_BETWEEN: { label: 'conditions_NOT_BETWEEN_label', oper: 'NOT BETWEEN', support: ['date', 'number'] }, GREATER_THAN: { label: 'conditions_GREATER_THAN_label', oper: '>', support: ['number'] }, GREATER_THAN_OR_EQUAL: { label: 'conditions_GREATER_THAN_OR_EQUAL_label', oper: '>=', support: ['number'] }, LESS_THAN: { label: 'conditions_LESS_THAN_label', oper: '<', support: ['number'] }, LESS_THAN_OR_EQUAL: { label: 'conditions_LESS_THAN_OR_EQUAL_label', oper: '<=', support: ['number'] }, IS_NULL: { label: 'conditions_IS_NULL_label', oper: 'IS NULL', support: [] }, NOT_NULL: { label: 'conditions_NOT_NULL_label', oper: 'IS NOT NULL', support: [] } }