Commit 59262a79 authored by 皮倩雯's avatar 皮倩雯

fix: '修复集成登录无法提交bug'

parent 28a5aebf
Pipeline #61088 passed with stages
...@@ -233,128 +233,128 @@ const AddModal = props => { ...@@ -233,128 +233,128 @@ const AddModal = props => {
}; };
// 提交 // 提交
const onSubmit = () => { const onSubmit = () => {
console.log(form.getFieldsValue().siteDescription); // console.log(form.getFieldsValue().siteDescription);
console.log(form.getFieldsValue().siteDescription.textContent); // console.log(form.getFieldsValue().siteDescription.textContent);
// form.validateFields().then(validate => { form.validateFields().then(validate => {
// if (validate) { if (validate) {
// setLoading(true); setLoading(true);
// let obj = form.getFieldsValue(); let obj = form.getFieldsValue();
// console.log(obj.siteDescription); console.log(obj.siteDescription);
// if (obj.internetAddress || obj.intranetAddress) { if (obj.internetAddress || obj.intranetAddress) {
// if (obj.accountParamValue == '熊猫ticket') { if (obj.accountParamValue == '熊猫ticket') {
// obj.accountParamValue = 1; obj.accountParamValue = 1;
// } else if (obj.accountParamValue == '熊猫token') { } else if (obj.accountParamValue == '熊猫token') {
// obj.accountParamValue = 2; obj.accountParamValue = 2;
// } }
// let aa = { key: obj.accountParamKey, value: obj.accountParamValue }; let aa = { key: obj.accountParamKey, value: obj.accountParamValue };
// let bb = []; let bb = [];
// bb.push(aa); bb.push(aa);
// if (obj.iconUrl.file) { if (obj.iconUrl.file) {
// obj.iconUrl = obj.iconUrl.file.response.data; obj.iconUrl = obj.iconUrl.file.response.data;
// } }
// let data = []; let data = [];
// if (obj.coordinate) { if (obj.coordinate) {
// data = obj.coordinate.split(','); data = obj.coordinate.split(',');
// } }
// let dataList = []; let dataList = [];
// if (fileList.length > 0) { if (fileList.length > 0) {
// fileList.map(i => { fileList.map(i => {
// if (i.submitUrl) { if (i.submitUrl) {
// dataList.push(i.submitUrl); dataList.push(i.submitUrl);
// } else { } else {
// dataList.push(i.response.data); dataList.push(i.response.data);
// } }
// }); });
// } }
// if (type === 'add') { if (type === 'add') {
// AddIntegratedLogin({ AddIntegratedLogin({
// systemName: obj.systemName, systemName: obj.systemName,
// subtitle: obj.subtitle, subtitle: obj.subtitle,
// internetAddress: obj.internetAddress, internetAddress: obj.internetAddress,
// intranetAddress: obj.intranetAddress, intranetAddress: obj.intranetAddress,
// accountParam: bb, accountParam: bb,
// iconUrl: obj.iconUrl, iconUrl: obj.iconUrl,
// accountType: 'Panda', accountType: 'Panda',
// isHide: false, isHide: false,
// target: obj.target, target: obj.target,
// isMaster: obj.isMaster, isMaster: obj.isMaster,
// images: dataList, images: dataList,
// mapSetting: obj.mapSetting, mapSetting: obj.mapSetting,
// coordinate: data, coordinate: data,
// siteDescription: obj.siteDescription, siteDescription: obj.siteDescription,
// }) })
// .then(res => { .then(res => {
// if (res.code === 0) { if (res.code === 0) {
// onCancel(); onCancel();
// setLoading(false); setLoading(false);
// callBackSubmit(); callBackSubmit();
// notification.success({ notification.success({
// message: '提示', message: '提示',
// duration: 3, duration: 3,
// description: res.msg || '新增成功', description: res.msg || '新增成功',
// }); });
// } else { } else {
// setLoading(false); setLoading(false);
// notification.error({ notification.error({
// message: '提示', message: '提示',
// duration: 3, duration: 3,
// description: res.msg || '新增失败', description: res.msg || '新增失败',
// }); });
// } }
// }) })
// .catch(err => { .catch(err => {
// setLoading(false); setLoading(false);
// }); });
// } else { } else {
// EditIntegratedLogin({ EditIntegratedLogin({
// systemName: obj.systemName, systemName: obj.systemName,
// subtitle: obj.subtitle, subtitle: obj.subtitle,
// internetAddress: obj.internetAddress, internetAddress: obj.internetAddress,
// intranetAddress: obj.intranetAddress, intranetAddress: obj.intranetAddress,
// accountParam: bb, accountParam: bb,
// iconUrl: obj.iconUrl, iconUrl: obj.iconUrl,
// accountType: 'Panda', accountType: 'Panda',
// target: obj.target, target: obj.target,
// isMaster: obj.isMaster, isMaster: obj.isMaster,
// images: dataList, images: dataList,
// clients: pickItem.clients, clients: pickItem.clients,
// isHide: pickItem.isHide, isHide: pickItem.isHide,
// mapSetting: obj.mapSetting, mapSetting: obj.mapSetting,
// coordinate: data, coordinate: data,
// siteDescription: obj.siteDescription, siteDescription: obj.siteDescription,
// }) })
// .then(res => { .then(res => {
// if (res.code === 0) { if (res.code === 0) {
// onCancel(); onCancel();
// setLoading(false); setLoading(false);
// callBackSubmit(); callBackSubmit();
// notification.success({ notification.success({
// message: '提示', message: '提示',
// duration: 3, duration: 3,
// description: res.msg || '编辑成功', description: res.msg || '编辑成功',
// }); });
// } else { } else {
// setLoading(false); setLoading(false);
// notification.error({ notification.error({
// message: '提示', message: '提示',
// duration: 3, duration: 3,
// description: res.msg || '编辑失败', description: res.msg || '编辑失败',
// }); });
// } }
// }) })
// .catch(err => { .catch(err => {
// setLoading(false); setLoading(false);
// }); });
// } }
// } else { } else {
// notification.warning({ notification.warning({
// message: '提示', message: '提示',
// duration: 3, duration: 3,
// description: '内网地址或外网地址必须填写一项', description: '内网地址或外网地址必须填写一项',
// }); });
// } }
// } }
// }); });
}; };
const layout = { const layout = {
......
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