12.17iMobile管理页面添加(前端)
环境项目:monkeyking
http://127.0.0.1:8099/manager/cloud/orders
http://127.0.0.1:8099/manager/cloud/cloudlicenses/add
管理员账号:supermapoltest@163.com
密码:ispeco##一、项目
###1.主要的文件
java
cloudLicenseAddManage_zh_CN.html 管理云许可界面
cloudLicenseAddManage.html 管理云许可英文0界面
LimitedTimeLicenseModuleResource_zh_CN.js 前端扩展模块
TimeLicensePricingResource.java 后端接口
TimeLicenseModule 模板表对象##二、修改项目
###1.新增10i
js
CloudLicenseAddManageView.js 83
if (products[key].productSeries !== "8C" && products[key].productSeries !== "9D" && products[key].productSeries !== "10i") {
...2.排序10i->8C
java
TimeLicenseProductComparator.java
//首先根据产品系列排序
if(!o1.getProductSeries().equals(o2.getProductSeries())){
if(o1.getProductSeries().length()>o2.getProductSeries().length()){
return -1;
}
return o2.getProductSeries().compareTo(o1.getProductSeries());
}###3.添加管理列表
LimitedTimeLicenseProductResource_zh_CN.js
LimitedTimeLicenseProductResource_en_US.jsjs
//10 iMobile
"10008001" : {
"description" : "",
"productName" : "SuperMap iMobile Android 10i 运行版",
"detailedIntroLink":"https://www.supermap.com/cn/xhtml/10i-imobile.html",
"summary" : "暂时无法购买"
},
"10008002" : {
"description" : "",
"productName" : "SuperMap iMobile iOS 10i 运行版",
"detailedIntroLink":"https://www.supermap.com/cn/xhtml/10i-imobile.html",
"summary" : "暂时无法购买"
}js
//10 iMobile
"10008001" : {
"description" : "",
"productName" : "SuperMap iMobile Android 10i Runtime",
"detailedIntroLink":"https://www.supermap.com/cn/xhtml/10i-imobile.html",
"summary" : "暂时无法购买en"
},
"10008002" : {
"description" : "",
"productName" : "SuperMap iMobile iOS 10i Runtime",
"detailedIntroLink":"https://www.supermap.com/cn/xhtml/10i-imobile.html",
"summary" : "暂时无法购买en"
}###4.页面添加iMobile扩展模块
LimitedTimeLicenseModuleResource_zh_CN.js
LimitedTimeLicenseModuleResource_en_US.jsjs
//iMobile 运行版
"10308001" : {
"moduleCode" : "10802",
"moduleName" : "基础平台"
},
"10308002" : {
"moduleCode" : "10804",
"moduleName" : "传统导航组件"
},
"10308003" : {
"moduleCode" : "10806",
"moduleName" : "三维场景组件"
},
"10308004" : {
"moduleCode" : "10808",
"moduleName" : "二维标绘组件"
},
"10308005" : {
"moduleCode" : "10810",
"moduleName" : "行业导航组件"
},
"10308006" : {
"moduleCode" : "10812",
"moduleName" : "室内导航组件"
},
"10308007" : {
"moduleCode" : "10814",
"moduleName" : "三维标绘组件"
},
"10308008" : {
"moduleCode" : "10816",
"moduleName" : "三维分析组件"
},
"10308009" : {
"moduleCode" : "10818",
"moduleName" : "三维特效组件"
},
"10308010" : {
"moduleCode" : "10820",
"moduleName" : "视频地图组件"
},
"10308011" : {
"moduleCode" : "10822",
"moduleName" : "数据分析组件"
},
"10308012" : {
"moduleCode" : "10824",
"moduleName" : "二维态势推演组件"
},
"10308013" : {
"moduleCode" : "10902",
"moduleName" : "基础平台"
},
"10308014" : {
"moduleCode" : "10904",
"moduleName" : "传统导航组件"
},
"10308015" : {
"moduleCode" : "10906",
"moduleName" : "三维场景组件"
},
"10308016" : {
"moduleCode" : "10908",
"moduleName" : "二维标绘组件"
},
"10308017" : {
"moduleCode" : "10910",
"moduleName" : "行业导航组件"
},
"10308018" : {
"moduleCode" : "10912",
"moduleName" : "室内导航组件"
},
"10308019" : {
"moduleCode" : "10914",
"moduleName" : "三维标绘组件"
},
"10308020" : {
"moduleCode" : "10916",
"moduleName" : "三维分析组件"
},
"10308021" : {
"moduleCode" : "10918",
"moduleName" : "三维特效组件"
},
"10308022" : {
"moduleCode" : "10920",
"moduleName" : "视频地图组件"
},
"10308023" : {
"moduleCode" : "10922",
"moduleName" : "数据分析组件"
},
"10308024" : {
"moduleCode" : "10924",
"moduleName" : "二维态势推演组件"
}js
//iMobile 运行版
"10308001" : {
"moduleCode" : "10802",
"moduleName" : "Base Platform"
},
"10308002" : {
"moduleCode" : "10804",
"moduleName" : "Traditional Navigation"
},
"10308003" : {
"moduleCode" : "10806",
"moduleName" : "3DScene"
},
"10308004" : {
"moduleCode" : "10808",
"moduleName" : "2D Plotting"
},
"10308005" : {
"moduleCode" : "10810",
"moduleName" : "Industry Navigation"
},
"10308006" : {
"moduleCode" : "10812",
"moduleName" : "Indoor Navigation"
},
"10308007" : {
"moduleCode" : "10814",
"moduleName" : "3D Plotting"
},
"10308008" : {
"moduleCode" : "10816",
"moduleName" : "3DAnalyst"
},
"10308009" : {
"moduleCode" : "10818",
"moduleName" : "3DEffect"
},
"10308010" : {
"moduleCode" : "10820",
"moduleName" : "Video Map"
},
"10308011" : {
"moduleCode" : "10822",
"moduleName" : "Data Analyst"
},
"10308012" : {
"moduleCode" : "10824",
"moduleName" : "2D Dynamic Performance"
},
"10308013" : {
"moduleCode" : "10902",
"moduleName" : "Base Platform"
},
"10308014" : {
"moduleCode" : "10904",
"moduleName" : "Traditional Navigation"
},
"10308015" : {
"moduleCode" : "10906",
"moduleName" : "3DScene"
},
"10308016" : {
"moduleCode" : "10908",
"moduleName" : "2D Plotting"
},
"10308017" : {
"moduleCode" : "10910",
"moduleName" : "Industry Navigation"
},
"10308018" : {
"moduleCode" : "10912",
"moduleName" : "Indoor Navigation"
},
"10308019" : {
"moduleCode" : "10914",
"moduleName" : "3D Plotting"
},
"10308020" : {
"moduleCode" : "10916",
"moduleName" : "3DAnalyst"
},
"10308021" : {
"moduleCode" : "10918",
"moduleName" : "3DEffect"
},
"10308022" : {
"moduleCode" : "10920",
"moduleName" : "Video Map"
},
"10308023" : {
"moduleCode" : "10922",
"moduleName" : "Data Analyst"
},
"10308024" : {
"moduleCode" : "10924",
"moduleName" : "2D Dynamic Performance"
}###5.许可数量可填写
在组件时(已废弃)
js
CloudLicenseAddManageView.js 39
if ($(this).val() === "10008001" || $(this).val() === "10008002") {
$("#licNumInfo").removeAttr("readonly");
}else {
$("#licNumInfo").attr("readonly",true).val("1");
}js
CloudLicenseAddManageView.js 32
//如果category为mobile,数量可填写,反之不可填写并设置数量为1
if(category == 9){
$("#licNumInfo").removeAttr("readonly");
}else {
$("#licNumInfo").attr("readonly",true).val("1");
}
//如果mobile之间选择,则设置数量初始化为1
if ($(this).val() === "10008001" || $(this).val() === "10008002") {
$("#licNumInfo").val("1");
}购买页
js
licenseProduct.js 431
if (productId === "10008001" || productId === "10008002") {
//此处用户iMobile 选择许可数量时可以输入
$("#licNumInfo").removeAttr("readonly");
}else {
$("#licNumInfo").attr("readonly",true).val("1");
}