enumData.js 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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: '//xbas2.testing.xiaoben.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/index.php',
  140. // loginStatus:'/username/zhangxiuxiu/time/1605001934/sig/1d0654fe982f26092454f23c91ae8f29/sessionid/session_d81a5a77a03d478d6999f3e9b1e97335',
  141. // printCssPath: '../css/print.css',
  142. // printPdfIp: '192.168.1.60:8001'
  143. // },
  144. localxx:{
  145. domain: '//xbas2.testing.xiaoben.com/index.php',
  146. loginStatus:'/username/pc002/time/1606807051/sig/59bae4d33e9264622de48c77e415cf42/sessionid/session_2c065d0d39206e4a9f1127c4650360a3',
  147. printCssPath: '../css/print.css',
  148. printPdfIp: '192.168.1.60:8001'
  149. },
  150. localxq:{
  151. domain: '//xbas2.testing.xiaoben.com',
  152. //登录token
  153. loginStatus:'/username/3865000/time/1598941471/sig/2aa8da452c1126797cf03269b174d290/sessionid/session_a6709d3626be2ab6e416d1ede917e457',
  154. //'/username/danie/time/1572240626/sig/3a92b8e359d7a2fd8f9435232cf9b000/sessionid/session_2511d73f107b708049c4550af8ae7c1d',
  155. printCssPath: '/css/online/print.css',
  156. printPdfIp: 'localhost:8001'
  157. },
  158. localP:{
  159. loginStatus:'/username/15537836927/time/1590490894/sig/bcc1ef7cdf32c39bda03c890431ce7ef/sessionid/session_4559e2d0466ea804554be8f76d12b82b',
  160. printCssPath: '../css/print.css',
  161. printPdfIp: 'localhost:8001'
  162. },
  163. //zsyas2.testing.xueping.com
  164. localxg:{
  165. domain: '//xbas2.testing.xiaoben.com',
  166. //登录token
  167. loginStatus:'/username/danie/time/1572240626/sig/3a92b8e359d7a2fd8f9435232cf9b000/sessionid/session_2511d73f107b708049c4550af8ae7c1d',
  168. printCssPath: '../css/print.css',
  169. printPdfIp: 'localhost:8001'
  170. },
  171. testing: {
  172. //正式环境默认根目录开始找
  173. domain: '',
  174. loginStatus:
  175. '',
  176. printCssPath: '/css/online/print.css',
  177. printPdfIp: '192.168.1.60:8001'
  178. // printPdfIp: 'zsyh2p.zhixinhuixue.com'
  179. },
  180. online: {
  181. //正式环境默认根目录开始找
  182. domain: 'http://xbcard.schcur.com',
  183. loginStatus: '',
  184. printCssPath: '/css/online/print.css',
  185. printPdfIp: 'zsyh2p.zhixinhuixue.com'
  186. }
  187. }