Просмотр исходного кода

协议授权点击无反应的问题修改

祁鹏飞 4 недель назад
Родитель
Сommit
5f46291187
1 измененных файлов с 5 добавлено и 7 удалено
  1. 5 7
      src/views/quoteConfig/agreement/agreementIndex.vue

+ 5 - 7
src/views/quoteConfig/agreement/agreementIndex.vue

@@ -56,9 +56,8 @@
         </template>
         </template>
       </ComplexTable>
       </ComplexTable>
     </PageMain>
     </PageMain>
-    <auth-Drawer :Drawer="agreementAuthDrawer" @cancel=" agreementAuthDrawer = false" @save="DrawerSave"
-      @query="Drawerquery" :deptlist="deptauthList" :checkedKeys="checkedKeys" @echoValue="echoValue"
-      :checkedIds="checkedIds"></auth-Drawer>
+    <auth-Drawer ref="authDrawerRef" @save="DrawerSave" @query="Drawerquery" :deptlist="deptauthList"
+      :checkedKeys="checkedKeys" @echoValue="echoValue" :checkedIds="checkedIds"></auth-Drawer>
 
 
     <operatorTrajectory ref="operatorTrajectoryRef" />
     <operatorTrajectory ref="operatorTrajectoryRef" />
   </div>
   </div>
@@ -304,7 +303,7 @@ function getList(item: PageInfo) {
 
 
 };
 };
 //机构授权
 //机构授权
-const agreementAuthDrawer = ref(false)//授权弹窗
+const authDrawerRef = ref()//授权弹窗
 const deptauthList = ref([]);//授权机构列表
 const deptauthList = ref([]);//授权机构列表
 const checkedKeys = ref<string[]>([])//授权机构回显数据
 const checkedKeys = ref<string[]>([])//授权机构回显数据
 const checkedIds = ref<string[]>([])//授权机构回显id
 const checkedIds = ref<string[]>([])//授权机构回显id
@@ -321,7 +320,6 @@ const DrawerSave = (list: any) => {
         message: res.msg,
         message: res.msg,
         plain: true,
         plain: true,
       })
       })
-      agreementAuthDrawer.value = false;
     } else {
     } else {
     }
     }
   });
   });
@@ -331,7 +329,7 @@ const agreementAuth = (deptName: any) => {
   let name = typeof deptName === 'string' ? deptName : '';
   let name = typeof deptName === 'string' ? deptName : '';
   api.agreementApi.agreementdeptTree(agreementId.value, name).then((res: any) => {
   api.agreementApi.agreementdeptTree(agreementId.value, name).then((res: any) => {
     if (res.code == '200') {
     if (res.code == '200') {
-      agreementAuthDrawer.value = true;
+      authDrawerRef.value.DrawerOpen()
       deptauthList.value = res.data;
       deptauthList.value = res.data;
       checkedKeys.value = getUncheckedIds(res.data);
       checkedKeys.value = getUncheckedIds(res.data);
       checkedIds.value = getUncheckedIds(res.data);
       checkedIds.value = getUncheckedIds(res.data);
@@ -397,7 +395,7 @@ const batchAuthorization = (value: string) => {
   agreementId.value = value;
   agreementId.value = value;
   api.agreementApi.agreementdeptTree(value, '').then((res: any) => {
   api.agreementApi.agreementdeptTree(value, '').then((res: any) => {
     if (res.code == '200') {
     if (res.code == '200') {
-      agreementAuthDrawer.value = true;
+      authDrawerRef.value.DrawerOpen()
       deptauthList.value = res.data;
       deptauthList.value = res.data;
       checkedKeys.value = getUncheckedIds(res.data);
       checkedKeys.value = getUncheckedIds(res.data);
       checkedIds.value = getUncheckedIds(res.data);
       checkedIds.value = getUncheckedIds(res.data);