正在显示
1 个修改的文件
包含
11 行增加
和
11 行删除
@@ -71,9 +71,9 @@ | @@ -71,9 +71,9 @@ | ||
71 | <el-form-item label="账号"> | 71 | <el-form-item label="账号"> |
72 | <span>{{editForm.username}}</span> | 72 | <span>{{editForm.username}}</span> |
73 | </el-form-item> | 73 | </el-form-item> |
74 | - <el-form-item label="密码" prop="password"> | ||
75 | - <el-input v-model="editForm.password" auto-complete="off" type="password" show-password></el-input> | ||
76 | - </el-form-item> | 74 | +<!-- <el-form-item label="密码" prop="password">--> |
75 | +<!-- <el-input v-model="editForm.password" auto-complete="off" type="password" show-password></el-input>--> | ||
76 | +<!-- </el-form-item>--> | ||
77 | <el-form-item label="姓名" prop="realname"> | 77 | <el-form-item label="姓名" prop="realname"> |
78 | <el-input v-model="editForm.realname" auto-complete="off"></el-input> | 78 | <el-input v-model="editForm.realname" auto-complete="off"></el-input> |
79 | </el-form-item> | 79 | </el-form-item> |
@@ -224,13 +224,13 @@ | @@ -224,13 +224,13 @@ | ||
224 | userId: 1, | 224 | userId: 1, |
225 | username: '', | 225 | username: '', |
226 | password: '', | 226 | password: '', |
227 | - sex: 1, | ||
228 | - creattime: '', | 227 | + sex: '1', |
228 | + creattime: undefined, | ||
229 | address: '', | 229 | address: '', |
230 | realname: '', | 230 | realname: '', |
231 | email: '', | 231 | email: '', |
232 | mobilephone: '', | 232 | mobilephone: '', |
233 | - state: 'true' | 233 | + state: true |
234 | }, | 234 | }, |
235 | 235 | ||
236 | addFormVisible: false,//新增界面是否显示 | 236 | addFormVisible: false,//新增界面是否显示 |
@@ -395,11 +395,11 @@ | @@ -395,11 +395,11 @@ | ||
395 | this.$confirm('确认提交吗?', '提示', {}).then(() => { | 395 | this.$confirm('确认提交吗?', '提示', {}).then(() => { |
396 | this.editLoading = true; | 396 | this.editLoading = true; |
397 | //NProgress.start(); | 397 | //NProgress.start(); |
398 | - let para = Object.assign({}, this.editForm); | 398 | + // let para = Object.assign({}, this.editForm); |
399 | //不需要提交的 去掉,后端不好接收 | 399 | //不需要提交的 去掉,后端不好接收 |
400 | - para.authorities = null; | ||
401 | - para.permissions = null; | ||
402 | - para.roles = null; | 400 | + this.editForm.authorities = null; |
401 | + this.editForm.permissions = null; | ||
402 | + this.editForm.roles = null; | ||
403 | // para.birth = (!para.birth || para.birth == '') ? '' : util.formatDate.format(new Date(para.birth), 'yyyy-MM-dd'); | 403 | // para.birth = (!para.birth || para.birth == '') ? '' : util.formatDate.format(new Date(para.birth), 'yyyy-MM-dd'); |
404 | /* | 404 | /* |
405 | 查询之后格式this.filters.column.create_start_date中日期发生变化; | 405 | 查询之后格式this.filters.column.create_start_date中日期发生变化; |
@@ -410,7 +410,7 @@ | @@ -410,7 +410,7 @@ | ||
410 | /*moment 安装 npm install moment --save*/ | 410 | /*moment 安装 npm install moment --save*/ |
411 | // para.creattime = moment(para.creattime).format('YYYY-MM-DD HH:mm:ss'); | 411 | // para.creattime = moment(para.creattime).format('YYYY-MM-DD HH:mm:ss'); |
412 | this.editLoading = false; | 412 | this.editLoading = false; |
413 | - editUser(para).then((res) => { | 413 | + editUser(this.editForm).then((res) => { |
414 | 414 | ||
415 | //NProgress.done(); | 415 | //NProgress.done(); |
416 | this.$message({ | 416 | this.$message({ |
-
请 注册 或 登录 后发表评论