From 00212ed8e808fc7b76c04389224e65f27f074fb2 Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期五, 26 四月 2024 15:30:04 +0800
Subject: [PATCH] su

---
 src/views/system/dept/index.vue |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue
index 8ad8f0a..45949df 100644
--- a/src/views/system/dept/index.vue
+++ b/src/views/system/dept/index.vue
@@ -234,10 +234,11 @@
             style="width: 200px"
             clearable
             filterable
+            @change="$forceUpdate()"
           >
             <el-option
               v-for="dict in deptOption"
-              :key="dict.label"
+              :key="dict.id"
               :label="dict.label"
               :value="dict.id"
             ></el-option>
@@ -267,7 +268,7 @@
               v-for="dict in hospList"
               :key="dict.hospAreaName"
               :label="dict.hospAreaName"
-              :value="dict.hospAreaName"
+              :value="dict.hospAreaId"
             />
           </el-select>
         </el-form-item>
@@ -342,7 +343,7 @@
             placeholder="璇疯緭鍏ユ爣鍑嗙瀹�"
           />
         </el-form-item>
-        <el-form-item label="绉戝绫诲瀷" prop="deptTypeCode">
+        <el-form-item label="绉戝绫诲瀷" prop="parentOrgType">
           <el-select
             v-model="form.parentOrgType"
             placeholder="璇烽�夋嫨绉戝绫诲瀷"
@@ -421,7 +422,6 @@
   components: { Treeselect },
   data() {
     let checkPhoneNum = (rule, value, callback) => {
-      console.log(value);
       let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/);
       if (value == "" && value == undefined && !value) {
         return callback("");
@@ -659,11 +659,9 @@
       // console.log(11111)
       // this.reset();
       this.form = row;
-      console.log(this.form )
-      // this.form.parentId = this.form.parentId.toString()
+      this.form.parentId = this.form.parentId.toString()
       if(this.form.parentId == 0){
         this.deptOption.push({ "id": 0, "label": "涓荤被鐩�", });
-        console.log(this.deptOption);
       }
       this.open = true;
       this.title = "绉戝淇℃伅缁存姢  ";
@@ -690,7 +688,7 @@
         if (valid) {
           if (this.form.deptId != undefined) {
             if(this.form.hospId ){
-              console.log(this.form);
+              // console.log(this.form);
               updateDept(this.form).then((response) => {
               this.$modal.msgSuccess("淇敼鎴愬姛");
               this.open = false;

--
Gitblit v1.8.0