|
|
@@ -55,7 +55,7 @@
|
|
|
</ComplexTable>
|
|
|
</PageMain>
|
|
|
<auth-Drawer :Drawer="agreementAuthDrawer" @cancel=" agreementAuthDrawer = false" @save="DrawerSave"
|
|
|
- @query="Drawerquery" :deptlist="deptauthList" :checkedKeys="checkedKeys" :checkedIds="checkedIds"></auth-Drawer>
|
|
|
+ @query="Drawerquery" :deptlist="deptauthList" :checkedKeys="checkedKeys" @echoValue="echoValue" :checkedIds="checkedIds"></auth-Drawer>
|
|
|
|
|
|
|
|
|
</div>
|
|
|
@@ -326,6 +326,11 @@ const agreementAuth = (deptName: any) => {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+//授权机构全选
|
|
|
+const echoValue = (list: any) => {
|
|
|
+ console.log(list)
|
|
|
+ checkedKeys.value = list;//全选操作是清空历史数据
|
|
|
+}
|
|
|
// 定义递归函数
|
|
|
function getUncheckedIds(data: any[]): string[] {
|
|
|
let ids: string[] = [];
|
|
|
@@ -381,8 +386,8 @@ const batchAuthorization = (value: string) => {
|
|
|
if (res.code == '200') {
|
|
|
agreementAuthDrawer.value = true;
|
|
|
deptauthList.value = res.data;
|
|
|
- checkedKeys.value = getUncheckedIds(res.data);
|
|
|
- checkedIds.value = getUncheckedIds(res.data);
|
|
|
+ // checkedKeys.value = getUncheckedIds(res.data);
|
|
|
+ // checkedIds.value = getUncheckedIds(res.data);
|
|
|
} else {
|
|
|
}
|
|
|
});
|