liuchengxin
2022-05-27 d138b7df8fa97dc7ed6b07acdfef804ebb186a74
src/views/basics/organization/index.vue
@@ -33,19 +33,21 @@
        v-loading="loading"
        :data="organizationList"
        row-key="id"
        height="calc(100vh - 210px)"
        default-expand-all
        :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
    >
      <el-table-column label="机构名称" align="center" prop="name"/>
      <el-table-column label="机构编号" prop="code"/>
      <el-table-column label="显示顺序" align="center" prop="orderNum"/>
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
      <el-table-column label="机构名称" align="left" prop="name"/>
      <el-table-column label="机构编号" align="left" width="150" prop="code"/>
      <el-table-column label="显示顺序" width="80" align="center" prop="orderNum"/>
      <el-table-column label="操作" align="center" width="180" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
              size="mini"
              type="text"
              icon="el-icon-edit"
              @click="handleUpdate(scope.row)"
              v-hasPermi="['oa:organization:edit']"
          >修改
          </el-button>
          <el-button
@@ -60,6 +62,7 @@
              type="text"
              icon="el-icon-delete"
              @click="handleDelete(scope.row)"
              v-hasPermi="['oa:organization:remove']"
          >删除
          </el-button>
        </template>
@@ -181,7 +184,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 +279,7 @@
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      this.$modal.confirm('是否确认删除高校组织机构编号为"' + row.id + '"的数据项?').then(() => {
      this.$modal.confirm('是否确认删除?').then(() => {
        this.loading = true;
        return delOrganization(row.id);
      }).then(() => {