enumData.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. /**
  2. * 纸张规格配置
  3. * direction 支持的方向
  4. * vertical 竖版
  5. * horizontal 横版
  6. * column 支持的分栏
  7. * 1,2,3 分别代表 一分栏。。。
  8. */
  9. var sizeConfig = {
  10. A3: {
  11. width: 297,
  12. height: 420,
  13. direction: {
  14. horizontal: [2, 3]
  15. },
  16. //改配置下,一行可以发放几个选择题
  17. horizontal: {
  18. //无装订线的情况
  19. noLine: {
  20. 2: 5 * 5,
  21. 3: 3 * 5
  22. },
  23. //有装订线的情况
  24. yesLine: {
  25. 2: 4 * 5,
  26. 3: 3 * 5
  27. }
  28. }
  29. },
  30. A4: {
  31. width: 210,
  32. height: 297,
  33. direction: {
  34. horizontal: [2],
  35. vertical: [1]
  36. },
  37. horizontal: {
  38. noLine: {
  39. 2: 3 * 5
  40. },
  41. yesLine: {
  42. 2: 3 * 5
  43. }
  44. },
  45. vertical: {
  46. noLine: {
  47. 1: 5 * 5
  48. },
  49. yesLine: {
  50. 1: 4 * 5
  51. }
  52. }
  53. },
  54. '8Ks': {
  55. // width: 267,
  56. // height: 390,
  57. width: 260,
  58. height: 370,
  59. direction: {
  60. horizontal: [2, 3]
  61. },
  62. horizontal: {
  63. noLine: {
  64. 2: 4 * 5,
  65. 3: 2 * 5
  66. },
  67. yesLine: {
  68. 2: 4 * 5,
  69. 3: 2 * 5
  70. }
  71. }
  72. },
  73. '8Kb': {
  74. // width: 267,
  75. // height: 390,
  76. width: 270,
  77. height: 390,
  78. direction: {
  79. horizontal: [2, 3]
  80. },
  81. horizontal: {
  82. noLine: {
  83. 2: 4 * 5,
  84. 3: 2 * 5
  85. },
  86. yesLine: {
  87. 2: 4 * 5,
  88. 3: 2 * 5
  89. }
  90. }
  91. },
  92. '16K': {
  93. // width: 195,
  94. // height: 267,
  95. width: 185,
  96. height: 260,
  97. direction: {
  98. horizontal: [2],
  99. vertical: [1]
  100. },
  101. horizontal: {
  102. noLine: {
  103. 2: 3 * 5
  104. },
  105. yesLine: {
  106. 2: 2 * 5
  107. }
  108. },
  109. vertical: {
  110. noLine: {
  111. 1: 4 * 5
  112. },
  113. yesLine: {
  114. 1: 4 * 5
  115. }
  116. }
  117. }
  118. }
  119. //环境设置
  120. var envConfigs = {
  121. kg:{
  122. domain: '//192.168.1.51/index.php',
  123. //登录token
  124. loginStatus:'/username/zhangxiuxiu/time/1591165869/sig/2bd922eef27707fc899b30b465e6c24b/sessionid/session_4220c04c9f3f170305e2ad3b5480b67c',
  125. //'/username/danie/time/1572240626/sig/3a92b8e359d7a2fd8f9435232cf9b000/sessionid/session_2511d73f107b708049c4550af8ae7c1d',
  126. printCssPath: '../css/print.css',
  127. printPdfIp: '192.168.1.60:8001'
  128. },
  129. local: {
  130. domain: '//zsyas2.testing.xueping.com',
  131. //登录token
  132. loginStatus:'/username/3865000/time/1574323452/sig/ee23fd949447f86bec7c6ab0bcf7b17b/sessionid/session_3d44ce8ad2e69972bf6c2fde145f34e6',
  133. //'/username/danie/time/1572240626/sig/3a92b8e359d7a2fd8f9435232cf9b000/sessionid/session_2511d73f107b708049c4550af8ae7c1d',
  134. printCssPath: '../css/print.css',
  135. printPdfIp: '192.168.1.60:8001'
  136. },
  137. //'/username/pc002/time/1567499908/sig/7d9ca3d40b7422b759ce9a7e08b2de20/sessionid/session_93482f6cf1c865b7a2e2793c66f2c595'
  138. localxx:{
  139. domain: '//zsyas2.testing.xueping.com',
  140. loginStatus:'/username/zhangxiuxiu/time/1591165869/sig/2bd922eef27707fc899b30b465e6c24b/sessionid/session_4220c04c9f3f170305e2ad3b5480b67c',
  141. printCssPath: '../css/print.css',
  142. printPdfIp: 'localhost:8001'
  143. },
  144. localxq:{
  145. domain: '//zsyas2.testing.xueping.com',
  146. //登录token
  147. loginStatus:'/username/3865000/time/1598941471/sig/2aa8da452c1126797cf03269b174d290/sessionid/session_a6709d3626be2ab6e416d1ede917e457',
  148. //'/username/danie/time/1572240626/sig/3a92b8e359d7a2fd8f9435232cf9b000/sessionid/session_2511d73f107b708049c4550af8ae7c1d',
  149. printCssPath: '../css/print.css',
  150. printPdfIp: 'localhost:8001'
  151. },
  152. localP:{
  153. loginStatus:'/username/15537836927/time/1590490894/sig/bcc1ef7cdf32c39bda03c890431ce7ef/sessionid/session_4559e2d0466ea804554be8f76d12b82b',
  154. printCssPath: '../css/print.css',
  155. printPdfIp: 'localhost:8001'
  156. },
  157. //zsyas2.testing.xueping.com
  158. localxg:{
  159. domain: '//zsyas2.testing.xueping.com',
  160. //登录token
  161. loginStatus:'/username/danie/time/1572240626/sig/3a92b8e359d7a2fd8f9435232cf9b000/sessionid/session_2511d73f107b708049c4550af8ae7c1d',
  162. printCssPath: '../css/print.css',
  163. printPdfIp: 'localhost:8001'
  164. },
  165. testing: {
  166. //正式环境默认根目录开始找
  167. domain: '',
  168. loginStatus:'',
  169. printCssPath: '/css/third/print.css',
  170. printPdfIp: '192.168.1.60:8001'
  171. },
  172. online: {
  173. //正式环境默认根目录开始找
  174. domain: '',
  175. loginStatus: '',
  176. printCssPath: '/css/third/print.css',
  177. printPdfIp: 'zsyh2p.zhixinhuixue.com'
  178. }
  179. }