|
@@ -109,6 +109,7 @@
|
|
|
<script setup name="Process">
|
|
|
import { getUsersByDeptId, saveDeptUser, deptTreeSelect, delDeptUser, getDeptUser, getUsersItemByDeptId } from '@/api/system/user'
|
|
|
import { delDept, getDept } from '@/api/system/dept'
|
|
|
+import {deleteGroupDetail } from '@/api/business/resourceGroupDetail'
|
|
|
import deptForm from './form'
|
|
|
import userForm from './formUser'
|
|
|
import person from '@/views/dialog/person.vue'
|
|
@@ -206,6 +207,7 @@ function handleSelectionChange(selection) {
|
|
|
ids.value = selection.map((item) => {
|
|
|
return { userId: item.userId, deptId: currentDept.value.id }
|
|
|
})
|
|
|
+ console.log(ids.value)
|
|
|
single.value = selection.length != 1
|
|
|
multiple.value = !selection.length
|
|
|
}
|
|
@@ -280,10 +282,13 @@ function handleDelete(row) {
|
|
|
function handleUserDelete(row) {
|
|
|
console.log(ids.value)
|
|
|
proxy.$modal
|
|
|
- .confirm('是否确认删除选中的数据项?')
|
|
|
+ .confirm('是否确认删除选中的人员,资源组明细也将同步删除该人员?')
|
|
|
.then(function () {
|
|
|
return delDeptUser(ids.value)
|
|
|
})
|
|
|
+ .then(function () {
|
|
|
+ deleteGroupDetail(ids.value)
|
|
|
+ })
|
|
|
.then(() => {
|
|
|
handleGetUser(currentDept.value)
|
|
|
proxy.$modal.msgSuccess('删除成功!')
|