From d4534c231f7c25ca64d40c8bcaadf83f64b640c3 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: 星期五, 12 十二月 2025 11:05:43 +0800
Subject: [PATCH] 修改新增

---
 src/views/work/onlineEducation/questionBankManagement/questionManage/index.vue |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/views/work/onlineEducation/questionBankManagement/questionManage/index.vue b/src/views/work/onlineEducation/questionBankManagement/questionManage/index.vue
index 0d506f8..8cf3d7a 100644
--- a/src/views/work/onlineEducation/questionBankManagement/questionManage/index.vue
+++ b/src/views/work/onlineEducation/questionBankManagement/questionManage/index.vue
@@ -8,6 +8,7 @@
               plain
               icon="Plus"
               @click="openDialog('add',{})"
+              v-hasPermi="['questionManage:list:add']"
           >新增</el-button>
         </el-form-item>
         <el-form-item label="题型:">
@@ -84,8 +85,8 @@
       <el-table-column label="题目内容" prop="title" align="center"  />
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width"  width="180">
         <template #default="scope">
-          <el-button link type="primary" @click="openDialog('edit',scope.row)">编辑</el-button>
-          <el-button link type="danger" @click="handleDelete(scope.row)">删除</el-button>
+          <el-button link type="primary" @click="openDialog('edit',scope.row)" v-hasPermi="['questionManage:list:edit']">编辑</el-button>
+          <el-button link type="danger" @click="handleDelete(scope.row)" v-hasPermi="['questionManage:list:del']">删除</el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -139,10 +140,10 @@
       id: 3,
       name: '判断题'
     },
-    // {
-    //   id: 4,
-    //   name: '简答题'
-    // }
+    {
+      id: 4,
+      name: '简答题'
+    }
   ],
   bankList: [],
   bankPageNum: 1, // 当前页码

--
Gitblit v1.9.2