唐耀东
2022-05-18 7ca1a8ec18fccca9102cd1179e05fdc877bdc511
src/views/basics/organization/index.vue
@@ -46,6 +46,7 @@
              type="text"
              icon="el-icon-edit"
              @click="handleUpdate(scope.row)"
              v-hasPermi="['oa:organization:edit']"
          >修改
          </el-button>
          <el-button
@@ -60,6 +61,7 @@
              type="text"
              icon="el-icon-delete"
              @click="handleDelete(scope.row)"
              v-hasPermi="['oa:organization:remove']"
          >删除
          </el-button>
        </template>
@@ -181,7 +183,7 @@
    },
    /** 查询高校组织机构下拉树结构 */
    getTreeselect() {
      listOrganization().then(response => {
      listOrganization({schoolId: this.schoolId}).then(response => {
        this.organizationOptions = [];
        const data = {id: 0, name: '顶级节点', children: []};
        data.children = this.handleTree(response.data, "id", "parentId");
@@ -276,7 +278,7 @@
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      this.$modal.confirm('是否确认删除高校组织机构编号为"' + row.id + '"的数据项?').then(() => {
      this.$modal.confirm('是否确认删除?').then(() => {
        this.loading = true;
        return delOrganization(row.id);
      }).then(() => {