| | |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | <el-table width="60%" v-if="refreshTable" v-loading="loading" :data="deptList" border row-key="deptId" |
| | | :default-expand-all="isExpandAll" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"> |
| | | :default-expand-all="isExpandAll" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" max-height="720px"> |
| | | <!-- <el-table-column fixed="left" width="55px" label="序号" align="center" prop="nweID" /> --> |
| | | <el-table-column label="科室名称" align="center" prop="deptName" width="120px" fixed="left" |
| | | :show-overflow-tooltip="true" /> |
| | |
| | | <el-form-item label="显示顺序" prop="orderNum"> |
| | | <el-input v-model="form.orderNum" placeholder="请输入显示顺序" /> |
| | | </el-form-item> |
| | | <el-form-item label="所在分院" prop="hospName"> |
| | | <el-select v-model="form.hospName" placeholder="请选择所在分院" clearable filterable style="width: 200px"> |
| | | <el-form-item label="所属医院" prop="hospName"> |
| | | <el-select v-model="form.hospName" placeholder="请选择所属医院" clearable filterable style="width: 200px"> |
| | | <el-option v-for="dict in hospList" :key="dict.hospAreaName" :label="dict.hospAreaName" |
| | | :value="dict.hospAreaName" /> |
| | | </el-select> |
| | |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | this.hospList.forEach(element => { |
| | | if(this.form.hospName == element.hospAreaName){ |
| | | this.form.hospId = element.hospAreaId |
| | | } |
| | | }); |
| | | addDept(this.form).then((response) => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.open = false; |