添加账号密码用户类型校验

This commit is contained in:
闫晓茹 2023-11-17 09:49:30 +08:00
parent e04cef40d5
commit 1f0e6cf59d

View File

@ -320,7 +320,7 @@
</el-form-item> </el-form-item>
<el-form-item label="账号" prop="personAccount"> <el-form-item label="账号" prop="personAccount">
<el-input <el-input
:disabled="single" :disabled="singlepersonAccount"
maxlength="20" maxlength="20"
style="width: 210px" style="width: 210px"
v-model.number="form.personAccount" v-model.number="form.personAccount"
@ -665,7 +665,7 @@ export default {
cb(new Error("请输入正确的联系电话")); cb(new Error("请输入正确的联系电话"));
}; };
return { return {
single:false, singlepersonAccount:false,
departmentIdtype:false, departmentIdtype:false,
statuslist: [ statuslist: [
{ {
@ -1049,7 +1049,7 @@ export default {
}, },
// //
addresetQuery() { addresetQuery() {
this.single=true
this.hospitalqueryParams = { this.hospitalqueryParams = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
@ -1072,6 +1072,7 @@ export default {
this.infolist = response.rows; this.infolist = response.rows;
this.total2 = response.total; this.total2 = response.total;
this.loading = false; this.loading = false;
}); });
}, },
// //
@ -1159,7 +1160,7 @@ export default {
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.single=false this.singlepersonAccount=false
this.form = { this.form = {
hospitalPersonCertificateList: [ hospitalPersonCertificateList: [
{ {
@ -1178,6 +1179,8 @@ export default {
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.singlepersonAccount=true
this.reset(); this.reset();
const id = row.id || this.ids; const id = row.id || this.ids;
getHospitalPerson(id).then((response) => { getHospitalPerson(id).then((response) => {