export const publishStatus = { // 渲染状态标签列表 SAVED: { type: 'info', text: '待上线', color: '#909399' }, ONLINE_PENDING: { type: 'primary', text: '上线中', color: '#409EFF' }, ONLINE_REJECTED: { type: 'danger', text: '上线驳回', color: '#F56C6C' }, ONLINE: { type: 'success', text: '已上线', color: '#67C23A' }, OFFLINE_PENDING: { type: 'warning', text: '下线中', color: '#E6A23C' }, OFFLINE_REJECTED: { type: 'danger', text: '下线驳回', color: '#F56C6C' }, OFFLINE: { type: 'info', text: '已下线', color: '#909399' } } export const execStatus = { RUNNING: { type: '', text: '运行中', code: 'RUNNING' }, SUCCEEDED: { type: 'success', text: '成功', code: 'SUCCEEDED' }, FAILED: { type: 'danger', text: '失败', code: 'FAILED' }, FIELD_SUCCESS: { type: 'danger', text: '字段扫描成功', code: 'FIELD_SUCCESS' }, READY: { type: '', text: '就绪', code: 'READY' }, TIMEOUT: { type: 'info', text: '超时', code: 'TIMEOUT' }, KILLED: { type: 'warning', text: '杀死', code: 'KILLED' }, UNAVAILABLE: { type: 'info', text: '不可用', code: 'UNAVAILABLE' }, UNKNOWN: { type: 'info', text: '未知', code: 'UNKNOWN' } } export const conditions = { EQUAL: { label: '等于', oper: '=', support: ['string', 'number', 'enum'] }, NOT_EQUAL: { label: '不等于', oper: '<>', support: ['string', 'number', 'enum'] }, LIKE: { label: '模糊', alias: '包含', oper: 'LIKE', support: ['string'] }, NOT_LIKE: { label: '不模糊', alias: '不包含', oper: 'NOT LIKE', support: ['string'] }, IN: { label: '包含', oper: 'IN', support: ['enum'] // 'string', }, NOT_IN: { label: '不包含', oper: 'NOT IN', support: ['enum'] }, BETWEEN: { label: '之间', oper: 'BETWEEN', support: ['date', 'number'] }, NOT_BETWEEN: { label: '不在之间', oper: 'NOT BETWEEN', support: ['date', 'number'] }, GREATER_THAN: { label: '大于', oper: '>', support: ['number'] }, GREATER_THAN_OR_EQUAL: { label: '大于等于', oper: '>=', support: ['number'] }, LESS_THAN: { label: '小于', oper: '<', support: ['number'] }, LESS_THAN_OR_EQUAL: { label: '小于等于', oper: '<=', support: ['number'] }, IS_NULL: { label: '等于空', oper: 'IS NULL', support: [] }, NOT_NULL: { label: '不等于空', oper: 'IS NOT NULL', support: [] } }