From 51cabf810709bc7e46c2b49c3283464a1a826665 Mon Sep 17 00:00:00 2001 From: sundongyu <2811054731@qq.com> Date: Sat, 6 Apr 2024 19:00:30 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=E5=AE=8C=E6=88=90=E4=BA=86?= =?UTF-8?q?=E5=BA=94=E6=94=B6=E6=AC=BE=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mock/modules/sdy.js | 20 +- src/api/receivables-management/management.js | 5 + src/layout/components/LayoutContent.vue | 2 +- .../account-receivable.vue | 196 +++++++++++++++--- src/style/index.css | 2 +- src/style/index.less | 2 +- src/utils/request.js | 1 - 7 files changed, 193 insertions(+), 35 deletions(-) create mode 100644 src/api/receivables-management/management.js diff --git a/mock/modules/sdy.js b/mock/modules/sdy.js index e785967..3319882 100644 --- a/mock/modules/sdy.js +++ b/mock/modules/sdy.js @@ -1,10 +1,26 @@ import Mock from "mockjs" const data = Mock.mock({ - "items|10": [ + "list|200": [ { "id|+1": 1, "name": "@cname", + "studentnumber": "@integer(1000000000,9999999999)", + "department": `@pick(['机电工程系', '护理分院','建筑系','材料科学与工程系','环境科学与工程系'])`, + "major": `@pick(['机械制造与自动化', '材料科学与工程', '环境科学与工程', '建筑工程', '护理学'])`, + "grade": `@pick(['机制1班', '材料1班', '环境1班', '建筑1班','护理1班'])`, + "tuition": `@pick(['已付学费', '未缴学费'])`, } ] }) -export default [] \ No newline at end of file +export default [ + { + url: '/get-sdy-managment-list', + method: 'get', + response: () => { + return { + code: 200, + data: data + } + } + } +] \ No newline at end of file diff --git a/src/api/receivables-management/management.js b/src/api/receivables-management/management.js new file mode 100644 index 0000000..e1e92c0 --- /dev/null +++ b/src/api/receivables-management/management.js @@ -0,0 +1,5 @@ +import request from '@/utils/request' + +export function APIReceivablesList() { + return request.get('/get-sdy-managment-list') +} \ No newline at end of file diff --git a/src/layout/components/LayoutContent.vue b/src/layout/components/LayoutContent.vue index 0259a35..cf001e2 100644 --- a/src/layout/components/LayoutContent.vue +++ b/src/layout/components/LayoutContent.vue @@ -4,7 +4,7 @@ - Footer + Footer diff --git a/src/pages/receivables-management/account-receivable.vue b/src/pages/receivables-management/account-receivable.vue index 5c8771d..aff3c1e 100644 --- a/src/pages/receivables-management/account-receivable.vue +++ b/src/pages/receivables-management/account-receivable.vue @@ -11,41 +11,93 @@ > - - + + + + + + + + + + + + - - - - - - - - - - - + - - - 搜索 - 重置 + + + + + + + + + + + + + 搜索 + 重置 +
+ + + +
- diff --git a/src/style/index.css b/src/style/index.css index cc0f0ff..e2a5cde 100644 --- a/src/style/index.css +++ b/src/style/index.css @@ -186,7 +186,7 @@ pre { .back-color { background-color: #f5f7fb; padding: 16px 24px; - height: calc(100vh - 128px); + height: calc(94vh - 64px); overflow-y: auto; overflow-x: hidden; } diff --git a/src/style/index.less b/src/style/index.less index 42f1256..ab04493 100644 --- a/src/style/index.less +++ b/src/style/index.less @@ -26,7 +26,7 @@ .back-color { background-color: #f5f7fb; padding: 16px 24px; - height: calc(95vh - 64px); + height: calc(94vh - 64px); overflow-y: auto; overflow-x: hidden; } diff --git a/src/utils/request.js b/src/utils/request.js index 120ad9c..d1a4d35 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -1,7 +1,6 @@ // 进行axios二次封装:使用请求与响应拦截器 import axios from "axios"; import { MessagePlugin } from "tdesign-vue-next"; -import { useRouter } from "vue-router"; // import { refreshToken } from '@/apis/token' // import { useTokenStore } from '@/stores/index'