From b4b50f902f11d96eae68f35d51923e5ef428a10a Mon Sep 17 00:00:00 2001 From: zhouxin Date: Tue, 28 Feb 2023 17:32:18 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"(+)=E6=B7=BB=E5=8A=A0=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E5=9C=A8=E8=81=8C=E5=AD=97=E6=AE=B5"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 6f59ac71765e7d38c7f4845b92a7ae3681d6420b. --- .../lib/controllers/salesDistribution/index.js | 4 +--- .../salersDistribution/personnelDistribution.jsx | 16 +--------------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/api/app/lib/controllers/salesDistribution/index.js b/api/app/lib/controllers/salesDistribution/index.js index 730178f..7da2d1f 100644 --- a/api/app/lib/controllers/salesDistribution/index.js +++ b/api/app/lib/controllers/salesDistribution/index.js @@ -8,7 +8,7 @@ async function salesList(ctx) { const { keywordTarget, keyword, limit, page, state, hiredateStart, hiredateEnd, marital, native, workPlace, - orderBy, orderDirection, placeSearch,userActiveStatus + orderBy, orderDirection, placeSearch } = ctx.query const userRes = await memberList({ @@ -55,12 +55,10 @@ async function salesList(ctx) { department: info.departmrnt, hireDate: info.hiredate,//入职时间 regularDate: info.regularDate,//转正时间 - userActiveStatus:info.userActiveStatus, ...d.dataValues } rslt.push(item); }) - rslt = rslt.filter(i => i.userActiveStatus == userActiveStatus) ctx.status = 200; ctx.body = { count: res.count, diff --git a/web/client/src/sections/humanAffairs/containers/salersDistribution/personnelDistribution.jsx b/web/client/src/sections/humanAffairs/containers/salersDistribution/personnelDistribution.jsx index 6bc65a2..a40df0c 100644 --- a/web/client/src/sections/humanAffairs/containers/salersDistribution/personnelDistribution.jsx +++ b/web/client/src/sections/humanAffairs/containers/salersDistribution/personnelDistribution.jsx @@ -12,7 +12,6 @@ const PersonnelDistribution = (props) => { const { dispatch, actions } = props const { humanAffairs } = actions; const [keywordTarget, setKeywordTarget] = useState('dep'); - const [userActiveStatus, setuserActiveStatus] = useState(1); const [keyword, setKeyword] = useState('');//搜索内容 const [limits, setLimits] = useState()//每页实际条数 const [query, setQuery] = useState({ limit: 10, page: 0 }); //页码信息 @@ -38,7 +37,7 @@ const PersonnelDistribution = (props) => { let kt = keywordTarget == 'place' ? '' : keywordTarget; let k = keywordTarget == 'place' ? '' : keyword; let placeSearch = keywordTarget == 'place' ? keyword : ''; - dispatch(humanAffairs.getSalesList({ keywordTarget: kt, keyword: k,userActiveStatus, placeSearch, ...query })).then(r => { + dispatch(humanAffairs.getSalesList({ keywordTarget: kt, keyword: k, placeSearch, ...query })).then(r => { if (r.success) { setTableData(r.payload?.data?.rows); setLimits(r.payload?.data?.count) @@ -118,12 +117,6 @@ const PersonnelDistribution = (props) => { let arrStr = text.map(t => t.name); return getMultis(arrStr); } - },{ - title: '在职状态', - dataIndex: 'userActiveStatus', - key: 'userActiveStatus', - width: 200, - render: (text, r, index) => text == '1'?'在职':text == '2'?'离职':'特殊账号-特殊状态' }, { title: '销售区域(省/直辖市)', dataIndex: 'provinces', @@ -234,13 +227,6 @@ const PersonnelDistribution = (props) => { 地区 -
- -
} showClear