修复:违章bug
This commit is contained in:
@@ -41,9 +41,21 @@ const List: React.FC = () => {
|
|||||||
if (showLoading) setLoading(true)
|
if (showLoading) setLoading(true)
|
||||||
setRefreshing(true)
|
setRefreshing(true)
|
||||||
|
|
||||||
const res = await pageHjmViolation({
|
const where = {
|
||||||
keywords: keywords.trim(),
|
keywords: keywords.trim(),
|
||||||
})
|
}
|
||||||
|
|
||||||
|
const roleCode = Taro.getStorageSync('RoleCode');
|
||||||
|
if(roleCode == 'kuaidi'){
|
||||||
|
if(Taro.getStorageSync('OrganizationId') == Taro.getStorageSync('OrganizationParentId')){
|
||||||
|
// @ts-ignore
|
||||||
|
where.organizationParentId = Taro.getStorageSync('OrganizationParentId');
|
||||||
|
}else {
|
||||||
|
// @ts-ignore
|
||||||
|
where.organizationId = Taro.getStorageSync('OrganizationId');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const res = await pageHjmViolation(where)
|
||||||
|
|
||||||
setList(res?.list || [])
|
setList(res?.list || [])
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -58,22 +58,24 @@ const UserCell = () => {
|
|||||||
</Cell.Group>
|
</Cell.Group>
|
||||||
{
|
{
|
||||||
(roleName === 'kuaidi' || roleName == 'zhandian') && (
|
(roleName === 'kuaidi' || roleName == 'zhandian') && (
|
||||||
<Cell.Group divider={true}>
|
<>
|
||||||
<Cell
|
<Cell.Group divider={true}>
|
||||||
className="nutui-cell-clickable"
|
<Cell
|
||||||
title={
|
className="nutui-cell-clickable"
|
||||||
<div style={{display: 'inline-flex', alignItems: 'center'}}>
|
title={
|
||||||
<ShieldCheck size={16}/>
|
<div style={{display: 'inline-flex', alignItems: 'center'}}>
|
||||||
<span className={'pl-3 text-sm'}>实名认证审核</span>
|
<ShieldCheck size={16}/>
|
||||||
</div>
|
<span className={'pl-3 text-sm'}>实名认证审核</span>
|
||||||
}
|
</div>
|
||||||
align="center"
|
}
|
||||||
extra={<ArrowRight color="#cccccc" size={18}/>}
|
align="center"
|
||||||
onClick={() => {
|
extra={<ArrowRight color="#cccccc" size={18}/>}
|
||||||
navTo('/user/userVerify/admin', true)
|
onClick={() => {
|
||||||
}}
|
navTo('/user/userVerify/admin', true)
|
||||||
/>
|
}}
|
||||||
</Cell.Group>
|
/>
|
||||||
|
</Cell.Group>
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
@@ -156,6 +158,27 @@ const UserCell = () => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
roleName === 'kuaidi' && (
|
||||||
|
<Cell.Group divider={true}>
|
||||||
|
<Cell
|
||||||
|
className="nutui-cell-clickable"
|
||||||
|
title={
|
||||||
|
<div style={{display: 'inline-flex', alignItems: 'center'}}>
|
||||||
|
<Truck size={16}/>
|
||||||
|
<span className={'pl-3 text-sm'}>违章记录</span>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
align="center"
|
||||||
|
extra={<ArrowRight color="#cccccc" size={18}/>}
|
||||||
|
onClick={() => {
|
||||||
|
navTo('/hjm/violation/list', true)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Cell.Group>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
{/*<Cell.Group divider={true} description={*/}
|
{/*<Cell.Group divider={true} description={*/}
|
||||||
{/* <div style={{display: 'inline-flex', alignItems: 'center'}}>*/}
|
{/* <div style={{display: 'inline-flex', alignItems: 'center'}}>*/}
|
||||||
{/* <span style={{marginTop: '12px'}}>管理</span>*/}
|
{/* <span style={{marginTop: '12px'}}>管理</span>*/}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {BaseUrl, TenantId} from "@/utils/config";
|
|||||||
let baseUrl = BaseUrl
|
let baseUrl = BaseUrl
|
||||||
|
|
||||||
if(process.env.NODE_ENV === 'development'){
|
if(process.env.NODE_ENV === 'development'){
|
||||||
// baseUrl = 'http://localhost:9000/api'
|
baseUrl = 'http://localhost:9000/api'
|
||||||
}
|
}
|
||||||
export function request<T>(options:any) {
|
export function request<T>(options:any) {
|
||||||
const token = Taro.getStorageSync('access_token');
|
const token = Taro.getStorageSync('access_token');
|
||||||
|
|||||||
Reference in New Issue
Block a user