1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
| var ConstParas = {
| //语言
| LocalizationType: {
| zhCN: 0, //zh-CN 简体中文(中国)
| zhTW: 1, //zh-TW 繁体中文(台湾地区)
| enUS: 2, //en-US 英语(美国)
| de: 3, //德文
| ja: 4, //日文
| ru: 5, //俄文
| ko: 6, //韩文
| fr: 7, //法文
| es: 8, //西班牙文
| it: 9, //意大利文
| pt: 10, //葡萄牙文
| ca: 11, // 加泰罗尼亚文
| pl: 12, // 波兰文
| nl: 13, // 荷兰文
| el: 14, // 希腊文
| },
| getLocalizationTypeCNName(type) {
| let local = window.location.href
| let name = ''
| if (type == 0) {
| name = '简体中文'
| }
| if (type == 1) {
| name = '繁体中文'
| }
| if (type == 2) {
| name = '英语'
| }
| if (type == 3) {
| name = '德文'
| }
| if (type == 4) {
| name = '日文'
| }
| if (type == 5) {
| name = '俄文'
| }
| if (type == 6) {
| name = '韩文'
| }
| if (type == 7) {
| name = '法文'
| }
| if (type == 8) {
| name = '西班牙文'
| }
| if (type == 9) {
| name = '意大利文'
| }
| if (type == 10) {
| name = '葡萄牙文'
| }
| if (type == 11) {
| name = '加泰罗尼亚文'
| }
| if (type == 12) {
| name = '波兰文'
| }
| if (type == 13) {
| name = '荷兰文'
| }
| if (type == 14) {
| name = '希腊文'
| }
| return name
| },
|
| getLocalizationTypeENName(type) {
| let name = ''
| if (type == 0) {
| name = 'Simplified Chinese'
| }
| if (type == 1) {
| name = 'Traditional Chinese'
| }
| if (type == 2) {
| name = 'English'
| }
| return name
| },
| //获取语言类型 方便路由切换跳转
| getLangTypeName(value) {
| let langType = ''
| if (value == 0) {
| langType = 'CN'
| }
| if (value == 2) {
| langType = 'EN'
| }
| if (value == 8) {
| langType = 'ES'
| }
| return langType
| },
| PumpStyle: {
| LXP: 0, //离心泵
| ZLP: 1, //轴流泵
| RJP: 2, //容积泵
| },
|
| ChartType: {
| Speed: 0, //变速
| Cut: 1, //切割
| BaoLuo: 3, //包络法
| ZhouLiu: 4, //轴流
| },
| //区域显示方式
| ChartRegionDispStyle: {
| Strip: 0, //条形带
| Spectrum: 1, //类似型谱
| Blod: 2, //线加粗
| },
| //图表面板分成几个
| ChartDiagramPanelStyle: {
| Whole: 0,
| Two: 1,
| },
| //图表区域显示
| ChartRegionDispStyle: {
| Strip: 0, //条形带
| Spectrum: 1, //类似型谱
| Blod: 2, //线加粗
| },
| //详细页面来源
| DetailPageFrom: {
| EBook: 0,
| ByParas: 1,
| BySimu: 2,
| Qr: 3,
| },
| //详细页面目的
| DetailPagePurpose: {
| EBook: 0,
| ByParas: 1,
| BySimu: 2,
| },
| //文件类型
| FileType: {
| Pdf: 0,
| Excel: 1,
| Word: 2,
| },
| getFileTypeName(type) {
| if (type == 0) {
| return 'PDF'
| }
| if (type == 1) {
| return 'EXCEL'
| }
| if (type == 2) {
| return 'WORD'
| }
| return ''
| },
|
| //驱动类型
| DriveType: {
| Motor: 0,
| Diesel: 3,
| Turbine: 4, //水轮机,液力透平
| SteamTurbine: 5, //汽轮机
| Other: 9,
| },
| UserType: {
| Employee: 0,
| OuterUser: 1,
| },
| Disp3dMethod: {
| NONE: 0,
| STL_CTRL: 1, //STL客户端控件
| CAD_3DShowShow: 2, //CAD 3D秀秀本地网页
| BIM_FORGE: 3, //BIM forge 网页
| THREE_JS: 4,
| SW_HTML: 5, //
| },
| SoftType: {
| Web: 12,
| WeiXin: 46,
| App: 45,
| },
| }
|
| export default ConstParas
|
|