Commit abda54db authored by 熊成伟's avatar 熊成伟

debug

parent 9eba1bb3
Pipeline #16082 passed with stages
in 1 minute and 1 second
...@@ -14,28 +14,28 @@ const Index = (props) => { ...@@ -14,28 +14,28 @@ const Index = (props) => {
{/*className="todo-tag-png"*/} {/*className="todo-tag-png"*/}
{/*src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1591252471425&di=85236ae603ca74553adaca6e8c161a39&imgtype=0&src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2Fb912bf96dc19b3b23530ae2259b60eb6cf70083f6680b-H9l0ri_fw658"*/} {/*src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1591252471425&di=85236ae603ca74553adaca6e8c161a39&imgtype=0&src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2Fb912bf96dc19b3b23530ae2259b60eb6cf70083f6680b-H9l0ri_fw658"*/}
{/*/>*/} {/*/>*/}
{data.TYPE} {data.WD_MOD_NAME}
</div> </div>
<p>{data.TITLE}</p> <p>{data.WD_TITLE}</p>
</div> </div>
<span> <span>
<img <img
alt="" alt=""
className="todo-read-png" className="todo-read-png"
src={props.data && props.data.FLAG === 'D' ? '/img/read.png' : '/img/unread.png'} src={props.data && props.data.WD_FLAG === 'D' ? '/img/read.png' : '/img/unread.png'}
/> />
</span> </span>
</div> </div>
<div className="todo-content"> <div className="todo-content">
<p>当前状态:{data.STATUS}</p> <p>当前状态:{data.WD_STATUS}</p>
<p style={{marginTop: 15}}>发送人员:{data.FROMUSER_ALIASED}</p> <p style={{marginTop: 15}}>发送人员:{data.WD_FROMUSER_ALIASED}</p>
</div> </div>
<div className="todo-footer"> <div className="todo-footer">
<div> <div>
<p className="pos-aline"><img alt="" src="/img/time.png" className="footer-mes-img"/>更新时间:{data.RECEIVEDATE ? moment(data.RECEIVEDATE).format("YYYY-MM-DD HH:mm:ss") : ''}</p> <p className="pos-aline"><img alt="" src="/img/time.png" className="footer-mes-img"/>更新时间:{data.WD_RECEIVEDATE ? moment(data.WD_RECEIVEDATE).format("YYYY-MM-DD HH:mm:ss") : ''}</p>
<p className="pos-aline footer-mes-sec"><img alt="" src="/img/time-2.png" className="footer-mes-img"/>发起时间:{data.SENDTIME ? moment(data.SENDTIME).format("YYYY-MM-DD HH:mm:ss") : ''}</p> <p className="pos-aline footer-mes-sec"><img alt="" src="/img/time-2.png" className="footer-mes-img"/>发起时间:{data.WD_SENDDATE ? moment(data.WD_SENDDATE).format("YYYY-MM-DD HH:mm:ss") : ''}</p>
</div> </div>
{data && data.JJCD !=='无' && data.JJCD ==='紧急' && ( {data && data.WD_JJCD !=='无' && data.WD_JJCD ==='紧急' && (
<img <img
alt="" alt=""
className="todo-footer-img" className="todo-footer-img"
......
...@@ -14,7 +14,7 @@ const Footer = (props) => { ...@@ -14,7 +14,7 @@ const Footer = (props) => {
const getData = () => { const getData = () => {
axiosRequest({ axiosRequest({
method: 'post', method: 'post',
url: '/idtAppServiceV6//oApp/getUnDone', url: '/idtAppServiceV6/oApp/getWaitDealList',
}).then(res => { }).then(res => {
setBadge(res.total) setBadge(res.total)
}); });
......
...@@ -32,14 +32,14 @@ const Backlog = (props) => { ...@@ -32,14 +32,14 @@ const Backlog = (props) => {
scroll && current > 0 && window.scrollTo(0, document.body.scrollHeight); scroll && current > 0 && window.scrollTo(0, document.body.scrollHeight);
axiosRequest({ axiosRequest({
method: 'post', method: 'post',
url: '/idtAppServiceV6/oApp/getUnDone', url: '/idtAppServiceV6/oApp/getWaitDealList',
body: pageMap, body: pageMap,
}).then(res => { }).then(res => {
setStart(false); setStart(false);
setEnd(res.rows && res.rows.length >= 10) setEnd(res.dataList && res.dataList.length >= 10)
let result = end && res.rows ? data.concat(res.rows) : data; let result = end && res.dataList ? data.concat(res.dataList) : data;
res.rows && res.rows.length >= 10 && setCurrent(current + 1); res.dataList && res.dataList.length >= 10 && setCurrent(current + 1);
current > 0 && res.rows && res.rows.length === 0 && setCurrent(current - 1); current > 0 && res.dataList && res.dataList.length === 0 && setCurrent(current - 1);
setData(result); setData(result);
setLoading(false); setLoading(false);
}); });
...@@ -72,6 +72,7 @@ const Backlog = (props) => { ...@@ -72,6 +72,7 @@ const Backlog = (props) => {
return ( return (
<Document title="待办"> <Document title="待办">
<WingBlank> <WingBlank>
<div className="notice-box-content">
<WhiteSpace/> <WhiteSpace/>
<TopSearch onSearch={wordSearch}/> <TopSearch onSearch={wordSearch}/>
<WhiteSpace/> <WhiteSpace/>
...@@ -79,7 +80,7 @@ const Backlog = (props) => { ...@@ -79,7 +80,7 @@ const Backlog = (props) => {
data.length > 0 ? data.map((item, index) => ( data.length > 0 ? data.map((item, index) => (
<div key={index}> <div key={index}>
<WhiteSpace/> <WhiteSpace/>
<TodoCard data={item} onClick={() => checkLog(item.OPERATEID, item.UUID, item.FLOWTBID)}/> <TodoCard data={item} onClick={() => checkLog(item.WD_OPERATE_ID, item.WD_UUID, item.WD_FLOWTBID)}/>
</div> </div>
)) : <Empty/> )) : <Empty/>
...@@ -94,10 +95,13 @@ const Backlog = (props) => { ...@@ -94,10 +95,13 @@ const Backlog = (props) => {
</div> </div>
)} )}
{!loading && !end && data.length > 0 && ( {!loading && !end && data.length > 0 && (
<div className="extra-content">
<div className="content-end"> <div className="content-end">
—————— 我是有底线的 —————— —————— 我是有底线的 ——————
</div> </div>
</div>
)} )}
</div>
</WingBlank> </WingBlank>
</Document> </Document>
......
.notice-box-content{
min-height: 600px;
position: relative;
}
.extra-content{
height: 40px;
}
.content-end{ .content-end{
width: 100%;
text-align: center; text-align: center;
color: rgba(67, 67, 67, 0.2); color: rgba(67, 67, 67, 0.2);
margin-top: 20px; position: absolute;
bottom: 65px; right: 0;left: 0;
} }
.content-loading{ .content-loading{
margin-top: 15px; margin-top: 15px;
} }
...@@ -3,7 +3,6 @@ import './index.less' ...@@ -3,7 +3,6 @@ import './index.less'
const Index = (props) => { const Index = (props) => {
const {data, list, onClick} = props; const {data, list, onClick} = props;
console.log(list)
return ( return (
<div className="address-box"> <div className="address-box">
{data && data.length > 0 && data.map((item, index) => ( {data && data.length > 0 && data.map((item, index) => (
......
...@@ -20,19 +20,19 @@ const Notice = (props) => { ...@@ -20,19 +20,19 @@ const Notice = (props) => {
const [data, setData] = useState([]); const [data, setData] = useState([]);
const getData = (scroll) => { const getData = (scroll) => {
const pageMap ={searchWord, nowPage: current + 1, pageSize: 10, FLAG: tab}; const pageMap ={searchWord, nowPage: current + 1, pageSize: 10, WD_FLAG: tab};
setLoading(true); setLoading(true);
scroll && current > 0 && window.scrollTo(0, document.body.scrollHeight) scroll && current > 0 && window.scrollTo(0, document.body.scrollHeight)
axiosRequest({ axiosRequest({
method: 'post', method: 'post',
url: '/idtAppServiceV6/oApp/getUnDone', url: '/idtAppServiceV6/oApp/getWaitDealList',
body: pageMap, body: pageMap,
}).then(res => { }).then(res => {
setStart(false); setStart(false);
setEnd(res.rows && res.rows.length >= 10) setEnd(res.dataList && res.dataList.length >= 10)
let result = end && res.rows ? data.concat(res.rows) : data; let result = end && res.dataList ? data.concat(res.dataList) : data;
res.rows && res.rows.length >= 10 && setCurrent(current + 1); res.dataList && res.dataList.length >= 10 && setCurrent(current + 1);
current > 0 && res.rows && res.rows.length === 0 && setCurrent(current - 1); current > 0 && res.dataList && res.dataList.length === 0 && setCurrent(current - 1);
setData(result); setData(result);
setLoading(false); setLoading(false);
}); });
...@@ -92,13 +92,14 @@ const Notice = (props) => { ...@@ -92,13 +92,14 @@ const Notice = (props) => {
return ( return (
<Document title="通知"> <Document title="通知">
<WingBlank> <WingBlank>
<div className="notice-box-content">
<WhiteSpace/> <WhiteSpace/>
<TopNotice onSearch={tabSearch} tabChange={tabChange}/> <TopNotice onSearch={tabSearch} tabChange={tabChange}/>
{ start ? <div> <WhiteSpace/><Skeleton/><WhiteSpace/><Skeleton/><WhiteSpace/><Skeleton/></div> : ( !start && ( { start ? <div> <WhiteSpace/><Skeleton/><WhiteSpace/><Skeleton/><WhiteSpace/><Skeleton/></div> : ( !start && (
data.length > 0 ? data.map((item, index) => ( data.length > 0 ? data.map((item, index) => (
<div key={index}> <div key={index}>
<WhiteSpace/> <WhiteSpace/>
<TodoCard data={item} onClick={() => checkLog(item.OPERATEID, item.UUID, item.FLOWTBID)}/> <TodoCard data={item} onClick={() => checkLog(item.WD_OPERATE_ID, item.WD_UUID, item.WD_FLOWTBID)}/>
</div> </div>
)) : <Empty/> )) : <Empty/>
...@@ -112,10 +113,13 @@ const Notice = (props) => { ...@@ -112,10 +113,13 @@ const Notice = (props) => {
</div> </div>
)} )}
{!loading && !end && data.length > 0 && ( {!loading && !end && data.length > 0 && (
<div className="extra-content">
<div className="content-end"> <div className="content-end">
—————— 我是有底线的 —————— —————— 我是有底线的 ——————
</div> </div>
</div>
)} )}
</div>
</WingBlank> </WingBlank>
</Document> </Document>
......
.content-loading{
margin-top: 15px;
}
.notice-box-content{
position: relative;
}
.extra-content{
height: 40px;
}
.content-end{ .content-end{
width: 100%;
text-align: center; text-align: center;
color: rgba(67, 67, 67, 0.2); color: rgba(67, 67, 67, 0.2);
margin-top: 20px; position: absolute;
} bottom: 5px; right: 0;left: 0;
.content-loading{
margin-top: 15px;
} }
...@@ -8,6 +8,7 @@ import Document from 'react-document-title' ...@@ -8,6 +8,7 @@ import Document from 'react-document-title'
import Empty from '../Empty' import Empty from '../Empty'
import Loading from "../../components/Loading"; import Loading from "../../components/Loading";
import queryString from 'query-string' import queryString from 'query-string'
import './index.less'
const Notice = (props) => { const Notice = (props) => {
const {type, name} = props.match.params; const {type, name} = props.match.params;
...@@ -104,9 +105,11 @@ const Notice = (props) => { ...@@ -104,9 +105,11 @@ const Notice = (props) => {
} }
setTabData(menuG); setTabData(menuG);
}, []); }, []);
console.log(!loading && !end && data.length > 0 )
return ( return (
<Document title="通知"> <Document title="通知">
<WingBlank> <WingBlank>
<div className="notice-box-content">
<WhiteSpace/> <WhiteSpace/>
<TopNotice tabs={tabData} onSearch={tabSearch} tabChange={tabChange}/> <TopNotice tabs={tabData} onSearch={tabSearch} tabChange={tabChange}/>
{ start ? <div> <WhiteSpace/><Skeleton/><WhiteSpace/><Skeleton/><WhiteSpace/><Skeleton/></div> : ( !start && ( { start ? <div> <WhiteSpace/><Skeleton/><WhiteSpace/><Skeleton/><WhiteSpace/><Skeleton/></div> : ( !start && (
...@@ -127,10 +130,13 @@ const Notice = (props) => { ...@@ -127,10 +130,13 @@ const Notice = (props) => {
</div> </div>
)} )}
{!loading && !end && data.length > 0 && ( {!loading && !end && data.length > 0 && (
<div className="extra-content">
<div className="content-end"> <div className="content-end">
—————— 我是有底线的 —————— —————— 我是有底线的 ——————
</div> </div>
</div>
)} )}
</div>
</WingBlank> </WingBlank>
</Document> </Document>
......
...@@ -4,3 +4,15 @@ ...@@ -4,3 +4,15 @@
overflow: auto; overflow: auto;
padding-bottom: 10px padding-bottom: 10px
} }
.notice-box-content{
position: relative;
}
.extra-content{
height: 40px;
}
.content-end{
text-align: center;
color: rgba(67, 67, 67, 0.2);
position: absolute;
bottom: 5px; right: 0;left: 0;
}
...@@ -31,7 +31,7 @@ export const createAPI = (baseURL) => { ...@@ -31,7 +31,7 @@ export const createAPI = (baseURL) => {
return (conf = {}) => { return (conf = {}) => {
let opts = conf.opts || {}; let opts = conf.opts || {};
let urlParams = ''; let urlParams = '';
console.log(conf); // console.log(conf);
let headers = { ...defaultHeaders, ...opts.headers }; let headers = { ...defaultHeaders, ...opts.headers };
if (conf.opts) { if (conf.opts) {
......
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