Commit 3e121d67 by 姜雷

修改权限编码

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