| | |
| | | </el-collapse> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer1"> |
| | | <el-button type="primary" @click="submitForm">确 定</el-button> |
| | | <el-button :disabled="submit" type="primary" @click="submitForm">确 定</el-button> |
| | | <el-button @click="cancel">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | single: true, |
| | | // 非多个禁用 |
| | | multiple: true, |
| | | submit: false, |
| | | // 显示搜索条件 |
| | | showSearch: true, |
| | | // 总条数 |
| | |
| | | this.ids = selection.map((item) => item.userId); |
| | | this.single = selection.length != 1; |
| | | this.multiple = !selection.length; |
| | | if (selection.length >= 1) { |
| | | this.queryParams.userName = selection[0].userName |
| | | } |
| | | }, |
| | | |
| | | // 更多操作触发 |
| | |
| | | }); |
| | | }, |
| | | |
| | | handleUp(row) { |
| | | handleUp(row) { |
| | | this.title = "用户信息维护"; |
| | | |
| | | // this.form = row; |
| | | |
| | | this.open = true; |
| | | this.form = row; |
| | | this.form.hospId = Number(row.hospId); |
| | | // listUser(this.addDateRange(this.queryParams, this.dateRange)).then( |
| | | // (response) => { |
| | | // response.rows.forEach((item, index) => { |
| | | // this.form = item; |
| | | // }); |
| | | // } |
| | | // ); |
| | | this.submit = false |
| | | listUser(this.addDateRange(this.queryParams, this.dateRange)).then( |
| | | (response) => { |
| | | response.rows.forEach((item, index) => { |
| | | this.form = item; |
| | | }); |
| | | } |
| | | ); |
| | | }, |
| | | select(val) { |
| | | this.postList.forEach((item) => { |
| | |
| | | // this.forms = this.form.userInfo; |
| | | // } |
| | | this.open = true; |
| | | this.submit = false |
| | | this.title = "用户信息维护"; |
| | | }, |
| | | |
| | |
| | | this.$refs["form"].validate((valid) => { |
| | | if (valid) { |
| | | if (_this.form.userId !== undefined) { |
| | | _this.submit = true |
| | | updateUser(_this.form).then((response) => { |
| | | _this.$modal.msgSuccess("修改成功"); |
| | | _this.open = false; |
| | | _this.submit = false |
| | | _this.getList(); |
| | | }); |
| | | } else { |