| | |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['oa:organization:edit']" |
| | | >修改 |
| | | </el-button> |
| | | <el-button |
| | |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['oa:organization:remove']" |
| | | >删除 |
| | | </el-button> |
| | | </template> |
| | |
| | | }, |
| | | /** 查询高校组织机构下拉树结构 */ |
| | | 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"); |
| | |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | this.$modal.confirm('是否确认删除高校组织机构编号为"' + row.id + '"的数据项?').then(() => { |
| | | this.$modal.confirm('是否确认删除?').then(() => { |
| | | this.loading = true; |
| | | return delOrganization(row.id); |
| | | }).then(() => { |