修改机构名称

This commit is contained in:
闫晓茹 2024-04-29 16:35:54 +08:00
parent 2e51001c54
commit e6fbff5288

View File

@ -408,7 +408,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="所属机构" prop="agencyName">
<el-form-item label="所属机构" prop="hospitalAgencyName">
<el-cascader
clearable
:props="{ checkStrictly: true }"
@ -418,7 +418,7 @@
v-model="form.hospitalAgencyId"
:show-all-levels="false"
:placeholder="
form.agencyName ? form.agencyName : '请选择所属机构'
form.hospitalAgencyName ? form.hospitalAgencyName : '请选择所属机构'
"
ref="cascader"
:key="isResouceShow"
@ -683,7 +683,7 @@ export default {
pageSize: 10,
parentDepartmentId: null,
hospitalAgencyId: null,
agencyName: null,
hospitalAgencyName: null,
departmentName: null,
departmentCode: null,
departmentType: null,
@ -724,7 +724,7 @@ export default {
id: "",
//
rules: {
agencyName: [
hospitalAgencyName: [
{ required: true, message: "所属机构不能为空", trigger: "blur" },
],
departmentName: [
@ -838,10 +838,10 @@ export default {
if (this.form.hospitalAgencyId) {
const arr = this.$refs["cascader"].getCheckedNodes()[0].pathLabels;
// console.log(arr, "5555555");
this.form.agencyName = arr.slice(-1).join(",");
this.form.hospitalAgencyName = arr.slice(-1).join(",");
// console.log(this.form.agencyName);
} else {
this.form.agencyName = "";
this.form.hospitalAgencyName = "";
}
}
},
@ -935,7 +935,7 @@ export default {
id: null,
parentDepartmentId: null,
hospitalAgencyId: null,
agencyName: null,
hospitalAgencyName: null,
departmentName: null,
departmentCode: null,
departmentType: null,