Commit 0b02dc6d authored by 熊成伟's avatar 熊成伟

debug

parent 30bc8392
Pipeline #16652 failed with stages
in 35 seconds
...@@ -3,7 +3,7 @@ import './index.less' ...@@ -3,7 +3,7 @@ import './index.less'
const Index = (props) => { const Index = (props) => {
const data = props.data; const data = props.data;
console.log(data) // console.log(data)
return ( return (
<div className="address-box"> <div className="address-box">
{data && data.length > 0 && data.map((item, index) => item.XM && ( {data && data.length > 0 && data.map((item, index) => item.XM && (
......
...@@ -37,7 +37,7 @@ const TreeData = (props) => { ...@@ -37,7 +37,7 @@ const TreeData = (props) => {
useEffect(() => { useEffect(() => {
setSGood(peopleData) setSGood(peopleData)
}, [peopleData]); }, [peopleData]);
console.log(sGood); // console.log(sGood);
const getProps = (data) => ( const getProps = (data) => (
......
...@@ -41,7 +41,7 @@ const Footer = (props) => { ...@@ -41,7 +41,7 @@ const Footer = (props) => {
const url = props.location.pathname; const url = props.location.pathname;
url.indexOf('/bord/backlog') > -1 && setCurrent('backlog'); url.indexOf('/bord/backlog') > -1 && setCurrent('backlog');
url.indexOf('/bord/work') > -1 && setCurrent('work'); url.indexOf('/bord/work') > -1 && setCurrent('work');
url.indexOf('/bord/addressList') > -1 && setCurrent('addressList'); url.indexOf('/bord/address') > -1 && setCurrent('addressList');
url.indexOf('/bord/notice') > -1 && setCurrent('notice'); url.indexOf('/bord/notice') > -1 && setCurrent('notice');
}, [props]); }, [props]);
......
...@@ -191,7 +191,7 @@ const Process = (props) => { ...@@ -191,7 +191,7 @@ const Process = (props) => {
dealInfo: JSON.stringify({BLYJ: blyj, flowTbId}), dealInfo: JSON.stringify({BLYJ: blyj, flowTbId}),
params: JSON.stringify({UUID: uuid})} params: JSON.stringify({UUID: uuid})}
}).then(res => { }).then(res => {
console.log(res) // console.log(res)
}); });
} }
......
...@@ -38,12 +38,6 @@ const Send = (props) => { ...@@ -38,12 +38,6 @@ const Send = (props) => {
const [personVisible, setPersonVisible] = useState(false); const [personVisible, setPersonVisible] = useState(false);
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const mqMedia = window.matchMedia('(orientation: portrait)');
useEffect(() => {
console.log(mqMedia, mqMedia.matches)
},[]);
return ( return (
<Document title="请假申请"> <Document title="请假申请">
<WingBlank> <WingBlank>
......
...@@ -13,7 +13,7 @@ const Send = (props) => { ...@@ -13,7 +13,7 @@ const Send = (props) => {
const {getFieldProps} = props.form; const {getFieldProps} = props.form;
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
console.log(loading) // console.log(loading)
const onSubmit = () => { const onSubmit = () => {
props.form.validateFields({ force: true }, (error) => { props.form.validateFields({ force: true }, (error) => {
......
...@@ -49,7 +49,7 @@ const Send = (props) => { ...@@ -49,7 +49,7 @@ const Send = (props) => {
const [upload, setUpload] = useState([]); const [upload, setUpload] = useState([]);
const uploadChange = (files, type, index) => { const uploadChange = (files, type, index) => {
console.log(files, type, index) // console.log(files, type, index)
setUpload(files) setUpload(files)
} }
......
...@@ -119,7 +119,7 @@ const Send = (props) => { ...@@ -119,7 +119,7 @@ const Send = (props) => {
}, },
payload: formData payload: formData
}).then(res => { }).then(res => {
console.log(res) // console.log(res)
// Toast.success('发送成功'); // Toast.success('发送成功');
}); });
} }
...@@ -214,7 +214,7 @@ const Send = (props) => { ...@@ -214,7 +214,7 @@ const Send = (props) => {
tableId: submitData.tableId, tableId: submitData.tableId,
} }
}).then(res => { }).then(res => {
console.log(res) // console.log(res)
}) })
// const result = goods.filter(item => ids.indexOf(item.id) < 0); // const result = goods.filter(item => ids.indexOf(item.id) < 0);
......
...@@ -101,7 +101,7 @@ const Send = (props) => { ...@@ -101,7 +101,7 @@ const Send = (props) => {
}, },
payload: formData payload: formData
}).then(res => { }).then(res => {
console.log(res) // console.log(res)
// Toast.success('发送成功'); // Toast.success('发送成功');
}); });
} }
......
...@@ -56,7 +56,7 @@ const Send = (props) => { ...@@ -56,7 +56,7 @@ const Send = (props) => {
resolve() resolve()
})).then(() => { })).then(() => {
if (name !== '办公用品采购') { if (name !== '办公用品采购') {
console.log(res) // console.log(res)
res && res.uuid && Toast.success('新增成功'); res && res.uuid && Toast.success('新增成功');
res && res.uuid && props.history.goBack() res && res.uuid && props.history.goBack()
}else { }else {
...@@ -116,7 +116,7 @@ const Send = (props) => { ...@@ -116,7 +116,7 @@ const Send = (props) => {
}, },
payload: formData payload: formData
}).then(res => { }).then(res => {
console.log(res) // console.log(res)
// Toast.success('发送成功'); // Toast.success('发送成功');
}); });
} }
......
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