qinxianzhangyao
2024-02-28 ed9308186907ecdf50be2bf5fcbd1d3ba500de76
qxtj
1个文件已修改
8 ■■■■ 已修改文件
src/views/system/dept/index.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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>
@@ -526,7 +527,6 @@
    getlistHosp() {
      listHosp(this.queryParams).then((response) => {
        this.hospList = response.rows;
        console.log(this.hospList);
      });
    },
    /** 转换部门数据结构 */
@@ -659,7 +659,7 @@
      // console.log(11111)
      // this.reset();
      this.form = row;
      // 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": "主类目", });
      }
@@ -688,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;