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'