update 添加银川大屏
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
const xian = {
|
||||
dataType: '',
|
||||
};
|
||||
|
||||
export enum DataType {
|
||||
xian = '1',
|
||||
yinChuan = '2',
|
||||
}
|
||||
|
||||
export enum SexType {
|
||||
male = '2', //男
|
||||
female = '1', //女
|
||||
all = '0', //全部
|
||||
}
|
||||
|
||||
export const sexTypeList = [
|
||||
{
|
||||
label: '男',
|
||||
value: SexType.male,
|
||||
},
|
||||
{
|
||||
label: '女',
|
||||
value: SexType.female,
|
||||
},
|
||||
{
|
||||
label: '全部',
|
||||
value: SexType.all,
|
||||
},
|
||||
];
|
||||
|
||||
interface Settings {
|
||||
dataType: string;
|
||||
orgCode?: string;
|
||||
}
|
||||
|
||||
export function getSettings(type: string) {
|
||||
if (type == DataType.xian) {
|
||||
return { dataType: '1', orgCode: '' } as Settings;
|
||||
}
|
||||
if (type == DataType.yinChuan) {
|
||||
return { dataType: '2', orgCode: 'A01A59' } as Settings;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user