Commit 11dac910 authored by TZW's avatar TZW

console.log

parent 30493582
......@@ -87,7 +87,6 @@ export default defineConfig({
},
],
chainWebpack: function (config, { webpack }) {
console.log(process.env.NODE_ENV);
// 线上环境就去除console输出
process.env.NODE_ENV === 'production' &&
config.optimization.minimizer('terser').tap((args) => {
......
......@@ -26,7 +26,6 @@ function strToHump(str) {
}
export async function getInitialState() {
console.log(history);
let token = localStorage.getItem('TOKENES');
const fetchUserInfo = async () => {
try {
......@@ -48,11 +47,9 @@ export async function getInitialState() {
}; // 如果是登录页面,不执行
if (history.location.pathname !== loginPath && token) {
console.log(3);
const currentUserData = await fetchUserInfo();
let menuData;
if (currentUserData?.data?.username) {
console.log(1);
menuData = await getmenuData();
}
return {
......
......@@ -18,7 +18,6 @@ import moment from 'moment';
let Diyrule = (props) => {
let { onChange } = props;
console.log(props?.value, 111111111);
let defval = props?.value ?? {};
let value = defval?.value || [],
other = useMemo(() => {
......@@ -32,8 +31,6 @@ let Diyrule = (props) => {
);
}, [defval?.other]);
console.log(other, 'other');
let { data, loading } = useRequest(() => {
return doFetch({ url: '/base/bmNoRule/querySelect', params: {} });
});
......
......@@ -128,11 +128,11 @@ function InitForm(props) {
obj[it?.fieldId] = it?.fieldRealValue;
});
console.log({
...obj,
...defaultFormValue,
...(res?.data?.data ?? {}),
});
// console.log({
// ...obj,
// ...defaultFormValue,
// ...(res?.data?.data ?? {}),
// });
return {
...obj,
......@@ -159,9 +159,9 @@ function InitForm(props) {
...relationSupplierList,
};
} else {
console.log({
...defaultFormValue,
});
// console.log({
// ...defaultFormValue,
// });
return {
...defaultFormValue,
};
......
......@@ -79,7 +79,6 @@ const Permissiontree = (props) => {
daauthTree,
} = state;
console.log('tree', props);
useEffect(() => {
resetData();
}, []);
......@@ -119,7 +118,6 @@ const Permissiontree = (props) => {
return;
}
if (treeType == 'auth') {
console.log(1);
roleTree({ roleId: id }).then((res) => {
if (res.code == '0000') {
let data = res?.data || {};
......
......@@ -10,7 +10,6 @@ export default (props) => {
const [hidden, sethidden] = useState(false);
const request = useRequest(async () => {
console.log(detailpath, params);
let res = await doFetch({ url: detailpath, params });
if (res?.data?.dataList?.length > 4) {
sethidden(true);
......
......@@ -218,7 +218,6 @@ function SiderMenu({ logo, collapsed, onCollapse, fixSiderbar, theme, isMobile,
selectedKeys={[location.pathname]}
collapsed={collapsed.toString()}
onClick={async ({ item, key, keyPath, domEvent }) => {
console.log('key', key, item.key);
if (key == '0') {
changealive(!alive);
return;
......
......@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-05 11:13:26
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-30 16:25:12
* @Last Modified time: 2023-01-06 16:28:51
*/
import React, { useState, useEffect } from 'react';
......@@ -10,7 +10,6 @@ import InitForm from '@/components/InitForm';
import { doFetch } from '@/utils/doFetch';
import { message } from 'antd';
const App = ({ type, id, actionRef, url, setdrawer }) => {
console.log(type);
const columns = {
wxjd: [
{
......
......@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-04 16:25:39
* @Last Modified time: 2023-01-06 16:09:52
*/
import * as React from 'react';
......@@ -323,7 +323,8 @@ function Failure(props) {
label:
row?.status == 0 || row?.status == 1 ? (
<PremButton
onClick={async () => {
btn={{
onClick: async () => {
let params = {
id: row?.id,
};
......@@ -339,13 +340,15 @@ function Failure(props) {
}));
actionRef.current.reload();
}
},
}}
>
接单
</PremButton>
) : (
<PremButton
onClick={async () => {
btn={{
onClick: async () => {
let params = {
id: row?.id,
};
......@@ -361,6 +364,7 @@ function Failure(props) {
}));
actionRef.current.reload();
}
},
}}
>
派单
......@@ -372,7 +376,8 @@ function Failure(props) {
{
label: (
<PremButton
onClick={() => {
btn={{
onClick: () => {
setdrawer((s) => ({
...s,
open: true,
......@@ -383,6 +388,7 @@ function Failure(props) {
val: 'only',
title: '追踪信息',
}));
},
}}
>
追踪
......@@ -393,7 +399,8 @@ function Failure(props) {
{
label: (
<PremButton
onClick={() => {
btn={{
onClick: () => {
setdrawer((s) => ({
...s,
open: true,
......@@ -404,6 +411,7 @@ function Failure(props) {
params: { trackOrderId: row?.id },
type: 'check',
}));
},
}}
>
验证
......
......@@ -123,7 +123,6 @@ function Outstore(props) {
return defpath;
}, [activeTabKey]);
console.log(value);
return (
<div style={{ position: 'relative' }}>
......@@ -294,7 +293,6 @@ function Outstore(props) {
};
}
});
console.log(newValue);
let nvalue = value ? [...value] : [];
if (value && value.some((it) => it.id == record?.id)) {
nvalue = value?.map((it, i) => {
......@@ -328,7 +326,6 @@ function Outstore(props) {
return its;
}
});
console.log(newValue);
let nvalue = value ? [...value] : [];
if (value && value.some((it) => it.id == record?.id)) {
nvalue = value?.map((it, i) => {
......
......@@ -122,7 +122,6 @@ function Pushsetting(props) {
<Space size="middle">
<a
onClick={() => {
console.log(record, _);
copy(record.variableCode);
message.success('已成功复制到剪切板!');
}}
......@@ -207,9 +206,7 @@ function Pushsetting(props) {
defaultFormValue={drawer?.item}
onValuesChange={async (a, b) => {
if (a?.fitField) {
console.log(a, b);
const res = doFetch({ url: selectValueType[a?.fitField] });
console.log(formRef);
} else if (a?.businessMsgSceneId) {
setVariablePath({
businessMsgSceneId: a?.businessMsgSceneId,
......
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