13075 未做限制,应该里边的数据删除后才可以删除外边的。
parent
ba894bd4f3
commit
c6bacc5cff
|
@ -241,6 +241,21 @@ export default {
|
|||
this.$confirm(`确定要删除当前承诺书吗?`, {
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: 'Loading',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
requestFN(
|
||||
'/corppromise/peopledetails?showCount=10¤tPage=1',
|
||||
{ PROMISE_ID: PROMISE_ID }
|
||||
).then((data) => {
|
||||
if ((!data.varList) || data.varList.length > 0) {
|
||||
this.$message.error('当前承诺书已经被使用,不能删除')
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
requestFN(
|
||||
'/corppromise/delete',
|
||||
{
|
||||
|
@ -254,6 +269,10 @@ export default {
|
|||
}).catch((e) => {
|
||||
this.$message.success('操作失败')
|
||||
})
|
||||
loading.close()
|
||||
}).catch((e) => {
|
||||
loading.close()
|
||||
})
|
||||
}).catch(() => {})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue