manage-client 3.2.75 → 3.2.76-jb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +5 -5
- package/.classpath +6 -6
- package/.editorconfig +9 -9
- package/.project +18 -18
- package/README.md +38 -38
- package/build/dev-server.js +8 -8
- package/config/dev.env.js +6 -6
- package/config/prod.env.js +3 -3
- package/config/test.env.js +6 -6
- package/package.json +14 -8
- package/release.bat +5 -5
- package/src/App.vue +71 -28
- package/src/components/MeterManage/ChangeMeterQuery.vue +82 -82
- package/src/components/MeterManage/HandQuery.vue +72 -72
- package/src/components/MeterManage/ReversalQuery.vue +77 -77
- package/src/components/SellReport/GaspriceHas.vue +141 -141
- package/src/components/SellReport/ManageBusSummary.vue +224 -224
- package/src/components/WebReport/AbnormalInfoEcharts.vue +120 -120
- package/src/components/WebReport/Communication.vue +131 -131
- package/src/components/WebReport/CompanyUser.vue +79 -79
- package/src/components/WebReport/GaspriceHas.vue +141 -141
- package/src/components/WebReport/ReportWorklist.vue +220 -220
- package/src/components/WebReport/SellType.vue +89 -89
- package/src/components/WebReport/Telemanlist.vue +221 -221
- package/src/components/WebReport/UserGasEcharts.vue +107 -107
- package/src/components/WebReport/ValueEcharts.vue +99 -99
- package/src/components/sale/businessquery/overDueQuery.vue +12 -0
- package/src/components/sale/config/DefaultPrint.js +6 -6
- package/src/components/sale/filesquery/detail/oper/ChangeMessage.vue +46 -46
- package/src/components/sale/filesquery/detail/oper/HandOper.vue +46 -46
- package/src/components/sale/filesquery/detail/oper/HandleMessage.vue +46 -46
- package/src/components/webmeter/gasAnalysis/GasAnalysisEcharts.vue +144 -144
- package/src/components/webmeter/gasAnalysis/GasAnalysisSummary.vue +162 -162
- package/src/components/webmeter/gasStatistics/GasStatistics.vue +462 -467
- package/src/components/webmeter/newwebmeter/NewException/NewExceptionEform.vue +149 -149
- package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
- package/src/main.js +66 -66
- package/src/plugins/LodopFuncs.js +124 -124
- package/src/stores/GetParames.js +15 -15
- package/src/stores/Util.js +132 -132
- package/test/unit/.eslintrc +5 -5
- package/test/unit/TestUtil.js +35 -35
- package/test/unit/context.html +20 -20
- package/test/unit/index.js +13 -13
- package/test/unit/init.js +11 -11
- package/test/unit/karma.conf.js +45 -45
- package/test/unit/specs/components/CallReport/Repair.spec.js +25 -25
- package/test/unit/specs/components/ManageBusiness/EquipmentQuery.spec.js +21 -21
- package/test/unit/specs/components/ManageBusiness/TableWithQuery.spec.js +21 -21
- package/test/unit/specs/components/ManageBusiness/UserQuery.spec.js +21 -21
package/src/main.js
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import App from './App'
|
|
3
|
-
import { all } from 'vue-client'
|
|
4
|
-
|
|
5
|
-
// import { sale } from 'sale-client'
|
|
6
|
-
import { system } from 'system-clients'
|
|
7
|
-
import { ldap } from 'ldap-clients'
|
|
8
|
-
import saleManage from './saleManage'
|
|
9
|
-
import webmeterManage from './webmeterManage'
|
|
10
|
-
import reportManage from './reportManage'
|
|
11
|
-
import newmanage from './newmanage'
|
|
12
|
-
import ManageHome from './ManageHome'
|
|
13
|
-
import echarts from 'echarts'
|
|
14
|
-
import AMap from 'vue-amap'
|
|
15
|
-
|
|
16
|
-
Vue.config.silent = true
|
|
17
|
-
// Vue.mmType = 'AES'
|
|
18
|
-
|
|
19
|
-
Vue.use(AMap);
|
|
20
|
-
|
|
21
|
-
// 初始化vue-amap
|
|
22
|
-
AMap.initAMapApiLoader({
|
|
23
|
-
// 高德key
|
|
24
|
-
key: '3cec9ae8e2349207f7ac29279e3f4abe',
|
|
25
|
-
// 插件集合 (插件按需引入)
|
|
26
|
-
plugin: [
|
|
27
|
-
"AMap.Autocomplete", //输入提示插件
|
|
28
|
-
"AMap.PlaceSearch", //POI搜索插件
|
|
29
|
-
"AMap.Scale", //右下角缩略图插件 比例尺
|
|
30
|
-
"AMap.OverView", //地图鹰眼插件
|
|
31
|
-
"AMap.ToolBar", //地图工具条0
|
|
32
|
-
"AMap.MapType", //类别切换控件,实现默认图层与卫星图、实施交通图层之间切换的控制
|
|
33
|
-
"AMap.PolyEditor", //编辑 折线多,边形
|
|
34
|
-
"AMap.CircleEditor", //圆形编辑器插件
|
|
35
|
-
"AMap.Geolocation" //定位控件,用来获取和展示用户主机所在的经纬度位置
|
|
36
|
-
],
|
|
37
|
-
uiVersion: "1.0"
|
|
38
|
-
});
|
|
39
|
-
/** **************************通用组件******************************/
|
|
40
|
-
|
|
41
|
-
Vue.prototype.$echarts = echarts
|
|
42
|
-
all()
|
|
43
|
-
// sale()
|
|
44
|
-
ldap()
|
|
45
|
-
system(false)
|
|
46
|
-
saleManage(
|
|
47
|
-
|
|
48
|
-
webmeterManage()
|
|
49
|
-
ManageHome()
|
|
50
|
-
newmanage()
|
|
51
|
-
reportManage()
|
|
52
|
-
require('system-clients/src/styles/less/bootstrap.less')
|
|
53
|
-
require('./components/qinhua/Style/qinhuaStyle.less')
|
|
54
|
-
// require('./bootstrap/less/manageStyle/manageChile.less')
|
|
55
|
-
// require('./bootstrap/less/manageStyle/safeStyle.less')
|
|
56
|
-
|
|
57
|
-
//大屏展示要放开的样式
|
|
58
|
-
// require('system-clients/src/styles/less/manageStyle/manageChile.less')
|
|
59
|
-
// require('system-clients/src/styles/less/manageStyle/safeStyle.less')
|
|
60
|
-
// require('system-clients/src/styles/less/manageStyle/manageStyle.less')
|
|
61
|
-
|
|
62
|
-
new Vue({
|
|
63
|
-
el: 'body',
|
|
64
|
-
components: { App }
|
|
65
|
-
})
|
|
66
|
-
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import App from './App'
|
|
3
|
+
import { all } from 'vue-client'
|
|
4
|
+
|
|
5
|
+
// import { sale } from 'sale-client'
|
|
6
|
+
import { system } from 'system-clients'
|
|
7
|
+
import { ldap } from 'ldap-clients'
|
|
8
|
+
import saleManage from './saleManage'
|
|
9
|
+
import webmeterManage from './webmeterManage'
|
|
10
|
+
import reportManage from './reportManage'
|
|
11
|
+
import newmanage from './newmanage'
|
|
12
|
+
import ManageHome from './ManageHome'
|
|
13
|
+
import echarts from 'echarts'
|
|
14
|
+
import AMap from 'vue-amap'
|
|
15
|
+
|
|
16
|
+
Vue.config.silent = true
|
|
17
|
+
// Vue.mmType = 'AES'
|
|
18
|
+
|
|
19
|
+
Vue.use(AMap);
|
|
20
|
+
|
|
21
|
+
// 初始化vue-amap
|
|
22
|
+
AMap.initAMapApiLoader({
|
|
23
|
+
// 高德key
|
|
24
|
+
key: '3cec9ae8e2349207f7ac29279e3f4abe',
|
|
25
|
+
// 插件集合 (插件按需引入)
|
|
26
|
+
plugin: [
|
|
27
|
+
"AMap.Autocomplete", //输入提示插件
|
|
28
|
+
"AMap.PlaceSearch", //POI搜索插件
|
|
29
|
+
"AMap.Scale", //右下角缩略图插件 比例尺
|
|
30
|
+
"AMap.OverView", //地图鹰眼插件
|
|
31
|
+
"AMap.ToolBar", //地图工具条0
|
|
32
|
+
"AMap.MapType", //类别切换控件,实现默认图层与卫星图、实施交通图层之间切换的控制
|
|
33
|
+
"AMap.PolyEditor", //编辑 折线多,边形
|
|
34
|
+
"AMap.CircleEditor", //圆形编辑器插件
|
|
35
|
+
"AMap.Geolocation" //定位控件,用来获取和展示用户主机所在的经纬度位置
|
|
36
|
+
],
|
|
37
|
+
uiVersion: "1.0"
|
|
38
|
+
});
|
|
39
|
+
/** **************************通用组件******************************/
|
|
40
|
+
|
|
41
|
+
Vue.prototype.$echarts = echarts
|
|
42
|
+
all()
|
|
43
|
+
// sale()
|
|
44
|
+
ldap()
|
|
45
|
+
system(false)
|
|
46
|
+
saleManage()
|
|
47
|
+
|
|
48
|
+
webmeterManage()
|
|
49
|
+
ManageHome()
|
|
50
|
+
newmanage()
|
|
51
|
+
reportManage()
|
|
52
|
+
require('system-clients/src/styles/less/bootstrap.less')
|
|
53
|
+
require('./components/qinhua/Style/qinhuaStyle.less')
|
|
54
|
+
// require('./bootstrap/less/manageStyle/manageChile.less')
|
|
55
|
+
// require('./bootstrap/less/manageStyle/safeStyle.less')
|
|
56
|
+
|
|
57
|
+
//大屏展示要放开的样式
|
|
58
|
+
// require('system-clients/src/styles/less/manageStyle/manageChile.less')
|
|
59
|
+
// require('system-clients/src/styles/less/manageStyle/safeStyle.less')
|
|
60
|
+
// require('system-clients/src/styles/less/manageStyle/manageStyle.less')
|
|
61
|
+
|
|
62
|
+
new Vue({
|
|
63
|
+
el: 'body',
|
|
64
|
+
components: { App }
|
|
65
|
+
})
|
|
66
|
+
|
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
var CreatedOKLodop7766=null;
|
|
2
|
-
|
|
3
|
-
//====判断是否需要安装CLodop云打印服务器:====
|
|
4
|
-
function needCLodop(){
|
|
5
|
-
// return false;
|
|
6
|
-
try{
|
|
7
|
-
var ua=navigator.userAgent;
|
|
8
|
-
if (ua.match(/Windows\sPhone/i) !=null) return true;
|
|
9
|
-
if (ua.match(/iPhone|iPod/i) != null) return true;
|
|
10
|
-
if (ua.match(/Android/i) != null) return true;
|
|
11
|
-
if (ua.match(/Edge\D?\d+/i) != null) return true;
|
|
12
|
-
if (ua.match(/QQBrowser/i) != null) return false;
|
|
13
|
-
var verTrident=ua.match(/Trident\D?\d+/i);
|
|
14
|
-
var verIE=ua.match(/MSIE\D?\d+/i);
|
|
15
|
-
var verOPR=ua.match(/OPR\D?\d+/i);
|
|
16
|
-
var verFF=ua.match(/Firefox\D?\d+/i);
|
|
17
|
-
var x64=ua.match(/x64/i);
|
|
18
|
-
if ((verTrident==null)&&(verIE==null)&&(x64!==null))
|
|
19
|
-
return true; else
|
|
20
|
-
if ( verFF !== null) {
|
|
21
|
-
verFF = verFF[0].match(/\d+/);
|
|
22
|
-
if ( verFF[0] >= 42 ) return true;
|
|
23
|
-
} else
|
|
24
|
-
if ( verOPR !== null) {
|
|
25
|
-
verOPR = verOPR[0].match(/\d+/);
|
|
26
|
-
if ( verOPR[0] >= 32 ) return true;
|
|
27
|
-
} else
|
|
28
|
-
if ((verTrident==null)&&(verIE==null)) {
|
|
29
|
-
var verChrome=ua.match(/Chrome\D?\d+/i);
|
|
30
|
-
if ( verChrome !== null ) {
|
|
31
|
-
verChrome = verChrome[0].match(/\d+/);
|
|
32
|
-
if (verChrome[0]>=42) return true;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
return false;
|
|
36
|
-
} catch(err) {return true;};
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
//====页面引用CLodop云打印必须的JS文件:====
|
|
40
|
-
if (needCLodop()) {
|
|
41
|
-
var head = document.head || document.getElementsByTagName("head")[0] || document.documentElement;
|
|
42
|
-
var oscript = document.createElement("script");
|
|
43
|
-
//让本机浏览器打印(更优先):
|
|
44
|
-
oscript = document.createElement("script");
|
|
45
|
-
oscript.src ="http://localhost:8008/CLodopfuncs.js?priority=1";
|
|
46
|
-
head.insertBefore( oscript,head.firstChild );
|
|
47
|
-
//本机浏览器的后补端口8001:
|
|
48
|
-
// oscript = document.createElement("script");
|
|
49
|
-
// oscript.src ="http://localhost:8001/CLodopfuncs.js?priority=2";
|
|
50
|
-
// head.insertBefore( oscript,head.firstChild );
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
//====获取LODOP对象的主过程:====
|
|
54
|
-
function getLodop(oOBJECT,oEMBED){
|
|
55
|
-
var strHtmInstall="<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='http://113.10.155.131/install_lodop32.zip' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>";
|
|
56
|
-
var strHtmUpdate="<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='http://113.10.155.131/install_lodop32.zip' target='_self'>执行升级</a>,升级后请重新进入。</font>";
|
|
57
|
-
var strHtm64_Install="<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='http://113.10.155.131/install_lodop64.zip' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>";
|
|
58
|
-
var strHtm64_Update="<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='http://113.10.155.131/install_lodop64.zip' target='_self'>执行升级</a>,升级后请重新进入。</font>";
|
|
59
|
-
var strHtmFireFox="<br><br><font color='#FF00FF'>(注意:如曾安装过Lodop旧版附件npActiveXPLugin,请在【工具】->【附加组件】->【扩展】中先卸它)</font>";
|
|
60
|
-
var strHtmChrome="<br><br><font color='#FF00FF'>(如果此前正常,仅因浏览器升级或重安装而出问题,需重新执行以上安装)</font>";
|
|
61
|
-
var strCLodopInstall="<br><font color='#FF00FF'>CLodop云打印服务(localhost本地)未安装启动!点击这里<a href='CLodopPrint_Setup_for_Win32NT.zip' target='_self'>执行安装</a>,安装后请刷新页面。</font>";
|
|
62
|
-
var strCLodopUpdate="<br><font color='#FF00FF'>CLodop云打印服务需升级!点击这里<a href='CLodopPrint_Setup_for_Win32NT.zip' target='_self'>执行升级</a>,升级后请刷新页面。</font>";
|
|
63
|
-
var LODOP;
|
|
64
|
-
try{
|
|
65
|
-
var isIE = (navigator.userAgent.indexOf('MSIE')>=0) || (navigator.userAgent.indexOf('Trident')>=0);
|
|
66
|
-
if (needCLodop()) {
|
|
67
|
-
try{ LODOP=getCLodop();} catch(err) {};
|
|
68
|
-
if (!LODOP && document.readyState!=="complete") {alert("C-Lodop没准备好,请稍后再试!"); return;};
|
|
69
|
-
if (!LODOP) {
|
|
70
|
-
if (isIE) document.write(strCLodopInstall); else
|
|
71
|
-
document.documentElement.innerHTML=strCLodopInstall+document.documentElement.innerHTML;
|
|
72
|
-
return;
|
|
73
|
-
} else {
|
|
74
|
-
|
|
75
|
-
if (CLODOP.CVERSION<"2.0.6.2") {
|
|
76
|
-
if (isIE) document.write(strCLodopUpdate); else
|
|
77
|
-
document.documentElement.innerHTML=strCLodopUpdate+document.documentElement.innerHTML;
|
|
78
|
-
};
|
|
79
|
-
if (oEMBED && oEMBED.parentNode) oEMBED.parentNode.removeChild(oEMBED);
|
|
80
|
-
if (oOBJECT && oOBJECT.parentNode) oOBJECT.parentNode.removeChild(oOBJECT);
|
|
81
|
-
};
|
|
82
|
-
} else {
|
|
83
|
-
var is64IE = isIE && (navigator.userAgent.indexOf('x64')>=0);
|
|
84
|
-
//=====如果页面有Lodop就直接使用,没有则新建:==========
|
|
85
|
-
if (oOBJECT!=undefined || oEMBED!=undefined) {
|
|
86
|
-
if (isIE) LODOP=oOBJECT; else LODOP=oEMBED;
|
|
87
|
-
} else if (CreatedOKLodop7766==null){
|
|
88
|
-
LODOP=document.createElement("object");
|
|
89
|
-
LODOP.setAttribute("width",0);
|
|
90
|
-
LODOP.setAttribute("height",0);
|
|
91
|
-
LODOP.setAttribute("style","position:absolute;left:0px;top:-100px;width:0px;height:0px;");
|
|
92
|
-
if (isIE) LODOP.setAttribute("classid","clsid:2105C259-1E0C-4534-8141-A753534CB4CA");
|
|
93
|
-
else LODOP.setAttribute("type","application/x-print-lodop");
|
|
94
|
-
document.documentElement.appendChild(LODOP);
|
|
95
|
-
CreatedOKLodop7766=LODOP;
|
|
96
|
-
} else LODOP=CreatedOKLodop7766;
|
|
97
|
-
//=====Lodop插件未安装时提示下载地址:==========
|
|
98
|
-
if ((LODOP==null)||(typeof(LODOP.VERSION)=="undefined")) {
|
|
99
|
-
if (navigator.userAgent.indexOf('Chrome')>=0)
|
|
100
|
-
document.documentElement.innerHTML=strHtmChrome+document.documentElement.innerHTML;
|
|
101
|
-
if (navigator.userAgent.indexOf('Firefox')>=0)
|
|
102
|
-
document.documentElement.innerHTML=strHtmFireFox+document.documentElement.innerHTML;
|
|
103
|
-
if (is64IE) document.write(strHtm64_Install); else
|
|
104
|
-
if (isIE) document.write(strHtmInstall); else
|
|
105
|
-
document.documentElement.innerHTML=strHtmInstall+document.documentElement.innerHTML;
|
|
106
|
-
return LODOP;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
if (LODOP.VERSION<"6.2.0.3") {
|
|
110
|
-
if (needCLodop())
|
|
111
|
-
document.documentElement.innerHTML=strCLodopUpdate+document.documentElement.innerHTML; else
|
|
112
|
-
if (is64IE) document.write(strHtm64_Update); else
|
|
113
|
-
if (isIE) document.write(strHtmUpdate); else
|
|
114
|
-
document.documentElement.innerHTML=strHtmUpdate+document.documentElement.innerHTML;
|
|
115
|
-
return LODOP;
|
|
116
|
-
};
|
|
117
|
-
//===如下空白位置适合调用统一功能(如注册语句、语言选择等):===
|
|
118
|
-
LODOP.SET_LICENSES("西安奥枫软件有限公司","552C41D5AB0D146FCF77D05CD8AA15A1","","");
|
|
119
|
-
//===========================================================
|
|
120
|
-
return LODOP;
|
|
121
|
-
} catch(err) {alert("getLodop出错:"+err);};
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
export default getLodop
|
|
1
|
+
var CreatedOKLodop7766=null;
|
|
2
|
+
|
|
3
|
+
//====判断是否需要安装CLodop云打印服务器:====
|
|
4
|
+
function needCLodop(){
|
|
5
|
+
// return false;
|
|
6
|
+
try{
|
|
7
|
+
var ua=navigator.userAgent;
|
|
8
|
+
if (ua.match(/Windows\sPhone/i) !=null) return true;
|
|
9
|
+
if (ua.match(/iPhone|iPod/i) != null) return true;
|
|
10
|
+
if (ua.match(/Android/i) != null) return true;
|
|
11
|
+
if (ua.match(/Edge\D?\d+/i) != null) return true;
|
|
12
|
+
if (ua.match(/QQBrowser/i) != null) return false;
|
|
13
|
+
var verTrident=ua.match(/Trident\D?\d+/i);
|
|
14
|
+
var verIE=ua.match(/MSIE\D?\d+/i);
|
|
15
|
+
var verOPR=ua.match(/OPR\D?\d+/i);
|
|
16
|
+
var verFF=ua.match(/Firefox\D?\d+/i);
|
|
17
|
+
var x64=ua.match(/x64/i);
|
|
18
|
+
if ((verTrident==null)&&(verIE==null)&&(x64!==null))
|
|
19
|
+
return true; else
|
|
20
|
+
if ( verFF !== null) {
|
|
21
|
+
verFF = verFF[0].match(/\d+/);
|
|
22
|
+
if ( verFF[0] >= 42 ) return true;
|
|
23
|
+
} else
|
|
24
|
+
if ( verOPR !== null) {
|
|
25
|
+
verOPR = verOPR[0].match(/\d+/);
|
|
26
|
+
if ( verOPR[0] >= 32 ) return true;
|
|
27
|
+
} else
|
|
28
|
+
if ((verTrident==null)&&(verIE==null)) {
|
|
29
|
+
var verChrome=ua.match(/Chrome\D?\d+/i);
|
|
30
|
+
if ( verChrome !== null ) {
|
|
31
|
+
verChrome = verChrome[0].match(/\d+/);
|
|
32
|
+
if (verChrome[0]>=42) return true;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
return false;
|
|
36
|
+
} catch(err) {return true;};
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
//====页面引用CLodop云打印必须的JS文件:====
|
|
40
|
+
if (needCLodop()) {
|
|
41
|
+
var head = document.head || document.getElementsByTagName("head")[0] || document.documentElement;
|
|
42
|
+
var oscript = document.createElement("script");
|
|
43
|
+
//让本机浏览器打印(更优先):
|
|
44
|
+
oscript = document.createElement("script");
|
|
45
|
+
oscript.src ="http://localhost:8008/CLodopfuncs.js?priority=1";
|
|
46
|
+
head.insertBefore( oscript,head.firstChild );
|
|
47
|
+
//本机浏览器的后补端口8001:
|
|
48
|
+
// oscript = document.createElement("script");
|
|
49
|
+
// oscript.src ="http://localhost:8001/CLodopfuncs.js?priority=2";
|
|
50
|
+
// head.insertBefore( oscript,head.firstChild );
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
//====获取LODOP对象的主过程:====
|
|
54
|
+
function getLodop(oOBJECT,oEMBED){
|
|
55
|
+
var strHtmInstall="<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='http://113.10.155.131/install_lodop32.zip' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>";
|
|
56
|
+
var strHtmUpdate="<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='http://113.10.155.131/install_lodop32.zip' target='_self'>执行升级</a>,升级后请重新进入。</font>";
|
|
57
|
+
var strHtm64_Install="<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='http://113.10.155.131/install_lodop64.zip' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>";
|
|
58
|
+
var strHtm64_Update="<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='http://113.10.155.131/install_lodop64.zip' target='_self'>执行升级</a>,升级后请重新进入。</font>";
|
|
59
|
+
var strHtmFireFox="<br><br><font color='#FF00FF'>(注意:如曾安装过Lodop旧版附件npActiveXPLugin,请在【工具】->【附加组件】->【扩展】中先卸它)</font>";
|
|
60
|
+
var strHtmChrome="<br><br><font color='#FF00FF'>(如果此前正常,仅因浏览器升级或重安装而出问题,需重新执行以上安装)</font>";
|
|
61
|
+
var strCLodopInstall="<br><font color='#FF00FF'>CLodop云打印服务(localhost本地)未安装启动!点击这里<a href='CLodopPrint_Setup_for_Win32NT.zip' target='_self'>执行安装</a>,安装后请刷新页面。</font>";
|
|
62
|
+
var strCLodopUpdate="<br><font color='#FF00FF'>CLodop云打印服务需升级!点击这里<a href='CLodopPrint_Setup_for_Win32NT.zip' target='_self'>执行升级</a>,升级后请刷新页面。</font>";
|
|
63
|
+
var LODOP;
|
|
64
|
+
try{
|
|
65
|
+
var isIE = (navigator.userAgent.indexOf('MSIE')>=0) || (navigator.userAgent.indexOf('Trident')>=0);
|
|
66
|
+
if (needCLodop()) {
|
|
67
|
+
try{ LODOP=getCLodop();} catch(err) {};
|
|
68
|
+
if (!LODOP && document.readyState!=="complete") {alert("C-Lodop没准备好,请稍后再试!"); return;};
|
|
69
|
+
if (!LODOP) {
|
|
70
|
+
if (isIE) document.write(strCLodopInstall); else
|
|
71
|
+
document.documentElement.innerHTML=strCLodopInstall+document.documentElement.innerHTML;
|
|
72
|
+
return;
|
|
73
|
+
} else {
|
|
74
|
+
|
|
75
|
+
if (CLODOP.CVERSION<"2.0.6.2") {
|
|
76
|
+
if (isIE) document.write(strCLodopUpdate); else
|
|
77
|
+
document.documentElement.innerHTML=strCLodopUpdate+document.documentElement.innerHTML;
|
|
78
|
+
};
|
|
79
|
+
if (oEMBED && oEMBED.parentNode) oEMBED.parentNode.removeChild(oEMBED);
|
|
80
|
+
if (oOBJECT && oOBJECT.parentNode) oOBJECT.parentNode.removeChild(oOBJECT);
|
|
81
|
+
};
|
|
82
|
+
} else {
|
|
83
|
+
var is64IE = isIE && (navigator.userAgent.indexOf('x64')>=0);
|
|
84
|
+
//=====如果页面有Lodop就直接使用,没有则新建:==========
|
|
85
|
+
if (oOBJECT!=undefined || oEMBED!=undefined) {
|
|
86
|
+
if (isIE) LODOP=oOBJECT; else LODOP=oEMBED;
|
|
87
|
+
} else if (CreatedOKLodop7766==null){
|
|
88
|
+
LODOP=document.createElement("object");
|
|
89
|
+
LODOP.setAttribute("width",0);
|
|
90
|
+
LODOP.setAttribute("height",0);
|
|
91
|
+
LODOP.setAttribute("style","position:absolute;left:0px;top:-100px;width:0px;height:0px;");
|
|
92
|
+
if (isIE) LODOP.setAttribute("classid","clsid:2105C259-1E0C-4534-8141-A753534CB4CA");
|
|
93
|
+
else LODOP.setAttribute("type","application/x-print-lodop");
|
|
94
|
+
document.documentElement.appendChild(LODOP);
|
|
95
|
+
CreatedOKLodop7766=LODOP;
|
|
96
|
+
} else LODOP=CreatedOKLodop7766;
|
|
97
|
+
//=====Lodop插件未安装时提示下载地址:==========
|
|
98
|
+
if ((LODOP==null)||(typeof(LODOP.VERSION)=="undefined")) {
|
|
99
|
+
if (navigator.userAgent.indexOf('Chrome')>=0)
|
|
100
|
+
document.documentElement.innerHTML=strHtmChrome+document.documentElement.innerHTML;
|
|
101
|
+
if (navigator.userAgent.indexOf('Firefox')>=0)
|
|
102
|
+
document.documentElement.innerHTML=strHtmFireFox+document.documentElement.innerHTML;
|
|
103
|
+
if (is64IE) document.write(strHtm64_Install); else
|
|
104
|
+
if (isIE) document.write(strHtmInstall); else
|
|
105
|
+
document.documentElement.innerHTML=strHtmInstall+document.documentElement.innerHTML;
|
|
106
|
+
return LODOP;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
if (LODOP.VERSION<"6.2.0.3") {
|
|
110
|
+
if (needCLodop())
|
|
111
|
+
document.documentElement.innerHTML=strCLodopUpdate+document.documentElement.innerHTML; else
|
|
112
|
+
if (is64IE) document.write(strHtm64_Update); else
|
|
113
|
+
if (isIE) document.write(strHtmUpdate); else
|
|
114
|
+
document.documentElement.innerHTML=strHtmUpdate+document.documentElement.innerHTML;
|
|
115
|
+
return LODOP;
|
|
116
|
+
};
|
|
117
|
+
//===如下空白位置适合调用统一功能(如注册语句、语言选择等):===
|
|
118
|
+
LODOP.SET_LICENSES("西安奥枫软件有限公司","552C41D5AB0D146FCF77D05CD8AA15A1","","");
|
|
119
|
+
//===========================================================
|
|
120
|
+
return LODOP;
|
|
121
|
+
} catch(err) {alert("getLodop出错:"+err);};
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export default getLodop
|
package/src/stores/GetParames.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export function getParames (param) {
|
|
2
|
-
console.log('vghjkmlgvbhjmkl')
|
|
3
|
-
var query = window.location.search
|
|
4
|
-
var iLen = param.length
|
|
5
|
-
var iStart = query.indexOf(param)
|
|
6
|
-
if (iStart === -1) {
|
|
7
|
-
return ''
|
|
8
|
-
}
|
|
9
|
-
iStart += iLen + 1
|
|
10
|
-
var iEnd = query.indexOf('&', iStart)
|
|
11
|
-
if (iEnd === -1) {
|
|
12
|
-
return decodeURIComponent(query.substring(iStart))
|
|
13
|
-
}
|
|
14
|
-
return decodeURIComponent(query.substring(iStart, iEnd))
|
|
15
|
-
}
|
|
1
|
+
export function getParames (param) {
|
|
2
|
+
console.log('vghjkmlgvbhjmkl')
|
|
3
|
+
var query = window.location.search
|
|
4
|
+
var iLen = param.length
|
|
5
|
+
var iStart = query.indexOf(param)
|
|
6
|
+
if (iStart === -1) {
|
|
7
|
+
return ''
|
|
8
|
+
}
|
|
9
|
+
iStart += iLen + 1
|
|
10
|
+
var iEnd = query.indexOf('&', iStart)
|
|
11
|
+
if (iEnd === -1) {
|
|
12
|
+
return decodeURIComponent(query.substring(iStart))
|
|
13
|
+
}
|
|
14
|
+
return decodeURIComponent(query.substring(iStart, iEnd))
|
|
15
|
+
}
|