| | |
| | | <template slot-scope="scope"> |
| | | <p v-if="scope.row.type==0">停车场管理员</p> |
| | | <p v-if="scope.row.type==1">执法人员</p> |
| | | <p v-if="scope.row.type==2">系统管理员</p> |
| | | <p v-if="scope.row.type==3">手持终端管理员</p> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" fixed="right" width="150" align="center"> |
| | |
| | | </el-form-item> |
| | | <el-form-item label="人员类型" prop="type" :rules="[{required: true, message: '请选择人员类型', trigger: 'change'}]"> |
| | | <el-select v-model="formData.type"> |
| | | <el-option label="停车场管理员" :value=0></el-option> |
| | | <el-option label="停车场后台管理员" :value=0></el-option> |
| | | <el-option label="执法人员" :value=1></el-option> |
| | | <el-option label="系统管理员" :value=2></el-option> |
| | | <el-option label="手持终端管理员" :value=3></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="管理停车场" prop="parkIds"> |
| | |
| | | state.resultAsyncRoutes = state.items2.filter((item)=>item.id == 2); |
| | | localStorage.setItem('userRouters',JSON.stringify(state.resultAsyncRoutes)); |
| | | console.log(state.resultAsyncRoutes,state.roles,'0泊车') |
| | | break; |
| | | break; |
| | | case 1: |
| | | state.resultAsyncRoutes =state.items.filter((item)=>item.id == 3); |
| | | localStorage.setItem('userRouters',JSON.stringify(state.resultAsyncRoutes)); |
| | | console.log(state.resultAsyncRoutes,state.roles,'1执法') |
| | | break; |
| | | case 2: |
| | | case 2: |
| | | state.resultAsyncRoutes = state.items; |
| | | localStorage.setItem('userRouters',JSON.stringify(state.resultAsyncRoutes)); |
| | | console.log(state.resultAsyncRoutes,state.roles,' 全部')// 不用修改 |
| | | break; |
| | | case 3: |
| | | state.resultAsyncRoutes = state.items3.filter((item)=>item.id == 2); |
| | | localStorage.setItem('userRouters',JSON.stringify(state.resultAsyncRoutes)); |
| | | console.log(state.resultAsyncRoutes,state.roles,'3APP端') |
| | | break; |
| | | |
| | | default: |
| | | break; |
| | | break; |
| | | } |
| | | |
| | | }, |
| | |
| | | }, |
| | | |
| | | ], |
| | | items3: [ |
| | | { |
| | | id:2, |
| | | icon: 'el-icon-folder-opened', |
| | | indexUrl: '2', |
| | | name: '智慧泊车管理', |
| | | children:[ |
| | | { |
| | | icon: 'el-icon-document', |
| | | name: '车辆入场管理', |
| | | parentId: 2, |
| | | indexUrl: "enterPark" |
| | | }, |
| | | { |
| | | icon: 'el-icon-document', |
| | | name: '车辆出场管理', |
| | | parentId: 2, |
| | | indexUrl: "outPark" |
| | | }, |
| | | { |
| | | icon: 'el-icon-document', |
| | | name: '场内车辆管理', |
| | | parentId: 2, |
| | | indexUrl: "enterParkCar" |
| | | }, |
| | | { |
| | | icon: 'el-icon-document', |
| | | name: '手动抬杆记录', |
| | | parentId: 2, |
| | | indexUrl: "barrierOpenLog" |
| | | }, |
| | | { |
| | | icon: 'el-icon-document', |
| | | name: '订单统计', |
| | | parentId: 2, |
| | | indexUrl: "orderRecord" |
| | | }, |
| | | |
| | | ] |
| | | }, |
| | | |
| | | ], |
| | | } |