导入---添加科室

This commit is contained in:
shidongli 2024-12-19 17:24:51 +08:00
parent 55661d3fab
commit aef0a89b45

View File

@ -88,7 +88,6 @@
</el-option> </el-option>
</el-select> </el-select>
<el-button <el-button
v-if="departmentsshow"
type="primary" type="primary"
plain plain
style="margin-left: 8px" style="margin-left: 8px"
@ -194,6 +193,7 @@
</el-form-item> </el-form-item>
<el-form-item label="所属机构" prop="hospitalAgencyName"> <el-form-item label="所属机构" prop="hospitalAgencyName">
<el-cascader <el-cascader
class="custom-cascader"
clearable clearable
:props="{ checkStrictly: true }" :props="{ checkStrictly: true }"
:options="treeOptions" :options="treeOptions"
@ -706,6 +706,8 @@ export default {
this.openadd = true this.openadd = true
if (localStorage.getItem('roleKey') != 'admin') { if (localStorage.getItem('roleKey') != 'admin') {
this.getLeafIds(this.treeOptions) this.getLeafIds(this.treeOptions)
this.formadd.hospitalAgencyIdtwo = JSON.parse(localStorage.getItem('user')).hospitalAgencyId;
this.formadd.hospitalAgencyName=JSON.parse(localStorage.getItem('user')).nickName;
} }
console.log(item, index, 'item') console.log(item, index, 'item')
// this.$emit('additem',item,index) // this.$emit('additem',item,index)
@ -725,9 +727,6 @@ export default {
}, },
getLeafIds(nodes) { getLeafIds(nodes) {
console.log(nodes, ';node') console.log(nodes, ';node')
this.formadd.hospitalAgencyIdtwo = JSON.parse(localStorage.getItem('user')).hospitalAgencyId;
let leafIds = []; let leafIds = [];
nodes.forEach(node => { nodes.forEach(node => {
@ -984,10 +983,9 @@ export default {
width: 12px; width: 12px;
height: 12px; height: 12px;
} }
.el-cascader .el-input input::-webkit-input-placeholder { .custom-cascader ::v-deep .el-input__inner::placeholder {
color: black; color: #606266; /* 你想要的颜色 */
} }
.nameinformation { .nameinformation {
border-left: 3px solid #4d9de7; border-left: 3px solid #4d9de7;
width: 200px; width: 200px;