fix: 删除无用控制台输出

This commit is contained in:
zhangds 2022-11-03 15:22:43 +08:00
parent cfdff429da
commit bfb43d57ae
9 changed files with 0 additions and 1533 deletions

View File

@ -78,7 +78,6 @@ const UseCouponList = () => {
const getTable = () => { const getTable = () => {
let param = getParam(); let param = getParam();
console.log("调用接口 ...", param);
}; };
useEffect(() => { useEffect(() => {

View File

@ -658,8 +658,6 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
return item.goods_id; return item.goods_id;
} }
}); });
console.log("编辑 大提交 =>", param);
editCoupon(editData.id, param).then((res) => { editCoupon(editData.id, param).then((res) => {
handelResponse( handelResponse(
res, res,
@ -730,8 +728,6 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
}); });
return; return;
} }
console.log("大提交 =>", param);
addCoupon(param).then((res) => { addCoupon(param).then((res) => {
handelResponse( handelResponse(
res, res,
@ -880,7 +876,6 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
// () // ()
const getCheckedProduct = () => { const getCheckedProduct = () => {
console.log("已选 =>", state.tableData);
let arr = state.tableData.map((item) => Number(item.product_id)); let arr = state.tableData.map((item) => Number(item.product_id));
return arr; return arr;
}; };
@ -935,7 +930,6 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
// //
const productEditShow = (rowData, index) => { const productEditShow = (rowData, index) => {
console.log("编辑数据 1 => ", rowData);
try { try {
// id // id
const direct_reseller_ids = state.direct_reseller_id; const direct_reseller_ids = state.direct_reseller_id;

View File

@ -42,7 +42,6 @@ const UseGoodsScopePop = forwardRef((props, ref) => {
Number(form_model.quantity) Number(form_model.quantity)
); );
form_model.effectDate = "-"; form_model.effectDate = "-";
console.log("new_tableData[table_index] 1=>", new_tableData[table_index]);
if (product_title === "编辑商品") { if (product_title === "编辑商品") {
if (table_index !== -1) { if (table_index !== -1) {
let ck = new_tableData[table_index].checked; let ck = new_tableData[table_index].checked;
@ -60,7 +59,6 @@ const UseGoodsScopePop = forwardRef((props, ref) => {
let new_tableData = tableData; let new_tableData = tableData;
let form_model = knockGold_el.current.state.form_data; let form_model = knockGold_el.current.state.form_data;
let table_obj = knockGoldFun(form_model); let table_obj = knockGoldFun(form_model);
console.log("new_tableData[table_index] 2=>", new_tableData[table_index]);
if (product_title === "编辑立减金") { if (product_title === "编辑立减金") {
if (table_index !== -1) { if (table_index !== -1) {
let ck = new_tableData[table_index].checked; let ck = new_tableData[table_index].checked;
@ -92,7 +90,6 @@ const UseGoodsScopePop = forwardRef((props, ref) => {
} else { } else {
form_data = format_knockGold_model(); form_data = format_knockGold_model();
} }
console.log("form_data =>", form_data);
submit(form_data); submit(form_data);
onClose(); onClose();
} }

View File

@ -174,7 +174,6 @@ const UseProductPop = forwardRef((props, ref) => {
setState({ setState({
productDataAll: req.data, productDataAll: req.data,
}); });
console.log("所有商品数据 =>", req.data);
let optArr = req.data.map((item) => { let optArr = req.data.map((item) => {
return { return {
key: item.id, key: item.id,

View File

@ -38,7 +38,6 @@ const UseUploadExcel = (props) => {
useEffect(() => { useEffect(() => {
try { try {
let el = uploadInputRef.current; let el = uploadInputRef.current;
console.log(el);
if (el) { if (el) {
el.click(); el.click();
} }
@ -51,7 +50,6 @@ const UseUploadExcel = (props) => {
setFilesTip(200); setFilesTip(200);
setHash(res.data.hash); setHash(res.data.hash);
setDisabledSureBtn(false); setDisabledSureBtn(false);
console.log("res => 成功", res);
}; };
const bachUploadState_0 = (res) => { const bachUploadState_0 = (res) => {
@ -111,7 +109,6 @@ const UseUploadExcel = (props) => {
return; return;
} }
} else { } else {
console.log("res =>", res);
Notify.error(res.message); Notify.error(res.message);
setFilesTip(0); setFilesTip(0);
} }
@ -128,7 +125,6 @@ const UseUploadExcel = (props) => {
setFilesName(my_file.name); setFilesName(my_file.name);
setShowUpType(true); setShowUpType(true);
excelParseFun(my_file); // excelParseFun(my_file); //
console.log("file =>", my_file);
}; };
/** /**

View File

@ -170,7 +170,6 @@ const UseCouponCommodity = () => {
}); });
} }
}); });
console.log("resData =>", resData);
setState({ tableData: resData }); setState({ tableData: resData });
}); });
}); });

View File

@ -490,7 +490,6 @@ const UseKeyAddEdit = () => {
return o; return o;
}); });
} }
console.log("newData =>", newData);
if (Number(data.bind_object[0]) === 1) { if (Number(data.bind_object[0]) === 1) {
setState({ distdata: newData }); setState({ distdata: newData });
} else { } else {
@ -563,7 +562,6 @@ const UseKeyAddEdit = () => {
// //
const rowEditClick = (row, rowIndex) => { const rowEditClick = (row, rowIndex) => {
console.log("编辑 -01");
if (state.keyType === 1) { if (state.keyType === 1) {
setState({ setState({
draw_title: "编辑兑换码", draw_title: "编辑兑换码",
@ -797,7 +795,6 @@ const UseKeyAddEdit = () => {
* @param {*} data * @param {*} data
*/ */
const couponExchangeSubmit = (apiType, data) => { const couponExchangeSubmit = (apiType, data) => {
console.log("apiType =>", apiType);
let keyBatch_id = sessionStorage.getItem("keybatch_id"); let keyBatch_id = sessionStorage.getItem("keybatch_id");
if (apiType === 0) { if (apiType === 0) {
let create_param = { let create_param = {
@ -875,7 +872,6 @@ const UseKeyAddEdit = () => {
// //
const couponTools = () => { const couponTools = () => {
console.log("state.couponData =>", state.couponData);
// //
let editCouponData = state.couponData.filter( let editCouponData = state.couponData.filter(
(item) => (item) =>

File diff suppressed because it is too large Load Diff

View File

@ -308,7 +308,6 @@ export default class acclist extends React.Component {
handelResponse( handelResponse(
res, res,
(req, msg) => { (req, msg) => {
console.log("req =>", req);
if (req.data.length > 0) { if (req.data.length > 0) {
sessionStorage.setItem("keyType", req.data[0].bind_object[0]); sessionStorage.setItem("keyType", req.data[0].bind_object[0]);
} }