Commit ec232dbf authored by 前端-许冠华's avatar 前端-许冠华

Merge branch 'fix-hjx' into 'v2-220318'

fix: 去掉不必要的console See merge request linkseeks-design/pro-platform!18
parents 8c242fd9 47d82c9a
...@@ -113,7 +113,6 @@ const ProductLayout: React.FC<ProductLayoutProps> = (props: any) => { ...@@ -113,7 +113,6 @@ const ProductLayout: React.FC<ProductLayoutProps> = (props: any) => {
rules={[{ rules={[{
required: true, validator: (_rule, value) => { required: true, validator: (_rule, value) => {
const pattern = /(^[1-9](\d+)?(\.\d{1,3})?$)|(^\d\.\d{1,3}$)/; const pattern = /(^[1-9](\d+)?(\.\d{1,3})?$)|(^\d\.\d{1,3}$)/;
const v = form.getFieldValue(`swapPrice_${index}_${_index}`).validator()
if (!value) { if (!value) {
return Promise.reject(new Error(`${intl.formatMessage({ id: 'marketingAbility.qingshuruhuangoudanjia'})}`)); return Promise.reject(new Error(`${intl.formatMessage({ id: 'marketingAbility.qingshuruhuangoudanjia'})}`));
} }
......
...@@ -73,7 +73,6 @@ const ProductListLayout: React.FC<ProductListProps> = (props: any) => { ...@@ -73,7 +73,6 @@ const ProductListLayout: React.FC<ProductListProps> = (props: any) => {
useEffect(() => { useEffect(() => {
if (focus$) { if (focus$) {
console.log(focus$, 10086)
setValue(focus$) setValue(focus$)
setDataSource([]) setDataSource([])
} }
...@@ -198,14 +197,12 @@ const ProductListLayout: React.FC<ProductListProps> = (props: any) => { ...@@ -198,14 +197,12 @@ const ProductListLayout: React.FC<ProductListProps> = (props: any) => {
const fields = [...dataSource]; const fields = [...dataSource];
fields.forEach(item => { fields.forEach(item => {
if (item.skuId === skuId) { if (item.skuId === skuId) {
console.log(params, 'params')
item.goodsSubsidiaryGroupList = [...params] item.goodsSubsidiaryGroupList = [...params]
} }
}) })
form.setFieldsValue({ form.setFieldsValue({
'productList': fields 'productList': fields
}) })
console.log(fields, 'fields')
setListModalVisible(false) setListModalVisible(false)
setDataSource(fields) setDataSource(fields)
} }
......
...@@ -117,7 +117,6 @@ const AddedMarketing = () => { ...@@ -117,7 +117,6 @@ const AddedMarketing = () => {
return item return item
}) })
} }
console.log(res.productList, 1086)
// if (res['activityDefined']['assembleTime']) { // if (res['activityDefined']['assembleTime']) {
// params['activityDefined'].assembleTime = Number(moment(res['activityDefined']['assembleTime']).format('x')); // params['activityDefined'].assembleTime = Number(moment(res['activityDefined']['assembleTime']).format('x'));
// } // }
...@@ -248,7 +247,6 @@ const AddedMarketing = () => { ...@@ -248,7 +247,6 @@ const AddedMarketing = () => {
}, []) }, [])
const handleGetRule = () => { const handleGetRule = () => {
console.log(!refresh)
setRefresh(!refresh) setRefresh(!refresh)
} }
......
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