diff options
author | c00149107 <chenchuanyu@huawei.com> | 2017-04-20 15:36:24 +0800 |
---|---|---|
committer | c00149107 <chenchuanyu@huawei.com> | 2017-04-20 15:36:24 +0800 |
commit | 2d63ba7e668c2c976c1c2d60f2fa28f2f4881267 (patch) | |
tree | 631e9209eb581ab86b43ec18905b5acb1212df69 /lifecyclemgr/src | |
parent | c42bd171e111f4cbb122b21a6075c4d4e638c170 (diff) |
Replace invalid id by valid id
Replace invalid id by valid id
Change-Id: Ia9e656750055e27d95d4ec73a672b07250854154
Issue-ID:CLIENT-192
Signed-off-by: c00149107 <chenchuanyu@huawei.com>
Diffstat (limited to 'lifecyclemgr/src')
-rw-r--r-- | lifecyclemgr/src/main/webapp/lifecyclemgr/js/DataService.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lifecyclemgr/src/main/webapp/lifecyclemgr/js/DataService.js b/lifecyclemgr/src/main/webapp/lifecyclemgr/js/DataService.js index f2ff5483..85c7058b 100644 --- a/lifecyclemgr/src/main/webapp/lifecyclemgr/js/DataService.js +++ b/lifecyclemgr/src/main/webapp/lifecyclemgr/js/DataService.js @@ -364,7 +364,9 @@ function collectParamValue(identify, param) { * @returns
*/
function getParamId(identify, param) {
- return '' ===identify ? param.name : identify + '_' + param.name;
+ var tmpname = param.name.replace(/-/g, '_');
+ var tmpname1 = tmpname.replace(/./g, '_');
+ return '' ===identify ? tmpname1 : identify + '_' + tmpname1;
}
/**
|