From 6616ec1602985046202576f701f8276392adc944 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Thu, 6 Mar 2025 17:52:53 +0800 Subject: [PATCH] init --- src/api/batch-sub-school/batch-sub-school.js | 37 ++ src/views/BatchSub/components/AddBatchSub.vue | 81 ++- src/views/BatchSubSchool/BatchSubSchool.vue | 536 ++++++++++++++++++ .../components/AddBatchSubSchool.vue | 339 +++++++++++ .../components/ShowBatchSubSchool.vue | 109 ++++ 5 files changed, 1086 insertions(+), 16 deletions(-) create mode 100644 src/api/batch-sub-school/batch-sub-school.js create mode 100644 src/views/BatchSubSchool/BatchSubSchool.vue create mode 100644 src/views/BatchSubSchool/components/AddBatchSubSchool.vue create mode 100644 src/views/BatchSubSchool/components/ShowBatchSubSchool.vue diff --git a/src/api/batch-sub-school/batch-sub-school.js b/src/api/batch-sub-school/batch-sub-school.js new file mode 100644 index 0000000..670f251 --- /dev/null +++ b/src/api/batch-sub-school/batch-sub-school.js @@ -0,0 +1,37 @@ +import request from '@/utils/request' + +export function index(params,isLoading = true) { + return request({ + method: 'get', + url: '/api/admin/batch-sub-school/index', + params, +isLoading + }) +} + +export function show(params,isLoading = true) { + return request({ + method: 'get', + url: '/api/admin/batch-sub-school/show', + params, + isLoading + }) +} + +export function save(data, isLoading = true) { + return request({ + method: 'post', + url: '/api/admin/batch-sub-school/save', + data, + isLoading + }) +} + +export function destroy(params, isLoading = true) { + return request({ + method: 'get', + url: '/api/admin/batch-sub-school/destroy', + params, + isLoading + }) +} diff --git a/src/views/BatchSub/components/AddBatchSub.vue b/src/views/BatchSub/components/AddBatchSub.vue index fd4740c..0961a28 100644 --- a/src/views/BatchSub/components/AddBatchSub.vue +++ b/src/views/BatchSub/components/AddBatchSub.vue @@ -30,19 +30,38 @@ - - - + :options="aspirations" + :props="{ + value: 'id', + label: 'name', + lazy: true, + emitPath: false, + lazyLoad: (node, resolve) => { + const { level, value } = node + getBatches(value).then(res => { + resolve(res.map(i => ({ + ...i, + leaf: true + }))) + }) + } + }"> + + + + + + + + + + + + + @@ -116,6 +135,8 @@ diff --git a/src/views/BatchSubSchool/BatchSubSchool.vue b/src/views/BatchSubSchool/BatchSubSchool.vue new file mode 100644 index 0000000..3beb43c --- /dev/null +++ b/src/views/BatchSubSchool/BatchSubSchool.vue @@ -0,0 +1,536 @@ + + + + + diff --git a/src/views/BatchSubSchool/components/AddBatchSubSchool.vue b/src/views/BatchSubSchool/components/AddBatchSubSchool.vue new file mode 100644 index 0000000..e2cf22f --- /dev/null +++ b/src/views/BatchSubSchool/components/AddBatchSubSchool.vue @@ -0,0 +1,339 @@ + + + + + diff --git a/src/views/BatchSubSchool/components/ShowBatchSubSchool.vue b/src/views/BatchSubSchool/components/ShowBatchSubSchool.vue new file mode 100644 index 0000000..f36ae88 --- /dev/null +++ b/src/views/BatchSubSchool/components/ShowBatchSubSchool.vue @@ -0,0 +1,109 @@ + + + + + +