Commit 4508ae30 authored by 熊成伟's avatar 熊成伟

debug

parent 8b4e576c
Pipeline #15214 passed with stages
in 1 minute and 3 seconds
This diff is collapsed.
...@@ -21,7 +21,7 @@ const Backlog = (props) => { ...@@ -21,7 +21,7 @@ const Backlog = (props) => {
setLoading(true) setLoading(true)
axiosRequest({ axiosRequest({
method: 'post', method: 'post',
url: '/idtAppServiceV6/getWaitDealList&tableids=1', url: '/idtAppServiceV6/oApp/getUnDone',
}).then(res => { }).then(res => {
setLoading(false); setLoading(false);
let result = res.rows ? data.concat(res.rows) : data; let result = res.rows ? data.concat(res.rows) : data;
......
import React, {useState, useEffect} from 'react'; import React, {useState, useEffect} from 'react';
import AddressList from '../../components/AddressList';
import AddressUser from '../../components/AddressList/AddressUser'; import AddressUser from '../../components/AddressList/AddressUser';
import axiosRequest from '../../utils/request'; import axiosRequest from '../../utils/request';
import {ActivityIndicator} from "antd-mobile"; import {ActivityIndicator} from "antd-mobile";
...@@ -8,7 +7,7 @@ import {ActivityIndicator} from "antd-mobile"; ...@@ -8,7 +7,7 @@ import {ActivityIndicator} from "antd-mobile";
const Communicate = (props) => { const Communicate = (props) => {
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const [data, setData] = useState([]); const [data, setData] = useState([]);
const [type, setType] = useState('basic') // const [type, setType] = useState('basic')
// const {id} = props.match.params; // const {id} = props.match.params;
...@@ -16,6 +15,7 @@ const Communicate = (props) => { ...@@ -16,6 +15,7 @@ const Communicate = (props) => {
const getData = () => { const getData = () => {
setLoading(true); setLoading(true);
console.log(data)
axiosRequest({ axiosRequest({
method: 'post', method: 'post',
url: '/idtAppServiceV6/oApp/getSearchAddressBook', url: '/idtAppServiceV6/oApp/getSearchAddressBook',
...@@ -25,18 +25,10 @@ const Communicate = (props) => { ...@@ -25,18 +25,10 @@ const Communicate = (props) => {
}); });
}; };
useEffect(() => { useEffect(() => {
if (props.location.query && props.location.query.parent) {
const {parent} = props.location.query;
}
// const {parent} = props.location.query;
console.log(props.location.query)
getData() getData()
}, []); }, []);
const getCurrent = () =>{
}
return ( return (
<div> <div>
<ActivityIndicator <ActivityIndicator
......
import React, {useState, useEffect} from 'react'; import React, { useEffect} from 'react';
import {Modal} from 'antd-mobile' import {Modal} from 'antd-mobile'
import './index.less'; import './index.less';
import axiosRequest from '../../utils/request'; import axiosRequest from '../../utils/request';
......
import React, {useState, useEffect} from 'react'; import React, {useState, useEffect} from 'react';
import {WingBlank, WhiteSpace, ActionSheet, ActivityIndicator} from 'antd-mobile' import {WingBlank, WhiteSpace, ActionSheet, ActivityIndicator} from 'antd-mobile'
import axiosRequest from '../../utils/request'; // import axiosRequest from '../../utils/request';
import './index.less' import './index.less'
import TopTabs from '../../components/BlankTabs' import TopTabs from '../../components/BlankTabs'
import Basic from './Basic' import Basic from './Basic'
...@@ -23,6 +23,8 @@ const Pro = (props) => { ...@@ -23,6 +23,8 @@ const Pro = (props) => {
setFootStatus(true) setFootStatus(true)
}; };
useEffect(() => { useEffect(() => {
setTableId();
console.log(tableId)
setLoading(false); setLoading(false);
const option = document.getElementsByClassName("option-text")[0] const option = document.getElementsByClassName("option-text")[0]
option.addEventListener('focus', optionBlur, true); option.addEventListener('focus', optionBlur, true);
...@@ -75,14 +77,14 @@ const Pro = (props) => { ...@@ -75,14 +77,14 @@ const Pro = (props) => {
console.log(buttonIndex) console.log(buttonIndex)
}); });
}; };
const processEnd = () => { // const processEnd = () => {
axiosRequest({ // axiosRequest({
method: 'post', // method: 'post',
url: `/dgbg/MobileGetFlowsByTabId.view?userName=2012012099&clientFlag=123456&tableId=${tableId}`, // url: `/dgbg/MobileGetFlowsByTabId.view?userName=2012012099&clientFlag=123456&tableId=${tableId}`,
}).then(res => { // }).then(res => {
console.log(res) // console.log(res)
}); // });
} // }
const handleScroll = () => { const handleScroll = () => {
const adjunct = document.getElementById("event-adjunct").offsetTop; const adjunct = document.getElementById("event-adjunct").offsetTop;
......
...@@ -36,8 +36,8 @@ const Notice = (props) => { ...@@ -36,8 +36,8 @@ const Notice = (props) => {
} }
}; };
useEffect(() => { useEffect(() => {
// window.addEventListener('scroll', handleScroll, true); window.addEventListener('scroll', handleScroll, true);
// return () => window.removeEventListener('scroll', handleScroll, true); return () => window.removeEventListener('scroll', handleScroll, true);
}, [data]); }, [data]);
const checkLog = () => { const checkLog = () => {
......
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