From 4f6cdee3d3a9967b6955aacc354bf557430c0643 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期一, 05 八月 2024 17:05:16 +0800
Subject: [PATCH] 批改

---
 src/views/onlineEducation/questionBankManagement/components/questionBankDialog.vue |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/src/views/onlineEducation/questionBankManagement/components/questionBankDialog.vue b/src/views/onlineEducation/questionBankManagement/components/questionBankDialog.vue
index 2144454..6c4431a 100644
--- a/src/views/onlineEducation/questionBankManagement/components/questionBankDialog.vue
+++ b/src/views/onlineEducation/questionBankManagement/components/questionBankDialog.vue
@@ -5,6 +5,8 @@
         :title="title"
         width="500px"
         :before-close="handleClose"
+        :close-on-press-escape="false"
+        :close-on-click-modal="false"
     >
       <el-form :model="state.form" size="default" ref="busRef" :rules="state.formRules" label-width="150px" >
         <el-form-item label="所属公司:" prop="companyName" v-if="!state.isAdmin">
@@ -155,20 +157,24 @@
   return tmp;
 }
 
+const CascaderRef = ref()
 const handleChange = ()=> {
   console.log("label====",classifyRef.value.getCheckedNodes()[0].value)
   state.form.categoryId = classifyRef.value.getCheckedNodes()[0].value
   // 我这里只是打印了一下label的值哦,需要赋值的话自己去赋值哦
+  if (classifyRef.value.popperVisible) {
+    classifyRef.value.togglePopperVisible()
+  }
 }
 
 const onSubmit = async () => {
-  if(state.isAdmin){
-    ElMessage({
-      type: 'warning',
-      message: '管理员暂无权限'
-    });
-    return;
-  }
+  // if(state.isAdmin){
+  //   ElMessage({
+  //     type: 'warning',
+  //     message: '管理员暂无权限'
+  //   });
+  //   return;
+  // }
   const valid = await busRef.value.validate();
   if(valid){
     if(title.value === '新增'){

--
Gitblit v1.9.2