|
@ -9,7 +9,7 @@ import { getRoadSpotDetail } from '@/services/api' |
|
|
import './index.scss' |
|
|
import './index.scss' |
|
|
|
|
|
|
|
|
function Index() { |
|
|
function Index() { |
|
|
const { item } = useRouter().params |
|
|
const { item, isOld } = useRouter().params |
|
|
const spotItem = item ? JSON.parse(decodeURIComponent(item)) : null |
|
|
const spotItem = item ? JSON.parse(decodeURIComponent(item)) : null |
|
|
|
|
|
|
|
|
const [keyword, setKeyword] = useState('') |
|
|
const [keyword, setKeyword] = useState('') |
|
@ -63,6 +63,10 @@ function Index() { |
|
|
type='primary' |
|
|
type='primary' |
|
|
size='small' |
|
|
size='small' |
|
|
onClick={() => Taro.navigateTo({ url: `/packages/maintenanceSpotCheck/spotChange/index?detail=${encodeURIComponent(JSON.stringify(item))}&spot=${encodeURIComponent(JSON.stringify(spotItem))}` })} |
|
|
onClick={() => Taro.navigateTo({ url: `/packages/maintenanceSpotCheck/spotChange/index?detail=${encodeURIComponent(JSON.stringify(item))}&spot=${encodeURIComponent(JSON.stringify(spotItem))}` })} |
|
|
|
|
|
disabled={ |
|
|
|
|
|
isOld === 'true' || |
|
|
|
|
|
item.roadSpotCheckPreview?.roadSpotCheckChangeLogs?.some(l => l.changeRoadId == item.roadId) |
|
|
|
|
|
} |
|
|
>调整</AtButton> |
|
|
>调整</AtButton> |
|
|
</View> |
|
|
</View> |
|
|
</View> |
|
|
</View> |
|
|