组织删除

This commit is contained in:
aoli.qu 2021-12-11 16:06:28 +08:00
parent 7357344acf
commit 18560aa870
1 changed files with 3 additions and 6 deletions

View File

@ -18,7 +18,7 @@
<span slot="action" slot-scope="text, record">
<a v-if="hasPerm('sys:org:edit')" @click="$refs.orgForm.edit(record)">编辑</a>
<a-divider type="vertical" v-if="hasPerm('sys:org:edit') & hasPerm('sys:org:delete')"/>
<a-popconfirm v-if="hasPerm('sys:org:delete')" placement="topRight" title="确认删除?" @confirm="() => singleDelete(record)">
<a-popconfirm v-if="hasPerm('sys:org:delete')" placement="topRight" title="确认删除?" @confirm="() => sysOrgDelete(record)">
<a>删除</a>
</a-popconfirm>
</span>
@ -42,7 +42,7 @@
<span slot="action" slot-scope="text, record">
<a v-if="hasPerm('sys:org:edit')" @click="$refs.orgForm.edit(record)">编辑</a>
<a-divider type="vertical" v-if="hasPerm('sys:org:edit') & hasPerm('sys:org:delete')"/>
<a-popconfirm v-if="hasPerm('sys:org:delete')" placement="topRight" title="确认删除?" @confirm="() => singleDelete(record)">
<a-popconfirm v-if="hasPerm('sys:org:delete')" placement="topRight" title="确认删除?" @confirm="() => sysOrgDelete(record)">
<a>删除</a>
</a-popconfirm>
</span>
@ -129,13 +129,10 @@
orgDel({ id: record.id, deleteReason: '' }).then((res) => {
if (res.code === 200) {
this.$message.success('删除成功')
this.getOrgTree()
this.$refs.table.clearRefreshSelected()
this.$refs.table.refresh(true)
} else {
this.$message.error('删除失败:' + res.msg)
}
}).catch((err) => {
this.$message.error('删除错误:' + err.msg)
})
},
handleOk () {