Commit 3e121d67 by 姜雷

修改权限编码

parent 8bd1072c
......@@ -132,23 +132,23 @@ class App extends Component {
<Route
path="/publicCar"
render={props =>
this.validateUserinfo(props, 'CSXY0003', PublicCar)
this.validateUserinfo(props, 'CSHQ0003', PublicCar)
}
/>
<Route
path="/publicCarDeal"
render={props =>
this.validateUserinfo(props, 'CSXY0004', PublicCarDeal)
this.validateUserinfo(props, 'CSHQ0004', PublicCarDeal)
}
/>
<Route
path="/Repair"
render={props => this.validateUserinfo(props, 'CSXY0001', Repair)}
render={props => this.validateUserinfo(props, 'CSHQ0001', Repair)}
/>
<Route
path="/RepairDeal"
render={props =>
this.validateUserinfo(props, 'CSXY0002', RepairDeal)
this.validateUserinfo(props, 'CSHQ0002', RepairDeal)
}
/>
<Route component={NoMatch} />
......
......@@ -36,25 +36,25 @@ export class Index extends React.Component {
<div className={styles.iconBox}>
<div
className={styles.iconItem}
onClick={() => this.validate('CSXY0001', '/Repair')}
onClick={() => this.validate('CSHQ0001', '/Repair')}
>
<img src={repairIcon} alt="" />
</div>
<div
className={styles.iconItem}
onClick={() => this.validate('CSXY0003', '/publicCar')}
onClick={() => this.validate('CSHQ0003', '/publicCar')}
>
<img src={publicCarIcon} alt="" />
</div>
<div
className={styles.iconItem}
onClick={() => this.validate('CSXY0002', '/RepairDeal')}
onClick={() => this.validate('CSHQ0002', '/RepairDeal')}
>
<img src={repairDealIcon} alt="" />
</div>
<div
className={styles.iconItem}
onClick={() => this.validate('CSXY0004', '/publicCarDeal')}
onClick={() => this.validate('CSHQ0004', '/publicCarDeal')}
>
<img src={publicCarDealIcon} alt="" />
</div>
......
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