config.js 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. window.global = {
  2. env: 'dev',
  3. baseUrl: function() {
  4. return {
  5. dev: 'http://47.108.150.237:11082/dev-api',
  6. test: 'http://10.10.12.85:2004/graph',
  7. local: 'http://localhost:2004',
  8. prod: 'http://unigraph.xian.algmarket.com',
  9. // prod: 'http://kg.yaoyuan.in:81/graph'
  10. }[window.global.env || 'mock']
  11. },
  12. mockUrl: function() {
  13. return 'http://10.10.12.39:7300/mock/5d8addd4ea80090020e12ead/kg2'
  14. },
  15. logOutUrl: function() {
  16. return this.baseUrl() + '/logout'
  17. },
  18. // 资源评估地址
  19. sysmgtUrl: 'http://10.10.12.51:2006',
  20. wisdomAtlasUrl: 'http://10.10.12.68:2443/neural',
  21. koUrl: 'http://10.10.12.68:2310/ko',
  22. const: {
  23. isEntChart: true, //实体可视化图谱
  24. version: 'base', // 版本控制,目前版本共有:['base', 'bf'] base:第一版,bf:北方版,后续再加
  25. isTemplateVersion: true, // 带实体模板的版本,以后可能有多个版本,如果继续加版本就继续加变量控制版本,例如isEntityVersion: true
  26. authorityControl: true, // 用户权限控制是否开启
  27. jqx_zhCn: function() {
  28. var localizationobj = {}
  29. localizationobj.pagerGoToPageString = '跳转:'
  30. localizationobj.pagerShowRowsString = '显示条数:'
  31. localizationobj.pagerRangeString = ' / '
  32. localizationobj.pagerNextButtonString = '下一页'
  33. localizationobj.pagerFirstButtonString = '首页'
  34. localizationobj.pagerLastButtonString = '末页'
  35. localizationobj.pagerPreviousButtonString = '上一页'
  36. localizationobj.sortAscendingString = '升序排序'
  37. localizationobj.sortDescendingString = '降序排序'
  38. localizationobj.sortRemoveString = '删除排序'
  39. localizationobj.emptydatastring = '无数据'
  40. localizationobj.firstDay = 1
  41. localizationobj.percentSymbol = '%'
  42. localizationobj.currencySymbol = '¥'
  43. localizationobj.currencySymbolPosition = 'after'
  44. localizationobj.decimalSeparator = '.'
  45. localizationobj.thousandsSeparator = ','
  46. var days = {
  47. // full day names
  48. names: [
  49. '星期日',
  50. '星期一',
  51. '星期二',
  52. '星期三',
  53. '星期四',
  54. '星期五',
  55. '星期六',
  56. ],
  57. // abbreviated day names
  58. namesAbbr: [
  59. '周日',
  60. '周一',
  61. '周二',
  62. '周三',
  63. '周四',
  64. '周五',
  65. '周六',
  66. ],
  67. // shortest day names
  68. namesShort: ['日', '一', '二', '三', '四', '五', '六'],
  69. }
  70. localizationobj.days = days
  71. var months = {
  72. // full month names (13 months for lunar calendards -- 13th month should be "" if not lunar)
  73. names: [
  74. '一月',
  75. '二月',
  76. '三月',
  77. '四月',
  78. '五月',
  79. '六月',
  80. '七月',
  81. '八月',
  82. '九月',
  83. '十月',
  84. '十一月',
  85. '十二月',
  86. '',
  87. ],
  88. // abbreviated month names
  89. namesAbbr: [
  90. '一',
  91. '二',
  92. '三',
  93. '四',
  94. '五',
  95. '六',
  96. '七',
  97. '八',
  98. '九',
  99. '十',
  100. '十一',
  101. '十二',
  102. '',
  103. ],
  104. }
  105. var patterns = {
  106. d: 'dd.MM.yyyy',
  107. D: 'dddd, d. MMMM yyyy',
  108. t: 'HH:mm',
  109. T: 'HH:mm:ss',
  110. f: 'dddd, d. MMMM yyyy HH:mm',
  111. F: 'dddd, d. MMMM yyyy HH:mm:ss',
  112. M: 'dd MMMM',
  113. Y: 'MMMM yyyy',
  114. }
  115. localizationobj.patterns = patterns
  116. localizationobj.months = months
  117. return localizationobj
  118. },
  119. menuList: [
  120. {
  121. code: 'home',
  122. icon: 'home',
  123. name: '首页',
  124. link: '/',
  125. children: [],
  126. },
  127. {
  128. code: 'entcls',
  129. icon: 'book',
  130. name: '实体类',
  131. link: '/mng/class',
  132. children: [],
  133. },
  134. // {
  135. // code: 'lib',
  136. // icon: 'database',
  137. // name: USER_ROLE_LANGUAGE[USER_ROLE].ENT,
  138. // link: '/mng/class/unknow/entity',
  139. // children: []
  140. // },
  141. // 北方的新样式
  142. {
  143. code: 'ent',
  144. icon: 'database',
  145. name: '实体',
  146. link: '/mng/class/unknow/entity_v2',
  147. children: [],
  148. },
  149. {
  150. code: 'sub_graph',
  151. icon: 'api',
  152. name: '子图管理',
  153. link: '/',
  154. children: [
  155. {
  156. code: 'dataSourceManageV3',
  157. name: '子图导入',
  158. link: '/dataSourceManageV3',
  159. },
  160. {
  161. code: 'subgraph_export',
  162. name: '子图导出',
  163. link: '/subGraph/export',
  164. },
  165. ],
  166. },
  167. {
  168. code: 'graph_visual',
  169. icon: 'dot-chart',
  170. name: '图谱可视化',
  171. link: '/',
  172. children: [
  173. {
  174. code: 'entcls_visual',
  175. name: '实体类可视化',
  176. link: '/sta/entity_class_view',
  177. },
  178. // {
  179. // code: 'ent_visual_v1',
  180. // name:
  181. // window.USER_ROLE_LANGUAGE[window.USER_ROLE]
  182. // .ENT_VIEW,
  183. // link: '/sta_v1',
  184. // },
  185. {
  186. code: 'ent_visual',
  187. name: '实体可视化',
  188. link: '/sta',
  189. },
  190. {
  191. code: 'ent_contrast',
  192. name: '实体对比',
  193. link: '/sta/contrast',
  194. },
  195. ],
  196. },
  197. {
  198. code: 'analyse',
  199. icon: 'deployment-unit',
  200. name: '分析',
  201. link: '/',
  202. children: [
  203. {
  204. code: 'path_calculation',
  205. icon: 'branches',
  206. name: '路径计算',
  207. link: '/sta/road_computed',
  208. children: [],
  209. },
  210. {
  211. code: 'graph_sta_cal',
  212. icon: 'bar-chart',
  213. name: '图谱数据统计',
  214. link: '/sta/data/entcls',
  215. children: [],
  216. },
  217. {
  218. code: 'relevance_analyse',
  219. icon: 'deployment-unit',
  220. name: '关联分析',
  221. link: '/sta/relevance_analyse',
  222. children: [],
  223. },
  224. {
  225. code: 'influence',
  226. icon: 'deployment-unit',
  227. name: '影响力分析',
  228. link: '/sta/influence',
  229. children: [],
  230. },
  231. ],
  232. },
  233. {
  234. code: 'data_product',
  235. icon: 'pie-chart',
  236. name: '数据产品',
  237. link: '/',
  238. children: [
  239. {
  240. code: 'system_build',
  241. icon: 'branches',
  242. name: '体系构建',
  243. link: '/dataProduct/systemBuild',
  244. children: [],
  245. },
  246. {
  247. code: 'similarity_analysis',
  248. icon: 'branches',
  249. name: '相似度分析',
  250. link: '/dataProduct/similarityAnalysis',
  251. children: [],
  252. },
  253. {
  254. code: 'core_entity_discovery',
  255. icon: 'branches',
  256. name: '核心实体发现',
  257. link: '/dataProduct/coreEntity',
  258. children: [],
  259. },
  260. ],
  261. },
  262. {
  263. code: 'matrix_gen',
  264. icon: 'upload',
  265. name: '邻接矩阵生成',
  266. link: '/dataImport',
  267. children: [],
  268. },
  269. {
  270. code: 'search',
  271. icon: 'search',
  272. name: '查询',
  273. link: '/sch',
  274. children: [],
  275. },
  276. {
  277. code: 'custom_manage',
  278. icon: 'appstore',
  279. name: '自定义',
  280. link: '/',
  281. children: [
  282. {
  283. code: 'custom_attrcls',
  284. name: '自定义基础属性类',
  285. link: '/custom/attr_class',
  286. },
  287. {
  288. code: 'enum_manage',
  289. name: '枚举类管理',
  290. link: '/custom/enum',
  291. },
  292. {
  293. code: 'custom_synonym',
  294. name: '同义词',
  295. link: '/custom/synonym',
  296. },
  297. {
  298. code: 'custom_prefix',
  299. name: '前缀管理',
  300. link: '/custom/prefix',
  301. },
  302. {
  303. code: 'custom_setting',
  304. name: '设置',
  305. link: '/custom/setting',
  306. },
  307. ],
  308. },
  309. {
  310. code: 'dataSourceManage',
  311. icon: 'file-protect',
  312. name: '数据源管理',
  313. link: '/dataSourceManage',
  314. children: [],
  315. },
  316. {
  317. code: 'ruleAnalysis',
  318. icon: 'file-protect',
  319. name: '规则分析',
  320. link: '/ruleAnalysis',
  321. children: [],
  322. },
  323. ],
  324. dateFormat: 'YYYY-MM-DD',
  325. attrClsType: {
  326. TEXT: '文本类型',
  327. LONG: '整数类型',
  328. DOUBLE: '浮点类型',
  329. BOOLEAN: '布尔类型',
  330. DATE: '日期类型',
  331. },
  332. booleanText: {
  333. true: '真',
  334. false: '假',
  335. },
  336. formItemLayout: {
  337. labelCol: {
  338. xs: { span: 24 },
  339. sm: { span: 6 },
  340. },
  341. wrapperCol: {
  342. xs: { span: 24 },
  343. sm: { span: 16 },
  344. },
  345. },
  346. entityColors: [
  347. 'rgba(111,82,184,1)',
  348. 'rgba(255,214,24,1)',
  349. 'rgba(47,195,47,1)',
  350. 'rgba(86,185,247,1)',
  351. 'rgba(234,180,4,1)',
  352. 'rgba(222,103,44,1)',
  353. '#FEDD00',
  354. '#00843D',
  355. '#009A44',
  356. '#4A7729',
  357. '#78BE20',
  358. '#007A33',
  359. '#BFB800',
  360. '#64A70B',
  361. '#006341',
  362. '#FDDA24',
  363. '#009639',
  364. '#43B02A',
  365. '#00205B',
  366. '#00629B',
  367. '#64CCC9',
  368. '#0093B2',
  369. '#004F71',
  370. '#006BA6',
  371. '#003DA5',
  372. '#003B5C',
  373. '#008578',
  374. '#0033A0',
  375. '#002855',
  376. '#003087',
  377. '#00778B',
  378. '#0082BA',
  379. '#00A9CE',
  380. '#002D72',
  381. '#001871',
  382. '#672146',
  383. '#AD1AAC',
  384. '#A9431E',
  385. '#D57800',
  386. '#643335',
  387. '#FFCD00',
  388. '#3E2B2E',
  389. '#BE6A14',
  390. '#A50034',
  391. '#F9423A',
  392. '#C8102E',
  393. '#E4002B',
  394. '#C5003E',
  395. '#EF3340',
  396. '#CB333B',
  397. '#FC4C02',
  398. '#FE5000',
  399. '#FF671F',
  400. '#2C2A29',
  401. '#FFA300',
  402. '#FBD872',
  403. '#333F48',
  404. '#C99700',
  405. '#ABCAE9',
  406. '#F4364C',
  407. '#7A7D81',
  408. '#C5299B',
  409. '#DB3EB1',
  410. '#B9975B',
  411. ],
  412. },
  413. }