summaryrefslogtreecommitdiffstats
path: root/portal/src/main/webapp/extsys/ems
diff options
context:
space:
mode:
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
commit542b94df5a08d4e2bd68816481986b4963df68c6 (patch)
tree73aa730fbda488ad7eca0b707dbc03077264f104 /portal/src/main/webapp/extsys/ems
parentce13cec7061af3b55cb6a79b9318b51027af6ebe (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.js4
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;