Commit bdbcddd0 authored by yzl's avatar yzl

修改添加界面bug

parent 7cf68e39
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
const Upload = antd.Upload; const Upload = antd.Upload;
const Divider = antd.Divider; const Divider = antd.Divider;
const Modal = antd.Modal; const Modal = antd.Modal;
const message = antd.message; const notification = antd.notification;
let num = 0; let num = 0;
const arr = []; const arr = [];
...@@ -139,7 +139,6 @@ ...@@ -139,7 +139,6 @@
url: ipAddress + '/CityInterface/Services/CityServer_CaseManage/REST/CaseManageREST.svc/GetTableGroupMeta', url: ipAddress + '/CityInterface/Services/CityServer_CaseManage/REST/CaseManageREST.svc/GetTableGroupMeta',
data: obj, data: obj,
success: function (ret) { success: function (ret) {
console.log(ret);
if (ret.say.statusCode === '0000') { if (ret.say.statusCode === '0000') {
const groups = ret.getMe[0].Groups; const groups = ret.getMe[0].Groups;
...@@ -209,8 +208,6 @@ ...@@ -209,8 +208,6 @@
}, []) }, [])
const saveData = async (ipAddress, values, groups) => { const saveData = async (ipAddress, values, groups) => {
console.log(ipAddress);
const data = form.getFieldsValue(); const data = form.getFieldsValue();
data['发生时间'] = data['发生时间'] ? time.format('YYYY-MM-DD HH:mm:ss') : moment().format('YYYY-MM-DD HH:mm:ss'); data['发生时间'] = data['发生时间'] ? time.format('YYYY-MM-DD HH:mm:ss') : moment().format('YYYY-MM-DD HH:mm:ss');
...@@ -284,11 +281,23 @@ ...@@ -284,11 +281,23 @@
contentType:'application/json;charset=utf-8', contentType:'application/json;charset=utf-8',
success: function (data) { success: function (data) {
if (data.say.statusCode === '0000') { if (data.say.statusCode === '0000') {
message.success('保存成功'); notification.success({
message: '问题反馈成功',
description:
'我们将会对您的问题进行处理,页面会将在3秒后跳转到首页',
duration: 3
});
setTimeout(() => {
window.location.href = './?site_code=' + code;
}, 3000)
window.location.href = './';
} else { } else {
message.error('保存失败'); notification.success({
message: '问题反馈失败',
description:
'请重新提交相关信息',
});
} }
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment