diff options
author | 覃亮10184303 <qin.liang13@zte.com.cn> | 2017-09-21 17:28:10 +0800 |
---|---|---|
committer | 覃亮10184303 <qin.liang13@zte.com.cn> | 2017-09-21 17:30:56 +0800 |
commit | 542b94df5a08d4e2bd68816481986b4963df68c6 (patch) | |
tree | 73aa730fbda488ad7eca0b707dbc03077264f104 /portal/src/main/webapp/extsys/ems | |
parent | ce13cec7061af3b55cb6a79b9318b51027af6ebe (diff) |
Integrate esr-gui with server
Issue-ID: AAI-349
Change-Id: Ie3b4e6fc6a8eadbcec497b333c03c2db51cfc910
Signed-off-by: 覃亮10184303 <qin.liang13@zte.com.cn>
Diffstat (limited to 'portal/src/main/webapp/extsys/ems')
-rw-r--r-- | portal/src/main/webapp/extsys/ems/js/emsController.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/portal/src/main/webapp/extsys/ems/js/emsController.js b/portal/src/main/webapp/extsys/ems/js/emsController.js index 1e8ee2c..107131d 100644 --- a/portal/src/main/webapp/extsys/ems/js/emsController.js +++ b/portal/src/main/webapp/extsys/ems/js/emsController.js @@ -209,7 +209,7 @@ var vm = avalon.define({ commonUtil.showMessage($.i18n.prop("nfv-ems-iui-message-delete-fail"), "warning"); } }, - error: function () { + error: function (XMLHttpRequest, textStatus, errorThrown) { commonUtil.showMessage($.i18n.prop("nfv-ems-iui-message-delete-fail"), "warning"); } }); @@ -237,7 +237,6 @@ var vm = avalon.define({ }, postEMS: function () { var emsSave = vm.getEMSSave(); - emsSave.emsId = Math.floor(Math.random() * 100000) / 100000; var res = false; $.ajax({ type: "POST", @@ -249,6 +248,7 @@ var vm = avalon.define({ vm.server_rtn.info_block = false; vm.server_rtn.warning_block = false; if (jqXHR.status === 200) { + emsSave.emsId = data.id; vm.emsInfo.push(emsSave); vm.$emsList.push(emsSave); res = true; |