diff --git a/src/background/db/examinee.js b/src/background/db/examinee.js index 760d04f..60b04f7 100644 --- a/src/background/db/examinee.js +++ b/src/background/db/examinee.js @@ -1,6 +1,7 @@ -const { executeWithRetry } = require('./utils.js'); +// 修复导入方式 const { getDbConnection } = require('./index.js'); -const { getSystemDbPath } = require('./index.js'); +const { getSystemDbPath } = require('./path.js'); // 从 path.js 导入 +const { executeWithRetry } = require('./utils.js'); // 从 utils.js 导入 /** * 查询所有考生列表 diff --git a/src/background/main.js b/src/background/main.js index 6bdd0d6..27448bb 100644 --- a/src/background/main.js +++ b/src/background/main.js @@ -35,6 +35,7 @@ async function createWindow() { width: 800, // 默认宽度(实际会被最大化覆盖) height: 600, // 默认高度(实际会被最大化覆盖) show: false, // 先隐藏窗口,避免闪烁 + frame: false, // 无边框窗口(可选,根据需求决定是否保留) webPreferences: { // 改为使用绝对路径解析 preload: require('path').join(process.cwd(), 'src/preload.js'), @@ -43,6 +44,9 @@ async function createWindow() { } }) + // 设置隐藏菜单栏 + win.setMenu(null); + // 在窗口显示前设置最大化 win.maximize(); // 然后显示窗口 diff --git a/src/components/admin/Sider.vue b/src/components/admin/Sider.vue index 343b6f0..ad3645d 100644 --- a/src/components/admin/Sider.vue +++ b/src/components/admin/Sider.vue @@ -20,26 +20,18 @@ 后台首页 - - - 考生管理 - 试题管理 + + + 考生管理 + 考试管理 - - - 数据统计 - - - - 系统设置 - 退出登录 diff --git a/src/router/index.js b/src/router/index.js index 8cb90e9..ca03f4d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -4,6 +4,7 @@ import WelcomeView from '../views/WelcomeView.vue' import AdminLayout from '../components/admin/AdminLayout.vue' import AdminHomeView from '../views/admin/AdminHomeView.vue' import QuestionManagementView from '../views/admin/QuestionManagementView.vue' +import ExamineeManagementView from '../views/admin/ExamineeManagementView.vue' // 添加这行 Vue.use(VueRouter) @@ -30,6 +31,11 @@ const routes = [ path: 'question', name: 'QuestionManagement', component: QuestionManagementView + }, + { + path: 'examinee', // 添加考生管理路由 + name: 'ExamineeManagement', + component: ExamineeManagementView } // 可以在这里添加更多子路由 ] @@ -37,7 +43,7 @@ const routes = [ ] const router = new VueRouter({ - mode: 'history', + mode: 'hash', // 将history改为hash base: process.env.BASE_URL, routes }) diff --git a/src/views/admin/ExamineeManagementView.vue b/src/views/admin/ExamineeManagementView.vue new file mode 100644 index 0000000..8b3c176 --- /dev/null +++ b/src/views/admin/ExamineeManagementView.vue @@ -0,0 +1,234 @@ + + + + 考生管理 + + 添加考生 + + + + + + + + + + + 编辑 + + + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取消 + 保存 + + + + + + + + \ No newline at end of file