修改机构名称
This commit is contained in:
parent
2e51001c54
commit
e6fbff5288
@ -408,7 +408,7 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="所属机构" prop="agencyName">
|
<el-form-item label="所属机构" prop="hospitalAgencyName">
|
||||||
<el-cascader
|
<el-cascader
|
||||||
clearable
|
clearable
|
||||||
:props="{ checkStrictly: true }"
|
:props="{ checkStrictly: true }"
|
||||||
@ -418,7 +418,7 @@
|
|||||||
v-model="form.hospitalAgencyId"
|
v-model="form.hospitalAgencyId"
|
||||||
:show-all-levels="false"
|
:show-all-levels="false"
|
||||||
:placeholder="
|
:placeholder="
|
||||||
form.agencyName ? form.agencyName : '请选择所属机构'
|
form.hospitalAgencyName ? form.hospitalAgencyName : '请选择所属机构'
|
||||||
"
|
"
|
||||||
ref="cascader"
|
ref="cascader"
|
||||||
:key="isResouceShow"
|
:key="isResouceShow"
|
||||||
@ -683,7 +683,7 @@ export default {
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
parentDepartmentId: null,
|
parentDepartmentId: null,
|
||||||
hospitalAgencyId: null,
|
hospitalAgencyId: null,
|
||||||
agencyName: null,
|
hospitalAgencyName: null,
|
||||||
departmentName: null,
|
departmentName: null,
|
||||||
departmentCode: null,
|
departmentCode: null,
|
||||||
departmentType: null,
|
departmentType: null,
|
||||||
@ -724,7 +724,7 @@ export default {
|
|||||||
id: "",
|
id: "",
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
agencyName: [
|
hospitalAgencyName: [
|
||||||
{ required: true, message: "所属机构不能为空", trigger: "blur" },
|
{ required: true, message: "所属机构不能为空", trigger: "blur" },
|
||||||
],
|
],
|
||||||
departmentName: [
|
departmentName: [
|
||||||
@ -838,10 +838,10 @@ export default {
|
|||||||
if (this.form.hospitalAgencyId) {
|
if (this.form.hospitalAgencyId) {
|
||||||
const arr = this.$refs["cascader"].getCheckedNodes()[0].pathLabels;
|
const arr = this.$refs["cascader"].getCheckedNodes()[0].pathLabels;
|
||||||
// console.log(arr, "5555555");
|
// console.log(arr, "5555555");
|
||||||
this.form.agencyName = arr.slice(-1).join(",");
|
this.form.hospitalAgencyName = arr.slice(-1).join(",");
|
||||||
// console.log(this.form.agencyName);
|
// console.log(this.form.agencyName);
|
||||||
} else {
|
} else {
|
||||||
this.form.agencyName = "";
|
this.form.hospitalAgencyName = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -935,7 +935,7 @@ export default {
|
|||||||
id: null,
|
id: null,
|
||||||
parentDepartmentId: null,
|
parentDepartmentId: null,
|
||||||
hospitalAgencyId: null,
|
hospitalAgencyId: null,
|
||||||
agencyName: null,
|
hospitalAgencyName: null,
|
||||||
departmentName: null,
|
departmentName: null,
|
||||||
departmentCode: null,
|
departmentCode: null,
|
||||||
departmentType: null,
|
departmentType: null,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user