1) 增加优惠复制
This commit is contained in:
parent
4d345aab9f
commit
992f82c540
|
@ -548,9 +548,9 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
|
||||||
onConfirm: () => {
|
onConfirm: () => {
|
||||||
window.history.back();
|
window.history.back();
|
||||||
},
|
},
|
||||||
onCancel: this.onCancel,
|
onCancel: () => {},
|
||||||
className: "questModal",
|
className: "questModal",
|
||||||
parentComponent: this,
|
parentComponent: () => {},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const onChangeCombinedDate = (e) => {
|
const onChangeCombinedDate = (e) => {
|
||||||
|
|
|
@ -6,7 +6,6 @@ import React, {
|
||||||
} from "react";
|
} from "react";
|
||||||
import { useSetState } from "ahooks";
|
import { useSetState } from "ahooks";
|
||||||
import { FixedSizeList } from "react-window";
|
import { FixedSizeList } from "react-window";
|
||||||
import { useHistory } from "react-router-dom";
|
|
||||||
import {
|
import {
|
||||||
Card,
|
Card,
|
||||||
DateRangePicker,
|
DateRangePicker,
|
||||||
|
@ -253,6 +252,15 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
|
||||||
});
|
});
|
||||||
// 1.6 设置其它数据
|
// 1.6 设置其它数据
|
||||||
editFun();
|
editFun();
|
||||||
|
|
||||||
|
// 1.7 是否复制
|
||||||
|
let isState = sessionStorage.getItem("isState");
|
||||||
|
if (isState && isState === "1") {
|
||||||
|
setForm_info_data({
|
||||||
|
title: `${editData.title}_${editData.copy_count + 1}`,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
console.log("isState =>", isState);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -548,7 +556,7 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
|
||||||
onConfirm: () => {
|
onConfirm: () => {
|
||||||
window.history.back();
|
window.history.back();
|
||||||
},
|
},
|
||||||
onCancel: this.onCancel,
|
onCancel() {},
|
||||||
className: "questModal",
|
className: "questModal",
|
||||||
parentComponent: this,
|
parentComponent: this,
|
||||||
});
|
});
|
||||||
|
|
|
@ -369,7 +369,7 @@ const UseCouponList = () => {
|
||||||
<span
|
<span
|
||||||
className="grid-link"
|
className="grid-link"
|
||||||
style={{}}
|
style={{}}
|
||||||
onClick={(e) => this.addCodeFunction(1, params)}
|
onClick={(e) => addCodeFunction(1, params)}
|
||||||
>
|
>
|
||||||
复制
|
复制
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Reference in New Issue