完成:黄家明项目的开发并存档
This commit is contained in:
@@ -3,6 +3,7 @@ import {Search} from '@nutui/icons-react-taro'
|
||||
import {Button, Input, InfiniteLoading} from '@nutui/nutui-react-taro'
|
||||
import {pageHjmCar} from "@/api/hjm/hjmCar";
|
||||
import {HjmCar} from "@/api/hjm/hjmCar/model";
|
||||
import Taro from '@tarojs/taro'
|
||||
import './location.scss'
|
||||
import BestSellers from "./BestSellers";
|
||||
|
||||
@@ -19,8 +20,25 @@ const List = () => {
|
||||
}
|
||||
|
||||
const reload = () => {
|
||||
// 搜索条件
|
||||
const where = {status: 1,deleted: 0, keywords}
|
||||
// 判断身份
|
||||
const roleCode = Taro.getStorageSync('RoleCode');
|
||||
if(roleCode == 'kuaidiyuan'){
|
||||
// @ts-ignore
|
||||
where.driverId = Taro.getStorageSync('UserId')
|
||||
}
|
||||
if(roleCode == 'zhandian'){
|
||||
// @ts-ignore
|
||||
where.organizationId = Taro.getStorageSync('OrganizationId');
|
||||
}
|
||||
if(roleCode == 'kuaidi'){
|
||||
// @ts-ignore
|
||||
where.organizationParentId = Taro.getStorageSync('OrganizationParentId');
|
||||
}
|
||||
|
||||
// 获取车辆列表
|
||||
pageHjmCar({status: 1,deleted: 0, keywords}).then(res => {
|
||||
pageHjmCar(where).then(res => {
|
||||
setList(res?.list || [])
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user