提交 cc664183 authored 作者: 钟是志's avatar 钟是志

删除console.log

上级 c361efc3
...@@ -65,7 +65,6 @@ class AffairPage extends React.Component { ...@@ -65,7 +65,6 @@ class AffairPage extends React.Component {
getServiceDetail = (serviceId) => { getServiceDetail = (serviceId) => {
service.getServiceDetail(serviceId).then((res) => { service.getServiceDetail(serviceId).then((res) => {
console.log(res);
this.setState({ this.setState({
serviceInfo: res, serviceInfo: res,
}); });
...@@ -257,7 +256,6 @@ class AffairPage extends React.Component { ...@@ -257,7 +256,6 @@ class AffairPage extends React.Component {
this.returnList(true); this.returnList(true);
} }
if (event && event.data && event.data.indexOf && event.data.indexOf('iframeHeight') > -1) { if (event && event.data && event.data.indexOf && event.data.indexOf('iframeHeight') > -1) {
console.log(event.data);
let height = Number(event.data.split('-')[1]); let height = Number(event.data.split('-')[1]);
const iframe = document.getElementById('applyIframeId'); const iframe = document.getElementById('applyIframeId');
if (iframe) { if (iframe) {
...@@ -277,13 +275,11 @@ class AffairPage extends React.Component { ...@@ -277,13 +275,11 @@ class AffairPage extends React.Component {
componentDidUpdate(prevProps, prevState) { componentDidUpdate(prevProps, prevState) {
if (prevProps.workId !== this.props.workId) { if (prevProps.workId !== this.props.workId) {
// console.log('123123', prevProps, this.props);
this.initData(); this.initData();
} }
} }
returnList = (needSearchList = false) => { returnList = (needSearchList = false) => {
console.log(needSearchList);
const { workId } = this.state; const { workId } = this.state;
this.setState( this.setState(
{ {
......
...@@ -294,7 +294,6 @@ export default class List extends Component { ...@@ -294,7 +294,6 @@ export default class List extends Component {
} }
} }
} }
// console.log(columns);
const tableProps = { const tableProps = {
rowKey: pageSearch.tableRowKey || 'id', rowKey: pageSearch.tableRowKey || 'id',
......
...@@ -41,7 +41,6 @@ class Index extends React.Component { ...@@ -41,7 +41,6 @@ class Index extends React.Component {
getFormDetail = (workId) => { getFormDetail = (workId) => {
const { dataBaseId } = this.state; const { dataBaseId } = this.state;
service.getFormDetail(workId).then((response) => { service.getFormDetail(workId).then((response) => {
console.log(response);
if (typeof response.unifiedServicePatternModel === 'undefined') { if (typeof response.unifiedServicePatternModel === 'undefined') {
return false; return false;
} }
...@@ -110,7 +109,6 @@ class Index extends React.Component { ...@@ -110,7 +109,6 @@ class Index extends React.Component {
if (!response || !Array.isArray(response)) { if (!response || !Array.isArray(response)) {
response = []; response = [];
} }
// console.log('columns', response);
for (let item of response) { for (let item of response) {
if (item.dataIndex === 'taskName' && !item.width) { if (item.dataIndex === 'taskName' && !item.width) {
item.width = 150; // 29213 资助事务管理/国家三金/国家奖学金审核(高职),界面排版(100661,bdk@2022*$) item.width = 150; // 29213 资助事务管理/国家三金/国家奖学金审核(高职),界面排版(100661,bdk@2022*$)
...@@ -206,7 +204,6 @@ class Index extends React.Component { ...@@ -206,7 +204,6 @@ class Index extends React.Component {
}); });
} }
} }
// console.log(JSON.stringify(d));
} }
return ( return (
<AuditPage <AuditPage
...@@ -229,6 +226,5 @@ class Index extends React.Component { ...@@ -229,6 +226,5 @@ class Index extends React.Component {
export default function Pr(props) { export default function Pr(props) {
const { routerConfig } = useContext(CreateC); const { routerConfig } = useContext(CreateC);
// console.log(routerConfig);
return <Index {...props} routerConfig={routerConfig} />; return <Index {...props} routerConfig={routerConfig} />;
} }
...@@ -57,7 +57,6 @@ export default class QueryItem extends React.Component { ...@@ -57,7 +57,6 @@ export default class QueryItem extends React.Component {
this.triggerChange({ string: e.target.value }); this.triggerChange({ string: e.target.value });
}; };
changeDate = (date) => { changeDate = (date) => {
console.log(date);
if (!('value' in this.props)) { if (!('value' in this.props)) {
this.setState({ string: date.format('YYYY-MM-DD HH:mm:ss') }); this.setState({ string: date.format('YYYY-MM-DD HH:mm:ss') });
} }
......
...@@ -82,7 +82,6 @@ function ActiveMenuComponent({ routerConfig, ...otherProps }) { ...@@ -82,7 +82,6 @@ function ActiveMenuComponent({ routerConfig, ...otherProps }) {
Res = <ApplyMerge {...otherProps} routerConfig={routerConfig}/>; Res = <ApplyMerge {...otherProps} routerConfig={routerConfig}/>;
break; break;
case 'Audit': // 审批类 case 'Audit': // 审批类
console.log(routerConfig);
Res = <Audit workId={appId} {...otherProps} routerConfig={routerConfig}/>; Res = <Audit workId={appId} {...otherProps} routerConfig={routerConfig}/>;
break; break;
case 'BatchAudit': // 批量审批 case 'BatchAudit': // 批量审批
......
...@@ -9,7 +9,6 @@ import { getOneStopConfig } from '@/webPublic/zyd_public/utils/utils'; ...@@ -9,7 +9,6 @@ import { getOneStopConfig } from '@/webPublic/zyd_public/utils/utils';
// 考核汇总页面 // 考核汇总页面
function OtherCheckRecord({ workId, ...otherProps }) { function OtherCheckRecord({ workId, ...otherProps }) {
// console.log(workId, otherProps);
const pathname = otherProps?.location?.pathname; const pathname = otherProps?.location?.pathname;
const [data, setData] = useState(); const [data, setData] = useState();
const id = workId || getOneStopConfig(pathname); const id = workId || getOneStopConfig(pathname);
...@@ -20,7 +19,6 @@ function OtherCheckRecord({ workId, ...otherProps }) { ...@@ -20,7 +19,6 @@ function OtherCheckRecord({ workId, ...otherProps }) {
}); });
}, [id]); }, [id]);
// console.log(data);
if (!data) { if (!data) {
return null; return null;
......
...@@ -11,7 +11,6 @@ export default function CheckRecordMerge(props) { ...@@ -11,7 +11,6 @@ export default function CheckRecordMerge(props) {
console.log('settingJson 不是一个数组 无法渲染!'); console.log('settingJson 不是一个数组 无法渲染!');
return null; return null;
} }
console.log(settingJson);
const [activeKey, setActiveKey] = useState(settingJson[0].appId); const [activeKey, setActiveKey] = useState(settingJson[0].appId);
const changeActiveKey = (a) => { const changeActiveKey = (a) => {
setActiveKey(a); setActiveKey(a);
...@@ -22,7 +21,6 @@ export default function CheckRecordMerge(props) { ...@@ -22,7 +21,6 @@ export default function CheckRecordMerge(props) {
if (!activeKey) { if (!activeKey) {
return null; return null;
} }
console.log(settingJson);
return ( return (
<Tabs activeKey={activeKey} <Tabs activeKey={activeKey}
hideAdd={true} hideAdd={true}
......
...@@ -35,7 +35,6 @@ function giveKey(key, datas) { ...@@ -35,7 +35,6 @@ function giveKey(key, datas) {
} }
export async function countAllValues(datas, item) { export async function countAllValues(datas, item) {
// console.log(datas);
if (item.setNull) { if (item.setNull) {
datas.allValues = JSON.stringify({}); datas.allValues = JSON.stringify({});
} else { } else {
...@@ -67,8 +66,6 @@ export async function countAllValues(datas, item) { ...@@ -67,8 +66,6 @@ export async function countAllValues(datas, item) {
export async function giveBase16EncodeAsync(datas, url) { export async function giveBase16EncodeAsync(datas, url) {
if (url && typeof url === 'string') { if (url && typeof url === 'string') {
// console.log(url);
// console.log(encryptApiList);
for (const item of encryptApiList) { for (const item of encryptApiList) {
if (item.api && url.indexOf(item.api) > -1 && item.key) { if (item.api && url.indexOf(item.api) > -1 && item.key) {
for (let g of item.key) { for (let g of item.key) {
...@@ -87,7 +84,6 @@ export async function giveBase16EncodeAsync(datas, url) { ...@@ -87,7 +84,6 @@ export async function giveBase16EncodeAsync(datas, url) {
datas = await countAllValues(datas, item); // 循环中 不要写await datas = await countAllValues(datas, item); // 循环中 不要写await
datas = giveKey('allValues', datas); datas = giveKey('allValues', datas);
} else { } else {
// console.log(g, datas);
datas = giveKey(g, datas); datas = giveKey(g, datas);
} }
} }
......
...@@ -32,7 +32,6 @@ export default class PortalFlowExamineModalImage extends React.Component { ...@@ -32,7 +32,6 @@ export default class PortalFlowExamineModalImage extends React.Component {
sliderChange = num => { sliderChange = num => {
if (sliNum === 0) { if (sliNum === 0) {
width = document.querySelector('.img').width; width = document.querySelector('.img').width;
// console.log(document.querySelector('.img').width)
} }
sliNum++; sliNum++;
if (num == 0 && sliNum != 0) { if (num == 0 && sliNum != 0) {
......
...@@ -20,7 +20,6 @@ export default class PortalFlowExamineModal extends React.Component { ...@@ -20,7 +20,6 @@ export default class PortalFlowExamineModal extends React.Component {
const { visible } = this.state; const { visible } = this.state;
const { isShow, id, affairId } = this.props; const { isShow, id, affairId } = this.props;
const code = this.props?.code ? this.props?.code : ''; const code = this.props?.code ? this.props?.code : '';
// console.log(this.props)
return ( return (
<Modal <Modal
title="事务流程" title="事务流程"
......
...@@ -5,7 +5,6 @@ import DetailForm from './DetailForm'; ...@@ -5,7 +5,6 @@ import DetailForm from './DetailForm';
import styles from './index.less'; import styles from './index.less';
const FlowDetailPanel = ({ getDrag, getDragEnd, getprocess, data, getEvent, isDelete }) => { const FlowDetailPanel = ({ getDrag, getDragEnd, getprocess, data, getEvent, isDelete }) => {
// console.log(getEvent)
return ( return (
<DetailPanel className={styles.detailPanel}> <DetailPanel className={styles.detailPanel}>
<NodePanel> <NodePanel>
......
...@@ -77,7 +77,6 @@ const submitValues = ({ ...@@ -77,7 +77,6 @@ const submitValues = ({
}, },
() => { () => {
preHandle(values); // 引入 import {preHandle} from '@/webPublic/one_stop_public/utils/myutils.js' preHandle(values); // 引入 import {preHandle} from '@/webPublic/one_stop_public/utils/myutils.js'
// console.log(JSON.stringify(values));
// return ; // return ;
let payload = { let payload = {
......
...@@ -137,7 +137,6 @@ export default class ChildForm extends React.Component { ...@@ -137,7 +137,6 @@ export default class ChildForm extends React.Component {
if (!objs) { if (!objs) {
return null; return null;
} }
// console.log(this.props.form.getFieldsValue());
if (isMobile) { if (isMobile) {
return ( // 2022年11月24日 姚新国说的 把干掉两翼留白 解决北电科工作情况考核 移动端样式的问题 return ( // 2022年11月24日 姚新国说的 把干掉两翼留白 解决北电科工作情况考核 移动端样式的问题
...@@ -239,8 +238,6 @@ export default class ChildForm extends React.Component { ...@@ -239,8 +238,6 @@ export default class ChildForm extends React.Component {
if (r == '') { if (r == '') {
return ''; return '';
} }
// console.log('子表单', r);
// console.log(form.getFieldsValue());
return ( return (
<Col span={span} key={r}> <Col span={span} key={r}>
<ZdyTable <ZdyTable
......
...@@ -31,7 +31,6 @@ export default class LocationCom extends React.Component { ...@@ -31,7 +31,6 @@ export default class LocationCom extends React.Component {
} }
} }
changePos = (obj) => { changePos = (obj) => {
console.log(obj);
if (!('value' in this.props)) { if (!('value' in this.props)) {
this.setState({ ...obj }); this.setState({ ...obj });
} }
......
...@@ -21,10 +21,8 @@ export default class MobileDate extends Component { ...@@ -21,10 +21,8 @@ export default class MobileDate extends Component {
} }
triggerChange = changedValue => { triggerChange = changedValue => {
console.log(changedValue);
// Should provide an event to pass value to Form. // Should provide an event to pass value to Form.
const onChange = this.props.onChange; const onChange = this.props.onChange;
// console.log(changedValue);
if (onChange) { if (onChange) {
onChange([...changedValue]); onChange([...changedValue]);
} }
...@@ -111,7 +109,6 @@ export default class MobileDate extends Component { ...@@ -111,7 +109,6 @@ export default class MobileDate extends Component {
const endTime = dates.length > 1 ? dates[1] && dates[1].valueOf() : null; const endTime = dates.length > 1 ? dates[1] && dates[1].valueOf() : null;
const MustSpan = this.MustSpan(); const MustSpan = this.MustSpan();
// console.log(startTime, endTime);
return ( return (
<div> <div>
......
...@@ -63,7 +63,6 @@ const getContent = (signConfig = [], ratioX) => { ...@@ -63,7 +63,6 @@ const getContent = (signConfig = [], ratioX) => {
g.w = Math.ceil(g.w * ratioX); g.w = Math.ceil(g.w * ratioX);
g.h = Math.ceil(g.h * ratioX); g.h = Math.ceil(g.h * ratioX);
} }
// console.log(g);
return g; return g;
}), }),
}); });
...@@ -110,7 +109,6 @@ export default function PictureSignature({ ...@@ -110,7 +109,6 @@ export default function PictureSignature({
} }
setShowModal(!showModal); setShowModal(!showModal);
}; };
// console.log(json);
...@@ -160,7 +158,6 @@ export default function PictureSignature({ ...@@ -160,7 +158,6 @@ export default function PictureSignature({
const handleClickButton = clickType => { const handleClickButton = clickType => {
switch (clickType) { switch (clickType) {
case 'startEdit': // 开始签章 case 'startEdit': // 开始签章
// console.log(imageInfo);
if (signConfig && signConfig.length < originSignConfig.length) { if (signConfig && signConfig.length < originSignConfig.length) {
setOtherProps({ setOtherProps({
...otherProps, ...otherProps,
...@@ -238,7 +235,6 @@ export default function PictureSignature({ ...@@ -238,7 +235,6 @@ export default function PictureSignature({
} else { } else {
return originButtons.map(g => { return originButtons.map(g => {
// if (g.clickType === 'startEdit') { // if (g.clickType === 'startEdit') {
// console.log(signConfig);
// return <Popconfirm // return <Popconfirm
// title={<div> // title={<div>
// <p>选择签章组件</p> // <p>选择签章组件</p>
...@@ -280,7 +276,6 @@ export default function PictureSignature({ ...@@ -280,7 +276,6 @@ export default function PictureSignature({
if (!fileInfo) { if (!fileInfo) {
return null; return null;
} }
// console.log(imageInfo, fileInfo);
console.log('签章组件'); console.log('签章组件');
return ( return (
<div className={styles.outSideDiv}> <div className={styles.outSideDiv}>
...@@ -398,7 +393,6 @@ export function SignArray(props) { ...@@ -398,7 +393,6 @@ export function SignArray(props) {
onChange(value); onChange(value);
} }
}; };
// console.log(value, '222222222222222')
return ( return (
<div> <div>
{files.map((g, index) => { {files.map((g, index) => {
......
...@@ -100,7 +100,6 @@ export default function TableSelectZhanWei(props) { ...@@ -100,7 +100,6 @@ export default function TableSelectZhanWei(props) {
typeList = [], typeList = [],
selectedStyle = {}, selectedStyle = {},
} = otherProps; } = otherProps;
// console.log(otherProps, dataSource.list);
if (!dataSource || !dataSource.list || !dataSource.list.length) { if (!dataSource || !dataSource.list || !dataSource.list.length) {
return <div className={styles.noData}>{noDataSentence}</div>; return <div className={styles.noData}>{noDataSentence}</div>;
} }
...@@ -110,7 +109,6 @@ export default function TableSelectZhanWei(props) { ...@@ -110,7 +109,6 @@ export default function TableSelectZhanWei(props) {
callback(selectData); callback(selectData);
}; };
// console.log(selects);
return <div className={styles.zhanWei}> return <div className={styles.zhanWei}>
......
...@@ -71,7 +71,6 @@ export default class location extends Component { ...@@ -71,7 +71,6 @@ export default class location extends Component {
}; };
// 点击确定提交定位 // 点击确定提交定位
confirm = e => { confirm = e => {
console.log(e);
if (this.state.btn) { if (this.state.btn) {
if (this.props.get === 'web') { if (this.props.get === 'web') {
openToast('error', '错误', '正在定位,请稍后重试'); openToast('error', '错误', '正在定位,请稍后重试');
......
...@@ -51,7 +51,6 @@ export default function RangePickerDiy(props) { ...@@ -51,7 +51,6 @@ export default function RangePickerDiy(props) {
const [bindValue, setBindValue] = useState([]); const [bindValue, setBindValue] = useState([]);
useEffect(() => { useEffect(() => {
// console.log('RangePickerDiy组件Value', value);
if (!value || !Array.isArray(value) || value.length !== 2) { if (!value || !Array.isArray(value) || value.length !== 2) {
setBindValue([]); setBindValue([]);
...@@ -60,8 +59,6 @@ export default function RangePickerDiy(props) { ...@@ -60,8 +59,6 @@ export default function RangePickerDiy(props) {
if (typeof value[i] === 'number' && value[i] > 10000) { if (typeof value[i] === 'number' && value[i] > 10000) {
bindValue[i] = moment(value[i]); bindValue[i] = moment(value[i]);
} else if (!moment.isMoment(value[i])) { } else if (!moment.isMoment(value[i])) {
// bindValue[i] = undefined;
// console.log('RangePickerDiy组件没有获取到正确的值', value);
} else { } else {
bindValue[i] = value[i]; bindValue[i] = value[i];
} }
...@@ -71,7 +68,6 @@ export default function RangePickerDiy(props) { ...@@ -71,7 +68,6 @@ export default function RangePickerDiy(props) {
}, [value]); }, [value]);
function handleChange(v){ function handleChange(v){
// console.log(v);
onChange(v); onChange(v);
} }
......
...@@ -42,7 +42,6 @@ if (!globalThis.CONFIG) { ...@@ -42,7 +42,6 @@ if (!globalThis.CONFIG) {
const queryConfig = (key) => { const queryConfig = (key) => {
const dynamicConfig = typeof globalThis !== 'undefined' ? globalThis.CONFIG : window.CONFIG; const dynamicConfig = typeof globalThis !== 'undefined' ? globalThis.CONFIG : window.CONFIG;
// console.log(dynamicConfig);
if (typeof key === 'undefined') return dynamicConfig; if (typeof key === 'undefined') return dynamicConfig;
return dynamicConfig[key]; return dynamicConfig[key];
}; };
......
export function sortMenusByPriority(menus = []) { export function sortMenusByPriority(menus = []) {
// console.log(menus);
menus.sort((a, b) => { menus.sort((a, b) => {
if (a.oldBrotherPath === b.oldBrotherPath) { if (a.oldBrotherPath === b.oldBrotherPath) {
return b.priority - a.priority; return b.priority - a.priority;
} }
}); });
// console.log(menus);
// //
return menus; return menus;
} }
......
...@@ -22,7 +22,6 @@ export default function PrepareShow(props) { ...@@ -22,7 +22,6 @@ export default function PrepareShow(props) {
// 异步加载这个js。 因为js 过大影响性能 // 异步加载这个js。 因为js 过大影响性能
loadCss().then((cssRes) => { loadCss().then((cssRes) => {
// 异步加载这个 wangEditor5 的css 文件 // 异步加载这个 wangEditor5 的css 文件
console.log('123');
WangEditor5.current = res; WangEditor5.current = res;
WangEditor5.current.Boot.registerMenu(myMenuConf); WangEditor5.current.Boot.registerMenu(myMenuConf);
setShow(true); setShow(true);
...@@ -30,7 +29,6 @@ export default function PrepareShow(props) { ...@@ -30,7 +29,6 @@ export default function PrepareShow(props) {
}); });
// setShow(true); // setShow(true);
}, []); }, []);
// console.log(show, WangEditor5);
if (show) { if (show) {
return <WangEditorReactComponent {...props} WangEditor5={WangEditor5.current} />; return <WangEditorReactComponent {...props} WangEditor5={WangEditor5.current} />;
} else { } else {
...@@ -67,9 +65,7 @@ function WangEditorReactComponent(props) { ...@@ -67,9 +65,7 @@ function WangEditorReactComponent(props) {
}, },
onChange: (editor) => { onChange: (editor) => {
// console.log('content', editor.children);
onChange(editor.getHtml()); onChange(editor.getHtml());
// console.log('html', editor.getHtml());
}, },
}; };
const toolbarConfig = { const toolbarConfig = {
......
...@@ -106,8 +106,6 @@ export default function NewDraggableSetting(props) { ...@@ -106,8 +106,6 @@ export default function NewDraggableSetting(props) {
const styleLeft = parseInt(objX, 10) + parseInt(x, 10) - parseInt(mouseX, 10); // 计算偏移量 const styleLeft = parseInt(objX, 10) + parseInt(x, 10) - parseInt(mouseX, 10); // 计算偏移量
const styleTop = parseInt(objY, 10) + parseInt(y, 10) - parseInt(mouseY, 10); // 计算偏移量 const styleTop = parseInt(objY, 10) + parseInt(y, 10) - parseInt(mouseY, 10); // 计算偏移量
const dropZone = document.getElementById('dropZone'); const dropZone = document.getElementById('dropZone');
// console.log('styleLeft', styleLeft, 'dropW', dropZone.width);
// console.log('styleTop', styleTop, dropZone.height);
if ( if (
// 阻止拖拽到图片外部 // 阻止拖拽到图片外部
styleLeft > dropZone.width - 50 || styleLeft > dropZone.width - 50 ||
......
...@@ -76,7 +76,6 @@ export default class FormatSetting extends Component { ...@@ -76,7 +76,6 @@ export default class FormatSetting extends Component {
message.warn('拖拽到了图片区域外部!'); message.warn('拖拽到了图片区域外部!');
return false; return false;
} else { } else {
console.log(leftNew, topNew);
} }
if (event.target.id === 'dropZone') { if (event.target.id === 'dropZone') {
...@@ -105,8 +104,6 @@ export default class FormatSetting extends Component { ...@@ -105,8 +104,6 @@ export default class FormatSetting extends Component {
render() { render() {
const { bgImage, formatSettingObject, saveConfig, pageConfiguration } = this.props; const { bgImage, formatSettingObject, saveConfig, pageConfiguration } = this.props;
console.log(formatSettingObject);
console.log(pageConfiguration, 'pageConfiguration');
let bgImageStyle = {}; let bgImageStyle = {};
if(pageConfiguration && pageConfiguration.width){ if(pageConfiguration && pageConfiguration.width){
bgImageStyle.width = pageConfiguration.width + 'cm'; bgImageStyle.width = pageConfiguration.width + 'cm';
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论