From ba9dbeee7c139c67d770afe0053f06f1f235e565 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期二, 17 十月 2023 10:56:35 +0800 Subject: [PATCH] qxtj --- src/views/system/dept/index.vue | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 327d5e5..9718538 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -40,7 +40,7 @@ <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" /> @@ -90,8 +90,8 @@ <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> @@ -474,6 +474,11 @@ 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; -- Gitblit v1.8.0