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

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