csi-financial-front/src/utils/constants.ts

93 lines
1.2 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 获取年份目前是本年往前倒退3年
const years = [];
for (let i = 0; i < 4; i++) {
years.push({
label: new Date().getFullYear() - i + '年',
value: new Date().getFullYear() - i,
});
}
export const YEAR = years;
export const REPORTTYPENOAll = [
{
value: 0,
label: '年报',
},
{
value: 1,
label: '半年报',
},
{
value: 2,
label: '一季报',
},
{
value: 3,
label: '三季报',
},
];
export const REPORTTYPE = [
{
value: null,
label: '全部',
},
{
value: 0,
label: '年报',
},
{
value: 1,
label: '半年报',
},
{
value: 5,
label: '日常公告',
},
{
value: 2,
label: '一季报',
},
{
value: 3,
label: '三季报',
},
];
export const MARKETNAME = [
{
value: '上交所',
label: '上交所',
},
{
value: '北交所',
label: '北交所',
},
{
value: '深交所',
label: '深交所',
},
];
export const REPORTTYPEDICT: any = {
0: '年报',
1: '半年报',
2: '一季报',
3: '三季报',
5: '日常公告',
};
export const REPORTSTATUSDICT: any = {
0: '分析中',
1: '分析中',
2: '校验异常',
3: '校验通过',
4: '分析失败',
5: '分析中',
6: '分析中',
7: '分析失败',
8: '分析失败',
21: '疑似异常',
};