From 3b528b0ff28b5f5119d8749c09da8545cd253b77 Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期三, 16 十月 2024 18:33:26 +0800 Subject: [PATCH] fix: 小bug --- src/components/page/user/index.vue | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/page/user/index.vue b/src/components/page/user/index.vue index 55bbea8..a89c1d4 100644 --- a/src/components/page/user/index.vue +++ b/src/components/page/user/index.vue @@ -38,6 +38,9 @@ <el-form-item label="鐧诲綍鍚�" prop="loginName" :rules="[{required: true, message: '璇疯緭鍏ョ櫥褰曞悕', trigger: 'blur'}]"> <el-input v-model="formData.loginName" auto-complete="off"></el-input> </el-form-item> + <el-form-item label="瀵嗙爜" prop="password" :rules="[{required: true, message: '璇疯緭鍏ュ瘑鐮�', trigger: 'blur'}]"> + <el-input v-model="formData.password" auto-complete="off"></el-input> + </el-form-item> <el-form-item label="濮撳悕" prop="name" :rules="[{required: true, message: '璇疯緭鍏ュ鍚�', trigger: 'blur'}]"> <el-input v-model="formData.name" auto-complete="off"></el-input> </el-form-item> @@ -48,6 +51,7 @@ <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"> @@ -99,7 +103,7 @@ 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'}); @@ -111,11 +115,11 @@ }); }, 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.parkList = res.data.data + this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/park/findAll',null,res => { + this.parkList = res.data }); }, onSearch() { @@ -151,7 +155,7 @@ 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(); }) -- Gitblit v1.9.1