| | |
| | | <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"> |
| | |
| | | this.formData.parkIds = this.parkIds.toString() |
| | | this.$refs['formData'].validate((valid) => { |
| | | if (valid) { |
| | | this.$byutil.postData(this, this.$systemconfig.basePath + '/user/save', this.formData, res => { |
| | | this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/user/save', this.formData, res => { |
| | | this.$refs['formData'].resetFields(); |
| | | this.flag=false; |
| | | this.$message({message: '保存成功', type: 'success'}); |
| | |
| | | }); |
| | | }, |
| | | loadData() { |
| | | this.$byutil.loadPageData(this, this.$systemconfig.basePath + '/user/findPage', this.searchForm); |
| | | this.$byutil.loadPageData(this, this.$systemconfig.basePath + '/ffzf/user/findPage', this.searchForm); |
| | | }, |
| | | getParkList(){ |
| | | this.$byutil.postData(this, this.$systemconfig.basePath + '/park/findAll',null,res => { |
| | | this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/park/findAll',null,res => { |
| | | this.parkList = res.data |
| | | }); |
| | | }, |
| | |
| | | console.log(this.parkIds) |
| | | }, |
| | | onDelete(index, row) { |
| | | this.$byutil.deleteData(this,this.$systemconfig.basePath+"/user/delete",{id:row.id}, res => { |
| | | this.$byutil.deleteData(this,this.$systemconfig.basePath+"/ffzf/user/delete",{id:row.id}, res => { |
| | | this.$message({message: '删除成功', type: 'success'}); |
| | | this.loadData(); |
| | | }) |