pageConfig.js 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. var baseInfoHtml = '<div class="paper-attention-info">\
  2. <div class="attention-left">\
  3. <div class="tips-info clearfix">\
  4. <h3 class="notice-title fl"><i>注</i><i>意</i><i>事</i><i>项</i></h3>\
  5. <div class="notice-detail" id="noticeDetail" contenteditable="true"></div>\
  6. </div>\
  7. <div class="absent-box clearfix">\
  8. <h4 class="fl">正确填涂 <i class="mark"></i></h4>\
  9. <h4 class="fl">缺考标记 <i class="mark absent-mark"></i></h4>\
  10. </div>\
  11. </div>\
  12. <div class="notice-ewm">\
  13. </div>\
  14. </div>';
  15. var PaperAndTopicConfig = {
  16. sizeConfig : {
  17. '1': {
  18. name:'A3',
  19. width: 297,
  20. height: 420,
  21. direction: {
  22. horizontal: [2, 3],//横版
  23. vertical: []//竖版
  24. },
  25. //改配置下,一行可以发放几个选择题
  26. horizontal: {
  27. //无装订线的情况
  28. noLine: {
  29. 2: 5 * 5,
  30. 3: 3 * 5
  31. },
  32. //有装订线的情况
  33. yesLine: {
  34. 2: 4 * 5,
  35. 3: 3 * 5
  36. }
  37. }
  38. },
  39. '2': {
  40. name:'A4',
  41. width: 210,
  42. height: 297,
  43. direction: {
  44. horizontal: [2],
  45. vertical: [1]
  46. },
  47. horizontal: {
  48. noLine: {
  49. 2: 3 * 5
  50. },
  51. yesLine: {
  52. 2: 3 * 5
  53. }
  54. },
  55. vertical: {
  56. noLine: {
  57. 1: 5 * 5
  58. },
  59. yesLine: {
  60. 1: 4 * 5
  61. }
  62. }
  63. },
  64. '3': {
  65. name:'16K',
  66. width: 185,
  67. height: 260,
  68. direction: {
  69. horizontal: [2],
  70. vertical: [1]
  71. },
  72. horizontal: {
  73. noLine: {
  74. 2: 3 * 5
  75. },
  76. yesLine: {
  77. 2: 2 * 5
  78. }
  79. },
  80. vertical: {
  81. noLine: {
  82. 1: 4 * 5
  83. },
  84. yesLine: {
  85. 1: 4 * 5
  86. }
  87. }
  88. },
  89. '4': {
  90. name:'8Ks',
  91. width: 260,
  92. height: 370,
  93. direction: {
  94. horizontal: [2, 3],
  95. vertical: []
  96. },
  97. horizontal: {
  98. noLine: {
  99. 2: 4 * 5,
  100. 3: 2 * 5
  101. },
  102. yesLine: {
  103. 2: 4 * 5,
  104. 3: 2 * 5
  105. }
  106. }
  107. },
  108. '5': {
  109. name:'8Kb',
  110. width: 270,
  111. height: 390,
  112. direction: {
  113. horizontal: [2, 3],
  114. vertical: []
  115. },
  116. horizontal: {
  117. noLine: {
  118. 2: 4 * 5,
  119. 3: 2 * 5
  120. },
  121. yesLine: {
  122. 2: 4 * 5,
  123. 3: 2 * 5
  124. }
  125. }
  126. },
  127. },
  128. topicTypes:[
  129. {
  130. label: "单选题",
  131. value: 1
  132. },
  133. {
  134. label: "多选题",
  135. value: 2
  136. },
  137. {
  138. label: "不定项",
  139. value: 11
  140. },
  141. {
  142. label: "填空题",
  143. value: 5
  144. },
  145. {
  146. label: "解答题",
  147. value: 7
  148. },
  149. {
  150. label: "选做题",
  151. value: 17
  152. },
  153. {
  154. label: "必做题",
  155. value: 27
  156. },
  157. {
  158. label: "作文",
  159. value: 77
  160. }
  161. ],
  162. topicTypeObj:{
  163. "1":"单选",
  164. "2":"多选",
  165. "11":"不定项",
  166. "5":"填空",
  167. "7":"解答",
  168. "17":"选做",
  169. "27":"必做",
  170. "77":"作文",
  171. },
  172. scoreBoxArr:['','2/3/5','2/3/4/6','2/4'],
  173. paperInfoHtml:{
  174. noUseCode:{
  175. col2:[
  176. '<div class="paper-card">\
  177. <div class="exam-id card-flex">\
  178. <div class="card-id clearfix" id="cardIdBox"></div>\
  179. <div class="paper-attention-info attention-only-card">\
  180. <div class="attention-left">\
  181. <div class="tips-info clearfix">\
  182. <h3 class="notice-title fl"><i>注</i><i>意</i><i>事</i><i>项</i></h3>\
  183. <div class="notice-detail" id="noticeDetail" contenteditable="true"></div>\
  184. </div>\
  185. <div class="absent-box clearfix">\
  186. <h4 class="fl">正确填涂 <i class="mark"></i></h4>\
  187. <h4 class="fl">缺考标记 <i class="mark absent-mark"></i></h4>\
  188. </div>\
  189. </div>\
  190. <div class="notice-ewm">\
  191. </div>\
  192. </div>\
  193. </div>\
  194. </div>',
  195. '<div class="paper-card attention-only-code-col2">\
  196. <div class="exam-id card-flex">\
  197. <div class="paper-attention-info ">\
  198. <div class="attention-left">\
  199. <div class="tips-info clearfix">\
  200. <h3 class="notice-title fl"><i>注</i><i>意</i><i>事</i><i>项</i></h3>\
  201. <div class="notice-detail" id="noticeDetail" contenteditable="true"></div>\
  202. </div>\
  203. <div class="absent-box clearfix">\
  204. <h4 class="fl">正确填涂 <i class="mark"></i></h4>\
  205. <h4 class="fl">缺考标记 <i class="mark absent-mark"></i></h4>\
  206. </div>\
  207. </div>\
  208. <div class="notice-ewm"></div>\
  209. <div class="card-code card-code-col3 clearfix">\
  210. <div class="code-img">\
  211. <div class="code-words">\
  212. <i>条</i>\
  213. <i>形</i>\
  214. <i>码</i>\
  215. </div>\
  216. </div>\
  217. <div class="card-row-id">准考证号:</div>\
  218. </div>\
  219. </div>\
  220. </div>\
  221. </div>',
  222. '<div class="paper-card">\
  223. <div class="exam-id card-flex">\
  224. <div class="card-id clearfix" id="cardIdBox"></div>\
  225. <div class="card-code-col2">\
  226. <div class="paper-attention-info">\
  227. <div class="attention-left">\
  228. <div class="tips-info clearfix">\
  229. <h3 class="notice-title fl"><i>注</i><i>意</i><i>事</i><i>项</i></h3>\
  230. <div class="notice-detail f" id="noticeDetail" contenteditable="true"></div>\
  231. </div>\
  232. <div class="absent-box clearfix">\
  233. <h4 class="fl">正确填涂 <i class="mark"></i></h4>\
  234. <h4 class="fl">缺考标记 <i class="mark absent-mark"></i></h4>\
  235. </div>\
  236. </div>\
  237. </div>\
  238. <div class="card-code card-code-col3 clearfix">\
  239. <div class="code-img fl">\
  240. <div class="code-words">\
  241. <i>条</i>\
  242. <i>形</i>\
  243. <i>码</i>\
  244. </div>\
  245. </div>\
  246. <div class="notice-ewm notice-ewm-col2 fr"></div>\
  247. </div>\
  248. </div>\
  249. </div>\
  250. </div>'
  251. ],
  252. //0填涂考号 1条形码 2考号+条形码
  253. col3:[
  254. baseInfoHtml+'<div class="paper-card">\
  255. <div class="exam-id card-flex">\
  256. <div class="card-id clearfix" id="cardIdBox"></div>\
  257. </div>\
  258. </div>'
  259. ,baseInfoHtml+'<div class="paper-card">\
  260. <div class="exam-id card-flex">\
  261. <div class="card-code card-code-col3 clearfix">\
  262. <div class="code-img fl">\
  263. <div class="code-words">\
  264. <i>条</i>\
  265. <i>形</i>\
  266. <i>码</i>\
  267. </div>\
  268. </div>\
  269. </div>\
  270. <div class="card-row-id">准考证号:</div>\
  271. </div>\
  272. </div>'
  273. ,baseInfoHtml+'<div class="paper-card">\
  274. <div class="exam-id card-flex">\
  275. <div class="card-id clearfix" id="cardIdBox"></div>\
  276. <div class="card-code clearfix">\
  277. <div class="code-img fr">\
  278. <div class="code-words">\
  279. <i>条</i>\
  280. <i>形</i>\
  281. <i>码</i>\
  282. </div>\
  283. </div>\
  284. </div>\
  285. </div>\
  286. </div>'
  287. ]
  288. },
  289. useCode:baseInfoHtml
  290. },
  291. attentionArr:[//0不使用二维码,1使用二维码
  292. '<p>1、请正确填写班级、姓名、系统准考证号。</p>\
  293. <p>2、必须使用2B铅笔填涂,修改时用橡皮擦干净。</p>\
  294. <p>3、必须在指定位置作答,并保持卷面整洁。</p>\
  295. <p>4、如使用条形码,请在指定位置正确黏贴。</p>',
  296. '<p>1、考生务必用2B铅笔填涂。</p>\
  297. <p>2、考生务必在答题卡指定位置作答,并保持卷面整洁。</p>\
  298. <p>3、如需要条形码,则考生务必要在指定位置正确贴好条形码。</p>',
  299. ],
  300. }