54 lines
1.3 KiB
JavaScript
54 lines
1.3 KiB
JavaScript
import { makeAbleActionDef } from 'oak-domain/lib/actions/action';
|
|
;
|
|
export const AbleActionDef = makeAbleActionDef('enabled');
|
|
export const entityDesc = {
|
|
locales: {
|
|
zh_CN: {
|
|
name: '手机',
|
|
attr: {
|
|
ableState: '是否可用',
|
|
mobile: '手机号',
|
|
user: '关联用户',
|
|
tokens: '相关令牌',
|
|
},
|
|
action: {
|
|
enable: '启用',
|
|
disable: '禁用',
|
|
},
|
|
v: {
|
|
ableState: {
|
|
enabled: '可用的',
|
|
disabled: '禁用的',
|
|
}
|
|
}
|
|
},
|
|
},
|
|
indexes: [
|
|
{
|
|
name: 'index_mobile_ableState',
|
|
attributes: [
|
|
{
|
|
name: 'mobile',
|
|
direction: 'ASC',
|
|
},
|
|
{
|
|
name: 'ableState',
|
|
direction: 'ASC',
|
|
}
|
|
],
|
|
},
|
|
],
|
|
style: {
|
|
icon: {
|
|
enable: '',
|
|
disable: '',
|
|
},
|
|
color: {
|
|
ableState: {
|
|
enabled: '#008000',
|
|
disabled: '#A9A9A9'
|
|
}
|
|
}
|
|
}
|
|
};
|