diff --git a/package-lock.json b/package-lock.json index 11b81e7..5441749 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,8 @@ "version": "0.1.0", "dependencies": { "core-js": "^3.8.3", - "vue": "^2.6.14" + "vue": "^2.6.14", + "vue-router": "^3.6.5" }, "devDependencies": { "@babel/core": "^7.12.16", @@ -10524,6 +10525,11 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, + "node_modules/vue-router": { + "version": "3.6.5", + "resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-3.6.5.tgz", + "integrity": "sha512-VYXZQLtjuvKxxcshuRAwjHnciqZVoXAjTjcqBTz4rKc8qih9g9pI3hbDjmqXaHdgL3v8pV6P8Z335XvHzESxLQ==" + }, "node_modules/vue-style-loader": { "version": "4.1.3", "resolved": "https://registry.npmmirror.com/vue-style-loader/-/vue-style-loader-4.1.3.tgz", @@ -11651,7 +11657,8 @@ "version": "7.21.0-placeholder-for-preset-env.2", "resolved": "https://registry.npmmirror.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", - "dev": true + "dev": true, + "requires": {} }, "@babel/plugin-syntax-decorators": { "version": "7.27.1", @@ -13026,7 +13033,8 @@ "version": "5.0.9", "resolved": "https://registry.npmmirror.com/@vue/cli-plugin-vuex/-/cli-plugin-vuex-5.0.9.tgz", "integrity": "sha512-AQhgGNFVd4Pu2crvS0a+hRckgrJv07gzOASdbLd3I72wkT43dd01MLRp8IBRRsu92t3MXenW86AZUCbQBz3//A==", - "dev": true + "dev": true, + "requires": {} }, "@vue/cli-service": { "version": "5.0.9", @@ -13470,13 +13478,15 @@ "version": "1.0.4", "resolved": "https://registry.npmmirror.com/acorn-import-phases/-/acorn-import-phases-1.0.4.tgz", "integrity": "sha512-wKmbr/DDiIXzEOiWrTTUcDm24kQ2vGfZQvM2fwg2vXqR5uW6aapr7ObPtj1th32b9u90/Pf4AItvdTh42fBmVQ==", - "dev": true + "dev": true, + "requires": {} }, "acorn-jsx": { "version": "5.3.2", "resolved": "https://registry.npmmirror.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true + "dev": true, + "requires": {} }, "acorn-walk": { "version": "8.3.4", @@ -13538,7 +13548,8 @@ "version": "3.5.2", "resolved": "https://registry.npmmirror.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz", "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true + "dev": true, + "requires": {} }, "ansi-colors": { "version": "4.1.3", @@ -14307,7 +14318,8 @@ "version": "6.4.1", "resolved": "https://registry.npmmirror.com/css-declaration-sorter/-/css-declaration-sorter-6.4.1.tgz", "integrity": "sha512-rtdthzxKuyq6IzqX6jEcIzQF/YqccluefyCYheovBOLhFT/drQA9zj/UbRAa9J7C0o6EG6u3E6g+vKkay7/k3g==", - "dev": true + "dev": true, + "requires": {} }, "css-loader": { "version": "6.11.0", @@ -14475,7 +14487,8 @@ "version": "3.1.0", "resolved": "https://registry.npmmirror.com/cssnano-utils/-/cssnano-utils-3.1.0.tgz", "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==", - "dev": true + "dev": true, + "requires": {} }, "csso": { "version": "4.2.0", @@ -15980,7 +15993,8 @@ "version": "5.1.0", "resolved": "https://registry.npmmirror.com/icss-utils/-/icss-utils-5.1.0.tgz", "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", - "dev": true + "dev": true, + "requires": {} }, "ieee754": { "version": "1.2.1", @@ -17275,25 +17289,29 @@ "version": "5.1.2", "resolved": "https://registry.npmmirror.com/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz", "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==", - "dev": true + "dev": true, + "requires": {} }, "postcss-discard-duplicates": { "version": "5.1.0", "resolved": "https://registry.npmmirror.com/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz", "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==", - "dev": true + "dev": true, + "requires": {} }, "postcss-discard-empty": { "version": "5.1.1", "resolved": "https://registry.npmmirror.com/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz", "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==", - "dev": true + "dev": true, + "requires": {} }, "postcss-discard-overridden": { "version": "5.1.0", "resolved": "https://registry.npmmirror.com/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz", "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==", - "dev": true + "dev": true, + "requires": {} }, "postcss-loader": { "version": "6.2.1", @@ -17380,7 +17398,8 @@ "version": "3.1.0", "resolved": "https://registry.npmmirror.com/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.1.0.tgz", "integrity": "sha512-k3kNe0aNFQDAZGbin48pL2VNidTF0w4/eASDsxlyspobzU3wZQLOGj7L9gfRe0Jo9/4uud09DsjFNH7winGv8Q==", - "dev": true + "dev": true, + "requires": {} }, "postcss-modules-local-by-default": { "version": "4.2.0", @@ -17439,7 +17458,8 @@ "version": "5.1.0", "resolved": "https://registry.npmmirror.com/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz", "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==", - "dev": true + "dev": true, + "requires": {} }, "postcss-normalize-display-values": { "version": "5.1.0", @@ -18951,6 +18971,11 @@ } } }, + "vue-router": { + "version": "3.6.5", + "resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-3.6.5.tgz", + "integrity": "sha512-VYXZQLtjuvKxxcshuRAwjHnciqZVoXAjTjcqBTz4rKc8qih9g9pI3hbDjmqXaHdgL3v8pV6P8Z335XvHzESxLQ==" + }, "vue-style-loader": { "version": "4.1.3", "resolved": "https://registry.npmmirror.com/vue-style-loader/-/vue-style-loader-4.1.3.tgz", @@ -19272,7 +19297,8 @@ "version": "8.18.3", "resolved": "https://registry.npmmirror.com/ws/-/ws-8.18.3.tgz", "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==", - "dev": true + "dev": true, + "requires": {} } } }, @@ -19374,7 +19400,8 @@ "version": "7.5.10", "resolved": "https://registry.npmmirror.com/ws/-/ws-7.5.10.tgz", "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", - "dev": true + "dev": true, + "requires": {} }, "y18n": { "version": "5.0.8", diff --git a/package.json b/package.json index 29b3112..9bc76b9 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ }, "dependencies": { "core-js": "^3.8.3", - "vue": "^2.6.14" + "vue": "^2.6.14", + "vue-router": "^3.6.5" }, "devDependencies": { "@babel/core": "^7.12.16", diff --git a/src/App.vue b/src/App.vue index 55df315..2fcc17c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,28 +1,212 @@ + - - + + + + + 测评系统后台 + + + + + + + + + + + 当前模块内容暂未开发 + + + + + + diff --git a/src/components/Layout/Header.vue b/src/components/Layout/Header.vue new file mode 100644 index 0000000..b782cbc --- /dev/null +++ b/src/components/Layout/Header.vue @@ -0,0 +1,31 @@ + + + + Homily Link + + + + + + diff --git a/src/components/Layout/Sidebar.vue b/src/components/Layout/Sidebar.vue new file mode 100644 index 0000000..5674a5c --- /dev/null +++ b/src/components/Layout/Sidebar.vue @@ -0,0 +1,50 @@ + + + + + 主页 + 发文章 + 我的内容 + 我的收藏 + 评论管理 + 账号设置 + 测评管理 + + + + + + + diff --git a/src/components/Question/QuestionSearch.vue b/src/components/Question/QuestionSearch.vue new file mode 100644 index 0000000..65a34c1 --- /dev/null +++ b/src/components/Question/QuestionSearch.vue @@ -0,0 +1,36 @@ + + + + + 题目类型 + + 股票知识 + 基金知识 + 投资策略 + + + + 题干查找 + + + + 课程推荐 + + 量能擒牛 + 趋势交易 + 基本面分析 + + + + 查找 + 新增题目 + Excel导出 + + + + + diff --git a/src/components/Question/QuestionTable.vue b/src/components/Question/QuestionTable.vue new file mode 100644 index 0000000..2d054ff --- /dev/null +++ b/src/components/Question/QuestionTable.vue @@ -0,0 +1,69 @@ + + + + + + ID + 题干 + 题目类型 + 出错次数 + 出错率 + 推荐课程 + 操作 + + + + + 1 + 以下哪项不是股票的基本特征? + 股票知识 + 50 + 50% + 量能擒牛 + + 查看 + 修改 + 删除 + + + + + + + + + + diff --git a/src/components/Tabs/TabNavigation.vue b/src/components/Tabs/TabNavigation.vue new file mode 100644 index 0000000..1221fd0 --- /dev/null +++ b/src/components/Tabs/TabNavigation.vue @@ -0,0 +1,38 @@ + + + + + 用户数据 + + + 错题统计 + + + 题库管理 + + + + + diff --git a/src/router/index.js b/src/router/index.js new file mode 100644 index 0000000..a431489 --- /dev/null +++ b/src/router/index.js @@ -0,0 +1,37 @@ +import Vue from 'vue' +import VueRouter from 'vue-router' +import QuestionManage from '@/views/QuestionManage.vue' +import UserStatistics from '@/views/UserStatistics.vue' +import WrongQuestion from '@/views/WrongQuestion.vue' + +Vue.use(VueRouter) + +const routes = [ + { + path: '/', + redirect: '/questions' + }, + { + path: '/questions', + name: 'QuestionManage', + component: QuestionManage + }, + { + path: '/users', + name: 'UserStatistics', + component: UserStatistics + }, + { + path: '/wrong-questions', + name: 'WrongQuestion', + component: WrongQuestion + } +] + +const router = new VueRouter({ + mode: 'history', + base: process.env.BASE_URL, + routes +}) + +export default router diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/views/QuestionManage.vue b/src/views/QuestionManage.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/views/WrongQuestion.vue b/src/views/WrongQuestion.vue new file mode 100644 index 0000000..e69de29
当前模块内容暂未开发