123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- /**
- * 纸张规格配置
- * direction 支持的方向
- * vertical 竖版
- * horizontal 横版
- * column 支持的分栏
- * 1,2,3 分别代表 一分栏。。。
- */
- var sizeConfig = {
- A3: {
- width: 297,
- height: 420,
- direction: {
- horizontal: [2, 3]
- },
- //改配置下,一行可以发放几个选择题
- horizontal: {
- //无装订线的情况
- noLine: {
- 2: 5 * 5,
- 3: 3 * 5
- },
- //有装订线的情况
- yesLine: {
- 2: 4 * 5,
- 3: 3 * 5
- }
- }
- },
- A4: {
- width: 210,
- height: 297,
- direction: {
- horizontal: [2],
- vertical: [1]
- },
- horizontal: {
- noLine: {
- 2: 3 * 5
- },
- yesLine: {
- 2: 3 * 5
- }
- },
- vertical: {
- noLine: {
- 1: 5 * 5
- },
- yesLine: {
- 1: 4 * 5
- }
- }
- },
- '8Ks': {
- // width: 267,
- // height: 390,
- width: 260,
- height: 370,
- direction: {
- horizontal: [2, 3]
- },
- horizontal: {
- noLine: {
- 2: 4 * 5,
- 3: 2 * 5
- },
- yesLine: {
- 2: 4 * 5,
- 3: 2 * 5
- }
- }
- },
- '8Kb': {
- // width: 267,
- // height: 390,
- width: 270,
- height: 390,
- direction: {
- horizontal: [2, 3]
- },
- horizontal: {
- noLine: {
- 2: 4 * 5,
- 3: 2 * 5
- },
- yesLine: {
- 2: 4 * 5,
- 3: 2 * 5
- }
- }
- },
- '16K': {
- // width: 195,
- // height: 267,
- width: 185,
- height: 260,
- direction: {
- horizontal: [2],
- vertical: [1]
- },
- horizontal: {
- noLine: {
- 2: 3 * 5
- },
- yesLine: {
- 2: 2 * 5
- }
- },
- vertical: {
- noLine: {
- 1: 4 * 5
- },
- yesLine: {
- 1: 4 * 5
- }
- }
- }
- }
- //环境设置
- var envConfigs = {
- kg:{
- domain: '//192.168.1.51/index.php',
- //登录token
- loginStatus:'/username/zhangxiuxiu/time/1591165869/sig/2bd922eef27707fc899b30b465e6c24b/sessionid/session_4220c04c9f3f170305e2ad3b5480b67c',
- //'/username/danie/time/1572240626/sig/3a92b8e359d7a2fd8f9435232cf9b000/sessionid/session_2511d73f107b708049c4550af8ae7c1d',
- printCssPath: '../css/print.css',
- printPdfIp: '192.168.1.60:8001'
- },
- local: {
- domain: '//xbas2.testing.xiaoben.com',
- //登录token
- loginStatus:'/username/3865000/time/1574323452/sig/ee23fd949447f86bec7c6ab0bcf7b17b/sessionid/session_3d44ce8ad2e69972bf6c2fde145f34e6',
- //'/username/danie/time/1572240626/sig/3a92b8e359d7a2fd8f9435232cf9b000/sessionid/session_2511d73f107b708049c4550af8ae7c1d',
- printCssPath: '../css/print.css',
- printPdfIp: '192.168.1.60:8001'
- },
- //'/username/pc002/time/1567499908/sig/7d9ca3d40b7422b759ce9a7e08b2de20/sessionid/session_93482f6cf1c865b7a2e2793c66f2c595'
- // localxx:{
- // domain: '//zsyas2.testing.xueping.com/index.php',
- // loginStatus:'/username/zhangxiuxiu/time/1605001934/sig/1d0654fe982f26092454f23c91ae8f29/sessionid/session_d81a5a77a03d478d6999f3e9b1e97335',
- // printCssPath: '../css/print.css',
- // printPdfIp: '192.168.1.60:8001'
- // },
- localxx:{
- domain: '//xbas2.testing.xiaoben.com/index.php',
- loginStatus:'/username/pc002/time/1606807051/sig/59bae4d33e9264622de48c77e415cf42/sessionid/session_2c065d0d39206e4a9f1127c4650360a3',
- printCssPath: '../css/print.css',
- printPdfIp: '192.168.1.60:8001'
- },
- localxq:{
- domain: '//xbas2.testing.xiaoben.com',
- //登录token
- loginStatus:'/username/3865000/time/1598941471/sig/2aa8da452c1126797cf03269b174d290/sessionid/session_a6709d3626be2ab6e416d1ede917e457',
- //'/username/danie/time/1572240626/sig/3a92b8e359d7a2fd8f9435232cf9b000/sessionid/session_2511d73f107b708049c4550af8ae7c1d',
- printCssPath: '/css/online/print.css',
- printPdfIp: 'localhost:8001'
-
- },
- localP:{
- loginStatus:'/username/15537836927/time/1590490894/sig/bcc1ef7cdf32c39bda03c890431ce7ef/sessionid/session_4559e2d0466ea804554be8f76d12b82b',
- printCssPath: '../css/print.css',
- printPdfIp: 'localhost:8001'
- },
- //zsyas2.testing.xueping.com
- localxg:{
- domain: '//xbas2.testing.xiaoben.com',
- //登录token
- loginStatus:'/username/danie/time/1572240626/sig/3a92b8e359d7a2fd8f9435232cf9b000/sessionid/session_2511d73f107b708049c4550af8ae7c1d',
- printCssPath: '../css/print.css',
- printPdfIp: 'localhost:8001'
- },
- testing: {
- //正式环境默认根目录开始找
- domain: '',
- loginStatus:
- '',
- printCssPath: '/css/online/print.css',
- printPdfIp: '192.168.1.60:8001'
- // printPdfIp: 'zsyh2p.zhixinhuixue.com'
- },
- online: {
- //正式环境默认根目录开始找
- domain: 'http://xbcard.schcur.com',
- loginStatus: '',
- printCssPath: '/css/online/print.css',
- printPdfIp: 'zsyh2p.zhixinhuixue.com'
- }
- }
|