1
lkk
2025-04-08 2f0e1ee5a74344f6a108df4559beed0423b9639d
src/views/advice/advice/index.vue
@@ -78,6 +78,7 @@
    <el-row :gutter="20">
      <el-col :span="3" :xs="24">
        <div class="head-container">
          <div class="content">
          <el-tree
            :data="deptOptions"
            :props="defaultProps"
@@ -90,6 +91,7 @@
            highlight-current
            @node-click="handleNodeClick"
          />
          </div>
        </div>
      </el-col>
@@ -175,8 +177,6 @@
    </div>
      </el-col>
    </el-row>
    <!-- 添加或修改advice对话框 -->
    <el-dialog
@@ -353,7 +353,7 @@
    };
  },
  created() {
    this.sendhospName()
    this.sendhospName();
    this.getDeptTree();
  },
  watch: {
@@ -371,9 +371,8 @@
  },
  methods: {
    sendhospName() {
      getDeptListByDictHospId({
        id: 2000
        id: 2000,
      }).then((res) => {
        this.DepartmentList = res.data;
        this.form.deptId = String(this.form.deptId);
@@ -381,7 +380,8 @@
    },
    // 节点单击事件
    handleNodeClick(data) {
      this.queryParams.deptId = data.id;
      // this.queryParams.deptId = data.id;
      this.queryParams.deptId = null;;
      this.handleQuery();
    },
@@ -392,7 +392,6 @@
    },
    getDeptTree() {
      deptTreeSelect().then((response) => {
        this.deptOptions = response.data;
        this.treeId.push(this.deptOptions[0].id);
        this.queryParams.deptId = this.deptOptions[0].id;
@@ -474,7 +473,7 @@
      this.reset();
      this.title = "体检建议信息维护";
      this.getlistProject();
      this.form.deptId = this.queryParams.deptId
      this.form.deptId = this.queryParams.deptId;
      this.open = true;
    },
    /** 修改按钮操作 */
@@ -489,7 +488,7 @@
        }
        this.getlistProject();
        this.open = true;
        this.form.deptId = this.queryParams.deptId
        this.form.deptId = this.queryParams.deptId;
        this.title = "体检建议信息维护";
      });
    },
@@ -575,4 +574,16 @@
.pag1 {
  width: 30%;
}
.content {
  width: 1000px;
  height: 1000px;
}
.head-container {
  width: 200px;
  height: 629px;
  overflow: auto;
  border: 1px solid #ccc;
  position: relative;
}
</style>