| | |
| | | <el-select v-model="formData.type"> |
| | | <el-option label="停车场管理员" :value=0></el-option> |
| | | <el-option label="执法人员" :value=1></el-option> |
| | | <el-option label="系统管理员" :value=2></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(); |
| | | }) |